Python OpenCV - waitKey(0) does not respond?

后端 未结 12 937
忘掉有多难
忘掉有多难 2020-12-29 02:58

I\'m using opencv 2.4.7 on ubuntu 12.04. I\'m programming with python and I have a problem when i run this script:

import cv2

img = cv2.imread(\'34762092361         


        
12条回答
  •  半阙折子戏
    2020-12-29 03:09

    cv2.waitKey(0) means that script is in infinity loop with 0 miliseconds wait after loop .only specified key can stop it.

    you did not specified end of app condition.

    Try this code: Using other keys for the waitKey() function of opencv

提交回复
热议问题