When I run the program with saveVideo = true, I get an error:
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.5.1) ../modules/videoio/src/cap_ffmpeg.cpp:172: error: (-215:Assertion failed) image.depth() == CV_8U in function 'write'
It runs fine when I turn saveVideo off.
I'm running on a raspberry pi 4, with a 32-bit OS.
$ uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
The error is exactly the same with both Release and Debug builds.
I've already checked, and all of the dependencies are installed.
When I run the program with
saveVideo = true, I get an error:It runs fine when I turn saveVideo off.
I'm running on a raspberry pi 4, with a 32-bit OS.
The error is exactly the same with both Release and Debug builds.
I've already checked, and all of the dependencies are installed.