Skip to content

kaspervn/xirec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xirec

Program to record from USB3 XIMEA camera's

  • Records from multiple camera's
  • Can configure camera based on .xicamera files obtained from the offical recording tool, XiCamTool
  • Records for a limited time into RAM, and then saves everything to disk
  • Saves all frame metadata, including frame timestamps for example
  • Commandline interface
  • Saves image sequences

Usage

Run python xirec.py --help for basic documentation.

usage: xirec.py [-h] [-fc FRAME_COUNT] [-d DURATION] [-f {tiff,bmp,jpg,png}]
                [-w WAIT] [--wait-gpi {1,2,3,4,5,6,7,8,9,10,11,12}]
                camera-sn:parameter-file [camera-sn:parameter-file ...]

positional arguments:
  camera-sn:parameter-file
                        The parameter file as saved by XiCamtool is optional

options:
  -h, --help            show this help message and exit
  -fc FRAME_COUNT, --frame_count FRAME_COUNT
                        number of frames to record
  -d DURATION, --duration DURATION
                        number of seconds to record
  -f {tiff,bmp,jpg,png}, --format {tiff,bmp,jpg,png}
  -w WAIT, --wait WAIT  Wait with recording until the trigger input of
                        specified camera goes high
  --wait-gpi {1,2,3,4,5,6,7,8,9,10,11,12}
                        In case of waiting, selects which GPI port to use as
                        the trigger. Defaults to 1

You have to specify what camera's to record from by their serial number. If you want assign a .xicamera file, append :somefile.xicamera to the serialnumber

Example: python xirec.yp -fc 20 --format jpg 23150750:test.xicamera 23152050:test.xicamera Records for 20 frames from two camera's. Files are saved in jpg format, and loads specific .xicamera files.

Requirements

Limitations

  • Minimum framerate is 1 frame every 5 seconds

About

XIMEA USB3 camera recording in python

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages