Camera USB Sample application

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
Linux
QNX
other

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.7.1.8928
other

Host Machine Version
native Ubuntu 18.04
other

I am testing the Sensor/Camera_USB sample application and it seems that only supports USB cameras with YUYV 4:2:2 output? I have a camera which supports UYVY and MJPEG.

Just wondering if it is possible to develop a plugin to support UYVY ?

Thanks

Dear @jpvans,
Plugin development is not possible for camera. May I know camera details and what error you encounter?

I am using a E-ConSystems Camera See3CAM_CU135

The sample application is the following:

jptalledo@CCIDev:~/nvidia_sdk3/src/sensors/camera/camera_usb$ ./sample_camera_usb 
[27-03-2022 14:35:36] Platform: Detected Generic x86 Platform
[27-03-2022 14:35:36] TimeSource: monotonic epoch time offset is 1648405858279585
[27-03-2022 14:35:36] Platform: number of GPU devices detected 1
[27-03-2022 14:35:36] Platform: currently selected GPU device discrete ID 0
[27-03-2022 14:35:36] Context::getDataPathFromSelfLocation DATA_ROOT found at: /usr/local/driveworks-3.0/data
[27-03-2022 14:35:36] SDK: Resources mounted from /usr/local/driveworks-3.0/data/
[27-03-2022 14:35:37] TimeSource: monotonic epoch time offset is 1648405858279585
[27-03-2022 14:35:37] Initialize DriveWorks SDK v3.0.5819-experimental
[27-03-2022 14:35:37] Experimental Release build with GNU 7.4.0 from heads/buildbrain-branch-0-ge470818d679
[27-03-2022 14:35:37] Initialize DriveWorks VisualizationSDK v3.0.5819-experimental
[27-03-2022 14:35:37] Initialize DriveWorksGL SDK v3.0.5819-experimental
[27-03-2022 14:35:37] GL-SDK: initialize OpenGL
[27-03-2022 14:35:37] SensorFactory::createSensor() -> camera.usb, device=0,mode=0
[27-03-2022 14:35:37] Driveworks exception thrown: DW_SAL_CANNOT_CREATE_SENSOR: CameraV4L: Could not select appropriate capture settings(Invalid argument)


**** Stack trace ****
/usr/local/driveworks/targets/x86_64-Linux/lib/libdriveworks.so.3: dw_9450038259943f6d4a10e2c3a893c970616b81c4()+0x8f [0x7ff0b693775f]
/usr/local/driveworks/targets/x86_64-Linux/lib/libdriveworks.so.3: dw_51b177af7a62fed1f8025ccc03016576b7c3d6d0()+0xbed [0x7ff0b6cb179d]
/usr/local/driveworks/targets/x86_64-Linux/lib/libdriveworks.so.3: dw_210110e7963074615e869856b33ff0f539a0e83a()+0x34b [0x7ff0b6cb1b9b]
/usr/local/driveworks/targets/x86_64-Linux/lib/libdriveworks.so.3: dw_86390dae6bc1e149e888f8493cace40ee30b4790()+0x23 [0x7ff0b6ddba33]
/usr/local/driveworks/targets/x86_64-Linux/lib/libdriveworks.so.3: dw_fdb46ec6eb0d354c03ea7c9156c303e49be5a442()+0x4e8 [0x7ff0b6dcfd68]
/usr/local/driveworks/targets/x86_64-Linux/lib/libdriveworks.so.3: dwSAL_createSensor()+0x2ea [0x7ff0b6de2d9a]
./sample_camera_usb: ()+0xbe17 [0x557aca5fce17]
./sample_camera_usb: ()+0x11804 [0x557aca602804]
./sample_camera_usb: ()+0x7759 [0x557aca5f8759]
/lib/x86_64-linux-gnu/libc.so.6: __libc_start_main()+0xe7 [0x7ff0b3cdbc87]
./sample_camera_usb: ()+0x79ea [0x557aca5f89ea]


terminate called after throwing an instance of 'std::runtime_error'
  what():  [2022-03-27 14:35:37] DW Error DW_SAL_CANNOT_CREATE_SENSOR executing DW function:
 dwSAL_createSensor(&m_camera, params, m_sal)
 at /usr/local/driveworks/samples/src/sensors/camera/camera_usb/main.cpp:127
Aborted (core dumped)

v4l2 shows:

jptalledo@CCIDev:~/nvidia_sdk3/src/sensors/camera/camera_usb$ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘UYVY’
Name : UYVY 4:2:2
Size: Discrete 1280x720
Interval: Discrete 0.017s (60.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.017s (60.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 3840x2160
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Size: Discrete 4208x3120
Interval: Discrete 0.111s (9.000 fps)
Interval: Discrete 0.222s (4.500 fps)
Size: Discrete 4096x2160
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.133s (7.500 fps)
Size: Discrete 640x480
Interval: Discrete 0.008s (120.000 fps)
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 1280x960
Interval: Discrete 0.017s (60.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1920x1440
Interval: Discrete 0.022s (45.000 fps)
Interval: Discrete 0.044s (22.500 fps)
Size: Discrete 2880x2160
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.100s (10.000 fps)

Index : 1
Type : Video Capture
Pixel Format: ‘MJPG’ (compressed)
Name : Motion-JPEG
Size: Discrete 1280x720
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 3840x2160
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 4208x3120
Interval: Discrete 0.050s (20.000 fps)
Size: Discrete 4096x2160
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.008s (120.000 fps)
Size: Discrete 1280x960
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 1920x1440
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 2880x2160
Interval: Discrete 0.033s (30.000 fps)

Dear @jpvans,
Yes UYVY is not supported. Also, I notice you seems to be using DW 3.0 release which is not part of Devzone release( DRIVE SW 10.0 has DW 2.2)

Thanks for confirming. I am using both DW 10 and Nvidia Drive 3.0