Python Forum
opencv on mac: Assertion Failed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
opencv on mac: Assertion Failed
#1
I've been following tutorials on youtube for opencv in python, but i have nothing for output, the code is the same as in the tutorial, and python quits by itself, help?

(i program on a macbook if that makes a difference)

import numpy as np
import cv2

cap = cv2.VideoCapture(1)
 
while True:
    ret, frame = cap.read()
    cv2.imshow('frame',frame)
    if cv2.waitKey(10) & 0xFF == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Test Case Assertion Error moga2003 10 5,510 Mar-18-2019, 01:06 AM
Last Post: moga2003
  Assertion Error Mateoo 2 2,166 Jan-20-2019, 03:59 PM
Last Post: stullis
  error: (-215:Assertion failed) gkiller007 1 8,673 Jan-04-2019, 04:27 AM
Last Post: stullis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020