The code runs and I’m able to see the output from the camera, but the exposure remains unchanged and the terminal outputs this error when the code runs:
CS: ERROR: ioctl VIDIOC_S_EXT_CTRLS failed at UsbCameraProperty.cpp:66: Invalid argument (UsbUtil.cpp:122)
I’m also running an mjpeg server and I’m able to change the exposure through that, so I’m not sure what I’m doing wrong. Thanks for the help in advance.
Sorry I’m new to all of this, but by the cscore web server, are you referring to the mjpeg server or something else? If you’re talking about the mjpeg server, I am able to change the exposure by setting the exposure to manual using the radio buttons and then changing the exposure slider. As for the enumerate properties, I have added the following line:
print(cam.enumerateProperties())
and I get the following output:
<cscore._cscore.VideoProperty object at 0x769fda28>,
<cscore._cscore.VideoProperty object at 0x769fd4b8>,
<cscore._cscore.VideoProperty object at 0x769fd6c8>,
<cscore._cscore.VideoProperty object at 0x6eafdaa0>,
<cscore._cscore.VideoProperty object at 0x6eafda88>,
<cscore._cscore.VideoProperty object at 0x6eb6b3b0>,
<cscore._cscore.VideoProperty object at 0x6eb6b1d0>,
<cscore._cscore.VideoProperty object at 0x6eb6b2f0>,
<cscore._cscore.VideoProperty object at 0x6eb6b320>,
<cscore._cscore.VideoProperty object at 0x6eb6b2d8>,
<cscore._cscore.VideoProperty object at 0x6eb6b908>,
<cscore._cscore.VideoProperty object at 0x6e921218>,
<cscore._cscore.VideoProperty object at 0x6e921230>,
<cscore._cscore.VideoProperty object at 0x6e921248>,
<cscore._cscore.VideoProperty object at 0x6e921260>,
<cscore._cscore.VideoProperty object at 0x6e921278>,
<cscore._cscore.VideoProperty object at 0x6e921290>,
<cscore._cscore.VideoProperty object at 0x6e9212a8>,
<cscore._cscore.VideoProperty object at 0x6e9212c0>,
<cscore._cscore.VideoProperty object at 0x6e9212d8>]
I don’t know what any of this means so if you can help me or point me in the right direction that would be appreciated.