simplified and debugged Refine
Merge branch 'remove_legacy_opencv' of github.com:qbonnard/chilitags into remove_legacy_opencv