19 lines
416 B
C++
19 lines
416 B
C++
#pragma once
|
|
|
|
#include <pdfengine/ocr_types.hpp>
|
|
#include <pdfengine/image_object.hpp>
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace pdfengine {
|
|
|
|
class IOCREngine {
|
|
public:
|
|
virtual ~IOCREngine() = default;
|
|
|
|
[[nodiscard]] virtual bool isAvailable() const noexcept = 0;
|
|
[[nodiscard]] virtual OCRPage processImage(const ImageObject& image, const std::string& lang = "en") = 0;
|
|
};
|
|
|
|
} // namespace pdfengine
|