How to retrieve a new picture taken by the camera as OpenCV Mat on Android?
问题 I am trying to take a picture with an Android device. The picture must be converted as Mat to be an input for a computation of which I like to provide the results within an API. In which format does Android provide the byte[] data in it's callback and how to convert it to an OpenCV Mat in the color-format BGR? The first problem: "How to take the picture without a SurfaceView" is solved. I used a SurfaceTexture, which must not be visible. mCamera = Camera.open(); mCamera.setPreviewTexture(new