-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Get The Face bitmap from face detector #167
Comments
You can access the preview frame image as described here: |
The link helps me get the "frame" but not its bitmap, I want to get the real frame, like I would from a matrix in openCV implementation, a databuffer would also suffice. |
Yes, it's pretty simple to do so. Assuming you've initialized your frame and loaded the full image bitmap into it, this is what I'd normally do:
|
Could you please tell about the bitmap in the first argument of createBitmap.Where did it come from?Is that an empty bitmap? |
frame.getBitmap() returns the bitmap. |
@liuyl @rahulkulhalli Could you please elaborate on the approach you mentioned? I always get a black render on the imageView I set the face on. Most probably it's the wrong Frame that I am setting. |
sorry for my English :), you can see an example using "takePicture", after the capture of the image are cropped the face and passed mainFragment. |
@bako-ak ,thanks for your input dude.Could you tell me where is the "takePicture" method that you are referring?. |
@jagdeesh94 in a branch "develop" https://github.com/bako-ak/face-detection/blob/develop/app/src/main/java/kz/bako/facedetection/face/FaceFragment.kt |
@rahul its great and working but i want multiple faces in multiple imageview,any solution please?send me on manujagourav@gmail.com |
Can anyone pleaae help me regarding same issue?? |
Hi,
In the Face class documentation it gives API for getting all sorts of landmarks of the face, i.e eyes, nose, rotation, location in the frame.
If I want to use the whole face cropped out of the frame is there a way to do so from the API?
I am struggling in doing this from the frame itself, because the detector is connected to the camera preview without any access from the user to the preview frames, it also skips frames for performance.
How can I for example in FaceGraphic draw method - before I draw a circle around the face, get the entire face from the frame? and send it somewhere else?
is this possible?
The text was updated successfully, but these errors were encountered: