mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-22 20:50:40 +08:00
Disable incomplete code
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
842cca1d49
commit
988102c41d
@ -439,13 +439,14 @@ void RecodeBeamSearch::extractSymbolChoices(const UNICHARSET *unicharset) {
|
|||||||
bestPos = i;
|
bestPos = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: bestCode is currently unused (see commit 2dd5d0d60).
|
#if 0 // TODO: bestCode is currently unused (see commit 2dd5d0d60).
|
||||||
int bestCode = -10;
|
int bestCode = -10;
|
||||||
for (auto &node : best_nodes) {
|
for (auto &node : best_nodes) {
|
||||||
if (node->unichar_id == unichar_ids[bestPos]) {
|
if (node->unichar_id == unichar_ids[bestPos]) {
|
||||||
bestCode = node->code;
|
bestCode = node->code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
// Exclude the best choice for the followup decoding.
|
// Exclude the best choice for the followup decoding.
|
||||||
std::unordered_set<int> excludeCodeList;
|
std::unordered_set<int> excludeCodeList;
|
||||||
for (auto &best_node : best_nodes) {
|
for (auto &best_node : best_nodes) {
|
||||||
|
Loading…
Reference in New Issue
Block a user