Skip to content

Commit

Permalink
change neighbors to confidence
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiqiYu authored Mar 24, 2019
1 parent 1d0f7c1 commit cccf878
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/libfacedetect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit cccf878

Please sign in to comment.