camera

Effective way to calculate the up vector for gluLookAt which points up the y-axis the most?

Hello, I need to create an up vector for when the camera looks at any angle (except directly down or up because the up vector would be perpendicular to the y-axis). The up vector has to be perpendicular to the line of sight of-course. When the line of sight isn't along the y-axis, you can imagine a circle around the eye and the line of ...

How to allow only iPhone 4 to use app since it uses front camera

Hello I was wondering how to only let iPhone 4 use my app which uses the front camera. Can I do a + (BOOL)isCameraDeviceAvailable:(UIImagePickerControllerCameraDevice) and how do I implement it so that it gives some sort of error if it returns no or do I have to a NSString *DeviceType etc.. if iPhone 4 ... do nothing if else ... ...

android opengl view (with camera preview) is not visible after activity resumed

i overlapped opengl view and camera preview, and it shows everything at fresh start. but after backed from child activity (after onResume()) opengl objects not appeared anymore. i found some discussion about this weird problem, but i can't use following solution, because i should call child - map activity. http://groups.google.com/gro...

Tap to focus on camera apps, Supposedly not possible, but a bug in my app enables it (although useless)

Hello I would like to get tap to focus in my app and the controls are hidden Supposedly this is impossible but I know its not. I have a simple iAD dragged into an overlay, no code or anything. When I click on the iAD nothing. but when I close it with the home button I get a modal exit of the nonexistant iAD and the camera apps relaunch...

iPhone iOS4 low-level camera control?

Is there a way to manually set low-level still-camera settings like shutter speed, aperture, or ISO in iOS4 on the iPhone 4? I don't think it exists in the official SDK but perhaps someone has found some private APIs to allow this? I find my iPhone 4 camera to be unusable because even in fairly decent lighting, it always insists on shoo...

Limit camera pitch

How can I efficiently limit camera pitch when I have only camera quaternion? Do I have to convert to euler angles and then back to quaternion or is there any other way? ...

How to capture an image and store it with the native Android Camera...

I am having a problem capturing an image and storing it from the native camera app. Here is a sample of some of my code. _path = Environment.getExternalStorageDirectory() + "make_machine_example.jpg"; File file = new File( _path ); Uri outputFileUri = Uri.fromFile( file ); Intent intent = new Intent(android.provider.MediaStore.ACTION_...

Android Camera Preview Stopping Audio

I'm trying to play a song snippet in an Android app which includes a camera preview. But whenever I start a song playing with MediaPlayer mp = MediaPlayer.create(this, R.raw.song1); mp.start(); It always stops after ~.5seconds I have come to the conclusion that it is something about the camera preview that is stopping the musi...

How to use this virtual camera driver ?

If you download the vcam from http://tmhare.mvps.org/downloads/vcam.zip will see inside /Bin directory it's VCamD.ax and VCam.ax How are these files supposed to run? The link is from an answer from my previous question here ...

Create bitmap from camera preview in Android

Hi there, I'm new to Android and am trying to create a custom camera filter. My initial thought was to access the frame data directly but this does not seem possible in 2.1 Eclair (I don't have access to Froyo hardware yet) - please correct me if I'm wrong. Instead, I am now trying to reproduce the camera preview by creating and displ...

Forcing android camera resolution

In my android app, I would like to be able to limit the maximal resolution (or size in mb) of a picture being taken. here is how i call the camera activity : Intent intent = new Intent( MediaStore.ACTION_IMAGE_CAPTURE ); intent.putExtra( MediaStore.EXTRA_OUTPUT, Uri.fromFile( new File( mTmpFilePath ) ) ); intent.putExtra( "filename", ...

How can I check if there is enough memory to process a picture captured by UIImagePickerController when taking multiple pics with the camera?

I am writing an application that uses UIImagePickerController to take multiple pictures with the camera as fast as iOS allows. My application has to run on iOS 3.13 on all versions of iPhone hardware (v1 through 4). I am using UIImagePickerController with a cameraOverlayView. My question is, how can I determine programmatically how man...

Problem with the camera

Hi @ll I am currently developing an app which is using the UIImagePickerController for taking pictures with the build in camera. What I no want to do, is to provide the user a switch on bottom bar of the UIImagePickerController to be able to switch between the front and the rear camera (if available of course). I know how it's possible...

How to use multiple Cameras with TouchLib

Hi there, has anyone ever used multiple cameras with the Touchlib? Seems to be working somehow, i found a blog article about the multi-camera setup by some guy called Alex Popovich in a blog entry. In the article, they are talking about custom PS3 Cam drivers, which sounds great because i am using PS3 Cams, too. But i started to think,...

Android TouchEvent Camera and Video?

I have a camera view over a video view in my android application. I want to use touch for both views. For Example: If i touch the camera view, i want to perform specific actions for camera view. Similarly the Video view. Kindly, tell me how to perform touch events for both the views at the same time. | VideoView | | _ | |...

Using the iphone camera

What is the best way to use the iphone camera in your app? I would want to allow the user to take an image, then either retake or save. Where do the pics get saved to? Can I assign a name to a captured image? Thanks ...

World space to screen space (perspective projection)

Hi there, I'm using a 3d engine and need to translate between 3d world space and 2d screen space using perspective projection, so I can place 2d text labels on items in 3d space. I've seen a few posts of various answers to this problem but they seem to use components I don't have. I have a Camera object, and can only set it's current p...

Why is my UIButton not apeparing my my cameraOverlayView?

Hi guys, been looking at this for days.. - (void)viewDidAppear:(BOOL)animated { #if !TARGET_IPHONE_SIMULATOR UIButton *returnButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; returnButton.frame = CGRectMake(0, 0, 100, 100); [returnButton setTitle:@"Tap here to return" forState:UIControlStateNormal]; [returnB...

iPhone UIImageView with Camera or Camera Roll Picker Memory Warning Level 2

Hi All. I'm soooooo close to finally finishing my first app to put in the store. Everything works just fine and memory leaks are almost totally nonexistent....except when I'm using the Camera or Selecting an Image from the Camera roll. If the user chooses the camera vs. the roll....the camera works fine...takes a picture and then when...

Setting camera image size in Android.

At the moment I am attempting to set my camera on my Motorola Droid phone to take an image that matches the size of my screen (854 x 480 pixels), and I am attempting to accomplish via the parameters for the camera as such: Camera.Parameters parameters = this.mCamera.getParameters(); Log.i(TAG, "CAMERA SIZE: (" + this.mCameraView.getWidt...