Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

how to detect the outer frame of an object

$
0
0
I am using OpenCV4Android version 3.1.0 and I want the Android camera to be able to detect a card e.g: credit-card, customer's card or etc. To implement such functionalitey using OpenCV i tried to do it using Edge-Detection function, but as you see in the picture below, Edge-Detection detects all the edges in the frame, while what I am looking for is to detect the only the outer frame of the card. I tried also Object-Detection "contour-detection" function, and as you see in the picture below, it did not detect the outer frame of the card. please let me know what is the optimal solution or function i should use to be able to detect only the outer frame of any given card **Edge-Detection**: [![enter image description here][1]][1] **Shape"contour" Detection**: [![enter image description here][2]][2] [1]: https://i.stack.imgur.com/4nGqo.png [2]: https://i.stack.imgur.com/WHs5Y.png

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>