This commit is contained in:
2024-12-31 02:51:42 +08:00
parent 47624f12cf
commit 2dfb6c57ce
9 changed files with 58 additions and 22 deletions

View File

@@ -84,10 +84,12 @@ class RenderUtil:
params_data_path = os.path.join(temp_dir, "params.json")
with open(params_data_path, 'w') as f:
json.dump(params, f)
#import ipdb; ipdb.set_trace()
result = subprocess.run([
'/home/hofee/blender-4.0.2-linux-x64/blender', '-b', '-P', script_path, '--', temp_dir
], capture_output=True, text=True)
#print(result)
#import ipdb; ipdb.set_trace()
path = os.path.join(temp_dir, "tmp")
cam_info = DataLoadUtil.load_cam_info(path, binocular=True)
depth_L, depth_R = DataLoadUtil.load_depth(