1,782 questions
340
votes
19
answers
726k
views
Capture Image from Camera and Display in Activity
I want to write a module where on a click of a button the camera opens and I can click and capture an image. If I don't like the image I can delete it and click one more image and then select the ...
173
votes
14
answers
199k
views
Android ACTION_IMAGE_CAPTURE Intent
We are trying to use the native camera app to let the user take a new picture. It works just fine if we leave out the EXTRA_OUTPUT extra and returns the small Bitmap image. However, if we putExtra(...
67
votes
8
answers
100k
views
Android Camera Intent: how to get full sized photo?
I am using intent to launch camera:
Intent cameraIntent = new Intent(
android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
getParent().startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST);
and ...
199
votes
15
answers
167k
views
How to save picture to iPhone photo library?
What do I need to do to save an image my program has generated (possibly from the camera, possibly not) to the system photo library on the iPhone?
13
votes
2
answers
17k
views
Three.js camera tilt up or down and keep horizon level
camera.rotate.y pans left or right in a predictable manner.
camera.rotate.x looks up or down predictably when camera.rotate.y is at 180 degrees.
but when I change the value of camera.rotate.y to ...
111
votes
5
answers
332k
views
Setting Camera Parameters in OpenCV/Python
I am using OpenCV (2.4) and Python (2.7.3) with a USB camera from Thorlabs (DC1545M).
I am doing some image analysis on a video stream and I would like to be able to change some of the camera ...
28
votes
1
answer
59k
views
How to use web camera in android emulator to capture a live image?
As far as i know, Android emulator doesn't have a camera. To capture a live image we have to use the web camera. I have seen code in this web site to use the web camera in the android emulator to ...
249
votes
11
answers
422k
views
How to access a mobile's camera from a web app?
In my web app (not native app) for mobiles, I want to take a photo and upload it, but I don't want to use Adobe Flash. Is there any way to do this?
30
votes
8
answers
39k
views
didFinishPickingMediaWithInfo return nil photo
I am working to capture an image that is returned in 4.0 using
- (void)imagePickerController:(UIImagePickerController *)picker
didFinishPickingMediaWithInfo:(NSDictionary *)info
{
[[picker ...
66
votes
7
answers
220k
views
Taking pictures with camera on Android programmatically
I have created an app with a button and wrote onClickListener for that button. I have tried several sample code examples and none of them worked. They all bring up the Android camera app and don't ...
24
votes
6
answers
31k
views
Take Screenshot of SurfaceView
Am developing a simple camera app. I have code that takes screenshot of the whole activity and writes it to the SD card. The problem is that the SurfaceView returns a black screen.
I would like to ...
103
votes
16
answers
68k
views
UIImagePickerController error: Snapshotting a view that has not been rendered results in an empty snapshot in iOS 7
I am getting this error only in iOS 7 and the application crashed.
In iOS 6, I never get any error, just once of memory warning when opening the camera.
Snapshotting a view that has not been ...
39
votes
3
answers
51k
views
Android: Switch camera when button clicked
I have a method called switchCamera, I'm trying to switch camera from front to back on the click of a button, in one smooth transition. My application freezes when I call this method - I know I'm not ...
33
votes
9
answers
18k
views
PhoneGap camera restarts the application
I'm using PhoneGap's navigator.camera.getPicture function to retrieve a photo from the device's camera on Android.
function onSuccess(imageData) {
alert("Success!");
}
function onFail(message) {
...
98
votes
9
answers
89k
views
AVFoundation, how to turn off the shutter sound when captureStillImageAsynchronouslyFromConnection?
I am trying to capture an image during a live preview from the camera, by AVFoundation captureStillImageAsynchronouslyFromConnection. So far the program works as expected. However, how can I mute the ...
27
votes
3
answers
26k
views
Face Detection in Android?
I am currently working on an experimental camera app. I'm looking into implementing face detection at the moment and am currently weighing up my options.
I have considered the OpenCV port available ...
88
votes
9
answers
203k
views
Using Camera in the Android emulator
I wish to simulate camera in the android emulator using the webcam. Basically I need to only take photos with the camera in the emulator (live preview is not needed i.e if it makes it any easier)
I ...
55
votes
13
answers
27k
views
Get last image from Photos.app?
I have seen other apps do it where you can import the last photo from the Photos app for quick use but as far as I know, I only know how to get A image and not the last (most recent one). Can anyone ...
39
votes
6
answers
82k
views
Android: Overlay on Android Camera Preview
I'm using Camera API and invoking the camera.
I want to display a header (for branding) on the top of the camera preview. The header is a jpeg image.
Is it possible? Any help appreciated.
...
18
votes
1
answer
66k
views
Custom camera android
I want to use camera preview in an activity. I want to add images(transparent frames on surface view). I tried following code so that i can easily customize the xml layout desirably:
package com.demo;...
16
votes
1
answer
9k
views
How to join png with alpha / transparency in a frame in realtime
I'm working under the example of OpenCV android 2.4.11 which detects faces using the camera.
Instead of drawing a rectangle on the face found, I'm trying to put a mask (png image) on the face.
But to ...
14
votes
1
answer
33k
views
List all camera images in Android
How do you get a list of all camera images of an Android device?
Is it through the MediaStore? How?
190
votes
14
answers
219k
views
NSCameraUsageDescription in iOS 10.0 runtime crash?
Using iOS 10.0 last beta. I had tried to use Camera to scan barcode in my app, and it crashed with this runtime error.
This app has crashed because it attempted to access privacy-sensitive
data ...
49
votes
10
answers
116k
views
Is it possible to measure distance to object with camera?
Is it possible to measure distance to object with phone camera?
I mean, in my application I start the camera, facing the camera to the object (lets say house) and then press the button and it ...
32
votes
5
answers
62k
views
Overlay images onto Camera preview SurfaceView
I have a SurfaceView that is being used to draw images, and I would like to overlay them onto a live-feed from the phone's camera.
Currently, the SurfaceView that contains the images have a white-...