From a350bea29cfa44133e0b5b43422ed359ec91150e Mon Sep 17 00:00:00 2001 From: dyning Date: Sat, 18 Jul 2020 11:18:51 +0800 Subject: [PATCH] fix codestyle --- python/examples/ocr/ocr_web_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/examples/ocr/ocr_web_client.py b/python/examples/ocr/ocr_web_client.py index 6ae347a0..3d25e288 100644 --- a/python/examples/ocr/ocr_web_client.py +++ b/python/examples/ocr/ocr_web_client.py @@ -20,11 +20,13 @@ import base64 import os, sys import time + def cv2_to_base64(image): #data = cv2.imencode('.jpg', image)[1] return base64.b64encode(image).decode( 'utf8') #data.tostring()).decode('utf8') + headers = {"Content-type": "application/json"} url = "http://127.0.0.1:9292/ocr/prediction" test_img_dir = "imgs/" -- GitLab