From 2929791ff740b8f7ce149cf6b530b403e95229e3 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Thu, 5 Oct 2017 18:01:34 +0200 Subject: [PATCH] opencv: all examples using new GoCV based code Signed-off-by: deadprogram --- examples/ardrone_face_tracking.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ardrone_face_tracking.go b/examples/ardrone_face_tracking.go index 3ed8563a..2b7785f2 100644 --- a/examples/ardrone_face_tracking.go +++ b/examples/ardrone_face_tracking.go @@ -58,7 +58,7 @@ func main() { if face != nil { opencv.DrawRectangles(i, []img.Rectangle{face}, 0, 255, 0, 5) centerX := float64(img.Size()).X * 0.5 - turn := -(float64(face.Min.X - centerX) / centerX + turn := -(float64(face.Min.X - centerX)) / centerX fmt.Println("turning:", turn) if turn < 0 { drone.Clockwise(math.Abs(turn * 0.4))