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

Adding Inference Script to produce video sample #62

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

Conversation

vinesmsuic
Copy link
Contributor

@vinesmsuic vinesmsuic commented Jul 13, 2021

  • Added a script for inference.
usage: example_video.py [-h] --vid VID [--output OUTPUT] [--dont_show]
GazeTracking Video Inference.
optional arguments:
  -h, --help       show this help message and exit
  --vid VID        path to video
  --output OUTPUT  inference video name. Only support .avi extension due to
                   OpenCV 3.4
  --dont_show      hide imshow window
  • Also did a minor change in example.py to prevent distorted screen when the webcam is not available
ret, frame = webcam.read()

# Quit the program if no webcam is found
if ret == False:
    break
  • Added documentation

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