Commit cc431776 authored by Lluis Gomez-Bigorda's avatar Lluis Gomez-Bigorda

OCRBeamSearchDecoder code refactor: fixes most of the TODOs comments, cleans-up…

OCRBeamSearchDecoder code refactor: fixes most of the TODOs comments, cleans-up code, and fix a bug in score_segmentation(...) member function.
parent ffa6637b
......@@ -338,6 +338,9 @@ public:
including 0 as start-sequence location.
*/
virtual void eval( InputArray image, std::vector< std::vector<double> >& recognition_probabilities, std::vector<int>& oversegmentation );
int getWindowSize() {return 0;}
int getStepSize() {return 0;}
};
public:
......@@ -396,7 +399,7 @@ public:
InputArray emission_probabilities_table, // Table with observation emission probabilities
// cols == rows == vocabulari.size()
decoder_mode mode = OCR_DECODER_VITERBI, // HMM Decoding algorithm (only Viterbi for the moment)
int beam_size = 50); // Size of the beam in Beam Search algorithm
int beam_size = 500); // Size of the beam in Beam Search algorithm
protected:
......
This diff is collapsed.
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