From 2e0115390096d39cc78f2d59b3c0a03033f51caa Mon Sep 17 00:00:00 2001 From: Milkshift <99212308+Milkshiift@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:48:17 +0000 Subject: [PATCH] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 12b429f..a41f346 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,11 @@ 4. Run with `python main.py` (in the console) 5. Configure the settings 6. Set `debug` to `False` and run again -You can modify the `on_movement_detected()` function to change what happens when movement is detected \ No newline at end of file +You can modify the `on_movement_detected()` function to change what happens when movement is detected + +## How does it work? +Here is the algorithm: +1. Capture the image from a webcam +2. Downscale the image +3. Convert to hsv and remove brightness information +4. Compare the hues of the processed image to the previous frame's hues