pipeline in linea single thread

This commit is contained in:
administrator
2026-05-19 08:52:44 +02:00
parent 98b43ce903
commit f728524ee6
43 changed files with 5245 additions and 154 deletions

View File

@@ -0,0 +1,50 @@
# Aggiornamento 2026-05-18 15:28
## Problema
Avviando:
```powershell
python flywms_wms_server.py
```
il server partiva, ma il thread UI OpenCV falliva:
```text
cv2.error: The function is not implemented
```
Causa: nel Python globale e' installata una build OpenCV headless, quindi `cv2.namedWindow` non e' disponibile.
## Correzione
Aggiornato:
```text
C:\devel\flywms\flywms_wms_server.py
```
Ora `server_ui_loop()` intercetta l'errore `cv2.error` su `namedWindow`, logga il problema e disabilita solo la UI OpenCV del server.
FastAPI e PaddleOCR restano attivi.
## Verifica
Avvio di test:
```powershell
python C:\devel\flywms\flywms_wms_server.py --port 8099
```
Risultato:
```text
UI OpenCV disabilitata: highgui non disponibile
Uvicorn running on http://0.0.0.0:8099
```
Il server non si chiude piu' per l'errore della finestra OpenCV.
## Nota
Quando sistemeremo OpenCV non-headless o passeremo a DearPyGUI per il server, la UI potra' essere riabilitata senza cambiare la parte WMS/OCR.