ELCARO, a forecast app for crypto, forex and stock traders, had a forecast that existed only as a line on a charting platform. The platform had no export. Without that line turned into data, the app had nothing to show and nothing to send alerts about.
The obvious idea in 2026 is to screenshot each chart and ask a vision model to read it. We estimated that route for about 280,000 charts and decided against it. Instead we built a recognition service with classic computer vision and OCR that runs on its own server. This article explains the reasoning and the parts of the design that matter if you face a similar problem. ELCARO provides educational tools, not financial advice.
The problem: data that only exists as pixels
The forecast was a curve with growth and decline phases, drawn for every asset and timeframe. The app needed the dates of each phase turn, as rows in a database, for 1,432 asset and timeframe pairs, refreshed daily.
Copying that by hand was out of the question. And every date had to be right, because forecasts, alerts and the AI explanations in the app are all built on this data. A wrong date can send a user an alert about a turn that did not happen.
So the requirements were:
- read thousands of charts every day without a person in the loop;
- produce exact dates, not approximate ones;
- check every row before it counts, and restore missed days;
- run at a cost that does not grow faster than the product.
Why a vision model was the wrong tool here
Cost at volume
Vision models bill images as input tokens, roughly in proportion to their pixel area. A chart detailed enough to read dates from is a large image. Add the instructions and the answer for each chart, and multiply by about 280,000 charts. Our estimate showed that running this through a top vision model would cost far more in tokens than running our own service on its own server. And the token bill grows in a straight line with every new asset or timeframe.
Precision
The job is to find the exact x-coordinate where a curve turns and map it to a date on the axis. Vision models describe images well. They are much less reliable at reporting exact pixel positions, and a turn misplaced by a few pixels on a long timeframe can shift the date by days. A model also answers confidently when it is wrong, so you still need a separate check for every row.
Repeatability
Run the same chart through the same model twice and you can get two slightly different answers. For a data pipeline that feeds alerts, the same input has to give the same output, so that a change in the data means a change on the chart.
Dependencies
A pipeline built on someone else’s model inherits their rate limits, their outages and their model updates. A model version change can quietly change the output format or accuracy across the whole history.
Vision models handle plenty of image tasks well. This one is narrow, high-volume and needs precision on a fixed chart layout, and that combination works against them.
What we built instead
The service runs on Python, OpenCV, Tesseract OCR, Playwright, FastAPI, n8n, PostgreSQL and Docker, on its own server.
A pipeline like this usually splits the work into narrow steps. A headless browser opens each chart and captures the image. Computer vision separates the line you need from the rest of the chart and finds where it turns. OCR reads the dates printed on the axis. A queue behind a small API runs the jobs in order and reports their status, a scheduler creates jobs for every asset and timeframe, and a database keeps verified rows and the history.
When the chart layout is fixed, you know where the axis sits, what colour the line is and how the dates are printed. A general vision model has to work all of that out again on every image. Targeted code gets it from the layout once.
Validation is most of the work
Recognising a curve is the easy half. The hard half is knowing when the recognition is wrong.
Each row is checked before it counts, and missed days are restored. In practice that kind of check looks at whether dates follow in order, whether the interval between them matches the timeframe, and whether a value repeats where it should not. When OCR misreads a digit, the surrounding dates and the known spacing of the axis usually show it. A chart that fails to load or fails a check should be processed again, never written as a guess.
The result is 8,000+ verified rows a day without manual checks, and 1.78M rows of forecast history. Forecasts for every asset and timeframe arrive in the app daily without a person in the loop.
Memory: the cost nobody estimates
Browsers, images and OCR all hold memory, and a long-running service that processes thousands of images a day will find every leak.
After our optimisation, the service runs on about eight times less server memory. For a self-hosted pipeline, memory decides what size of server you need and how many charts you can process in parallel. It matters as much as the choice between a model and your own code, and it rarely appears in the first estimate.
From workaround to reference
A chart parser is a workaround. It exists because the data had no export. The better long-term answer is to compute the forecast directly, and ELCARO is building its own forecast engine.
The parser now serves as the reference that the new engine is checked against. Because it has produced verified rows for every asset and timeframe for a long time, it gives the team a large, consistent history to compare against.
When a vision model is the right choice
Use a vision model when:
- volume is low, or the task runs once;
- layouts vary a lot and you cannot write rules for each one;
- you need a description or a classification rather than exact coordinates;
- a person reviews the output anyway.
Build your own recognition when:
- the layout is fixed or comes from a small set of templates;
- you need exact values and the same answer every time;
- volume is high and growing;
- the output feeds automated decisions such as alerts.
A mixed approach also works: classic recognition for the bulk, and a vision model only for the few charts that fail validation, with a person checking those results.
Checklist before you parse chart images
- You have confirmed there is no export, API or data feed that gives the same values.
- You have counted the charts per day and per month, including future assets and timeframes.
- You have estimated token cost for a vision model at that volume, with instructions and output included.
- You know the required precision: exact dates and values, or an approximate reading.
- The chart layout is stable enough for rules, or you know how it changes.
- Every row goes through validation before it reaches users.
- Failed charts are retried and missed days are restored, never filled with guesses.
- Memory use of the service is measured over days, not minutes.
- History is stored, so a future replacement can be checked against it.
We built this service for ELCARO. See AI integration and fintech app development for how we work, and the chart parser case study for the published results.
FAQ
Can a vision model read data from chart images?
Yes, and for small volumes or varied layouts it is often the fastest route. At hundreds of thousands of charts with a fixed layout, it would cost far more in tokens than a service built on OpenCV and OCR, and it is less reliable at exact pixel positions.
How do you know the parsed data is correct?
Every row is validated before it counts: dates have to follow in order and match the timeframe, and missed days are restored. The service produces 8,000+ verified rows a day without manual checks.
What tools did you use?
Python, OpenCV, Tesseract OCR, Playwright, FastAPI, n8n, PostgreSQL and Docker. The service runs on its own server.
Is a chart parser a long-term solution?
It is a bridge. It made the product possible when the data had no export. ELCARO is now building its own forecast engine, and the parser serves as the reference that the engine is checked against.
What would you like to do next?
Discuss a project
Tell us about the task. Within one working day we reply with questions or a first view on scope and cost.
Ask a question
A short question about your app, website or idea. An engineer replies by email.
Get new articles
New articles and case studies by email, no more than once a month. Unsubscribe at any time.