← Back to team overview

sikuli-driver team mailing list archive

[Bug 1773824] Re: cant find image in a region when i create a pattern object

 

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 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


Follow ups

References