在使用GetWords进行词组识别以后,可以用此接口进行识别各个词组的内容
| 1233 | } |
| 1234 | // 在使用GetWords进行词组识别以后,可以用此接口进行识别各个词组的内容 |
| 1235 | STDMETHODIMP 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), |
| 1245 | STDMETHODIMP OpAutomation::Ocr(LONG x1, LONG y1, LONG x2, LONG y2, BSTR color, DOUBLE sim, BSTR *ret_str) { |
no test coverage detected