sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47326
Re: [Bug 1773824] Re: cant find image in a region when i create a pattern object
On Sat, Jun 2, 2018 at 6:53 PM, RaiMan <sikulix@xxxxxxxxxxx> wrote:
> number_place_pattern= Pattern(file_number_path).similar(.95)
>
> the similarity must be a fraction between 0 and 1
> number_place_pattern= Pattern(file_number_path).similar(0.95)
>
> ** Changed in: sikuli
> Status: New => Invalid
>
> ** Changed in: sikuli
> Assignee: (unassigned) => RaiMan (raimund-hocke)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1773824
>
> Title:
> cant find image in a region when i create a pattern object
>
> Status in Sikuli:
> Invalid
>
> Bug description:
> Hi,
>
> Can anyone please help:
>
> file_number_path = "/images/abc/image_name.png"
> number_region=table_region.exists(file_number_path)
>
> This code successfully finds the image however when i do the following:
> file_number_path = "/images/abc/image_name.png"
> number_place_pattern= Pattern(file_number_path).similar(95)
> number_region=table_region.exists(number_place_pattern)
>
> The code fails. I also tested by using direct find functions from the
> IDE and setting the match ratio to 95% even then it works, however
> when i use it like a pattern it fails
>
> My sikuli version is 1.1.3 and Mac OS
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/sikuli/+bug/1773824/+subscriptions
>
--
Jitender Arora
+9958711114
Please do not print this email unless it is absolutely necessary. Spread
environmental awareness.
Disclaimer :-
"This e-mail message may contain confidential, proprietary or legally
privileged information. It should not be used by anyone who is not the
original intended recipient. If you have erroneously received this message,
please delete it immediately and notify the sender.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1773824
Title:
cant find image in a region when i create a pattern object
Status in Sikuli:
Invalid
Bug description:
Hi,
Can anyone please help:
file_number_path = "/images/abc/image_name.png"
number_region=table_region.exists(file_number_path)
This code successfully finds the image however when i do the following:
file_number_path = "/images/abc/image_name.png"
number_place_pattern= Pattern(file_number_path).similar(95)
number_region=table_region.exists(number_place_pattern)
The code fails. I also tested by using direct find functions from the
IDE and setting the match ratio to 95% even then it works, however
when i use it like a pattern it fails
My sikuli version is 1.1.3 and Mac OS
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1773824/+subscriptions
References