68a716b506
* Use Frame.h * Add orientation * Determine buffer orientation * Replace plugins * fix calls * Update FRAME_PROCESSOR_CREATE_PLUGIN_IOS.mdx * Update FRAME_PROCESSOR_CREATE_PLUGIN_IOS.mdx * format * Update CameraPage.tsx * Update FRAME_PROCESSOR_CREATE_PLUGIN_IOS.mdx * Add links to docs * Use `.` syntax * Make properties `readonly` * Fix `@synthesize` backing store
27 lines
599 B
Objective-C
27 lines
599 B
Objective-C
//
|
|
// QRCodeFrameProcessorPluginObjC.m
|
|
// VisionCameraExample
|
|
//
|
|
// Created by Marc Rousavy on 01.05.21.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <VisionCamera/FrameProcessorPlugin.h>
|
|
#import <VisionCamera/Frame.h>
|
|
|
|
// Example for an Objective-C Frame Processor plugin
|
|
|
|
@interface QRCodeFrameProcessorPluginObjC : NSObject
|
|
@end
|
|
|
|
@implementation QRCodeFrameProcessorPluginObjC
|
|
|
|
static inline id exampleObjC___scanQRCodes(Frame* frame, NSArray* arguments) {
|
|
// TODO: Use some AI to detect QR codes in the frame
|
|
return @[];
|
|
}
|
|
|
|
VISION_EXPORT_FRAME_PROCESSOR(exampleObjC___scanQRCodes)
|
|
|
|
@end
|