MCPcopy Create free account
hub / github.com/creatale/node-dv / rating_to_cost

Function rating_to_cost

deps/tesseract/api/baseapi.cpp:2647–2654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2645
2646
2647static 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),

Callers 1

extract_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected