kolhizin / bujo

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

Detect height and extract from lines from sources image #42

Closed kolhizin closed 5 years ago

kolhizin commented 5 years ago

Detect height of each line and extract it from source (or resized) image.

Line length should be based on actual length (not x-projection)

kolhizin commented 5 years ago

Written code and tested on top 10 lines of sample (id=6). Works good. Added regularization to search of local maxima.

Need to refine to handle cases: 1) with non-integer size-factors 2) with increase of line height 3) find fails

kolhizin commented 5 years ago

Fixed size-factors, but found bug with filter "offset", i.e. it is not just offset -- it should be rescaled based on position in picture (seems like)

kolhizin commented 5 years ago

On filtered image everything works just fine. Thus issue with "offset" being not just "offset".

kolhizin commented 5 years ago

Had only to correct on height of filter.