+count=0
+while [ "$out" == "?" ]; do
+ sleep 1
+ out=$($process_digits $imgdir/$name)
+ count=$(( $count + 1 ))
+ if [ "$count" == "5" ]; then
+ echo "#?"
+ exit 0
+ fi
+done
+rm -f $imgdir/$name # Remove image if it was successfully processed
+echo $out