Pytorch based Ear Detection in picture and camera
Project description
Efficient and Lightweight Ear Segmentation
Download Model 📂
⚙️ 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 📸 ✨
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb0eef82672e9881dfb35809b1f1b0d64290f03fdf6465e21e2839ba13009a52 |
|
MD5 | b0b1d6c7881ddfb26a960cfb1c780d70 |
|
BLAKE2b-256 | 68311d0e7fe7cf744ca3b19b36fb66ebd2bd90913e201837c3fb0bae043ebb13 |
File details
Details for the file earsegmentationai-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: earsegmentationai-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 877bde19d01c2b3dec57f31c5b0857b5fcf948f5b792eda1ba378956e0b97a78 |
|
MD5 | 9935d7a253181863897103f1cf22e2d1 |
|
BLAKE2b-256 | e35e03794f4327429d593029ded840d785c0583ff9e9daac253c5e053e3963da |