Looking for general thoughts/advice from the community...
I'd like improve the motion detection in my Security Camera plugin by detecting shapes. I am currently just calculating an average % pixel difference between images. Thoughts or opinions on approach:
1) Use Pillow (which my plugin already uses) to create bounding boxes around changes. Changes could be more localized in the image and, therefore (hopefully) more exact. I could look for bounding boxes of specific dimensions or area versus just general pixel changes.
2) Use OpenCV to detect shapes. There are many built in functions to do human detection and even facial recognition (not looking to do facial recognition at this time but might be a interesting future enhancement).
Benefit of #1 is that Pillow is a pretty simple install and it is already used by the plugin. However, it would require a bit more coding and would not be as accurate as OpenCV.
Benefit of #2 is that the features I am looking for are built in and can be done in a few lines of code - examples on how to do it are easily copied. Drawback is that it seems to be a pretty complicated install - even using homebrew still requires many steps.
I am open to other options or thoughts as well.
I have been going back and forth for a couple weeks now and am just looking for wisdom from the community.
Thanks