Commit 05bdf66c authored by xin.wang.waytous's avatar xin.wang.waytous

tracker-out-lost-dets

parent b8a7f804
...@@ -35,8 +35,8 @@ link_directories(/root/TensorRT/TensorRT-7.0.0.11-cuda-10.0/lib) ...@@ -35,8 +35,8 @@ link_directories(/root/TensorRT/TensorRT-7.0.0.11-cuda-10.0/lib)
# include_directories(/usr/include/aarch64-linux-gnu) # include_directories(/usr/include/aarch64-linux-gnu)
# yaml # yaml
# include_directories(/usr/local/include/yaml-cpp) include_directories(/usr/local/include/yaml-cpp)
include_directories(/usr/include/yaml-cpp) # include_directories(/usr/include/yaml-cpp)
# glog gflags # glog gflags
# sudo apt-get install libgoogle-glog* # sudo apt-get install libgoogle-glog*
......
...@@ -253,16 +253,16 @@ bool ByteTracker::Exec() ...@@ -253,16 +253,16 @@ bool ByteTracker::Exec()
tracked_bboxes->detections.push_back(t); tracked_bboxes->detections.push_back(t);
} }
} }
// no detections in, get lost tracks out // get lost tracks out
if(tracked_bboxes->detections.size() == 0){ // if(tracked_bboxes->detections.size() == 0){
for(auto& ltrack: this->lost_tracks){ for(auto& ltrack: this->lost_tracks){
if(this->frame_id - ltrack.end_frame() <= this->out_lost_threshold){ if(this->frame_id - ltrack.end_frame() <= this->out_lost_threshold){
auto t = ltrack.obj_->copy(); auto t = ltrack.obj_->copy();
t->validCoordinate(); t->validCoordinate();
tracked_bboxes->detections.push_back(t); tracked_bboxes->detections.push_back(t);
}
} }
} }
// }
interfaces::SetIOPtr(outputNames[0], tracked_bboxes); interfaces::SetIOPtr(outputNames[0], tracked_bboxes);
LOG_INFO << "Get " << tracked_bboxes->detections.size() << " tracked objs. Removed track length: " << this->removed_tracks.size(); LOG_INFO << "Get " << tracked_bboxes->detections.size() << " tracked objs. Removed track length: " << this->removed_tracks.size();
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment