Skip to main content

package to predict onepiece image character

Project description

Machine Learning Project Documentation

Project Overview

This repository contains programs for classifying images. The images used for this project are images of Onepiece anime characters. There are 18 predicted anime characters. This project is packaged in the form of a python package so that it can be used by the public.

Installation Guide

Requirements

It is recommended to run this application within a virtual environment. First thing first is clone the repository

git clone https://github.com/lombokai/onepiece-classifier.git

Virtual Environment Setup

create a virtual environment

python3 -m venv <virtual environment name>

command line to activate your virtual environment in linux

source <virtual environment name>/bin/activate

command line to activate your virtual environment in windows

<virtual environment name>\Scripts\activate

install package requirements

pip install -r requirements/main.txt

Usage

Example Usage

This package provide image to predict in assets directory. If you want to try predict an image, run predict.py script with command bellow

python3 predict.py <image path>

command example if you are working in parent directory of this repo

python3 predict.py assets/luffy.png

try to predict different image with command above

Run the Application

install onepiece-classify package

pip install onepiece-classify

acces predict method from onepiece-classify pakcage

from onepiece_classify.infer import ImageRecognition

instantiate the class with your model path. Download trained model here and make sure you specify model path parameter in the location of downloaded model

predictor = ImageRecognition(<model path>)

then you just predict your image with predict method

predictor.predict(<your image path>)

Data Description

Data Sources

Data obtained from Kaggle here. The data contains a collection of 18 onepiece character images, and is saved in jpg, jpeg and png formats.

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

License

License

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

onepiece_classifier-0.0.1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onepiece_classifier-0.0.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file onepiece_classifier-0.0.1.tar.gz.

File metadata

  • Download URL: onepiece_classifier-0.0.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for onepiece_classifier-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6dc7e7c93d175781f68bc1da8d1f6d25e70755085a8ce1e562c74d6dbd1a2e1d
MD5 b398e13e344a54653ee0a7db4873bbd7
BLAKE2b-256 29128624a884ad5c17dbf8a4363189cb410f2aaafbc879d90996d8c6ceebee8a

See more details on using hashes here.

File details

Details for the file onepiece_classifier-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for onepiece_classifier-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 baa3ca4958b7fbaec9c55d4d995094aeb1eff6877904713ee5eda2ec22ee0397
MD5 7993bb7fe353682d2eeb576586d2cd07
BLAKE2b-256 10f2917c53bd90ac114a51381d4b237f2e1da25039effe7037977a6dc98db447

See more details on using hashes here.

Supported by

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