Snippets tagged “cv2”
1 snippet uses this tag.
- How to crop an image in OpenCV using PythonPython
You can use the cv2.imread() function to read an image into memory, and then use the cv2.rectangle() function to draw a rectangle around the region you want to crop.