Skip to content

Commit

Permalink
Refactor OCRFrameProcessorPlugin initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaelsousa committed Feb 25, 2024
1 parent 50ecd0c commit 8be34e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ios/VisionCameraOcr.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ @implementation OCRFrameProcessorPlugin (FrameProcessorPluginLoader)

+ (void)load
{
[FrameProcessorPluginRegistry addFrameProcessorPlugin:@"scanOCR" withInitializer:^FrameProcessorPlugin * _Nonnull(NSDictionary * _Nullable options) {
return [[OCRFrameProcessorPlugin alloc] initWithOptions:options];
// vision @3.9.0
[FrameProcessorPluginRegistry addFrameProcessorPlugin:@"scanOCR" withInitializer:^FrameProcessorPlugin * _Nonnull(VisionCameraProxyHolder * _Nonnull proxy, NSDictionary * _Nullable options) {
return [[OCRFrameProcessorPlugin alloc] initWithProxy:proxy withOptions:options];
}];
}

Expand Down

0 comments on commit 8be34e9

Please sign in to comment.