|
Re: image processing - robot code crash after a few seconds
When you create a new OpenCV mat (Mat, MatOfPoint, MatOfPoint2f, ...), you have to make sure to call its release() method when you're done with it. Otherwise you can run out of memory, like what's happening here.
If you're not familiar with OpenCV, I strongly suggest you use GRIP to generate the OpenCV code for you.
__________________
WPILib
GRIP, RobotBuilder
|