23 lines
459 B
C++
23 lines
459 B
C++
#pragma once
|
|||
|
|
|
||
|
|
#include "pdfengine/document/raw_ocr_document.hpp"
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
namespace pdfengine::ocr {
|
||
|
|
|
||
|
|
class OCRImporter {
|
||
|
|
public:
|
||
|
|
OCRImporter() = default;
|
||
|
|
|
||
|
|
pdfengine::document::RawOCRPage importOCRPage(
|
||
|
|
int pageIndex,
|
||
|
|
double imgWidth,
|
||
|
|
double imgHeight,
|
||
|
|
double pdfWidth,
|
||
|
|
double pdfHeight,
|
||
|
|
const std::vector<pdfengine::document::RawOCRLine>& lines
|
||
|
|
) const;
|
||
|
|
};
|
||
|
|
|
||
|
|
} // namespace pdfengine::ocr
|