CatDog
Простая библиотека для определения кошек и собак на изображениях.
Установка
Установка через pip:
pip install catdog
Использование
Простой способ:
import catdog
result = catdog.predict("path/to/image.jpg")
print(result) # "cat" или "dog"
Расширенный способ:
image = catdog.CatDogImage("path/to/image.jpg")
print(image.is_cat) # True/False
print(image.is_dog) # True/False
print(image.confidence) # Уверенность в процентах
print(image) # Полное описание
Лицензия
MIT
Release files for catdog 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| catdog-1.0.4.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| catdog-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:3.9 kB
Release files / catdog-1.0.4.tar.gz
| Download URL | catdog-1.0.4.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30cb1b96420d3ffd35747266e64da974a2accff17436c5ea31299b4077a2a631
|
|
BLAKE2b-256 checksum How to use checksums |
4609d8dadc58855949b7ce9220b4c1f37b03e3a00ec4cd2a67759632ad280a74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Release files / catdog-1.0.4-py3-none-any.whl
| Download URL | catdog-1.0.4-py3-none-any.whl |
|---|---|
| Size | 1.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ea1516dcb1f3c5e359cb1e3c0b015e9d0d94cca9a4efdfeeb64dc0e5ee576c5
|
|
BLAKE2b-256 checksum How to use checksums |
fa1ffe9b0a63c7a1c6dddca80a2c385653d4a4216dfc53d75e819ce4ae9a304c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|