Closed tnolle closed 3 days ago
Hello @tnolle thank you for the pull request. I changed the branch to dev
as mentioned here: https://github.com/hybridgroup/gocv/blob/release/CONTRIBUTING.md#how-to-use-our-github-repository
@diegohce can you take a peek at this please?
@deadprogram, oops, you're right. Sorry about that and thanks for changing it!
This patch changes the type of
VideoCaptureProperties
toint32
. It is currently set toint
. This breaksVideoCapture_OpenDeviceWithAPIParams
because it doesn't correclty unpack the slice into thestd::vector<int>
here:With
int64
this for loop will create only zeros in the value parts of the array that OpenCV expects ([p1, v1, ..., pn, vn]
).Changing it to
int32
unpacks the slice correctly and OpenCV will pass the parameters correctly to the respective VideoCapture backends.