Skip to main content

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


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.3.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

semi_colon-0.2.3-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file semi_colon-0.2.3.tar.gz.

File metadata

  • Download URL: semi_colon-0.2.3.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

Hashes for semi_colon-0.2.3.tar.gz
Algorithm Hash digest
SHA256 478c6aa9358e2e52c0e663255682e392f119b0adf277f07d547f5d5e158ff25f
MD5 53f6ac274b6f2fc12bb12969aeca4738
BLAKE2b-256 36c15ba24eda83ebd967d5915f4aebbccfab98b3665c504d5d4cd30e651e0945

See more details on using hashes here.

File details

Details for the file semi_colon-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: semi_colon-0.2.3-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

Hashes for semi_colon-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 59a43875068548052e9e6c0499f06e63b098c3e1b61a72688de3bf994010a02d
MD5 228d49ed9e25be64c35697641d79ccc4
BLAKE2b-256 27a1eeeabf3d28dc2bd99a8d44661abf160f86413811b061971764c130230651

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page