Search found 23 matches

by Masejoer
2016-07-01T14:54:46-07:00
Forum: Users
Topic: Trimming and cleaning up large number of photographed checks
Replies: 16
Views: 10530

Re: Trimming and cleaning up large number of photographed checks

convert image_original -crop -blur 0x8 -threshold 45% -trim image_step1 Yeah, sorry, remove the "-crop". Wouldn't this also blur the output? Doing it the other way, I get the crop coordinates with a blur, but then crop on the original sharper image. convert c:pictures\palette.png ( +clone...
by Masejoer
2016-07-01T13:49:25-07:00
Forum: Users
Topic: Trimming and cleaning up large number of photographed checks
Replies: 16
Views: 10530

Re: Trimming and cleaning up large number of photographed checks

The syntax is wrong. If you want to trim, just use "-trim": convert image_original -crop -blur 0x8 -threshold 45% -trim image_step1 convert input -crop -blur 0x8 -threshold 45%% -trim output ERROR: convert: InvalidArgument '-crop': -blur @ error/convert.c/ConvertImageCommand/1215. You wan...
by Masejoer
2016-07-01T11:40:29-07:00
Forum: Users
Topic: Trimming and cleaning up large number of photographed checks
Replies: 16
Views: 10530

Re: Trimming and cleaning up large number of photographed checks

For the black backround, this gives the crop parameter: convert check_step1.jpg -blur 0x3 -threshold 50% -format %@ info: 4666x2142+377+480 Nice to know I can do that. Not sure if you can nest that within a larger command. Right now I am doing the below and getting good results across all checks: F...
by Masejoer
2016-06-30T14:07:13-07:00
Forum: Users
Topic: Trimming and cleaning up large number of photographed checks
Replies: 16
Views: 10530

Re: Trimming and cleaning up large number of photographed checks

Still having issues with trim. How can I get ImageMagick to trim to document border more consistently? Uneven lighting will always exist whether it's from environment, or flash on camera. This test check uses built-in flash against black paper backdrop. Something that may work for both black backdro...
by Masejoer
2016-06-23T16:59:50-07:00
Forum: Users
Topic: Trimming and cleaning up large number of photographed checks
Replies: 16
Views: 10530

Re: Trimming and cleaning up large number of photographed checks

-trim -trim What is the second trim for? Does it do anything? The background colour is almost the same as the cheque, with no good boundary top or left. The lighting is uneven, so bottom-right is darker than top-left. Your "-fuzz" is large to compensate for this. A better method would be ...
by Masejoer
2016-06-23T14:42:38-07:00
Forum: Users
Topic: Trimming and cleaning up large number of photographed checks
Replies: 16
Views: 10530

Re: Trimming and cleaning up large number of photographed checks

The profiler is checking performance per command to see how long each stage takes. It increments on each line. This is a simplified version of what is happening: convert original.jpg -fuzz 35% -trim -trim post1.bmp convert post1.bmp -gamma 0.25 -auto-level -negate -lat 30x30+10% -negate post2.bmp co...
by Masejoer
2016-06-23T12:43:01-07:00
Forum: Users
Topic: Trimming and cleaning up large number of photographed checks
Replies: 16
Views: 10530

Re: Trimming and cleaning up large number of photographed checks

What is your IM version and platform? If on Unix system (Linux, Mac OSX or Windows with Cygwin), see my script, textcleaner, at the link below. That might help you get more OCR readable text. It also calls -lat. Windows version - ImageMagick-7.0.1-6-portable-Q16-x64. Currently doing all my testing ...
by Masejoer
2016-06-23T11:57:06-07:00
Forum: Users
Topic: Trimming and cleaning up large number of photographed checks
Replies: 16
Views: 10530

Trimming and cleaning up large number of photographed checks

I have been trying to crop-to-edge and cleanup personal-checks for OCR. I have a few checks working, but I think I need assistance in getting better image-processing to improve overall accuracy over a wider sample. All checks are digitized with cameras, not scanner, so images will always shoot for 5...