camera and arduino configurations
Sun Jun 08 2025 21:04:30 GMT+0000 (Coordinated Universal Time)
Saved by
@P1827056G
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
content_copyCOPY
Comments