Finding colors on the screen

Asked by EddieWilliams

Im finding 3d objects and the problem is that they turn around and face diffrent directions so Sikuli can no longer see it as a pattern. I was wondering is it possible to search a regionfor a range of pixel colors. Or in someway hook the program to "follow" the 3d image even if it turns around(thus no being visable)

  Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
EddieWilliams
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

As a feature there is no solution for your case with Sikuli in the moment.

You always have to search with a defined pixel pattern. So if the target changes beyond the possibilities of using the similarity feature (some shades or background colors e.g. could be tolerated), it will not be found any longer.

In your case, you may try to concentrate on the edges and corners, if you know the position of the object.

Revision history for this message
EddieWilliams (deamonrex) said :
#2

Is it possible to search for all possible rotations of a image or the mirror of an image? A lot of times the pic i need to click would be possible to find if I could search for it at all possible roations. 90degree, 180degree, ect

Revision history for this message
RaiMan (raimund-hocke) said :
#3

not with the features of Sikuli in the moment.

You can use an external image processor like ImageMagic, to rotate your captured pictures and save them as samples that you can use in an exists() loop.

Revision history for this message
EddieWilliams (deamonrex) said :
#4

Thanks RaiMan this solved my problem.