2022-05-13 12:57:22 +02:00
|
|
|
import os
|
2022-05-13 09:50:28 +02:00
|
|
|
from tracker import Tracker
|
|
|
|
|
2022-05-13 12:57:22 +02:00
|
|
|
mqtt_address = os.environ.get("MQTT_ADDRESS", "10.1.1.100")
|
|
|
|
mqtt_port = int(os.environ.get("MQTT_PORT", 1883))
|
|
|
|
mqtt_client_id = os.environ.get("MQTT_CLIENT_ID", "cvzone_tracker_01")
|
|
|
|
min_face_score = float(os.environ.get("MIN_FACE_SCORE", 0.5))
|
|
|
|
|
2022-05-13 09:50:28 +02:00
|
|
|
tracker = Tracker(
|
2022-05-13 12:57:22 +02:00
|
|
|
mqtt_address=mqtt_address,
|
|
|
|
mqtt_port=mqtt_port,
|
|
|
|
mqtt_client_id=mqtt_client_id,
|
|
|
|
min_face_score=min_face_score,
|
2022-05-13 09:50:28 +02:00
|
|
|
show_img=False)
|
|
|
|
|
|
|
|
while True:
|
|
|
|
tracker.loop()
|
|
|
|
|
|
|
|
tracker.release()
|