Question #700657 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700657
Status: Answered => Open
Juliana XIAO is still having a problem:
Hi! RaiMan,
I just tried this yesterday and made it work with following build.gradle
configuration. Both options are working fine: Sikuli can find images and do the
click.
Option1:
*************************************
repositories {
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {
api(group: 'com.sikulix', name: 'sikulixapi', version: '2.0.6-SNAPSHOT')
}
*************************************
Option2:
*************************************
repositories {
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {
compile "com.sikulix:sikulixapi:2.0.6-SNAPSHOT"
}
*************************************
But I encountered a new issue: when I tried to recognize text from an image
using the following code:
screen.find(new Pattern(imageFileName).similar((float)
similarity).targetOffset(image.getOffsetX(),
image.getOffsetY())).right(offset).text().trim()
I got the following error:
*************************************
org.sikuli.script.SikuliXception: OCR: validate: libtesseract.dylib not in
/usr/local/lib
at org.sikuli.script.TextRecognizer.get(TextRecognizer.java:87)
at org.sikuli.script.OCR.readText(OCR.java:722)
at org.sikuli.script.OCR.readText(OCR.java:707)
at org.sikuli.script.Element.text(Element.java:1155)
*************************************
I found the actual location is
"/opt/homebrew/Cellar/tesseract/5.0.1/lib/libtesseract.dylib". Could you please
help?
Thanks,
Juliana
--
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 : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp