Page 1 of 1

write the result of Padlleocr to a variable

Posted: 30 Apr 2024, 12:02
by aleksbor
Hello,

I couldn’t write the result of

Code: Select all

MsgBox, % PaddleOCR([716, 821, 200, 100])
into a variable, please tell me how to do this

Thank you :crazy:

Re: write the result of Padlleocr to a variable

Posted: 30 Apr 2024, 21:17
by boiler

Code: Select all

Var := PaddleOCR([716, 821, 200, 100])

Re: write the result of Padlleocr to a variable

Posted: 01 May 2024, 09:29
by aleksbor
Hello,

MsgBox, % PaddleOCR([716, 821, 200, 100]) show 3155775

test := PaddleOCR([716, 821, 200, 100])
MsgBox, test show test

do not understand why
what needs to be done to get the correct result

Thank you :bravo:

Re: write the result of Padlleocr to a variable

Posted: 01 May 2024, 09:35
by aleksbor
thanks, figured it out myself

test := PaddleOCR([716, 821, 200, 100])

MsgBox, %test%

#Include PaddleOCR\PaddleOCR.ahk

Re: write the result of Padlleocr to a variable

Posted: 01 May 2024, 09:40
by boiler
Or all in one line:

Code: Select all

#Include PaddleOCR\PaddleOCR.ahk
MsgBox, % Var := PaddleOCR([716, 821, 200, 100])

Re: write the result of Padlleocr to a variable

Posted: 01 May 2024, 10:00
by aleksbor
:dance: Thank you