Questions tagged [image-capture]
374 questions
312
votes
18 answers
How to capture UIView to UIImage without loss of quality on retina display
My code works fine for normal devices but creates blurry images on retina devices.
Does anybody know a solution for my issue?
+ (UIImage *) imageWithView:(UIView *)view
{
UIGraphicsBeginImageContext(view.bounds.size);
[view.layer…

Daniel
- 3,331
- 4
- 19
- 17
50
votes
7 answers
Capturing a single image from my webcam in Java or Python
I want to capture a single image from my webcam and save it to disk. I want to do this in Java or Python (preferably Java). I want something that will work on both 64-bit Win7 and 32-bit Linux.
EDIT: I use Python 3.x, not 2.x
Because everywhere…

Matthew G
- 1,090
- 2
- 14
- 23
43
votes
5 answers
Images taken with ACTION_IMAGE_CAPTURE always returns 1 for ExifInterface.TAG_ORIENTATION on some Gingerbread devices
I had the orientation issue when working with ACTION_IMAGE_CAPTURE activity. I have used the TAG_ORIENTATION so that I would rotate the picture accordingly. But now we found that on some newer devices this doesn't work. In fact it returns 1 for all…

Tolga E
- 12,188
- 15
- 49
- 61
37
votes
6 answers
How to capture image from custom CameraView in Android?
i need to capture image from required portion of the screen.
capture image from camera.
at that time other screen content as it is.
how is this possible?

Mr.Sandy
- 4,299
- 3
- 31
- 54
26
votes
6 answers
How do I connect to a USB webcam in .NET?
I want to connect to a USB Webcam in .NET, specifically using C#. Being new to .NET I don't know what kind of support there is in the standard libraries for doing so. I found one example on the web that copies bitmaps through the clipboard, but that…
Garth
25
votes
6 answers
What is the best method to capture images from a live video device for use by a Java-based application?
I am looking into an image processing problem for semi-real time detection of certain scenarios. My goal is to have the live video arrive as Motion JPEG frames in my Java code somehow.
I am familiar with the Java Media Framework and, sadly, I…

Bob Cross
- 22,116
- 12
- 58
- 95
24
votes
5 answers
when take photo get - java.lang.Throwable: file:// Uri exposed through ClipData.Item.getUri()
The Exception is:
file:// Uri exposed through ClipData.Item.getUri()
java.lang.Throwable: file:// Uri exposed through ClipData.Item.getUri()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1618)
at…

Michael
- 395
- 1
- 2
- 8
22
votes
6 answers
java.lang.OutOfMemoryError - BitmapFactory.decode(strPath)
I am getting java.lang.OutOfMemoryError, whenever i am calling UploadActivity.java
Line Number 176 is:
Bitmap bm = BitmapFactory.decodeFile(strPath);
View my Log:
12-07 17:57:10.585: E/AndroidRuntime(16708): FATAL EXCEPTION: main
12-07…

Sun
- 6,768
- 25
- 76
- 131
13
votes
8 answers
Null pointer after capturing image using android camera
in my application,i am using android devices camera to capture an image. for some devices it works fine but some are not. I just tested it on LG nexus 4 E960, after i captured the image my application went crash without able to save the result.
this…

bohr
- 631
- 2
- 9
- 29
12
votes
2 answers
Enable Safety assistance emergency mode
Its a very interesting and new thing for me to implement and learn. There are some requirement of my application. For that I have searched a lot but couldn't find proper and valuable thing or links. So i am posting my question here. The…

Piyush
- 18,895
- 5
- 32
- 63
12
votes
3 answers
Is there any way other than thumbnail method to take a screenshot of an video in Iphone?
Is there any way other than thumbnail method to take a screenshot of an video? If yes then please tell me if not then please tell me how to resize an thumbnail image with a same resolution? i have getting an issue while taking screenshot of video.i…

Nikhil Bansal
- 1,545
- 13
- 29
11
votes
7 answers
How can I programmatically create a screen shot of a given Web site?
I want to be able to create a screen shot of a given Web site, but the Web site may be larger than can be viewed on the screen. Is there a way I can do this?
Goal is to do this with .NET in C# in a WinForms application.

Chris Craft
- 5,285
- 6
- 46
- 63
11
votes
5 answers
How do I read pixels from a PNG file?
I know how to capture a screenshot by using Robot, Windowtester or FEST. I also know how to read a pixel from the screen by using robot.
int x = 10;
int y = 10;
Color px = getPixelColor(int x, int y);
However, I don't know how to read a pixel from…
user793623
9
votes
1 answer
CameraX: Capturing photo as bitmap
I am experimenting with Googles CameraX sample app (CameraXBasic, can be found on Github) and would like to capture the image as a Bitmap to be able to make some modifications to the image before saving it. Does anyone have a suggestion on how to…

Mike
- 125
- 1
- 12
9
votes
2 answers
android webview page reloading after capture picture and Upload in android 5+
I followed this to capture Images form camera in webview
Here at this part its fine in android some versions and in some devices its working fine
But at android 5.0.1 when I capture image from webview its capturing and reloading the page again in…

Don't Be negative
- 1,215
- 3
- 19
- 46