How to include black text in match when the image is masked.

Asked by Padam Jain on 2020-10-01


I am running a test to match masked image. The problem is that in the image i have some black color text which i would like to match and then i marked some areas of the image which i dont want to match with black boxes.
The problem is that sikulix is also ignoring the black text, considering it is also masked area.

Does anyone have any solution to this, where it will match the black text also ?


Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

Masking with black areas does not help in your situation.

You have to use a tool, that allows you to erase the unwanted parts of an image, which makes them fully transparent.
This is possible with a 4-channel PNG image (3 channels RGB and one channel for transparency / alpha channel).

If you use such a prepared image, the transparent parts will be ignored.

This is an online tool:

... be sure to save the final image as .png

Padam Jain (padamjain) said : #2

Do i need to use mask() function in this case also. Somehow when i tried mask() and without mask(), it didnt work.
do you have a sample.

Can you help with this problem?

Provide an answer of your own, or ask Padam Jain for more information if necessary.

To post a message you must log in.