Commit c6f28833 authored by oscar's avatar oscar

提交参数更新

parent 028f9eb5
......@@ -609,7 +609,7 @@ threads = []
threadID = 1
class pcdThread (threading.Thread):
def __init__(self, threadID, name,start,idx, _dirs,_dir_pcd_list,save_list,jsn_list, trans,kit2o,box_info_count,_dir_g):
def __init__(self, threadID, name,start,idx, _dirs,_dir_pcd_list,save_list,jsn_list, trans,kit2o,box_info_count,_dir_g,_m):
threading.Thread.__init__(self)
self.threadID = threadID
self.name = name
......@@ -623,6 +623,7 @@ class pcdThread (threading.Thread):
self.kit2ori = kit2o
self.box_info_count = box_info_count
self.dir_g = _dir_g
self.m = _m
def run(self):
global g_save_count
global MAX_SAVE_FILE_NUM
......@@ -636,6 +637,7 @@ class pcdThread (threading.Thread):
dirs = self._dirs
save_cloud_list = self.save_list #保存点云的数组
json_list = self.jsn_list
m = self.m
while isStop == 0:
if g_save_count >= MAX_SAVE_FILE_NUM:
print("finish g_save_count = ",g_save_count)
......@@ -832,7 +834,7 @@ if __name__ == '__main__':
save_json_list.append(jsn_list)
box_info_cout = {'big': 0, 'little':0,'pedestrian':0,'mid':0,'cyclist':0}
cloud_box_count.append(box_info_cout)
thread = pcdThread(i, "Thread"+ str(i) ,i,Thread_NUM,dirs,dir_pcd_list,save_cloud_list[i],save_json_list[i],generate_Trans,generate_kitti2origin,cloud_box_count[i],dir_g)
thread = pcdThread(i, "Thread"+ str(i) ,i,Thread_NUM,dirs,dir_pcd_list,save_cloud_list[i],save_json_list[i],generate_Trans,generate_kitti2origin,cloud_box_count[i],dir_g,m)
thread.start()
threads.append(thread)
for t in threads:
......
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