This file contains 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
import cv2, numpy as np | |
# Click on one corner of the image, | |
# then, click on the other corner on the image. | |
# The image will be cropped and saved into the folder (see below) | |
# Press 'esc' to quit | |
# Before you begin, change the path to you own video: | |
cap = cv2.VideoCapture('/home/stephen/Desktop/track.MP4') |