Sample camera images as an Android bitmap

I am trying to create an application that periodically displays an image in the camera (preview?), And then does some processing on that image (i.e. face detection). I think this is the way to do it. I studied OpenCV, but I don’t think that my knowledge is enough to scratch it so that it is implemented well enough. My idea is to try the image (raw format?), Convert it to a bitmap, which then the FaceDetector can detect faces in the image and point it to the screen.

Very similar to the Native Camera app on HTC Desire, which puts a gray square around the faces that it sees before taking a picture.

+4
source share
1 answer

Sam,

To capture the preview stream from the camera, a sample is proposed: CameraPreview

This will be a great place to start.

+1
source

Source: https://habr.com/ru/post/1337329/


All Articles