pipeline in linea single thread
This commit is contained in:
50
aggiornamento-2026-05-18-15-28.md
Normal file
50
aggiornamento-2026-05-18-15-28.md
Normal 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.
|
||||
Reference in New Issue
Block a user