Skip to content

sbneto/tesseract4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tesseract4

Build Status

Usage

Run the container with the following command:

docker run --rm -d -p "8000:8000" sbneto/tesseract4:por

And connect to the container running python XMLRPC server to run remote calls.

from xmlrpc.client import ServerProxy

# Connect to the RPC server
proxy = ServerProxy("http://localhost:8000/", use_builtin_types=True)

# Read file data as bytes
with open('test.pdf', 'rb') as f:
    data = f.read()
    
# Perform the remote call
text = str(proxy.tesseract(data), 'utf-8')

# Check the results =]
print(text)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published