diff --git a/modules/text/FindTesseract.cmake b/modules/text/FindTesseract.cmake index 4622ece14..01835e61b 100644 --- a/modules/text/FindTesseract.cmake +++ b/modules/text/FindTesseract.cmake @@ -19,4 +19,4 @@ find_library(Lept_LIBRARY NAMES lept set(Tesseract_LIBS ${Tesseract_LIBRARY} ${Lept_LIBRARY}) if(Tesseract_LIBS AND Tesseract_INCLUDE_DIR) set(Tesseract_FOUND 1) -endif() +endif() diff --git a/modules/text/include/opencv2/text/ocr.hpp b/modules/text/include/opencv2/text/ocr.hpp index e01a16f72..258273f71 100644 --- a/modules/text/include/opencv2/text/ocr.hpp +++ b/modules/text/include/opencv2/text/ocr.hpp @@ -613,10 +613,6 @@ public: @param emission_probabilities_table Table with observation emission probabilities. cols == rows == vocabulary.size(). - @param windowWidth The width of the windows to which the sliding window will be iterated. The height will - be the height of the image. The windows might be resized to fit the classifiers input by the classifiers - preprocessor. - @param mode HMM Decoding algorithm (only Viterbi for the moment) @param beam_size Size of the beam in Beam Search algorithm diff --git a/modules/text/samples/deeptextdetection.py b/modules/text/samples/deeptextdetection.py index 8bc7a6422..060fbacac 100644 --- a/modules/text/samples/deeptextdetection.py +++ b/modules/text/samples/deeptextdetection.py @@ -25,12 +25,12 @@ if (len(sys.argv) < 2): # print"The text module was compiled without Caffe which is the only available DeepCNN backend.\nAborting!\n" # # quit() -# check model and architecture file existance +# check model and architecture file existance if not os.path.isfile('textbox.caffemodel') or not os.path.isfile('textbox_deploy.prototxt'): print " Model files not found in current directory. Aborting" print " Model files should be downloaded from https://github.com/sghoshcvc/TextBox-Models" quit() - + cv2.text.cnn_config.caffe_backend.setCaffeGpuMode(True); pathname = os.path.dirname(sys.argv[0]) diff --git a/modules/text/samples/textbox_demo.cpp b/modules/text/samples/textbox_demo.cpp index e36015831..49d9b6a79 100644 --- a/modules/text/samples/textbox_demo.cpp +++ b/modules/text/samples/textbox_demo.cpp @@ -17,6 +17,7 @@ #include #include +void textbox_draw(cv::Mat &src, std::vector &groups,std::vector &probs,std::vector wordList,float thres=0.6); inline std::string getHelpStr(std::string progFname){ std::stringstream out; out << " Demo of text detection CNN for text detection." << std::endl; @@ -140,7 +141,4 @@ int main(int argc, const char * argv[]){ std::cout << "Press any key to exit." << std::endl << std::endl; if ((cv::waitKey()&0xff) == ' ') return 0; - - } -