gr8gui
June 27th, 2012, 01:24 PM
when i run:
#!/usr/bin/env python
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()
__________________________________________________ _______________
window opens and then crashes returning:
(pygame parachute) Segmentation Fault
Aborted (core dumped)
#!/usr/bin/env python
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()
__________________________________________________ _______________
window opens and then crashes returning:
(pygame parachute) Segmentation Fault
Aborted (core dumped)