camera

Determine angle of view of smartphone camera

I'm trying to determine the degree size of the field-of-view of a Droid Incredible smartphone's camera. I need to know this value for an application that I'm developing. Does anyone know how I can find out/calculate it programmatically? ...

The class or interface 'flash.utils.ByteArray' could not be loaded.

Hi there.. I am a total Flash newbie. I just installed Flash CS5 and ran this code. import flash.display.BitmapData import flash.geom.Matrix import com.adobe.images.JPGEncoder; import flash.net.FileReference; import flash.utils.ByteArray; //get the default camera //change your Default camera using the Flash Player Settings. cam=Camera...

How to get the width and height of the iphone camera

Is there a way to retrieve what width and height the iphone camera is sampling at? I am targetting iOS4 and don't know what the width or height are until I get into the didOutputSampleBuffer delegate. Here is the code that actually gets the width and height in the delegate: - (void) captureOutput:(AVCaptureOutput*)captureOutput did...

iPhone SDK - How to take a picture with custom camera view?

Hi, I want to release the shutter as soon as the user tabs on the screen. I have working code for displaying the camera in fullscreen mode. How can I trigger the shutter by a touch? - (IBAction) takePicture { if (!self.imgPicker) { self.imgPicker = [[UIImagePickerController alloc] init]; self.imgPicker.allowsEditin...

Android Camera, internal Listoption?

Hey guys! When you are taking a picture on an and device, you can send it. There are apps, which are pushing their actions into these send-list (Like Twidroid, which adds a listitem called "Send Tweet" in that menu). So, how is it possible to add such a menu point into that menu? For my app, I want to make it possible to take pictures f...

Camera Preview on Galaxy S

I have an app which uses the Camera, sending the preview to a SurfaceHolder. Everything works fine on the HTC Desire that I have been developing on, but when I run it on a Samsung Galaxy S the image from the preview is rotated 90 degrees. The code attempts to match the best Size returned from the parameters.getSupportedPreviewSizes(), ...

Android - picture taken different from preview

I have a camera app, in it's simplest state it's nothing more then the cameraPreview example with some 'takePicture' code. The link to the example online is for 2.0, and i'm developping against 1.5 (API lvl 3), but still, here it is: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPrevi...

location of camera picture on android

Do all android phones have a similar location to store camera pictures ? What is the role of EXTERNAL_CONTENT_URI vs. INTERNAL_CONTENT_URI ? If I want to have results from both data sources in one cursor query is that possible ? ...

Why does the Camera server crash randomly?

I've implemented a basic picture taker for the Camera on my Android device. For some reason I randomly get these error messages: W/Camera ( 2097): Camera server died! W/Camera ( 2097): ICamera died E/Camera ( 2097): Error 100 Fortunately, Android has an OnError handler you can set on the Camera, which gets called when the server ...

Hiding UIToolBar when calling camera (UIImagePicker)

I have created a UIToolBar using the IB. In one view, I have called the camera and the camera controls are masked by the toolbar. I have tried several methods to hide the toolbar - alpha=0, toolBarHidden, hidesBottomBarWhenPushed and thought how I could re-size the camera view to allow the camera controls to be used. All with no luck....

Android: Connecting webview with camera

I'm having difficulty setting up the webview so that there can be javascript callbacks to access the android camera. Has anyone done this before, or have any advice? ...

Android Camera Preview question

Hello all. I am writing a program to study Android Camera functions. Now, I have some problems about Camera preview operation: My program will create a surfaceview object in the main activity (ActivityMain)'s onCreate() function and then set it to the content. super.onCreate(savedInstanceState); m_surface = new MyCameraSur...

android camera problem double click

I have the entire code here . Below are the important stuff.The problem is:I have the camera take a picture when i tap on the surface and store the image to sdcard.If i click 2 or more times before the camera stores the picture the camera freezes and the phone need a restart.I think i have all the release stuff correct.I even implemented...

Is there a simple way to turn the byte array from the camera's onPreviewFrame into a picture in android?

I ask if there is a simple way because there is a google issue report saying that using decodeByteArray isn't possible. But that report originated in 2008 and I was hoping there was a solution not posted on there. The method listed on the issue report was to decode the format yourself, but I'd prefer to not have to put that in and slow d...

iPhone SDK - How to hide cameraOverlayView before using UIGetScreenImage?

I'm trying to take a full screen image of the camera picture without having the overlay ontop. In my overlay controller I have tried to hide the overlay with this lines of code: [self.view setHidden:YES]; [self.view setNeedsDisplay]; CGImageRef screen = UIGetScreenImage(); UIImage* image = [UIImage imageWithCGImage:screen]; CGImageRele...

find Faces Camera android

Hi Im working on and Augmented reality app for android 2.2 but i want in integrate a face recognition module... i try to use the findFaces method from FaceDetector class but it recive a bitmap... and i want to send a camera preview any idea? thnks ...

iPhone Camera Subview

When calling the camera, what is the subview layer? I am trying to bring the camera view and its controls to the top of the views....because I am still trying to solve the UIToolbar at the bottom of my view hiding the camera controls. Any other suggestions or code would be appreciated. ...

Perspective projection - how do I project points which are behind 'camera'?

Hi everyone, I'm writing my own software rasterizer in Java, and I ran into some trouble with it... take a look at a sample image, please: Image This sample just draw simple square grid on a plane. Everything works fine until I move camera close enough for some points to move behind it. After that, they're no longer projected correctl...

iPhone: AVCaptureSession capture output crashing (AVCaptureVideoDataOutput)

I'm capturing video and converting it to a CGImage to do processing on it. It will work for a ~10 seconds, get memory warning and then crash (usually it says data formatters were temporarily unavailable). Can someone help me solve the problem? - (void) captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferR...

BitmapFactory.decodeByteArray() is returning NULL

I am using the previewCallback from the camera to try and grab images. Here is the code I am using private Camera.PreviewCallback mPrevCallback = new Camera.PreviewCallback() { public void onPreviewFrame( byte[] data, Camera Cam ) { Log.d("CombineTestActivity", "Preview started"); Log.d("CombineT...