zed-sdk icon indicating copy to clipboard operation
zed-sdk copied to clipboard

Can SVO2 recording and other tasks obtain image data at the same time?

Open byhang opened this issue 5 months ago • 7 comments

Preliminary Checks

  • [x] This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • [ ] This issue is not a question, bug report, or anything other than a feature request directly related to this project.

Proposal

Hi, I want to ensure that other programs using zed2i camera data are not affected during the svo2 recording process.

Use-Case

zed_cam.enable_recording(recordingParameters)
while True:
    if zed_cam.grab(runtime) == sl.ERROR_CODE.SUCCESS :  # recording
        zed_cam.retrieve_image(left_image, sl.VIEW.LEFT)           # get image data for orther task
        zed_cam.retrieve_image(right_image, sl.VIEW.RIGHT)
        zed_cam.retrieve_measure(depth_map, sl.MEASURE.DEPTH)
        # But I got "**Segmentation fault (core dumped)**"

Anything else?

Is there any way I can achieve both of these tasks at the same time?

byhang avatar May 13 '25 02:05 byhang