Skip to content Skip to sidebar Skip to footer

Python Opencv, Only Read Part Of Image

I have thousands of large .png images (screenshots). I'm using opencv to do image recognition on a small portion of each image. I'm currently doing: image = cv2.imread(path)

Solution 1:

AFAICT, there's no way to do this with OpenCV. But I did find a solution here: Load just part of an image in python

Simply using PIL to save the cropped region of interest when generating the screenshots works.

Post a Comment for "Python Opencv, Only Read Part Of Image"