Re: [Sikuli-driver] [Question #700416]: Using OCR text() on a match from Screen.capture()

2022-01-27 Thread Nano Stray
Question #700416 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700416

Nano Stray confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #700416]: Using OCR text() on a match from Screen.capture()

2022-01-27 Thread Nano Stray
Question #700416 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700416

Status: Answered => Solved

Nano Stray confirmed that the question is solved:
Perfect!! It worked!!

Thank you very much Dr.RaiMan


--

For other readers out there you may substitute temp for another Region
if the text you're trying to analyze is not exactly inside the match
found

  print Image(capturedImage).getSub(temp).text() #comment2

to
  newRegion = Region(temp.x + customX, temp.y + customY, customW, customH)
  print Image(capturedImage).getSub().text(newRegion) #comment2

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #700416]: Using OCR text() on a match from Screen.capture()

2022-01-27 Thread RaiMan
Question #700416 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700416

Status: Open => Answered

RaiMan proposed the following answer:
This worked for me with 2.0.5:

img = "img.png"
reg = Region(0,0,300, 300)
capturedImage = SCREEN.capture(reg) #comment1
f = Finder(capturedImage)
f.findAll(img)
while f.hasNext():
temp = f.next()
print "match:", temp
print Image(capturedImage).getSub(temp).text() #comment2

comment1:
this returns the ScreenImage inMemory (does not save to file)
so it can be easily used later to search in

comment 2:
temp is a match in an image, so the match coord are relative to the top left 
corner of the image - hence (0,0)
so getSub cuts out the pixel area represented by match temp.
The text features work the same as for Region with class Image

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #700370]: [2.0.5] Linux SLES: 2.0.5 IDE jar not useable

2022-01-27 Thread RaiMan
Question #700370 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700370

Description changed to:
I am trying to install python sikuli (1.1.3) in Sles 13 .When i am
executing the sikuli setup jar file itsthrowing loadLib:
libVisionProxy.so not usable error.Please find the log file below.

... log removed

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #700370]: loadLib: libVisionProxy.so not usable

2022-01-27 Thread RaiMan
Question #700370 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700370

Status: Open => Answered

RaiMan changed the question status:
to keep it open until solved

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #700370]: [2.0.5] Linux SLES: 2.0.5 IDE jar not useable

2022-01-27 Thread RaiMan
Question #700370 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700370

Description changed to:
I am trying to install python sikuli in Sles 13 .When i am executing the
sikuli setup jar file itsthrowing loadLib: libVisionProxy.so not usable
error.Please find the log file below.

... log removed

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #700370]: [2.0.5] Linux SLES: 2.0.5 IDE jar not useable

2022-01-27 Thread RaiMan
Question #700370 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700370

Summary changed to:
[2.0.5] Linux SLES: 2.0.5 IDE jar not useable

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #700370]: loadLib: libVisionProxy.so not usable

2022-01-27 Thread kapuluru nagajyothi
Question #700370 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700370

Status: Answered => Open

kapuluru nagajyothi is still having a problem:
Thank You

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #700416]: Using OCR text() on a match from Screen.capture()

2022-01-27 Thread Nano Stray
New question #700416 on SikuliX:
https://answers.launchpad.net/sikuli/+question/700416

I would like to take a screenshot of a moving object to get its (x,y) 
coordinates and then read the words inside that object

So far, using the Finder Class has helped me to reliably capture the screen and 
then analyze the image

capturedImage = capture(SOME_REGION)
f = Finder(capturedImage)
f.findAll(SOME_IMAGE)
while f.hasNext():
temp = f.next()
print "the x coordinate of the match is ", temp.x 


but now how do I read the words near the matching objects with the text() 
function from the screenshot that I had originally captured?

I am aware that Region(x,y,w,h).text() would work but that is not going to be 
for the screenshot that is currently being analyzed


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #700370]: loadLib: libVisionProxy.so not usable

2022-01-27 Thread RaiMan
Question #700370 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700370

Status: Open => Answered

RaiMan proposed the following answer:
tested now in an Ubuntu 20 environment in VirtualBox on Win11.

java -jar / sikulixide-2.0.5-lux.jar - v -c

The jar starts as expected, though the IDE window finally does not show
up (no idea for the reason currently).

running a script from command line
java -jar / sikulixide-2.0.5-lux.jar - v -c -r test

with
# test.py
popup("test")

just works as expected.

So the downloaded jar is definitely ok.

It must be a special situation on your SLES.
Sorry, but I cannot help you further.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp