equal
deleted
inserted
replaced
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 |