EFQRCodeRecognizer

@objcMembers
public class EFQRCodeRecognizer : NSObject

Class for recognizing QR code contents from images.

  • The QR code to recognize.

    Declaration

    Swift

    public var image: CGImage { get set }
  • Initialize a QR code recognizer to recognize the specified image.

    Declaration

    Swift

    public init(image: CGImage)

    Parameters

    image

    a QR code to recognize.

  • Recognizes and returns the contents of the current QR code image.

    Note

    If the returned array is empty, there’s no recognizable content in the QR code image.

    Declaration

    Swift

    public func recognize() -> [String]

    Return Value

    an array of contents recognized from image.