This is a reoccurring topic. Really depends on what you are hoping to achieve. You may want to watch the video on this post: It's Time to Take Down your Smart Cameras - Benn Jordan
As well as the other linked posts in that topic
If you want that Ring style of alerts and no effort having to self host you could look into Apple Home app - Apple
But I looked into this some years ago and found it expensive (to me anyway).
If you want to deter people then you could try a DVR system that stores footage on a Hard drive at home. You obviously won’t get alerts from a traditional DVR, but it might put off some people.
But as @FranklyFlawless said, a dog is the best way to deter people who will just cover themselves up and make most cameras useless.