I have written a code in OpenCV for capturing the video frames; though it runs perfectly fine, sometimes it shows following error and crashes:
anonymous