camera

Should repeated use of the camera crash an app?

I have an app that builds a slideshow from user images. They can grab from their library or take a picture. I have found that repeated use of grabbing an image from the library is fine. But repeated use of taking a picture causes erratic behavior. I have been getting crashes but mostly what happens seems to be a reloading of the view ...

Image Size With J2ME on an HTC Touch2

I'm trying to ascertain wither there is a limitation on the camera access in the j2me implementation on the HTC Touch2. The native camera is 3MP however it seams that the quality is notably reduced when accessed via j2me, in fact it seams that the only size and format the .getSnapshot() method is able to return is a 240x320 pixel jpeg. I...

Need to open the SMS/MMS app and have an image pre-loaded into the text input in iPhone OS

Hello, I am trying to open the SMS/MMS app on the iPhone and have an image that is saved in the camera roll pre loaded into the text field. Is this possible? Here is the code I have tried: NSString *urlString = [NSString stringWithString:@"sms://asset/asset.JPG?id=1000000041&ext=JPG"]; NSString *escaped = [urlString string...

UIApplicationWillResignActiveNotification, how to know the interrupt source?

I'm writing a camera app. I'd like to know if the app is interrupted by SMS event or screen lock. I'd tried to inspect the NSNotification. Both the object and userInfo field give no hint. ...

3D modeling using camera

Hi, I'm looking for a sample code. It's 3D modeling using camera. like this: http://mi.eng.cam.ac.uk/~qp202/my_papers/BMVC09/ Hopefully, I want to use c or c++. Thanks. ...

android camera detection

How can I detect programmatically if a phone has a camera ? ...

Intercept touch on Camera button to control taking picture

Hello, I would like to intercept the touch on the camera button to control exactly when I take the picture by using takePicture. I still want to use the standard UI control (so I would prefer not having my custom controls in the overlay). Touch -> Button Clicked -> My code -> takePicture (ie. Apple code for taking picture won't be call...

Rendering a 2D Map in a Game - Cropping and Scrolling

OK. I'm in essense trying to make my own interpretation of the NES hardware, so I can make a game that ideally would resemble what a NES game would look like. I'm currently stuck with how to adjust how to draw the playfield to the video memory (back buffer). BACKBUFFER The NES had restrictions on the nametable, or backbuffer. For my ...

cameraOverlayView of a camera's UIImagePickerController: remove subviews from it doesn't work.

Hello, I'm developing an Augmented Reality application for iPhone. It's a "Tab Bar Application" with two buttons. The most left button show the camera, and the right button show a tableView. I use camera's UIImagePickerController with an cameraOverlayView. I use this view to draw another views. I use these views to show locations visib...

Is it possible to apply a CGAffineTransform to a UIImagePickerController?

Hello! I'm playing around with the camera and I've tried to transform the camera preview (being displayed by UIImagePickerController) using CGAffineTransform. So I first create the controller, set its resources and present it. I've tried applying the transformation both before and after the view is presented... When I run the code, no ...

UIImagePicker is being obstructed by UITabBar

I have created a Tabbar app where my Uitabbar is located in the app delegate. I am displaying a UIImagePicker and enabling the camera using iPhone SDK 3.0. How can I get the camera to: 1. Resize to smaller height above the tab bar. 2. Effectively hide the UITabbar so camera button shows up on bottom. I have tried many things that have b...

Android Records a Video into SDCard

Hi, I am trying to record a video into sdCard. But everytime I click on the Button to record, it shows "stopped unexpectedly" error. Not too sure where went wrong. I am not sure if setOutputFile's path is how I should indicate. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R...

How to detect camera un-plug in as3

Hi, I am facing problem with camera unpluging in as3. After detecting camera if I unpluged it then also in as3 can't recognise this unplug.Any solution? ...

Android save view to jpg or png

I would like to write an android app that basically layers an overlay on image on another image and then I would like to save the picture with the overlay as a jpg or png. Basically this will be the whole view that I would like to save. Sample code would be very helpful. EDIT: I tried out your suggestions and am getting a null pointe...

Android 2.1 Camera Application Weird Behaviour

Hello. I'm posting this question in the sequence of another question found here and a defect detected and mentioned at Google Code Defects. I use the Eclipse IDE with Android plugin for development, and when I try to run the Camera application from within the phone emulator, for an Android 2.1 phone, I get a weird small camera-window si...

Windows Mobile Augmented Reality

I am using visual studio 2008 professional , Windows Mobile 6 professional LG-KS20, I can use C# and C++, But specially I am facing problems in opening Camera and getting live frames then store these frame in some data structure for analysing using some ARToolkit. so please guide me and if possible send me Simple example code. ...

Hide/Show iPhone Camera Iris/Shutter animation

I am not able to Hide the iphone Camera shutter opening animation for my app. I am using UIImagePickerController to access iphone camera and using my own overlay controllers. Is there a way to remove the initial shutter(also known as Iris) animation as the camera starts. Thank You ...

Android Reduce Picture dimension Taken

How do I reduce the picture dimension taken in Android? By Default whenever I take a picture, the dimension is 2048x1536. Camera.Parameters parameters = camera.getParameters(); parameters.setPictureSize(1028, 768); This is how I should do it? ...

iPhone iOS 4.0 Camera FigCreateCGImageFromJPEG returned -1

Hi, Since I updated to 4.0, when I take a photo with my App using UIImagePickerController I get the following error output: * ERROR: FigCreateCGImageFromJPEG returned -1. Input (null) was 711733 bytes. I still get the image returned and can continue as normal, but does any body know what and why I get this error. I also get the fo...

UIImagePickerController camera freezes when flash goes off on iPhone 4

Using the camera to capture an image ... everything works fine UNLESS the flash goes off (which is does automatically in low light situations). Is anyone else seeing this? What, if any, solutions are there to this problem? Thanks ...