Building an AI Home Security System: Part 2
This is the second instalment of a miniseries where I am building an end-to-end AI home security and cross platform system.
I recommend reading Part 1 before reading on.
To recap, the main requirements for this system are:
- Detect motion
- Capture photo
- Create message with photo attached
- Send message to Telegram bot
The system will also detect who is in the photo, if the person is me, then do not invoke the Telegram bot with a message and image
In this blog post, we implement core functionality that lets us convert images to vectors using OpenAIs free CLIP SDK and ViT-B-32 model.
These can then be used to perform real-time similarity checks against new incoming data.
Find the accompanying blog with code here:
https://jamiemaguire.net/index.php/2025/05/11/building-an-ai-home-security-system-using-net-python-clip-semantic-kernel-telegram-and-raspberry-pi-4-part-2/