Video4Linux

The foglamp-south-video4linux plugin is a south plugin that is primarily designed for use in computer vision pipelines with FogLAMP. It allows the collection of still frames from any compatible camera that is connected to the Linux machine that is hosting the FogLAMP service.

South services that ingest images using this plugin are created in the same way as any other FogLAMP south service. The plugin has 4 configuration parameters that can be set.

video4linux_1

  • Asset Name: The asset name given to the assets ingested by the plugin

  • Capture Devices: A list of all the compatible devices found attached to the host.

    video4linux_2

    Select the desired capture device from this list.

  • Images per interval: The number of frames to collect in a given time interval.

  • Interval: Interval in seconds over which to collect the number of frames defined above.

Asset Ingestion

A single asset is ingested by the plugin which contains a number of data points

  • img: The frame itself

  • width: The width of the captured frame in pixels

  • height: The height of the captured frame in pixels

  • depth: The number of bits per pixels within the image

See Also

foglamp-filter-edgeml - Filter which takes image data, calls out to ML process, and forwards the inference from ML as asset contents.

foglamp-filter-greyscale - Convert 24bit RGB images to greyscale images

foglamp-filter-image-bounding-box - Uses the output of an ML model to crop out or draw bounding boxes on an image.

foglamp-filter-image-resize - Python based plugin to resize images by scaling or cropping.

foglamp-filter-mirror - A filter plugin to mirror image type data points

foglamp-filter-rotate - Rotate all images found in datapoints within a reading

foglamp-north-png - A plugin to write an image type data points to PNG files in the local filesystem

foglamp-south-webcam_media - A FogLAMP south plugin that forwards image data, either directly from a webcam or from a directory of images