mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-09-29 20:52:21 +08:00
Merge pull request #907 from nhochdrei/tesseract_crash_fix
tesseract crash fix
This commit is contained in:
@@ -86,6 +86,8 @@ namespace alpr
|
|||||||
tesseract::PageIteratorLevel level = tesseract::RIL_SYMBOL;
|
tesseract::PageIteratorLevel level = tesseract::RIL_SYMBOL;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
if (ri->Empty(level)) continue;
|
||||||
|
|
||||||
const char* symbol = ri->GetUTF8Text(level);
|
const char* symbol = ri->GetUTF8Text(level);
|
||||||
float conf = ri->Confidence(level);
|
float conf = ri->Confidence(level);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user