savety net for gain settings, add readme, licence and ignore

This commit is contained in:
2026-03-12 10:29:23 +01:00
parent 4a8602bb42
commit e1f1f773af
4 changed files with 726 additions and 3 deletions

42
README.md Normal file
View File

@@ -0,0 +1,42 @@
# Minimal command line pylon recorder
## building
**tested with the pylon 7.4.0 and pylon supplementary package for mpeg 4.1.0.1**
1. clone git repository
2. execute ``make``
3. this should create a binary called ``minimal_pylon``
4. if not executable do ``chmod a+x minimal_pylon``
5. have fun
## recording
Just run it with ``./minimal_pylon``. It will use some defaults for resoultion, framerate, gain, etc
and records 100 frames. There is a warning on the command line telling when frames need to long to be recorded.
Run ``./minimal_pylon --help`` fro information about the supported settings:
```
./minimal_pylon --help
Expected args:
--fps|-f the framerate, defaults to 20 Hz
--help|? this help
--width|-w the image width in pixel, defaults to 2000
--height|-h the image height in pixel, defaults to 2000
--xoffs|-x image x offset in pixel, defaults to 0
--yoffs|-y image y-offset in pixel, defaults to 0
--exposure|-e exposure time in us, defaults to 10000
--gain1|-g1 gain for camera 1 in db, defaults to 5.0
--gain2|-g2 gain for camera 2 in db, defaults to 5.0
--cameras|-c the desired number of cameras to grab at the same time, defaults to 1
--framecount|-n the number of frames, defaults to 100
--quality|-q the qualtiy of the compression (0 < q <= 100), defaults to 50
--index|-i the camera index, ignored if cameras > 1, defaults to 0
--outfile|-o the output filename
```
**Don't complain, send a pull request!**