The tapo cameras do this on cam. They can even report it to the NVR system, completely local with ONVIF.
Nest does it in the cloud. Obviously it's more capable but it also means Google grabs all your video: https://support.google.com/googlehome/answer/16594324?hl=en#...