Skip to content

Commit

Permalink
loadimg ...
Browse files Browse the repository at this point in the history
  • Loading branch information
not-lain committed Mar 26, 2024
1 parent bdff13f commit dd1319b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# loadimg

a python package for loading images
## how to use
installation
```
pip install git+https://github.com/not-lain/loadimg
```
usage
```python
from loadimg import load_img
load_img(any_img_type_here) # output_type parameter is coming soon
```

![loadimg](./loadimg.png)
2 changes: 1 addition & 1 deletion src/loadimg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def download_image(url: str):
SUPPORTED_TYPES = Union[str, np.ndarray, Image.Image]


def load_image(
def load_img(
img: SUPPORTED_TYPES,
# output_type=Literal["PIL"]
) -> Any:
Expand Down

0 comments on commit dd1319b

Please sign in to comment.