Better CNN model for character recognition. Trained with an augmented dataset by adding translation/scale variations. Updated the croped word recognition with new class numbering (compatible with previous NM classifier).

pull/321/head
lluis 10 years ago
parent f9d42886f1
commit c146d37b93
  1. BIN
      modules/text/samples/OCRBeamSearch_CNN_model_data.xml.gz
  2. 2
      modules/text/samples/cropped_word_recognition.cpp

@ -36,7 +36,7 @@ int main(int argc, char* argv[])
return(0);
}
string vocabulary = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyx0123456789"; // must have the same order as the clasifier output classes
string vocabulary = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; // must have the same order as the clasifier output classes
vector<string> lexicon; // a list of words expected to be found on the input image
lexicon.push_back(string("abb"));
lexicon.push_back(string("patata"));

Loading…
Cancel
Save