Search found 5 matches

by blainefox
2015-10-05T00:46:12-07:00
Forum: Users
Topic: How to find ticket and crop it into a single image?
Replies: 12
Views: 9039

Re: How to find ticket and crop it into a single image?

What platform are you on? If Linux/MacOSX/Windows with Cygwin, you can try my scripts unperspective or whiteboard at the link below. Many thanks. I'm trying your unperspective example 8 but get different result using the sample image/argument you provide(reporting too many peaks). I'm using Cygwin ...
by blainefox
2015-10-04T19:47:53-07:00
Forum: Users
Topic: How to find ticket and crop it into a single image?
Replies: 12
Views: 9039

Re: How to find ticket and crop it into a single image?

snibgo wrote:A perspective transformation, moving the ticket corners to the corners of a rectangle, does what you want. Windows BAT syntax.

Code: Select all

set DIST=42,645,0,0,^
498,544,500,0,^
99,966,0,500,^
614,824,500,500
[/quote]

How do I find the intersections? Thanks again...
by blainefox
2015-10-04T05:15:53-07:00
Forum: Users
Topic: How to find ticket and crop it into a single image?
Replies: 12
Views: 9039

Re: How to find ticket and crop it into a single image?

Thank you for so detailed instruction! I'll have a try.
by blainefox
2015-10-01T05:17:37-07:00
Forum: Users
Topic: How to find ticket and crop it into a single image?
Replies: 12
Views: 9039

Re: How to find ticket and crop it into a single image?

Image
This is the photo. I need to get the standard rectangle ticket image to guarantee OCR accuracy.
by blainefox
2015-09-30T19:35:00-07:00
Forum: Users
Topic: How to find ticket and crop it into a single image?
Replies: 12
Views: 9039

How to find ticket and crop it into a single image?

Hello, I'm working on an OCR app project which needs to read ticket info from user-shot photos. The ticket may not be perpendicular or even distorted inside the photo so I can't just crop the image to get it. Imagemagick can detect edges, but I don't know what to do next to crop and fix the ...