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

The Great Refactor (OpenVINO 2021.1) #5

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

The Great Refactor (OpenVINO 2021.1) #5

wants to merge 13 commits into from

Conversation

AndBobsYourUncle
Copy link
Owner

@AndBobsYourUncle AndBobsYourUncle commented Mar 5, 2021

With OpenVINO 2021 (and likely sooner), there were some massive changes to the framework, and also some pretty awesome additions to the Open Model Zoo.

The new abstractions and additions to the Open Model Zoo samples allows this project to simply link in to those exposed classes when building this project. Also, the multi-threading and multiple camera handling is now done entirely by their framework, hopefully adding quite a boost in processing speed.

Namely, they expose a "pipeline" class that handles submissions of images to run through the neural network, along with some metadata. We can then create our own, new metadata class that adds in a camera index.

In this way, when the pipeline returns back a fully processed frame, it comes back with the camera index. So, we simply iterate through all cameras, passing in a frame from each into the pipeline (with the metadata of the camera index), and when they come back (even out of order), we know which ones were for which cameras.

This greatly simplifies the code.

@AndBobsYourUncle AndBobsYourUncle changed the title The Great Refactor (OpenVINO 2021.1 The Great Refactor (OpenVINO 2021.1) Mar 5, 2021
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

Successfully merging this pull request may close these issues.

None yet

1 participant