You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note how the only difference between the two code snippets are that we're saving the image first and then loading it with DecodeImg.
Extra Info
Note that this is a 14" MacOS with retina display. I have been noticing issues with scaling etc and having to do my own calculations to compensate. I'm not sure this is an issue here directly, though?
gcv version (or commit ref): github.com/vcaesar/gcv v0.40.5
Go version: go version go1.21.4 darwin/arm64
Operating system and bit: MacOS M3 chip
Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: arm64-apple-darwin23.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
The text was updated successfully, but these errors were encountered:
Problem
robotgo.CaptureImg()
.DecodeImg
, then the X Y coordinates fromFindImg()
are correct. See code 1.FindImg()
, the results are different! See code 2.This is a problem for those who want to use the images from memory, not having to save them to the filesystem first.
Code 1:
Note: please substitute for your own images.
This gives:
Code 2:
Note how the only difference between the two code snippets are that we're saving the image first and then loading it with
DecodeImg
.Extra Info
github.com/vcaesar/gcv v0.40.5
go version go1.21.4 darwin/arm64
The text was updated successfully, but these errors were encountered: