Git Product home page Git Product logo

map-text-extraction-ocr's Introduction

Map Reproducibility Assessment Tool

Overview

This repository contains the codebase for a Map Reproducibility Assessment Tool developed as part of my master's thesis project. The tool aims to facilitate the extraction, parsing, and comparison of textual elements from original and reproduced map images, enabling researchers to assess the reproducibility of geospatial maps in geoscientific publications. The project is built using Flask for the backend API and React for the frontend interface.

Features

  • Upload original and reproduced map images
  • Extract textual elements using OCR
  • Calculate text similarity, bounding box overlap ratio, and distance between bounding boxes
  • Visualize annotated images with bounding boxes
  • Interactive table for exploring assessment results
  • Utilize 2D canvas drawing to highlight text elements on the map images

Technologies Used

  • Backend: Flask (Python)
  • Frontend: React.js
  • OCR Engine: PaddleOCR
  • Additional Libraries: theFuzz, OpenCV

Installation and Setup

  1. Clone this repository: git clone <repository_url>
  2. Navigate to the Flask_backend directory and install dependencies: pip install -r requirements.txt
  3. Run the Flask server: python app.py
  4. Navigate to the React_Frontend directory and install dependencies: npm install
  5. Run the React frontend: npm start

Usage

  1. Upload original and reproduced map images.
  2. Select preferred languages for text extraction.
  3. Click the "Upload and Extract" button to initiate text extraction and comparison.
  4. Explore assessment results in the interactive table.
  5. Click on a row in the table to highlight corresponding text elements on the annotated images.

License

This project is licensed under the MIT License.

Acknowledgements

  • Special thanks to PaddleOCR for providing the OCR engine.
  • Built with inspiration from the field of geoscience and reproducible research.

Feedback and Contributions

Feedback, bug reports, and contributions are welcome! Please feel free to open an issue or submit a pull request.

map-text-extraction-ocr's People

Contributors

yohannes19 avatar

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.