Skip to content

motionmanaged Lua Interface


get

Get a pointer to the MotionDetection object

Arguments:
any ptr Pointer to Module object
Returns:
motionmanaged ptr Pointer to casted MotionDetection object

Example

ptr = motionmanaged:.get(ptr)


getConfig

Get the configuration object for the plugin

Arguments:

Returns:
table obj Map with configurations

Example

obj = motionmanaged:.getConfig()


getStats

Get the statistics object for the plugin

Arguments:

Returns:
table obj Map with statistics

Example

obj = motionmanaged:.getStats()


saveConfig

Save the configuration object for the plugin

Arguments:
any ptr Pointer to MotionManaged object
table new_config Map with configurations

Example

motionmanaged:.saveConfig(ptr,new_config)


reset

Reset the plugin state

Arguments:

Example

motionmanaged:.reset()


getName

Get the plugin name

Arguments:

Returns:
string name Plugin Name

Example

name = motionmanaged:.getName()


detectMotion

Trigger motion detection on current "default" framebuffer

Arguments:

Example

motionmanaged:.detectMotion()


deleteDetection

Delete a detection from the detections list

Arguments:
number targetid ID of the detection to delete

Example

motionmanaged:.deleteDetection(targetid)


deleteDetections

Delete all detections from the detections list

Arguments:

Example

motionmanaged:.deleteDetections()


getDetections

Get current detections list

Arguments:

Returns:
table detections table with Detections

Example

detections = motionmanaged:.getDetections()


getDebugBuffer

Get current motion mask buffer

Arguments:
number index Index of the Debug buffer to get (0 - Entry image, 1 - Post motion process image)
Returns:
buffer Debug Buffer

Example

Debug = motionmanaged:.getDebugBuffer(index)