descriptor
TypeScriptget descriptor(): RequestDescriptorSwift declarationvar descriptor: RequestDescriptor { get }An enum that identifies the request and request revision.
struct · iOS 18.0+ · SDK 27.1
struct DetectBarcodesRequestA request that detects barcodes in an image. This request returns an array of BarcodeObservation objects, one for each barcode it detects.
get descriptor(): RequestDescriptorSwift declarationvar descriptor: RequestDescriptor { get }An enum that identifies the request and request revision.
get symbologies(): Array<BarcodeSymbology>Swift declarationvar symbologies: [BarcodeSymbology]The collection of specific barcode symbologies to be detected. By default all symbologies will be detected.
set symbologies(value: Array<BarcodeSymbology>)Swift declarationvar symbologies: [BarcodeSymbology]The collection of specific barcode symbologies to be detected. By default all symbologies will be detected.
get regionOfInterest(): NormalizedRectSwift declarationvar regionOfInterest: NormalizedRectThe region of the image in which Vision will perform the request. The rectangle is normalized to the dimensions of the processed image. Its origin is specified relative to the image's lower-left corner. By default, the region of interest will be the full image.
set regionOfInterest(value: NormalizedRect)Swift declarationvar regionOfInterest: NormalizedRectThe region of the image in which Vision will perform the request. The rectangle is normalized to the dimensions of the processed image. Its origin is specified relative to the image's lower-left corner. By default, the region of interest will be the full image.
setComputeDevice(computeDevice: (_CoreML_MLComputeDevice) | null, computeStage: ComputeStage): voidSwift declarationmutating func setComputeDevice(_ computeDevice: MLComputeDevice?, for computeStage: ComputeStage)Assigns a compute device for a compute stage. If the parameter `computeDevice` is `nil`, the framework removes any explicit compute device assignment and allows the framework to select the device. Configure any compute device for a given compute stage. When performing a request, the system makes a validity check. Use `supportedComputeStageDevices` to get valid compute devices for a request’s compute stages. - Parameters: - `computeDevice: `The compute device to assign to the compute stage. - `computeStage: `The compute stage.
static get supportedRevisions(): Array<DetectBarcodesRequest_Revision>Swift declarationstatic let supportedRevisions: [DetectBarcodesRequest.Revision]The collection of currently-supported revisions for `DetectBarcodesRequest`.
get supportedSymbologies(): Array<BarcodeSymbology>Swift declarationvar supportedSymbologies: [BarcodeSymbology] { get }The collection of barcode symbologies that can be recognized by the request.
get coalescesCompositeSymbologies(): booleanSwift declarationvar coalescesCompositeSymbologies: BoolAllow multiple codes to be coalesced into one. The default value for this property is `false`.
set coalescesCompositeSymbologies(value: boolean)Swift declarationvar coalescesCompositeSymbologies: BoolAllow multiple codes to be coalesced into one. The default value for this property is `false`.
get revision(): DetectBarcodesRequest_RevisionSwift declarationlet revision: DetectBarcodesRequest.RevisionThe request's configured revision.
static init(revision?: (DetectBarcodesRequest_Revision) | null): DetectBarcodesRequestSwift declarationinit(_ revision: DetectBarcodesRequest.Revision? = nil)- Parameters: - revision: The specific algorithm or implementation revision that's used to perform the request.
No declarations were skipped in this snapshot.