we were using camerax with mlkit for face detection. but now we need to move our face detection module to the dynamic feature module and mlkit is currently not supported. it is crashing at run time.
now I'm looking for a solution where I don't want to use firebase mlkit. is it possible to use camera2 API to detect faces and draw face rectangle on preview?.
Related
I know ARCore using Camera2 by default. I was wondering about how we can use it with CameraX?
Is any way to use ARCore with CameraX?
I just tried shared session ARCore samples, It's using Camera2 API.
Is any approach or extension to use ARCore with CameraX?
Alas! As of today, Google ARCore 1.35 is still not capable of using Android Jetpack's library CameraX, although CameraX is integrated with many MLKit features including barcode scanning, face detection, text recognition, etc.
I want to just put glass over eyes.
I can use the CameraX Library for taking picture.
and take some coordinates for eyes.
Any best way to approch this problem
Have you tried ML Kit's Face Detection API? It can detect facial "landmarks", including eyes.
Is there any Android API to detect face inside an image? For exemple on iOS there is such API to detect face, and I‘m curious if there is a similar API in Android.
The Android framework has the FaceDetector API, although is only suitable for bitmaps (not real-time), and returns only the boundaries (rectangle) location.
For more advanced features, such as real-time detection or face features contour, there is the ML Kit library offered by Google. Although this library can also be used for very simple use cases, such as also getting the face location in a bitmap.
More about ML Kit in the next link:
https://developers.google.com/ml-kit/guides
I would like to know how to get camera instance from CWAC- CAM2 library in android so that I can attach face detector to camera for face detection. Need know how to do this in android ?
That is not supported by the library. Use the camera APIs directly, skipping the library.
Hi I am using google face detection API, it detects the face and draws a rectangle over the face, I want to crop the face part only and save it as image.
Is there any API available to crop the detected face.
You have a lot of libraries here:
https://android-arsenal.com/tag/45