23 lines
682 B
C
Raw Normal View History

2024-01-08 23:37:00 +08:00
#pragma once
2024-04-02 15:36:52 +08:00
struct ocrres
{
wchar_t **lines;
int *xs;
int *ys;
int *xs2;
int *ys2;
2024-01-08 23:37:00 +08:00
};
2024-04-02 15:36:52 +08:00
extern "C"
{
__declspec(dllexport) void winrt_capture_window(wchar_t *savepath, HWND hwnd);
2024-01-08 23:37:00 +08:00
2024-04-02 15:36:52 +08:00
__declspec(dllexport) bool check_language_valid(wchar_t *);
__declspec(dllexport) wchar_t **getlanguagelist(int *);
2024-05-16 19:55:36 +08:00
__declspec(dllexport) ocrres OCR(void* ptr, size_t size, wchar_t *lang, wchar_t *, int *);
2024-01-08 23:37:00 +08:00
2024-04-02 15:36:52 +08:00
__declspec(dllexport) void freewstringlist(wchar_t **, int);
__declspec(dllexport) void freeocrres(ocrres, int);
2024-01-08 23:37:00 +08:00
}
2024-04-02 15:36:52 +08:00
char **vecstr2c(std::vector<std::string> &vs);
int *vecint2c(std::vector<int> &vs);
wchar_t **vecwstr2c(std::vector<std::wstring> &vs);