kolhizin / bujo

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

Detect skewed lines #16

Closed kolhizin closed 5 years ago

kolhizin commented 5 years ago

Search next best possible line direction from origin to recover full line (including skewed lines)

DoD:

kolhizin commented 5 years ago

Tested following approaches.

L1-loss function of text -- fail. Method quickly starts to go diagonal to text in order to maximize text-utility. Tuning by corridor of possible directions is unstable.

L2-loss function of text -- fail. Method is more sticky to original lines, but also fails and goes diagonal to lines. Tuning by corridor and regularization of magnitude of line change is unstable. After faulty direction is chosen regularization leads to sticking to that direction

Local Radon transform -- good results (i.e. relevant local angles are identified), but too slow to perform in production.

HOG transform -- slow and not promissing.