First time here? Check out the FAQ!

Ask Your Question
0

Cupon code detection, help with algorithm

asked Oct 6 '15

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Oct 7 '15

updated Oct 7 '15

  • 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
Preview: (hide)

Question Tools

1 follower

Stats

Asked: Oct 6 '15

Seen: 472 times

Last updated: Oct 07 '15