Open FanWan opened 1 month ago
我添加了api服务 https://github.com/Mini-Right/GOT-OCR2.0
cd GOT-OCR2.0/GOT-OCR-2.0-master python3 GOT/demo/run_ocr_serve.py
import requests def invoke(): url = "http://127.0.0.1:6006/inference" img_path = r"image_path" files = {'file': open(img_path, 'rb')} response = requests.post(url, files=files) print(response.text) if __name__ == '__main__': invoke()
我添加了api服务 https://github.com/Mini-Right/GOT-OCR2.0
服务启动
接口调用