[Unit] Description=ECENG Bottle Recognition After=network.target mariadb.service mysql.service [Service] Type=simple User=root WorkingDirectory=/home/horek940/public_html/eceng/recognized ExecStart=/usr/bin/python3 /home/horek940/public_html/eceng/recognized/eceng_recognition.py Restart=always RestartSec=3 # Database Environment="ECENG_DB_HOST=127.0.0.1" Environment="ECENG_DB_PORT=3306" Environment="ECENG_DB_NAME=horek940_mkits2024" Environment="ECENG_DB_USER=horek940_mkits2024" Environment="ECENG_DB_PASSWORD=G@ruda75772024" # Model Environment="ECENG_MODEL_PATH=/home/horek940/public_html/eceng/recognized/model/bottle.pt" # Recognition Environment="ECENG_CONFIDENCE=0.70" Environment="ECENG_POLL_INTERVAL=1" Environment="ECENG_MAX_BOTTLE_QTY=2" Environment="ECENG_LIMIT_QTY=Y" # Tahap awal N = hanya counting. # Setelah model 16 class siap, ubah menjadi Y. Environment="ECENG_STRICT_PRODUCT_TYPE=N" [Install] WantedBy=multi-user.target