Save a picture at a location in hardrive say ~/image.jpg then execute the program as $ python sudoku.py ~image.jpg Required library: OpenCV Numpy