From cccf87825deae7fa63c40a1fbc28bdcb3e9d14c6 Mon Sep 17 00:00:00 2001 From: Shiqi Yu Date: Sun, 24 Mar 2019 18:32:27 +0800 Subject: [PATCH] change neighbors to confidence --- example/libfacedetect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/libfacedetect.cpp b/example/libfacedetect.cpp index ec1f7ef..c101002 100644 --- a/example/libfacedetect.cpp +++ b/example/libfacedetect.cpp @@ -127,11 +127,11 @@ static GstFlowReturn transform_ip(GstBaseTransform *trans, GstBuffer *buf) { int y = p[1]; int w = p[2]; int h = p[3]; - int neighbors = p[4]; + int confidence = p[4]; int angle = p[5]; - GST_ERROR("face_rect=[%d, %d, %d, %d], neighbors=%d, angle=%d", x,y,w,h,neighbors, angle); - if (neighbors >= self->thresh) { + GST_ERROR("face_rect=[%d, %d, %d, %d], confidence=%d, angle=%d", x,y,w,h,confidence, angle); + if (confidence >= self->thresh) { if (self->boxes) { rectangle(image, Rect(x, y, w, h), Scalar(0, 255, 0), 2); }