anpr/lib/consts.py
2025-05-01 17:59:14 +00:00

23 lines
1 KiB
Python

DB_RECORDINGS = "db/numberplates.sqlite3"
VIDEO_OUT_FULL = "videos/full/"
VIDEO_OUT_ANAL = "videos/analysis"
MODEL_NAME = "models/train25/best.pt"
RTSP_URL = "rtsp://admin:C4sinfra12@192.168.1.10:554/rtsp"
SCREEN_RESOLUTION = (1280, 720) # Resolution of the RTSP stream
BITRATE = 1000000 # Bitrate for video recording
CONTOUR_MOTION_THRESHOLD = 800 # Sensitivity for motion detection
MAX_CLIP_TIME = 20 # Maximum recording time in seconds
MIN_TIME = 10 # Minimum recording time in seconds
CLASS_LABELS = ["dumping", "not"]
CONFIG_JSON = "config.json"
AUTH_USER = 'c4suser'
AUTH_PASSWORD = 'c4sinfra!'
STATIONARY_THRESHOLD = 50 # Number of frames a pixel must remain stationary to be updated faster
FAST_LEARNING_RATE = 0.1 # Learning rate for pixels that have been stationary
GLOBAL_LEARNING_RATE = 0.01 # Slow, continuous update for all pixels
DIFF_THRESHOLD = 25 # Pixel intensity difference threshold for motion detection
MOTION_AREA_THRESHOLD = 5000 # Minimum number of changed pixels to declare motion