How to Detect Shapes in Images in Python To run this: pip3 install -r requirements.txt. To detect lines of the image monitor.jpg: python shape_detector.py monitor.jpg To detect lines of live camera: python live_shape_detector.py