DEV Community

Discussion on: Discovering OpenCV with Python: Coin Detection

Collapse
 
rob26r profile image
rob26r

Very nice. Once I have the edges detected of a coin image. how would I align or straighten the coin so any rotated coin image would be in the right position? Thanks!

Collapse
 
tinazhouhui profile image
Tina

Hello Rob, sorry for a late reply.

let's see if I get the question right, you mean if the picture itself is skewed / taken from an angle?

hmm not sure, my implementation sort of went with the "happy" way where all the coins are nicely displayed and straight. I guess for the skewed one you would have to transform the image to first straighten the coins.