Opencv writing and reading from a buffer
问题 I have two tasks (Threads) each task runs on a different processor(core), the first capture an image repeatedly using OpenCV videocapture() . I only used these two lines for the capture : cv::Mat frame; capture.read(frame); Now I want to display the captured image using the second task. After executing the imshow function within the second task's code : cv::imshow("Display window", frame); I got the following output error : OpenCV Error: Assertion failed (size.width>0 && size.height>0) in