offline laptop security system. face recognition. surveillance. voice override. hardware integration. arduino. keypad. servo.
offline. no internet. local processing. registration. captures 20 face samples. duty mode. continuous surveillance. threat detection. logs unrecognized people. voice override. speak code to authorize. hardware lock. keypad entry. servo control.
python 3.8+ webcam / mic / speakers 2gb disk space
hardware arduino uno servo motor (pin 10) 4x4 keypad (pins 2-9)
pip install -r requirements.txtdownload vosk-model-small-en-us-0.15 -> rename to vosk-model.
upload ultron arduino/ultron_arduino.ino to arduino.
connect:
- servo signal -> pin 10
- keypad rows -> pins 2,3,4,5
- keypad cols -> pins 6,7,8,9
start system:
python main.py1 registration -> capture face samples. 2 duty mode -> start surveillance. 3 view users -> list database.
face unlock -> camera sees authorized user -> door unlocks.
keypad unlock -> enter 1234 or # -> door unlocks.
voice override -> threat detected? say ultron override -> door unlocks.
edit config.yaml.
face_match_threshold: 0.6
registration_samples: 20
admin_passphrase: "ultron override"
voice_volume: 1.0
camera_index: 0
admin_code_timeout: 10
arduino_port: "COM3"vosk model not found -> check folder name vosk-model.
arduino missing -> check usb connection + config COM port.
no audio -> ensures tts_worker.py exists (subprocess mode).
data is local.
sqlite database.
raw images stored.
no network.
keep config.yaml safe.
license: mit. use at own risk.