ConfigurationΒΆ

Main application configuration is done using plain .ini files. An example file can be find in the source repository.

The config file is searched for in different paths. Resolution is handled via config_resolver See its documentation for details.

The current configuration template file contains the following:

;
; This section contains information about where to store files
;
[storage]
root = E:\tmp\motion
num_context_frames = 100

;
; Video Format details, In case of video storage.
;
[video]
format = divx

;
; Specify where the frames are coming from.
;
[framesource]

; The "kind" of souce. Currently supports "usb" and "raspberrypi"
kind = usb

; Arguments for the frame source. Currently only used by "usb" and contains the
; index of the camera to use. If not specified uses "-1" which triggers a
; lookup.
arguments = 1


;
; Options for the detection step
;
[detection]

; Apply a mask. This should be a black/white image. Everything black is masked,
; white will be processed.
mask = /path/to/mask