bottomLeft
TypeScriptget bottomLeft(): NormalizedPointSwift declarationlet bottomLeft: NormalizedPointThe coordinates of the lower-left corner of the quadrilateral.
struct · iOS 18.0+ · SDK 27.1
struct BarcodeObservationget bottomLeft(): NormalizedPointSwift declarationlet bottomLeft: NormalizedPointThe coordinates of the lower-left corner of the quadrilateral.
get confidence(): numberSwift declarationlet confidence: FloatThe level of confidence normalized to `[0, 1]` where `1` is most confident. The only exception is results coming from `CoreMLRequest`, where confidence values are forwarded as is from relevant CoreML models
get bottomRight(): NormalizedPointSwift declarationlet bottomRight: NormalizedPointThe coordinates of the lower-right corner of the quadrilateral.
get description(): stringSwift declarationvar description: String { get }A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.
get payloadData(): (ArrayBuffer) | nullSwift declarationlet payloadData: Data?The raw data representation of the barcode’s payload.
get payloadString(): (string) | nullSwift declarationlet payloadString: String?A string value that represents the barcode payload. Depending on the symbology or the payload data itself, a string representation of the payload may not be available.
get boundingRegion(): ContoursObservation_ContourSwift declarationvar boundingRegion: NormalizedRegion { get }The bounding region of the barcode.
get isColorInverted(): booleanSwift declarationlet isColorInverted: BoolA Boolean value that indicates whether the barcode is color inverted.
get isGS1DataCarrier(): booleanSwift declarationlet isGS1DataCarrier: BoolA Boolean value that indicates whether the barcode carries any global standards data.
get supplementalPayloadData(): (ArrayBuffer) | nullSwift declarationlet supplementalPayloadData: Data?The raw data representation of the barcode’s supplemental payload.
get supplementalCompositeType(): (BarcodeObservation_CompositeType) | nullSwift declarationlet supplementalCompositeType: BarcodeObservation.CompositeType?The supplemental composite type. Currently, this can only refer to the composite flag of the 2D symbology as part of a GS1 composite symbology. This attribute only exists when the primary descriptor is the 1D symbology of a GS1 composite symbology, and of which a valid 2D counterpart has been coalesced into.
get supplementalPayloadString(): (string) | nullSwift declarationlet supplementalPayloadString: String?The supplemental code decoded as a string value.
get originatingRequestDescriptor(): (RequestDescriptor) | nullSwift declarationlet originatingRequestDescriptor: RequestDescriptor?The descriptor of the request that produced the observation.
get uuid(): stringSwift declarationlet uuid: UUIDThe unique identifier for the observation.
get topLeft(): NormalizedPointSwift declarationlet topLeft: NormalizedPointThe coordinates of the upper-left corner of the quadrilateral.
get topRight(): NormalizedPointSwift declarationlet topRight: NormalizedPointThe coordinates of the upper-right corner of the quadrilateral.
get symbology(): BarcodeSymbologySwift declarationlet symbology: BarcodeSymbologyThe symbology of the observed barcode.
get timeRange(): (_CoreMedia_CMTimeRange) | nullSwift declarationlet timeRange: CMTimeRange?The time range of the reported observation. When evaluating a sequence of image buffers, use this property to determine each observation’s start time and duration.
static init(observation: VNBarcodeObservation): BarcodeObservationSwift declarationinit(_ observation: VNBarcodeObservation)No declarations were skipped in this snapshot.