Decapod script command line options
decapod-gendpdf.py
# with list of files decapod-genpdf.py -t 1 -d path/to/temp/dir -p path/to/pdf /path/to/image1.jpg /path/to/imageN.jpg #with book decapod-genpdf.py -t 1 -d path/to/temp/dir -p path/to/pdf -b /path/to/multipage.tiff
Mandatory Arguments
Flag |
Description |
---|---|
-d, --dir |
Ocropus Directory to be converted |
-p, --pdf |
PDF File that will be generated |
-t, --type |
type of the PDF to be generates:
|
Optional Arguments
Flag |
Description |
---|---|
-h, --help |
print this help |
-b --book |
name of multipage tiff file |
-v, --verbose |
verbose level [0,1,2,3] |
-W, --width |
width of the PDF page [in cm] [default = 21.0] |
-H, --height |
height of the PDF page [in cm] [default = 29.7] |
-r, --resolution |
resolution of the images in the PDF [default = 200dpi] |
-R --remerge |
remerge token clusters [default = false] |
-S, --seg2bbox |
suppresses generating files necessary to generate PDF |
-C, --enforceCSEG |
characters can only match if there CSEG labels are equal |
-e, --eps |
matching threshold [default=7] |
-s, --reps |
matching threshold [default=.07] |
-B, --bit |
Bit depth of the output image (1, 8, 24))" |
colsel.py
#provide a path to the image you want to pick the colours from colsel.py path/to/image.jpg # when run without arguments, help documentation is provided colsel.py
calibrate.py
calibrate.py path/to/dir/of/calibration-images number-of-inner-corners-width number-of-inner-corners-height /path/to/calibration-data # when run without arguments, help documentation is provided calibrate.py
dewarping.py
dewarp.py /path/to/calibration-data left.jpg right.jpg /path/to/save/dewarped-images # when run without arguments, help documentation is provided dewarping.py
postproc.py
postproc.py path/to/dewarped.jpg /path/to/postprocessed.jpg # when run without arguments, help documentation is provided postproc.py