Commit c1348888 authored by yangxue's avatar yangxue

debug obj.valid

parent 7842dfc3
......@@ -5,7 +5,7 @@
* @Date: 2023-09-03 03:13:41
* @email: xin.wang@waytous.com
* @LastEditors: yangxue xue.yang@waytous.com
* @LastEditTime: 2025-04-02 08:12:15
* @LastEditTime: 2025-04-10 09:24:17
*/
......@@ -974,7 +974,11 @@ int Visione_3D::Process_Instance_Objects(object_Seg_info& obj, const cv::Mat& in
}
bool valid = Tracks[obj.track_id].valid;
std::cout<<"obj: "<< obj.track_id<< ","<< obj.name <<" with project ratio: "<< project_ratio << ", " << project_count << std::endl;
if(valid) std::cout << "valid----------------" << std::endl;
if(valid) {
std::cout << "valid track----------------" << std::endl;
} else {
std::cout << "invalid track----------------" << std::endl;
}
if(valid){
Tracks[obj.track_id].last_update_age = 0; // update
}
......@@ -991,7 +995,11 @@ int Visione_3D::Process_Instance_Objects(object_Seg_info& obj, const cv::Mat& in
pointEnough = true;
}
}
if(pointEnough) std::cout << "point enough----------------" << std::endl;
if(pointEnough) {
std::cout << "point enough----------------" << std::endl;
} else {
std::cout << "point not enough----------------" << std::endl;
}
if(valid){
if(pointEnough)
......@@ -1002,9 +1010,9 @@ int Visione_3D::Process_Instance_Objects(object_Seg_info& obj, const cv::Mat& in
insobj.fConfidence = obj.fConfidence;
vGrid.vInsObjs.push_back(insobj);
obj.valid = obj.valid + 1;
// std::cout<< obj.track_id<<"valid----------------"<<std::endl;
std::cout<< obj.track_id<<"valid----------------"<<std::endl;
}else{
std::cout<< obj.track_id<<"not enough----------------"<<std::endl;
std::cout<< obj.track_id<<" valid but not enough----------------"<<std::endl;
return -1; // depth estimination
}
}else{
......
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