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:
Example:
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. |