GithubHelp home page GithubHelp logo

iea's Introduction

Character/Digit Recognizer

image

CAM is a character/ digit recognizer web application and its purpose is to help kids learn writing letters and digits and by translating their characters into Spanish. Hence, CAM is a modern day translator that aims to broaden the learning of the Spanish language for children around the world!

As part of our initial analysis, we designed the character/digits classifier as an ensemble learning model based only on non-parametric learners. Ensemble Model 2 reached an 84% accuracy level tested on 500 labels.

In order to diversify our analysis, we tested different parametric learners architectures, starting with single layer perceptron to Multi Layer perceptron. To simplify the integration of the models with the API, we created an endpoint for a weighted sum ensemble learning model based on 3 different MLP architectures.

Installation

Clone the repo and install all the requirements to get the dependencies needed. We advise to create a virtual environment with python 3.9 as interpreter.

csv_ensemble1.zip

csv_ensemble2.zip

These weights are used for both models 1 and 2. For the rest of the models, downloading the weights in ./weights is sufficient.

Download and extract these 2 zip folders. CSV files in ensemble1 put them in datasets/training/vector. CSV files in ensemble2 put them in datasets/training/vector2

pip install -r requirements.txt

File Structure

This API follows a Domain Driven Structure with some changes:

.
├── api
│   └── controllers
├── application
│   ├── feature_extraction
│   ├── image_preprocessing
│   └── inference
├── datasets
│   ├── cropped_images
│   ├── eroded_dilated
│   ├── gray_scaled_images
│   ├── images
│   ├── processed
│   ├── resized_images
│   ├── testing
│   └── training
│       ├── vector
│       └── vector2      
├── domain
│   ├── contracts
│   ├── exceptions
│   └── models
├── model
├── persistence
│   └── repositories
├── shared
│   ├── data_handler
│   └── helper
│  
├── weights 
├── notebooks
├── containers.py
├── main.py
└── README.md

Usage

In the root directory of the project, type the following command in the terminal

uvicorn main:app --reload

this will start the API at port 8000. For easier visualization, surf to http://localhost:8000/docs This will give a simple representation of the available endpoints.

Acknowledgments

iea's People

Contributors

anthonysemaan01 avatar charbelc15 avatar michael-al-assaad avatar michaelalassaad avatar

Watchers

 avatar

Forkers

michaelalassaad

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.