streamlet-examples/tesseract
branchv_0
changeset 49 ab48ad4ecb91
parent 45 f466b4c7d9b1
child 50 22ed5647b235
equal deleted inserted replaced
48:26a8b1a14889 49:ab48ad4ecb91
    18 
    18 
    19 # This streamlet provides a single attribute: OCR recognized texf of given image file. It calls the tool tesseract.
    19 # This streamlet provides a single attribute: OCR recognized texf of given image file. It calls the tool tesseract.
    20 # Languages can be specified by: --option "language" "eng" --option "language" "ces"
    20 # Languages can be specified by: --option "language" "eng" --option "language" "ces"
    21 
    21 
    22 
    22 
    23 . "$(dirname $0)/streamlet-common.sh"
    23 . "$(dirname "$0")/streamlet-common.sh"
    24 
    24 
    25 processMessage_WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA() {
    25 processMessage_WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA() {
    26 	tesseractLanguage="";
    26 	tesseractLanguage="";
    27 	for (( i=0; i<${#optionNames[@]}; i++)); do
    27 	for (( i=0; i<${#optionNames[@]}; i++)); do
    28 		if [[ "x${optionNames[$i]}" == "xlanguage" ]]; then
    28 		if [[ "x${optionNames[$i]}" == "xlanguage" ]]; then