Python Forum

Full Version: How to used the edge detection in opencv python to return number of edge?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I have the following picture, how to use edge detection to return the result which is equal to 4?[Image: zDRxA.jpg]
see: http://www.scipy-lectures.org/advanced/i...edges.html
note python code download buttons
Why would it be 4? Those are corners, so shouldn't it be 9? Two for each corner, and then another for the bottom right corner? Also, I feel like it'd be hard to avoid getting false positives on all the "1"s...