I cannot find the mentioned image Ruler.png as attachement in this mail.

apparently, the image is larger than the restricted area.
Did you capture it with the Mac tools?

If yes: you have to use SikuliX’s resize feature for Retina images (I am
sure I mentioned that already before)

Raimund aka RaiMan

BTW: you should really start to use the ImagePath feature instead of using 
absolute image filenames.
 
> On 29. Dec 2019, at 15:03, Jeff_Vallis <vallis...@gmail.com> wrote:
> 
> image
> 
> 
> 
> in the IDE
> v_Image = 
> "/Users/Jeff/Documents/Sikuli_Live/SikuliScripts/Vikings/Code/Data/Images_Mac/Ruler.png"
>   # Location of the above ruler
> 
> setRect(733,836,39,47)
> highlight(1)
> if exists(v_Image):
>    print "^ " * 40
>    print "Found"
> print "Done"
> exit(0)
> 
> result
> 
> 
> [log] highlight R[733,836 39x47]@S(0) for 1.0 secs
> [error] script [ sikulitemp-6882804543996897290 ] stopped with error in line 4
> [error] Error caused by: Traceback (most recent call last):
>  File 
> "/var/folders/8k/9ksc02xj1kq3jm3xs_wx2tz80000gn/T/Sikulix_408720900/SikulixIDETempTab1577627846866/sikulitemp-6882804543996897290.py",
>  line 4, in <module>
>    if exists(v_Image):
> … more]

> org.opencv.core.CvException: CvException [org.opencv.core.CvException: 
> cv::Exception: OpenCV(3.4.2) 
> /Users/raimundhocke/SikuliX/OpenCV/opencv-3.4.2/modules/imgproc/src/templmatch.cpp:1107:
>  error: (-215:Assertion failed) _img.size().height <= _templ.size().height && 
> _img.size().width <= _templ.size().width in function 'matchTemplate'
> ]
>

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1857799

Title:
  Image Size

Status in Sikuli:
  New

Bug description:
  2.0.1-2019-11-22_16:54/Mac10.15.2/Java13(64)13.0.1+9

  setRect Smaller than size of image in exists
  e.g.
    highlight R[733,836 39x47]@S(0) for 1.0 secs
    image size is over  50x50 - bigger than the 39x47 above 

        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
  org.opencv.core.CvException: CvException [org.opencv.core.CvException: 
cv::Exception: OpenCV(3.4.2) 
/Users/raimundhocke/SikuliX/OpenCV/opencv-3.4.2/modules/imgproc/src/templmatch.cpp:1107:
 error: (-215:Assertion failed) _img.size().height <= _templ.size().height && 
_img.size().width <= _templ.size().width in function 'matchTemplate'
  ]

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1857799/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to