{"id":52,"date":"2019-02-28T19:20:31","date_gmt":"2019-03-01T00:20:31","guid":{"rendered":"https:\/\/www.simpleocr.com\/?page_id=52"},"modified":"2021-01-23T09:29:06","modified_gmt":"2021-01-23T14:29:06","slug":"help","status":"publish","type":"page","link":"https:\/\/www.simpleocr.com\/help\/","title":{"rendered":"Help"},"content":{"rendered":"

<\/div><\/h2>\n

Thank you for choosing SimpleOCR–the royalty-free OCR engine! These instructions will tell you the basics of how to integrate SimpleOCR into your application.<\/h4>\n

SimpleOCR contains several group of functions including image manipulation, image I\/O with TIFF files, image acquisition with TWAIN compliant scanners, and of course, OCR. Note that SimpleOCR can read and create TIFF files containing bi-level (i.e. black & white) images. TIFF files are created by SimpleOCR using the CCITT Group IV compression scheme, but it can read most TIFF bi-level images.<\/h4>\n

The source code examples are given in VB and C++. The function headers are given in C++, since this is the original language that SimpleOCR was written in. To translate, simply replace all pointer variables with long integers and all char * with strings. Also, the ActiveX functions all have an “X” appended to the name (OCR->OCRX, LoadImg->LoadImgX, etc.). In the documentation, SimpleOCR refers to general library functions, while SimpleOCX is used to refer specifically to the ActiveX control.<\/h4>\n

SimpleOCX is an ActiveX dynamic link library (Dll) that allows developers to quickly integrate the SimpleOCR functions from any ActiveX-compatible programming environment. SimpleOCX acts as a “wrapper” for the core SimpleOCR libraries. Hence, SimpleOCX is not a native ActiveX control; it only provides an ActiveX interface to the SimpleOCR functions contained in ocrdll.dll and dlltwain.dll. Programmers who desire more efficient execution may forgo use of SimpleOCX.dll and interface directly with the core libraries.<\/h4>\n

Adding SimpleOCR to your application<\/h2>\n

The following instructions are provided in Visual Basic, but the implementation of SimpleOCR is similar in any development environment that uses ActiveX. Consult your documentation for language-specific instructions on how to integrate ActiveX dlls.<\/h4>\n
    \n
  1. \n

    Ensure that SimpleOCX.dll has been properly registered using “regsvr32.exe c:\\Program Files\\SimpleOCR\\simpleocx.dll”<\/h4>\n<\/li>\n
  2. \n

    Add a reference to “SimpleOCX” using the Project\/References menu<\/h4>\n<\/li>\n
  3. \n

    You can now declare variables of type “SimpleOCR” and access all of the SimpleOCR functions through this object<\/h4>\n<\/li>\n<\/ol>\n<\/div>
    <\/div>
    Table of Contents<\/span><\/a><\/div>

    <\/h2>\n

    Constants Used By SimpleOCR (VB)<\/h2>\n

    Copy these constant declarations into a VB module.<\/p>\n<\/div>