mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-19 06:53:36 +08:00
Merge pull request #2026 from noahmetzger/master
Fixed a mac compiler warning in recodebeam.cpp
This commit is contained in:
commit
981db8155d
@ -258,7 +258,7 @@ void RecodeBeamSearch::ExtractBestPathAsWords(const TBOX& line_box,
|
||||
choice_pairs.push_back(choice);
|
||||
}
|
||||
}
|
||||
if (best_choices.size() > 0 && i == best_choices.front().second - 1
|
||||
if ((best_choices.size() > 0 && i == best_choices.front().second - 1)
|
||||
|| i == xcoords[word_end]-1) {
|
||||
std::map<const char*, float> summed_propabilities;
|
||||
for (auto it = choice_pairs.begin(); it != choice_pairs.end(); ++it) {
|
||||
|
Loading…
Reference in New Issue
Block a user