The virtual file camera uses BMP files in a directory as the data source.
The library function FG_save_image() is useful to create BMP files from real sensor images. They can then later be processes with the virtual camera.
The following steps describe how to use the virutal camera:
"FilePath:<directory>"
."FileName:<prefix_regex>"
to configure a regular expression which is used as a file name prefix filter. The default value is ".*"
(all file name prefixes).Example:
"FilePath"
or "FileName"
will scan and filter the specified directory for BMP files. The directory can also be rescanned during image acquisition to read different images. But the format of the BMP files may only change until the first buffer is allocated (FG_alloc_image()).The following special features are supported (used with FG_set_special_option() / FG_get_special_option()):
Property name | Description |
---|---|
FilePath:<directory> | Sets the directory containing the BMP files. The function will scan the specified directory and apply the FileName filter. The argument is reserved and should be set to 0. This property can only be written. |
FileName:<prefix_regex> | Sets the regular expression for filtering the file name prefixes. The function will scan the specified directory and apply the filter. The extended regular expression syntax is used (ERE). The default value is ".*" . The string "\.(bmp|BMP)$" is appended automatically to the expression in order to filter for files with .bmp or .BMP suffix.The argument is reserved and should be set to 0. This property can only be written. |
FileCount | Returns the number of filtered BMP files This property can only be read. |