SamRowley
SamRowley

Reputation: 3485

Sample camera images as bitmap Android

I am trying to create an app which periodically samples an image in the camera(preview?) and then does some processing on this image (i.e. face detection). I think this is the way to go about this., I have looked into OpenCV but don't think my knowledge is quite up to scratch to get it implemented well enough. My idea is to sample the image (raw format?), convert this to a bitmap image which then a FaceDetector object can detect the faces in the image and indicate this on screen.

Very much like the Native Camera app on the HTC Desire, which puts a grey square around the faces it sees before taking the picture.

Upvotes: 4

Views: 1719

Answers (1)

Will Tate
Will Tate

Reputation: 33509

Sam,

A sample is provided for capturing the preview stream from the camera: CameraPreview

This would be a great place to start.

Upvotes: 1

Related Questions