Skip to content

Commit 3a20324

Browse files
Merge pull request #18 from devrimcavusoglu/remove-humps-dep
pyhumps dependency removed,
2 parents 57999f6 + 5ebdc9b commit 3a20324

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

pybboxes/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
YoloBoundingBox,
99
)
1010

11-
__version__ = "0.1.2"
11+
__version__ = "0.1.3"

pybboxes/types/bbox.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
from importlib import import_module
22
from typing import Tuple, Union
33

4-
import humps
5-
64
from pybboxes.types.base import BaseBoundingBox
75

86

97
def load_bbox(
108
name: str, values, image_size: Tuple[int, int] = None, return_values: bool = False, from_voc: bool = False, **kwargs
119
) -> BaseBoundingBox:
10+
def pascalize(snake_string: str) -> str:
11+
return snake_string.title().replace("_", "")
12+
1213
module_name = f"{name}_bounding_box"
1314
module_path = f"pybboxes.types.{module_name}"
14-
klass_name = humps.pascalize(module_name)
15+
klass_name = pascalize(module_name)
1516
module = import_module(module_path)
1617
klass = getattr(module, klass_name)
1718
if from_voc:

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
numpy
2-
pyhumps
1+
numpy

0 commit comments

Comments
 (0)