Its been a while since I have used my Raspi because the last thing I worked on involved the camera unit when there was no driver. I was wondering if there have been any developments in a driver that works with pygame? I looked all around to find out if there was, with no success. This is what I am trying to run/was trying to run about a year ago. The issue then and now seems to still be the "/dev/video0". Is there a device name that I am unaware of that will allow me to access the camera or will I have to find another way such as an alternative driver such as a UV4L? If so can you link the website for it because the last one I had is no longer working.
Code: Select all
pygame.init() pygame.camera.init() screen = pygame.display.set_mode([640,480]) cam = pygame.camera.Camera("/dev/video0", (640,480)) cam.start()