Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Latest commit

 

History

History
64 lines (44 loc) · 1.71 KB

README.md

File metadata and controls

64 lines (44 loc) · 1.71 KB

HebrewCharacterRecognizer

This project is designed to recognize Hebrew characters from object images. It includes functionalities for processing images to remove backgrounds, manipulating the images, adding white backgrounds, and predicting the Hebrew character in the image using a YOLO model.

An 'alef' object Output image1

  • Log: Alef

A 'Feh' object Output image4

  • Log: Feh

Table of Contents

Installation

Follow these steps to get the project up and running on your local machine:

  1. Clone the Repository:
   git clone https://github.com/<username>/HebrewCharacterRecognizer.git
   cd HebrewCharacterRecognizer
  1. Set Up Virtual Environment:

Create a virtual environment to manage dependencies

  python -m venv .venv
  .venv\Scripts\activate # This is on windows.
  1. Install Dependencies:

Install the required packages using pip.

   pip install -r requirements.txt

Usage

  • Running the Server

To start the Flask server, run:

   python main.py run_server
This will start the server at `http://127.0.0.1:5000/`.
You can use the `/process_image` endpoint to process images via POST requests.
  • Processing an Image

To process an image without running the server, you can use the process_image command:

    python main.py process_image --image_path path/to/your/image.jpeg