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.
| 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. |
| 221 | int 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. |
| 232 | int BLOBNBOX::NoisyNeighbours() const { |
no outgoing calls
no test coverage detected