|
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
|