Answer the question
In order to leave comments, you need to log in
Why are non-identical numpy arrays considered identical?
Hello!
I'm taking a piece of the grayscale image and assigning it to a variable so it's represented as an array.
With the help of OpenCV I find this pattern in the image.
OpenCV finds the pattern if it is in the image, and if not, it finds a place where it could be.
Therefore, I decided to cut out a piece of the image of the same size, in the place where OpenCV found it, and check if they match, then it found it correctly.
Where OpenCV found it correctly, equality worked, and where it didn’t, it didn’t (the first pattern from the list is not in the image, and equality did not work).
Question: There are, for some reason, such arrays that are not equal, but are counted, why is this and how to solve it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question