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
20 lines
488 B
Swift
20 lines
488 B
Swift
//
|
|
// QRCodeFrameProcessorPluginSwift.swift
|
|
// VisionCamera
|
|
//
|
|
// Created by Marc Rousavy on 30.04.21.
|
|
// Copyright © 2021 mrousavy. All rights reserved.
|
|
//
|
|
|
|
import AVKit
|
|
import Vision
|
|
|
|
@objc(QRCodeFrameProcessorPluginSwift)
|
|
public class QRCodeFrameProcessorPluginSwift: NSObject, FrameProcessorPluginBase {
|
|
@objc
|
|
public static func callback(_: Frame!, withArgs _: [Any]!) -> Any! {
|
|
// TODO: Use some AI to detect QR codes in the CMSampleBufferRef
|
|
[]
|
|
}
|
|
}
|