回答編集履歴
1
code 部分に markdown を挿入
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
以下、bag ファイルから RGB カラー画像を取り出して mp4 に変換するスクリプトを載せておきます。
|
6
6
|
|
7
|
-
|
7
|
+
```
|
8
8
|
import pyrealsense2 as rs
|
9
9
|
import numpy as np
|
10
10
|
import cv2
|
@@ -66,4 +66,5 @@
|
|
66
66
|
finally:
|
67
67
|
pipeline.stop()
|
68
68
|
writer.release()
|
69
|
-
cv2.destroyAllWindows()
|
69
|
+
cv2.destroyAllWindows()
|
70
|
+
```
|