[request] Region.findText("String") and Region.text() should reveal the same result

Bug #1513116 reported by umesh
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

I have Used an image and extracted text from this image using .text() command, surprisingly it worked very well and recognized all the strings. But when I tried to click same string by Region.click ("String") it failed. How this can happen?
If sikuli is able ti detect the String by .text() command then it should click the same String by Region.click("String") command.
I have attached an image which I used to find the string

Revision history for this message
umesh (umsalotagi) wrote :
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [request] Region.click("String") and Match.text() should reveal the same result

the complete revision of the text features is on the list for version 2.

For version 1.1.x you have to live with these oddities.

summary: - Region.clilck("String") and Match.text() does not work in same manner
+ [request] Region.click("String") and Match.text() should reveal the same
+ result
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.0
Revision history for this message
umesh (umsalotagi) wrote :

Can you please tell me what is current methodology ( approach ) to click string from given image ? I cant wait that long (end of 2.0.0.) , I would like to develop own classes to improve string click from given image. Can you please share me What is your current approach? and in which class that approach is codded ?
Thanks in Advance.

Revision history for this message
RaiMan (raimund-hocke) wrote :

-- ( approach ) to click string from given image
the base is Finder.find(text), which returns a match object if found, that in turn is clicked.
The implementation itself is deep down in C++ code. The only way to get there is either to read the code or use some kind of step through debugging with Eclipse, NeBeans or similar.

-- I would like to develop own classes to improve string click from given image
Besides the remark before I cannot help you currently, because the implementation is hardcoded and not subclassable.

If you really want to invest on that level I would recommend to decide for some image processing package (ImageMagick or OpenCV) and use Tesseract via Tess4J

But before you do, you should think of other solutions for your problem, that do not depend on text.

RaiMan (raimund-hocke)
summary: - [request] Region.click("String") and Match.text() should reveal the same
+ [request] Region.find("String") and Region.text() should reveal the same
result
summary: - [request] Region.find("String") and Region.text() should reveal the same
- result
+ [request] Region.findText("String") and Region.text() should reveal the
+ same result
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 2.0.0 → 2.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.