CAMERA_CONFIG = { 'entrance': 0, # First USB camera index for entrance 'exit': 1, # Second USB camera index for exit 'single_camera_mode': False # Set to False to use two separate cameras } # MySQL configuration MYSQL_HOST = 'localhost' MYSQL_USER = 'root' MYSQL_PASSWORD = '' MYSQL_DATABASE = 'avbs' # Arduino configuration ARDUINO_PORT = 'COM5' # Change this to match your Arduino's COM port ARDUINO_BAUD_RATE = 9600 arduino_connected = False arduino_serial = None YOLO_CONF_THRESHOLD = 0.25 # Confidence threshold for YOLO detection PADDLE_OCR_CONF_THRESHOLD = 0.65 # Confidence threshold for OCR SAVE_INTERVAL_SECONDS = 60 # Interval for saving JSON data JSON_OUTPUT_DIR = "output_json" # Directory for JSON output
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter