Before running the code you will need to install the following: pip3 install opencv-python opencv-contrib-python pip3 install numpy pip3 install pillow