[Elphel-support] Elphel camera with Raspberry Pi

David Haberthür david.haberthuer at psi.ch
Tue Jan 8 01:48:49 PST 2013


On 01/07/2013 09:21 PM, Oleg wrote:
> Hi David,
>
> You could try this link
> <http://wiki.elphel.com/index.php?title=Elphel_353_series_quick_start_guide#Getting_the_first_images>:
>
>     http://192.168.0.9:8081/bimg
>

I'm getting the images with a (growing) Python script, the relevant part 
is copied below

   # get options.Images number of images
   for i in range(1,options.Images+1):
     print 'writing image ' + str(i) + '/' + str(options.Images)
     if options.FileName:
       FileName = options.FileName + '_' + str('%.04d' % i) + '.jpg'
     else:
       FileName = str(time.time()) + '.jpg'
       # get the url of the camera which spits out an image
       # save the image to 'SaveDir', with the desired name, set above
       urllib.urlretrieve(
         "http://192.168.0.9:8081/wait/bimg",
         os.path.join(SaveDir,FileName)
         )

so that part works fine :)

But - as Alexandre suggested - I'll trigger the camera externally and do 
some more testing.

Thanks for the help and pointers!
David




More information about the Support-list mailing list