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

Method RowAttributes

deps/tesseract/ccmain/ltrresultiterator.cpp:148–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void LTRResultIterator::RowAttributes(float* row_height, float* descenders,
149 float* ascenders) const {
150 *row_height = it_->row()->row->x_height() + it_->row()->row->ascenders() -
151 it_->row()->row->descenders();
152 *descenders = it_->row()->row->descenders();
153 *ascenders = it_->row()->row->ascenders();
154}
155
156// Returns the font attributes of the current word. If iterating at a higher
157// level object than words, eg textlines, then this will return the

Callers 1

AddBoxTohOCRFunction · 0.80

Calls 4

ascendersMethod · 0.80
descendersMethod · 0.80
x_heightMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected