Display image in second thread, OpenCV?

后端 未结 4 1375
鱼传尺愫
鱼传尺愫 2021-02-05 15:46

I have a loop to take in images from a high speed framegrabbger at 250fps.

/** Loop processes 250 video frames per second **/
while(1){
  AcquireFrame();
  DoPr         


        
4条回答
  •  死守一世寂寞
    2021-02-05 16:28

    I'm not sure why this happens, but I've added a cvWaitKey after every cvShowImage and the picture was displayed properly.

    cvShowImage(myImage);
    cvWaitKey(1);
    

提交回复
热议问题