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

Only set bounds when annotation is visible. #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jascase901
Copy link

the set bounds function is actually kinda cpu intensive. I noticed that
when there are thousands of bounding boxes in your video sequence, it can add
seconds to moving bounding boxes, creating bounding boxes, and switching to
another image frame. reduces the ammount of times set bounds is called
by only calling the function when annotations are set to appear
visibile.

This is the time it used to take to draw annotations for a video with a few hundred bounding boxes
image

this is the time it takes to draw annotations after.
image

the set bounds function is actually kinda cpu intensive. I noticed that
when there are thousands of bounding boxes in your video sequence, it can add
seconds to moving bounding boxes, creating bounding boxes, and switching to
another image frame. reduces the ammount of times set bounds is called
by  only calling the function when annotations are set to appear
visibile.
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.

1 participant