Hi guys, I have working camera under latest Longsleep ubuntu and with Python pygame.camera =)
Script:
_______________________________
import pygame.camera
import pygame.image
print "Hello =)"
pygame.camera.init()
cam = pygame.camera.Camera(pygame.camera.list_cameras()[0])
cam.start()
img = cam.get_image()
pygame.image.save(img, "photo.bmp")
cam.stop()
pygame.camera.quit()
print "Finished =)"
___________________________________
EDIT: It's not CSI camera, but standard USB camera - unlike on first raspis, on PINE usb camera works immediately =)
Script:
_______________________________
import pygame.camera
import pygame.image
print "Hello =)"
pygame.camera.init()
cam = pygame.camera.Camera(pygame.camera.list_cameras()[0])
cam.start()
img = cam.get_image()
pygame.image.save(img, "photo.bmp")
cam.stop()
pygame.camera.quit()
print "Finished =)"
___________________________________
EDIT: It's not CSI camera, but standard USB camera - unlike on first raspis, on PINE usb camera works immediately =)
If I posted something helpful, please rate +