camera

C# Net CF - how to take a picture without interaction?

Hello everyone, Is there a possibility to take a picture using phone's camera without user interaction? I'd like to write a short app that only takes sequence of pictures and the user should be able to set number of pictures, location, quality and time between shots. After starting the app should take pictures without further interactio...

Problems saving a photo to a file

Man, I am still not able to save a picture when I send an intent asking for a photo to be taken. Here's what I am doing: Make a URI representing the pathname android.content.Context c = getApplicationContext(); String fname = c.getFilesDir().getAbsolutePath()+"/parked.jpg"; java.io.File file = new java.io.File( fname ); Uri fil...

Single intent to let user take picture OR pick image from gallery in Android

I'm developing an app for Android 2.1 upwards. I want to enable my users to select a profile picture within my app (I'm not using the contacts framework). The ideal solution would be to fire an intent that enables the user to select an image from the gallery, but if an appropriate image is not available then use the camera to take a p...

Take and save picture on button press

I'm creating an Android application which uses user captured images as part of a larger process. So far my XML layout has a SurfaceView and Button inside a RelativeLayout. I've managed to get the camera preview to show on the SurfaceView but I'm stuck on how to take a picture and save it when a user presses the button. My class file loo...

Determine illuminance from RGB image

Is there a way to use camera (web camera or phone camera) as a light meter? Phone camera can grab image and get data in RGB format, but has anyone tried to determine illuminance value (in lux)? I am aware that there is no formula to do this (correct me if I am wrong), but is it possible to model it, and get an approximate value of illum...

Standardizing camera input in OpenCV? (Contrast/Saturation/Brightness etc..)

I am building an application using OpenCV that uses the webcam and runs some vision algorithms. I would like to make this application available on the internet after I am done, but I am concerned about the vast differences in camera settings on every computer, and I am worried that the algorithm may break if the settings are too differen...

CFBundleDocumentTypes and iPad camera connection kit (SD reader)

I am trying to register a custom document type in an iPad app, with the hopes that I can be prompted to work with files on an SD card attached to the iPad through the camera connection kit. Does anyone know if this is currently possible (or even for sure if it's not possible)? I was hoping that the Camera tab in Photos would use a docu...

Why Camera.setParameters(Camera.Parameters) does not work on Sony-Ericsson X10 and Droid?

Has anyone come across a strange behaviour with the Camera API when used on Sony-Ericsson X10 or Droid? For example the following code doesn't work on those devices. As a result I'm getting a lot of negative feedback on the Market translating into many cancelled orders... mParameters.set("rotation", orientation); mParameters.set("jpeg-...

Camera video stream inside CAOpenGLLayer

What I'm trying to achieve is to get the uncompressed camera video stream and to convert it into an OpenGL texture, to show it inside an CAOpenGLLayer. Is it the right flow? I thought to use a tecnique similar to the one proposed here to show movie video frames, but the following snippet is not working, at the end the tex coords are all...

How to create a 2D map of room by a few images/movie frames ?

I'd like to create a simple 2D map of a room by getting pictures (ceiling) of all directions (360° - e.g. movie frames), recognize the walls by edge detection, delete other unwanted objects, concat the images at the right position (cf. walls, panorama) and finally create the approximate 2D map (looking on it from above). Getting the scal...

Calculate lookat vector from position and Euler angles

I've implemented an FPS style camera, with the camera consisting of a position vector, and Euler angles pitch and yaw (x and y rotations). After setting up the projection matrix, I then translate to camera coordinates by rotating, then translating to the inverse of the camera position: // Load projection matrix glMatrixMode(GL_PROJECTIO...

iPhone app always crash while using 3G

My application always crashes if I use the camera to take a picture while connected to a 3G connection (not wifi). When I use wifi then it run perfectly. What is this problem ? ...

Picking images and videos on Android on 2.1 using ACTION_GET_CONTENT

I'm working on an app that needs to have the user select an image or video. On pre-2.1 devices, using ACTION_GET_CONTENT seems to work fine with multiple MIME types: new Intent(Intent.ACTION_GET_CONTENT).setType("video/*, image/*") However, on a Droid running 2.1, this gives a "There are no items in your collection". Using the same ...

How to open "front camera" on android platform?

More generally, If a device has more than one camera, is there any way to initializing it? I didn't find it in android reference doc. Samsung SHW-M100S have 2 cameras. If there is no reference to use 2 cams, Any idea how samsung did..? ...

Getting exposure values from iPhone camera

Exposure values from camera can be acquired when you take picture (without saving it to SavedPhotos). A light meter application on iPhone does this. What is the appropriate way to get these values? The aforementioned application does this on iPhone 3GS only, so I guess it may be somehow related to EXIF data which is populated with this...

Small picture retrieved from Camera although specified MediaStore.EXTRA_OUTPUT in 2.X

Hi everyone, I just don't get it: when I use the camera with an intent and also specify an output file, the returned image is always very small on many devices (e.g. Motorola Milestone 2.1, HTC Desire 2.1, Emulator 2.1, Emulator 2.0.1) but not on all (e.g. Nexus One). Here's what I do to bring up the camera app: private final static St...

Samsung UMPC, Built in Camera doesn't support DirectX how can I use it?

The Samsung Q1 Ultra, is the perfect device for my software except that the built in camera seems to be incompatible with standard DirectX drivers, so my .Net camera implementation can't use the device. I have limited experience in this area.. Even Skype can't access this camera, but a little program from Samsung can.. I've looked at t...

Retrieve default camera video extension from Windows Mobile

Is there any way to find out what is the default video extension for camera application? I am using CameraCaptureDialog to make the user use the camera and save the image to a specific file which then I consume in the application. However, there is a problem with the videos. Emulator gives .wmv video file while some devices I've been te...

Is Android 2.2 (froyo) going to support the front facing camera on the new phones?

HTC Evo 4G from Sprint has a front facing camera. The Sprint dev site has some info about it http://androidcommunity.com/sprint-sdk-for-htc-evo-4g-teaches-devs-to-use-front-video-cam-hdmi-more-20100324/ My question is: is the front facing camera SDK going to be included in Froyo? ...

android surfaceview camera preview

I am trying to resize a surfaceview on which I am displaying a video. That doesn't work on the nexus one -> after resizing the surfaceview, the screen is white. ...