Skip to content

Commit 1b6f76d

Browse files
committed
Fix keypoints tensor processing in jsonconverter.cpp
1 parent a641e1d commit 1b6f76d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/monolithic/gst/elements/gvametaconvert/jsonconverter.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ json convert_frame_tensors(GstGvaMetaConvert *converter, GstBuffer *buffer) {
289289
const std::vector<GVA::Tensor> tensors = video_frame.tensors();
290290
json array = json::array();
291291
for (auto &tensor : video_frame.tensors()) {
292-
if (!tensor.has_field("type") || tensor.type() == "keypoints") {
292+
if (!tensor.has_field("type")) {
293293
array.push_back(convert_tensor(tensor));
294294
}
295295
}
@@ -606,8 +606,7 @@ json convert_lidar_inference_meta(GstGvaMetaConvert *converter, GstBuffer *buffe
606606
objects.push_back(detection);
607607
}
608608

609-
if (converter->add_tensor_data && (!tensor.has_field("type") || tensor.type() == "keypoints") &&
610-
tensor.has_field("data_buffer")) {
609+
if (converter->add_tensor_data && !tensor.has_field("type") && tensor.has_field("data_buffer")) {
611610
tensors.push_back(convert_tensor(tensor));
612611
}
613612
}

0 commit comments

Comments
 (0)