From 6c185882db3b87e68e5c607da418b4a65f41d6e6 Mon Sep 17 00:00:00 2001 From: Norbert Klockiewicz Date: Tue, 17 Dec 2024 10:48:39 +0100 Subject: [PATCH] fix: path of result image was missing file:// prefix(ios) --- ios/RnExecutorch/utils/ImageProcessor.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RnExecutorch/utils/ImageProcessor.mm b/ios/RnExecutorch/utils/ImageProcessor.mm index c8595e8..feab17f 100644 --- a/ios/RnExecutorch/utils/ImageProcessor.mm +++ b/ios/RnExecutorch/utils/ImageProcessor.mm @@ -54,7 +54,7 @@ + (NSString *)saveToTempFile:(const cv::Mat&)image { userInfo:nil]; } - return outputPath; + return [NSString stringWithFormat:@"file://%@", outputPath]; } + (cv::Mat)readImage:(NSString *)source {