Samples the video at sample_fps on a 160 px wide grey image and compares each sa...
https://ton.halowerk.com/v1/motion-summaryOverview
Samples the video at sample_fps on a 160 px wide grey image and compares each sample with the previous one: a pixel is active when its grey level changes by more than pixel_threshold. Per pair it records the active share, mean absolute difference and per-cell shares on a grid_cols-wide grid. Pairs above active_threshold form active intervals (gaps up to 1 s are bridged); pairs with more than 60 % active pixels are reported as global changes (cut, camera motion or lighting change).