#!/usr/bin/env python # -*- coding: utf-8 -*- # # simpleRecorder.py import time import cPickle as pkl from pyElphel import Elphel cam = Elphel() #Reduce the image size (full resolution is not workirg with RTSP streaming cam.params['WOI_WIDTH'] = 300 cam.params['WOI_HEIGHT'] = 400 #Adjust exposure time cam.params['EXPOS'] = 6000 #Set parameters to camera cam.set_params() #Start RTSP streaming cam.init_live() #Loop to record images listImg = [] N = 200 tstart = time.time() for i in range(N): listImg.append(cam.grab_image().copy())
#!/usr/bin/env python # -*- coding: utf-8 -*- # # FullResolutionGrab.py #At full resolution RTSP is not working #so we use direct access to the buffer via imgsrv.php import cStringIO as StringIO import time import cPickle as pkl from pylab import * from pyElphel import Elphel cam = Elphel() #Set full resolution cam.params['WOI_WIDTH'] = 2592 cam.params['WOI_HEIGHT'] = 1936 #Adjust exposure time cam.params['EXPOS'] = 6000 #Set parameters to camera cam.set_params() #Loop to record images listImg = [] N = 10 tstart = time.time()
#!/usr/bin/env python # -*- coding: utf-8 -*- # # LiveExample.py # from pyElphel import Elphel cam = Elphel() #Reduce the image size (full resolution is not workirg with RTSP streaming cam.params['WOI_WIDTH'] = 300 cam.params['WOI_HEIGHT'] = 400 #Adjust exposure time cam.params['EXPOS'] = 5000 #Set parameters to camera cam.set_params() #Start RTSP streaming cam.init_live() #Display the video cam.display()
#!/usr/bin/env python # -*- coding: utf-8 -*- # # simpleRecorder.py import time import cPickle as pkl from pyElphel import Elphel cam = Elphel() #Reduce the image size (full resolution is not workirg with RTSP streaming cam.params['WOI_WIDTH'] = 300 cam.params['WOI_HEIGHT'] = 400 #Adjust exposure time cam.params['EXPOS'] = 6000 #Set parameters to camera cam.set_params() #Start RTSP streaming cam.init_live() #Loop to record images listImg = [] N = 200 tstart = time.time() for i in range(N): listImg.append( cam.grab_image().copy() )
#!/usr/bin/env python # -*- coding: utf-8 -*- # # FullResolutionGrab.py #At full resolution RTSP is not working #so we use direct access to the buffer via imgsrv.php import cStringIO as StringIO import time import cPickle as pkl from pylab import * from pyElphel import Elphel cam = Elphel() #Set full resolution cam.params['WOI_WIDTH'] = 2592 cam.params['WOI_HEIGHT'] = 1936 #Adjust exposure time cam.params['EXPOS'] = 6000 #Set parameters to camera cam.set_params() #Loop to record images listImg = [] N = 10 tstart = time.time() for i in range(N):