Ask your own question, for FREE!
Computer Science 23 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!
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!