Menu

Detecting parcels at the front door with a camera, OpenCV and Home Assistant
📰

Detecting parcels at the front door with a camera, OpenCV and Home Assistant

Adafruit Industries – Makers, hackers, artists, designers and engineers!·Anne Barela·14 days ago
#nUatAejW
#adafruit#small#parcel#camera#white
Reading 0:00
15s threshold

Delivery drivers often leave a parcel on the step and drive off without knocking, so a box can sit outside for hours. The Brian Dorey Tech Blog covers a small setup that watches the front step and sends a Home Assistant notification when something shows up.

The camera is a StackyFi ESP32 board with a small camera module, fitted into a blank UK socket cover plate that’s only 2cm high and painted white, so it blends into the doorway. The Arduino sketch connects to WiFi and serves one 1280 x 1024 JPEG on request. It doesn’t stream, and it doesn’t have a settings page.

A Python service using OpenCV grabs a snapshot every three seconds and compares the cropped zone against a reference image of the empty steps. Three checks run on structure, luminance and colour, so passing clouds, shadows and white balance drift don’t set it off. A change has to hold still for 45 seconds before a parcel is reported.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.