FaceDetector icon indicating copy to clipboard operation
FaceDetector copied to clipboard

how to tack picture?

Open siavash-sajjad opened this issue 7 years ago • 2 comments

hi i wanna tack picture and save to storage if face in camera how to do it?

siavash-sajjad avatar Oct 12 '18 12:10 siavash-sajjad

FaceProcessor processor = FaceProcessor.with(this)
                .listener(this::processFaces)
                .build();

In the processFaces you will get rectangles of detected faces.

Now you just have to implement

                    fotoapparat
                            .takePicture()
                            .saveToFile()

KMKnation avatar Jan 01 '19 09:01 KMKnation

you can do like this do not use FaceProcessor .

faceDetector = FaceDetector.create(this); faceDetector.detectFaces(frame.getData(), frame.getSize().getWidth() , frame.getSize().getHeight(), frame.getRotation());

chinaltz avatar Jan 12 '19 01:01 chinaltz