A scanner, to find and crop documents from image
Code
|
Report Bug
|
Request Feature
Table of Contents
How often do we need to scan documents: once a week, five times a month, ten times a year? All options have one common characteristic - we need a physical scanner. Moreover, if we have nothing at our place, it can takes a lot of time to find one, go to that place and probably have to pay someone to scan our document. So in order to prevent all this i created an app where we can scan our document and get "cropped" version of it, like we printed it on a paper. And all for free :)
You need to have:
And next system envs:
- [ not necessary ] VCPKG_ROOT -
{ path/to/vcpkg/dir/in/repo }
- [ to run cmake commands ] PATH -
{ path/to/cmake/bin }
- [ important ] PATH -
{ path/to/msvc/compiler }
-
Create an empty directory wherever you want. It`s for repo cloning.
-
Clone the repo.
git clone https://github.com/Ptyg/Document-detector.git
-
Open directory with cloned project in console.
3.1 Type ...
cmake --list-presets
... to see all available presets. It is gonna looks like ...
"preset_name#1" - preset_display_name#1 "preset_name#2" - preset_display_name#2 "preset_name#3" - preset_display_name#3 ...
3.2 Choose a preset and type ...
cmake --preset preset_name#1 (or cmake --preset preset_name#2, etc)
3.3 Wait until project generation is done. It will locate at
./out/build/{ preset_name }
- After launch, you`ll see a window like this
- Choose an image with you document
- And click on
crop image
button
Now you can save the result or try to 'crop' another image.
If you have a suggestion that would make this better, please fork the repo and create a pull request.
- Fork the Project
- Create your Feature Branch (
git checkout -b { branch_name }
) - Commit your Changes (
git commit -m 'Add an amazing feature'
) - Push to the Branch (
git push origin { branch_name }
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Gtyp - [email protected]
Project Link: https://github.com/Ptyg/Document-detector