FaceDetector
FaceDetector copied to clipboard
how to tack picture?
hi i wanna tack picture and save to storage if face in camera how to do it?
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()
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());