beraldofilippo / android-hpe

Android native application to perform head pose estimation using images coming from the front camera.
MIT License
57 stars 21 forks source link

Front camera face detection problem #3

Closed nsojib closed 7 years ago

nsojib commented 7 years ago

Most of the time it failed to detect face and so pose estimation was not worked. I fed manual image by capturing a photo using other apps than it works fine. I have tested with HTC.

beraldofilippo commented 7 years ago

Yeah, then what's the problem here? You simply told me it does not work, any issue with it? How am I supposed to help you?

On 26 Aug 2017 20:01, "noushad-sust" notifications@github.com wrote:

Most of the time it failed to detect face and so pose estimation was not worked. I fed manual image by capturing a photo using other apps than it works fine. I have tested with HTC.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/beraldofilippo/android-hpe/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AFxvoL-k7qN8mOTOFXV1u54YXunTbD9bks5scF13gaJpZM4PDks9 .

nsojib commented 7 years ago

Here what i have found from log monitor 08-27 00:26:13.985 7017-7160/com.beraldo.hpe I/native: jni_head_pose_det.cpp:56 Number of faces detected: 0

It doesn't detect my face, how can I solve this?

nsojib commented 7 years ago
public void onImageAvailable(final ImageReader reader) 

in this method, I saved the bitmap and found it greenish. So, in my case conversion to bitmap not working properly.

nsojib commented 7 years ago

Actually there is a problem in camera api for api version 21. It works for api version > 21.

beraldofilippo commented 7 years ago

I'm glad that you found what the problem was and it now works. Using the camera on these devices has proven to be really flaky :/