You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/text/include/opencv2/text/ocr.hpp
+11-17Lines changed: 11 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -474,40 +474,34 @@ class CV_EXPORTS_W OCRBeamSearchDecoder : public BaseOCR
474
474
475
475
@param beam_size Size of the beam in Beam Search algorithm.
476
476
*/
477
-
static Ptr<OCRBeamSearchDecoder> create(const Ptr<OCRBeamSearchDecoder::ClassifierCallback> classifier,// The character classifier with built in feature extractor
477
+
static CV_WRAP
478
+
Ptr<OCRBeamSearchDecoder> create(const Ptr<OCRBeamSearchDecoder::ClassifierCallback> classifier,// The character classifier with built in feature extractor
478
479
const std::string& vocabulary, // The language vocabulary (chars when ASCII English text)
479
480
// size() must be equal to the number of classes
480
481
InputArray transition_probabilities_table, // Table with transition probabilities between character pairs
481
482
// cols == rows == vocabulary.size()
482
483
InputArray emission_probabilities_table, // Table with observation emission probabilities
483
484
// cols == rows == vocabulary.size()
484
-
decoder_mode mode = OCR_DECODER_VITERBI, // HMM Decoding algorithm (only Viterbi for the moment)
485
-
int beam_size = 500); // Size of the beam in Beam Search algorithm
486
-
487
-
CV_WRAP static Ptr<OCRBeamSearchDecoder> create(const Ptr<OCRBeamSearchDecoder::ClassifierCallback> classifier, // The character classifier with built in feature extractor
488
-
const String& vocabulary, // The language vocabulary (chars when ASCII English text)
489
-
// size() must be equal to the number of classes
490
-
InputArray transition_probabilities_table, // Table with transition probabilities between character pairs
491
-
// cols == rows == vocabulary.size()
492
-
InputArray emission_probabilities_table, // Table with observation emission probabilities
493
-
// cols == rows == vocabulary.size()
494
-
int mode = OCR_DECODER_VITERBI, // HMM Decoding algorithm (only Viterbi for the moment)
495
-
int beam_size = 500); // Size of the beam in Beam Search algorithm
485
+
text::decoder_mode mode = OCR_DECODER_VITERBI, // HMM Decoding algorithm (only Viterbi for the moment)
486
+
int beam_size = 500// Size of the beam in Beam Search algorithm
487
+
);
496
488
497
489
/** @brief Creates an instance of the OCRBeamSearchDecoder class. Initializes HMMDecoder from the specified path.
498
490
499
491
@overload
500
492
501
493
*/
502
-
CV_WRAP static Ptr<OCRBeamSearchDecoder> create(const String& filename, // The character classifier file
503
-
const String& vocabulary, // The language vocabulary (chars when ASCII English text)
494
+
static//CV_WRAP FIXIT bug in handling of Java overloads
495
+
Ptr<OCRBeamSearchDecoder> create(const String& filename, // The character classifier file
496
+
const String& vocabulary, // The language vocabulary (chars when ASCII English text)
504
497
// size() must be equal to the number of classes
505
498
InputArray transition_probabilities_table, // Table with transition probabilities between character pairs
506
499
// cols == rows == vocabulary.size()
507
500
InputArray emission_probabilities_table, // Table with observation emission probabilities
508
501
// cols == rows == vocabulary.size()
509
-
int mode = OCR_DECODER_VITERBI, // HMM Decoding algorithm (only Viterbi for the moment)
510
-
int beam_size = 500);
502
+
text::decoder_mode mode = OCR_DECODER_VITERBI, // HMM Decoding algorithm (only Viterbi for the moment)
503
+
int beam_size = 500// Size of the beam in Beam Search algorithm
0 commit comments