Skip to content
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

[BUG 🐛] IOS inconsistent face detection #56

Closed
luicfrr opened this issue May 3, 2024 · 0 comments
Closed

[BUG 🐛] IOS inconsistent face detection #56

luicfrr opened this issue May 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@luicfrr
Copy link
Owner

luicfrr commented May 3, 2024

Describe the bug:

Faces detection are inconsistent on IOS: detections logs changes from 0 to 1 then 0 again. Sometimes 2 faces are detected but with only one person in front of device's camera.

Minimum reproducible example:

Doesn't need - I'm using example app

Expected behavior:

Face detection should be consistent

I have tryed:

image.orientation = getFrameRotation(orientation: frame.orientation)

Replacing image.orientation = getFrameRotation(orientation: frame.orientation) with image.orientation = frame.orientation seems to fix the issue. (It was already fixed on 1.6.0 version).

Logs and Screenshots

running in expo dev mode (npx expo run:ios -d):

 LOG  faces 1 frame 1080 x 1920 yuv Frame
 LOG  faces 1 frame 1080 x 1920 yuv Frame
 LOG  faces 0 frame 1080 x 1920 yuv Frame
 LOG  faces 0 frame 1080 x 1920 yuv Frame
 LOG  faces 0 frame 1080 x 1920 yuv Frame
 LOG  faces 1 frame 1080 x 1920 yuv Frame
 LOG  faces 1 frame 1080 x 1920 yuv Frame
 LOG  faces 1 frame 1080 x 1920 yuv Frame
 LOG  faces 2 frame 1080 x 1920 yuv Frame
 LOG  faces 2 frame 1080 x 1920 yuv Frame
 LOG  faces 0 frame 1080 x 1920 yuv Frame
 LOG  faces 0 frame 1080 x 1920 yuv Frame
 ... they keep this exactly way floating fro 0 to 1 or 2

Device:

  • Device: Iphone 11
  • OS: IOS 17.4.1

package.json file:

Doesn't need - I'm using example app

@luicfrr luicfrr added the bug Something isn't working label May 3, 2024
@luicfrr luicfrr closed this as completed in 185acf9 May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant