| 2645 | |
| 2646 | |
| 2647 | static float rating_to_cost(float rating) { |
| 2648 | rating = 100 + rating; |
| 2649 | // cuddled that to save from coverage profiler |
| 2650 | // (I have never seen ratings worse than -100, |
| 2651 | // but the check won't hurt) |
| 2652 | if (rating < 0) rating = 0; |
| 2653 | return rating; |
| 2654 | } |
| 2655 | |
| 2656 | /** |
| 2657 | * Extract the OCR results, costs (penalty points for uncertainty), |