in reply to Re^2: way of declare an integer variable instead use /^\d+$/
in thread way of declare an integer variable instead use /^\d+$/

So your OCR is confusing O and 0 ?

Typing to integer won't fix that, you will need better OCR or hope you can cover the problems with heuristics.

> Invalid SCALAR attribute' error,

Because you need to implement it first, following the links I gave.

Better don't

That was an XY problem and implementing this would be a total overkill. :)

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

  • Comment on Re^3: way of declare an integer variable instead use /^\d+$/

Replies are listed 'Best First'.
Re^4: way of declare an integer variable instead use /^\d+$/
by vincentaxhe (Scribe) on May 26, 2024 at 00:57 UTC

    The ocr is named cnocr, it is the best I can get, It's trained specific for chinese under python, it's much accurate compared with tesseract.

    'Because you need to implement it first, following the links I gave.'???

    where is the link about the sugar? is it not simple as add 'use ...'? I'm using 5.38 version under arch.declare a integer can be a very useful method in all ways.