I'm trying to use OpenCV with CODESYS but I can't change the capture size from a USB camera (not using the piCam).
I modified the OpenCV example like this :
But it looks like the SetCaptureProperty is simply ignored. When I llok the webvisu it is still in 640x480, and in the program the pImgCam is also 640x480.
Side note : if I try with property 4 : HEIGHT, the codesyscontrol crashes.
I tried the FBD and the ST program, but no luck in either cases.
I even tried to reduce the image display on the visualization, but it didn't work.
Does someone know how to change the capture size from a camera in OpenCV+CODESYS ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello happy people,
I'm trying to use OpenCV with CODESYS but I can't change the capture size from a USB camera (not using the piCam).
I modified the OpenCV example like this :
But it looks like the SetCaptureProperty is simply ignored. When I llok the webvisu it is still in 640x480, and in the program the pImgCam is also 640x480.
Side note : if I try with property 4 : HEIGHT, the codesyscontrol crashes.
I tried the FBD and the ST program, but no luck in either cases.
I even tried to reduce the image display on the visualization, but it didn't work.
Does someone know how to change the capture size from a camera in OpenCV+CODESYS ?