Commit 2315f9ca authored by Lluis Gomez-Bigorda's avatar Lluis Gomez-Bigorda

Minor bugfix: removes unwanted space character at the begining of recognition output strings.

parent 2538bf74
...@@ -352,7 +352,8 @@ public: ...@@ -352,7 +352,8 @@ public:
} }
//cout << path[best_idx] << endl; //cout << path[best_idx] << endl;
out_sequence = out_sequence+" "+path[best_idx]; if (out_sequence.size()>0) out_sequence = out_sequence+" "+path[best_idx];
else out_sequence = path[best_idx];
if (component_rects != NULL) if (component_rects != NULL)
component_rects->push_back(words_rect[w]); component_rects->push_back(words_rect[w]);
...@@ -608,7 +609,8 @@ public: ...@@ -608,7 +609,8 @@ public:
} }
//cout << path[best_idx] << endl; //cout << path[best_idx] << endl;
out_sequence = out_sequence+" "+path[best_idx]; if (out_sequence.size()>0) out_sequence = out_sequence+" "+path[best_idx];
else out_sequence = path[best_idx];
if (component_rects != NULL) if (component_rects != NULL)
component_rects->push_back(words_rect[w]); component_rects->push_back(words_rect[w]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment