using images as variables

Asked by nicolas

Hi,

Is it possible to use an image as a variable for a function ?

Question information

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

This works:
x = ...an image...
find(x)

do you mean that?

Revision history for this message
nicolas (npawlaczyk) said :
#2

I mean :

def myfunction(x):
   if find(x):
      #specific treatment here
      #...
      #...

x=..an image..
myfunction(x)

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

yes, this works perfectly!

Can you help with this problem?

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

To post a message you must log in.