Skip to content

Commit

Permalink
refactor: align with other prs
Browse files Browse the repository at this point in the history
  • Loading branch information
chmjkb committed Dec 16, 2024
1 parent 18f63bb commit fd86938
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ios/RnExecutorch/ObjectDetection.mm
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ - (void)forward:(NSString *)input
resolve:(RCTPromiseResolveBlock)resolve
reject:(RCTPromiseRejectBlock)reject {
@try {
NSURL *url = [NSURL URLWithString:input];
NSData *data = [NSData dataWithContentsOfURL:url];
if (!data) {
reject(@"img_loading_error", [NSString stringWithFormat:@"%d", 0x65],
nil);
return;
}
cv::Mat image = [ImageProcessor readImage:input];
NSArray *result = [model runModel:image];
resolve(result);
Expand Down

0 comments on commit fd86938

Please sign in to comment.