diff --git a/instruction.txt b/instruction.txt index c42d6c4eaade2e4787fd562319362bbb893acc55..81bbdcb37bf85ae9db701b54a54964abf5663ab4 100644 --- a/instruction.txt +++ b/instruction.txt @@ -50,4 +50,10 @@ python app.py curl -X POST http://localhost:8019/ocr/process -F "file=@./test_img/1.jpg" curl -X GET http://localhost:8019/ocr/text/ curl -X GET http://localhost:8019/ocr/download/ --output output.jpg -curl -X DELETE http://localhost:8019/ocr/delete/ \ No newline at end of file +curl -X DELETE http://localhost:8019/ocr/delete/ + +#接口2的部署和调试指令 +export CUDA_VISIBLE_DEVICES=0 +hub serving start -c deploy/hubserving/ocr_system/config.json +python tools/test_hubserving.py --server_url http://localhost:8021/predict/ocr_system --image_dir ./test_img/1.jpg +curl -H "Content-Type:application/json" -X POST --data "{\"images\": [\"……\"]}" http://localhost:8021/predict/ocr_system