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
- Host: GitHub
- URL: https://github.com/umkl/chart-reader
- Owner: umkl
- Created: 2021-11-22T09:47:16.000Z (almost 4 years ago)
- Default Branch: final-v1-fix
- Last Pushed: 2022-06-20T15:57:01.000Z (over 3 years ago)
- Last Synced: 2025-01-28T21:36:14.445Z (9 months ago)
- Topics: charts, opencv-python, python3, sympy
- Language: Python
- Homepage: https://chartreader.notion.site/ChartReader-12e21e9726e14f94b31831147121da15?pvs=4
- Size: 2.83 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChartReader using OpenCV-Python
## Requirements
* Python
* OpenCV
* Pytesseract
* NumpyOn 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.