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
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.
- Python version 3.8 or higher
- Python libraries:
- imageio
- numpy
- XIMEA's software package, including the python API.
- Minimum framerate is 1 frame every 5 seconds