From 87dad97518a68d6f351ef486e39a9579bdbc8a9a Mon Sep 17 00:00:00 2001 From: AndreNicolai Date: Fri, 26 Jan 2024 09:07:59 +0100 Subject: [PATCH] Small bug-fix This somehow snuck in at the beginning of last year (April 19th), the result of which was that, at least in the mobile example projects, there was only one face being "detected" in the test.jpg image. --- src/facedetectcnn-model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/facedetectcnn-model.cpp b/src/facedetectcnn-model.cpp index d73632a3a..62ddecafe 100644 --- a/src/facedetectcnn-model.cpp +++ b/src/facedetectcnn-model.cpp @@ -226,7 +226,7 @@ int* facedetect_cnn(unsigned char * result_buffer, //buffer memory for storing f for (int i = 0; i < num_faces; i++) { //copy data - short * p = ((short*)(result_buffer + 4)) + 16 * size_t(i); + short * p = ((short*)(result_buffer + 4)) + 142 * size_t(i); p[0] = (short)(faces[i].score * 100); p[1] = (short)faces[i].x; p[2] = (short)faces[i].y;