| 1151 | } |
| 1152 | |
| 1153 | const wchar_t *OP_CALL OpExtractWordRectsEx(op_handle handle, int x1, int y1, int x2, int y2, const wchar_t *color, |
| 1154 | double sim, int min_word_w, int min_word_h, int padding) { |
| 1155 | return call_string(handle, [&](op::Op &op, std::wstring &ret) { |
| 1156 | op.ExtractWordRectsEx(x1, y1, x2, y2, safe_text(color), sim, min_word_w, min_word_h, padding, ret); |
| 1157 | }); |
| 1158 | } |
| 1159 | |
| 1160 | const wchar_t *OP_CALL OpFetchWords(op_handle handle, int x1, int y1, int x2, int y2, const wchar_t *color, |
| 1161 | double sim, const wchar_t *words, int min_word_h) { |