Files
pdf/engine/include/pdfengine/ocr/image_cleaner.hpp
T

17 lines
331 B
C++
Raw Normal View History

2026-08-07 19:09:44 +05:30
#pragma once
#include <vector>
#include <cstdint>
namespace pdfengine::ocr {
class ImageCleaner {
public:
ImageCleaner() = default;
// Binarize or despackle raster pixel data if needed
std::vector<uint8_t> cleanImage(const std::vector<uint8_t>& bgra, int width, int height) const;
};
} // namespace pdfengine::ocr