Commit e6f31465 authored by oscar's avatar oscar

提交代码修改

parent 21abad1e
...@@ -483,10 +483,10 @@ if __name__ == '__main__': ...@@ -483,10 +483,10 @@ if __name__ == '__main__':
total_ind = 0 total_ind = 0
for child_ind,child_dir in enumerate(children_dir): for child_ind,child_dir in enumerate(children_dir):
pcd_list = glob.glob(os.path.join(root_path,child_dir)+'\\pcd\\*.pcd') pcd_list = glob.glob(os.path.join(root_path,child_dir)+'\\pcd\\*.pcd') #获取子目录下的所有pcd文件列表,其中每个元素都有完整的路径和文件名
#读标注的json文件 #读标注的json文件
anno = {} anno = {} #保存标记的信息列表,每个元素key是文件名,value是所有标记的信息列表
jsn_file = os.path.join(os.path.join(root_path,child_dir), child_dir + ".json") jsn_file = os.path.join(os.path.join(root_path,child_dir), child_dir + ".json")
with open(jsn_file, 'r',encoding='utf-8',errors='ignore') as fp: with open(jsn_file, 'r',encoding='utf-8',errors='ignore') as fp:
jsn = json.load(fp) jsn = json.load(fp)
......
This diff is collapsed.
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