From a4ae228522a8511a7c6a8516948d9ccd3d61f577 Mon Sep 17 00:00:00 2001 From: barriery Date: Fri, 21 Aug 2020 09:04:20 +0000 Subject: [PATCH] update ocr demo --- python/examples/pipeline/ocr/hybrid_service_pipeline_server.py | 2 +- python/examples/pipeline/ocr/local_service_pipeline_server.py | 2 +- python/examples/pipeline/ocr/pipeline_http_client.py | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/python/examples/pipeline/ocr/hybrid_service_pipeline_server.py b/python/examples/pipeline/ocr/hybrid_service_pipeline_server.py index c19ec486..241230c4 100644 --- a/python/examples/pipeline/ocr/hybrid_service_pipeline_server.py +++ b/python/examples/pipeline/ocr/hybrid_service_pipeline_server.py @@ -131,6 +131,6 @@ response_op = ResponseOp(input_ops=[rec_op]) server = PipelineServer() server.set_response_op(response_op) -server.start_local_rpc_service() # add this line server.prepare_server('config.yml') +server.start_local_rpc_service() # add this line server.run_server() diff --git a/python/examples/pipeline/ocr/local_service_pipeline_server.py b/python/examples/pipeline/ocr/local_service_pipeline_server.py index 23a5bb4c..c3dd115d 100644 --- a/python/examples/pipeline/ocr/local_service_pipeline_server.py +++ b/python/examples/pipeline/ocr/local_service_pipeline_server.py @@ -130,6 +130,6 @@ response_op = ResponseOp(input_ops=[rec_op]) server = PipelineServer() server.set_response_op(response_op) -server.start_local_rpc_service() # add this line server.prepare_server('config.yml') +server.start_local_rpc_service() # add this line server.run_server() diff --git a/python/examples/pipeline/ocr/pipeline_http_client.py b/python/examples/pipeline/ocr/pipeline_http_client.py index 6cbef6a6..7963f54b 100644 --- a/python/examples/pipeline/ocr/pipeline_http_client.py +++ b/python/examples/pipeline/ocr/pipeline_http_client.py @@ -18,9 +18,6 @@ import json import cv2 import base64 import os -import time -import util -import multiprocessing def cv2_to_base64(image): -- GitLab