So I’m trying to flip between two cameras with a button, and I found this post with a solution that seems to have worked. However, after copying it into my robot code I get the error
OpenCV(3.4.4) Error: Assertion failed (!fixedSize()) in release, file /var/lib/jenkins/workspace/OpenCV/OpenCV - Release/arm/opencv/modules/core/src/matrix_wrap.cpp, line 1668 terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(3.4.4) /var/lib/jenkins/workspace/OpenCV/OpenCV - Release/arm/opencv/modules/core/src/matrix_wrap.cpp:1668: error: (-215:Assertion failed) !fixedSize() in function 'release'
Any help? I’m probably missing something obvious