|
|
NVIDIA DeepStream SDK API Reference
|
9.1 Release
|
Go to the documentation of this file.
20 #include "data_receiver.hpp"
22 #define PGIE_CLASS_ID_VEHICLE 0
23 #define PGIE_CLASS_ID_PERSON 2
33 auto vehicle_count = 0;
34 auto person_count = 0;
36 auto class_id = object_data.
classId();
43 std::cout <<
"Object Counter: " <<
44 " Pad Idx = " << frame_data.
padIndex() <<
45 " Frame Number = " << frame_data.
frameNum() <<
46 " Vehicle Count = " << vehicle_count <<
47 " Person Count = " << person_count << std::endl;
#define PGIE_CLASS_ID_PERSON
BatchMetadata getBatchMetadata()
required interface for a data receiver
#define PGIE_CLASS_ID_VEHICLE
virtual int consume(DataReceiver &receiver, Buffer buffer)
A specific signal handler for consuming data.
static deepstream::Cloud2DeviceReceiver receiver