Translate images into text, convert image text to text

Imgclip runs in terminal on Mac, Windows and Linux. Simply take an argument to the image file with the language, then return the copied text to the clipboard.

It is quite easy to read the text on an image and retype the content itself. But automatically taking the text from a photo is a bit more difficult, and fortunately, imgclip is a simple solution to do this.

This command line tool runs in terminal on Mac, Windows and Linux. Simply take an argument to the image file with the language, then return the copied text to the clipboard.

You can install the entire library easily via npm. This library is only a few KB in size and comes with a JS file that you can browse on GitHub.

Imgclip uses Tesseract.js library to automatically process images and pull documents via OCR. Tesseract.js is one of the most powerful OCR libraries to date and it is open source just like imgclip.

This tool impresses most users with its quality and speed. Imgclip really does a great job of 'pulling' the text out of the image and is considered to be one of the easiest tools to do this.

Translate images into text, convert image text to text Picture 1Translate images into text, convert image text to text Picture 1

The imgclip command must be run directly in the terminal, followed by the relative path to the image. You can also add four options at the end to customize the output.

  1. -h , --help: Export information about use
  2. -V, --version: Export the version number
  3. -l, --lang: Language output of text in images
  4. -p, --print: Print text in photos (instead of copying to clipboard)

By the time of writing, Tesseract supports 65 languages. The code that you attach to the --lang tag must be the code used in those Tesseract files.

For example, -l eng will search English text in images, and -l jpn will search for Japanese text. You can even run -l jpn_vert to search for Japanese text vertically.

Because imgclip relies heavily on Tesseract, you basically have the power of the entire library.

To get started, visit the GitHub page and download a local copy or install imgclip into a specific directory via npm. You can then run the tool in the terminal as an application to analyze any image you want.

Hope you are succesful.

4 ★ | 7 Vote