MCPcopy Create free account
hub / github.com/WallBreaker2/op / GetWordResultStr

Method GetWordResultStr

libop/com/OpAutomation.cpp:1235–1242  ·  view source on GitHub ↗

在使用GetWords进行词组识别以后,可以用此接口进行识别各个词组的内容

Source from the content-addressed store, hash-verified

1233}
1234// 在使用GetWords进行词组识别以后,可以用此接口进行识别各个词组的内容
1235STDMETHODIMP OpAutomation::GetWordResultStr(BSTR result, LONG index, BSTR *ret_str) {
1236 if (!ret_str)
1237 return E_POINTER;
1238
1239 wstring s;
1240 obj.GetWordResultStr(result, index, s);
1241 return CopyOutBstr(ret_str, s);
1242}
1243
1244// 识别屏幕范围(x1,y1,x2,y2)内符合color_format的字符串,并且相似度为sim,sim取值范围(0.1-1.0),
1245STDMETHODIMP OpAutomation::Ocr(LONG x1, LONG y1, LONG x2, LONG y2, BSTR color, DOUBLE sim, BSTR *ret_str) {

Callers 1

OpGetWordResultStrFunction · 0.45

Calls 1

CopyOutBstrFunction · 0.85

Tested by

no test coverage detected