1212 - [ Zed] ( #zed )
1313 - [ Record] ( #record )
1414 - [ Playback] ( #playback )
15+ - [ Export] ( #export )
1516
1617## Hello, robot world!
1718
@@ -35,7 +36,7 @@ import rofunc as rf
3536| | | ` optitrack.visualize ` | Show or save gif about the motion | |
3637| | ZED | ` zed.record ` | Record with multiple cameras | ✅ |
3738| | | ` zed.playback ` | Playback the recording and save snapshots | ✅ |
38- | | | ` zed.export ` | Export the recording to mp4 | |
39+ | | | ` zed.export ` | Export the recording to .avi and image sequence | ✅ |
3940| | Multi-modal | ` mmodal.record ` | Record multi-modal demonstration data simultaneously | |
4041| ** Logger** | | ` logger.write ` | Custom tensorboard-based logger | |
4142| ** Coordinate** | | ` coord.custom_class ` | Define the custom class of ` Pose ` | |
@@ -200,4 +201,42 @@ Saving image 1.png : SUCCESS
200201Saving image 2.png : SUCCESS
201202Saving image 3.png : SUCCESS
202203...
203- ```
204+ ```
205+
206+ #### Export
207+ ``` python
208+ def export (filepath , mode = 1 ):
209+ """
210+ Export the svo file with specific mode.
211+ Args:
212+ filepath: SVO file path (input) : path/to/file.svo
213+ mode: Export mode: 0=Export LEFT+RIGHT AVI.
214+ 1=Export LEFT+DEPTH_VIEW AVI.
215+ 2=Export LEFT+RIGHT image sequence.
216+ 3=Export LEFT+DEPTH_VIEW image sequence.
217+ 4=Export LEFT+DEPTH_16Bit image sequence.
218+
219+ Returns:
220+
221+ """
222+ ```
223+
224+ Example
225+ ``` python
226+ import rofunc as rf
227+
228+ rf.zed.export(' /home/ubuntu/Data/06_24/Video/20220624_1649/38709363.svo' , 2 )
229+ ```
230+
231+ > Since the converting always take a long time, I provide the batch form to convert in parallel.
232+
233+ ``` python
234+ def export_batch (filedir , all_mode = True , mode = None , core_num = 10 ):
235+ ```
236+
237+ Example:
238+ ```
239+ rf.zed.export_batch('/home/ubuntu/Data/06_24/Video/20220624_1649', core_num=20)
240+ ```
241+
242+ Then you can convert all the .svo files under the specific directory with all mode in parallel. Enjoy it!
0 commit comments