[Sikuli-driver] [Question #684947]: running multiple tests in paralel

2019-10-11 Thread Asheru
New question #684947 on Sikuli:
https://answers.launchpad.net/sikuli/+question/684947

Hello,

We have a few hundred tests created with sikuli. Running all of them takes 
around 20 hours. 

I was wondering if it's possible to run 2 sessions in parallel on the same 
machine, like 2 threads maybe. I know it's needs a real screen to run the tests 
but maybe there is a workaround somehow. If not we will use 2 computers for 
this.

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

___
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 #684947]: running multiple tests in paralel --- not possible

2019-10-11 Thread RaiMan
Question #684947 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684947

Summary changed to:
running multiple tests in paralel --- not possible

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

___
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 #684947]: running multiple tests in paralel

2019-10-11 Thread RaiMan
Question #684947 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684947

Status: Open => Answered

RaiMan proposed the following answer:
Rule: only one SikuliX workflow on one machine at the same time.
No exceptions!

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

___
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 #684947]: running multiple tests in paralel --- not possible

2019-10-11 Thread Asheru
Question #684947 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684947

Asheru posted a new comment:
Ok thanks you

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

___
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 #684811]: [HowTo] get text from an image file

2019-10-11 Thread Ivan
Question #684811 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684811

Status: Answered => Solved

Ivan confirmed that the question is solved:
Thanks a lot, that seem to be exactly what I need.

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

___
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 #684811]: [HowTo] get text from an image file

2019-10-11 Thread Ivan
Question #684811 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684811

Ivan 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 Sikuli.

___
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 #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-11 Thread matteoa
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

Status: Answered => Open

matteoa is still having a problem:
Hi RaiMan, 
any news regarding this problem?
In the meantime a colleague of mine has installed everything and this problem 
is present also in his pc.

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

___
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 #684268]: image error

2019-10-11 Thread Launchpad Janitor
Question #684268 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684268

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

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

___
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 #684243]: Sikuli connect to Sql Server from command line

2019-10-11 Thread Launchpad Janitor
Question #684243 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684243

Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

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

___
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 #684964]: textOCR.setPSM crashing

2019-10-11 Thread matteoa
New question #684964 on Sikuli:
https://answers.launchpad.net/sikuli/+question/684964

Hello all,
with last  version of Sikulix :
1.1.4-SNAPSHOT-#393-2019-10-10_16:07/Windows10.0/Java8(64)1.8.0_221-b27
When I try to run this script (that is used t find the best OCR setting for an 
image):

textOCR = TextOCR.start() 
i=0
img=selectRegion()
while i<14:
textOCR.setPSM(i)
print "i="+str(i) +", text=" +"\n" + img.text().encode('utf-8')
i=i+1
textOCR.setPSM(3)#return to default

I have this error:
[error] script [ OcrSettingTEst ] stopped with error in line 6
[error] org.sikuli.script.SikuliXception ( org.sikuli.script.SikuliXception: 
fatal: TextRecognizer: setPSM(0): needs OSD, but no osd.traineddata found in 
tessdata folder )
[error] --- Traceback --- error source first
line: module ( function ) statement 
6: main (   ) textOCR.setPSM(i)
[error] --- Traceback --- end --

I tested with a rather old version:
1.1.4-SNAPSHOT-#287-2019-04-18_07:09/Windows10.0/Java8(64)1.8.0_221-b27
On the same script and image and the output is as expected (text extracted from 
the image with all the 13 different settings.

Between switching between the version I deleted the 
c:\Users\Myself\AppData\Roaming\Sikulix 
folder just to avoid doubts and used Jythonb 2.7.1 standalone

Any hint to overcome this problem?
Thanks in advance!
Matteo
P.s BTW, the current version of tesseract inside Sikulix is 3 or 4?
...I found this in the file versionchanges.txt of the downloaded package:
Version 4.4.0 (13 July 2019)
- Upgrade to Tesseract 4.1.0 (5280bbc)
- Upgrade to Leptonica 1.78.0 (lept4j-1.12.2)
- Update dependencies

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

___
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 #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-11 Thread RaiMan
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

Status: Open => Needs information

RaiMan requested more information:
talking about this ?

Error loading Python DLL: C:\jython2.7.1\bin\python27.dll (error code
14001)

If yes, not yet checked - will try latest until monday.

If no:
please tell about the problem again.

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

___
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 #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-11 Thread matteoa
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

Status: Needs information => Open

matteoa gave more information on the question:
Hello, 
the Jython error is not the object of my question, the problem is that I'm not 
able to debug in Pycharm with latest versions.
I have saved a version from April that is in use when we have to debug line by 
line and works, but the latest builds have the error described above:
Traceback (most recent call last):
  File "MYPerfectlyWorkingScript.py", line 75, in 
Debug.setUserLogFile(b + 'logs\\' + str(strLogName))
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Picked up _JAVA_OPTIONS: -Xmx1024M
Process finished with exit code -1

this is the piece of code executed at the very beginning of the script:

b=getBundleFolder()
strLogName=datetime.now().strftime('%Y%m%d_%H%M%S'+ "-DbgSiK.log")
Debug.setUserLogFile(b + 'logs\\' + str(strLogName))

The problem of the Python dll is still there but, so far, I'm able to use 
Jython 2.7.0 and I think is something related to my pc (a colleague of mine 
uses 2.7.1)
Thanks for support
Matteo

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

___
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 #684964]: textOCR.setPSM crashing

2019-10-11 Thread RaiMan
Question #684964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684964

Status: Open => Answered

RaiMan proposed the following answer:
We have removed the OSD support (not relevant in the SikuliX context)

hence the PSM's 0, 1, 12 throw this error now.

On the other hand, it does not make sense, to loop through the PSM's.
You should select what is suitable in your situation or just work with the 
default 3.

  /**
   * Page segmentation modes:
   * 0Orientation and script detection (OSD) only.
   * 1Automatic page segmentation with OSD.
   * 2Automatic page segmentation, but no OSD, or OCR.
   * 3Fully automatic page segmentation, but no OSD. (Default)
   * 4Assume a single column of text of variable sizes.
   * 5Assume a single uniform block of vertically aligned text.
   * 6Assume a single uniform block of text.
   * 7Treat the image as a single text line.
   * 8Treat the image as a single word.
   * 9Treat the image as a single word in a circle.
   * 10Treat the image as a single character.
   * 11Sparse text. Find as much text as possible in no particular order.
   * 12Sparse text with OSD.
   * 13Raw line. Treat the image as a single text line, bypassing hacks 
that are Tesseract-specific.
   */

Sorry, but the docs are a bit behind.

We use Tess4J 4.4.x with Tesseract 4.1.x

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

___
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 #684964]: OCR: setPSM with 0, 1, 12 are crashing --- OSD is not supported

2019-10-11 Thread RaiMan
Question #684964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684964

Summary changed to:
OCR: setPSM  with 0, 1, 12 are crashing --- OSD is not supported

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

___
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 #684964]: OCR: setPSM with 0, 1, 12 are crashing --- OSD is not supported

2019-10-11 Thread RaiMan
Question #684964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684964

Description changed to:
--- so do not use it

---

Hello all,
with last  version of Sikulix :
1.1.4-SNAPSHOT-#393-2019-10-10_16:07/Windows10.0/Java8(64)1.8.0_221-b27
When I try to run this script (that is used t find the best OCR setting for an 
image):

textOCR = TextOCR.start() 
i=0
img=selectRegion()
while i<14:
textOCR.setPSM(i)
print "i="+str(i) +", text=" +"\n" + img.text().encode('utf-8')
i=i+1
textOCR.setPSM(3)#return to default

I have this error:
[error] script [ OcrSettingTEst ] stopped with error in line 6
[error] org.sikuli.script.SikuliXception ( org.sikuli.script.SikuliXception: 
fatal: TextRecognizer: setPSM(0): needs OSD, but no osd.traineddata found in 
tessdata folder )
[error] --- Traceback --- error source first
line: module ( function ) statement 
6: main (   ) textOCR.setPSM(i)
[error] --- Traceback --- end --

I tested with a rather old version:
1.1.4-SNAPSHOT-#287-2019-04-18_07:09/Windows10.0/Java8(64)1.8.0_221-b27
On the same script and image and the output is as expected (text extracted from 
the image with all the 13 different settings.

Between switching between the version I deleted the 
c:\Users\Myself\AppData\Roaming\Sikulix 
folder just to avoid doubts and used Jythonb 2.7.1 standalone

Any hint to overcome this problem?
Thanks in advance!
Matteo
P.s BTW, the current version of tesseract inside Sikulix is 3 or 4?
...I found this in the file versionchanges.txt of the downloaded package:
Version 4.4.0 (13 July 2019)
- Upgrade to Tesseract 4.1.0 (5280bbc)
- Upgrade to Leptonica 1.78.0 (lept4j-1.12.2)
- Update dependencies

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

___
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 #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-11 Thread RaiMan
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

Status: Open => Answered

RaiMan proposed the following answer:
as already mentioned in #1:

getBundleFolder() in your environment returns None (no bundle path
defined)

try this:
scriptFile = argv[0] # Python standard behavior
scriptFolder = os.path.dirname(scriptFile)
strLogName=datetime.now().strftime('%Y%m%d_%H%M%S'+ "-DbgSiK.log")
Debug.setUserLogFile(makePath(scriptFolder, 'logs',  strLogName))

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

___
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 #684964]: OCR: setPSM with 0, 1, 12 are crashing --- OSD is not supported

2019-10-11 Thread matteoa
Question #684964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684964

matteoa posted a new comment:
Hello,
the script I've done was because for some image class I had some OCR problem 
with the default setting and I did not know which was the best PSM setting, 
this one was a script used to find the best PSM setting and then apply it to 
the "real" script...
Thanks for information!
Now it works
Thanks for prompt support!

BTW I modified the script, i paste it in case it would be helpful for someone:
textOCR = TextOCR.start() 
i=0
img=selectRegion()
listOfSetting=[2,3,4,5,6,7,8,9,10,11,13]
iIdx=0
for i in range (0,11):
#while i<14:
textOCR.setPSM(listOfSetting[i])
print "Setting="+str(listOfSetting[i]) +", text=" +"\n" + 
img.text().encode('utf-8')
i=i+1
textOCR.setPSM(3)#return to default

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

___
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 #684964]: OCR: setPSM with 0, 1, 12 are crashing --- OSD is not supported

2019-10-11 Thread matteoa
Question #684964 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/684964

Status: Answered => Solved

matteoa 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 Sikuli.

___
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 #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-11 Thread matteoa
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

matteoa posted a new comment:
hello,
I tried your workaround but there were an error:
Traceback (most recent call last):
  File "MYPerfectlyWorkingScript.py", line 95, in 
scriptFile = argv[0] # Python standard behavior
NameError: name 'argv' is not defined
Picked up _JAVA_OPTIONS: -Xmx1024M
Process finished with exit code -1

I solved it by using sys.argv[0], thanks!

The little problem remaining is that within the IDE "my old version"
works, and also using PyCharm works well, but only with older version of
SikulixAPI, but it is something we can overcome until fixing.

Thanks for your, usual and very rare, prompt support!!!

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

___
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 #685002]: Trying to get OCR working on Windows with build 393

2019-10-11 Thread Chris Kosieracki
New question #685002 on Sikuli:
https://answers.launchpad.net/sikuli/+question/685002

1.1.4-SNAPSHOT-#393-2019-10-10_16:07/Windows10.0/Java8(64)1.8.0_221-b11

Installed build 393 this morning on Windows 10. When attempting txt = 
reg.text() the first time was sent to 
https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-libraries-for-Tess4J-Tesseract-4-OCR
 which addresses Mac and Linux, but not Windows.

Guessing what to do, I download and installed tesseract. Running tesseract -v 
gives me: tesseract v4.0.0.20190314
 leptonica-1.78.0
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 
4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.2.0
 Found SSE

What else do I need to do?
Thanks.

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

___
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 #685003]: Text recognition not working, Troubleshooting my manual Install PLEASE

2019-10-11 Thread James Rundle
New question #685003 on Sikuli:
https://answers.launchpad.net/sikuli/+question/685003

Hi there, I'm on an enterprise network and thus have to install sikuli 
manually.  

when trying to extract text out of a region with Region.text() I get the 
following error:
[error] script [ textTest ] stopped with error in line 2
[error] java.lang.UnsatisfiedLinkError ( java.lang.UnsatisfiedLinkError: Error 
looking up function 'TessPDFRendererCreateTextonly': 
/data1/home/b3031907/SikuliX/libs/libtesseract.so: undefined symbol: 
TessPDFRendererCreateTextonly )

Im going to go through the steps I took to install and was hoping maybe someone 
could point out what Im doing wrong.

Linux Setup
Create workspace 
1. Create folder /home/rundleja/SikuliX 
2. Create folder /home/rundleja/SikuliX/libs 
3. Create folder /home/rundleja/SikuliX/local 
4. Copy sikulix-1.1.4.jar to /home/rundleja/SikuliX 
5. Copy jython-standalone-2.7.1.jar to /home/rundleja/SikuliX 
6. Copy the sources folder to /home/rundleja/SikuliX 
**sources contains tesseract-3.04.01.tar.gz 
,leptonica-1.78.0.tar.gz,opencv-3.4.7.zip  

Compile OpenCV 
1. Extract opencv-3.4.7.zip to /home/rundleja/SikuliX/sources/opencv-3.4.7 
2. cd into opencv-3.4.7 
3. mkdir build 
4. cd build 
5. run: cmake .. 
6. Edit CMakeCache.txt and modify the variable CMAKE_INSTALL_PREFIX. Set it to  
/home/rundleja/SikuliX/sources/opencv-3.4.7_install 
7. run: make install 
8. cd /home/rundleja/SikuliX/libs 
9. run: ln -s 
../sources/opencv-3.4.7-install/share/OpenCV/java/libopencv_java347.so 
libopencv_java.so 

Compile Leptonica: 
1. Extract leptonica-1.78.0.tar.gz to 
/home/rundleja/SikuliX/sources/leptonica-1.78.0 or something 
2. cd leptonica-1.78.0 
3. run: ./configure --prefix=/home/rundleja/SikuliX/local 
4. run: make 
5. run: make install 

Compile Tesseract: 
1. Extract tesseract-3.04.01.tar.gz to 
/home/rundleja/SikuliX/sources/tesseract-3.04.01 or something 
2. cd tesseract-3.04.01 
3. run: ./autogen.sh 
4. export PKG_CONFIG_PATH=/home/rundleja/SikuliX/local/lib/pkgconfig
5. export LIBLEPT_HEADERSDIR=/home/rundleja/SikuliX/local/include/leptonica
6. run ./configure  -prefix=/home/rundleja/SikuliX/local/ --enable-debug 
--with-extra-includes=/data1/home/b3031907/SikuliX/local/include/leptonica 
7. export LDFLAGS="-L/home/rundleja/SikuliX/local/lib" 
8. export CFLAGS="-I/home/rundleja/SikuliX/local/include" 
9. make
10. make install
** At this point I tried to run the find text part and it came up with the 
message that it couldnt find the libtesseract.so. So then I did the 
following**
11.run: ln -s 
/home/rundleja/SikuliX/sources/tesseract-3.04.01/api/.libs/libtesseract.so 
/home/rundleja/SikuliX/libs (where i have libopencv_java.so)


Run
1. Open terminal 
2. Run: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/rundleja/SikuliX/libs 
3. Then run: java -jar sikulix-1.1.4.jar

At a loss for whats going on. The text recognition so far seems to be the only 
factor not working!

Thanks so much for taking the time to look at this.


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

___
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 #685003]: Text recognition not working, Troubleshooting my manual Install PLEASE

2019-10-11 Thread James Rundle
Question #685003 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/685003

Description changed to:
Hi there, I'm on an enterprise network and thus have to install sikuli
manually.

when trying to extract text out of a region with Region.text() I get the 
following error:
[error] script [ textTest ] stopped with error in line 2
[error] java.lang.UnsatisfiedLinkError ( java.lang.UnsatisfiedLinkError: Error 
looking up function 'TessPDFRendererCreateTextonly': 
/home/rundleja/SikuliX/libs/libtesseract.so: undefined symbol: 
TessPDFRendererCreateTextonly )

Im going to go through the steps I took to install and was hoping maybe
someone could point out what Im doing wrong.

Linux Setup
Create workspace 
1. Create folder /home/rundleja/SikuliX 
2. Create folder /home/rundleja/SikuliX/libs 
3. Create folder /home/rundleja/SikuliX/local 
4. Copy sikulix-1.1.4.jar to /home/rundleja/SikuliX 
5. Copy jython-standalone-2.7.1.jar to /home/rundleja/SikuliX 
6. Copy the sources folder to /home/rundleja/SikuliX 
**sources contains tesseract-3.04.01.tar.gz 
,leptonica-1.78.0.tar.gz,opencv-3.4.7.zip  

Compile OpenCV 
1. Extract opencv-3.4.7.zip to /home/rundleja/SikuliX/sources/opencv-3.4.7 
2. cd into opencv-3.4.7 
3. mkdir build 
4. cd build 
5. run: cmake .. 
6. Edit CMakeCache.txt and modify the variable CMAKE_INSTALL_PREFIX. Set it to  
/home/rundleja/SikuliX/sources/opencv-3.4.7_install 
7. run: make install 
8. cd /home/rundleja/SikuliX/libs 
9. run: ln -s 
../sources/opencv-3.4.7-install/share/OpenCV/java/libopencv_java347.so 
libopencv_java.so 

Compile Leptonica: 
1. Extract leptonica-1.78.0.tar.gz to 
/home/rundleja/SikuliX/sources/leptonica-1.78.0 or something 
2. cd leptonica-1.78.0 
3. run: ./configure --prefix=/home/rundleja/SikuliX/local 
4. run: make 
5. run: make install 

Compile Tesseract: 
1. Extract tesseract-3.04.01.tar.gz to 
/home/rundleja/SikuliX/sources/tesseract-3.04.01 or something 
2. cd tesseract-3.04.01 
3. run: ./autogen.sh 
4. export PKG_CONFIG_PATH=/home/rundleja/SikuliX/local/lib/pkgconfig
5. export LIBLEPT_HEADERSDIR=/home/rundleja/SikuliX/local/include/leptonica
6. run ./configure  -prefix=/home/rundleja/SikuliX/local/ --enable-debug 
--with-extra-includes=/home/rundleja/SikuliX/local/include/leptonica 
7. export LDFLAGS="-L/home/rundleja/SikuliX/local/lib" 
8. export CFLAGS="-I/home/rundleja/SikuliX/local/include" 
9. make
10. make install
** At this point I tried to run the find text part and it came up with the 
message that it couldnt find the libtesseract.so. So then I did the 
following**
11.run: ln -s 
/home/rundleja/SikuliX/sources/tesseract-3.04.01/api/.libs/libtesseract.so 
/home/rundleja/SikuliX/libs (where i have libopencv_java.so)


Run
1. Open terminal 
2. Run: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/rundleja/SikuliX/libs 
3. Then run: java -jar sikulix-1.1.4.jar

At a loss for whats going on. The text recognition so far seems to be
the only factor not working!

Thanks so much for taking the time to look at this.

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

___
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