antoinelame / GazeTracking

👀 Eye Tracking library easily implementable to your projects
MIT License
1.85k stars 505 forks source link

Adding Inference Script to produce video sample #62

Open vinesmsuic opened 2 years ago

vinesmsuic commented 2 years ago
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
ret, frame = webcam.read()

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