ADR w/ multipage TIFFs?

Discussions about machine vision support in GdPicture.
Post Reply
andypl
Posts: 15
Joined: Fri Nov 13, 2009 5:10 pm

ADR w/ multipage TIFFs?

Post by andypl » Fri Nov 13, 2009 5:36 pm

How well - if at all - does ADR work with multipage TIFFS? Do I need to compare the pages individually or will the ADR engine compare pages to pages?

Any code examples would be appreciated?

Also - any hints for getting ADR to work with your typical black text on a white page business forms? I'm having it return the incorrect matching template on documents that look pretty different to my eye!

Thanks
Andy

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: ADR w/ multipage TIFFs?

Post by Loïc » Sat Nov 14, 2009 11:42 am

Hi Andy,
How well - if at all - does ADR work with multipage TIFFS? Do I need to compare the pages individually or will the ADR engine compare pages to pages?
ADR engine considers a Template as a single page document. Therefore, if you want to make multipage document comparison you have to create a different template for each page.

Code: Select all

        Dim PageCount As Integer = oGdPictureImaging.TiffGetPageCount(ImageID)
        Dim TemplateArray(PageCount) As Integer

        For i As Integer = 1 To PageCount
            oGdPictureImaging.TiffSelectPage(ImageID, i)
            TemplateArray(i - 1) = oGdPictureImaging.ADRCreateTemplateFromGdPictureImage(ImageID)
        Next
any hints for getting ADR to work with your typical black text on a white page business forms? I'm having it return the incorrect matching template on documents that look pretty different to my eye!
Could you attach some of these documents ?

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest