Webcam en python

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Webcam en python

Jesse-43
cordial saludo,

una pregunta alguien conoce alguna libreria para python que me permita usar una o multiples webcams, segundo quizas algun ejemplo para integrarlo con pyqt.

Gracias 


Jesse Padilla Agudelo
Celular: 312 8291144
Linux Registered User #417817
Portal: http://www.intercambiolibre.org
Mail: [hidden email]
Msn: [hidden email]
Skype: jesse.agudelo




_______________________________________________
Pythoneando...
Pycolombia mailing list
[hidden email]
http://listas.el-directorio.org/cgi-bin/mailman/listinfo/pycolombia
Reply | Threaded
Open this post in threaded view
|

Re: Webcam en python

Ariel Nunez

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
()



tomado de:

http://lmgtfy.com/?q=python+webcam+qt&l=1

_______________________________________________
Pythoneando...
Pycolombia mailing list
[hidden email]
http://listas.el-directorio.org/cgi-bin/mailman/listinfo/pycolombia