iPhone SDK – How to disable the picture preview in UIImagePickerController?

I asked a similar question here My solution was to create a customized view on top of the default UIImagePickerControllerView. I downloaded the example Augmented Reality Then you can use the OverlayView.m and OverlayView.h by adding them to your project: I made the custom picker toolbar, picker and overlayView global so that I can access … Read more

Camera : setDisplayOrientation function is not working for Samsung Galaxy ACE with Android 2.3.6

When I had a similar problem with the original Galaxy Tab running 2.2.1, I was able to solve it by doing the following: Camera.Parameters parameters = camera.getParameters(); parameters.set(“orientation”, “portrait”); parameters.setRotation(90); camera.setParameters(parameters); However, it looks like you may have already tried that exact combination, given that you have identical (but commented out) code above. However, the … Read more

Take a photo automatically without user interaction

Android does not allow you to take picture without showing the preview window. So you have to make the surface view very small. Like 1*1 pixel and put it in a corner of any control. Or show a dummy surface view to do this. SurfaceView view = new SurfaceView(this); c.setPreviewDisplay(view.getHolder()); c.startPreview(); c.takePicture(shutterCallback, rawPictureCallback, jpegPictureCallback); Check … Read more

OpenCV with GigE Vision Cameras [closed]

Gig-E is a communication standard for a wide range of cameras. OpenCV now contains a wrapper for The Prosilica Gig-E based cameras (see CV_CAP_PVAPI) But in general it’s better to use the camera’s native API to get the data and then use openCV to convert the returned data into an image, openCv contains a number … Read more

Is there a good tutorial for implementing an augmented reality iPhone application? [closed]

I doubt exactly such a thing exists, but what you need to do is look at the location and camera frameworks for the iPhone, and go from there. Basically, you will create a UIImagePickerController (the Camera class) and overlay information on the view, via a custom .cameraOverlayView (which is a property of UIImagePickerController in 3.0). … Read more

Getting rotation from ExifInterface always returns 0

Try to use the information in the content cursor. float photoRotation = 0; boolean hasRotation = false; String[] projection = { Images.ImageColumns.ORIENTATION }; try { Cursor cursor = getActivity().getContentResolver().query(photoUri, projection, null, null, null); if (cursor.moveToFirst()) { photoRotation = cursor.getInt(0); hasRotation = true; } cursor.close(); } catch (Exception e) {} if (!hasRotation) { ExifInterface exif = … Read more