Linux OCR, Barcode, and Format Conversion Batch Processing App- Install Linux toolkit – Default makefile uses the common.mk file from the Examples folder
- 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/)
- You will need to set your license in ltunlock.h. Follow instructions in the comments for #define SETDEFAULTLIC()
- 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 Usageltbatch 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 ConstantsFILE_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
Edited by moderator Thursday, February 13, 2020 9:41:58 AM(UTC)
| Reason: Fixed header formatting
Robbey Rodriguez
Developer Support Engineer
LEAD Technologies, Inc.