MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / ocr

Function ocr

backup/sysxc.py:74–79  ·  view source on GitHub ↗

使用自有ocr识别滑块坐标

(tg,bg)

Source from the content-addressed store, hash-verified

72
73
74def ocr(tg,bg):
75 """使用自有ocr识别滑块坐标"""
76 url = 'http://103.45.185.224:9898/slide/match/b64/json'
77 jsonstr = json.dumps({'target_img': tg, 'bg_img': bg})
78 response = requests.post(url, data=base64.b64encode(jsonstr.encode()).decode())
79 return response.json()
80
81
82'''

Callers 1

mainFunction · 0.70

Calls 1

postMethod · 0.45

Tested by

no test coverage detected