pipeline in linea single thread
This commit is contained in:
43
aggiornamento-2026-05-16-12-10.md
Normal file
43
aggiornamento-2026-05-16-12-10.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# Aggiornamento 2026-05-16 12:10
|
||||
|
||||
## Obiettivo
|
||||
|
||||
Evitare falsi codici UDC quando OCR non determina davvero il testo.
|
||||
|
||||
## Decisione
|
||||
|
||||
Il primo gaylord ha etichetta tagliata. In quel caso il server non deve inventare un codice come `UDC-0001`.
|
||||
|
||||
Quando OCR fallisce o non legge testo utile, il codice restituito deve essere:
|
||||
|
||||
```text
|
||||
udc non determinato
|
||||
```
|
||||
|
||||
## Modifiche
|
||||
|
||||
In `flywms_wms_server.py`:
|
||||
|
||||
- cambiato fallback OCR;
|
||||
- aggiunto campo configurabile `undetermined_code_text`;
|
||||
- il payload mantiene `ocr_fallback_used = true`.
|
||||
|
||||
In `flywms_navigation.ini`:
|
||||
|
||||
```ini
|
||||
wms_undetermined_code_text = udc non determinato
|
||||
```
|
||||
|
||||
## Verifiche
|
||||
|
||||
Compilazione:
|
||||
|
||||
```powershell
|
||||
python -m py_compile flywms_wms_server.py flywms_navigation.py flywms_navigation_gui.py
|
||||
```
|
||||
|
||||
Test OCR sul crop del primo gaylord:
|
||||
|
||||
```text
|
||||
OcrServerResult(text='udc non determinato', raw_text='', confidence=0.0, backend='easyocr-fallback', fallback_used=True)
|
||||
```
|
||||
Reference in New Issue
Block a user