Created
October 20, 2022 23:04
-
-
Save victormurcia/d09aa03a100c219b0a519677cc67bbdb to your computer and use it in GitHub Desktop.
Find first frame that contains detections
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Find first frame that contains detections | |
| def findFirstFrame(bb_dict): | |
| """ | |
| Args: | |
| bb_dict: (dict) dictionary from json file | |
| Returns: | |
| firstFrame: (int) First frame to process in video | |
| """ | |
| firstFrame = bb_dict['frames'][0]['frame_index'] | |
| print('These is the first frame to process in video ', firstFrame) | |
| return(firstFrame) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment