kheerand / joplin_file_upload

Script for uploading files to Joplin in a searchable way.
Apache License 2.0
1 stars 0 forks source link

Extract text from image #2

Open kheerand opened 3 years ago

kheerand commented 3 years ago

Find a way to extract the text from an image and insert it into the file.

This is going to be a little trickier as images are often included within notes that have other text in them. I need to find away to:

  1. extract the text from an image
  2. find a way to identify notes with images and then run them through this
  3. find a way to insert the text without it getting in the way of the main text within the note itself. (hint: using HTML comments)

Idea

Maybe I create a new note with the image and the text in the image and then search all notes that have that as a resource and insert links to those notes within the new note. That way I can search for the text in the image, and get linked to the note that has the image.

Kind of a kludgy workaround but might work.

kheerand commented 3 years ago

How to extract text from an image

https://www.cloudsavvyit.com/8151/how-to-convert-images-to-text-on-the-linux-command-line-with-ocr/