Skip to content

Commit 2e91d46

Browse files
committed
Simpler api naming, remove unused include
1 parent 81a2b06 commit 2e91d46

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def osd_sink_pad_buffer_probe(pad,info,u_data):
4343
print('user_meta:', user_meta)
4444
print('user_meta.user_meta_data:', user_meta.user_meta_data)
4545
print('user_meta.base_meta:', user_meta.base_meta)
46-
if not pyds_tracker_meta.NvDsPastFrameObjBatch.user_meta_is_past_frame_obj_batch(user_meta):
46+
if not pyds_tracker_meta.NvDsPastFrameObjBatch.is_in(user_meta):
4747
continue
4848
past_frame_object_batch = pyds_tracker_meta.NvDsPastFrameObjBatch.from_user_meta(user_meta)
4949
print('past_frame_object_batch:', past_frame_object_batch)

pyds_tracker_meta.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <iostream>
21
#include <pybind11/pybind11.h>
32
#include <pybind11/stl.h>
43
#include "nvds_tracker_meta.h"
@@ -31,7 +30,7 @@ PYBIND11_MODULE(pyds_tracker_meta, m) {
3130
"casts the data and returns it. Otherwise returns NULL.",
3231
py::return_value_policy::reference)
3332
.def_static(
34-
"user_meta_is_pfob",
33+
"is_in",
3534
[](NvDsUserMeta *user_meta) {
3635
return (user_meta->base_meta.meta_type == NVDS_TRACKER_PAST_FRAME_META);
3736
},
@@ -131,4 +130,4 @@ PYBIND11_MODULE(pyds_tracker_meta, m) {
131130
.def_readonly("confidence", &NvDsPastFrameObj::confidence)
132131
.def_readonly("age", &NvDsPastFrameObj::age);
133132

134-
}
133+
}

0 commit comments

Comments
 (0)