का उपयोग कर मैं अपने वेब कैमरा प्रदर्शित करने के लिए इस अजगर स्क्रिप्ट का उपयोग कर रहा PyQt4 में एक वेब कैमरा धारा में दें:OpenCV कैमरा कैद
from opencv.cv import *
from opencv.highgui import *
import sys
cvNamedWindow("w1", CV_WINDOW_AUTOSIZE)
camera_index = 0
capture = cvCreateCameraCapture(camera_index)
def repeat():
global capture #declare as globals since we are assigning to them now
global camera_index
frame = cvQueryFrame(capture)
cvShowImage("w1", frame)
c = cvWaitKey(10)
if c == "q":
sys.exit(0)
if __name__ == "__main__":
while True:
repeat()
यह काफी अच्छी तरह से काम कर रहा है, लेकिन मैं अपने क्यूटी आवेदन के अंदर इस प्रदर्शन सेट करना चाहते हैं। मैं IplImage
ओपनसीवी छवि का उपयोग क्यूटी VideoWidget
में कैसे कर सकता हूं?
http://code.google.com/p/opencv-extension-library/wiki/QtOpenCV बहुत अच्छा लगता है, लेकिन कैसे अजगर के साथ यह करने के लिए? – Natim