Questions tagged [image-reader]

The ImageReader class allows direct application access to image data rendered into a Surface. This tag is to be used for questions relating to the android.media.ImageReader class in Java. Also include the "android" tag when you use this tag.

More information about this class can be found here.

43 questions
0
votes
1 answer

onImageAvailable callback called but acquireLatestImage returns NO_BUFFER_AVAILABLE

I am working on Camera2 API to take pictures continuously in native side in C and it's working fine except that sometimes after receivinf onImageAvailable callback, when calling acquireLatestImage, return is NO_BUFFER_AVAILABLE. As per Android…
0
votes
1 answer

(Camera2 API) Can I run 2 ImageReader instances of different configs at the same time?

I am modifying (Java) the TF Lite sample app for object detection. It has a live video feed that shows boxes around common objects. It takes in ImageReader frames at 640*480. I want to use these bounds to crop the items, but I want to crop them from…
0
votes
1 answer

Unable to read the EBCDIC 037 decoded image (Java)

I have a EBCDIC file from which i extracted images. However, there is some data on the images which is key source in identifying my transactions. Assume that i have an image as "stackoverflow logo" stored under name "img1.jpg" on my desktop and when…
0
votes
1 answer

How to access all Images in the ImageReader Queue using Android Camera2 API

In my project, I need to capture the frames of the camera streams continuously. Here is the current code snippet I used. To set up the ImageReader, I set the maxImages to 20. Let is every time when callback is triggered, there would have 20 frames…
Chen Chen
  • 11
  • 1
  • 5
0
votes
1 answer

Detach Image produced from ImageReader

I trying to create an Android App that using Camera2 API, as part of the functionality I want to develop a module that saving multiple images produced by ImageReader as followed: Image image = reader.acquireLatestImage(); I'm getting the followed…
LiorA
  • 53
  • 1
  • 12
0
votes
1 answer

How to get Image and Image Name from the file?

I set below codes for fragment tab. I am trying to get image and it's name from the file and adding in separate arraylists. I am getting images successfully but failed to get respective names. Everytime cursor is being null. What can I do ? public…
0
votes
0 answers

Is there an alternative to ImageReader

I'm working on a camera application where you can take a pic and save it. now im finished but realizied that the ImageReader-class is much to slow for my requirements. Is there another opportuniy to take the pic without an ImageReader?
user9068776
0
votes
1 answer

How does "ImageReader.getSurface()" work?

I am working with the camera2 API in android and am trying to understand this code I am using. Part of the code goes like this: previewReader = ImageReader.newInstance(previewSize.getWidth(), previewSize.getHeight(), …
Akaisteph7
  • 5,034
  • 2
  • 20
  • 43
0
votes
1 answer

Camera 2 API reduces the quality after capture

I am using Camera in my app to take pictures of ID cards, I have a rectangular overlay to which image will be cropped. issue is that the image quality is reduced once the image is captured. I am unable to figure out where exactly it is happening. In…
BRDroid
  • 3,920
  • 8
  • 65
  • 143
0
votes
0 answers

Use ImageReader surface for video stream without Camera2 API

I'm trying to get the video stream of a camera into an imagereader surface to be able to process these images. I found a lot of examples that deal with the camera2 API but I don't use that because my video stream comes from an external…
Peter
  • 19
  • 1
  • 9
0
votes
1 answer

How to map getFrameNumber of CameraResult for Image receive from ImageReader Camera2

I need getFrameNumber for Image object received from ImageReader for my camera2. Currently, I received different timestamp for the following code so due to that, I am not able to map getFrameNumber of CameraResult callback. …
Herry
  • 7,037
  • 7
  • 50
  • 80
-1
votes
1 answer

In Android Camera2 API. Can I use a image reader (YUV_420_888) for processing and another(JPEG) for capture still image?

I try but preview freeze when I press the capture button and no image created. Any suggestion ? How many imagereader can I use in one Camera2 project?
-2
votes
1 answer

how to get rid of exception class: NoneType?

# Read in the image from google.colab import drive drive.mount('/gdrive') filepath='gdrive/MyDrive/image.png' image = cv2.imread(filepath) print(type(image)) While running this i am getting Class "NoneType" . Where i am failing in reading image…
sandeepa
  • 21
  • 5
1 2
3