Skip to content

Latest commit

 

History

42 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages