karolzak / boxdetect

BoxDetect is a Python package based on OpenCV which allows you to easily detect rectangular shapes like character or checkbox boxes on scanned forms.
MIT License
105 stars 20 forks source link

Fix missing brackets in wh_ratio_in_range #23

Closed martinkozle closed 1 year ago

martinkozle commented 1 year ago

Currently wh ratio is multiplied by 1 which does nothing and then the tolerance value is linearly added and substracted instead of multiplied.

martinkozle commented 1 year ago

Tests failed because of sklearn package. The package https://pypi.org/project/sklearn/ has been deprecated for some time now and https://pypi.org/project/scikit-learn/ is supposed to be used. I added a commit that changes it in requirements.txt.