Sample ADR with Javascript

Discussions about machine vision support in GdPicture.
Post Reply
gtoledo
Posts: 46
Joined: Thu May 28, 2009 7:30 pm

Sample ADR with Javascript

Post by gtoledo » Thu Oct 30, 2014 5:36 am

Hi...

I am developing an application in ASP.Net and Javascript with GdPicture Ver. 10

You we support can with sample of ADR in Javascript?

I tried with this first lines and I am presented the following error...

Code: Select all

    //-- Inicializa GdPicture
    var oGdImaging
    var oGdViewer
    var oGdThumbnailEx
    var nMultipageTiffImage

    var m_NativeImage = 0;
    var m_LicenseManager;

    function InitGdPicture() {
        var gdPictureLoaded = true;
        var gdPictureVersionOK = true;
        try {
            m_LicenseManager = new ActiveXObject('GdPicture10.LicenseManager');
            oGdImaging = new ActiveXObject('GdPicture10.GdPictureImaging');
            if (m_LicenseManager.GetVersion() < 10.0) {
                gdPictureVersionOK = false;
            }
            gdPictureLoaded = true;
            //-- desbloquea
            unlockGdPicture();
        }
        catch (err) {
            gdPictureLoaded = false;
        }
    }

    function unlockGdPicture() {
        m_LicenseManager.RegisterKey('MyKey');
    }


    //-- Carga configuración ADR desde archivo
    function LoadADRConfig() {
        try {
            var ruta = 'C:\\Users\\Public\\Compartida\\rcsTemplateADR.dat'
            oGdImaging.ADRLoadTemplateConfig(ruta);
            ...
            ...
        } catch (err) {
            msj = "Se produjo un error en la funcion: LoadADRConfig().\n\n";
            msj += "Descripción: " + err.message + "\n\n";
            alert(msj);
        }
    }
Attachments
ErrorADR.png
Error message
ErrorADR.png (7.02 KiB) Viewed 7559 times

gtoledo
Posts: 46
Joined: Thu May 28, 2009 7:30 pm

Re: Sample ADR with Javascript

Post by gtoledo » Thu Oct 30, 2014 7:01 pm

The error was solved. The problem was that I made no reference to the object...An apology

Either way, it is possible that I can give more details of the concept of ADR? .. This in order to document the functionality of this modulo in the application that we are developing, since some of our consultants believe that the recognition of documents is performed using OCR .

regards...

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Sample ADR with Javascript

Post by SamiKharma » Tue Nov 04, 2014 12:09 pm

Hi,
since some of our consultants believe that the recognition of documents is performed using OCR
That is not true, OCR, like OMR and ICR is one of the post-processes of form processing.
The procedure is here, please note point 3:
http://en.wikipedia.org/wiki/Forms_processing#Process

Best,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest