Commit dd705b5cc475f3eea3f2bb27059e1d48009f66c5
1 parent
80b4e484
不做扩展,后续可能要实时显示
Showing
1 changed file
with
6 additions
and
6 deletions
src/reprocessing_module/snapshot_reprocessing.cpp
... | ... | @@ -94,14 +94,14 @@ void snapshot_reprocessing::update_bestsnapshot(vector<DeviceMemory*> vec_devMem |
94 | 94 | int cur_real_height = (obj_info.bottom - obj_info.top); |
95 | 95 | int cur_real_index = obj_info.index; |
96 | 96 | |
97 | - int expansion_width = cur_real_width * EXPANSION_PROPORTION; | |
98 | - int expansion_height = cur_real_height * EXPANSION_PROPORTION; | |
97 | + int expansion_width = 0;//cur_real_width * EXPANSION_PROPORTION; | |
98 | + int expansion_height = 0;//cur_real_height * EXPANSION_PROPORTION; | |
99 | 99 | // DEBUG----------------------------------------------------------------- |
100 | 100 | // 0-行人 1-自行车 2-摩托车 3-三轮车 4-小型车 5-大车 6-卡车 7-拖拉机 8-中巴 |
101 | - if(index ==0 || index ==1 || index ==2 || index ==3) { //行人和非机动车外扩指定像素即可 | |
102 | - expansion_width = 10; | |
103 | - expansion_height = 10; | |
104 | - } | |
101 | + // if(index ==0 || index ==1 || index ==2 || index ==3) { //行人和非机动车外扩指定像素即可 | |
102 | + // expansion_width = 10; | |
103 | + // expansion_height = 10; | |
104 | + // } | |
105 | 105 | |
106 | 106 | /* 若该目标第一次出现 */ |
107 | 107 | if (total_snapshot_info.find(new_obj) == total_snapshot_info.end()) | ... | ... |