Hi Ger,

Thank you so much for your insights. The connection to INT32_MIN and the 
potential for an underflow or overflow error does seem plausible, 
especially given the remarkable error value that aligns with 
INT32_MIN/1000. I haven't delved into debugging at that level yet, but your 
suggestion provides a solid starting point for further investigation. 

Best regards,
Ilyas

Le mercredi 31 janvier 2024 à 01:47:50 UTC+1, g...@hobbelt.com a écrit :

> On Tue, 30 Jan 2024, 17:13 Ilyas, <ilyas.o...@gmail.com> wrote:
>
>>
>>
>> The output I'm wondering about is :
>> At iteration 1/600/600, Mean rms=-2147483.6%,
>>
>
> I dont know why or what is causing this; I just notice the value is quite 
> remarkable as it looks like INT32_MIN got fed into some 
> promillage/percentage calculation for the rms value there.
>
> (From Google for those who dont recognize the 2^31 value right away:
>
>
> INT_MIN is a macro that specifies that an integer variable cannot store 
> any value below this limit. It represents the minimum value or the upper 
> limit of the integer data type. The value of INT_MIN is: INT_MIN = –
> 2147483648 <(214)%20748-3648> (for 32-bit Integers) INT_MIN = 
> –9,223,372,036,854,775,808 (for 64-bit Integers)
>
>
> The rms value is clearly this value divided by 1000. Without having had a 
> look as the source code, I'd say that might happen if some code path 
> produced and error or clipped a larger negative value hard to the edge 
> value for int32_t.
>
> Someone will need to run this in a debugger to find the culprit. If you 
> can do this, then that would help trace back the source of this weirdness.
>
> Sorry I can't be of much more help. The 2^31 value (or rather the 7most 
> significant digits thereof jumped in my face.
>
> Smells like a potential bug somewhere...
>
>
> Regards,
> Ger
>
>
>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/ebb8638b-ea4e-4b7e-8fb8-4dbea9d7e431n%40googlegroups.com.

Reply via email to