Hello, I was originally trying to create an nvidiaio.internal.camera object in matlab to capture and record an image.
I used the following code:
function jetson_capture() %#codegen nvidiademo_setup('Xavier_Camera'); hardware = jetson('192.168.10.10','****','****'); camlist = getCameraList(hardware) camera0 = camera(hardware,"vi-output, imx477 30-0010",[1920 1080]); img = snapshot(camera0); image(img) % clear camera0; end
I would receive the following error:
Error using nvidiaio.internal.camera/open Unable to pull the frame. Error in nvidiaio.internal.camera (line 86) obj.open(); Error in nvidiaboard/camera Error in jetson_capture (line 7) camera0 = camera(hardware,"vi-output, imx477 30-0010",[1920 1080]);
From this it appears that the xavier is having issue communicating with camera. I tried to confirm the camera is seen by the xavier device and preview it using
nvgstcapture-1.0. However, when I run this, nothing happens. It states that it enters the capture loop, but the preview image does not show up.
Eventually, the following error shows up:
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 215) (Argus) Error Timeout: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 102) Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:526 Failed to create CameraProvider
I have been unable to track down where this cameraProvider failure is coming from.
Additionally, I have tried to confirm the camera device is working using
v4l2-ctl --device /dev/video0 --stream-mmap --set-ctrl bypass_mode=0 --stream-count=10D, but it gives me the error ‘VIDIOC_STREAMON: failed: Invalid argument’
This leads me to believe there is an issue with the camera communication. Any advice would be greatly appreciated