mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-01 15:55:17 +00:00
Fixing segfault for empty OCR line
This commit is contained in:
parent
22ec6b96b2
commit
6a9d7e7da2
@ -207,7 +207,7 @@ char* ocr_bitmap(void* arg, png_color *palette,png_byte *alpha, unsigned char* i
|
||||
text_out = TessBaseAPIGetUTF8Text(ctx->api);
|
||||
|
||||
// Begin color detection
|
||||
if(ccx_options.dvbcolor)
|
||||
if(ccx_options.dvbcolor && strlen(text_out)>0)
|
||||
{
|
||||
float h0 = -100;
|
||||
int written_tag = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user