Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (yrelhan4):

I was trying to run webcam using python(pygame).. Here's my code.. import pygame, sys import pygame.camera from pygame.locals import * pygame.init() pygame.camera.init() screen=pygame.display,set_mode((640,480)) cam=pygame.camera.Camera("/dev/video0",(640,480)) cam.start() while 1: image=cam.get_image() screen.blit(image,(0,0)) pygame.display.update() for event in pygame.event.get(): if event.type==pygame.Quit: sys.exit() And i get this error.. ImportError: No module named _camera Continued...

OpenStudy (yrelhan4):

I was searching the web for answers, but they have used pygame.camera.init() everywhere. Help anyone?

OpenStudy (shubhamsrg):

I don't know python :)

OpenStudy (yrelhan4):

:D

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
2 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
2 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!