It classify the cat or dog images
Project description
animal-classifier
It classify the animals.
Installation
pip install animal-classifier
How to use it
Note - It currently support classification of cat and dog. Support for more animals will be added soon.
It take the image path and classify, if it is cat then answer is 0 else 1 for dog.
import animal_classifier
image_path = "C:\Users\xvinay28x\Desktop\dog.jpg"
result = animal_classifier.classify(image_path)
if result == 1:
print("It is Dog")
else:
print("It is Cat")
License
MIT License
Copyright (c) 2021 Vinay Garg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file animal_classifier-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: animal_classifier-1.0.5-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1862e066d2363cf8a13453aa1e35362cf49d51247481ab7f398819e30a75b9b2 |
|
MD5 | b9e3313db6cffe2f85e538333a8ea851 |
|
BLAKE2b-256 | 4aa8e18979c7570c9ce9b615e7e89cc496d8631010790fa833e4f1b7387d36cb |