dependencies:- install opencv, install numpy if not installed. try to run the code in python3 you will get the following output. Output:-