File size: 1,878 Bytes
892fa81
aac350d
892fa81
 
 
 
 
aac350d
892fa81
aac350d
 
 
 
 
 
892fa81
 
aac350d
 
 
892fa81
aac350d
 
892fa81
aac350d
 
 
f5eeb1c
 
 
892fa81
 
 
 
 
 
 
9bd3ee0
 
 
 
 
 
 
 
 
 
 
892fa81
 
 
 
 
 
 
 
 
 
 
 
 
 
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
60
61
62
63
# Image Intel — pinned dependencies
# Python 3.11+
#
# Design principle: the DEFAULT install must be lightweight enough to
# run on a free-tier VPS / Railway / PythonAnywhere / Termux.  Heavy
# optional providers (TensorFlow, dlib, Selenium) are commented out
# and can be enabled by uncommenting the relevant lines.

# --- Web framework (required) ---
fastapi==0.110.0
uvicorn[standard]==0.27.1
python-multipart==0.0.9
pydantic==2.6.1
pydantic-settings==2.2.1

# --- Image processing (required) ---
opencv-python-headless==4.9.0.80   # headless = no GUI deps, smaller
Pillow==10.2.0
numpy==1.26.4

# --- HTTP (required) ---
requests==2.31.0

# --- Logging / config (required) ---
loguru==0.7.2
python-dotenv==1.0.1

# --- Reverse face search (required for face index) ---
sqlite-vec==0.1.6

# --- Testing (dev only — pip install -r requirements-dev.txt) ---
# pytest==8.0.0
# pytest-asyncio==0.23.5

# =========================================================================== #
# OPTIONAL PROVIDERS — uncomment to enable
# =========================================================================== #
#
# The platform runs by default with NO optional providers.  Enable only
# what you need.  All ONNX-based providers share ONE dependency:
# onnxruntime (~50MB, CPU-only).  Models are lazy-loaded + cached.

# --- ONNX Runtime (enables 7 providers: insightface, yolov8, places365,
#     nudenet, ai_image_detector, mobilenet_embed, ocr) ---
onnxruntime==1.17.1

# --- OCR (optional — requires onnxruntime) ---
# rapidocr-onnxruntime==1.3.24

# --- Face recognition (dlib-based, requires cmake + C++ compiler) ---
# face-recognition==1.3.0
# dlib==19.24.2

# --- Selenium scraper (requires Chrome) ---
# selenium==4.18.1
# webdriver-manager==4.0.1

# --- XMP metadata (requires lxml) ---
# lxml==5.1.0

# --- Wavelet hash (requires PyWavelets) ---
# PyWavelets==1.5.0