Android rectangle show on camera

Hi, I want to show the rectangle in the camera, so when the user accepts the snap, only the area inside the rectangle can be processed. Any idea how I can do this? The size of the rectangle can be changed by dragging in the corners.

I do not call the camera application. I am using the camera API.

+3
source share
3 answers

Hi, I solved the problem using this tutorial, see here. If at some point the link disappears, I saved the pdf here

+7
source

, , . , onPreviewFrame, . ViewfinderView Xzing . CameraConfigurationManager, PreviewCallback, CameraManager xzing, , . , .

+1
source

All Articles