#include <shapetable.h>
Definition at line 93 of file shapetable.h.
| tesseract::ShapeRating::ShapeRating |
( |
| ) |
|
|
inline |
| tesseract::ShapeRating::ShapeRating |
( |
int |
s, |
|
|
float |
r |
|
) |
| |
|
inline |
Definition at line 40 of file shapetable.cpp.
44 for (
int r = 0; r < results.
size(); ++r) {
45 const int shape_id = results[r].shape_id;
46 const Shape& shape = shape_table.GetShape(shape_id);
47 if (shape.ContainsUnichar(unichar_id)) {
| static int tesseract::ShapeRating::SortDescendingRating |
( |
const void * |
t1, |
|
|
const void * |
t2 |
|
) |
| |
|
inlinestatic |
Definition at line 102 of file shapetable.h.
103 const auto* a =
static_cast<const ShapeRating*
>(t1);
104 const auto* b =
static_cast<const ShapeRating*
>(t2);
105 if (a->rating > b->rating) {
107 }
else if (a->rating < b->rating) {
110 return a->shape_id - b->shape_id;
| bool tesseract::ShapeRating::broken |
| float tesseract::ShapeRating::font |
| bool tesseract::ShapeRating::joined |
| float tesseract::ShapeRating::rating |
| float tesseract::ShapeRating::raw |
| int tesseract::ShapeRating::shape_id |
The documentation for this struct was generated from the following files: