image storage dispatcher

The imgsave driver stores received images into a directory tree in which paths form such a pattern: key/date/hour, where key is the given key name of camera device. By default images are written in human readable format called xyRGB (where each line is formed by five integers: x, y, R, G, B of a pixel), alternatively, JPEG compressed files can be stored. When desired, this driver can inprint image informations at the top of stored and published images (key, date, time, number of current image in given second). This driver publishes all images that are stored (if needed, JPEG compressed).

Compile-time dependencies
  • none
Provides
  • interface_camera
Requires
  • interface_camera
Configuration requests
  • none
Configuration file options
  • key (string)
    • Default: "Unnamed"
    • The name of camera device (any name you like for it)
  • jpeg (integer)
    • Default: 0
    • If set to 1, images that are stored and published are JPEG compressed
  • jpeg_quality (float)
    • Default: 0.8
    • JPEG quality
  • print (integer)
    • Default: 0
    • If set to 1, images are decorated at the top with status info (key, date, time, number of current image in given second)
  • sleep_nsec (integer)
    • Default: 10000
    • timespec value for additional nanosleep()
Properties
  • none
Example
driver
(
  name "imgsave"
  requires ["camera:0"]
  provides ["camera:10"]
  key "vault"
  jpeg 1
  print 1
)
Author
Paul Osmialowski