Best Flask open-source libraries and packages

MNIST Handwritten Digits Detector v1

Our project builds a Convolutional Neural Network (CNN) model to accurately classify handwritten digits from the MNIST dataset. We preprocess the data and design a CNN architecture. Additionally, we create a user-friendly web interface using Flask for easy digit classification.
Updated 2 months ago

MNIST Handwritten Digits Detector

This project is a web application that uses a pre-trained machine learning model to detect handwritten digits from images. It is implemented using Flask, TensorFlow, and Bootstrap.

Setup

  1. Clone the repository:
git clone https://github.com/nv21053/MNIST-Handwritten-Digits-Detector.git
  1. Install the dependencies:
pip install -r requirements.txt
  1. Download the pre-trained model file (mnist_model.h5) and place it in the project root directory.

Usage

  1. Run the Flask web server:
python app.py
  1. Open your web browser and navigate to http://localhost:5000.

  2. Choose an image of a handwritten digit and click the "Submit" button.

  3. The application will predict the digit and display the result along with the probabilities for each digit.

  4. To try again, click the "Try Again" button.

File Structure

  • app.py: The Flask application script.
  • mnist_model.h5: The pre-trained machine learning model for digit recognition.
  • templates/index.html: The HTML template for the web application.

Dependencies

  • Flask: Web framework for Python.
  • TensorFlow: Deep learning library for machine learning tasks.
  • Pillow: Python Imaging Library for image processing.
  • Flask-Bootstrap: Integration of Bootstrap with Flask.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please create an issue or submit a pull request.

Python Flask

This is a Flask.

Deploy on Railway

✨ Features

  • Python
  • Flask

💁‍♀️ How to use

  • Install Python requirements pip install -r requirements.txt
  • Start the server for development python3 main.py