Camera2 Face API

186 views
Skip to first unread message

Catalin Voss

unread,
Aug 16, 2019, 2:28:41 PM8/16/19
to camerax-d...@android.com
Hi there,

Is there a plan to wrap the native camera based face detector in CameraX?  (i.e. not MlKit, MobileVision, neven, etc.) It's still available in Camera2 via STATISTICS_FACES, but I can't seem to find anything about it in CameraX.

Thank you!
Catalin

Vinit Modi

unread,
Aug 16, 2019, 5:39:48 PM8/16/19
to Catalin Voss, Android CameraX Discussion Group
Hi Catalin,

Yes we are looking to expose the camera2 face detector via CameraX. Note that the camera2 API uses each manufacturer provided face detector. Thanks!

Vinit

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/CAFpXG4oXcRv7C0Cj6A-ZmNhxQwfZDRNwMKtSoWz_BQnrS9t8pg%40mail.gmail.com.

Catalin Voss

unread,
Aug 18, 2019, 7:32:50 PM8/18/19
to Vinit Modi, Android CameraX Discussion Group
Hey Vinit,

How consistently is that available across devices in your experience?

Thanks,
Catalin

Vinit Modi

unread,
Aug 19, 2019, 11:35:15 AM8/19/19
to Catalin Voss, Android CameraX Discussion Group
Hi Catalin,

camera2 has a property called STATISTICS_FACE_DETECT_MODE which lists the type of hardware support for face detection (OFF, SIMPLE, or FULL). Roughly 90% of devices support SIMPLE, around 8% are FULL, and 2% OFF. OFF means no in-built face detector is available. Hope this helps! 

Vinit
Reply all
Reply to author
Forward
0 new messages