actually, i think, your compiler is correct about it , and there’s a flaw in the sample code / library design.
look here , since both mode & classifier args have default values – the only non ambiguous way means specifying both of them, so we catch the 2nd overload (at least !)
can you try to modify the sample code (L92-98) like:
Thanks a lot for the suggestion & time, but still L92-98 giving error:
error: no matching function for call to ‘cv::text::OCRHMMDecoder::create(cv::Ptrcv::text::OCRHMMDecoder::ClassifierCallback, std::__cxx11::string&, cv::Mat&, cv::Mat&, cv::text::decoder_mode, cv::text::classifier_type)’
voc, transitionProbabilities, emissionProbabilities, OCR_DECODER_VITERBI, OCR_KNN_CLASSIFIER);