In my deepstream app, the usb device is designed to link both camera and led, reads from camera and writes to control led, when detect some object, I need use cap of the device to set data to control led, how can I get the cap of the device to write data when the app is running? I am using python.
Can you describe the details of your āusb deviceā and the meaning of the ācap of the deviceā?
Can you get the camera informatin via v4l2ctl command?
1 The device is integrated device, integrates a camera and a led panel, camera is responsible for catch picture for analysis, and led panel is to show result.
2 The device connects to Xavier NX, to catch picture just need to add ā/dev/video0ā to pipeline, link and play, it runs well.
3 To turn on led panel to show something, I use python code as following:
cap = cv2.VideoCapture(ā/dev/video0ā)
if cap.isOpened():
cap.set(0x0a, 0x11)
when streamapp doesnāt run, it works well too.
4 But, when the deepstream app is running, the cap like above can not be opened, so the led can not be operated, I think it is due to conflict.
5 Now, I want to know if there is a device handle like cap to operate led in deepstream app, thus need not to get another device handle to avoid this confilct.
Any question above the description, I will make clear at first time, any advice, much appreciated. ^_^
you can call set_property to set v4l2srcās extra-controls property. like this:
pgie.set_property(āconfig-file-pathā, ādstest1_pgie_config.txtā)