Commit 3290100a authored by xin.wang.waytous's avatar xin.wang.waytous

detection-dont-update-box-with-mask

parent d72c8f44
...@@ -59,10 +59,12 @@ void Det2D::update(Det2DPtr obj_){ ...@@ -59,10 +59,12 @@ void Det2D::update(Det2DPtr obj_){
void Det2D::update(std::vector<float>& tlbr){ void Det2D::update(std::vector<float>& tlbr){
if(this->mask_ptr == nullptr){ // instance with mask no update box
this->x1 = tlbr[0]; this->x1 = tlbr[0];
this->y1 = tlbr[1]; this->y1 = tlbr[1];
this->x2 = tlbr[2]; this->x2 = tlbr[2];
this->y2 = tlbr[3]; this->y2 = tlbr[3];
}
}; };
......
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