pip install opencv-python realsense2 tqdm
python bag2rgb.py --dir [.bag files's Directory] --imgsize [Extracted Image's Size] --fps [FPS] --vcheck [Yes/No Extracting Video]
./ (1280, 720) 30 n (=no, if you don't want a video)
y (=yes, default)
๐ [Directory]
โโ *.bag
โ
โโ๐ [.bag filename]_IAMGE // IMAGE dir
โ โโ [.bag filename]_1.png
โ โโ [.bag filename]_2.png
โโ [.bag filename]_VIDEO.avi // VIDEO
IMAGEs and VIDEOs will be placed in the same dir with ".bag" file