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 convert detect face frame to image #12

Open
altaf2892 opened this issue Aug 28, 2020 · 0 comments
Open

how to convert detect face frame to image #12

altaf2892 opened this issue Aug 28, 2020 · 0 comments

Comments

@altaf2892
Copy link

altaf2892 commented Aug 28, 2020

`FaceDetector faceDetector = new FaceDetector(faceBoundsOverlay);
cameraView.setFacing(lensFacing);
cameraView.addFrameProcessor(new FrameProcessor() {
@OverRide
public void process(@nonnull Frame frame) {
Size size=new Size(frame.getSize().getWidth(),frame.getSize().getHeight());
LensFacing lensFacing1=cameraView.getFacing()==Facing.BACK?LensFacing.BACK:LensFacing.FRONT;

            faceDetector.process(new husaynhakeem.io.facedetector.Frame(
                    frame.getData(),frame.getRotationToUser(),size,frame.getFormat(),lensFacing1));
            Log.e("FRAME", frame.getData().toString());

          

        }
    });`
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

1 participant