Clean scanned documents automatically

In our times we constantly digitize and scan the documentation, the hardware for these purposes has improved, in the same way, there is a large amount of software available (both for computers and mobile) to improve document scanning, we even talked to you here a long time ago at Desde LinuxHow to scan documents and apply OCR in Linux.

As there is specialized hardware and software, there are also methods to improve those scanned documents that are not in their optimal quality, previously he used this method that he taught us Christopher castro in how  Clean scanned documents with Gimp, but now I use a script called notesshrink, allowing me Clean scanned documents automatically.

What is Noteshrink?

Noteshrink is an open source application, written in python by Matt zucker and that allows you to convert handwritten notes to better quality and into pdf, in addition this tool allows us to clean scanned documents easily and quickly.

The results obtained with Noteshrink can be seen in the following images:

clean-scan-documents

clean picture noteshrink

results_noteshrink

Noteshrink Main Features

The most notable features of Noteshrink are:

  • Allows you to clean scanned documents.
  • Convert scanned document images to high quality pdf.
  • Reduce the size of images.
  • You can convert your images from the console.
  • It is open source.
  • It is written in phyton.
  • It is fast and efficient.

How to install Noteshrink

Installing Noteshrink is easy and fast for them we must meet certain requirements:

Noteshrink requirements

  • python-2
  • Numpy
  • scipie
  • PIL or Pillow

Installing Noteshrink

I am going to give the instructions to install it in Linux Mint, for other distributions the steps should not vary much.

Let's install updates from our team

sudo apt-get update sudo apt-get upgrade
Install NumPy and SciPy

We must install the following packages

sudo apt-get install python-numpy python-scipy
Install Pillow
sudo apt-get install python-dev python-setuptools

Install Git

sudo apt-get install git

Clone the Noteshrink repository

sudo git clone https://github.com/mzucker/noteshrink.git

How to use Noteshrink

Use Noteshrink It is quite simple, we go to the folder where we have cloned the script and then we execute it by sending the parameter of the image or images that we need to convert, it will export each of the treated images in addition to creating a pdf grouping them.

./noteshrink.py IMAGE1 [IMAGE2 ...]

 Conclusions about Noteshrink

Noteshrink From today it is one of the applications that go to my list of essentials, it allows me to improve the quality of the documents that are sent to me daily, it does it quickly and with a single command, in addition, its installation is simple and the result of The resulting images are of very good quality.

What do you think about Noteshrink?


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Alfonso said

    Hi Luigys Toro, when I put this «sudo git clone https://github.com/mzucker/noteshrink.git«, I get this« sudo: git: command not found ». Is something missing from that command line?
    Thanks and regards.

    1.    Luigys toro said

      You don't have git installed, to do this, open a terminal and type:
      "Sudo apt-get install git" without the quotes

      After I install it you try again «git clone https://github.com/mzucker/noteshrink.git»Without the quotes

      1.    Alfonso said

        Thanks Luigys Toro, I already did.
        Thanks User

  2.   leolopez89 said

    Good post but why clone with sudo? It is not necessary

  3.   User said

    Do you have the git program installed on your system? To install it, you must execute the following:
    sudo apt-get install git

    And then it will work for you.
    Greetings.