While executing the below code i'm getting this 'TypeError: img is not a numerical tuple'

前端 未结 2 1420
隐瞒了意图╮
隐瞒了意图╮ 2020-12-11 09:30
    import cv2
    ram_frames=30
    cam = cv2.VideoCapture(0)
    def get_image():
          cap = cam.read()
          return cap
    for i in xrange(ramp_frames):         


        
2条回答
  •  萌比男神i
    2020-12-11 10:01

    if np.any( initial == None): #your code It will definitely work for you. The error in this code because initial is treated as a numpy array.

    I initialized initial with None in my program

提交回复
热议问题