diff --git a/modules/text/include/opencv2/text/ocr.hpp b/modules/text/include/opencv2/text/ocr.hpp index 36ea1df18..5308568f2 100644 --- a/modules/text/include/opencv2/text/ocr.hpp +++ b/modules/text/include/opencv2/text/ocr.hpp @@ -565,6 +565,10 @@ public: class CV_EXPORTS_W OCRHolisticWordRecognizer : public BaseOCR { public: + virtual void run(Mat& image, std::string& output_text, std::vector* component_rects=NULL, + std::vector* component_texts=NULL, std::vector* component_confidences=NULL, + int component_level=OCR_LEVEL_WORD)=0; + /** @brief Recognize text using a segmentation based word-spotting/classifier cnn. Takes image on input and returns recognized text in the output_text parameter. Optionally @@ -589,10 +593,6 @@ public: @param component_level must be OCR_LEVEL_WORD. */ - virtual void run(Mat& image, std::string& output_text, std::vector* component_rects=NULL, - std::vector* component_texts=NULL, std::vector* component_confidences=NULL, - int component_level=OCR_LEVEL_WORD)=0; - virtual void run(Mat& image, Mat& mask, std::string& output_text, std::vector* component_rects=NULL, std::vector* component_texts=NULL, std::vector* component_confidences=NULL, int component_level=OCR_LEVEL_WORD)=0;