#include <osdetect.h>
Definition at line 82 of file osdetect.h.
| OrientationDetector::OrientationDetector |
( |
OSResults * |
osr | ) |
|
| bool OrientationDetector::detect_blob |
( |
BLOB_CHOICE_LIST * |
scores | ) |
|
Definition at line 376 of file osdetect.cpp.
377 float blob_o_score[4] = {0.0, 0.0, 0.0, 0.0};
378 float total_blob_o_score = 0.0;
380 for (
int i = 0; i < 4; ++i) {
381 BLOB_CHOICE_IT choice_it;
382 choice_it.set_to_list(scores + i);
383 if (!choice_it.empty()) {
386 blob_o_score[i] = 1 + 0.05 * choice_it.data()->certainty();
387 total_blob_o_score += blob_o_score[i];
392 for (
int i = 0; total_blob_o_score != 0 && i < 4; ++i) {
393 osr_->
orientations[i] += log(blob_o_score[i] / total_blob_o_score);
400 for (
int i = 0; i < 4; ++i) {
const float kOrientationAcceptRatio
| int OrientationDetector::get_orientation |
( |
| ) |
|
Definition at line 413 of file osdetect.cpp.
void update_best_orientation()
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccmain/osdetect.h
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccmain/osdetect.cpp