18 lines
485 B
C++
18 lines
485 B
C++
#pragma once
|
|
#include "platform.h"
|
|
namespace ks
|
|
{
|
|
struct Pixels
|
|
{
|
|
UINT width{}, height{};
|
|
Bytes bgra;
|
|
};
|
|
Pixels decodeImage(const Clip &, UINT maxWidth = 0, UINT maxHeight = 0);
|
|
Format imageDib(const Pixels &);
|
|
std::wstring recognizeText(const Clip &);
|
|
std::wstring recognizeText(const Clip &, const Settings &);
|
|
std::filesystem::path tesseractExecutable(const Settings &);
|
|
void validateTesseract(const Settings &);
|
|
std::wstring ocrProfile(const Settings &);
|
|
} // namespace ks
|