From 19d81a35e41c779cad8658edf1987db96b9ac871 Mon Sep 17 00:00:00 2001 From: wuzekai <3025054974@qq.com> Date: Tue, 8 Jul 2025 05:10:08 +0000 Subject: [PATCH] Update instruction.txt --- instruction.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/instruction.txt b/instruction.txt index c42d6c4..81bbdcb 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 -- 2.22.0