Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, December 12, 2019 12:54:41 PM(UTC)

Robbey  
Robbey

Groups: Registered
Posts: 22


Linux OCR, Barcode, and Format Conversion Batch Processing App

  1. Install Linux toolkit – Default makefile uses the common.mk file from the Examples folder
  2. Unzip or clone project directory into the leadtools examples directory, so it is in the same location as the other demos (LEADTOOLS19/Examples/Linux/C/)
  3. You will need to set your license in ltunlock.h. Follow instructions in the comments for #define SETDEFAULTLIC()
  4. Type "make"

Application Usage

  • -f {format} target format
  • -o perform ocr
  • -b perform barcode recognition
  • source is the directory that contains the images to process
  • target is the directory to save the output

Example Usage

ltbatch source target –f FILE_PNG –ob
ltbatch source target –obf FILE_PNG
ltbatch –f format –ob source target
ltbatch source target –o
ltbatch source target –b
ltbatch source target –f FILE_TIF

Below are the valid format constants for this program. They are also defined in the fileTypes.h. These will be used when doing format conversion like in the last example above.

Format Constants

FILE_TIF, FILE_CMP, FILE_BMP, FILE_JPEG, FILE_TIFLZW, FILE_LEAD, FILE_LEAD1JFIF,
FILE_LEAD1JTIF, FILE2JFIF, FILE_LEAD2JTIF, FILE_CCIT, FILE_LEAD1BIT,
FILE_CCITT_GROUP3_1DIM, FILE_CCITT_GROUP3_2DIM, FILE_CCITT_GROUP4, FILE_PNG,
FILE_PSD, FILE_RAWICA_G3_1D, FILE_RAWICA_G3_2D, FILE_RAWICA_G4, FILE_BMP_RLE,
FILE_TIF_YCC, FILE_TIFLZW_YCC, FILE_TIF_PACKBITS_YCC, FILE_TIF_CMP, FILE_TIF_JBIG,
FILE_RAW, FILE_JP2, FILE_J2K, FILE_CMW, FILE_TIF_J2K, FILE_TIF_CMW

Files

  • ltfunctions.h contains all of the LEADTOOLS functions / LEADTOOLS code for this program
  • ltlinuxbatch.c contains all of the function calls, our entry point, and all input verification
  • fileTypes.h contains all of the file constants
  • source directory is just for this demo; it does contain a couple images you can use for testing
  • target directory is for a demo target
  • makefile is, well, a make file


File Attachment(s):
demo-c-ocr-barcode-format-converter-master.zip (138kb) downloaded 43 time(s).

Edited by moderator Thursday, February 13, 2020 9:41:58 AM(UTC)  | Reason: Fixed header formatting

Robbey Rodriguez
Developer Support Engineer
LEAD Technologies, Inc.
Leadtools Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.061 seconds.