Spaces:
Build error
Build error
Commit
·
915c996
1
Parent(s):
f122ecf
Upload rendering.py
Browse files- visualise/rendering.py +2 -2
visualise/rendering.py
CHANGED
@@ -161,14 +161,14 @@ class RenderTool():
|
|
161 |
tmp_video_file.close()
|
162 |
if int(cv2.__version__[0]) < 3:
|
163 |
print('cv2 < 3')
|
164 |
-
writer = cv2.VideoWriter(tmp_video_file.name, cv2.cv.CV_FOURCC(*'mp4v'), 30, (width,
|
165 |
else:
|
166 |
print('cv2 >= 3')
|
167 |
writer = cv2.VideoWriter(tmp_video_file.name, cv2.VideoWriter_fourcc(*'mp4v'), 30, (width, height), True)
|
168 |
|
169 |
center = np.mean(v_list[0][0], axis=0)
|
170 |
|
171 |
-
r = pyrender.OffscreenRenderer(viewport_width=800, viewport_height=
|
172 |
|
173 |
# random exchange the position of our method and SG3D
|
174 |
# pos = random.randint(1, 2)
|
|
|
161 |
tmp_video_file.close()
|
162 |
if int(cv2.__version__[0]) < 3:
|
163 |
print('cv2 < 3')
|
164 |
+
writer = cv2.VideoWriter(tmp_video_file.name, cv2.cv.CV_FOURCC(*'mp4v'), 30, (width, height), True)
|
165 |
else:
|
166 |
print('cv2 >= 3')
|
167 |
writer = cv2.VideoWriter(tmp_video_file.name, cv2.VideoWriter_fourcc(*'mp4v'), 30, (width, height), True)
|
168 |
|
169 |
center = np.mean(v_list[0][0], axis=0)
|
170 |
|
171 |
+
r = pyrender.OffscreenRenderer(viewport_width=800, viewport_height=viewport_height)
|
172 |
|
173 |
# random exchange the position of our method and SG3D
|
174 |
# pos = random.randint(1, 2)
|