Image vector to product details
This commit is contained in:
@@ -74,6 +74,26 @@ ai-edge-litert>=2.2.0
|
||||
# backend preprocesses with the same library. Headless: no GUI, no libGL.
|
||||
# abi3 wheel, ~55MB. Pinned below 5 to stay on the app's major version.
|
||||
opencv-python-headless>=4.8,<5
|
||||
# Server-side OCR for POST /api/search/identify (app/services/ocr_service.py):
|
||||
# rapidocr's PP-OCR models on onnxruntime, CPU. rapidocr ITSELF IS NOT LISTED
|
||||
# HERE, on purpose - its metadata demands opencv-python (the GUI build), which
|
||||
# a normal install unpacks over opencv-python-headless above and which then
|
||||
# fails on libGL.so.1 in the slim image, breaking the image embedder too. It is
|
||||
# installed with `--no-deps` from requirements-ocr.txt (see the Dockerfile),
|
||||
# and the dependencies it really needs are declared below instead:
|
||||
# - onnxruntime: the inference engine, which rapidocr does not declare (it is
|
||||
# one of several it can use). Imported lazily; missing means "no server
|
||||
# OCR", never a failed boot.
|
||||
# - the rest are pure-Python helpers from its metadata (Shapely and pyclipper
|
||||
# for the detection polygons, omegaconf/PyYAML for its config).
|
||||
onnxruntime>=1.17,<2
|
||||
omegaconf>=2.1,!=2.2.1
|
||||
pyclipper>=1.2.0
|
||||
Shapely>=1.7.1,!=2.0.4
|
||||
PyYAML>=6.0
|
||||
tqdm>=4.60
|
||||
colorlog>=6.0
|
||||
six>=1.15.0
|
||||
aiofiles>=23.2.1
|
||||
|
||||
# Playwright (Python) - last-resort image-search fallback only.
|
||||
|
||||
Reference in New Issue
Block a user