DCGM / pero_ocr_web

BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Fix routes /layout_analysis/get_image_result/<string:image_id> and /layout_analysis/get_result_preview/<string:image_id> #50

Closed kohuthonza closed 4 years ago

kohuthonza commented 4 years ago

get_image_by_id(image_id) returns NoneType when the image deleted flag is set to 1. Routes need to be fixed, so they work with deleted images.

kohuthonza commented 4 years ago

Generally we need to find every route that is dealing with image_id (getting image by image_id) and check that the image exists and is not deleted.

ikiss-fit commented 4 years ago

Fixed /layout_analysis/get_result_preview/