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

face detection at 13 fps #4

Open
stephanschulz opened this issue Nov 15, 2022 · 4 comments
Open

face detection at 13 fps #4

stephanschulz opened this issue Nov 15, 2022 · 4 comments

Comments

@stephanschulz
Copy link

I was wondering what your experience is with the face detection frame rate.
For me it is 13 fps when two people are detected.

Thx.

Screen Shot 2022-11-15 at 2 38 11 PM
Screen Shot 2022-11-15 at 2 38 31 PM

@LingDong-
Copy link
Owner

Hmmm... For me the face detection is between 55 and 60 FPS, tried with 1-2 faces.

Though I do recall that one time when I re-compiled the app, just the face detection network and nothing else suddenly drops to around 10 FPS for no apparent reason. I think I did some build clean up and recompiled, and it was back at 60FPS since then. It is indeed very strange.

Are you using the prebuilt binary? In this case, it should be always 50+FPS. If you're compiling from Xcode, perhaps try clean up and rebuild?

@stephanschulz
Copy link
Author

I just now downloaded a fresh OF 0.11.2
I get 21 fps with a single face after clean up and rebuild and running in Xcode. I get 24 fps when running the app via opening VisionOSC.app.

I am not sure what you mean by "prebuilt binary". no .app file is in the git repo if you mine that ?

I am on Xcode 13.4.1, macOS 12.6, Apple M1 Max

@stephanschulz
Copy link
Author

stephanschulz commented Oct 5, 2023

I am revisiting this issue now with OF 0.12.0

The body detection runs at almost 60 fps but the face detection at 30 fps.

Some of the macOS build instruction do not apply anymore I think. So, I did not do these:

  • File > Project Settings, Build System -> New Build System
  • Build Phases, Link Binary with Libraries, Change "mac catalyst" to "always"
  • Change deployment target to 11.3

I am on Xcode 13.4.1, macOS 12.6.8, Apple M1 Max

Here is my example code: https://github.com/stephanschulz/VisionOSC_M1/
I had to change some stuff related to autorelease error.

Screen Shot 2023-10-05 at 9 25 03 AM
Screen Shot 2023-10-05 at 9 24 52 AM

Thanks for any tips.

@stephanschulz
Copy link
Author

adding this line
req.preferBackgroundProcessing = true;
seems to help a lot.
let's see if it might create other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants