Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to read many images and how to use with python #12

Closed
chuan298 opened this issue Sep 21, 2020 · 2 comments
Closed

How to read many images and how to use with python #12

chuan298 opened this issue Sep 21, 2020 · 2 comments

Comments

@chuan298
Copy link

No description provided.

@mauvilsa
Copy link
Owner

The tool only supports processing one image per call. If you want to process many images just create a loop in a shell script. If you need more efficiency you could parallelize for example using GNU parallel.

The tool itself is a single command line tool, not a library or including a python wrapper. You could call from python the tool for example using popen. Alternatively there is kind of a successor to imgtxtenh which is a library and has a python wrapper. However, there are a few differences with respect to imgtxtenh, it is not well documented and it is not available to install from pypi. So you need to build it yourself. You can find the source code at https://github.com/omni-us/pagexml/tree/master/py-textfeat and the automatically generated API documentation at https://omni-us.github.io/pagexml/py-textfeat/.

@chuan298
Copy link
Author

thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants