This project aims to recognize English letters from images using neural networks and custom NumPy logic. The goal is to extract text from images and display it in a web application built with Flask.
- Clone this repository.
- Install the required dependencies using pip:
pip install -r requirements.txt
- Place the image file to be recognized in the
Static
folder. - Run
python app.py
. - Navigate to
http://localhost:5000
in your web browser. - Click on the
Choose File
button and select the image file. - Click on the
Upload
button to start the OCR process. - The recognized text will be displayed on the web page.
- The input image is first preprocessed to improve its quality and contrast using OpenCV.
- Custom NumPy logic is used to separate the image into paragraphs, sentences, words, and letters.
- The resulting letters are fed into a neural network that was trained on English letters using a dataset such as MNIST.
- The output of the neural network is the recognized text.
- The recognized text is displayed in a web application built with Flask.
Contributions are welcome! Please fork this repository and submit a pull request with your changes.