Files
pdf/engine/include/pdfengine/ocr_engine.hpp
T
2026-08-01 16:19:11 +05:30

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