Skip to main content

Pytorch based Ear Detection in picture and camera

Project description

Efficient and Lightweight Ear Segmentation

License: MIT pre-commit.ci status

Python38 Python39 Python310 PyTorch Torchvision Cuda Poetry Black Mypy isort

Download Model 📂

GoogleDrive Github

⚙️ Requirements ⚙️

  • Python 3.8 to Python3.10 (Virtualenv recommended)
  • Display Server for showing results
  • Optional: poetry
  • Optional: Nvidia CUDA for cuda usage

🛠️ Installation 🛠️

Pip installation

pip install -r requirements.txt

Poetry installation

poetry shell
poetry install

Optional (If you have multiple python installation)

poetry env use $(which python3.10)
poetry shell
poetry install

Usage

usage: earsegmentationai_cli.py [-h] -m {c,p} [-d [{cpu,cuda}]] [-fp FOLDERPATH] [-id [DEVICEID]]

options:
  -h, --help            show this help message and exit
  -m {c,p}, --mode {c,p}
                        Select camera or picture mode
  -d [{cpu,cuda}], --device [{cpu,cuda}]
                        Run in gpu or cpu mode
  -fp FOLDERPATH, --folderpath FOLDERPATH
                        Folder path for image(s) for image mode only
  -id [DEVICEID], --deviceId [DEVICEID]
                        Camera deviceId /dev/videoX for camera mode only

Webcam Mode 📷

python earsegmentationai_cli.py --mode c --device cpu
python earsegmentationai_cli.py --mode c --device cuda
python earsegmentationai_cli.py --mode c --deviceId 1 --device cuda

Image Mode 🖼️

python earsegmentationai_cli.py --mode p --fp /path/xxx/

Youtube Video 📸 ✨

Youtube

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

earsegmentationai-1.0.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

earsegmentationai-1.0.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file earsegmentationai-1.0.0.tar.gz.

File metadata

  • Download URL: earsegmentationai-1.0.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for earsegmentationai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fb0eef82672e9881dfb35809b1f1b0d64290f03fdf6465e21e2839ba13009a52
MD5 b0b1d6c7881ddfb26a960cfb1c780d70
BLAKE2b-256 68311d0e7fe7cf744ca3b19b36fb66ebd2bd90913e201837c3fb0bae043ebb13

See more details on using hashes here.

File details

Details for the file earsegmentationai-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for earsegmentationai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 877bde19d01c2b3dec57f31c5b0857b5fcf948f5b792eda1ba378956e0b97a78
MD5 9935d7a253181863897103f1cf22e2d1
BLAKE2b-256 e35e03794f4327429d593029ded840d785c0583ff9e9daac253c5e053e3963da

See more details on using hashes here.

Supported by

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