OCR-Form-Tools icon indicating copy to clipboard operation
OCR-Form-Tools copied to clipboard

better error message in our UI

Open xinase opened this issue 4 years ago • 0 comments

when sending the file to Layout for OCR results, FoTT needs to display clear error message to the user so that they know how to follow up.

Error Code Description
BadArgument Bad or unrecognizable request JSON or binary file.
InvalidImageURL Image URL is badly formatted.
FailedToDownloadImage Failed to download image from input URL.
InvalidImage The input data is not a valid image or password protected.
UnsupportedImageFormat Image format unsupported. Supported formats include JPEG, PNG, PDF and TIFF.
InvalidImageSize The input image is too large. It should not be larger than 20MB.
InvalidImageDimension The input image dimension is out of range. The minimum image dimension is 50 x 50 pixels and the maximum is 10000 x 10000 pixels. The maximum PDF dimension is 17 x 17 inches.

xinase avatar Dec 16 '20 18:12 xinase