Search found 14 matches

by RobertHorn
Mon Feb 27, 2012 2:37 pm
Forum: OCR, MRC & Document understanding
Topic: Zonal OCR incorrect characters return
Replies: 5
Views: 4858

Re: Zonal OCR incorrect characters return

HI Loic, I am having problems trying to get the same results here. I do the following on the image: oGdPictureImaging.ConvertTo1Bpp(ImageID, 175) oGdPictureImaging.FxDilate(ImageID) The moment I do FXDilate, it goes very faint, and you can hardly see anything. I have tried to use FxBlackNWhiteT(Imag...
by RobertHorn
Fri Feb 17, 2012 9:36 am
Forum: Document Viewing
Topic: Problem making Thumbnail of PDF
Replies: 5
Views: 4446

Re: Problem making Thumbnail of PDF

Hi Loic, OK. I found the problem. The problem is with .NET Framework 4. I took your VB Document Viewer sample application and added the following code: Dim b As Integer Dim NewImageID As Integer Dim ImageViewerPages As Integer ImageViewer.DisplayFromFile("C:\Temp\PDF.PDF") ImageViewer.Docu...
by RobertHorn
Thu Feb 16, 2012 3:58 pm
Forum: Document Viewing
Topic: Problem making Thumbnail of PDF
Replies: 5
Views: 4446

Re: Problem making Thumbnail of PDF

OK. Attached is the zip of the file.
by RobertHorn
Thu Feb 16, 2012 11:11 am
Forum: Document Viewing
Topic: Problem making Thumbnail of PDF
Replies: 5
Views: 4446

Problem making Thumbnail of PDF

Hi, I have a PDF that I am having problems with. It opens find in the Image Viewer, but when I try run the following command I get an error: ImageID = ImageViewer.GetPageThumbnail(826, 1169, 3, Color.White) The error is Attempted to read or write protected memory. This is often an indication that ot...
by RobertHorn
Wed Feb 15, 2012 7:09 pm
Forum: OCR, MRC & Document understanding
Topic: Zonal OCR incorrect characters return
Replies: 5
Views: 4858

Re: Zonal OCR incorrect characters return

Hi Loic, I was not able to upload the document. I have created a link for it: http://www.linhorn.co.za/Downloads/POD.pdf I went through all of the image processing that you have in the demo program, and it did change it, but did not give me the data that is listed. The problem really seems to be the...
by RobertHorn
Wed Feb 15, 2012 11:15 am
Forum: OCR, MRC & Document understanding
Topic: Zonal OCR incorrect characters return
Replies: 5
Views: 4858

Zonal OCR incorrect characters return

Hi, I am doing Zonal OCR on documents being printed from a Dot Matrix printer. I have taken the sample code that you created for OCR, and used this in my code. I get the wrong characters returned. I then took your sample program and did it through it. Attached is an image of the area that I am doing...
by RobertHorn
Fri Feb 03, 2012 6:35 pm
Forum: Annotations
Topic: Annotation Measurement Units
Replies: 4
Views: 8596

Re: Annotation Measurement Units

Hi Loic, I have done the following to workout the exact pixels of the image where the annotation is: HorizontalResolution = imageViewer.HorizontalResolution VertialResolution = imageViewer.VerticalResolution PixTop = AnnotationTop / VertialResolution PixHeight = AnnotationHeight / VertialResolution ...
by RobertHorn
Fri Jan 27, 2012 4:14 pm
Forum: Annotations
Topic: Annotation Measurement Units
Replies: 4
Views: 8596

Annotation Measurement Units

Hi, I am using Annotations to allow a user to select an area that is then used later to Zonal OCR. Up to now, when working with the positions on the image, the values that I get for things like Page Width are in the 1000's. Now when I check the Top, Left, Width and Height of the Annotation, I find t...
by RobertHorn
Fri Jan 27, 2012 9:56 am
Forum: Annotations
Topic: New Annotation onto the Image Viewer
Replies: 1
Views: 3843

New Annotation onto the Image Viewer

Hi, I need to add an rectangle annotation to an image (pdf) and allow the user to move it and resize. I have been through all of the code, and the way that this is done is something like this: ImageID = oGdPictureImaging.CreateGdPictureImageFromFile(FileName) Dim oAnnotationManager As New Annotation...
by RobertHorn
Wed Jan 25, 2012 9:57 am
Forum: Annotations
Topic: LoadAnnotationsFromXMP and Stream
Replies: 6
Views: 4302

Re: LoadAnnotationsFromXMP and Stream

Here is something that I am using to build up the properties of the Annoations on each page. This puts all of the properties in a string which I will then use later on. This might not be the best way to do this, but it works. Loic, is there an easier way to do this? Dim annMan As New AnnotationManag...
by RobertHorn
Mon Jan 23, 2012 3:35 pm
Forum: Annotations
Topic: LoadAnnotationsFromXMP and Stream
Replies: 6
Views: 4302

Re: LoadAnnotationsFromXMP and Stream

Hi, OK. I see what I need to do. THe problem is, I can't see any sample code to go through each of the annotations that are already on the image. I can see how to get the annotation one by one, but there is not enough information on that annotation to do something with. So how do I go through each A...
by RobertHorn
Fri Jan 20, 2012 2:01 pm
Forum: Annotations
Topic: LoadAnnotationsFromXMP and Stream
Replies: 6
Views: 4302

Re: LoadAnnotationsFromXMP and Stream

Thanks for the code sample. Not much use when it only saves the annotations on the first page. I see from the XML in the file, that it doesn't include the page no of where the annotation needs to go. So I assume I can't use this at all. Can you give me some sample code to read all of the data from a...
by RobertHorn
Fri Jan 20, 2012 10:29 am
Forum: Annotations
Topic: Annotations in All pages
Replies: 6
Views: 4059

Re: Annotations in All pages

Hi Loic,

What is happening on being able to save the annotations for all pages? I see that in the current version it only saves the first page.

If this is not possible, and there is no immediate intention to provide this functionality, can you let me know how else I can do this?

Regards
Robert
by RobertHorn
Fri Jan 20, 2012 8:34 am
Forum: Annotations
Topic: LoadAnnotationsFromXMP and Stream
Replies: 6
Views: 4302

LoadAnnotationsFromXMP and Stream

Hi,

I need to know how to use the LoadAnnotationsFromXMP and SaveAnnotationsToXMP when saving and loading to a stream.

Kind Regards
Robert