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

8x fps speedup & servo output #4

Open
DavidMCampbell opened this issue Jun 3, 2019 · 0 comments
Open

8x fps speedup & servo output #4

DavidMCampbell opened this issue Jun 3, 2019 · 0 comments

Comments

@DavidMCampbell
Copy link

Hey! Cool project. I've extended it to do MJPEG streaming with target drawing etc. I've also added sub-image sampling so that inference is run repeatedly over slightly overlapping 300x300 images within the original image. This is so that targets are detected much farther away. It is actually faster too because scaling down takes so long, relatively.

Anyway, with 720p as an example, I discovered that you can get a 8x+ fps speedup just by using the CAP_V4L codec.
Replace:
cap = cv::VideoCapture(camera_device);
with:
cap = cv::VideoCapture(camera_device, CAP_V4L); 👍

Do you know how to get servo/PWM output working? There are some badass things that can be done if we can get the coral dev board to do servo/PWM output.

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

1 participant