C++/QT desktop program for parsing checks to xlsx/csv
Go to file
leca 88d849bee9 ensured building on ubuntu 18.04 2024-12-01 18:53:16 +03:00
.lupdate/translations added translation 2024-11-29 17:01:39 +03:00
check remove ignored pt.2 2024-11-22 23:26:42 +03:00
deploy remove ignored pt.2 2024-11-22 23:26:42 +03:00
exceptions handling incorrect captcha and check not found cases 2024-11-28 00:28:37 +03:00
goods remove ignored pt.2 2024-11-22 23:26:42 +03:00
image remove ignored pt.2 2024-11-22 23:26:42 +03:00
image_redactor implemented contrast slider 2024-11-25 04:07:56 +03:00
modules remove ignored pt.2 2024-11-22 23:26:42 +03:00
net completed requests to ofd.ru 2024-11-24 19:07:28 +03:00
output ensured building on ubuntu 18.04 2024-12-01 18:53:16 +03:00
parser ensured building on ubuntu 18.04 2024-12-01 18:53:16 +03:00
settings ensured building on ubuntu 18.04 2024-12-01 18:53:16 +03:00
translations ensured building on ubuntu 18.04 2024-12-01 18:53:16 +03:00
utils handling incorrect captcha and check not found cases 2024-11-28 00:28:37 +03:00
.gitignore added translation 2024-11-29 17:01:39 +03:00
CMakeLists.txt ensured building on ubuntu 18.04 2024-12-01 18:53:16 +03:00
CMakeLists.txt.bck added translation 2024-11-29 17:01:39 +03:00
LICENSE remove ignored pt.2 2024-11-22 23:26:42 +03:00
README.md ensured building on ubuntu 18.04 2024-12-01 18:53:16 +03:00
TODO requests to ofd 2024-11-27 01:46:36 +03:00
adjustpicturedialog.cpp ensured building on ubuntu 18.04 2024-12-01 18:53:16 +03:00
adjustpicturedialog.h implemented contrast slider 2024-11-25 04:07:56 +03:00
adjustpicturedialog.ui added translation 2024-11-29 17:01:39 +03:00
main.cpp ensured building on ubuntu 18.04 2024-12-01 18:53:16 +03:00
mainwindow.cpp translations 2024-12-01 15:01:55 +03:00
mainwindow.h cleanup 2024-11-28 00:29:49 +03:00
mainwindow.ui added translation 2024-11-29 17:01:39 +03:00
outputdialog.cpp added translation 2024-11-29 17:01:39 +03:00
outputdialog.h remove ignored pt.2 2024-11-22 23:26:42 +03:00
outputdialog.ui completed requests to ofd.ru 2024-11-24 19:07:28 +03:00
settingsdialog.cpp remove ignored pt.2 2024-11-22 23:26:42 +03:00
settingsdialog.h remove ignored pt.2 2024-11-22 23:26:42 +03:00
settingsdialog.ui completed requests to ofd.ru 2024-11-24 19:07:28 +03:00
solvecaptchadialog.cpp translations 2024-12-01 15:01:55 +03:00
solvecaptchadialog.h cleanup 2024-11-28 00:29:49 +03:00
solvecaptchadialog.ui completed requests to ofd.ru 2024-11-24 19:07:28 +03:00

README.md

Checks parser

checks parser is a program that help parsing different checks to csv.

!!!CURRENTLY SUPPORTED ONLY RUSSIAN CHECKS!!! To know why, see this section

Usage

Input

Ways you can input a check to this programm:

  • Via image (it uses OCR(Optical Character Recognition) to parse check content. The picture of a check must be contrast and well-lined (text must be perpendicular to right and left borders of an image) enough in order to be parsed well.)
  • Via plaintext, copied from an E-Mail. Just copy&paste text from your email, pick a correct store type (autodetect is in my plans!) and parse.
  • Via a picture of a check. Be sure to make the image straight and sharp. OCR is not a magic wand :(
  • Via QrCode on check (OFD (ОФД, Оператор Фискальных Данных in Russian)).

Output

At the start of writing this program, I considered 3 or more output formats: csv, xlsx and ods. But throught the development I understood that most of modern table processor (i.e. electronic tables) can import csv much better than I'd be writing a shitty export module, adding more dependencies and shitty code to the codebase. So I decided that there's no need to use anything other than csv format.

To export, you need to specify an output file path and, if you wish, you can change order and/or rename columns, choose to print or not to print header (column names) and total.

Installing

Building

In general, you need to install following dependencies in order to build that app(I suppose you have installed all the build necessaries such as cmake, make, gcc, git, etc...):

  • tesseract (you also have to install appropriate for your needs language data)
  • opencv
  • zbar
  • curl
  • nlohmann-json
  • qt5
  • vtk

Please, do not hesitate to open an issue if you cannot build that. I will help and if you are building on a distro that is not listed there, we can append that list as soon as we will solve your problem!

Linux

Arch Linux

I recommend using aur helper (I use yay) to install dependencies. Or, if you're masochist, you can build all by yourself /shrug

#Install dependencies
yay -S sudo cmake git coreutils base-devel eigen qt5-base mbedtls gtkglext opencv opencv2 zbar nlohmann-json tesseract tesseract-data-rus vtk
#Clone and compile an app
git clone https://git.foxarmy.org/leca/checks-parser
cd checks-parser
mkdir build
cd build
cmake ..
make -j{nproc}
#If you wish to install that program system-wide, run
sudo make install
Debian

apt install -y qtbase5-dev openssl libmbedtls-dev tesseract-ocr tesseract-ocr-rus libopencv-dev libzbar-dev qttools5-dev nlohmann-json-dev libcurl4-openssl-dev libtesseract-dev TODO

Windows

Maybe

Mac OS

Probably not, I do not have nor desire or time. But if you can maintain that program on Mac, I'd be grateful! Please, contact me, if you can!

Precompiled binaries

I plan to make precompiled binaries for Linux and Windows. Maybe I will put it on AUR. I also think that I will be making an AppImage

Contribution

If you want to contribute to the project, you can do it by some of the following:

Checks from different countries

I live in Russia and only know how Russian state checks system works. If you live in another country and want to help me with adding support to checks from your country - feel free to contact me!

Issues and PRs

If you have found a bug, or want to suggest a feature - don't hesitate to open an issue / PR!

Tell friends

You can help me by distributing that program. If you know people that are in search of such program, please let them know about its existance!

Donate

XMR 45ZjyH5YWdRfKxLoKEBYaiHUTcP5Z8Gv64QQxmabbooPAa7KPBxZLmqft5ohKXn5VpHiVj1x9JKCcAcAjdu9jA8b5N8XqR7