I downloaded the 3 scripts from github today, extracted them, and ran them in the command line, and this is the result:
pi@raspberrypi:~ $ sudo python Motorized_Focus_Camera_Preview.py
File “Motorized_Focus_Camera_Preview.py”, line 16
if event.type ==KEYDOWN:
^
TabError: inconsistent use of tabs and spaces in indentation
pi@raspberrypi:~ $ sudo python Autofocus.py
Traceback (most recent call last):
File “Autofocus.py”, line 1, in <module>
import cv2 #sudo apt-get install python-opencv
ModuleNotFoundError: No module named ‘cv2’
pi@raspberrypi:~ $ sudo python Motorized_Focus_Camera_Snapshot.py
File “Motorized_Focus_Camera_Snapshot.py”, line 18
if event.type ==KEYDOWN:
^
TabError: inconsistent use of tabs and spaces in indentation
pi@raspberrypi:~ $
Can you help me out here? Thanks.
-Penny