View Single Post
  #4   Spotlight this post!  
Unread 25-01-2017, 10:22
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 154
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
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
Reply With Quote