I have a picture. I want to pixel this image with OpenCv and check whether the pixels are empty or not. How can I do it? for example this image
Asked
Active
Viewed 740 times
0
-
What did you try up to now? – Yunus Temurlenk Aug 12 '20 at 10:54
1 Answers
2
if by 'empty' pixel you mean white, you can do this
import cv2
import numpy as np
img = cv2.imread('imp.jpg')
pixel = np.argwhere(img == 255)

Dean Taler
- 737
- 1
- 10
- 25