videocapture read constantly increased memory usage
Acquiring a jpeg from a IP camera, the following while statement causes unrestricted increase in memory with each iteration. Replacing the .read with .grab and .retrieve does not change the behaviour.
--cv:videocapture memory leak (bug #1481) was found while researching this problem and seems to address my problem however, I can;t seem to get an OpenCV version that doesn't continue to have my problem.
---the following command reveals the OpenCV version $ pkg-config --modversion opencv 3.0.0
---the following produced the memory leak.
while(1)
{
cv::Mat a;
Cam3.open("http://"My URL"/image/jpeg.cgi");
Cam3.read(a)
cv::imshow("Window", a);
cv::waitKey(1);
Cam3.release();
a.release();
}
Any help would be appreciated.
jim
Unresolved bug: https://github.com/Itseez/opencv/issu...