diff --git a/README.md b/README.md index 9eb02dc..220a6a9 100644 --- a/README.md +++ b/README.md @@ -310,7 +310,8 @@ func opencv() { res1 := gcv.Find(img1, img) fmt.Println("find: ", res1) - x, y = gcv.FindX(img1, img) + img2, _, _ := robotgo.DecodeImg("test_001.png") + x, y = gcv.FindX(img2, img) fmt.Println(x, y) } ``` diff --git a/README_zh.md b/README_zh.md index e178ac2..474789a 100644 --- a/README_zh.md +++ b/README_zh.md @@ -307,7 +307,8 @@ func opencv() { res1 := gcv.Find(img1, img) fmt.Println("find: ", res1) - x, y = gcv.FindX(img1, img) + img2, _, _ := robotgo.DecodeImg("test_001.png") + x, y = gcv.FindX(img2, img) fmt.Println(x, y) } ```