semi-colon is a utility package for CV, data science, Machine Learning and Deep Learning.
Project description
semi-colon
semi-colon is a utility package for CV, data science, Machine Learning and Deep Learning.
functions
semi_colon.imshows(imgs, rows=1, cols=None, bgr=True, figsize=None, axis=False)
- matplotlib을 이용해서
imgs에 전달한 이미지를 한 번에 표시합니다. imgs: 하나의 NumPy Array, List 또는 Tuple에 들어 있는 NumPy Array, 제목을 키로 하는 Dict
semi_colon.download(url, dir=None, file_name=None, extract=False)
url에 있는 파일을dir에 다운로드 합니다.url이 github.com 이라면,master/를 기준으로 자동으로 경로와 파일이름을 지정합니다.extract=True인 경우, zip, tar 파일은 압축을 해제해 줍니다.
semi_colon.digit_split(image, size=None, flatten=False, border=0, inverse=True)
image에 숫자 여러개가 있다면 각각의 숫자 그림파일로 분할해서 리스트로 반환합니다.size는 반환 이미지의 크기를 지정할 수 있습니다.flatten=True은 (1, n) 형태로 변환해서 반환합니다.border는 반환하는 이미지의 테두리 여백을 지정합니다.inverse는 흰색과 검정색을 반전합니다.
semi_colon.load_boston()
scikit-learn.load_boston()을 그대로 복원했습니다.
semi_colon.colab.imMouseCallback(imgs, onmouse=None)
- 이 함수는 Google Colab에서만 사용 가능합니다.
cv2.setMouseCallBack()함수를 Google Colab에서 사용 할 수 있게 수정했습니다.onmouse에 지정할 callback의 parameter는cv2.setMouseCallback()과 동일합니다.
semi_colon.draw_bbox(img, x1, y1, x2, y2, text=None, txt_color=(255,255,255), bb_color=None, thickness=2)
img에 주어진 좌표로 bounding box를 표시하고 사본을 반환합니다.
get_iou(pred, gt)
pred,gt로 IoU를 계산해서 반환합니다.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
semi_colon-0.2.4.tar.gz
(21.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file semi_colon-0.2.4.tar.gz.
File metadata
- Download URL: semi_colon-0.2.4.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bad51b3ef1ae4870f94610c2412d72e4c730cb1c6752f053b96a4ba92cbf6348
|
|
| MD5 |
34ad9a81946ad152877514c5b4144a35
|
|
| BLAKE2b-256 |
2b486676510c14c8d738f690fa3af6fc3d5572d6f51ccb5e84c78d1078e6cf93
|
File details
Details for the file semi_colon-0.2.4-py3-none-any.whl.
File metadata
- Download URL: semi_colon-0.2.4-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
284b71872d182402b62548343c265d0f720429a0ca000db13d2271b8610ac2a8
|
|
| MD5 |
62216f81f9ca3909c5e1d1bfdd2671d6
|
|
| BLAKE2b-256 |
2cdda9f75737b2ba0ad49905b95b6419ad7fa4e1c91d8471a49c02b41a9f7b1a
|