View Single Post
  #7   Spotlight this post!  
Unread 30-01-2017, 09:43
SamCarlberg's Avatar
SamCarlberg SamCarlberg is online now
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 161
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 using opencv - how to draw on the video

Call the release() method on the OpenCV objects after you're done with them. You may also be able to declare them before the loop and re-use them later.

You're also creating new Points and Scalars when you don't need to. They also use native memory. But since they never change, you can declare them before the loop and avoid memory problems
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote