-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
59 lines (48 loc) · 1.25 KB
/
.env.example
File metadata and controls
59 lines (48 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# API Configuration
API_HOST=0.0.0.0
API_PORT=8000
API_WORKERS=4
API_RELOAD=False
# Model Configuration
MODEL_WEIGHTS_PATH=yolov7.pt
MODEL_IMG_SIZE=640
MODEL_CONF_THRESHOLD=0.25
MODEL_IOU_THRESHOLD=0.45
MODEL_DEVICE= # Empty for auto-detect, or specify 'cpu' or '0' for GPU
# Detection Classes (0=person, 56=chair)
DETECTION_CLASSES=0,56
# Tracking Configuration
SORT_MAX_AGE=5
SORT_MIN_HITS=2
SORT_IOU_THRESHOLD=0.2
# Occupancy Configuration
OCCUPANCY_TIME_THRESHOLD=10 # seconds before TIME EXCEEDED alert
OCCUPANCY_PROXIMITY_THRESHOLD=100 # pixels for seat matching
# Storage Configuration
UPLOAD_DIR=uploads
OUTPUT_DIR=outputs
JOBS_DIR=jobs
MAX_UPLOAD_SIZE=524288000 # 500MB in bytes
ALLOWED_VIDEO_EXTENSIONS=mp4,avi,mov,mkv,webm
# Job Configuration
JOB_CLEANUP_AFTER_HOURS=24
MAX_CONCURRENT_JOBS=3
JOB_TIMEOUT_MINUTES=30
# Logging
LOG_LEVEL=INFO
LOG_FILE=api/logs/app.log
# Security
API_KEY_ENABLED=False
API_KEY=your-secret-api-key-here
# CORS Configuration
CORS_ENABLED=True
CORS_ORIGINS=* # Comma-separated list or * for all
# Redis Configuration (Optional - for distributed task queue)
REDIS_ENABLED=False
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_DB=0
REDIS_PASSWORD=
# Environment
ENVIRONMENT=production # development, production, testing
DEBUG=False