ComfyUI Node
PSN Document Quality Score (from typed metrics)
Scores a scan from DPI, sharpness and contrast numbers you supply and applies pass thresholds. It does not look at any image, so it cannot measure a real scan.
PSN Document Quality Score (from typed metrics)
- quality_score
- issues
- pass_fail
◄width_px2480►
◄height_px3508►
◄dpi300►
◄sharpness0.80►
◄contrast0.80►
◄min_resolution300►
◄blur_threshold0.40►
CategoryParametric/Prompts
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| width_px | INT | 24801–100000 | Width px. From 1 to 100000. Default 2480. |
| height_px | INT | 35081–100000 | Height px. From 1 to 100000. Default 3508. |
| dpi | FLOAT | 3001–1200 | Dpi. From 1 to 1200. Default 300.0. |
| sharpness | FLOAT | 0.800–1 | Sharpness. From 0 to 1. Default 0.8. |
| contrast | FLOAT | 0.800–1 | Contrast. From 0 to 1. Default 0.8. |
| min_resolution | INT | 3001–1200 | Min resolution. From 1 to 1200. Default 300. |
| blur_threshold | FLOAT | 0.400–1 | Blur threshold. From 0 to 1. Default 0.4. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| quality_score | FLOAT | — |
| issues | STRING | — |
| pass_fail | BOOLEAN | — |