android-face-detector icon indicating copy to clipboard operation
android-face-detector copied to clipboard

A real-time face detection Android library

Results 12 android-face-detector issues
Sort by recently updated
recently updated
newest added

java.lang.IllegalStateException: it.size must not be null at husaynhakeem.io.facedetectorapp.MainActivity$setupCamera$1.process(MainActivity.kt:28) at com.otaliastudios.cameraview.CameraView$Callbacks$13.run(CameraView.java:1721) at android.os.Handler.handleCallback(Handler.java:874) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:198) at android.os.HandlerThread.run(HandlerThread.java:65)

i have implemented lib in my project and followed docs , i want to listen if face is detected , i know that there is a on faied result listenter...

while using face detection, developer may need to do something when face detected in camera. hence i added callbacks for face detection process in main activity. if you find this...

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

When camera in landscape orientation, the box will get wrong position. i've tried many ways to calculate but didnt find the logic. can you help me to update your code?...

its a good example to understand but i found difficulty in rotation . Box is in same position if face is in some other angle. i tries that demo with...

**ML Kit on Device Face detection API is Very Slow** I want to detect face from gallery Image. I tried with Mobile vision Api and detected face successfully. On website...

How to update rectangle box to draw able image and when phone any angle change not rectangle showing correct position.

Suddenly my app started to show 'onFaceFound' overrides nothing'