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