Questions tagged [image-capture]
374 questions
3
votes
1 answer
How to capture a Direct3D/WPF/DWM window into a bitmap?
The normal way to capture an image of a window is to call:
HDC SharedWndDC = GetWindowDC(SharedWnd);
BitBlt(BitmapDC, 0, 0, width, height, SharedWndDC, 0, 0, SRCCOPY /* |CAPTUREBLT */);
ReleaseDC(SharedWnd, SharedWndDC);
Which on a system running…

JDługosz
- 5,592
- 3
- 24
- 45
3
votes
0 answers
Android, debugging MediaStore.ACTION_IMAGE_CAPTURE Intent
I am trying to take a picture with MediaStore.ACTION_IMAGE_CAPTURE intent in the following way:
String fileName = "testphoto.jpg";
ContentValues values = new ContentValues();
values.put(MediaStore.Images.Media.TITLE,…

unorsk
- 9,371
- 10
- 36
- 42
3
votes
0 answers
capture v4l : no capture device - but Video Capture Multiplanar?
I would like to capture images from a camera. I used the usual v4lgrab example (https://www.kernel.org/doc/html/v5.4/media/uapi/v4l/capture.c.html) but fail. I get a message that it is not a capture device.
Taking a closer look it is "Video…

Arno
- 257
- 1
- 10
3
votes
0 answers
Draw a rectangleBox on CameraX preview and capture only that area
I want to open the camera with a rectangle border over it. And capture only the rectangle area image. The rectangle border can resize as per the user's choice.
Tried with many SO link but still no answer.
Below is the SO link that I want to…

Sagar Gangawane
- 1,985
- 1
- 12
- 22
3
votes
2 answers
Detect if picture of picture taken in mobile app
I am working on a face recognition app where the picture is taken and sent to server for recognition.
I have to add a validation that user should capture picture of real person and of another picture. I have tried a feature of eye blink and in…

Saraz
- 524
- 7
- 16
3
votes
1 answer
python video capture loop
I've written a simple script to continuously capture snapshots from my webcam. My only issue is the videocapture module doesn't always grab an image which in turn crashes the program. I think I could solve this by using an infinite loop but I'm not…

Blomkvist
- 35
- 1
- 4
3
votes
1 answer
Faster MediaStream ImageCapture (read media stream as buffer in nodejs)
Edit: I need to do this live. I can't wait until the stream ends.
I get MediaStream object from electron's desktopCapturer:
navigator.mediaDevices.getUserMedia({
audio: false,
video: {
mandatory: {
chromeMediaSource: 'desktop',
…

Michal
- 4,952
- 8
- 30
- 63
3
votes
1 answer
Convert Color32 array to byte array to send over network
I have been working on webcam streaming for video and photo capture on Android devices within Unity3D. Most of the examples I have found in order to capture webcam feeds use a specific WebCamTexture object in order to get access to the devices…

Nate Farrell
- 31
- 1
- 4
3
votes
3 answers
Not able to load image when captured from Camera second time
I have been using Camera Intent to capture images. For the first time it works perfectly and I am able to capture image and show that in ImageView. But when I try second time to capture a different image it still shows the same old image.
Here is my…

John Joe
- 12,412
- 16
- 70
- 135
3
votes
0 answers
How to make twain drivers of Twain scanner to be detected by Image Capture in Mac OS X (cocoa programming)
I am having the twain drivers(Mac Compatibility) of the twain scanner(panasonic). I installed the divers into my Mac machine and the drivers were installed in the path : Library ▸ Image Capture ▸ TWAIN Data Sources folder.
After the installation of…

Monish Kumar
- 2,788
- 4
- 38
- 54
3
votes
2 answers
How to get Image Object using Cordova?
When use use getPicture either we get a relative URL or base64image. But I want to send a image object to Amazon S3. Anyway to do that ?
Here is how I am getting the base64image
// A button will call this function
//
function capturePhoto() {
//…

Sumit Sahoo
- 2,949
- 1
- 25
- 37
3
votes
1 answer
Java - Capture images from digital camera
I am looking to develop a little Java piece that can capture an image using a digital camera and I can't find a suitable API - I know this is duplicating similar questions but they are old, and after finding lots of old old threads everywhere…

Phish
- 774
- 3
- 11
- 27
3
votes
1 answer
Crop an image using scaling and dragging the rectangle
I am new to android and i want to learn how to implement crop image using rectangle that can be dragged and scaled over the image and finally crop image with rectangle boundaries(the same crop activity used in whatsapp profile picure change).…

Jagadish Dabbiru
- 930
- 9
- 22
3
votes
2 answers
ImageCaptureCore error -9933 when ICScannerFunctionalUnit set to scan in black & white
I'm making an application to easily scan to multiple page pdf files. The project is on GitHub, just in case you want to have a look at all of the project code.
I'm having an issue with scanning in black & white.
This is the method that gets called…

levidhuyvetter
- 401
- 5
- 16
3
votes
1 answer
Cross-browser still image camera capture
On a web page, I need to be able to capture a still image from the users webcam or phone camera. It looks like getUserMedia() is only supported by Firefox, Opera and Chrome and I wasn't able to find a still image capture example using it. Flash…

George
- 934
- 2
- 10
- 21