At least in EU, that's much more complicated.
If you have a camera that has any publicly available (not just public, also private-but-unfenced) place in it's FoV, you must register with your local data protection office and fullfill all the requirements (you must prove, how you use, make available, securely store and dispose any recordings).
If you don't have any publicly available space in your FoV, you must have a written permission from all the co-owners (e.g. in an apartment house).
So basically it is only easy if you are sole owner of the property and only you (and your family) are using it. Anywhere with a shared space, it is an issue. For a landlord, that would get no-go quickly.