Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to tack picture? #34

Open
siavash-sajjad opened this issue Oct 12, 2018 · 2 comments
Open

how to tack picture? #34

siavash-sajjad opened this issue Oct 12, 2018 · 2 comments

Comments

@siavash-sajjad
Copy link

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

@KMKnation
Copy link

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()

@chinaltz
Copy link

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());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants