Questions tagged [image-capture]

374 questions
1
vote
0 answers

onActivityResult not getting called after changing the intent for (Save the full-size photo)

Im following the official documentation to capture the image and gets its path. https://developer.android.com/training/camera/photobasics I have write 100% same code as the documentation say, but two weird things are happing when I write the simple…
1
vote
2 answers

Android Image Capture action (aka ActivityResultContracts.TakePicture()) always returns landscape photos

I am trying to capture photos in my app using standard camera app intent (I am NOT interested in using JetpackX or other library to have a viewfinder in my app). When I had the code in my Fragment like so: // This is in response to user clicking a…
zaitsman
  • 8,984
  • 6
  • 47
  • 79
1
vote
0 answers

Obj-c: How do I capture an image in an iOS app programmatically and push it?

My app (iOS obj-c) displays a graph that tracks a user's breath during a test. When the test is complete, I want to send an image of the graph to a database. How do I capture the graph as an image from the app display, and how do I push an image…
1
vote
1 answer

Android ActivityResultContracts.TakePicture() Permission Denied

I'm using the latest Android Activity Result API for taking pictures with the device camera: private val takePictureActivityResult = registerForActivityResult(ActivityResultContracts.TakePicture()) { isSuccess -> if…
jilbot
  • 93
  • 8
1
vote
1 answer

how to capture frames every 5 seconds from real time video in swift

I'm new to swift and want to analyze the image from a real-time video, but most answers explained how to capture each frame of video, the code is below, I want to extract image every 5(or N) seconds, how to revise the code. func captureOutput(_…
lonia QL
  • 11
  • 1
1
vote
1 answer

Capture Detected Face Square Only JS

I'm running a face detection model via JS in the webcam, it recognises the face and draws the box correctly. How can I then go about saving the detected face only as an image locally to my computer? Im grateful for any help! Im stuck! The code (from…
ParisIo
  • 49
  • 9
1
vote
1 answer

Javascript - imageCapture.takePhoto() function to take pictures

I am building an web application for my experiment purpose. The aim here is to capture ~15-20 frames per second from the webcam and send it to the server. Once the frame is captured, it is converted to base64 and added to an array. After certain…
hackmyacc
  • 65
  • 1
  • 12
1
vote
0 answers

How to get game images when they are not currently active window

I want to get the game images of world of Warcraft when it's in an inactive window or minimized state.I try to use Win32 API to capture game images, The results were as follows:I can capture normal GUI software images, but can not get game images,…
danny
  • 11
  • 1
  • 6
1
vote
0 answers

Android: How to get a grayscale byte array from ImageCapture on CameraX?

I'm trying to get a grayscale byte array from CameraX ImageCapture use case in Android java. What I've tried so far is to convert the byte array received in onCaptureSuccess, with no success. Surprisingly, there is not much documentation about this…
moun
  • 19
  • 1
  • 5
1
vote
0 answers

Capture CameraX preview frame to Bitmap

I am trying to have a workaround with Google's Camera API - CameraX, because older devices do not support multiple use cases (ImageCapture and VideoCapture). So i want to take a picture capturing the preview frame and convert it to bitmap without…
1
vote
3 answers

SDK for writing DVD's

I need to add DVD writing functionality to an application I'm working on. However it needs to be able to write out files that are being grabbed "live" from a camera, over a long period of time. I can't wait until all the files are captured before I…
Matt Warren
  • 10,279
  • 7
  • 48
  • 63
1
vote
1 answer

Open front camera by default

I am creating an app, in which I am setting a profile image and cover image ,so on setting profile image I want to open the front camera by default using intent. I am using pictureIntent.putExtra("android.intent.extras.CAMERA_FACING",1); Its…
1
vote
2 answers

How to capture the image and save it in sd card

hey guys i am using the following code to access camera from my application. The application is able to access the camera i have also added a button whose onclicklistener adds this line of code :- camera.takePicture(mShutterCallback,…
abhishek
  • 1,434
  • 7
  • 39
  • 71
1
vote
1 answer

Terminate a Python script after a time period

My code does capture images every 2 secs. But the problem is it runs endlessly. I need the script to terminate or close at a time period (i.e like terminate or close after 50secs). I tried using sleep() but suspects that doesn't terminate the whole…
user11066068
1
vote
1 answer

Cannot preview captured high quality image

I'm following android developers guide to capture a high quality image and save it into the storage then display it. The issue is after capturing the image I get redirected to the main activity without displaying the preview though the image was…
PHP User
  • 2,350
  • 6
  • 46
  • 87