$ CC=/usr/bin/gcc-5 bundle exec rake db:drop
Dropped database 'development_tpay_finance'
Dropped database 'test_tpay_finance'
并显示此错误:
def updateShow(self):
cap=cv2.VideoCapture(0)
if cap.isOpened():
#read the frame from cap
ret, frame = cap.read()
if ret:
self.photo = PIL.ImageTk.PhotoImage(image = PIL.Image.fromarray(frame))
self.canvas.create_image(0, 0, image = self.photo, anchor = tk.NW)
当我想从连接到树莓派的网络摄像头捕获视频时,我的树莓派PI中会出现此错误 我使用ls / dev / video *和Cheese应用检查了我的设备,并且工作正常
我使用: python 3.5.3 树莓派3 opencv 3.4.2