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

Method ProcessMatchedBlobs

deps/tesseract/ccstruct/boxword.cpp:193–201  ·  view source on GitHub ↗

This and other putatively are the same, so call the (permanent) callback for each blob index where the bounding boxes match. The callback is deleted on completion.

Source from the content-addressed store, hash-verified

191// for each blob index where the bounding boxes match.
192// The callback is deleted on completion.
193void BoxWord::ProcessMatchedBlobs(const TWERD& other,
194 TessCallback1<int>* cb) const {
195 for (int i = 0; i < length_ && i < other.NumBlobs(); ++i) {
196 TBOX blob_box = other.blobs[i]->bounding_box();
197 if (blob_box == boxes_[i])
198 cb->Run(i);
199 }
200 delete cb;
201}
202
203} // namespace tesseract.

Callers 3

word_blob_qualityMethod · 0.80
word_char_qualityMethod · 0.80
unrej_good_chsMethod · 0.80

Calls 3

NumBlobsMethod · 0.80
bounding_boxMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected