修正图片矫正接口ip
This commit is contained in:
@@ -112,7 +112,7 @@ def request_dewarped_image(img_path):
|
|||||||
:param img_path: 待矫正图片路径
|
:param img_path: 待矫正图片路径
|
||||||
:return: 矫正后的图片路径
|
:return: 矫正后的图片路径
|
||||||
"""
|
"""
|
||||||
url = 'http://127.0.0.1:5007/dewarp'
|
url = 'http://dewarp_api:5007/dewarp'
|
||||||
response = requests.post(url, {'img_path': img_path})
|
response = requests.post(url, {'img_path': img_path})
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
return response.json()
|
return response.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user