mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Cleanups
This commit is contained in:
parent
18035bc8ec
commit
89641d0009
@ -17,7 +17,8 @@ bool tess_init(const char* lang_data_dir, const char* language)
|
|||||||
|
|
||||||
if (api->Init(lang_data_dir, language))
|
if (api->Init(lang_data_dir, language))
|
||||||
{
|
{
|
||||||
snprintf(tess_last_error, ERROR_BUFFER_LENGTH, "Could not initialize tesseract.\n");
|
snprintf(tess_last_error, ERROR_BUFFER_LENGTH,
|
||||||
|
"Could not initialize tesseract.\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +40,7 @@ char* tess_get_text(tess_image image)
|
|||||||
delete [] one_time_return_pointer;
|
delete [] one_time_return_pointer;
|
||||||
|
|
||||||
api->SetImage(image.data, image.width, image.height,
|
api->SetImage(image.data, image.width, image.height,
|
||||||
image.bytes_per_pixel, image.width * image.bytes_per_pixel/*bytes per line*/);
|
image.bytes_per_pixel, image.width * image.bytes_per_pixel);
|
||||||
one_time_return_pointer = api->GetUTF8Text();
|
one_time_return_pointer = api->GetUTF8Text();
|
||||||
return one_time_return_pointer;
|
return one_time_return_pointer;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user