Data protection rules do not apply if you install a camera on your own home for household purposes - for example, to protect it from burglary.
Find out more about using CCTV in the home. - Links to: https://ico.org.uk/your-data-matters/domestic-cctv-systems-guidance-for-people-using-cctv/
If your CCTV captures images beyond your property boundary, such as your neighbours’ property or public streets and footpaths, then your use of the system is subject to the data protection laws.