Accept numpy image in batch as base64 encoded string #187
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 PR allows
numpy
image entries to be sent as numpy arrays which have been pickled, and then the byte sequence encoded as base64. The previous numpy images only worked when the image was sent as the full body of the HTTP request, and thus could be processed as a byte stream.Type of change
How has this change been tested, please provide a testcase or example of how you tested the change?
Tested locally using a script and unit tests.
Any specific deployment considerations
n/a
Docs