Skip to content

Commit

Permalink
update scikit, python versions and fix unit tests(#27)
Browse files Browse the repository at this point in the history
* update scikit and python versions

* fix python 3.10

* fix unit tests

* fix unit tests
  • Loading branch information
karolzak committed Jan 18, 2023
1 parent 5242ab2 commit 9bb5ee4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.1
current_version = 1.0.2
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.5, 3.6, 3.7, 3.8]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion boxdetect/__init__.py
@@ -1,3 +1,3 @@
name = "boxdetect"

__version__ = "1.0.1"
__version__ = "1.0.2"
2 changes: 1 addition & 1 deletion boxdetect/config.py
Expand Up @@ -190,7 +190,7 @@ def autoconfigure(
and maxw <= rect_kernel_threshold)
else 'lines'
])
hw_grouped = np.asarray(hw_grouped)
hw_grouped = np.asarray(hw_grouped, dtype=object)

self.width_range = hw_grouped[:, 0].tolist()
self.height_range = hw_grouped[:, 1].tolist()
Expand Down
2 changes: 1 addition & 1 deletion boxdetect/pipelines.py
Expand Up @@ -98,7 +98,7 @@ def get_checkboxes(
img, rect), px_threshold, verbose=verbose),
img_proc.get_checkbox_crop(img, rect)
]
for rect in grouping_rects])
for rect in grouping_rects], dtype=object)


def get_boxes(img, cfg: config.PipelinesConfig, plot=False):
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Expand Up @@ -6,7 +6,7 @@

setup(
name="boxdetect",
version="1.0.1",
version="1.0.2",
description="boxdetect is a Python package based on OpenCV which allows you to easily detect rectangular shapes like characters boxes on scanned forms.",
long_description=long_description,
long_description_content_type="text/markdown", # This is important!
Expand All @@ -20,15 +20,15 @@
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'
],
packages=find_packages(),
zip_safe=False,
install_requires=[
'opencv-python', 'numpy', 'imutils', 'pyyaml', 'sklearn'],
'opencv-python', 'numpy', 'imutils', 'pyyaml', 'scikit-learn'],
)

0 comments on commit 9bb5ee4

Please sign in to comment.