Error accessing camera connected to NVIDIA Jetson AGX ORIN 64 Gb development kit
I am trying to access camera connected to Nvidia Jeston AGX orin. The camera model is: See3CAM_CU135M_H03R1 (econsystem usb 3). The camera is working properly in Nvidia Jeston. But when i am trying to use it on matlab i am having the following output and error:
Checking for CUDA availability on the Target…
Checking for ‘nvcc’ in the target system path…
Checking for cuDNN library availability on the Target…
Checking for TensorRT library availability on the Target…
Checking for prerequisite libraries is complete.
Gathering hardware details…
Checking for third-party library availability on the Target…
Gathering hardware details is complete.
Board name : NVIDIA Jetson AGX Orin Developer Kit
CUDA Version : 12.2
cuDNN Version : 8.9
TensorRT Version : 8.6
GStreamer Version : 1.20.3
V4L2 Version : 1.22.1-2build1
SDL Version : 1.2
OpenCV Version : 4.8.0
Available Webcams : See3CAM_CU135M_H03R1
Available GPUs : Orin
Available Digital Pins : 7 11 12 13 15 16 18 19 21 22 23 24 26 29 31 32 33 35 36 37 38 40
Available Webcams:
1: See3CAM_CU135M_H03R1
Details of Webcam 1: See3CAM_CU135M_H03R1
Error initializing camera See3CAM_CU135M_H03R1: Gstreamer pipeline error. Make sure that the camera is not opened.
The code which i used is given below:
clear all
close all
clc
% Connect to the Jetson
hwJetson = jetson(‘10.134.169.67’, ‘JetsonCam’, ‘ws132’);
% List the available webcams
webcams = hwJetson.WebcamList;
% Display the list of webcams
disp(‘Available Webcams:’);
for i = 1:length(webcams)
fprintf(‘%d: %sn’, i, webcams{i});
end
% Get detailed information about each webcam
for i = 1:length(webcams)
camName = webcams{i};
fprintf(‘nDetails of Webcam %d: %sn’, i, camName);
% Try to initialize the camera with a specific resolution and frame rate
try
% Initialize the camera with the default resolution and frame rate
cam = camera(hwJetson, camName, [1280 720]); % Example resolution and frame rate
% Display video modes supported by the camera
videoModes = cam.AvailableResolutions;
% Print available resolutions
fprintf(‘Available Resolutions:n’);
for j = 1:length(videoModes)
fprintf(‘Resolution %d: %sn’, j, videoModes{j});
end
% Clean up
clear cam;
catch ME
% Display an error message if the camera initialization fails
fprintf(‘Error initializing camera %s: %sn’, camName, ME.message);
end
endI am trying to access camera connected to Nvidia Jeston AGX orin. The camera model is: See3CAM_CU135M_H03R1 (econsystem usb 3). The camera is working properly in Nvidia Jeston. But when i am trying to use it on matlab i am having the following output and error:
Checking for CUDA availability on the Target…
Checking for ‘nvcc’ in the target system path…
Checking for cuDNN library availability on the Target…
Checking for TensorRT library availability on the Target…
Checking for prerequisite libraries is complete.
Gathering hardware details…
Checking for third-party library availability on the Target…
Gathering hardware details is complete.
Board name : NVIDIA Jetson AGX Orin Developer Kit
CUDA Version : 12.2
cuDNN Version : 8.9
TensorRT Version : 8.6
GStreamer Version : 1.20.3
V4L2 Version : 1.22.1-2build1
SDL Version : 1.2
OpenCV Version : 4.8.0
Available Webcams : See3CAM_CU135M_H03R1
Available GPUs : Orin
Available Digital Pins : 7 11 12 13 15 16 18 19 21 22 23 24 26 29 31 32 33 35 36 37 38 40
Available Webcams:
1: See3CAM_CU135M_H03R1
Details of Webcam 1: See3CAM_CU135M_H03R1
Error initializing camera See3CAM_CU135M_H03R1: Gstreamer pipeline error. Make sure that the camera is not opened.
The code which i used is given below:
clear all
close all
clc
% Connect to the Jetson
hwJetson = jetson(‘10.134.169.67’, ‘JetsonCam’, ‘ws132’);
% List the available webcams
webcams = hwJetson.WebcamList;
% Display the list of webcams
disp(‘Available Webcams:’);
for i = 1:length(webcams)
fprintf(‘%d: %sn’, i, webcams{i});
end
% Get detailed information about each webcam
for i = 1:length(webcams)
camName = webcams{i};
fprintf(‘nDetails of Webcam %d: %sn’, i, camName);
% Try to initialize the camera with a specific resolution and frame rate
try
% Initialize the camera with the default resolution and frame rate
cam = camera(hwJetson, camName, [1280 720]); % Example resolution and frame rate
% Display video modes supported by the camera
videoModes = cam.AvailableResolutions;
% Print available resolutions
fprintf(‘Available Resolutions:n’);
for j = 1:length(videoModes)
fprintf(‘Resolution %d: %sn’, j, videoModes{j});
end
% Clean up
clear cam;
catch ME
% Display an error message if the camera initialization fails
fprintf(‘Error initializing camera %s: %sn’, camName, ME.message);
end
end I am trying to access camera connected to Nvidia Jeston AGX orin. The camera model is: See3CAM_CU135M_H03R1 (econsystem usb 3). The camera is working properly in Nvidia Jeston. But when i am trying to use it on matlab i am having the following output and error:
Checking for CUDA availability on the Target…
Checking for ‘nvcc’ in the target system path…
Checking for cuDNN library availability on the Target…
Checking for TensorRT library availability on the Target…
Checking for prerequisite libraries is complete.
Gathering hardware details…
Checking for third-party library availability on the Target…
Gathering hardware details is complete.
Board name : NVIDIA Jetson AGX Orin Developer Kit
CUDA Version : 12.2
cuDNN Version : 8.9
TensorRT Version : 8.6
GStreamer Version : 1.20.3
V4L2 Version : 1.22.1-2build1
SDL Version : 1.2
OpenCV Version : 4.8.0
Available Webcams : See3CAM_CU135M_H03R1
Available GPUs : Orin
Available Digital Pins : 7 11 12 13 15 16 18 19 21 22 23 24 26 29 31 32 33 35 36 37 38 40
Available Webcams:
1: See3CAM_CU135M_H03R1
Details of Webcam 1: See3CAM_CU135M_H03R1
Error initializing camera See3CAM_CU135M_H03R1: Gstreamer pipeline error. Make sure that the camera is not opened.
The code which i used is given below:
clear all
close all
clc
% Connect to the Jetson
hwJetson = jetson(‘10.134.169.67’, ‘JetsonCam’, ‘ws132’);
% List the available webcams
webcams = hwJetson.WebcamList;
% Display the list of webcams
disp(‘Available Webcams:’);
for i = 1:length(webcams)
fprintf(‘%d: %sn’, i, webcams{i});
end
% Get detailed information about each webcam
for i = 1:length(webcams)
camName = webcams{i};
fprintf(‘nDetails of Webcam %d: %sn’, i, camName);
% Try to initialize the camera with a specific resolution and frame rate
try
% Initialize the camera with the default resolution and frame rate
cam = camera(hwJetson, camName, [1280 720]); % Example resolution and frame rate
% Display video modes supported by the camera
videoModes = cam.AvailableResolutions;
% Print available resolutions
fprintf(‘Available Resolutions:n’);
for j = 1:length(videoModes)
fprintf(‘Resolution %d: %sn’, j, videoModes{j});
end
% Clean up
clear cam;
catch ME
% Display an error message if the camera initialization fails
fprintf(‘Error initializing camera %s: %sn’, camName, ME.message);
end
end nvidia jetson, camera, image aquisition MATLAB Answers — New Questions