An open API service indexing awesome lists of open source software.

https://github.com/umkl/chart-reader

📉 cli tool for extracting chart data from an image
https://github.com/umkl/chart-reader

charts opencv-python python3 sympy

Last synced: 7 months ago
JSON representation

📉 cli tool for extracting chart data from an image

Awesome Lists containing this project

README

          

# ChartReader using OpenCV-Python

## Requirements
* Python
* OpenCV
* Pytesseract
* Numpy

On Windows: Tesseract-OCR installed on your machine. Same requirements are required for
the Frontend project ([Chart-Reader Frontend](https://github.com/EinboeckFranz/chartreader_frontend))

## objective
Images consisting charts with the same pixel-layout but different dimensions must be converted into csv-data.

## process
Images are supplied by the input (inside docs) folder. These are converted by opencv into rgb-pixel-values.

## project-structure

The project consists of 3 _helper classes_ which are used to get processable data.
The result class makes use of all 3 of them and converts the data from the chart according to the y and x axis.

### The chart class
This class is used to read the blue pixels on the image considering an offset.

### The logAxis class
This class is used to read the y-axis and converting the data into a coordinate-log-map considering an offset.

### The dateAxis class
This class is used to read the x-axis and converting the data into a coordinate-date-map considering an offset.