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

Method GoodTextBlob

deps/tesseract/ccstruct/blobbox.cpp:221–229  ·  view source on GitHub ↗

Returns positive if there is at least one side neighbour that has a similar stroke width and is not on the other side of a rule line.

Source from the content-addressed store, hash-verified

219// Returns positive if there is at least one side neighbour that has a similar
220// stroke width and is not on the other side of a rule line.
221int BLOBNBOX::GoodTextBlob() const {
222 int score = 0;
223 for (int dir = 0; dir < BND_COUNT; ++dir) {
224 BlobNeighbourDir bnd = static_cast<BlobNeighbourDir>(dir);
225 if (good_stroke_neighbour(bnd))
226 ++score;
227 }
228 return score;
229}
230
231// Returns the number of side neighbours that are of type BRT_NOISE.
232int BLOBNBOX::NoisyNeighbours() const {

Callers 3

ComputeNonTextMaskMethod · 0.80
DisplayGoodBlobsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected