Extrahera data ur ekonomisk rapport: Hur OCR tolkar tecken som saknar redundans
2025 (Swedish)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesis
Abstract [sv]
Denna rapport undersöker Tesseract-OCR och dess möjlighet att på ett mer effektivt vis tolka tecken som saknar redundans. De primära tecknen som denna rapport undersöker är siffror. Då Tesseract-OCR har ett underliggande lexikon av ord för varje språkmodell som kan hjälpa till vid identifikation av ord gör det att bokstäverna som tillsammans bildar ett ord har redundans. Den primära frågeställningen som arbetet försökt att besvara är Hur kan OCR hjälpa till att klassificera en balansräkning? För att besvara den frågan delades arbetet in i tre olika forskningsfrågor. Dessa frågor behandlar en redan tränad OCR-modells förmåga att bli bättre på att tolka tecken med hjälp av träning. Årsrapporter har varit det data-set som tillhandahållits och dessa har begränsats till att bara behandla balansräkningen. En jämförelse av två modeller varav en är den officiella Tesseract modellen och den andra är den lokalt tränade modellen. Den lokalt tränade modellen har tränats med hjälp av ett genererat data-set. Jämförelsen baseras på modellens förmåga att tolka tecknen siffror. En generell kod för att utvinna dessa siffror ur en balansräkning har också skrivits, i koden adderas siffrorna som tillsammans bildar en talföljd för att senare jämföras med delsummor som finns i balansräkningen. Resultatet av denna jämförelse visar att den officiella modellen som Tesseract har givit ut presterar bättre än den lokalt tränade modellen. Slutsatsen av arbetet visar dock att det återstår en del arbete innan dessa modeller kan börja användas i produktion med avseendet att tolka tecken som saknar redundans. Möjligheten finns dock att med hjälp av ett annat data-set för träning kunna träna en modell som presterar ett bättre resultat.
Abstract [en]
This report examines Tesseract-OCR and its potential to be more efficient in interpreting characters that lack redundancy. The primary characters that this report examine are numbers. Since Tesseract-OCR has an underlying dictionary of words for each language model that can help with word identification, this means that characters that together form a word have redundancy. The primary question that this work attempts to answer is How can OCR help classify a balance sheet? To answer this question, the work was divided into three different research questions. These questions address the ability of an already trained OCR model to become better at interpreting characters with the help of training. Annual reports have been the data set that has been given, and these have been limited to only processing the balance sheet in them. A comparison of two models, one is the official Tesseract model, and the other is the locally trained model has been conducted. The locally trained model has been trained using a generated dataset. The comparison is based on the model’s ability to interpret the characters, numbers. A general code for extracting these numbers from a balance sheet has been written, in the code extracted numbers are added together to form a sequence, the sum of these sequences are then compared with subtotals found in the balance sheet. The result of this comparison shows that the official model released by Tesseract performs better than the locally trained model. The conclusion of this work shows, however, that there is still some work to be done before these models can be used in production with intent to interpret characters that lack redundancy. However, it might still be possible to train a model that performs better using a different training data set.
Place, publisher, year, edition, pages
2025. , p. 51
Keywords [en]
Tesseract, optical character recognition, OCR, numbers, machine learning
Keywords [sv]
Tesseract, teckenigenkänning, OCR, siffror, maskininlärning
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:miun:diva-55445Local ID: DT-V25-G3-001OAI: oai:DiVA.org:miun-55445DiVA, id: diva2:1994562
Subject / course
Computer Engineering DT1
Educational program
Computer Science TDATG 180 higher education credits
Supervisors
Examiners
2025-09-032025-09-032025-09-25Bibliographically approved