You should install followings first for use this script. windows 10: pip install imutils pip install numpy pip install opencv-python pip install pillow pip install pytesseract altro: pip install csv pip install numpy pip install python-opencv pip install os pip install argparse Then run code as following: python det.py -d ./images/onlus -c onlus.csv