An identification code validation procedures implement by C++ with boost and libjpeg.
Note: For personal use at present.
Suppose you have compiled boost library in /usr/local/boost_1_56_0/ as well as the .a static library are in /usr/local/boost_1_56_0/stage/lib .
If not, you should probably modify the Makefile .
When all of the work is finished,just do following steps:
>> cd ./libjpeg/ >> make >> cd ../decode/ >> make >> ./decode
First you should let the program study and generate attribute code database.
To get help information:
>> decode -h Or >> decode --help
To study by filenames from ./folder and create a new database named "db" in ./database:
>> decode -syn -d ./folder/ -b ./database/db Or >> decode -s -y -n -d ./folder/ -b ./database/db
To study sigle file and append to database by default(./db):
>> decode -s -f simples/studied.jpg
if you want to see binaryzated image, just add -v option.
When finish studying, you can run a test or recognition.
To test a single file:
>> decode -t -f simples/tested.jpg
To test a series of images:
>> decode -t -d test/
Note: test procedure require that file named with a right name.
To recognite a single file:
>> decode -f simples/recognited.jpg
To recognite a series of files:
>> decode -d simples/
Micooz
November 30, 2014 in Chengdu University of Technology.
Contact me by e-mail: micooz@hotmail.com