fix(ocr): clamp normalize lower/upper to 1..100 (10/90) to fix sharp error
This commit is contained in:
parent
acecd5b502
commit
4e23bc4034
@ -55,4 +55,11 @@ Décrire le pipeline de traitement des images et comment diagnostiquer un blocag
|
|||||||
### État courant (vérifié)
|
### État courant (vérifié)
|
||||||
|
|
||||||
- Backend UP; dossier `7d99a85daf66a0081a0e881630e6b39b`
|
- Backend UP; dossier `7d99a85daf66a0081a0e881630e6b39b`
|
||||||
- `results`: 1 PDF traité; `pending`: 2 JPEG en cours (normal)
|
- `results`: 3 fichiers traités; `pending`: 0 (suite correctif normalisation)
|
||||||
|
|
||||||
|
### Correctif appliqué (normalisation Sharp)
|
||||||
|
|
||||||
|
- Problème: erreurs OCR « Expected number between 1 and 100 for upper but received 0.9 » dues à `normalize({ lower: 0.1, upper: 0.9 })`.
|
||||||
|
- Cause: Sharp attend des percentiles entiers 1..100 pour `lower`/`upper`.
|
||||||
|
- Correctif: `backend/enhancedOcr.js` → `normalize({ lower: 10, upper: 90 })`.
|
||||||
|
- Effet: fin des boucles d’erreurs; `hasPending: false`.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user