Anyone get the camera to work yet?
#7
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 =)
If I posted something helpful, please rate +
  Reply


Messages In This Thread
Anyone get the camera to work yet? - by Havensal - 05-16-2016, 06:02 PM
RE: Anyone get the camera to work yet? - by NWUK - 05-30-2016, 03:43 AM
RE: Anyone get the camera to work yet? - by g_t_j - 05-30-2016, 06:07 AM
RE: Anyone get the camera to work yet? - by tllim - 05-30-2016, 02:59 PM
RE: Anyone get the camera to work yet? - by NWUK - 05-30-2016, 03:07 PM
RE: Anyone get the camera to work yet? - by tllim - 06-02-2016, 05:49 PM
RE: Anyone get the camera to work yet? - by NWUK - 06-04-2016, 01:09 PM
RE: Anyone get the camera to work yet? - by TeaPack - 06-02-2016, 04:03 PM
RE: Anyone get the camera to work yet? - by @lex - 06-20-2016, 06:33 PM
Anyone get the camera to work yet? - by Havensal - 06-20-2016, 07:35 PM
RE: Anyone get the camera to work yet? - by @lex - 06-21-2016, 06:29 AM
RE: Anyone get the camera to work yet? - by @lex - 06-21-2016, 09:14 AM
Anyone get the camera to work yet? - by Havensal - 06-25-2016, 03:37 PM
RE: Anyone get the camera to work yet? - by @lex - 06-25-2016, 06:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  camera port details? gourmand007 6 14,571 03-07-2021, 05:29 PM
Last Post: DippingMyToesIn
  About the camera robopo 11 20,963 03-06-2021, 12:28 AM
Last Post: DippingMyToesIn
  CSI / Camera Module Compatibility? vade 8 16,517 04-03-2020, 05:39 AM
Last Post: Ellesar Dragon
  13MP Camera cable extension saviod 2 5,069 06-21-2019, 06:05 AM
Last Post: saviod
  Camera Sasank 15 26,062 12-13-2018, 09:08 PM
Last Post: Mutani
  Himax 5 Megapixel Camera Module cannot fit into 7″ LCD Touch Screen Panel themyshop 3 6,958 05-10-2018, 04:28 PM
Last Post: tllim
  Webcam vs camera module on pine64+ fkpkot 4 9,840 02-27-2017, 03:57 PM
Last Post: MarkHaysHarris777
  Camera is working on Linux @lex 50 86,151 10-26-2016, 03:17 PM
Last Post: @lex
  camera module and lcd integration jodybrown99 5 8,827 10-11-2016, 11:35 AM
Last Post: hikaricore

Forum Jump:


Users browsing this thread: 1 Guest(s)