esp-who icon indicating copy to clipboard operation
esp-who copied to clipboard

Motion Detection (AIV-708)

Open billyrudi opened this issue 5 years ago • 4 comments

Hi, is it possible to detect motion only using video not pir or external sensor? How i can detect if the frame video is changing ? regards Paolo

billyrudi avatar Aug 26 '19 14:08 billyrudi

This is an interesting application. You can definitely treat a face being detected as a sort of motion. Is there a way to run a function on the image such as wave or something to detect changes?

mitchins avatar Sep 04 '19 10:09 mitchins

Hi there are some APIs that would work for motion detection.

https://github.com/espressif/esp-face/blob/679b5340418bd9604c25735294dc536babca3db6/image_util/include/image_util.h#L305-L307

XiaochaoGONG avatar Sep 04 '19 12:09 XiaochaoGONG

Interesting. You’d probably want to create some sort of convolution so that a neighbourhood of a large size is considered. Could work like:

  1. Take image diff
  2. Calculate neighbourhood sums that meet the threshold, and if a large enough motion is detected

mitchins avatar Sep 04 '19 12:09 mitchins

Hi ...but can you provide an example on ow do it? i'm not so experienced on this library.

billyrudi avatar Sep 05 '19 06:09 billyrudi