DeepStack

DeepStack is a self-hosted, free and open source AI server that provides object detection and face recognition, among other functions.
It is highly optimized and runs on a pleathora of devices and platforms.
Below is quoted from DeepStacks documentation:
DeepStack is an AI server that empowers every developer in the world to easily build state-of-the-art AI systems both on premise and in the cloud. The promises of Artificial Intelligence are huge but becoming a machine learning engineer is hard. DeepStack is device and language agnostic. You can run it on Windows, Mac OS, Linux, Raspberry PI and use it with any programming language.
DeepStack's source code is available on GitHub via https://github.com/johnolafenwa/DeepStack
DeepStack is developed and maintained by DeepQuest AI
Configuration
Configuration example
deepstack:
host: deepstack
port: 5000
object_detector:
cameras:
camera_one:
scan_on_motion_only: false
fps: 1
labels:
- label: person
confidence: 0.8
- label: cat
confidence: 0.8
face_recognition:
save_unknown_faces: false
cameras:
camera_one:
labels:
- person