Search found 15 matches

by gvandyk
2016-02-23T02:22:25-07:00
Forum: Users
Topic: Detect Text vs Picture for OCR
Replies: 0
Views: 6466

Detect Text vs Picture for OCR

I have an image that contains both text and pictures. I need to clean the image for the ocr process and are using the textcleaner script from Fred. Unfortunately because this script cleans the image to be ready for ocr'ing I loose the images inside of the image. What is the best approach to clean ...
by gvandyk
2015-11-20T06:23:34-07:00
Forum: Fred's Scripts
Topic: Deblur a text image
Replies: 2
Views: 35750

Deblur a text image

Hi I have a text image that is blurred. I believe it is a motion blur in the horizontal direction, as I don't seem to see any vertical blurring. An example image can be found here: https://www.dropbox.com/s/hv1izm5xgcldlk3/PG-00973.JPG?dl=0 What is the best way to "deblur" the image? Any ideas I've ...
by gvandyk
2015-10-29T07:19:22-07:00
Forum: Users
Topic: connected-components different verbose results with threshold
Replies: 10
Views: 8058

Re: connected-components different verbose results with threshold

The original image that the gif was generated from can be found here:

https://www.dropbox.com/s/97957iwifwi5n ... 3.JPG?dl=0
by gvandyk
2015-10-28T10:04:44-07:00
Forum: Users
Topic: connected-components different verbose results with threshold
Replies: 10
Views: 8058

Re: connected-components different verbose results with threshold

In addition to the above, I am stepping the grayvalue down by 5 each time I go through the loop to find the edges. One of the original images: https://www.dropbox.com/s/97957iwifwi5n3s/IMG_0073.JPG?dl=0 The above "gif" was generated with a gray value of: 250, so the bottom code created the "too many ...
by gvandyk
2015-10-28T09:57:27-07:00
Forum: Users
Topic: connected-components different verbose results with threshold
Replies: 10
Views: 8058

Re: connected-components different verbose results with threshold

A link to a file with the "too many objects" run on my Q16 IM: https://www.dropbox.com/s/yew6v4a6utrvnmj/manyObjs.gif?dl=0 I am trying to extract pages from images that I have scanned with a book scanner (cameras), and I need to detect the proper page. With this I am looping through gray values from ...
by gvandyk
2015-10-27T09:52:53-07:00
Forum: Users
Topic: connected-components different verbose results with threshold
Replies: 10
Views: 8058

Re: connected-components different verbose results with threshold

Is there a way to limit the results from the connected-components verbose call. I am getting the "too many objects" error, and would like to only get the top results (largest areas), without loosing the "black & white". I assume that I can filter the srgb results to assume that values above (128 ...
by gvandyk
2015-10-26T12:12:19-07:00
Forum: Users
Topic: connected-components different verbose results with threshold
Replies: 10
Views: 8058

connected-components different verbose results with threshold

HI I am using the following command: convert img.gif -define connected-components:verbose=true -connected-components 4 null: > out.txt on my black & white image this gives back only srgb(255,255,255) and srgb(0,0,0) output but when I add an area threshold such as convert img.gif -define connected ...
by gvandyk
2015-09-25T14:28:03-07:00
Forum: Users
Topic: Extract Page from Scanned Image
Replies: 3
Views: 4336

Re: Extract Page from Scanned Image

Thank you very much, that did it.

Now, for the deskewing... Will have a crack at it
by gvandyk
2015-09-22T20:20:24-07:00
Forum: Users
Topic: Extract Page from Scanned Image
Replies: 3
Views: 4336

Extract Page from Scanned Image

Hi How can I extract a page from a scanned image that was taken with a camera? I want to extract the the page that is displayed within the below image. I did manage to extract most of the page using "autotrim", but I am still left with the piece of the "left" page on the opposite glass. How can I ...
by gvandyk
2015-09-21T14:17:15-07:00
Forum: Users
Topic: Trim image based on thick line
Replies: 1
Views: 2487

Trim image based on thick line

HI I have the following image with a thick black shadow line running through the image near the top. I would like to trim the top part of the image off including the dark shadow line. I need to be able to do this automatically. https://www.dropbox.com/s/ow0ntk3is4vwfn1/IMG_0102.JPG?dl=0https://www ...
by gvandyk
2015-09-10T11:22:53-07:00
Forum: Users
Topic: Remove white spot
Replies: 7
Views: 6617

Re: Remove white spot

Thanks Fred I eventually used 83% for threshold, 23 for brightness and -50 for contrast. The spot is much less and are within the acceptable parameters. So the following is working ok: convert input.jpg \ \( -clone 0 -threshold 83% -negate -write mpr:mask +delete \) \ -mask mpr:mask -brightness ...
by gvandyk
2015-09-10T09:25:40-07:00
Forum: Users
Topic: Remove white spot
Replies: 7
Views: 6617

Re: Remove white spot

I can get the area that should be changed with the -threshold parameter. convert input.jpg -threshold 87% -negate output.png The next hurdle to overcome would be, is to make those pixels under the "threshold" black area to be X % darker. I've managed to replace those pixels by a different color, but ...
by gvandyk
2015-09-09T01:22:35-07:00
Forum: Users
Topic: Remove white spot
Replies: 7
Views: 6617

Re: Remove white spot

Unfortunately the JPEG is the only image that we have currently. The cameras only produce JPEG.

We don't mind leaving a little trace on the image, as this is understandable, but the spot needs to "almost" disappear.
by gvandyk
2015-09-08T23:32:42-07:00
Forum: Users
Topic: Remove white spot
Replies: 7
Views: 6617

Re: Remove white spot

HI Thank you very much, that works well when I convert the image to do text extraction etc, and thank you very much, we are already using your script. But: We need to provide the original color image as well, as these are very old artefacts dating back to the mid 18:00 in some cases. There are ...
by gvandyk
2015-09-08T12:58:36-07:00
Forum: Users
Topic: Remove white spot
Replies: 7
Views: 6617

Remove white spot

Hi I am busy scanning books with a book scanner using 2 cameras and a central light source. A reflective glass is covering the pages in order to press the pages flat. On all the images the central light leaves a small white spot on the resulting images. How can this spot be removed? I need to ...