Fix uncompleted detected bodies
This commit is contained in:
parent
8467eeef4c
commit
57f5d58e1e
@ -307,7 +307,7 @@ GstPadProbeReturn NvInferServerManager::pgie_pad_buffer_probe(
|
|||||||
uint detected_persons = 0;
|
uint detected_persons = 0;
|
||||||
float *data = static_cast<float *>(layer.buffer);
|
float *data = static_cast<float *>(layer.buffer);
|
||||||
for (unsigned int jkl = 0; jkl < 100;
|
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) {
|
if (data[jkl * 57 + 4] > threshold_body_detection) {
|
||||||
detected_persons++;
|
detected_persons++;
|
||||||
// std::cout
|
// std::cout
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user