camera

J2me: no support for FocusControl in Nokia?

Hi, I am developing a J2me app which uses the camera to take a snapshot and then decodes it (using Zxing library). The target is Nokia phones. I need to use the focus to have a clear image, if not, it is difficult to decode the image. Since the series 40, the control "videocontrol" and "SnapShopControl" are available. I thought that fo...

Crash happened when the camera in my android app is launched (SHW-M110S)

Hi. Is there any differences between M100S and M110S? My app uses camera component. codes are as follows { ComponentName compName = new ComponentName         ("com.android.camera", "com.android.camera.Camera"); Intent camIntent = new Intent(Intent.ACTION_MAIN); actIntent.addCategory(Intent.CATEGORY_LAUNCHER); actIntent.setComponent...

2D platform game camera in c++

I was wondering how exactly cameras are programmed in a 2D platform game. How is it programmed only to render whats in the view of the camera without rendering the whole map? Also, whats the proper way to do this? ...

What is the easiest way to incorporate the iPhone's default Photo Album into a custom app?

Is it possible to simply incorporate the iPhone's Photo Album in a custom application in the same way it is done within the default camera application? If so, how? I know I can use the ALAssetsLibrary and what not to create my own Photos Album ... but there isn't anything I want to customize. I just want the same capabilities that you...

Taking a picture with the AVD

Hi, I'm testing my app on the AVD emulator ; one of the steps of my App is to take a picture ; when I get there, I get the right screen first (the one that has a take a picture and a Cancel buttons) but after a few seconds, before I can take the picture, I get this error message "The application Camera (process com.android.camera) has s...

iphone capturing image to document

CGImageRef screen = UIGetScreenImage(); UIImage* image = [UIImage imageWithCGImage:screen]; CGImageRelease(screen); // You could, e.g., save the captured image to photo album UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil); (void)image:(UIImage *)image didFinishSavingWithError:...

iphone camera - use imac webcam instead?

Hello Can I not somehow use the built in webcam on my imac to test camera functions in the simulator? Thanks Tom ...

iPhone SDK - get/calculate camera field of view (FOV) (Augmented Reality)

Is there a way to find out or calculate the field of view (FOV) an iPhone camera has through calls to the APIs? Or is it something you have to physically and manually find out for yourself? If it cannot be fetched or calculated with the APIs, but instead has to be hard-coded into an app, then what's the best way to find out what kind of...

Detect existence of camera in iPhone app?

I'm writing an iOS app, and I need to be able to detect if the device has a camera. Previously, I would check if the device is an iPhone or not, since only the iPhone has a camera - but with the launch of the iPod touch 4 this is no longer a viable option. The app functions without a camera, but the presence of a camera adds functionalit...

Cocos2d scroll layer on Sprite drag

I have designed a small tutorial named "Stacker", As the name suggests, The game involves stacking blocks on each other. I have a large number of blocks to be stacked and hence all cant be accomodated in the screen itself... I m new to cocos2d and box2d but have managed to create a body with its adjoining sprite wen a user clicks on the ...

How to set a usb camera as a source to wpf MediaElemt in VS2010 in c#?

Hi, I have a Windows WPF application and I want to stream a video from my usb camera using MediaElement control. Is it possible to set usb camera as source to MediaElement? I'm using VS2010 framework 4.0 and c# language. ...

AVFoundation Camera Preview Screen gives wrong zoom

Hello all I'm currently developing an app that has a camera functionality, with a custom camera screen, featuring a preview screen and an overlay. I'm using the AVFoundation classes and methods as per the eradication of UIScreenCapture. The problem I have is that the preview data I get from AVCaptureSession is too zoomed in. If i take...

iPhone AVFoundation camera orientation

Hi All, I've been tearing my hair out trying to get the AVFoundation camera to capture a picture in the correct orientation (i.e. the device orientation) but I can't get it to work. I have looked at tutorials, I've watched the WWDC presentation and I've downloaded the WWDC sample program but even that doesn't do it. The code from my a...

Using webcams in C# WinForms

How do I use a webcam in C# WinForms? ...

Projecting a 3D point to 2D screen space using a perspective camera matrix

Hi everyone, I am attempting to project a series of 3D points onto the screen using a perspective camera matrix. I do not have world space (or consider it being an identity matrix) and my camera does not have camera space (or consider it an identity matrix), I do have a 4x4 matrix for my object space. I am taking the object matrix and ...

How to access photo EXIF in pictures taken from camera in iOS 4.0+?

How do I access the EXIF info in a picture from the camera taken using the new 4.0/4.1 APIs? I use captureStillImageAsynchronouslyFromConnection to take the picture and: [AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:imageDataSampleBuffer]; to get the jpg data but how do I extract the EXIF? The doco makes references to...

Camera orientation on WinMo

Hi, Does anyone has a idea how to retrieve camera orientation on WinMo, using .NET or API ? For example, using DirectShow to access camera on HD2 or HP 900 series, the picture orientation is not the same. So I assume that I've to check for every single model, and programatically rotate the image. Regards ...

If a world matrix and camera matrix are both identity matrices, can they be ommited?

This is a basic question about the need for world and camera space matrices when each are identity matrices. Can they be ommited when calculating a 2D projection? I'm pretty sure that they can, although I seem to be getting strange results when I try to project some 3D points whilst ommiting them, I ask since this might be directly linke...

How to get camera position from such data generated by LSD lines detector?

So for example I have such lines with coordinates. how (using what algorithm) is it possible to generate some kind of simple 3d scene meaning get relative distance from camera to the wall that is facing us? ...

Preferred Developer Android Phone for using the ZXing library

Using this library, ZXing, we have a project at school in which we'll implement a inventory system using Android phones. We aim to use an Android phone to be a inexpensive replacement to this: I've read some of the warnings on the FAQ for certain phones. Is there a specific phone that Android developers prefer (with use of the ZXing ...