First of all install update and upgrade your system:
$ sudo apt update
$ sudo apt upgrade
Then, install required libraries:
A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!
If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button . If you can't find that one, you likely have a PC that has been upgraded to Windows 8/8.1/10/11 from Windows 8.1/8/7/Vista/XP and other ones. If you have one of those, refer the Windows key button to as yours. A list of them is below:
Table of Contents:
import cv2 | |
import numpy as np | |
cap = cv2.VideoCapture('driving_sf.mp4') | |
# Util functions | |
def dist(a, b): | |
return np.sqrt(np.power(b[0] - a[0], 2) + np.power(b[1] - a[1], 2)) |