how to find the error, Program crash after executing quit sequence (Python, opencv, Ubuntu) -


i'm trying run program has been running before. after while switched os , came ubuntu 14.10 (before 14.04). i'm not quite shure if problem within opencv or more of basic thing. can't find problem. maybe of has idea.

import cv2  cap = cv2.videocapture(0)  while(true):     # capture frame-by-frame     ret, frame = cap.read()  # display resulting frame cv2.imshow('frame',frame) if cv2.waitkey(1) & 0xff == ord('q'):     break  # when done, release capture cap.release() cv2.destroyallwindows() 

it running point can see video capture. typing "q" quit program. window opened freez, turning black after while , nothing else happens. i'l have close window , force exit. idea problem , how solve?

some buffers perhaps used drawing , releasing memory bad idea.

so try call destroyallwindows, before calling cap.release ?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -