Ask Your Question
0

Cupon code detection, help with algorithm

asked 2015-10-06 15:42:14 -0600

corratge gravatar image

The telecommunication operator in my country has coupons that used to recharge the balance

coupons

I want to develop an Android application, that with the camera can take the scrached number and recognize and automatic recharge.

I think finding the number box, and latter preform an OCR or a pattern match in because are numbers only

I'm new in computer vision I set the environment and test some opencv ups, but I'm losing witch algorithms or sequence of algorithms may use to achieve that I want Exist segmentation, feature detection, blob detection, ... template match but the image maybe rotates scale because the use of the camera

And I'm lose I wonder if exist one algorithm to find the 4 extreme points of a coupon in one image from here I know how to proceed until the OCR part I don't want the code to do it of course What I want is a simple clue, answer like you may use X algorithmto have Y result

Thanks and sorry for my english

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-10-07 05:04:11 -0600

updated 2015-10-07 07:16:36 -0600

  • take a look at squares.cpp.
  • Focus on approxPolyDP. it gives you extreme points of a square shape with appropriate parameter values.
  • here you can find an example tutorial,also you can find many examples if you search in this forum
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-10-06 15:04:28 -0600

Seen: 462 times

Last updated: Oct 07 '15