I am trying to run a C++ executable from the command line as an easy way to run some C++ code with no I/O from python. When I run the executable file I get this error:
OpenCV(4.1.2) Error: Assertion failed (dims <= 2 && step[0] > 0) in cv::Mat::locateROI, file C:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\matrix.cpp, line 757 OpenCV: terminate handler is called! The last OpenCV error is: OpenCV(4.1.2) Error: Assertion failed (dims <= 2 && step[0] > 0) in cv::Mat::locateROI, file C:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\matrix.cpp, line 757
I don't receive any errors when running the code in Visual Studio debugger. I also checked to make sure the executable was updated after I rebuilt the project.
I notice the issues mention OpenCV. I followed these instructions to add OpenCV to the project: https://subwaymatch.medium.com/opencv-410-with-vs-2019-3d0bc0c81d96