Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

videocapture read constantly increased memory usage

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

Viewing all articles
Browse latest Browse all 41027


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>