Ask Your Question
0

Detecting credit card edges using opencv and python

asked 2014-01-02 11:39:26 -0600

dygerati gravatar image

I'm hoping this is very simple; I suspect that's the case.

I have an app that takes an image from the user in which they're holding a credit card up, stripe side out. Something like this: http://imgur.com/OOanf9i

This is already being fed through a python script to assist in pupil detection, and I'd like to add the ability to detect the edges of the credit card, width-wise. I've done some research into openCV but it seems like a VERY in-depth topic, and I believe this is a simple case.

Can anyone give me any direction on how to accomplish this? Or just how difficult it might be to do?

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-02 12:28:04 -0600

xaffeine gravatar image

The Canny detector will give you all the prominent edges in the image, including the edges of the card. See the tutorial.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-01-02 11:39:26 -0600

Seen: 4,830 times

Last updated: Jan 02 '14