We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TrWebOCR/backend/webInterface/tr_run.py 因为是其他语言调用接口 如果通过url放 img_b64 太大,造成不返回结果,修改成从post参数中放图片数据可以解决这个问题!之前改过一次是成功,后面在修改就不显示网页了,估计是哪里报错 了 但是检查修改的代码并没有问题 修改前:
img_up = self.request.files.get('file', None) img_b64 = self.get_argument('img', None) compress_size = self.get_argument('compress', None) is_draw = self.get_argument("is_draw", None)`
None)
修改后:img_up = self.request.files.get('file', None) img_b64 = self.get_argument('img', None) compress_size = self.get_argument('compress', None) is_draw = self.get_argument("is_draw", None)
修改后:img_up
处理图片数据
if img_b64 is None: post_data = json.loads(self.request.body.decode('utf8')) img_b64 = post_data.get('img', None) compress_size = post_data.get('compress', None) is_draw = post_data.get('is_draw', None)
The text was updated successfully, but these errors were encountered:
屏蔽修改的代码又变的正常
Sorry, something went wrong.
还有个问题,段错误 (核心已转储),post json传参之后,图片过大会报这个好像.
No branches or pull requests
TrWebOCR/backend/webInterface/tr_run.py 因为是其他语言调用接口 如果通过url放 img_b64 太大,造成不返回结果,修改成从post参数中放图片数据可以解决这个问题!之前改过一次是成功,后面在修改就不显示网页了,估计是哪里报错 了 但是检查修改的代码并没有问题
修改前:
img_up = self.request.files.get('file',
None)
img_b64 = self.get_argument('img', None)
compress_size = self.get_argument('compress',
None)
is_draw = self.get_argument("is_draw", None)`
修改后:img_up
= self.request.files.get('file', None)img_b64 = self.get_argument('img', None)
compress_size = self.get_argument('compress', None)
is_draw = self.get_argument("is_draw", None)
处理图片数据
if img_b64 is None:
post_data = json.loads(self.request.body.decode('utf8'))
img_b64 = post_data.get('img', None)
compress_size = post_data.get('compress', None)
is_draw = post_data.get('is_draw', None)
The text was updated successfully, but these errors were encountered: