0

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

uckocaman
  • 53
  • 8

1 Answers1

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