@@ -72,8 +72,14 @@ class DecoderFacadeWrapper
7272 return get ().decodeRawBase64ToJson (base64, origin);
7373 }
7474
75- std::vector<std::pair<std::string, std::string>> decodeFiles (std::string const &path)
75+ std::vector<std::pair<std::string, std::string>> decodeFiles (
76+ std::string const &path,
77+ int const rotationDegree,
78+ unsigned int const scalePercent,
79+ std::string const &splittingMode,
80+ unsigned int const flippingMode)
7681 {
82+ auto options = dip::PreProcessorOptions{rotationDegree, scalePercent, splittingMode, flippingMode};
7783 return get ().decodeImageFilesToJson (path);
7884 }
7985};
@@ -115,5 +121,9 @@ NB_MODULE(ticket_decoder, m)
115121 " Decode base64-encoded raw barcode data into structured json" )
116122 .def (" decode_files" , &DecoderFacadeWrapper::decodeFiles,
117123 " path" _a,
124+ " rotationDegree" _a = dip::PreProcessorOptions::DEFAULT .rotationDegree ,
125+ " scalePercent" _a = dip::PreProcessorOptions::DEFAULT .scalePercent ,
126+ " splittingMode" _a = dip::PreProcessorOptions::DEFAULT .splittingMode ,
127+ " flippingMode" _a = dip::PreProcessorOptions::DEFAULT .flippingMode ,
118128 " Decode Aztec-Code and containing raw data from image/PDF file or files into structured json" );
119129}
0 commit comments