33 static std::vector<std::filesystem::path>
cropImages(
const std::string& imagePath,
34 const std::vector<ports::Rect>& rects,
35 const std::filesystem::path& outputDir,
36 ports::CropRequest::OutputFormat fmt,
38 std::shared_ptr<core::ports::diagnostics::IDiagnostics> debugger =
nullptr,
39 const std::string& filePrefix =
"");
53 static std::vector<std::filesystem::path>
cropImages(
const cv::Mat& img,
54 const std::vector<ports::Rect>& rects,
55 const std::filesystem::path& outputDir,
56 ports::CropRequest::OutputFormat fmt,
58 std::vector<std::vector<uint8_t>>* outBytes =
nullptr,
59 std::shared_ptr<core::ports::diagnostics::IDiagnostics> debugger =
nullptr,
60 const std::string& filePrefix =
"");