kolhizin / bujo

Proof of concepts and sharedlib for bujo app
0 stars 0 forks source link

Detect words using haar features #15

Closed kolhizin closed 5 years ago

kolhizin commented 5 years ago

Find AABB for words using haar features

kolhizin commented 5 years ago

Following approach gave promissing results:

  1. Run variance filters (v- & h-) with percentile
  2. Multiply both results
  3. Run local maxima filter (detect local maxima approximately in certain radius)
  4. Run rolling percentile
  5. Search bounding boxes

But there are a few issues:

  1. Some lines are disturbed, hence issue with AABB
  2. Under- and overline symbols are treated badly

Hence, save 1-3 points and ditch 4-5 for more hierarchical approach:

  1. Find lines, with their local geometry (i.e. skewed)
  2. Detect words inside line, not in 2d text