It is perfectly legal for a resident to install CCTV (even with recording and playback capabilities), and this will, in the normal course of events, be done to protect their own property from the threat of intruders and offenders.