Skip to main content

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

animal_classifier-1.0.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file animal_classifier-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: animal_classifier-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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

Hashes for animal_classifier-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0cf4d390aac311de977c6b5cf352462a24431b79bdc93207e5afba9466514c7e
MD5 34b43ae7e8e0e422dd3f9499dc8f889c
BLAKE2b-256 bb402b4168ad3e8669ef5922087b61349f1c1aa050826a3039212856b8b76ad9

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