How to transfer data from camera2 in real time? Tell me, please. Already this way and that I torment ImageReader , but nothing happens. I try to add mImageReader to
mCameraDevice.createCaptureSession(Arrays.asList(... then the camera flies (if in addition to the surface I substitute in createCaptureSession mImageReader.getSurface() use camera2basic as an example, but nothing happens. I do everything on it.
If you leave mImageReader.getSurface() uncommented, then the camera image will be displayed. What am I doing wrong?