I have been able to read an image, then read a specific pixel using a co-ordinate location which works fine (pixel = img[801,600]).
My next step is to iterate through each pixel and try to find the location (in this example [801,600]) using the pixel data.
My iteration through "img" isn't able to find the pixel. I would appreciate any help or guidance.
import cv2
import numpy as np
img = cv2.imread('one.jpg')
pixel = img[801,600]
print (pixel) # pixel value i am searching for
for i in img:
for x in i:
if x.sort == pixel.sort:
print ("SUCCESS")