One Logo Pool Ball
Vision · IOS API REFERENCE

FeaturePrintObservation

struct · iOS 18.0+ · SDK 27.1

struct FeaturePrintObservation

An observation that provides the recognized feature print.

Members (10)

get · iOS 18.0+

confidence

TypeScript
get confidence(): number
Swift declaration
let confidence: Float

The 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 · iOS 18.0+

description

TypeScript
get description(): string
Swift declaration
var 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 · iOS 18.0+

elementType

TypeScript
get elementType(): ElementType
Swift declaration
let elementType: ElementType

The type of each element in the data.

get · iOS 18.0+

elementCount

TypeScript
get elementCount(): number
Swift declaration
let elementCount: Int

The total number of elements in the data.

get · iOS 18.0+

originatingRequestDescriptor

TypeScript
get originatingRequestDescriptor(): (RequestDescriptor) | null
Swift declaration
let originatingRequestDescriptor: RequestDescriptor?

The descriptor of the request that produced the observation.

get · iOS 18.0+

data

TypeScript
get data(): ArrayBuffer
Swift declaration
let data: Data

The feature print data. The data is divided into separate elements. Determine the type of element using ``elementType``, and the number of elements using ``elementCount``.

get · iOS 18.0+

uuid

TypeScript
get uuid(): string
Swift declaration
let uuid: UUID

The unique identifier for the observation.

method · iOS 18.0+

distance

TypeScript
distance(featurePrint: FeaturePrintObservation): number
Swift declaration
func distance(to featurePrint: FeaturePrintObservation) throws -> Double

Computes the distance between two feature print observations. Shorter distances indicate greater similarity between feature prints. - Parameters: - featurePrint: The feature print object to calculate the distance to.

get · iOS 18.0+

timeRange

TypeScript
get timeRange(): (_CoreMedia_CMTimeRange) | null
Swift declaration
let 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.

init · iOS 18.0+

init

TypeScript
static init(observation: VNFeaturePrintObservation): FeaturePrintObservation
Swift declaration
init(_ observation: VNFeaturePrintObservation)

Skipped declarations

No declarations were skipped in this snapshot.

All Vision types →