New to this hardware. Trying to run sample code on Jetson Orin AGX

Jetson Orin AGX
SDK 3.8.2 (Yesterdays Download) 2023-02-06T00:00:00Z
Ubuntu 20.04.5 LTS

I don’t have my camera yet (Zed X) so I’m trying to learn on sample data. Got the SDK installed along with python api and everything else as far as I know. I’m new so it’s all a learning curve. This is the code I used altered from
Using the Video API | Stereolabs
https://support.stereolabs.com/hc/en-us/articles/1500009269601-Are-there-any-video-image-samples-from-the-ZED-products-that-I-can-see-and-test-before-the-purchase-

import sys
from sys import exit
import pyzed.sl as sl 

# Create a Zed Camera object. 
zed = sl.Camera()

# Set SVO path for playback. 
# "/home/j/Downloads/ZED2_HD2K_Runners_H264.svo"
# input_path = sys.argv[1]
init_parameters = sl.InitParameters()
init_parameters.set_from_svo_file("/home/j/Downloads/ZED2_HD2K_Runners_H264.svo")

# Open the Zed
zed = sl.Camera()
err = zed.open(init_parameters)

svo_image = sl.Mat()
while not sys.exit:
  if zed.grab() == sl.ERROR_CODE.SUCCESS:
    
    # Read side by side frames stored in the SVO
    zed.retrieve_image(svo_image, sl.VIEW.SIDE_BY_SIDE)
    
    # Get frame count
    svo_position = zed.get_svo_position();
  elif zed.grab() == sl.ERROR_CODE.END_OF_SVOFILE_REACHED:
    print("SVO end has been reached. Looping back to first frame")
    zed.set_svo_position(0)
    exit()

if I run, after chmoding the file, as
python3 “SVO_Tutorial_One.py” ZED2_HD2K_Runners_H264.svo

Output is this: I have no idea where to look these codes up yet. Any help would be appreciated.

Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261

Thanks for your time,
Jay.

Hi,

Your code probably works, but does not return or print anything.
I suggest you check our python tutorials on GitHub - stereolabs/zed-examples: ZED SDK Example projects
You’ll find other samples of codes that will get values from the depth map, or display it in a window, etc.

Antoine

I’m going through them and they’re great but at least for my system need small alterations to be drop in and learn. Once I’ve passed through them all, I would be happy to share what worked for me on the AGX. It’s small things like importing the right module not mentioned in the code or adding in a \n in a print() so that the results display properly. Other than that, it’s a lot of fun learning. Thanks for your help.