kolhizin / bujo

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

MVP 01 - page orientation #11

Closed kolhizin closed 5 years ago

kolhizin commented 5 years ago

Create tool to identify orientation of text and probability of any text at all.

Algorithm

  1. Get distribution of total absolute variance by angle from Radon R&D
  2. Normalize on mean sum of image inside center square
  3. Return all local maximas (apart at least specified distance in angles) with (angle, magnitude, width at 3 points: 25%, 50%, 75% distance to mean)

Signature

def get_text_angle(image, min_local_maxima_dst, interval_points)

Returns list of (angle, magnitude, list of widths).

DoD

kolhizin commented 5 years ago

Prepared function and written wiki page

kolhizin commented 5 years ago

https://github.com/kolhizin/bujo_poc/wiki/PoC:-word-detection