Skip to main content

ORTHO mask editor tool

Project description

ORTHO Mask Editor

A PyQT5-based mask editor tool for the ORTHO (Old Research Text Hebrew OCR) project. This tool helps create training data for the ORTHO U-Net AI model by allowing users to create and edit image masks of Hebrew text documents.

About ORTHO

ORTHO (Old Research Text Hebrew OCR) is a project focused on optical character recognition for historical Hebrew texts. The project uses a U-Net architecture for text segmentation and recognition.

Purpose

This mask editor serves as a crucial tool in the ORTHO pipeline by:

  • Creating binary masks for training data
  • Marking text regions in historical Hebrew documents
  • Preparing ground truth data for the U-Net model
  • Enabling manual correction of automated segmentation results

Installation

Prerequisites

  • Python 3.6 or higher
  • PyQt5
  • NumPy

Setup

  1. Clone the repository:
git clone https://github.com/yaacov/ortho-editor.git
cd ortho-editor

Usage

  1. Prepare a directory that contains two subdirectories named inputs and targets.

    • inputs holds the original images.
    • targets holds the corresponding mask images (same filenames, same dimensions).
  2. Install the required dependencies:

    pip install -r requirements.txt
    
  3. Run the application:

    python main.py
    
  4. When prompted, select your directory with inputs and targets subdirectories.

  5. A list of files from the inputs folder will appear. Choose a file to display the image as the background, then draw or edit the mask on top.

License

MIT 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

ortho_editor-0.1.6.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

ortho_editor-0.1.6-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file ortho_editor-0.1.6.tar.gz.

File metadata

  • Download URL: ortho_editor-0.1.6.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for ortho_editor-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4c08326af524e509bdd13046c3834f3c2d9c22aa0fcd44a72d1d674351a5d990
MD5 b6d7a1a7a1a92533046d7fe5a3789f04
BLAKE2b-256 23942707e949a77b8d750970434e8762e94bb55964570d2c005e42bd1a5eef32

See more details on using hashes here.

File details

Details for the file ortho_editor-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: ortho_editor-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for ortho_editor-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1466f56f7a6839474a8c4fec98eeffc642906049e6faebce1d9993f82f253082
MD5 fd5dfbd399eb94ff91a4699229ab33fc
BLAKE2b-256 da161373a6a48582ffc4eff1b8cbf0d1eecc2b51c0a46662a1b70799d0e07d0f

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