Search found 45 matches

by eleison
2014-12-17T07:58:50-07:00
Forum: Users
Topic: Divide_vert script help
Replies: 3
Views: 4022

Divide_vert script help

I'm using this script: http://www.imagemagick.org/Usage/scripts/divide_vert It works great! It divides the image I got in to segments and removes the white space in between the pixels I want to keep. I got a black and white image with a white background and with some black segments. My black segment...
by eleison
2014-11-09T16:03:55-07:00
Forum: Users
Topic: Prepare for OCR, find words and rotate.
Replies: 18
Views: 13678

Re: Prepare for OCR, find words and rotate.

Thanks! It was obvious, but didn't notice it. The command takes long time to finish :/, but i get correct pixel. I came up with another method that could work for me: Step 1: use -trim and crop a fixed sized rectangle from each corner. Step 2: fill cropper area with white color then repeat step 1. S...
by eleison
2014-11-09T13:49:46-07:00
Forum: Users
Topic: Prepare for OCR, find words and rotate.
Replies: 18
Views: 13678

Re: Prepare for OCR, find words and rotate.

Thank you so much for the detailed explanation! I've been so busy with other projects lately. Sorry for late reply :/ You'r method works but might be little bit too slow for me. So I wanted to try my other method I explained previous in this thread. You gave me this -> data=`compare -metric pae -sub...
by eleison
2014-10-20T00:54:43-07:00
Forum: Users
Topic: Prepare for OCR, find words and rotate.
Replies: 18
Views: 13678

Re: Prepare for OCR, find words and rotate.

Thanks so much for your answer! I've been busy with family past week, this week i'm going to put time into this project again! I will try your suggestions, and see if I can a solution. Did you blur the image as I had originally suggested. If you do not, it will try to find each letter. For test I us...
by eleison
2014-10-12T04:50:02-07:00
Forum: Users
Topic: Prepare for OCR, find words and rotate.
Replies: 18
Views: 13678

Re: Prepare for OCR, find words and rotate.

Thanks for quick reply! Fred, I tried follow your instructions, though i'm not that good at Unix (learning), I had a hard time understand every step in your instructions. Alternately, edit the script somewhere between the comments and the first use of any IM command, such as just below the defaults ...
by eleison
2014-10-11T04:47:54-07:00
Forum: Users
Topic: Prepare for OCR, find words and rotate.
Replies: 18
Views: 13678

Re: Prepare for OCR, find words and rotate.

Ok, now I had time to do some testing! I tried "multicrop", but seems like i'm doing something wrong... Se: [root@localhost ~]# bash multicrop -f 10 multicrop_test.jpg multi_test.jpg multicrop: line 142: type: multicrop: not found dirname: missing operand Try `dirname --help' for more information. b...
by eleison
2014-09-29T13:38:10-07:00
Forum: Users
Topic: Prepare for OCR, find words and rotate.
Replies: 18
Views: 13678

Re: Prepare for OCR, find words and rotate.

Is it truly black and not just a dark gray? I will do filters on the image to make it just black and white and as clear as I can. Maybe -normalize and -level would be enough? Would some grey pixels make trouble? I will try your solution! Thanks! I remember I read something about putting image pixel...
by eleison
2014-09-29T12:51:41-07:00
Forum: Users
Topic: Prepare for OCR, find words and rotate.
Replies: 18
Views: 13678

Re: Prepare for OCR, find words and rotate.

Ok, i'm very thankful for all your hard work with these scripts! I will try and see if multicrop works for me. The method i came up with in earlier posts maybe is worth a try though. I might try and compare both ways... My steps would be. 1. Take cords from first black pixel i find. 2. Put a "big en...
by eleison
2014-09-29T12:03:56-07:00
Forum: Users
Topic: Prepare for OCR, find words and rotate.
Replies: 18
Views: 13678

Re: Prepare for OCR, find words and rotate.

Thank you! I will try this and see how it works! :) I've read many different subjects about the multicrop script, someone said it is slow and makes huge temp files? Maybe it was an old post I read...
by eleison
2014-09-29T09:31:41-07:00
Forum: Users
Topic: Prepare for OCR, find words and rotate.
Replies: 18
Views: 13678

Re: Prepare for OCR, find words and rotate.

Ubuntu and ImageMagick 6.5.4-7! What would be a good blurring filter, does the multicrop return crop coordinates? So i can crop the original-none-blurred image?

Thanks!
by eleison
2014-09-29T00:55:09-07:00
Forum: Users
Topic: Prepare for OCR, find words and rotate.
Replies: 18
Views: 13678

Re: Prepare for OCR, find words and rotate.

I think i got the solution for the making the words horizontal. But can't really find a good solution for segment/separate the words/lines. One solution I've been thinking about is to look for black pixels, when i find one i mask that area around the black pixel roughly (since i got plenty of white ...
by eleison
2014-09-26T01:59:41-07:00
Forum: Users
Topic: Prepare for OCR, find words and rotate.
Replies: 18
Views: 13678

Prepare for OCR, find words and rotate.

Hi everyone! I have many jpgs with random placed words/sentence, background is white and text is black. So I want to use imagemagick to find and all lines of words, isolate them and rotate them to a horizontal axis. There is plenty of white space between each item(line). Sometimes there can be an im...
by eleison
2014-02-21T04:42:00-07:00
Forum: IMagick
Topic: Cropping larger images breaks imagick.
Replies: 21
Views: 22715

Re: Cropping larger images breaks imagick.

Ok, it's working now :) Solution: // pixel cache max size IMagick::setResourceLimit(imagick::RESOURCETYPE_MEMORY, 64); // maximum amount of memory map to allocate for the pixel cache IMagick::setResourceLimit(imagick::RESOURCETYPE_MAP, 64); Found answer here: http://sourceforge.net/apps/trac/gallery...
by eleison
2014-02-21T04:19:08-07:00
Forum: IMagick
Topic: Cropping larger images breaks imagick.
Replies: 21
Views: 22715

Re: Cropping larger images breaks imagick.

I finally got it to display:
Fatal error: Uncaught exception 'ImagickException' with message 'Insufficient memory (case 4) `

:O
by eleison
2014-02-21T03:15:53-07:00
Forum: IMagick
Topic: Cropping larger images breaks imagick.
Replies: 21
Views: 22715

Re: Cropping larger images breaks imagick.

What version of Imagick are you using? check your phpinfo.php Perhaps you are using a too old version of Imagick also. see http://pecl.php.net/package/imagick Is this your own personal server/computer or on a shared host? If the latter, you may have a hard time getting them to upgrade anything. Its...