From 2f0fef8bb70c403b0a048354af330444929cc1b2 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期三, 24 七月 2019 14:13:13 +0800
Subject: [PATCH] ---
---
util/simpleCV.go | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/simpleCV.go b/util/simpleCV.go
index 1915cf7..44f6500 100644
--- a/util/simpleCV.go
+++ b/util/simpleCV.go
@@ -162,7 +162,7 @@
defer rook.Close()
yellow := color.RGBA{255, 255, 0, 0}
- green := color.RGBA{0, 255, 0, 0}
+ red := color.RGBA{255, 0, 0, 0}
// 鍒嗗壊鍖哄煙id闆嗗悎骞舵牴鎹甶d鏌ヨ鍖哄煙鐒跺悗鐢绘
for _,result := range results {
@@ -178,7 +178,7 @@
// 鎶婄洰鏍囨鍑烘潵
for _,result := range results {
for _,rect := range result.Location {
- gocv.Rectangle(&rook, image.Rect(int(rect.X), int(rect.Y), int(rect.X+rect.Width), int(rect.Y+rect.Height)), green, 1)
+ gocv.Rectangle(&rook, image.Rect(int(rect.X), int(rect.Y), int(rect.X+rect.Width), int(rect.Y+rect.Height)), red, 1)
}
}
//return nil,nil
--
Gitblit v1.8.0