FOSSredder 0.5.0
Loading...
Searching...
No Matches
DocumentImageProcessingRequest.h
Go to the documentation of this file.
1
5#pragma once
6
8
9#include <atomic>
10#include <cstdint>
11#include <filesystem>
12#include <memory>
13#include <string>
14#include <vector>
15
17
19 std::filesystem::path imagePath;
21 std::shared_ptr<std::atomic<bool>> cancelFlag;
22};
23
25 std::filesystem::path imagePath;
26 std::vector<uint8_t> imageBytes;
27 std::filesystem::path outputDir;
28 std::string uniqIdPrefix;
29 std::string filePrefix;
30 std::vector<Rect> textElements;
32 std::string tesseractTsv;
33 bool usePoppler = true;
34 bool useTesseract = false;
35 bool useMorphology = true;
36 std::shared_ptr<std::atomic<bool>> cancelFlag;
37};
38
40 std::filesystem::path imagePath;
41 std::vector<uint8_t> imageBytes;
42 std::filesystem::path outputDir;
43 std::string uniqIdPrefix;
44 std::string filePrefix;
46 std::shared_ptr<std::atomic<bool>> cancelFlag;
47};
48
50 std::filesystem::path imagePath;
51 std::vector<uint8_t> imageBytes;
52 std::filesystem::path outputDir;
53 std::string uniqIdPrefix;
54 std::string filePrefix;
57 int jpegQuality = 92;
58 std::shared_ptr<std::atomic<bool>> cancelFlag;
59};
60
61} // namespace core::ports::document_image_processing
Shared geometry and table types for document image processing ports.
enum core::ports::document_image_processing::CropRequest::OutputFormat outputFormat
enum core::ports::document_image_processing::DenoiseRequest::Method method
enum core::ports::document_image_processing::DetectRequest::DetectKind kind
enum core::ports::document_image_processing::MaskRequest::Mode mode