(edit: I don't have any problems with those zebra options...)
motion detection in Lua now returns the number of detected cells.
usage:
cells=md_detect_motion( a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p )
(h can be pretty much anything, it's there for compatibility with ubasic documentation)
(edit: every parameter is now optional, some of the default values are the same as in fudgey's MD scripts)
or:
cells=md_detect_motion( columns, rows, pixel_measure_mode, detection_timeout, measure_interval, threshold, draw_grid, ignored, clipping_region_mode, clipping_region_column1, clipping_region_row1, clipping_region_column2, clipping_region_row2, parameters, pixels_step, msecs_before_trigger )