REST API wrapper for the processor#884
Closed
tdoan2010 wants to merge 62 commits intoOCR-D:masterfrom
tdoan2010:web-api
Closed
REST API wrapper for the processor#884tdoan2010 wants to merge 62 commits intoOCR-D:masterfrom tdoan2010:web-api
tdoan2010 wants to merge 62 commits intoOCR-D:masterfrom
tdoan2010:web-api
Conversation
…s started from bash or Python.
…t group check after the execution.
kba
reviewed
Aug 4, 2022
| path: str | ||
| description: Optional[str] = None | ||
| input_file_grps: List[str] | ||
| output_file_grps: Optional[List[str]] |
Member
There was a problem hiding this comment.
Why is output_file_grp optional but input_file_grps is not?
Contributor
Author
There was a problem hiding this comment.
Is there a case when a processor can run without input file groups?
# Conflicts: # ocrd/ocrd/processor/base.py
…ests accordingly.
Contributor
|
Hi, I am/was not able to call a processing server running for ocrd-olena-binarize (a bashlib processor). I think it is because of a bug in the processing server in helpers.py in function |
Contributor
Author
|
@joschrew thank you for your comment. I pushed the fix as you suggested. |
Merged
Merged
This was referenced Mar 15, 2023
This was referenced Mar 28, 2023
This was referenced Mar 29, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request provides the REST API wrapper for the processor. Instead of "one-shot mode", the processor now can be started as a server. There are 2 ways to start the processor:
1. Use processor name. This is the recommended way to start the Pythonic processor as a server.
2. Use
ocrdtool. This approach is for non-Python processor.Options
processor-name: executable name of the processor--address: it has 3 parts, separated by colon,IP:PORT:MONGO_URL, whereIP: the IP address that the server should listen on.PORT: the port that the server should listen on.MONGO_URL: the full connection string to a running Mongo database instance.