PNG File Writer

The foglamp-north-png plugin is designed as a debugging aid for pipelines that make use of images. It will write copies of all image type data points to PNG file such that they can be verified. It is not expected that this plugin will be used for production systems, although it could be if there was a need to create image files.

The process of creating a North service or task to write images to files starts as with any other north setup by selecting the North option in the left-hand menu bar, then press the add icon in the top right corner. In the North Plugin list select the png option.

Set the name of the task or service, whether to run as a service and the repeat interval for tasks. Once complete click on Next and move on to the configuration of the plugin itself.

png_1

This second page allows for the setting of the configuration used for writing PNG files

  • Directory: The directory into which the PNG files will be written.

  • Prefix: A prefix that is added to the files that are created. The files that are created will use this prefix followed by he asset name, data point name and timestamp of the reading.

  • Source: What data is being made available to the PNG. You may chose to make the reading data available or the FogLAMP statistics. Note however that the FogLAMP statistics do not contain image data.

Once you have completed your configuration click Next to move to the final page and then enable your north task and click Done.

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-south-video4linux - A south plugin to ingests images from various devices using the Video4Linux API. Video4Linux supports a wide variety of video capture devices on Linux platforms.

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