Ask Your Question
0

How does OCR in Writer work?

asked 2019-11-23 21:28:41 +0200

Steve S. gravatar image

I have Libre Office 6.0.6.2, which I use on a MacBook Pro with OSX 10.12.6. The Writer has a menu option at the top of the screen labled "OCR". When I click on it, I get "Upload Image". When I click on "Upload Image", I get nothing (blank). Am I supposed to be able to process an image with Optical Character Recognition and convert it into a text or PDF file? Why isn't it working?

Thanks, Steve

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
1

answered 2019-11-23 21:42:54 +0200

Ratslinger gravatar image

updated 2019-11-24 04:29:04 +0200

Hello,

LO has no OCR capabilities. See also answer in this post:

https://ask.libreoffice.org/en/questi...

It is probable you have an extension installed. Check your extensions. Possibly this one:

https://extensions.libreoffice.org/ex...

which appears to be a non-stable version nor updated in some time.

edit flag offensive delete link more
0

answered 2019-11-25 19:10:09 +0200

Steve S. gravatar image

Yes, you're right. Very embarrassing that I didn't see that. I don't remember installing it. Sorry and thank you.

edit flag offensive delete link more

Comments

Please edit your question or add a comment to other answer.

m.a.riosv gravatar imagem.a.riosv ( 2019-11-26 22:04:09 +0200 )edit
0

answered 2019-11-26 06:29:34 +0200

mauricio gravatar image

In Mac, it's possible install Tesseract, Pillow and Python Tesseract, and used next macro:

import uno
from PIL import Image
import pytesseract

def main():    
    path_image = '/home/mau/test.png'
    data = pytesseract.image_to_string(Image.open(path_image))

    doc = XSCRIPTCONTEXT.getDocument()
    doc.Text.String = data
    return

With this macro I get:

image description

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-11-23 21:28:41 +0200

Seen: 1,215 times

Last updated: Nov 26 '19