An Android application that identifies people and sends alerts with photos.
- It runs a foreground service that continuously captures camera photos.
- Those photos are processed with a ML model (EfficientDet) to identify objects.
- When a
personis found with enough confidence, the app sends a push to antfy.shserver with a recent photo and info about recognized objects.
Ntfy.sh is a FOSS HTTP-based push notification server. You can use the public service for free or host your own server.
- Register at the ntfy.sh web client.
- Subscribe to a randomly generated topic.
- Place the generated topic URL in a
secrets.propertiesfile at the root of the project like this:
NTFY_URL=https://ntfy.sh/topic-name
Due to how HTTP-based push servers work, the app sends two separate pushes: one with text and another with the image data. You'll see two separate messages in the web client.
