bug-ocrad
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ocrad] possible bug in OCRAD_result_blocks return value


From: João M. S. Silva
Subject: [Bug-ocrad] possible bug in OCRAD_result_blocks return value
Date: Fri, 23 May 2014 17:59:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Hi,

I'm using the API. Since I'm not requesting layout analysis, I was writing:

  int num_lines = OCRAD_result_lines(api, 0);

assuming OCRAD_result_blocks was always 1, i.e. that block 0 always existed.

But it looks like in some cases OCRAD_result_blocks is 0 and therefore calling OCRAD_result_lines(api, 0) gives an error.

Maybe this is not a bug, but simply a functionality misunderstanding. In the description of OCRAD_result_blocks, instead of:

"Returns the number of text blocks found in the image by the layout analyser or 1 if no layout analysis was requested."

should we read:

  "Returns the number of text blocks found in the image."

?

Thanks.

--
João M. S. Silva



reply via email to

[Prev in Thread] Current Thread [Next in Thread]