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

Method BlockType

deps/tesseract/ccmain/pageiterator.cpp:357–363  ·  view source on GitHub ↗

Returns the type of the current block. See apitypes.h for PolyBlockType. */

Source from the content-addressed store, hash-verified

355
356/** Returns the type of the current block. See apitypes.h for PolyBlockType. */
357PolyBlockType PageIterator::BlockType() const {
358 if (it_->block() == NULL || it_->block()->block == NULL)
359 return PT_UNKNOWN; // Already at the end!
360 if (it_->block()->block->poly_block() == NULL)
361 return PT_FLOWING_TEXT; // No layout analysis used - assume text.
362 return it_->block()->block->poly_block()->isA();
363}
364
365/** Returns the polygon outline of the current block. The returned Pta must
366 * be ptaDestroy-ed after use. */

Callers 2

GetComponentImagesMethod · 0.80

Calls 2

poly_blockMethod · 0.80
blockMethod · 0.45

Tested by

no test coverage detected