mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Merge pull request #3393 from eighttails/fix_zero_division
Fix division by zero during CJK training.
This commit is contained in:
commit
423f00c351
@ -162,7 +162,7 @@ public:
|
||||
vote += values_[i].vote;
|
||||
}
|
||||
|
||||
return rc / vote;
|
||||
return vote == 0 ? 0.0f : rc / vote;
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user