cropping image using opencv code example
Example 1: how to cut image python
im = Image.open('0.png').convert('L')
im = im.crop((1, 1, 98, 33))
im.save('_0.png')
Example 2: how to crop the image using opencv
crop_img = img[y:y+h, x:x+w]
im = Image.open('0.png').convert('L')
im = im.crop((1, 1, 98, 33))
im.save('_0.png')
crop_img = img[y:y+h, x:x+w]