Fix uncompleted detected bodies

This commit is contained in:
Barzan Hayati 2025-08-12 21:34:11 +00:00
parent 8467eeef4c
commit 57f5d58e1e

View File

@ -307,7 +307,7 @@ GstPadProbeReturn NvInferServerManager::pgie_pad_buffer_probe(
uint detected_persons = 0;
float *data = static_cast<float *>(layer.buffer);
for (unsigned int jkl = 0; jkl < 100;
jkl += 4) { // 100 persons for each frame
jkl ++) { // 100 persons for each frame
if (data[jkl * 57 + 4] > threshold_body_detection) {
detected_persons++;
// std::cout