#include <shapetable.h>
Definition at line 40 of file shapetable.h.
◆ UnicharRating() [1/2]
tesseract::UnicharRating::UnicharRating |
( |
| ) |
|
|
inline |
◆ UnicharRating() [2/2]
tesseract::UnicharRating::UnicharRating |
( |
int |
u, |
|
|
float |
r |
|
) |
| |
|
inline |
◆ FirstResultWithUnichar()
◆ Print()
void tesseract::UnicharRating::Print |
( |
| ) |
const |
|
inline |
Definition at line 48 of file shapetable.h.
49 tprintf(
"Unichar-id=%d, rating=%g, adapted=%d, config=%d, misses=%d,"
◆ SortDescendingRating()
static int tesseract::UnicharRating::SortDescendingRating |
( |
const void * |
t1, |
|
|
const void * |
t2 |
|
) |
| |
|
inlinestatic |
Definition at line 55 of file shapetable.h.
56 const auto* a = static_cast<const UnicharRating*>(t1);
57 const auto* b = static_cast<const UnicharRating*>(t2);
58 if (a->rating > b->rating) {
60 }
else if (a->rating < b->rating) {
63 return a->unichar_id - b->unichar_id;
◆ adapted
bool tesseract::UnicharRating::adapted |
◆ config
uint8_t tesseract::UnicharRating::config |
◆ feature_misses
uint16_t tesseract::UnicharRating::feature_misses |
◆ fonts
◆ rating
float tesseract::UnicharRating::rating |
◆ unichar_id
The documentation for this struct was generated from the following files: