I am a beginner in opencv-python. I want to get all the X and Y coordinates of pixels from this image and store it in an array. Can anyone give me an idea on how to proceed?
Image for detecting all the X and Y coordinates
this post lets you know how to get the pixel of an image http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_core/py_basic_ops/py_basic_ops.html
if you just iterate over the image in a nested for-loop you can perform whatever operation you want on said pixel eg, add x and y to an array if the colour isnt white
EDIT: i had to read up on what Chris commenting on the post meant by XY Problem but i agree, is there something youve tried and hasnt worked that youd like us to help fix?
I'm sure this is simple but my heads not with it today, I'm trying to output a JSON file in this format:
I have absolutely no idea why, but when I try to change my speed variable from 5 to any other number, the whole thing hangs after one repetition
This question already has an answer here: