unittest/recodebeam_test.cc
TEST_F(RecodeBeamTest, DISABLED_MultiCodeSequences) {
  LOG(INFO) << "Testing duplicates in multi-code sequences"
            << "\n";
  LoadUnicharset("vie.d.unicharset");
  tesseract::SetupBasicProperties(false, true, &ccutil_.unicharset);
  TRand random;
  GENERIC_2D_ARRAY<float> outputs =
      GenerateSyntheticOutputs(kViTops, kViTopScores, kVi2nds, kVi2ndScores, &random);
  PointerVector<WERD_RES> words;
  std::string truth_str;
  tesseract::NormalizeUTF8String(tesseract::UnicodeNormMode::kNFKC, tesseract::OCRNorm::kNormalize,
                                 tesseract::GraphemeNorm::kNone, "vậy tội", &truth_str);
  ExpectCorrect(outputs, truth_str, nullptr, &words);
}
// Tests that a recoder built with decomposed unicode allows true ctc
// arbitrary duplicates and inserted nulls inside the multicode sequence.
Tests that a recoder built with decomposed unicode allows true ctc
arbitrary duplicates and inserted nulls inside the multicode sequence.
Tests that a recoder built with decomposed unicode allows true ctc arbitrary duplicates and inserted nulls inside the multicode sequence .
TEST_F(RecodeBeamTest, DISABLED_MultiCodeSequences) {
  LOG(INFO) << "Testing duplicates in multi-code sequences"
            << "\n";
  LoadUnicharset("vie.d.unicharset");
  tesseract::SetupBasicProperties(false, true, &ccutil_.unicharset);
  TRand random;
  GENERIC_2D_ARRAY<float> outputs =
      GenerateSyntheticOutputs(kViTops, kViTopScores, kVi2nds, kVi2ndScores, &random);
  PointerVector<WERD_RES> words;
  std::string truth_str;
  tesseract::NormalizeUTF8String(tesseract::UnicodeNormMode::kNFKC, tesseract::OCRNorm::kNormalize,
                                 tesseract::GraphemeNorm::kNone, "vậy tội", &truth_str);
  ExpectCorrect(outputs, truth_str, nullptr, &words);
}
TEST_F ( RecodeBeamTest , DISABLED_MultiCodeSequences ) { LOG ( INFO ) << " " << " \n " ; LoadUnicharset ( " " ) ; tesseract :: SetupBasicProperties ( false , true , & ccutil_ . unicharset ) ; TRand random ; GENERIC_2D_ARRAY < float > outputs = GenerateSyntheticOutputs ( kViTops , kViTopScores , kVi2nds , kVi2ndScores , & random ) ; PointerVector < WERD_RES > words ; std :: string truth_str ; tesseract :: NormalizeUTF8String ( tesseract :: UnicodeNormMode :: kNFKC , tesseract :: OCRNorm :: kNormalize , tesseract :: GraphemeNorm :: kNone , " t r t h_str); ExpectCorrect ( outputs , truth_str , nullptr , & words ) ; }
Tests that a recoder built with decomposed unicode allows true ctc
arbitrary duplicates and inserted nulls inside the multicode sequence.
Tests that a recoder built with decomposed unicode allows true ctc arbitrary duplicates and inserted nulls inside the multicode sequence .