|
@@ -8,7 +8,11 @@ url = 'http://192.168.199.107:18099'
|
|
|
def send_request(image_path):
|
|
|
with open(image_path, 'rb') as f:
|
|
|
img_str: str = base64.encodebytes(f.read()).decode('utf-8')
|
|
|
- r = requests.post(f'{url}/ocr_system/table', json={'image': img_str, 'det': 'conv'})
|
|
|
+ payload = {'image': img_str, 'det': 'conv'}
|
|
|
+ print(payload)
|
|
|
+
|
|
|
+ r = requests.post(f'{url}/ocr_system/table', json=payload)
|
|
|
+
|
|
|
print(r.json())
|
|
|
return r.json()
|
|
|
|