Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Region.exists() cannot work with Pattern(np.array()) #144

Open
gzll opened this issue Dec 10, 2018 · 5 comments
Open

Region.exists() cannot work with Pattern(np.array()) #144

gzll opened this issue Dec 10, 2018 · 5 comments

Comments

@gzll
Copy link

gzll commented Dec 10, 2018

needle = cv2.imread(pattern.path)

@glitchassassin
Copy link
Owner

Does this work in Sikuli?

@RaiMan
Copy link

RaiMan commented Dec 10, 2018

In SikuliX a Pattern in the 1st place has to be created based on an image file name (as I guess it is implemented here).
Other options like from a ScreenImage object or a Java BufferedImage are SikuliX specific and not intended to be part of the official API.

The question is: what is np.array()?

RaiMan from SikuliX

@glitchassassin
Copy link
Owner

In Lackey, screen captured images are stored internally in a numpy array (probably the equivalent of the Java BufferedImage).

@RaiMan
Copy link

RaiMan commented Dec 10, 2018

So I guess, she/he wants to create a Pattern from a captured image.

So you have to decide, wether you allow that or you say: save the internal image to a temp file and then use it with the Pattern feature.

@glitchassassin
Copy link
Owner

Fix in develop for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants