Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

(Python) ASSERT: “false” in file qasciikey.cpp

$
0
0
Dear all, I'm on lubuntu 16.04, using OpenCV 3.2.0, Python 2.7 and encountering this error after a brief moment of imshow() displaying a window with my camera stream. **ASSERT: "false" in file qasciikey.cpp, line 495 Aborted (core dumped)** My code appended below: import numpy as np import cv2 redcross_cascade = cv2.CascadeClassifier('rcrosscascade.xml') cap = cv2.VideoCapture(2) cv2.namedWindow('Haar', cv2.WINDOW_NORMAL) while 1: ret, img = cap.read() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) redcross = redcross_cascade.detectMultiScale(gray, 50, 50) for (x,y,w,h) in redcross: cv2.rectangle(img,(x,y),(x+w,y+h),(255,255,0),2) cv2.imshow('Haar',img) key = cv2.waitKey(1) & 0xff if key == 27: break cap.release() cv2.destroyAllWindows() Would appreciate any assistance on this matter, thank you!

Viewing all articles
Browse latest Browse all 2088

Trending Articles