← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #295989]: Screen Text Returns "---no text---"

 

Question #295989 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/295989

Description changed to:
i'm using Java to get image text.
Java Code: 
                        Settings.OcrTextSearch = true;
			Settings.OcrTextRead = true;
			screen.wait(imagePath, 10);
			screen.find(imagePath).text();

Last code line returns "no text", but while using tha IDE i get exact text.
What is the problem ? i have the same java code in another machine and it's working!
I have installed the package of OCR.

************************************************
Maven Dependencies i use:

<dependency>
			<groupId>org.sikuli</groupId>
			<artifactId>sikuli-core</artifactId>
			<version>1.2.2</version>
		</dependency>

		<!-- https://mvnrepository.com/artifact/com.sikulix/sikulixlibswin -->
		<dependency>
			<groupId>com.sikulix</groupId>
			<artifactId>sikulixlibswin</artifactId>
			<version>1.1.0</version>
		</dependency>

		<!-- https://mvnrepository.com/artifact/com.sikulix/sikulixapi -->
		<dependency>
			<groupId>com.sikulix</groupId>
			<artifactId>sikulixapi</artifactId>
			<version>1.1.0</version>
		</dependency>
**************************************************************************

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