vision

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package vision provides purego-based Go bindings for the macOS Vision framework.

Apple documentation: https://developer.apple.com/documentation/vision

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SymbolAvailable

func SymbolAvailable(symbol string) bool

SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.

func VNAnimalBodyPoseObservationJointNameLeftBackElbow

func VNAnimalBodyPoseObservationJointNameLeftBackElbow() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameLeftBackKnee

func VNAnimalBodyPoseObservationJointNameLeftBackKnee() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameLeftBackPaw

func VNAnimalBodyPoseObservationJointNameLeftBackPaw() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameLeftEarBottom

func VNAnimalBodyPoseObservationJointNameLeftEarBottom() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameLeftEarMiddle

func VNAnimalBodyPoseObservationJointNameLeftEarMiddle() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameLeftEarTop

func VNAnimalBodyPoseObservationJointNameLeftEarTop() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameLeftEye

func VNAnimalBodyPoseObservationJointNameLeftEye() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameLeftFrontElbow

func VNAnimalBodyPoseObservationJointNameLeftFrontElbow() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameLeftFrontKnee

func VNAnimalBodyPoseObservationJointNameLeftFrontKnee() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameLeftFrontPaw

func VNAnimalBodyPoseObservationJointNameLeftFrontPaw() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameNeck

func VNAnimalBodyPoseObservationJointNameNeck() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameNose

func VNAnimalBodyPoseObservationJointNameNose() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameRightBackElbow

func VNAnimalBodyPoseObservationJointNameRightBackElbow() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameRightBackKnee

func VNAnimalBodyPoseObservationJointNameRightBackKnee() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameRightBackPaw

func VNAnimalBodyPoseObservationJointNameRightBackPaw() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameRightEarBottom

func VNAnimalBodyPoseObservationJointNameRightEarBottom() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameRightEarMiddle

func VNAnimalBodyPoseObservationJointNameRightEarMiddle() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameRightEarTop

func VNAnimalBodyPoseObservationJointNameRightEarTop() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameRightEye

func VNAnimalBodyPoseObservationJointNameRightEye() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameRightFrontElbow

func VNAnimalBodyPoseObservationJointNameRightFrontElbow() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameRightFrontKnee

func VNAnimalBodyPoseObservationJointNameRightFrontKnee() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameRightFrontPaw

func VNAnimalBodyPoseObservationJointNameRightFrontPaw() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameTailBottom

func VNAnimalBodyPoseObservationJointNameTailBottom() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameTailMiddle

func VNAnimalBodyPoseObservationJointNameTailMiddle() *foundation.NSString

func VNAnimalBodyPoseObservationJointNameTailTop

func VNAnimalBodyPoseObservationJointNameTailTop() *foundation.NSString

func VNAnimalBodyPoseObservationJointsGroupNameAll

func VNAnimalBodyPoseObservationJointsGroupNameAll() *foundation.NSString

func VNAnimalBodyPoseObservationJointsGroupNameForelegs

func VNAnimalBodyPoseObservationJointsGroupNameForelegs() *foundation.NSString

func VNAnimalBodyPoseObservationJointsGroupNameHead

func VNAnimalBodyPoseObservationJointsGroupNameHead() *foundation.NSString

func VNAnimalBodyPoseObservationJointsGroupNameHindlegs

func VNAnimalBodyPoseObservationJointsGroupNameHindlegs() *foundation.NSString

func VNAnimalBodyPoseObservationJointsGroupNameTail

func VNAnimalBodyPoseObservationJointsGroupNameTail() *foundation.NSString

func VNAnimalBodyPoseObservationJointsGroupNameTrunk

func VNAnimalBodyPoseObservationJointsGroupNameTrunk() *foundation.NSString

func VNAnimalIdentifierCat

func VNAnimalIdentifierCat() *foundation.NSString

func VNAnimalIdentifierDog

func VNAnimalIdentifierDog() *foundation.NSString

func VNBarcodeSymbologyAztec

func VNBarcodeSymbologyAztec() *foundation.NSString

func VNBarcodeSymbologyCodabar

func VNBarcodeSymbologyCodabar() *foundation.NSString

func VNBarcodeSymbologyCode39

func VNBarcodeSymbologyCode39() *foundation.NSString

func VNBarcodeSymbologyCode39Checksum

func VNBarcodeSymbologyCode39Checksum() *foundation.NSString

func VNBarcodeSymbologyCode39FullASCII

func VNBarcodeSymbologyCode39FullASCII() *foundation.NSString

func VNBarcodeSymbologyCode39FullASCIIChecksum

func VNBarcodeSymbologyCode39FullASCIIChecksum() *foundation.NSString

func VNBarcodeSymbologyCode93

func VNBarcodeSymbologyCode93() *foundation.NSString

func VNBarcodeSymbologyCode93i

func VNBarcodeSymbologyCode93i() *foundation.NSString

func VNBarcodeSymbologyCode128

func VNBarcodeSymbologyCode128() *foundation.NSString

func VNBarcodeSymbologyDataMatrix

func VNBarcodeSymbologyDataMatrix() *foundation.NSString

func VNBarcodeSymbologyEAN8

func VNBarcodeSymbologyEAN8() *foundation.NSString

func VNBarcodeSymbologyEAN13

func VNBarcodeSymbologyEAN13() *foundation.NSString

func VNBarcodeSymbologyGS1DataBar

func VNBarcodeSymbologyGS1DataBar() *foundation.NSString

func VNBarcodeSymbologyGS1DataBarExpanded

func VNBarcodeSymbologyGS1DataBarExpanded() *foundation.NSString

func VNBarcodeSymbologyGS1DataBarLimited

func VNBarcodeSymbologyGS1DataBarLimited() *foundation.NSString

func VNBarcodeSymbologyI2of5

func VNBarcodeSymbologyI2of5() *foundation.NSString

func VNBarcodeSymbologyI2of5Checksum

func VNBarcodeSymbologyI2of5Checksum() *foundation.NSString

func VNBarcodeSymbologyITF14

func VNBarcodeSymbologyITF14() *foundation.NSString

func VNBarcodeSymbologyMSIPlessey

func VNBarcodeSymbologyMSIPlessey() *foundation.NSString

func VNBarcodeSymbologyMicroPDF417

func VNBarcodeSymbologyMicroPDF417() *foundation.NSString

func VNBarcodeSymbologyMicroQR

func VNBarcodeSymbologyMicroQR() *foundation.NSString

func VNBarcodeSymbologyPDF417

func VNBarcodeSymbologyPDF417() *foundation.NSString

func VNBarcodeSymbologyQR

func VNBarcodeSymbologyQR() *foundation.NSString

func VNBarcodeSymbologyUPCE

func VNBarcodeSymbologyUPCE() *foundation.NSString

func VNBodyLandmarkKeyLeftAnkle deprecated

func VNBodyLandmarkKeyLeftAnkle() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyLeftEar deprecated

func VNBodyLandmarkKeyLeftEar() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyLeftElbow deprecated

func VNBodyLandmarkKeyLeftElbow() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyLeftEye deprecated

func VNBodyLandmarkKeyLeftEye() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyLeftHip deprecated

func VNBodyLandmarkKeyLeftHip() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyLeftKnee deprecated

func VNBodyLandmarkKeyLeftKnee() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyLeftShoulder deprecated

func VNBodyLandmarkKeyLeftShoulder() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyLeftWrist deprecated

func VNBodyLandmarkKeyLeftWrist() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyNeck deprecated

func VNBodyLandmarkKeyNeck() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyNose deprecated

func VNBodyLandmarkKeyNose() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyRightAnkle deprecated

func VNBodyLandmarkKeyRightAnkle() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyRightEar deprecated

func VNBodyLandmarkKeyRightEar() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyRightElbow deprecated

func VNBodyLandmarkKeyRightElbow() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyRightEye deprecated

func VNBodyLandmarkKeyRightEye() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyRightHip deprecated

func VNBodyLandmarkKeyRightHip() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyRightKnee deprecated

func VNBodyLandmarkKeyRightKnee() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyRightShoulder deprecated

func VNBodyLandmarkKeyRightShoulder() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyRightWrist deprecated

func VNBodyLandmarkKeyRightWrist() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkKeyRoot deprecated

func VNBodyLandmarkKeyRoot() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkRegionKeyFace deprecated

func VNBodyLandmarkRegionKeyFace() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkRegionKeyLeftArm deprecated

func VNBodyLandmarkRegionKeyLeftArm() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkRegionKeyLeftLeg deprecated

func VNBodyLandmarkRegionKeyLeftLeg() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkRegionKeyRightArm deprecated

func VNBodyLandmarkRegionKeyRightArm() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkRegionKeyRightLeg deprecated

func VNBodyLandmarkRegionKeyRightLeg() *foundation.NSString

Deprecated: since macOS 11.0.

func VNBodyLandmarkRegionKeyTorso deprecated

func VNBodyLandmarkRegionKeyTorso() *foundation.NSString

Deprecated: since macOS 11.0.

func VNClassifyImageRequestKnownClassificationsForRevisionError

func VNClassifyImageRequestKnownClassificationsForRevisionError(requestRevision uint) (*foundation.NSArray[*VNClassificationObservation], error)

@brief Obtain the collection of classifications currently recognized by the Vision framework. @param requestRevision The revision of the request for which classifications should be reported. @param error The address of the variable that will be populated with the error when the call fails. @return the collection of classifications for the revision, or nil if an error was encountered. Deprecated: since macOS 12.0.

func VNComputeStageMain

func VNComputeStageMain() *foundation.NSString

@brief The stage of a request where the main functionality is being performed. @discussion All requests will have this compute stage.

func VNComputeStagePostProcessing

func VNComputeStagePostProcessing() *foundation.NSString

@brief A compute stage for additional analysis and/or conversion of the data produced by the `VNComputeStageMain`. @discussion This is an optional compute stage that some requests may expose.

func VNDetectBarcodesRequestSupportedSymbologies

func VNDetectBarcodesRequestSupportedSymbologies() *foundation.NSArray[*foundation.NSString]

@brief Obtain the collection of barcode symbologies currently recognized by the Vision framework. @discussion Calling this method could be a potentially expensive operation. @return An array of VNBarcodeSymbology objects describing the symbologies currently supported by the Vision framework. Deprecated: since macOS 12.0.

func VNDetectFaceLandmarksRequestRevisionSupportsConstellation

func VNDetectFaceLandmarksRequestRevisionSupportsConstellation(requestRevision uint, constellation VNRequestFaceLandmarksConstellation) bool

func VNDetectHumanBodyPoseRequestSupportedJointNamesForRevisionError

func VNDetectHumanBodyPoseRequestSupportedJointNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of human body joint names that are supported by a given request revision. @param revision The revision of VNDetectHumanBodyPoseRequest being queried. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNHumanBodyPoseObservationJointName symbols that are supported by the request revision, or nil if a failure occurs. Deprecated: since macOS 14.0.

func VNDetectHumanBodyPoseRequestSupportedJointsGroupNamesForRevisionError

func VNDetectHumanBodyPoseRequestSupportedJointsGroupNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of human body joints group names that are supported by a given request revision. @param revision The revision of VNDetectHumanBodyPoseRequest being queried. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNHumanBodyPoseObservationJointsGroupName symbols that are supported by the request revision, or nil if a failure occurs. Deprecated: since macOS 14.0.

func VNDetectHumanHandPoseRequestSupportedJointNamesForRevisionError

func VNDetectHumanHandPoseRequestSupportedJointNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of human hand joint names that are supported by a given request revision. @param revision The revision of VNDetectHumanHandPoseRequest being queried. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNHumanHandPoseObservationJointName symbols that are supported by the request revision, or nil if a failure occurs. Deprecated: since macOS 14.0.

func VNDetectHumanHandPoseRequestSupportedJointsGroupNamesForRevisionError

func VNDetectHumanHandPoseRequestSupportedJointsGroupNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of human hand joints group names that are supported by a given request revision. @param revision The revision of VNDetectHumanHandPoseRequest being queried. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNHumanHandPoseObservationJointsGroupName symbols that are supported by the request revision, or nil if a failure occurs. Deprecated: since macOS 14.0.

func VNElementTypeSize

func VNElementTypeSize(elementType VNElementType) uint

@brief Obtain the size, in bytes, of a given element type. @param elementType The element type. @return a byte count, or 0 if the element type is unknown.

func VNErrorDomain

func VNErrorDomain() uintptr

func VNGeometryUtilsCalculateAreaForContourOrientedAreaError

func VNGeometryUtilsCalculateAreaForContourOrientedAreaError(area *float64, contour *VNContour, orientedArea bool) (bool, error)

@discussion Calculates a closed contour area using Green's theorem. The contour is represented by a set of points in VNContour object, It's important to note that a random set of points, or a contour with self-crossing edges will likely produce undefined results Note that because this is based on a geometric shape the aspect ratio is important when using normalized points. This takes the aspect ratio of the contour into account when using a VNContour as an input. @param area Output parameter to be populated with calculated contour area @param contour A VNContour object whose area is being calculated @param orientedArea If true, returns signed area - positive for CCW oriented contours and negative for CW oriented contours. If false, returned area is always positive. @param error An output parameter, populated only in case of algorithmic failure @return Area calculation status, YES indicates success, NO - failure. The failure case is accompanied by populating an 'error' output parameter

func VNGeometryUtilsCalculatePerimeterForContourError

func VNGeometryUtilsCalculatePerimeterForContourError(perimeter *float64, contour *VNContour) (bool, error)

@discussion Calculates perimeter, or a sum of all arc-lengths (edges), of a closed contour. The contour is represented by a set of points in VNContour object. Note that because this is based on a geometric shape the aspect ratio is important when using normalized points. This takes the aspect ratio of the contour into account when using a VNContour as an input. @param perimeter Output parameter to be populated with calculated contour perimeter @param contour A VNContour object whose perimeter is being calculated @param error An output parameter, populated only in case of algorithmic failure @return Perimeter calculation status, YES indicates success, NO - failure. The failure case is accompanied by populating an 'error' output parameter

func VNHumanBodyPose3DObservationJointNameCenterHead

func VNHumanBodyPose3DObservationJointNameCenterHead() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameCenterShoulder

func VNHumanBodyPose3DObservationJointNameCenterShoulder() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameLeftAnkle

func VNHumanBodyPose3DObservationJointNameLeftAnkle() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameLeftElbow

func VNHumanBodyPose3DObservationJointNameLeftElbow() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameLeftHip

func VNHumanBodyPose3DObservationJointNameLeftHip() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameLeftKnee

func VNHumanBodyPose3DObservationJointNameLeftKnee() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameLeftShoulder

func VNHumanBodyPose3DObservationJointNameLeftShoulder() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameLeftWrist

func VNHumanBodyPose3DObservationJointNameLeftWrist() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameRightAnkle

func VNHumanBodyPose3DObservationJointNameRightAnkle() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameRightElbow

func VNHumanBodyPose3DObservationJointNameRightElbow() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameRightHip

func VNHumanBodyPose3DObservationJointNameRightHip() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameRightKnee

func VNHumanBodyPose3DObservationJointNameRightKnee() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameRightShoulder

func VNHumanBodyPose3DObservationJointNameRightShoulder() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameRightWrist

func VNHumanBodyPose3DObservationJointNameRightWrist() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameRoot

func VNHumanBodyPose3DObservationJointNameRoot() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameSpine

func VNHumanBodyPose3DObservationJointNameSpine() *foundation.NSString

func VNHumanBodyPose3DObservationJointNameTopHead

func VNHumanBodyPose3DObservationJointNameTopHead() *foundation.NSString

func VNHumanBodyPose3DObservationJointsGroupNameAll

func VNHumanBodyPose3DObservationJointsGroupNameAll() *foundation.NSString

func VNHumanBodyPose3DObservationJointsGroupNameHead

func VNHumanBodyPose3DObservationJointsGroupNameHead() *foundation.NSString

func VNHumanBodyPose3DObservationJointsGroupNameLeftArm

func VNHumanBodyPose3DObservationJointsGroupNameLeftArm() *foundation.NSString

func VNHumanBodyPose3DObservationJointsGroupNameLeftLeg

func VNHumanBodyPose3DObservationJointsGroupNameLeftLeg() *foundation.NSString

func VNHumanBodyPose3DObservationJointsGroupNameRightArm

func VNHumanBodyPose3DObservationJointsGroupNameRightArm() *foundation.NSString

func VNHumanBodyPose3DObservationJointsGroupNameRightLeg

func VNHumanBodyPose3DObservationJointsGroupNameRightLeg() *foundation.NSString

func VNHumanBodyPose3DObservationJointsGroupNameTorso

func VNHumanBodyPose3DObservationJointsGroupNameTorso() *foundation.NSString

func VNHumanBodyPoseObservationJointNameLeftAnkle

func VNHumanBodyPoseObservationJointNameLeftAnkle() *foundation.NSString

func VNHumanBodyPoseObservationJointNameLeftEar

func VNHumanBodyPoseObservationJointNameLeftEar() *foundation.NSString

func VNHumanBodyPoseObservationJointNameLeftElbow

func VNHumanBodyPoseObservationJointNameLeftElbow() *foundation.NSString

func VNHumanBodyPoseObservationJointNameLeftEye

func VNHumanBodyPoseObservationJointNameLeftEye() *foundation.NSString

func VNHumanBodyPoseObservationJointNameLeftHip

func VNHumanBodyPoseObservationJointNameLeftHip() *foundation.NSString

func VNHumanBodyPoseObservationJointNameLeftKnee

func VNHumanBodyPoseObservationJointNameLeftKnee() *foundation.NSString

func VNHumanBodyPoseObservationJointNameLeftShoulder

func VNHumanBodyPoseObservationJointNameLeftShoulder() *foundation.NSString

func VNHumanBodyPoseObservationJointNameLeftWrist

func VNHumanBodyPoseObservationJointNameLeftWrist() *foundation.NSString

func VNHumanBodyPoseObservationJointNameNeck

func VNHumanBodyPoseObservationJointNameNeck() *foundation.NSString

func VNHumanBodyPoseObservationJointNameNose

func VNHumanBodyPoseObservationJointNameNose() *foundation.NSString

func VNHumanBodyPoseObservationJointNameRightAnkle

func VNHumanBodyPoseObservationJointNameRightAnkle() *foundation.NSString

func VNHumanBodyPoseObservationJointNameRightEar

func VNHumanBodyPoseObservationJointNameRightEar() *foundation.NSString

func VNHumanBodyPoseObservationJointNameRightElbow

func VNHumanBodyPoseObservationJointNameRightElbow() *foundation.NSString

func VNHumanBodyPoseObservationJointNameRightEye

func VNHumanBodyPoseObservationJointNameRightEye() *foundation.NSString

func VNHumanBodyPoseObservationJointNameRightHip

func VNHumanBodyPoseObservationJointNameRightHip() *foundation.NSString

func VNHumanBodyPoseObservationJointNameRightKnee

func VNHumanBodyPoseObservationJointNameRightKnee() *foundation.NSString

func VNHumanBodyPoseObservationJointNameRightShoulder

func VNHumanBodyPoseObservationJointNameRightShoulder() *foundation.NSString

func VNHumanBodyPoseObservationJointNameRightWrist

func VNHumanBodyPoseObservationJointNameRightWrist() *foundation.NSString

func VNHumanBodyPoseObservationJointNameRoot

func VNHumanBodyPoseObservationJointNameRoot() *foundation.NSString

func VNHumanBodyPoseObservationJointsGroupNameAll

func VNHumanBodyPoseObservationJointsGroupNameAll() *foundation.NSString

func VNHumanBodyPoseObservationJointsGroupNameFace

func VNHumanBodyPoseObservationJointsGroupNameFace() *foundation.NSString

func VNHumanBodyPoseObservationJointsGroupNameLeftArm

func VNHumanBodyPoseObservationJointsGroupNameLeftArm() *foundation.NSString

func VNHumanBodyPoseObservationJointsGroupNameLeftLeg

func VNHumanBodyPoseObservationJointsGroupNameLeftLeg() *foundation.NSString

func VNHumanBodyPoseObservationJointsGroupNameRightArm

func VNHumanBodyPoseObservationJointsGroupNameRightArm() *foundation.NSString

func VNHumanBodyPoseObservationJointsGroupNameRightLeg

func VNHumanBodyPoseObservationJointsGroupNameRightLeg() *foundation.NSString

func VNHumanBodyPoseObservationJointsGroupNameTorso

func VNHumanBodyPoseObservationJointsGroupNameTorso() *foundation.NSString

func VNHumanHandPoseObservationJointNameIndexDIP

func VNHumanHandPoseObservationJointNameIndexDIP() *foundation.NSString

func VNHumanHandPoseObservationJointNameIndexMCP

func VNHumanHandPoseObservationJointNameIndexMCP() *foundation.NSString

func VNHumanHandPoseObservationJointNameIndexPIP

func VNHumanHandPoseObservationJointNameIndexPIP() *foundation.NSString

func VNHumanHandPoseObservationJointNameIndexTip

func VNHumanHandPoseObservationJointNameIndexTip() *foundation.NSString

func VNHumanHandPoseObservationJointNameLittleDIP

func VNHumanHandPoseObservationJointNameLittleDIP() *foundation.NSString

func VNHumanHandPoseObservationJointNameLittleMCP

func VNHumanHandPoseObservationJointNameLittleMCP() *foundation.NSString

func VNHumanHandPoseObservationJointNameLittlePIP

func VNHumanHandPoseObservationJointNameLittlePIP() *foundation.NSString

func VNHumanHandPoseObservationJointNameLittleTip

func VNHumanHandPoseObservationJointNameLittleTip() *foundation.NSString

func VNHumanHandPoseObservationJointNameMiddleDIP

func VNHumanHandPoseObservationJointNameMiddleDIP() *foundation.NSString

func VNHumanHandPoseObservationJointNameMiddleMCP

func VNHumanHandPoseObservationJointNameMiddleMCP() *foundation.NSString

func VNHumanHandPoseObservationJointNameMiddlePIP

func VNHumanHandPoseObservationJointNameMiddlePIP() *foundation.NSString

func VNHumanHandPoseObservationJointNameMiddleTip

func VNHumanHandPoseObservationJointNameMiddleTip() *foundation.NSString

func VNHumanHandPoseObservationJointNameRingDIP

func VNHumanHandPoseObservationJointNameRingDIP() *foundation.NSString

func VNHumanHandPoseObservationJointNameRingMCP

func VNHumanHandPoseObservationJointNameRingMCP() *foundation.NSString

func VNHumanHandPoseObservationJointNameRingPIP

func VNHumanHandPoseObservationJointNameRingPIP() *foundation.NSString

func VNHumanHandPoseObservationJointNameRingTip

func VNHumanHandPoseObservationJointNameRingTip() *foundation.NSString

func VNHumanHandPoseObservationJointNameThumbCMC

func VNHumanHandPoseObservationJointNameThumbCMC() *foundation.NSString

func VNHumanHandPoseObservationJointNameThumbIP

func VNHumanHandPoseObservationJointNameThumbIP() *foundation.NSString

func VNHumanHandPoseObservationJointNameThumbMP

func VNHumanHandPoseObservationJointNameThumbMP() *foundation.NSString

func VNHumanHandPoseObservationJointNameThumbTip

func VNHumanHandPoseObservationJointNameThumbTip() *foundation.NSString

func VNHumanHandPoseObservationJointNameWrist

func VNHumanHandPoseObservationJointNameWrist() *foundation.NSString

func VNHumanHandPoseObservationJointsGroupNameAll

func VNHumanHandPoseObservationJointsGroupNameAll() *foundation.NSString

func VNHumanHandPoseObservationJointsGroupNameIndexFinger

func VNHumanHandPoseObservationJointsGroupNameIndexFinger() *foundation.NSString

func VNHumanHandPoseObservationJointsGroupNameLittleFinger

func VNHumanHandPoseObservationJointsGroupNameLittleFinger() *foundation.NSString

func VNHumanHandPoseObservationJointsGroupNameMiddleFinger

func VNHumanHandPoseObservationJointsGroupNameMiddleFinger() *foundation.NSString

func VNHumanHandPoseObservationJointsGroupNameRingFinger

func VNHumanHandPoseObservationJointsGroupNameRingFinger() *foundation.NSString

func VNHumanHandPoseObservationJointsGroupNameThumb

func VNHumanHandPoseObservationJointsGroupNameThumb() *foundation.NSString

func VNImageOptionCIContext

func VNImageOptionCIContext() *foundation.NSString

func VNImageOptionCameraIntrinsics

func VNImageOptionCameraIntrinsics() *foundation.NSString

@brief VNImageOptionCameraIntrinsics Specifies the camera intrinsics as an NSData or CFData representing a matrix_float3x3. See kCMSampleBufferAttachmentKey_CameraIntrinsicMatrix for details @discussion Camera intrinsic matrix is a CFData containing a matrix_float3x3, which is column-major. It has the following contents: fx 0 ox 0 fy oy 0 0 1 fx and fy are the focal length in pixels. For square pixels, they will have the same value. ox and oy are the coordinates of the principal point. The origin is the upper left of the frame. @note When using a CMSampleBuffer as an input and that sample buffer has camera intrinsics attached to it, Vision will use the camera intrinsic from there unless overwritten by passing in as an explicit option which will take precedence.

func VNImageOptionProperties

func VNImageOptionProperties() *foundation.NSString

func VNImagePointForFaceLandmarkPoint

func VNImagePointForFaceLandmarkPoint(faceLandmarkPoint unsafe.Pointer, faceBoundingBox corefoundation.CGRect, imageWidth uint, imageHeight uint) corefoundation.CGPoint

@discussion Returns the (possibly non-integral) image cooridnate of a given face landmark point. @param faceLandmarkPoint A face landmark point obtained from a VNFaceLandmarkRegion2D instance. @param faceBoundingBox The normalized bounding box of a face obtaining from a VNFaceObservation. @param imageWidth The pixel width of the image from which the VNFaceObservation was generated. @param imageHeight The pixel height of the image from which the VNFaceObservation was generated. @return the face landmark point in image coordinates.

func VNImagePointForNormalizedPoint

func VNImagePointForNormalizedPoint(normalizedPoint corefoundation.CGPoint, imageWidth uint, imageHeight uint) corefoundation.CGPoint

@discussion Returns a point in (possibly non-integral) image coordinates that is projected from a point in a normalized coordinate space. @param normalizedPoint The point in the normalized coordinate space of [0..1]. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @return the point in image coordinates.

func VNImagePointForNormalizedPointUsingRegionOfInterest

func VNImagePointForNormalizedPointUsingRegionOfInterest(normalizedPoint corefoundation.CGPoint, imageWidth uint, imageHeight uint, roi corefoundation.CGRect) corefoundation.CGPoint

@discussion Returns a point in (possibly non-integral) image coordinates that is projected from a point in a normalized coordinate space taking the region of interest (roi) into account. @param normalizedPoint The point in the normalized coordinate space of [0..1]. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @param roi The region of interest on which the normalized point was based on. @return the point in image coordinates from a normalized point that was reported in relation to a region of interest.

func VNImageRectForNormalizedRect

func VNImageRectForNormalizedRect(normalizedRect corefoundation.CGRect, imageWidth uint, imageHeight uint) corefoundation.CGRect

@discussion Returns a rectangle in (possibly non-integral) image coordinates that is projected from a rectangle in a normalized coordinate space. @param normalizedRect The rectangle in the normalized coordinate space of [0..1]. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @return the rectangle in pixel coordinates.

func VNImageRectForNormalizedRectUsingRegionOfInterest

func VNImageRectForNormalizedRectUsingRegionOfInterest(normalizedRect corefoundation.CGRect, imageWidth uint, imageHeight uint, roi corefoundation.CGRect) corefoundation.CGRect

@discussion Returns a rectangle in (possibly non-integral) image coordinates that is projected from a rectangle in a normalized coordinate space taking the region of interest (roi) into account. @param normalizedRect The rectangle in the normalized coordinate space of [0..1]. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @param roi The region of interest on which the normalized point was based on. @return the rectangle in pixel coordinates from a normalized rectangle that was reported in relation to a region of interest.

func VNNormalizedFaceBoundingBoxPointForLandmarkPoint

func VNNormalizedFaceBoundingBoxPointForLandmarkPoint(faceLandmarkPoint unsafe.Pointer, faceBoundingBox corefoundation.CGRect, imageWidth uint, imageHeight uint) corefoundation.CGPoint

@discussion Returns the cooridnate of a given face landmark point relative to a face bounding box. @param faceLandmarkPoint A face landmark point obtained from a VNFaceLandmarkRegion2D instance. @param faceBoundingBox The normalized bounding box of a face obtaining from a VNFaceObservation. @param imageWidth The pixel width of the image from which the VNFaceObservation was generated. @param imageHeight The pixel height of the image from which the VNFaceObservation was generated. @return the face landmark point in face bounding box coordinates.

func VNNormalizedIdentityRect

func VNNormalizedIdentityRect() corefoundation.CGRect

@brief The normalized identity rect of { {0, 0}, {1, 1} }.

func VNNormalizedPointForImagePoint

func VNNormalizedPointForImagePoint(imagePoint corefoundation.CGPoint, imageWidth uint, imageHeight uint) corefoundation.CGPoint

@discussion Returns a point in normalized coordinate space that is projected from a point in a image coordinates @param imagePoint The point in image coordinate space. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @return the point in normalized coordinates.

func VNNormalizedPointForImagePointUsingRegionOfInterest

func VNNormalizedPointForImagePointUsingRegionOfInterest(imagePoint corefoundation.CGPoint, imageWidth uint, imageHeight uint, roi corefoundation.CGRect) corefoundation.CGPoint

@discussion Returns a point in normalized coordinate space within a spedified regioin of interest (roi) that is projected from a point in a image coordinates @param imagePoint The point in image coordinate space. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @param roi The region of interest on which the normalized point will based on. @return the point in normalized coordinates in relation to the region of interest.

func VNNormalizedRectForImageRect

func VNNormalizedRectForImageRect(imageRect corefoundation.CGRect, imageWidth uint, imageHeight uint) corefoundation.CGRect

@discussion Returns an image rectangle in normalized coordinates. @param imageRect The rectangle in image coordinate space. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @return the normalized rectangle.

func VNNormalizedRectForImageRectUsingRegionOfInterest

func VNNormalizedRectForImageRectUsingRegionOfInterest(imageRect corefoundation.CGRect, imageWidth uint, imageHeight uint, roi corefoundation.CGRect) corefoundation.CGRect

@discussion Returns an image rectangle in normalized coordinates in relation to the region of interest. @param imageRect The rectangle in image coordinate space. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @param roi The region of interest on which the normalized rect will be based on. @return the normalized rectangle in relation to the region of interest.

func VNNormalizedRectIsIdentityRect

func VNNormalizedRectIsIdentityRect(normalizedRect corefoundation.CGRect) bool

@discussion Determines whether or not the normalized rect describes the identity rect of { {0, 0}, {1, 1} }. @param normalizedRect The rectangle in the normalized coordinate space of [0..1]. @return YES if the rect is the identity rect; otherwise, NO.

func VNPointDistanceBetweenPointPoint

func VNPointDistanceBetweenPointPoint(point1 *VNPoint, point2 *VNPoint) float64

@brief Returns the Euclidean distance between two VNPoint objects. Deprecated: since macOS 11.0.

func VNRecognizeAnimalsRequestKnownAnimalIdentifiersForRevisionError

func VNRecognizeAnimalsRequestKnownAnimalIdentifiersForRevisionError(requestRevision uint) (*foundation.NSArray[*foundation.NSString], error)

@brief This class method returns a list of all animals supported by the recognition algorithm @details This request will generate a collection of names for supported animals by current recognition algorithm. Deprecated: since macOS 12.0.

func VNRecognizeTextRequestSupportedRecognitionLanguagesForTextRecognitionLevelRevisionError

func VNRecognizeTextRequestSupportedRecognitionLanguagesForTextRecognitionLevelRevisionError(recognitionLevel VNRequestTextRecognitionLevel, requestRevision uint) (*foundation.NSArray[*foundation.NSString], error)

@brief Returns all the supported languages for a given text recognition level. Note that a language supported in one recognition level might not be available in another. Deprecated: since macOS 12.0.

func VNRecognizedPoint3DGroupKeyAll

func VNRecognizedPoint3DGroupKeyAll() *foundation.NSString

func VNRecognizedPointGroupKeyAll

func VNRecognizedPointGroupKeyAll() *foundation.NSString

func VNRequestCurrentRevision

func VNRequestCurrentRevision() uint

@abstract Provides the current revision supported by the request.

func VNRequestDefaultRevision

func VNRequestDefaultRevision() uint

@abstract Provides the revision of the request that was latest for the particular SDK that was linked with the client application.

func VNRequestSupportedRevisions

func VNRequestSupportedRevisions() *foundation.NSIndexSet

@abstract Provides the collection of currently-supported algorithm or implementation versions for the class of request. @discussion This method allows clients to introspect at runtime what capabilities are available for each class of VNRequest in the Vision framework.

func VNVectorDotProductOfVectorVector

func VNVectorDotProductOfVectorVector(v1 *VNVector, v2 *VNVector) float64

@brief Caclulates a dot product (aka 'scalar product' or 'inner product') of two vectors v1 and v2 and returns dot product value.

func VNVideoProcessingOptionFrameCadence deprecated

func VNVideoProcessingOptionFrameCadence() *foundation.NSString

Deprecated: since macOS 11.0.

func VNVideoProcessingOptionTimeInterval deprecated

func VNVideoProcessingOptionTimeInterval() *foundation.NSString

Deprecated: since macOS 11.0.

func VNVisionVersionNumber

func VNVisionVersionNumber() float64

Types

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int64
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type EvCmd

type EvCmd int64
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

type MDQueryOptionFlags

type MDQueryOptionFlags int64
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type NXMouseButton

type NXMouseButton int64
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type PMPageToPaperMappingType

type PMPageToPaperMappingType int64
const (
	KPMPageToPaperMappingNone       PMPageToPaperMappingType = 1
	KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2
)

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type VNAnimalBodyPoseObservation

type VNAnimalBodyPoseObservation struct {
	VNRecognizedPointsObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnanimalbodyposeobservation

func VNAnimalBodyPoseObservationFromID

func VNAnimalBodyPoseObservationFromID(id objc.ID) *VNAnimalBodyPoseObservation

func (*VNAnimalBodyPoseObservation) AvailableJointGroupNames

func (o *VNAnimalBodyPoseObservation) AvailableJointGroupNames() *foundation.NSArray[*foundation.NSString]

@brief All animal joints group names available in the observation.

func (*VNAnimalBodyPoseObservation) AvailableJointNames

@brief All animal joint names available in the observation.

func (*VNAnimalBodyPoseObservation) RecognizedPointForJointNameError

func (o *VNAnimalBodyPoseObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNRecognizedPoint, error)

@brief Obtain a specific normalized point for a named animal body joint. @param jointName The name of the animal body joint. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return the recognized point, or nil if the point could not be obtained.

func (*VNAnimalBodyPoseObservation) RecognizedPointsForJointsGroupNameError

func (o *VNAnimalBodyPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint], error)

@brief Obtains the collection of points associated with a named animal body joints group. @discussion The obtained collection is a dictionary that provides the mapping of animal join names to the recognized point. @param jointsGroupName The name of the animal body joints group. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return a dictionary of recognized points in the group, or nil if an error was encountered.

type VNBarcodeCompositeType

type VNBarcodeCompositeType int64
const (
	VNBarcodeCompositeTypeNone     VNBarcodeCompositeType = 0
	VNBarcodeCompositeTypeLinked   VNBarcodeCompositeType = 1
	VNBarcodeCompositeTypeGS1TypeA VNBarcodeCompositeType = 2
	VNBarcodeCompositeTypeGS1TypeB VNBarcodeCompositeType = 3
	VNBarcodeCompositeTypeGS1TypeC VNBarcodeCompositeType = 4
)

func (VNBarcodeCompositeType) String

func (e VNBarcodeCompositeType) String() string

type VNBarcodeObservation

type VNBarcodeObservation struct {
	VNRectangleObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnbarcodeobservation

func VNBarcodeObservationFromID

func VNBarcodeObservationFromID(id objc.ID) *VNBarcodeObservation

func (*VNBarcodeObservation) BarcodeDescriptor

func (o *VNBarcodeObservation) BarcodeDescriptor() *coreimage.CIBarcodeDescriptor

@brief An object that provides symbology-specific data for the barcode.

func (*VNBarcodeObservation) IsColorInverted

func (o *VNBarcodeObservation) IsColorInverted() bool

@brief A boolean indicating if the barcode is color inverted

func (*VNBarcodeObservation) IsGS1DataCarrier

func (o *VNBarcodeObservation) IsGS1DataCarrier() bool

@brief Boolean indicating if the barcode carries any GS1 application specific data

func (*VNBarcodeObservation) PayloadData

func (o *VNBarcodeObservation) PayloadData() *foundation.NSData

@brief The raw data representation of the barcode's payload if available.

func (*VNBarcodeObservation) PayloadStringValue

func (o *VNBarcodeObservation) PayloadStringValue() *foundation.NSString

@brief The string representation of the barcode's payload. Depending on the symbology of the barcode and/or the payload data itself, a string representation of the payload may not be available.

func (*VNBarcodeObservation) SupplementalCompositeType

func (o *VNBarcodeObservation) SupplementalCompositeType() VNBarcodeCompositeType

@brief Represents 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.

func (*VNBarcodeObservation) SupplementalPayloadData

func (o *VNBarcodeObservation) SupplementalPayloadData() *foundation.NSData

@brief Decode the supplemental code in the descriptor as a string value. Note: this property might be expensive the first time it is accessed When non-NULL, and if the descriptor has supplemental raw payload data, the pointee will be set to the decoded supplemental payload raw data value.

func (*VNBarcodeObservation) SupplementalPayloadString

func (o *VNBarcodeObservation) SupplementalPayloadString() *foundation.NSString

@brief Decode the supplemental code in the descriptor as a string value. Note: this property might be expensive the first time it is accessed When non-NULL, and if the descriptor has supplemental raw payload data, the pointee will be set to the decoded supplemental payload string value.

func (*VNBarcodeObservation) Symbology

func (o *VNBarcodeObservation) Symbology() *foundation.NSString

@brief The symbology of the detected barcode.

type VNChirality

type VNChirality int64
const (
	VNChiralityUnknown VNChirality = 0
	VNChiralityLeft    VNChirality = -1
	VNChiralityRight   VNChirality = 1
)

func (VNChirality) String

func (e VNChirality) String() string

type VNCircle

type VNCircle struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vncircle

func VNCircleFromID

func VNCircleFromID(id objc.ID) *VNCircle

func VNCircleZeroCircle

func VNCircleZeroCircle() *VNCircle

@brief Returns a VNCircle object with center at the Origin [0.0; 0.0] and zero radius.

func VNGeometryUtilsBoundingCircleForContourError

func VNGeometryUtilsBoundingCircleForContourError(contour *VNContour) (*VNCircle, error)

@discussion Calculates a bounding circle that includes a collection of points or a VNContour object. Note that because this is based on a geometric shape the aspect ratio is important when using normalized points. This takes the aspect ratio of the contour into account when using a VNContour as an input. boundingCircleForPoints and boundingCircleForSIMDPoints assume that the aspect ratio is correctly applied to the points. @param contour A contour around which to find the bounding circle. @param points A collection of points around which to find the bounding circle. @param pointCount Number of points in points @param contour VNContour object whose bounding circle needs to be calculated @param error An output parameter, populated only in case of algorithmic failure @return the VNCircle object describing the bounding circle or nil, if the algorithm failed. The latter case is accompanied by populating an 'error' output parameter

func VNGeometryUtilsBoundingCircleForPointsError

func VNGeometryUtilsBoundingCircleForPointsError(points *foundation.NSArray[*VNPoint]) (*VNCircle, error)

func VNGeometryUtilsBoundingCircleForSIMDPointsPointCountError

func VNGeometryUtilsBoundingCircleForSIMDPointsPointCountError(points unsafe.Pointer, pointCount int) (*VNCircle, error)

func (*VNCircle) Center

func (o *VNCircle) Center() *VNPoint

@brief Returns circle center.

func (*VNCircle) ContainsPoint

func (o *VNCircle) ContainsPoint(point *VNPoint) bool

@brief Returns YES if the point is inside the circle, including the boundary.

func (*VNCircle) ContainsPointInCircumferentialRingOfWidth

func (o *VNCircle) ContainsPointInCircumferentialRingOfWidth(point *VNPoint, ringWidth float64) bool

@brief Returns YES if the point is within the ring bound by two circles [radius - delta; radius + delta].

func (*VNCircle) Diameter

func (o *VNCircle) Diameter() float64

@brief Returns circle diameter.

func (*VNCircle) InitWithCenterDiameter

func (o *VNCircle) InitWithCenterDiameter(center *VNPoint, diameter float64) *VNCircle

@brief Initializes VNCircle object with given circle center and circle diameter.

func (*VNCircle) InitWithCenterRadius

func (o *VNCircle) InitWithCenterRadius(center *VNPoint, radius float64) *VNCircle

@brief Initializes VNCircle object with given circle center and circle radius.

func (*VNCircle) Radius

func (o *VNCircle) Radius() float64

@brief Returns circle radius.

type VNClassificationObservation

type VNClassificationObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnclassificationobservation

func VNClassificationObservationFromID

func VNClassificationObservationFromID(id objc.ID) *VNClassificationObservation

func (*VNClassificationObservation) HasMinimumPrecisionForRecall

func (o *VNClassificationObservation) HasMinimumPrecisionForRecall(minimumPrecision float32, recall float32) bool

@brief Determine whether or not the observation's operation point for a specific recall has a minimum precision value. @param minimumPrecision The minimum precision desired for an operation point. @param recall The recall value used to select the operation point. @return YES if the precision value for the operation point specified by a recall value has the minimum value; otherwise, NO.

func (*VNClassificationObservation) HasMinimumRecallForPrecision

func (o *VNClassificationObservation) HasMinimumRecallForPrecision(minimumRecall float32, precision float32) bool

@brief Determine whether or not the observation's operation point for a specific precision has a minimum recall value. @param minimumRecall The minimum recall desired for an operation point. @param precision The precision value used to select the operation point. @return YES if the recall value for the operation point specified by a precision value has the minimum value; otherwise, NO.

func (*VNClassificationObservation) HasPrecisionRecallCurve

func (o *VNClassificationObservation) HasPrecisionRecallCurve() bool

@brief Determine whether or not precision/recall curves are available with the observation. @discussion If this property is YES, then all other precision/recall related methods in this addition can be called.

func (*VNClassificationObservation) Identifier

type VNClassifyImageRequest

type VNClassifyImageRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vnclassifyimagerequest

func VNClassifyImageRequestFromID

func VNClassifyImageRequestFromID(id objc.ID) *VNClassifyImageRequest

func (*VNClassifyImageRequest) SupportedIdentifiersAndReturnError

func (o *VNClassifyImageRequest) SupportedIdentifiersAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of identifiers supported by the target request. @discussion This method will return the collection of all possible classification identifiers that are produced by the target request based on its current state of configuration at the time of the call. @param error The address of the variable that will be populated with the error if the call fails. @return The collection of classification identifiers, or nil if a failure occurs.

type VNContour

type VNContour struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vncontour

func VNContourFromID

func VNContourFromID(id objc.ID) *VNContour

func (*VNContour) AspectRatio

func (o *VNContour) AspectRatio() float32

@brief The aspect ratio of the contour from the original image aspect ratio expressed as width/height

func (*VNContour) ChildContourAtIndexError

func (o *VNContour) ChildContourAtIndexError(childContourIndex uint) (*VNContour, error)

@brief Returns a VNContour object that is a child of this VNContour at the specified index. @param childContourIndex The index into the childContours array. @param error The error returned if the child contour cannot be provided. @return The VNContour object at the specified index path, or nil of a failure occurs.

func (*VNContour) ChildContourCount

func (o *VNContour) ChildContourCount() int

@brief The total number of child contours in the target contour. @discussion The use of this property is preferred over childContours.count due to the cost of building the child objects.

func (*VNContour) ChildContours

func (o *VNContour) ChildContours() *foundation.NSArray[*VNContour]

@brief The array of the contours enclosed by the target contour. @discussion This property may come with the cost of instantiating new VNContour objects; therefore, clients are strongly encouraged to hold the results in a local variable instead of repeatedly invoking it.

func (*VNContour) IndexPath

func (o *VNContour) IndexPath() *foundation.NSIndexPath

@brief The path to the target VNContour as it is stored in the owning VNContoursObservation's hierarchy of contours.

func (*VNContour) NormalizedPath

func (o *VNContour) NormalizedPath() unsafe.Pointer

@brief The contour represented as a CGPath in normalized coordinates. @details The path is owned by this object and therefore will be alive as long as the the observation is alive.

func (*VNContour) NormalizedPoints

func (o *VNContour) NormalizedPoints() unsafe.Pointer

@brief The array of points in normalized coordinates that describe the contour. @discussion Provides the address of a buffer containing the array of (x,y) points stored as a simd_float2 value. This buffer is owned by the target object and is guaranteed to exist as long as this VNContour instance exists.

func (*VNContour) PointCount

func (o *VNContour) PointCount() int

@brief The number of points that describe the contour.

func (*VNContour) PolygonApproximationWithEpsilonError

func (o *VNContour) PolygonApproximationWithEpsilonError(epsilon float32) (*VNContour, error)

@brief Simplifies the contour's collection of points into a polygon using the Ramer Douglas Peucker Algorithm. @discussion See <https://en.wikipedia.org/wiki/Ramer–Douglas–Peucker_algorithm> @param epsilon Points that have a perpendicular distance to the line segment they are on which are greater than epsilon are kept, others are eliminated. @param error The error returned if a simplified contour cannot be created. @return A new VNContour object with a simplified polygon consisting of a subset of the points that defined the original VNContour.

type VNContoursObservation

type VNContoursObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vncontoursobservation

func VNContoursObservationFromID

func VNContoursObservationFromID(id objc.ID) *VNContoursObservation

func (*VNContoursObservation) ContourAtIndexError

func (o *VNContoursObservation) ContourAtIndexError(contourIndex int) (*VNContour, error)

@brief Returns the VNContour object at the specified index, irrespective of hierarchy. @param contourIndex The index of the contour to request. Valid values are in the range [0..contourCount-1]. @param error The error returned if the index path is out of range. @return The detected VNContour at the specified index without regard to hierarchy.

func (*VNContoursObservation) ContourAtIndexPathError

func (o *VNContoursObservation) ContourAtIndexPathError(indexPath *foundation.NSIndexPath) (*VNContour, error)

@brief Returns the VNContour object at the specified index path. @details Use the indexPath property from a VNContour instance to pass to this method. @param indexPath The index path is the heirarchical path to the contour. @param error The error returned if the index path is out of range. @return The VNContour object at the specified index path.

func (*VNContoursObservation) ContourCount

func (o *VNContoursObservation) ContourCount() int

@brief The total number of contours detected.

func (*VNContoursObservation) NormalizedPath

func (o *VNContoursObservation) NormalizedPath() unsafe.Pointer

@brief Obtain all of the contours represented as a CGPath in normalized coordinates. @details The path is owned by the observation and therefore will be alive as long as the the observation is alive.

func (*VNContoursObservation) TopLevelContourCount

func (o *VNContoursObservation) TopLevelContourCount() int

@brief The total number of top-level contours detected.

func (*VNContoursObservation) TopLevelContours

func (o *VNContoursObservation) TopLevelContours() *foundation.NSArray[*VNContour]

@brief An array of the top level contours (i.e. contours that are not enclosed inside another contour),. @details This array constitutes the top of the contour hierarchy. Each contour object can be further iterated to determine its children. @see VNContour for more information.

type VNCoreMLFeatureValueObservation

type VNCoreMLFeatureValueObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vncoremlfeaturevalueobservation

func VNCoreMLFeatureValueObservationFromID

func VNCoreMLFeatureValueObservationFromID(id objc.ID) *VNCoreMLFeatureValueObservation

func (*VNCoreMLFeatureValueObservation) FeatureName

@brief The name used in the model description of the CoreML model that produced this observation allowing to correlate the observation back to the output of the model.

func (*VNCoreMLFeatureValueObservation) FeatureValue

@brief The result VNCoreMLRequest where the model produces an MLFeatureValue that is neither a classification or image. Refer to the Core ML documentation and the model itself for the handling of the content of the featureValue.

type VNCoreMLModel

type VNCoreMLModel struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vncoremlmodel

func VNCoreMLModelFromID

func VNCoreMLModelFromID(id objc.ID) *VNCoreMLModel

func VNCoreMLModelModelForMLModelError

func VNCoreMLModelModelForMLModelError(model *coreml.MLModel) (*VNCoreMLModel, error)

func (*VNCoreMLModel) FeatureProvider

func (o *VNCoreMLModel) FeatureProvider() coreml.MLFeatureProvider

@brief An optional object conforming to the MLFeatureProvider protocol that is used by the model during the predict call to support inputs that are not supplied by Vision. Vision will provide the image for the inputImageFeatureName from the the VNRequestHandler. A feature provider is necessary for models that have more than one input and require those parameters to be set. Models that only have one image input will not use the feature provider as that input will be set by Vision.

func (*VNCoreMLModel) InputImageFeatureName

func (o *VNCoreMLModel) InputImageFeatureName() *foundation.NSString

@brief The name of the MLFeatureValue that Vision will set from the VNRequestHandler. Vision will use the first input it finds by default but it can be set to another featureName instead.

func (*VNCoreMLModel) SetFeatureProvider

func (o *VNCoreMLModel) SetFeatureProvider(featureProvider coreml.MLFeatureProvider)

func (*VNCoreMLModel) SetInputImageFeatureName

func (o *VNCoreMLModel) SetInputImageFeatureName(inputImageFeatureName *foundation.NSString)

type VNCoreMLRequest

type VNCoreMLRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vncoremlrequest

func VNCoreMLRequestFromID

func VNCoreMLRequestFromID(id objc.ID) *VNCoreMLRequest

func (*VNCoreMLRequest) ImageCropAndScaleOption

func (o *VNCoreMLRequest) ImageCropAndScaleOption() VNImageCropAndScaleOption

func (*VNCoreMLRequest) InitWithModel

func (o *VNCoreMLRequest) InitWithModel(model *VNCoreMLModel) *VNCoreMLRequest

@brief Create a new request with a model. @param model The VNCoreMLModel to be used.

func (*VNCoreMLRequest) InitWithModelCompletionHandler

func (o *VNCoreMLRequest) InitWithModelCompletionHandler(model *VNCoreMLModel, completionHandler func(*VNRequest, unsafe.Pointer)) *VNCoreMLRequest

@brief Create a new request with a model. @param model The VNCoreMLModel to be used. @param completionHandler The block that is invoked when the request has been performed.

func (*VNCoreMLRequest) Model

func (o *VNCoreMLRequest) Model() *VNCoreMLModel

@brief The model from CoreML wrapped in a VNCoreMLModel.

func (*VNCoreMLRequest) SetImageCropAndScaleOption

func (o *VNCoreMLRequest) SetImageCropAndScaleOption(imageCropAndScaleOption VNImageCropAndScaleOption)

type VNDetectAnimalBodyPoseRequest

type VNDetectAnimalBodyPoseRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetectanimalbodyposerequest

func VNDetectAnimalBodyPoseRequestFromID

func VNDetectAnimalBodyPoseRequestFromID(id objc.ID) *VNDetectAnimalBodyPoseRequest

func (*VNDetectAnimalBodyPoseRequest) SupportedJointNamesAndReturnError

func (o *VNDetectAnimalBodyPoseRequest) SupportedJointNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of animal body joint names that are supported by a request object configured with a request revision. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNAnimalBodyPoseObservationJointName symbols that are supported by the request, or nil if a failure occurs.

func (*VNDetectAnimalBodyPoseRequest) SupportedJointsGroupNamesAndReturnError

func (o *VNDetectAnimalBodyPoseRequest) SupportedJointsGroupNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of animal body joints group names that are supported by a request object configured with a request revision. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNAnimalBodyPoseObservationJointsGroupName symbols that are supported by the request, or nil if a failure occurs.

type VNDetectBarcodesRequest

type VNDetectBarcodesRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetectbarcodesrequest

func VNDetectBarcodesRequestFromID

func VNDetectBarcodesRequestFromID(id objc.ID) *VNDetectBarcodesRequest

func (*VNDetectBarcodesRequest) CoalesceCompositeSymbologies

func (o *VNDetectBarcodesRequest) CoalesceCompositeSymbologies() bool

@discussion An option to coalesce multiple codes if applicable based on the symbology

func (*VNDetectBarcodesRequest) SetCoalesceCompositeSymbologies

func (o *VNDetectBarcodesRequest) SetCoalesceCompositeSymbologies(coalesceCompositeSymbologies bool)

func (*VNDetectBarcodesRequest) SetSymbologies

func (o *VNDetectBarcodesRequest) SetSymbologies(symbologies *foundation.NSArray[*foundation.NSString])

func (*VNDetectBarcodesRequest) SupportedSymbologiesAndReturnError

func (o *VNDetectBarcodesRequest) SupportedSymbologiesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of barcode symbologies that can be recognized by the request in its current configuration. @discussion Calling this method could be a potentially expensive operation. @return An array of VNBarcodeSymbology objects describing the symbologies recognized by the request in its current configuration.

func (*VNDetectBarcodesRequest) Symbologies

@discussion The collection of barcode symbologies that are to be detected in the image. The default is to scan for all possible symbologies. Setting a revision on the request will reset the symbologies to all symbologies for the specified revision.

type VNDetectContoursRequest

type VNDetectContoursRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetectcontoursrequest

func VNDetectContoursRequestFromID

func VNDetectContoursRequestFromID(id objc.ID) *VNDetectContoursRequest

func (*VNDetectContoursRequest) ContrastAdjustment

func (o *VNDetectContoursRequest) ContrastAdjustment() float32

@brief The amount to adjust the image's contrast by. A value of +1.0 means that the contrast is not adjusted. The default value is +2.0. @discussion Contour detection works best with high contrast images. The default value of 2 doubles the image's contrast to aid in detection. If the image already has a high contrast then this value should be set to 1.

func (*VNDetectContoursRequest) ContrastPivot

func (o *VNDetectContoursRequest) ContrastPivot() *foundation.NSNumber

@brief The pixel value to use as a pivot for the contrast. Valid values are from [0.0 ... +1.0], or nil to auto-detect based on image intensity. The default value is +0.5 (i.e. pixel center).

func (*VNDetectContoursRequest) DetectDarkOnLight deprecated

func (o *VNDetectContoursRequest) DetectDarkOnLight() bool

Deprecated: since macOS 11.0.

func (*VNDetectContoursRequest) DetectsDarkOnLight

func (o *VNDetectContoursRequest) DetectsDarkOnLight() bool

@brief Identifies to the request if detecting a dark object on a light background, or vice versa, to aid in detection. The default value is YES.

func (*VNDetectContoursRequest) MaximumImageDimension

func (o *VNDetectContoursRequest) MaximumImageDimension() uint

@brief The limit on the maximum dimension of the image to be used for contour detection. Valid range of values is [64 ... NSUIntegerMax]. The default value is 512. @discussion As the contour request is compute intensive, the input image is scaled down maintaining aspect ratio (if needed), such that its maximum dimension is the value of this property. The image never gets scaled up, so specifying the maximum value ensures that the image gets processed in its original size and not downscaled.

func (*VNDetectContoursRequest) SetContrastAdjustment

func (o *VNDetectContoursRequest) SetContrastAdjustment(contrastAdjustment float32)

func (*VNDetectContoursRequest) SetContrastPivot

func (o *VNDetectContoursRequest) SetContrastPivot(contrastPivot *foundation.NSNumber)

func (*VNDetectContoursRequest) SetDetectDarkOnLight deprecated

func (o *VNDetectContoursRequest) SetDetectDarkOnLight(detectDarkOnLight bool)

Deprecated: since macOS 11.0.

func (*VNDetectContoursRequest) SetDetectsDarkOnLight

func (o *VNDetectContoursRequest) SetDetectsDarkOnLight(detectsDarkOnLight bool)

func (*VNDetectContoursRequest) SetMaximumImageDimension

func (o *VNDetectContoursRequest) SetMaximumImageDimension(maximumImageDimension uint)

type VNDetectFaceLandmarksRequest

type VNDetectFaceLandmarksRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetectfacelandmarksrequest

func VNDetectFaceLandmarksRequestFromID

func VNDetectFaceLandmarksRequestFromID(id objc.ID) *VNDetectFaceLandmarksRequest

func (*VNDetectFaceLandmarksRequest) Constellation

@property property constellation @abstract Constellation type defines how many landmark points are used to map a face. Revisions 1, 2, and 3 of the request support 65 points, where Revision 3 also supports 76 points.

func (*VNDetectFaceLandmarksRequest) SetConstellation

func (o *VNDetectFaceLandmarksRequest) SetConstellation(constellation VNRequestFaceLandmarksConstellation)

type VNDetectHorizonRequest

type VNDetectHorizonRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetecthorizonrequest

func VNDetectHorizonRequestFromID

func VNDetectHorizonRequestFromID(id objc.ID) *VNDetectHorizonRequest

type VNDetectHumanBodyPose3DRequest

type VNDetectHumanBodyPose3DRequest struct {
	VNStatefulRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetecthumanbodypose3drequest

func VNDetectHumanBodyPose3DRequestFromID

func VNDetectHumanBodyPose3DRequestFromID(id objc.ID) *VNDetectHumanBodyPose3DRequest

func (*VNDetectHumanBodyPose3DRequest) Init

@brief Creates a new VNDetectHumanBodyPose3DRequest with no completion handler.

func (*VNDetectHumanBodyPose3DRequest) InitWithCompletionHandler

func (o *VNDetectHumanBodyPose3DRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNDetectHumanBodyPose3DRequest

@brief Creates a new VNDetectHumanBodyPose3DRequest with completion handler.

func (*VNDetectHumanBodyPose3DRequest) SupportedJointNamesAndReturnError

func (o *VNDetectHumanBodyPose3DRequest) SupportedJointNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of human body joint names that are supported by a given request revision. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNHumanBodyPose3DObservationJointName symbols that are supported by the request revision, or nil if a failure occurs.

func (*VNDetectHumanBodyPose3DRequest) SupportedJointsGroupNamesAndReturnError

func (o *VNDetectHumanBodyPose3DRequest) SupportedJointsGroupNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of human body joints group names that are supported by a request object configured with a request revision. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNHumanBody3DPoseObservationJointsGroupName symbols that are supported by the request, or nil if a failure occurs.

type VNDetectHumanBodyPoseRequest

type VNDetectHumanBodyPoseRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetecthumanbodyposerequest

func VNDetectHumanBodyPoseRequestFromID

func VNDetectHumanBodyPoseRequestFromID(id objc.ID) *VNDetectHumanBodyPoseRequest

func (*VNDetectHumanBodyPoseRequest) SupportedJointNamesAndReturnError

func (o *VNDetectHumanBodyPoseRequest) SupportedJointNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of human body joint names that are supported by a given request object configured with a specific revision. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNHumanBodyPoseObservationJointName symbols that are supported by the request revision, or nil if a failure occurs.

func (*VNDetectHumanBodyPoseRequest) SupportedJointsGroupNamesAndReturnError

func (o *VNDetectHumanBodyPoseRequest) SupportedJointsGroupNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of human body joints group names that are supported by a given request object configured with a specific revision. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNHumanBodyPoseObservationJointsGroupName symbols that are supported by the request revision, or nil if a failure occurs.

type VNDetectHumanHandPoseRequest

type VNDetectHumanHandPoseRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetecthumanhandposerequest

func VNDetectHumanHandPoseRequestFromID

func VNDetectHumanHandPoseRequestFromID(id objc.ID) *VNDetectHumanHandPoseRequest

func (*VNDetectHumanHandPoseRequest) MaximumHandCount

func (o *VNDetectHumanHandPoseRequest) MaximumHandCount() uint

@brief Defines an upper bounds to the maximum number of hands that will be processed for key points in an image. @discussion The complexity in key points determination is scalable by the number of hands to be processed. All hands detected in an image will be ordered by relative size, with only the N largest ones having key points determined. The default value for this property is 2. The maximum value for VNDetectHumanHandPoseRequestRevision1 is 6.

func (*VNDetectHumanHandPoseRequest) SetMaximumHandCount

func (o *VNDetectHumanHandPoseRequest) SetMaximumHandCount(maximumHandCount uint)

func (*VNDetectHumanHandPoseRequest) SupportedJointNamesAndReturnError

func (o *VNDetectHumanHandPoseRequest) SupportedJointNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of human hand joint names that are supported by a given request object configured with a specific revision. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNHumanHandPoseObservationJointName symbols that are supported by the request revision, or nil if a failure occurs.

func (*VNDetectHumanHandPoseRequest) SupportedJointsGroupNamesAndReturnError

func (o *VNDetectHumanHandPoseRequest) SupportedJointsGroupNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of human hand joints group names that are supported by a given request object configured with a specific revision. @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @return An array of VNHumanHandPoseObservationJointsGroupName symbols that are supported by the request revision, or nil if a failure occurs.

type VNDetectHumanRectanglesRequest

type VNDetectHumanRectanglesRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetecthumanrectanglesrequest

func VNDetectHumanRectanglesRequestFromID

func VNDetectHumanRectanglesRequestFromID(id objc.ID) *VNDetectHumanRectanglesRequest

func (*VNDetectHumanRectanglesRequest) SetUpperBodyOnly

func (o *VNDetectHumanRectanglesRequest) SetUpperBodyOnly(upperBodyOnly bool)

func (*VNDetectHumanRectanglesRequest) UpperBodyOnly

func (o *VNDetectHumanRectanglesRequest) UpperBodyOnly() bool

@brief Boolean property to specify whether the human upper body or full body needs to be detected. The default is YES, meaning the request is setup to detect upper body only

type VNDetectRectanglesRequest

type VNDetectRectanglesRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest

func VNDetectRectanglesRequestFromID

func VNDetectRectanglesRequestFromID(id objc.ID) *VNDetectRectanglesRequest

func (*VNDetectRectanglesRequest) MaximumAspectRatio

func (o *VNDetectRectanglesRequest) MaximumAspectRatio() float32

@brief Specifies the maximum aspect ratio of the rectangle(s) to look for, range [0.0, 1.0], default 1.0

func (*VNDetectRectanglesRequest) MaximumObservations

func (o *VNDetectRectanglesRequest) MaximumObservations() uint

@brief Specifies the maximum number of rectangles to be returned. The default is 1. Setting this property to 0 will allow an unlimited number of observations to be returned.

func (*VNDetectRectanglesRequest) MinimumAspectRatio

func (o *VNDetectRectanglesRequest) MinimumAspectRatio() float32

@brief Specifies the minimum aspect ratio of the rectangle(s) to look for, range [0.0, 1.0], default 0.5

func (*VNDetectRectanglesRequest) MinimumConfidence

func (o *VNDetectRectanglesRequest) MinimumConfidence() float32

@brief Specifies a minimum confidence score, range [0.0, 1.0], default 0.0. Any rectangles with a lower confidence score will not be returned.

func (*VNDetectRectanglesRequest) MinimumSize

func (o *VNDetectRectanglesRequest) MinimumSize() float32

@brief Specifies the minimum size of the rectangle to be detected, as a proportion of the smallest dimension, range [0.0, 1.0], default .2. Any smaller rectangles that may have been detected will not be returned.

func (*VNDetectRectanglesRequest) QuadratureTolerance

func (o *VNDetectRectanglesRequest) QuadratureTolerance() float32

@brief Specifies the maximum number of degrees a rectangle corner angle can deviate from 90 degrees, range [0,45], default 30

func (*VNDetectRectanglesRequest) SetMaximumAspectRatio

func (o *VNDetectRectanglesRequest) SetMaximumAspectRatio(maximumAspectRatio float32)

func (*VNDetectRectanglesRequest) SetMaximumObservations

func (o *VNDetectRectanglesRequest) SetMaximumObservations(maximumObservations uint)

func (*VNDetectRectanglesRequest) SetMinimumAspectRatio

func (o *VNDetectRectanglesRequest) SetMinimumAspectRatio(minimumAspectRatio float32)

func (*VNDetectRectanglesRequest) SetMinimumConfidence

func (o *VNDetectRectanglesRequest) SetMinimumConfidence(minimumConfidence float32)

func (*VNDetectRectanglesRequest) SetMinimumSize

func (o *VNDetectRectanglesRequest) SetMinimumSize(minimumSize float32)

func (*VNDetectRectanglesRequest) SetQuadratureTolerance

func (o *VNDetectRectanglesRequest) SetQuadratureTolerance(quadratureTolerance float32)

type VNDetectTextRectanglesRequest

type VNDetectTextRectanglesRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetecttextrectanglesrequest

func VNDetectTextRectanglesRequestFromID

func VNDetectTextRectanglesRequestFromID(id objc.ID) *VNDetectTextRectanglesRequest

func (*VNDetectTextRectanglesRequest) ReportCharacterBoxes

func (o *VNDetectTextRectanglesRequest) ReportCharacterBoxes() bool

@brief Specify whether or not the bounding boxes of individual characters should also be returned in the resultant VNTextObservations. Default is NO.

func (*VNDetectTextRectanglesRequest) SetReportCharacterBoxes

func (o *VNDetectTextRectanglesRequest) SetReportCharacterBoxes(reportCharacterBoxes bool)

type VNDetectTrajectoriesRequest

type VNDetectTrajectoriesRequest struct {
	VNStatefulRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest

func VNDetectTrajectoriesRequestFromID

func VNDetectTrajectoriesRequestFromID(id objc.ID) *VNDetectTrajectoriesRequest

func (*VNDetectTrajectoriesRequest) InitWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler

func (o *VNDetectTrajectoriesRequest) InitWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler(frameAnalysisSpacing coremedia.CMTime, trajectoryLength int, completionHandler func(*VNRequest, unsafe.Pointer)) *VNDetectTrajectoriesRequest

@brief Create a new request that will detect the trajectory of a shape in motion. @param frameAnalysisSpacing The reciprocal of the maximum rate at which buffers will be processed. The request will not process buffers that fall within the frameAnalysisSpacing after it has performed the analysis. The analysis is not done by wall time but by analysis of the time stamps of the samplebuffers being processed. This property is for instance useful to throttle the processing on slower devices. If this is set to kCMTimeZero then no frames get skipped in the analysis. @param trajectoryLength The number of points required to analyze a parabola that indicates a trajectory. Must be at least 5. @param completionHandler The block to be invoked after the request has completed its processing. The completion handler gets executed on the same dispatch queue as the request being executed.

func (*VNDetectTrajectoriesRequest) MaximumObjectSize deprecated

func (o *VNDetectTrajectoriesRequest) MaximumObjectSize() float32

Deprecated: since macOS 11.0.

func (*VNDetectTrajectoriesRequest) MinimumObjectSize deprecated

func (o *VNDetectTrajectoriesRequest) MinimumObjectSize() float32

Deprecated: since macOS 11.0.

func (*VNDetectTrajectoriesRequest) ObjectMaximumNormalizedRadius

func (o *VNDetectTrajectoriesRequest) ObjectMaximumNormalizedRadius() float32

@brief Specifies the maximum radius of the bounding circle of the object to be tracked. This can be used to filter out unwanted trajectories from larger objects moving through the scene. The default is 1.0, which means no filtering is applied. Changing the maximum from frame to frame can produce eratic trajectories as objects will either disappear or be added to the tracking base on this filtering. The size is specified in normalized coordinates.

func (*VNDetectTrajectoriesRequest) ObjectMinimumNormalizedRadius

func (o *VNDetectTrajectoriesRequest) ObjectMinimumNormalizedRadius() float32

@brief Specifies the minimum radius of the bounding circle of the object to be tracked. This can be used to filter out noise and small objects. The default is 0.0, which means no filtering is applied. Changing the property from frame to frame can produce eratic trajectories as objects will either disappear or be added to the tracking base on this filtering. The value is specified in normalized coordinates.

func (*VNDetectTrajectoriesRequest) SetMaximumObjectSize deprecated

func (o *VNDetectTrajectoriesRequest) SetMaximumObjectSize(maximumObjectSize float32)

Deprecated: since macOS 11.0.

func (*VNDetectTrajectoriesRequest) SetMinimumObjectSize deprecated

func (o *VNDetectTrajectoriesRequest) SetMinimumObjectSize(minimumObjectSize float32)

Deprecated: since macOS 11.0.

func (*VNDetectTrajectoriesRequest) SetObjectMaximumNormalizedRadius

func (o *VNDetectTrajectoriesRequest) SetObjectMaximumNormalizedRadius(objectMaximumNormalizedRadius float32)

func (*VNDetectTrajectoriesRequest) SetObjectMinimumNormalizedRadius

func (o *VNDetectTrajectoriesRequest) SetObjectMinimumNormalizedRadius(objectMinimumNormalizedRadius float32)

func (*VNDetectTrajectoriesRequest) SetTargetFrameTime

func (o *VNDetectTrajectoriesRequest) SetTargetFrameTime(targetFrameTime coremedia.CMTime)

func (*VNDetectTrajectoriesRequest) TargetFrameTime

func (o *VNDetectTrajectoriesRequest) TargetFrameTime() coremedia.CMTime

@brief Specifies the desired target frame time for processing trajectory detection. This can be used for real-time processing of frames, which requires execution with a specific amount of time. The target frame time is evaluated from frame-to-frame. If processing takes longer than this target frame time for the currect frame, it will attempt to reduce the amount of time taken by reducing the accuracy (down to a set minimum) for the next frame. If a frame takes less time than this target, then accuracy of the next frame will be increased (up to a set maximum). The default value is kCMTimeIndefinite, meaning accuracy stays at the predefined maximum.

func (*VNDetectTrajectoriesRequest) TrajectoryLength

func (o *VNDetectTrajectoriesRequest) TrajectoryLength() int

@brief The number of points required to analyze a parabola that indicates a trajectory.

type VNDetectedObjectObservation

type VNDetectedObjectObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetectedobjectobservation

func VNDetectedObjectObservationFromID

func VNDetectedObjectObservationFromID(id objc.ID) *VNDetectedObjectObservation

func VNDetectedObjectObservationObservationWithBoundingBox

func VNDetectedObjectObservationObservationWithBoundingBox(boundingBox corefoundation.CGRect) *VNDetectedObjectObservation

@brief create a new VNDetectedObjectObservation with a normalized bounding box and a confidence of 1.0.

func VNDetectedObjectObservationObservationWithRequestRevisionBoundingBox

func VNDetectedObjectObservationObservationWithRequestRevisionBoundingBox(requestRevision uint, boundingBox corefoundation.CGRect) *VNDetectedObjectObservation

func (*VNDetectedObjectObservation) BoundingBox

@brief The bounding box of the detected object. The coordinates are normalized to the dimensions of the processed image, with the origin at the image's lower-left corner.

func (*VNDetectedObjectObservation) GlobalSegmentationMask

func (o *VNDetectedObjectObservation) GlobalSegmentationMask() *VNPixelBufferObservation

@brief The resulting CVPixelBuffer from requests that generate a segmentation mask for the entire image.

type VNDetectedPoint

type VNDetectedPoint struct {
	VNPoint
}

Apple documentation: https://developer.apple.com/documentation/vision/vndetectedpoint

func VNDetectedPointFromID

func VNDetectedPointFromID(id objc.ID) *VNDetectedPoint

func (*VNDetectedPoint) Confidence

func (o *VNDetectedPoint) Confidence() float32

type VNElementType

type VNElementType uint64
const (
	VNElementTypeUnknown VNElementType = 0
	VNElementTypeFloat   VNElementType = 1
	VNElementTypeDouble  VNElementType = 2
)

func (VNElementType) String

func (e VNElementType) String() string

type VNErrorCode

type VNErrorCode int64
const (
	VNErrorTuriCoreErrorCode        VNErrorCode = -1
	VNErrorOK                       VNErrorCode = 0
	VNErrorRequestCancelled         VNErrorCode = 1
	VNErrorInvalidFormat            VNErrorCode = 2
	VNErrorOperationFailed          VNErrorCode = 3
	VNErrorOutOfBoundsError         VNErrorCode = 4
	VNErrorInvalidOption            VNErrorCode = 5
	VNErrorIOError                  VNErrorCode = 6
	VNErrorMissingOption            VNErrorCode = 7
	VNErrorNotImplemented           VNErrorCode = 8
	VNErrorInternalError            VNErrorCode = 9
	VNErrorOutOfMemory              VNErrorCode = 10
	VNErrorUnknownError             VNErrorCode = 11
	VNErrorInvalidOperation         VNErrorCode = 12
	VNErrorInvalidImage             VNErrorCode = 13
	VNErrorInvalidArgument          VNErrorCode = 14
	VNErrorInvalidModel             VNErrorCode = 15
	VNErrorUnsupportedRevision      VNErrorCode = 16
	VNErrorDataUnavailable          VNErrorCode = 17
	VNErrorTimeStampNotFound        VNErrorCode = 18
	VNErrorUnsupportedRequest       VNErrorCode = 19
	VNErrorTimeout                  VNErrorCode = 20
	VNErrorUnsupportedComputeStage  VNErrorCode = 21
	VNErrorUnsupportedComputeDevice VNErrorCode = 22
)

func (VNErrorCode) String

func (e VNErrorCode) String() string

type VNFaceLandmarkRegion

type VNFaceLandmarkRegion struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnfacelandmarkregion

func VNFaceLandmarkRegionFromID

func VNFaceLandmarkRegionFromID(id objc.ID) *VNFaceLandmarkRegion

func (*VNFaceLandmarkRegion) PointCount

func (o *VNFaceLandmarkRegion) PointCount() uint

type VNFaceLandmarkRegion2D

type VNFaceLandmarkRegion2D struct {
	VNFaceLandmarkRegion
}

Apple documentation: https://developer.apple.com/documentation/vision/vnfacelandmarkregion2d

func VNFaceLandmarkRegion2DFromID

func VNFaceLandmarkRegion2DFromID(id objc.ID) *VNFaceLandmarkRegion2D

func (*VNFaceLandmarkRegion2D) NormalizedPoints

func (o *VNFaceLandmarkRegion2D) NormalizedPoints() unsafe.Pointer

@brief Obtains the array of normalized landmark points. @discussion Provides the address of a buffer containing the array of CGPoints representing the landmark points. This buffer is owned by the target object and is guaranteed to exist as long as the VNFaceLandmarkRegion2D does. @return the address of the array of pointCount points.

func (*VNFaceLandmarkRegion2D) PointsClassification

func (o *VNFaceLandmarkRegion2D) PointsClassification() VNPointsClassification

@brief Describes how to interpret the points provided by the region.

func (*VNFaceLandmarkRegion2D) PointsInImageOfSize

func (o *VNFaceLandmarkRegion2D) PointsInImageOfSize(imageSize corefoundation.CGSize) *corefoundation.CGPoint

@brief Provides the array of landmark points in the coordinate space of a specific image size. @discussion Provides the address of a buffer containing the array of CGPoints representing the landmark points in the coordinate space of a specific image size. This buffer is owned by the target object and is guaranteed to exist as long as the VNFaceLandmarkRegion2D does. @param imageSize The pixel dimensions of the image in which the landmark points are being presented. @return the address of the array of pointCount points, or NULL if the conversion could not take place.

func (*VNFaceLandmarkRegion2D) PrecisionEstimatesPerPoint

func (o *VNFaceLandmarkRegion2D) PrecisionEstimatesPerPoint() *foundation.NSArray[*foundation.NSNumber]

@brief Obtains the array of accuracy placement estimates per landmark point. @discussion Provides the NSArray object containing landmarks accuracy placement estimates per landmark point. This property is only populated when VNDetectFaceLandmarksRequest object is configured with VNRequestFaceLandmarksConstellation76Points. It is set to nil for other constellations @return NSArray object of NSNumber(s) initialized to floating point values.

type VNFaceLandmarks

type VNFaceLandmarks struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnfacelandmarks

func VNFaceLandmarksFromID

func VNFaceLandmarksFromID(id objc.ID) *VNFaceLandmarks

func (*VNFaceLandmarks) Confidence

func (o *VNFaceLandmarks) Confidence() float32

type VNFaceLandmarks2D

type VNFaceLandmarks2D struct {
	VNFaceLandmarks
}

Apple documentation: https://developer.apple.com/documentation/vision/vnfacelandmarks2d

func VNFaceLandmarks2DFromID

func VNFaceLandmarks2DFromID(id objc.ID) *VNFaceLandmarks2D

func (*VNFaceLandmarks2D) AllPoints

func (o *VNFaceLandmarks2D) AllPoints() *VNFaceLandmarkRegion2D

@brief allPoints the region containing all face landmark points.

func (*VNFaceLandmarks2D) FaceContour

func (o *VNFaceLandmarks2D) FaceContour() *VNFaceLandmarkRegion2D

@brief faceContour the region containing the points that describe the face contour from cheek over chin to cheek.

func (*VNFaceLandmarks2D) InnerLips

func (o *VNFaceLandmarks2D) InnerLips() *VNFaceLandmarkRegion2D

@brief innerLips the region containing the points describing the outline of the space between the of the lips.

func (*VNFaceLandmarks2D) LeftEye

@brief leftEye the region containing the points describing the outline of the left eye.

func (*VNFaceLandmarks2D) LeftEyebrow

func (o *VNFaceLandmarks2D) LeftEyebrow() *VNFaceLandmarkRegion2D

@brief leftEyebrow the region containing the points describing the trace of the left eyebrow.

func (*VNFaceLandmarks2D) LeftPupil

func (o *VNFaceLandmarks2D) LeftPupil() *VNFaceLandmarkRegion2D

@brief leftPupil the region containing the point where the left pupil is located. This value may be inaccurate if the face isBlinking.

func (*VNFaceLandmarks2D) MedianLine

func (o *VNFaceLandmarks2D) MedianLine() *VNFaceLandmarkRegion2D

@brief medianLine the region containing the points describing the trace of the center line of the face.

func (*VNFaceLandmarks2D) Nose

@brief nose the region containing the points describing the outline of the nose.

func (*VNFaceLandmarks2D) NoseCrest

func (o *VNFaceLandmarks2D) NoseCrest() *VNFaceLandmarkRegion2D

@brief noseCrest the region containing the points describing the trace of the center crest of the nose.

func (*VNFaceLandmarks2D) OuterLips

func (o *VNFaceLandmarks2D) OuterLips() *VNFaceLandmarkRegion2D

@brief outer lips the region containing the points describing the outline of the outside of the lips.

func (*VNFaceLandmarks2D) RightEye

@brief rightEye the region containing the points describing the outline of the right eye.

func (*VNFaceLandmarks2D) RightEyebrow

func (o *VNFaceLandmarks2D) RightEyebrow() *VNFaceLandmarkRegion2D

@brief rightEyebrow the region containing the points describing the trace of the right eyebrow.

func (*VNFaceLandmarks2D) RightPupil

func (o *VNFaceLandmarks2D) RightPupil() *VNFaceLandmarkRegion2D

@brief rightPupil the region containing the point where the right pupil is located. This value may be inaccurate if the face isBlinking.

type VNFaceObservation

type VNFaceObservation struct {
	VNDetectedObjectObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnfaceobservation

func VNFaceObservationFaceObservationWithRequestRevisionBoundingBoxRollYaw

func VNFaceObservationFaceObservationWithRequestRevisionBoundingBoxRollYaw(requestRevision uint, boundingBox corefoundation.CGRect, roll *foundation.NSNumber, yaw *foundation.NSNumber) *VNFaceObservation

@brief Create a new VNFaceObservation with a normalized bounding box, roll and yaw. @param requestRevision The revision of the VNDetectFaceRectanglesRequest that provided the bounding box. If this observation is being created with data that did not originate from a Vision request, this parameter should be VNRequestRevisionUnspecified. @param roll The roll angle of the face, reported in radians. A positive angle corresponds to counterclockwise direction, range [-Pi, Pi). If no roll information is available, this parameter should be nil. @param yaw The yaw angle of the face, reported in radians. A positive angle corresponds to counterclockwise direction, range [-Pi/2, Pi/2). If no yaw information is available, this parameter should be nil. @param pitch The pitch angle of the face, reported in radians. A positive angle corresponds to nodding head down direction, range [-Pi/2, Pi/2]. If no pitch information is available, this parameter should be nil. Deprecated: since macOS 12.0.

func VNFaceObservationFaceObservationWithRequestRevisionBoundingBoxRollYawPitch

func VNFaceObservationFaceObservationWithRequestRevisionBoundingBoxRollYawPitch(requestRevision uint, boundingBox corefoundation.CGRect, roll *foundation.NSNumber, yaw *foundation.NSNumber, pitch *foundation.NSNumber) *VNFaceObservation

func VNFaceObservationFromID

func VNFaceObservationFromID(id objc.ID) *VNFaceObservation

func (*VNFaceObservation) FaceCaptureQuality

func (o *VNFaceObservation) FaceCaptureQuality() *foundation.NSNumber

@brief The capture quality of the face as a normalized value between 0.0 and 1.0 that can be used to compare the quality of the face in terms of it capture attributes (lighting, blur, position). This score can be used to compare the capture quality of a face against other captures of the same face in a given set.

func (*VNFaceObservation) Landmarks

func (o *VNFaceObservation) Landmarks() *VNFaceLandmarks2D

@brief The face landmarks populated by the VNDetectFaceLandmarksRequest. This is set to nil if only a VNDetectFaceRectanglesRequest was performed.

func (*VNFaceObservation) Pitch

@brief Face pitch angle populated by VNDetectFaceRectanglesRequest. The pitch is reported in radians, positive angle corresponds to nodding head down direction, range [-Pi/2, Pi/2]. nil value indicates that the pitch angle hasn't been computed

func (*VNFaceObservation) Roll

@brief Face roll angle populated by VNDetectFaceRectanglesRequest. The roll is reported in radians, positive angle corresponds to counterclockwise direction, range [-Pi, Pi). nil value indicates that the roll angle hasn't been computed

func (*VNFaceObservation) Yaw

@brief Face yaw angle populated by VNDetectFaceRectanglesRequest. The yaw is reported in radians, positive angle corresponds to counterclockwise direction, range [-Pi/2, Pi/2]. nil value indicates that the yaw angle hasn't been computed

type VNFaceObservationAccepting

type VNFaceObservationAccepting interface {
	InputFaceObservations() *foundation.NSArray[*VNFaceObservation]
	SetInputFaceObservations(inputFaceObservations *foundation.NSArray[*VNFaceObservation])
}

VNFaceObservationAccepting wraps the ObjC protocol VNFaceObservationAccepting.

type VNFeaturePrintObservation

type VNFeaturePrintObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnfeatureprintobservation

func VNFeaturePrintObservationFromID

func VNFeaturePrintObservationFromID(id objc.ID) *VNFeaturePrintObservation

func (*VNFeaturePrintObservation) ComputeDistanceToFeaturePrintObservationError

func (o *VNFeaturePrintObservation) ComputeDistanceToFeaturePrintObservationError(outDistance *float32, featurePrint *VNFeaturePrintObservation) (bool, error)

@brief Computes the distance between two observations. @discussion The larger the distance the more dissimlar the feature prints are. In case of an error this method returns false with an error describing the error condition, for instance comparing two non-comparable feature prints.

func (*VNFeaturePrintObservation) Data

@brief The feature print data.

func (*VNFeaturePrintObservation) ElementCount

func (o *VNFeaturePrintObservation) ElementCount() uint

@brief The total number of elements in the data.

func (*VNFeaturePrintObservation) ElementType

func (o *VNFeaturePrintObservation) ElementType() VNElementType

@brief The type of each element in the data.

type VNGenerateImageFeaturePrintRequest

type VNGenerateImageFeaturePrintRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vngenerateimagefeatureprintrequest

func VNGenerateImageFeaturePrintRequestFromID

func VNGenerateImageFeaturePrintRequestFromID(id objc.ID) *VNGenerateImageFeaturePrintRequest

func (*VNGenerateImageFeaturePrintRequest) ImageCropAndScaleOption

@brief Determine what type of croping and scaling action should be applied to the image before generating the feature print. @discussion The default value for this property is `VNImageCropAndScaleOptionScaleFill`.

func (*VNGenerateImageFeaturePrintRequest) SetImageCropAndScaleOption

func (o *VNGenerateImageFeaturePrintRequest) SetImageCropAndScaleOption(imageCropAndScaleOption VNImageCropAndScaleOption)

type VNGenerateOpticalFlowRequest

type VNGenerateOpticalFlowRequest struct {
	VNTargetedImageRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vngenerateopticalflowrequest

func VNGenerateOpticalFlowRequestFromID

func VNGenerateOpticalFlowRequestFromID(id objc.ID) *VNGenerateOpticalFlowRequest

func (*VNGenerateOpticalFlowRequest) ComputationAccuracy

@brief The level of accuracy used to compute the optical flow. Default is VNGenerateOpticalFlowRequestComputationAccuracyMedium. @discussion The computational time typically trends with the accuracy level. This parameter allows for selective tuning by the client application.

func (*VNGenerateOpticalFlowRequest) KeepNetworkOutput

func (o *VNGenerateOpticalFlowRequest) KeepNetworkOutput() bool

@brief Setting this to YES will keep the raw pixel buffer coming from the the ML network. The default is NO. @discussion When set to YES, the outputPixelFormat is ignored. Setting this for revision 1 is a no-op as it is not ML-based.

func (*VNGenerateOpticalFlowRequest) OutputPixelFormat

func (o *VNGenerateOpticalFlowRequest) OutputPixelFormat() uint

@brief Pixel format type of the output buffer. Valid values are kCVPixelFormatType_TwoComponent32Float and kCVPixelFormatType_TwoComponent16Half. Default is kCVPixelFormatType_TwoComponent32Float.

func (*VNGenerateOpticalFlowRequest) SetComputationAccuracy

func (o *VNGenerateOpticalFlowRequest) SetComputationAccuracy(computationAccuracy VNGenerateOpticalFlowRequestComputationAccuracy)

func (*VNGenerateOpticalFlowRequest) SetKeepNetworkOutput

func (o *VNGenerateOpticalFlowRequest) SetKeepNetworkOutput(keepNetworkOutput bool)

func (*VNGenerateOpticalFlowRequest) SetOutputPixelFormat

func (o *VNGenerateOpticalFlowRequest) SetOutputPixelFormat(outputPixelFormat uint)

type VNGenerateOpticalFlowRequestComputationAccuracy

type VNGenerateOpticalFlowRequestComputationAccuracy uint64
const (
	VNGenerateOpticalFlowRequestComputationAccuracyLow      VNGenerateOpticalFlowRequestComputationAccuracy = 0
	VNGenerateOpticalFlowRequestComputationAccuracyMedium   VNGenerateOpticalFlowRequestComputationAccuracy = 1
	VNGenerateOpticalFlowRequestComputationAccuracyHigh     VNGenerateOpticalFlowRequestComputationAccuracy = 2
	VNGenerateOpticalFlowRequestComputationAccuracyVeryHigh VNGenerateOpticalFlowRequestComputationAccuracy = 3
)

func (VNGenerateOpticalFlowRequestComputationAccuracy) String

type VNGeneratePersonSegmentationRequest

type VNGeneratePersonSegmentationRequest struct {
	VNStatefulRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vngeneratepersonsegmentationrequest

func VNGeneratePersonSegmentationRequestFromID

func VNGeneratePersonSegmentationRequestFromID(id objc.ID) *VNGeneratePersonSegmentationRequest

func VNGeneratePersonSegmentationRequestNew

func VNGeneratePersonSegmentationRequestNew() *VNGeneratePersonSegmentationRequest

func (*VNGeneratePersonSegmentationRequest) Init

func (*VNGeneratePersonSegmentationRequest) InitWithCompletionHandler

func (o *VNGeneratePersonSegmentationRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNGeneratePersonSegmentationRequest

func (*VNGeneratePersonSegmentationRequest) OutputPixelFormat

func (o *VNGeneratePersonSegmentationRequest) OutputPixelFormat() uint

@brief Pixel format type of the output buffer. Valid values are kCVPixelFormatType_OneComponent32Float, kCVPixelFormatType_OneComponent16Half, and kCVPixelFormatType_OneComponent8. Default is kCVPixelFormatType_OneComponent8.

func (*VNGeneratePersonSegmentationRequest) QualityLevel

@brief The quality level selects which techniques will be used during the person segmentation. There are trade-offs between performance and accuracy.

func (*VNGeneratePersonSegmentationRequest) SetOutputPixelFormat

func (o *VNGeneratePersonSegmentationRequest) SetOutputPixelFormat(outputPixelFormat uint)

func (*VNGeneratePersonSegmentationRequest) SetQualityLevel

func (*VNGeneratePersonSegmentationRequest) SupportedOutputPixelFormatsAndReturnError

func (o *VNGeneratePersonSegmentationRequest) SupportedOutputPixelFormatsAndReturnError() (*foundation.NSArray[*foundation.NSNumber], error)

@brief Obtain the collection of supported output pixel formats for the configured request.

type VNGeneratePersonSegmentationRequestQualityLevel

type VNGeneratePersonSegmentationRequestQualityLevel uint64
const (
	VNGeneratePersonSegmentationRequestQualityLevelAccurate VNGeneratePersonSegmentationRequestQualityLevel = 0
	VNGeneratePersonSegmentationRequestQualityLevelBalanced VNGeneratePersonSegmentationRequestQualityLevel = 1
	VNGeneratePersonSegmentationRequestQualityLevelFast     VNGeneratePersonSegmentationRequestQualityLevel = 2
)

func (VNGeneratePersonSegmentationRequestQualityLevel) String

type VNGeometryUtils

type VNGeometryUtils struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vngeometryutils

func VNGeometryUtilsFromID

func VNGeometryUtilsFromID(id objc.ID) *VNGeometryUtils

type VNHorizonObservation

type VNHorizonObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnhorizonobservation

func VNHorizonObservationFromID

func VNHorizonObservationFromID(id objc.ID) *VNHorizonObservation

func (*VNHorizonObservation) Angle

func (o *VNHorizonObservation) Angle() float64

@brief Angle of the observed horizon.

func (*VNHorizonObservation) Transform

@brief Transform applied to the detected horizon in image coordinates. @discussion This is the transform in image coordinates and not a normalized transform.

func (*VNHorizonObservation) TransformForImageWidthHeight

func (o *VNHorizonObservation) TransformForImageWidthHeight(width uint, height uint) corefoundation.CGAffineTransform

@brief Creates a transform for the specified width and height.

type VNHumanBodyPose3DObservation

type VNHumanBodyPose3DObservation struct {
	VNRecognizedPoints3DObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnhumanbodypose3dobservation

func VNHumanBodyPose3DObservationFromID

func VNHumanBodyPose3DObservationFromID(id objc.ID) *VNHumanBodyPose3DObservation

func (*VNHumanBodyPose3DObservation) AvailableJointNames

@brief All of the joint names available in the observation.

func (*VNHumanBodyPose3DObservation) AvailableJointsGroupNames

func (o *VNHumanBodyPose3DObservation) AvailableJointsGroupNames() *foundation.NSArray[*foundation.NSString]

@brief All of the joints group names available in the observation.

func (*VNHumanBodyPose3DObservation) BodyHeight

func (o *VNHumanBodyPose3DObservation) BodyHeight() float32

@brief Estimated human height, in meters. @note A measured height will be returned in meters if `heightEstimation` is `VNHumanBodyPose3DObservationHeightEstimationMeasured`, otherwise reference height of 1.8 meters is returned for `VNHumanBodyPose3DObservationHeightEstimationReference`

func (*VNHumanBodyPose3DObservation) CameraOriginMatrix

func (o *VNHumanBodyPose3DObservation) CameraOriginMatrix() unsafe.Pointer

@brief A transform from root (at hip) to Camera as projection center.

func (*VNHumanBodyPose3DObservation) GetCameraRelativePositionForJointNameError

func (o *VNHumanBodyPose3DObservation) GetCameraRelativePositionForJointNameError(modelPositionOut unsafe.Pointer, jointName *foundation.NSString) (bool, error)

@brief Obtain position relative to camera for a named human body joint in meters @param modelPositionOut A reference to a simd_float4x4 that will be updated to contain position of a joint relative to the camera if successful @param jointName The name of the human body joint @return BOOL indicating success of determing position

func (*VNHumanBodyPose3DObservation) HeightEstimation

@brief Technique used to estimate body height. `VNHumanBodyPose3DObservationHeightEstimationMeasured` indicates`bodyHeight` returns measured height in meters more accurate to true world height. `VNHumanBodyPose3DObservationHeightEstimationReference` indicates `bodyHeight` returns reference height of 1.8 m

func (*VNHumanBodyPose3DObservation) ParentJointNameForJointName

func (o *VNHumanBodyPose3DObservation) ParentJointNameForJointName(jointName *foundation.NSString) *foundation.NSString

@brief Obtain the parent joint of a specified joint @param jointName The name of the human body joint @return The name of the parent joint

func (*VNHumanBodyPose3DObservation) PointInImageForJointNameError

func (o *VNHumanBodyPose3DObservation) PointInImageForJointNameError(jointName *foundation.NSString) (*VNPoint, error)

@brief Obtain 2D point relative to the input image for named human body joint @param jointName The name of the human body joint @return A projection of the determined 3D position onto the original 2D image in normalized, lower left origin coordinates

func (*VNHumanBodyPose3DObservation) RecognizedPointForJointNameError

func (o *VNHumanBodyPose3DObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNHumanBodyRecognizedPoint3D, error)

func (*VNHumanBodyPose3DObservation) RecognizedPointsForJointsGroupNameError

func (o *VNHumanBodyPose3DObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNHumanBodyRecognizedPoint3D], error)

@brief Obtains the collection of joints associated with a named human body joints group. @discussion The obtained collection is a dictionary that provides the mapping of human joint names to the recognized point. @param jointsGroupName The name of the human body joints group. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return a dictionary of recognized points in the group, or nil if an error was encountered.

type VNHumanBodyPose3DObservationHeightEstimation

type VNHumanBodyPose3DObservationHeightEstimation int64
const (
	VNHumanBodyPose3DObservationHeightEstimationReference VNHumanBodyPose3DObservationHeightEstimation = 0
	VNHumanBodyPose3DObservationHeightEstimationMeasured  VNHumanBodyPose3DObservationHeightEstimation = 1
)

func (VNHumanBodyPose3DObservationHeightEstimation) String

type VNHumanBodyPoseObservation

type VNHumanBodyPoseObservation struct {
	VNRecognizedPointsObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation

func VNHumanBodyPoseObservationFromID

func VNHumanBodyPoseObservationFromID(id objc.ID) *VNHumanBodyPoseObservation

func (*VNHumanBodyPoseObservation) AvailableJointNames

func (o *VNHumanBodyPoseObservation) AvailableJointNames() *foundation.NSArray[*foundation.NSString]

@brief All of the joint names available in the observation.

func (*VNHumanBodyPoseObservation) AvailableJointsGroupNames

func (o *VNHumanBodyPoseObservation) AvailableJointsGroupNames() *foundation.NSArray[*foundation.NSString]

@brief All of the joints group names available in the observation.

func (*VNHumanBodyPoseObservation) RecognizedPointForJointNameError

func (o *VNHumanBodyPoseObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNRecognizedPoint, error)

@brief Obtain a specific normalized point for a named human body joint. @param jointName The name of the human body joint. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return the recognized point, or nil if the point could not be obtained.

func (*VNHumanBodyPoseObservation) RecognizedPointsForJointsGroupNameError

func (o *VNHumanBodyPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint], error)

@brief Obtains the collection of points associated with a named human body joints group. @discussion The obtained collection is a dictionary that provides the mapping of human body join names to the recognized point. @param jointsGroupName The name of the human body joints group. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return a dictionary of recognized points in the group, or nil if an error was encountered.

type VNHumanBodyRecognizedPoint3D

type VNHumanBodyRecognizedPoint3D struct {
	VNRecognizedPoint3D
}

@brief

Apple documentation: https://developer.apple.com/documentation/vision/vnhumanbodyrecognizedpoint3d

func VNHumanBodyRecognizedPoint3DFromID

func VNHumanBodyRecognizedPoint3DFromID(id objc.ID) *VNHumanBodyRecognizedPoint3D

func (*VNHumanBodyRecognizedPoint3D) LocalPosition

func (o *VNHumanBodyRecognizedPoint3D) LocalPosition() unsafe.Pointer

func (*VNHumanBodyRecognizedPoint3D) ParentJoint

type VNHumanHandPoseObservation

type VNHumanHandPoseObservation struct {
	VNRecognizedPointsObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnhumanhandposeobservation

func VNHumanHandPoseObservationFromID

func VNHumanHandPoseObservationFromID(id objc.ID) *VNHumanHandPoseObservation

func (*VNHumanHandPoseObservation) AvailableJointNames

func (o *VNHumanHandPoseObservation) AvailableJointNames() *foundation.NSArray[*foundation.NSString]

@brief All of the joint names available in the observation.

func (*VNHumanHandPoseObservation) AvailableJointsGroupNames

func (o *VNHumanHandPoseObservation) AvailableJointsGroupNames() *foundation.NSArray[*foundation.NSString]

@brief All of the joints group names available in the observation.

func (*VNHumanHandPoseObservation) Chirality

func (o *VNHumanHandPoseObservation) Chirality() VNChirality

@brief The chirality of the hand.

func (*VNHumanHandPoseObservation) RecognizedPointForJointNameError

func (o *VNHumanHandPoseObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNRecognizedPoint, error)

@brief Obtain a specific normalized point for a named human hand joint. @param jointName The name of the human hand joint. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return the recognized point, or nil if the point could not be obtained.

func (*VNHumanHandPoseObservation) RecognizedPointsForJointsGroupNameError

func (o *VNHumanHandPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint], error)

@brief Obtains the collection of points associated with a named human hand joints group. @discussion The obtained collection is a dictionary that provides the mapping of human hand join names to the recognized point. @param jointsGroupName The name of the human hand joints group. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return a dictionary of recognized points in the group, or nil if an error was encountered.

type VNHumanObservation

type VNHumanObservation struct {
	VNDetectedObjectObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnhumanobservation

func VNHumanObservationFromID

func VNHumanObservationFromID(id objc.ID) *VNHumanObservation

func (*VNHumanObservation) UpperBodyOnly

func (o *VNHumanObservation) UpperBodyOnly() bool

type VNImageAestheticsScoresObservation

type VNImageAestheticsScoresObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnimageaestheticsscoresobservation

func VNImageAestheticsScoresObservationFromID

func VNImageAestheticsScoresObservationFromID(id objc.ID) *VNImageAestheticsScoresObservation

func (*VNImageAestheticsScoresObservation) IsUtility

A Boolean value that represents images that are not necessarily of poor image quality, but may not have memorable or exciting content.

func (*VNImageAestheticsScoresObservation) OverallScore

func (o *VNImageAestheticsScoresObservation) OverallScore() float32

A score which incorporates aesthetic score, failure score, and utility labels. This returns a value within the range of `-1` and `1`, where `-1` is least desirable and `1` is most desirable.

type VNImageAlignmentObservation

type VNImageAlignmentObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnimagealignmentobservation

func VNImageAlignmentObservationFromID

func VNImageAlignmentObservationFromID(id objc.ID) *VNImageAlignmentObservation

type VNImageBasedRequest

type VNImageBasedRequest struct {
	VNRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vnimagebasedrequest

func VNImageBasedRequestFromID

func VNImageBasedRequestFromID(id objc.ID) *VNImageBasedRequest

func (*VNImageBasedRequest) RegionOfInterest

func (o *VNImageBasedRequest) RegionOfInterest() corefoundation.CGRect

func (*VNImageBasedRequest) SetRegionOfInterest

func (o *VNImageBasedRequest) SetRegionOfInterest(regionOfInterest corefoundation.CGRect)

type VNImageCropAndScaleOption

type VNImageCropAndScaleOption uint64
const (
	VNImageCropAndScaleOptionCenterCrop           VNImageCropAndScaleOption = 0
	VNImageCropAndScaleOptionScaleFit             VNImageCropAndScaleOption = 1
	VNImageCropAndScaleOptionScaleFill            VNImageCropAndScaleOption = 2
	VNImageCropAndScaleOptionScaleFitRotate90CCW  VNImageCropAndScaleOption = 257
	VNImageCropAndScaleOptionScaleFillRotate90CCW VNImageCropAndScaleOption = 258
)

func (VNImageCropAndScaleOption) String

func (e VNImageCropAndScaleOption) String() string

type VNImageHomographicAlignmentObservation

type VNImageHomographicAlignmentObservation struct {
	VNImageAlignmentObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnimagehomographicalignmentobservation

func VNImageHomographicAlignmentObservationFromID

func VNImageHomographicAlignmentObservationFromID(id objc.ID) *VNImageHomographicAlignmentObservation

func (*VNImageHomographicAlignmentObservation) WarpTransform

type VNImageRequestHandler

type VNImageRequestHandler struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnimagerequesthandler

func VNImageRequestHandlerFromID

func VNImageRequestHandlerFromID(id objc.ID) *VNImageRequestHandler

func (*VNImageRequestHandler) InitWithCGImageOptions

@brief initWithCGImage:options creates a VNImageRequestHandler to be used for performing requests against the image passed in as a CGImageRef. @param image A CGImageRef containing the image to be used for performing the requests. The content of the image cannot be modified. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics

func (*VNImageRequestHandler) InitWithCGImageOrientationOptions

func (o *VNImageRequestHandler) InitWithCGImageOrientationOptions(image unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler

@brief initWithCGImage:options creates a VNImageRequestHandler to be used for performing requests against the image passed in as a CGImageRef. @param image A CGImageRef containing the image to be used for performing the requests. The content of the image cannot be modified. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics

func (*VNImageRequestHandler) InitWithCIImageOptions

@brief initWithCIImage:options creates a VNImageRequestHandler to be used for performing requests against the image passed in as a CIImage. @param image A CIImage containing the image to be used for performing the requests. The content of the image cannot be modified. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics @note: Request results may not be accurate in simulator due to CI's inability to render certain pixel formats in the simulator. The orientation of the original image should be applied for instance by using imageByApplyingOrientation or use the initWithCIImage:options:orientation API.

func (*VNImageRequestHandler) InitWithCIImageOrientationOptions

func (o *VNImageRequestHandler) InitWithCIImageOrientationOptions(image *coreimage.CIImage, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler

@brief initWithCIImage:options:orientation creates a VNImageRequestHandler to be used for performing requests against the image passed in as a CIImage. @param image A CIImage containing the image to be used for performing the requests. The content of the image cannot be modified. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics @note: Request results may not be accurate in simulator due to CI's inability to render certain pixel formats in the simulator

func (*VNImageRequestHandler) InitWithCMSampleBufferDepthDataOrientationOptions

func (o *VNImageRequestHandler) InitWithCMSampleBufferDepthDataOrientationOptions(sampleBuffer unsafe.Pointer, depthData *avfoundation.AVDepthData, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler

@brief Creates a VNImageRequestHandler to be used for performing requests against the image buffer contained in the CMSampleBufferRef @param sampleBuffer A CMSampleBuffer containing the imageBuffer that will be used for performing the requests. Not all types of sample buffers are supported. They need to contain a CVImageBuffer, be valid and ready. @param depthData An AVDepthData instance associated with the pixelBuffer @param orientation The orientation of the image and depth buffers based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information and should match for both buffers. @param options A dictionary with options specifying auxiliary information for the buffer/image @note CMSampleBuffers can contain metadata like camera intrinsics that will be used by algorithms supporting it unless overwritten by the options. @note: Because CoreImage is unable to render certain pixel formats in the iOS simulator, request results may not be accurate in those cases.

func (*VNImageRequestHandler) InitWithCMSampleBufferOptions

func (o *VNImageRequestHandler) InitWithCMSampleBufferOptions(sampleBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler

@brief Creates a VNImageRequestHandler to be used for performing requests against the image buffer contained in the CMSampleBufferRef @param sampleBuffer A CMSampleBuffer containing the imageBuffer that will be used for performing the requests. Not all types of sample buffers are supported. They need to contain a CVImageBuffer, be valid and ready. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics @note CMSampleBuffers can contain metadata like camera intrinsics that will be used by algorithms supporting it unless overwritten by the options.

func (*VNImageRequestHandler) InitWithCMSampleBufferOrientationOptions

func (o *VNImageRequestHandler) InitWithCMSampleBufferOrientationOptions(sampleBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler

@brief Creates a VNImageRequestHandler to be used for performing requests against the image buffer contained in the CMSampleBufferRef @param sampleBuffer A CMSampleBuffer containing the imageBuffer that will be used for performing the requests. Not all types of sample buffers are supported. They need to contain a CVImageBuffer, be valid and ready. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics @note CMSampleBuffers can contain metadata like camera intrinsics that will be used by algorithms supporting it unless overwritten by the options. @note: Because CoreImage is unable to render certain pixel formats in the iOS simulator, request results may not be accurate in those cases.

func (*VNImageRequestHandler) InitWithCVPixelBufferDepthDataOrientationOptions

func (o *VNImageRequestHandler) InitWithCVPixelBufferDepthDataOrientationOptions(pixelBuffer unsafe.Pointer, depthData *avfoundation.AVDepthData, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler

@brief initWithCVPixelBuffer:depthData:orientation:options creates a VNImageRequestHandler to be used for performing requests against the image passed in as buffer with depth information. @param pixelBuffer A CVPixelBuffer containing the image to be used for performing the requests. The content of the buffer cannot be modified for the lifetime of the VNImageRequestHandler. @param depthData An AVDepthData instance associated with the pixelBuffer @param orientation The orientation of the image and depth buffers based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information and should match for both buffers. @param options A dictionary with options specifying auxiliary information for the buffer/image

func (*VNImageRequestHandler) InitWithCVPixelBufferOptions

func (o *VNImageRequestHandler) InitWithCVPixelBufferOptions(pixelBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler

@brief initWithCVPixelBuffer:options creates a VNImageRequestHandler to be used for performing requests against the image passed in as buffer. @param pixelBuffer A CVPixelBuffer containing the image to be used for performing the requests. The content of the buffer cannot be modified for the lifetime of the VNImageRequestHandler. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics

func (*VNImageRequestHandler) InitWithCVPixelBufferOrientationOptions

func (o *VNImageRequestHandler) InitWithCVPixelBufferOrientationOptions(pixelBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler

@brief initWithCVPixelBuffer:options creates a VNImageRequestHandler to be used for performing requests against the image passed in as buffer. @param pixelBuffer A CVPixelBuffer containing the image to be used for performing the requests. The content of the buffer cannot be modified for the lifetime of the VNImageRequestHandler. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics

func (*VNImageRequestHandler) InitWithDataOptions

@brief initWithData:options creates a VNImageRequestHandler to be used for performing requests against an image contained in an NSData object. @param imageData An NSData object containing the content of the image to be used for performing the requests. See CIImage imageWithData for supported format. The content of the image cannot be modified. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics @note: Request results may not be accurate in simulator due to CI's inability to render certain pixel formats in the simulator

func (*VNImageRequestHandler) InitWithDataOrientationOptions

func (o *VNImageRequestHandler) InitWithDataOrientationOptions(imageData *foundation.NSData, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler

@brief initWithData:options creates a VNImageRequestHandler to be used for performing requests against an image contained in an NSData object. @param imageData An NSData object containing the content of the image to be used for performing the requests. See CIImage imageWithData for supported format. The content of the image cannot be modified. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics @note: Request results may not be accurate in simulator due to CI's inability to render certain pixel formats in the simulator

func (*VNImageRequestHandler) InitWithURLOptions

@brief initWithURL:options creates a VNImageRequestHandler to be used for performing requests against an image specified by it's URL @param imageURL A URL pointing at an image to be used for performing the requests. The image has to be in a format that is supported by ImageIO. The content of the image cannot be modified. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics @note: Request results may not be accurate in simulator due to CI's inability to render certain pixel formats in the simulator

func (*VNImageRequestHandler) InitWithURLOrientationOptions

func (o *VNImageRequestHandler) InitWithURLOrientationOptions(imageURL *foundation.NSURL, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler

@brief initWithURL:options creates a VNImageRequestHandler to be used for performing requests against an image specified by it's URL @param imageURL A URL pointing at an image to be used for performing the requests. The image has to be in a format that is supported by ImageIO. The content of the image cannot be modified. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the buffer/image like VNImageOptionCameraIntrinsics @note: Request results may not be accurate in simulator due to CI's inability to render certain pixel formats in the simulator

func (*VNImageRequestHandler) PerformRequestsError

func (o *VNImageRequestHandler) PerformRequestsError(requests *foundation.NSArray[*VNRequest]) (bool, error)

@brief performRequests schedules one or more VNRequests to be performed. The function returns once all requests have been finished. @discussion The results of the VNRequests as well any possible errors of the individual requests are reported in the VNRequests results and error properties. @param requests An NSArray of VNRequests that are to be performed. @param error Returns an error that happened during scheduling of the requests. Check individual requests results and errors for their respective success and failures. This parameter is optional. @return Returns true if all requests were scheduled and performed. Check individual requests results and errors for their respective success and failures.

type VNImageTranslationAlignmentObservation

type VNImageTranslationAlignmentObservation struct {
	VNImageAlignmentObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnimagetranslationalignmentobservation

func VNImageTranslationAlignmentObservationFromID

func VNImageTranslationAlignmentObservationFromID(id objc.ID) *VNImageTranslationAlignmentObservation

func (*VNImageTranslationAlignmentObservation) AlignmentTransform

type VNInstanceMaskObservation

type VNInstanceMaskObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vninstancemaskobservation

func VNInstanceMaskObservationFromID

func VNInstanceMaskObservationFromID(id objc.ID) *VNInstanceMaskObservation

func (*VNInstanceMaskObservation) AllInstances

func (o *VNInstanceMaskObservation) AllInstances() *foundation.NSIndexSet

@brief *The IndexSet that encompases all instances except the background

func (*VNInstanceMaskObservation) GenerateMaskForInstancesError

func (o *VNInstanceMaskObservation) GenerateMaskForInstancesError(instances *foundation.NSIndexSet) (unsafe.Pointer, error)

@brief The low res mask from the selected instances in the resolution of the performed analysis which is not upscaled to the image resolution. @param instances An NSIndexSet of selected instances where 0 is the background. An empty set selects all instances but the background @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. The pixel format of kCVPixelFormatType_OneComponent32Float

func (*VNInstanceMaskObservation) GenerateMaskedImageOfInstancesFromRequestHandlerCroppedToInstancesExtentError

func (o *VNInstanceMaskObservation) GenerateMaskedImageOfInstancesFromRequestHandlerCroppedToInstancesExtentError(instances *foundation.NSIndexSet, requestHandler *VNImageRequestHandler, cropResult bool) (unsafe.Pointer, error)

@brief High res image with everything but the selected instances removed to transparent black. @param instances An NSIndexSet of selected instances where 0 is the background. @param croppedToInstancesExtent Crops the image to the smallest rectangle containg all instances with remaining alpha elements. Setting this value to NO does not perform any cropping. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed.

func (*VNInstanceMaskObservation) GenerateScaledMaskForImageForInstancesFromRequestHandlerError

func (o *VNInstanceMaskObservation) GenerateScaledMaskForImageForInstancesFromRequestHandlerError(instances *foundation.NSIndexSet, requestHandler *VNImageRequestHandler) (unsafe.Pointer, error)

@brief High res mask with the selected instances preserved while everything else is removed to transparent black. @param forInstances An NSIndexSet of selected instances where 0 is the background. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed.

func (*VNInstanceMaskObservation) InstanceMask

func (o *VNInstanceMaskObservation) InstanceMask() unsafe.Pointer

@brief The resulting mask represents all instances in a mask image where 0 represents the background and all other values represent the indices of the instances identified. Note that a pixel can only correspond to one instance and not multiple instances.

type VNObservation

type VNObservation struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnobservation

func VNObservationFromID

func VNObservationFromID(id objc.ID) *VNObservation

func (*VNObservation) Confidence

func (o *VNObservation) Confidence() float32

@brief The level of confidence normalized to [0, 1] where 1 is most confident. The only exception is results coming from VNCoreMLRequest, where confidence values are forwarded as is from relevant CoreML models @discussion Confidence can always be returned as 1.0 if confidence is not supported or has no meaning

func (*VNObservation) TimeRange

func (o *VNObservation) TimeRange() coremedia.CMTimeRange

@brief The duration of the observation reporting when first detected and how long it is valid. @discussion The duration of the observation when used with a sequence of buffers. If a request does not support a timeRange or the timeRange is not known, the start time and duration will be set to 0.

func (*VNObservation) Uuid

func (o *VNObservation) Uuid() *foundation.NSUUID

@brief The unique identifier assigned to an observation.

type VNPixelBufferObservation

type VNPixelBufferObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnpixelbufferobservation

func VNPixelBufferObservationFromID

func VNPixelBufferObservationFromID(id objc.ID) *VNPixelBufferObservation

func (*VNPixelBufferObservation) FeatureName

func (o *VNPixelBufferObservation) FeatureName() *foundation.NSString

@brief The name used in the model description of the CoreML model that produced this observation allowing to correlate the observation back to the output of the model. This can be nil if the observation is not the result of a VNCoreMLRequest operation.

func (*VNPixelBufferObservation) PixelBuffer

func (o *VNPixelBufferObservation) PixelBuffer() unsafe.Pointer

@brief The resulting image from a request like VNCoreMLRequest where the model produces an image as an output.

type VNPoint

type VNPoint struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnpoint

func VNPointFromID

func VNPointFromID(id objc.ID) *VNPoint

func VNPointPointByApplyingVectorToPoint

func VNPointPointByApplyingVectorToPoint(vector *VNVector, point *VNPoint) *VNPoint

@brief Returns a new VNPoint object that is shifted by X and Y offsets of the vector. @param vector The vector offset to be applied to a source point. @param point The source point. @return the translated point.

func VNPointZeroPoint

func VNPointZeroPoint() *VNPoint

@brief Returns a VNPoint object that represents the location of (0.0, 0.0).

func (*VNPoint) DistanceToPoint

func (o *VNPoint) DistanceToPoint(point *VNPoint) float64

@brief Returns the Euclidean distance to another point. @param point The destination point. @return the Euclidean distance between the target and specified points.

func (*VNPoint) InitWithLocation

func (o *VNPoint) InitWithLocation(location corefoundation.CGPoint) *VNPoint

@brief Initializes a VNPoint object from a CGPoint.

func (*VNPoint) InitWithXY

func (o *VNPoint) InitWithXY(x float64, y float64) *VNPoint

@brief Initializes a VNPoint object from X and Y coordinates.

func (*VNPoint) Location

func (o *VNPoint) Location() corefoundation.CGPoint

@brief Returns the X and Y coordinates of the point, as CGPoint type, with respect to the origin of the coordinate system the point is defined in.

func (*VNPoint) X

func (o *VNPoint) X() float64

@brief Returns the X coordinate of the point with respect to the origin of the coordinate system the point is defined in.

func (*VNPoint) Y

func (o *VNPoint) Y() float64

@brief Returns the Y coordinate of the point with respect to the origin of the coordinate system the point is defined in.

type VNPoint3D

type VNPoint3D struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnpoint3d

func VNPoint3DFromID

func VNPoint3DFromID(id objc.ID) *VNPoint3D

func (*VNPoint3D) InitWithPosition

func (o *VNPoint3D) InitWithPosition(position unsafe.Pointer) *VNPoint3D

func (*VNPoint3D) Position

func (o *VNPoint3D) Position() unsafe.Pointer

type VNPointsClassification

type VNPointsClassification int64
const (
	VNPointsClassificationDisconnected VNPointsClassification = 0
	VNPointsClassificationOpenPath     VNPointsClassification = 1
	VNPointsClassificationClosedPath   VNPointsClassification = 2
)

func (VNPointsClassification) String

func (e VNPointsClassification) String() string

type VNRecognizeAnimalsRequest

type VNRecognizeAnimalsRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizeanimalsrequest

func VNRecognizeAnimalsRequestFromID

func VNRecognizeAnimalsRequestFromID(id objc.ID) *VNRecognizeAnimalsRequest

func (*VNRecognizeAnimalsRequest) SupportedIdentifiersAndReturnError

func (o *VNRecognizeAnimalsRequest) SupportedIdentifiersAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of identifiers supported by the target request. @discussion This method will return the collection of all possible classification identifiers that are produced by the target request based on its current state of configuration at the time of the call. @param error The address of the variable that will be populated with the error if the call fails. @return The collection of classification identifiers, or nil if a failure occurs.

type VNRecognizeTextRequest

type VNRecognizeTextRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizetextrequest

func VNRecognizeTextRequestFromID

func VNRecognizeTextRequestFromID(id objc.ID) *VNRecognizeTextRequest

func (*VNRecognizeTextRequest) AutomaticallyDetectsLanguage

func (o *VNRecognizeTextRequest) AutomaticallyDetectsLanguage() bool

@brief Language detection will try to automatically identify the script/langauge during the detection and use the appropiate model for recognition and language correction. This can be particularly helpful, if the nature of the content is unkown and with this flag being set it will for instance determine if text is latin vs chinese so you don't have to pick the language model in the first case. But as the language correction cannot always guarantee the correct detection, it is advisable to set the languages, if you have domain knowledge of what language to expect. The default value is NO. Also note that this feature is only available since VNRecognizeTextRequestRevision3 and is a no-op before that.

func (*VNRecognizeTextRequest) CustomWords

@brief An array of strings that will be used at the word recognition stage in addition to the recognition languages. The customWords list takes precedence over the standard lexicon.

func (*VNRecognizeTextRequest) MinimumTextHeight

func (o *VNRecognizeTextRequest) MinimumTextHeight() float32

func (*VNRecognizeTextRequest) RecognitionLanguages

func (o *VNRecognizeTextRequest) RecognitionLanguages() *foundation.NSArray[*foundation.NSString]

@brief Specify the languages used for the detection. The order of the languages in the array defines the order in which languages will be used during the language processing. The languages are specified as ISO language codes.

func (*VNRecognizeTextRequest) RecognitionLevel

@brief The recognition level selects which techniques will be used during the text recognition. There are trade-offs between performance and accuracy.

func (*VNRecognizeTextRequest) SetAutomaticallyDetectsLanguage

func (o *VNRecognizeTextRequest) SetAutomaticallyDetectsLanguage(automaticallyDetectsLanguage bool)

func (*VNRecognizeTextRequest) SetCustomWords

func (o *VNRecognizeTextRequest) SetCustomWords(customWords *foundation.NSArray[*foundation.NSString])

func (*VNRecognizeTextRequest) SetMinimumTextHeight

func (o *VNRecognizeTextRequest) SetMinimumTextHeight(minimumTextHeight float32)

func (*VNRecognizeTextRequest) SetRecognitionLanguages

func (o *VNRecognizeTextRequest) SetRecognitionLanguages(recognitionLanguages *foundation.NSArray[*foundation.NSString])

func (*VNRecognizeTextRequest) SetRecognitionLevel

func (o *VNRecognizeTextRequest) SetRecognitionLevel(recognitionLevel VNRequestTextRecognitionLevel)

func (*VNRecognizeTextRequest) SetUsesLanguageCorrection

func (o *VNRecognizeTextRequest) SetUsesLanguageCorrection(usesLanguageCorrection bool)

func (*VNRecognizeTextRequest) SupportedRecognitionLanguagesAndReturnError

func (o *VNRecognizeTextRequest) SupportedRecognitionLanguagesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)

@brief Obtain the collection of supported recognition languages. @discussion This method will return the collection of all possible language identifiers that are recognized by the target request based on its current state of configuration at the time of the call. @param error The address of the variable that will be populated with the error if the call fails. @return The collection of language identifiers, or nil if a failure occurs.

func (*VNRecognizeTextRequest) UsesLanguageCorrection

func (o *VNRecognizeTextRequest) UsesLanguageCorrection() bool

@brief Determines whether language correction should be applied during the recognition process. Disabling this will return the raw recognition results providing performance benefits but less accurate results.

type VNRecognizedObjectObservation

type VNRecognizedObjectObservation struct {
	VNDetectedObjectObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedobjectobservation

func VNRecognizedObjectObservationFromID

func VNRecognizedObjectObservationFromID(id objc.ID) *VNRecognizedObjectObservation

func (*VNRecognizedObjectObservation) Labels

type VNRecognizedPoint

type VNRecognizedPoint struct {
	VNDetectedPoint
}

Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedpoint

func VNRecognizedPointFromID

func VNRecognizedPointFromID(id objc.ID) *VNRecognizedPoint

func (*VNRecognizedPoint) Identifier

func (o *VNRecognizedPoint) Identifier() *foundation.NSString

type VNRecognizedPoint3D

type VNRecognizedPoint3D struct {
	VNPoint3D
}

Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedpoint3d

func VNRecognizedPoint3DFromID

func VNRecognizedPoint3DFromID(id objc.ID) *VNRecognizedPoint3D

func (*VNRecognizedPoint3D) Identifier

func (o *VNRecognizedPoint3D) Identifier() *foundation.NSString

type VNRecognizedPoints3DObservation

type VNRecognizedPoints3DObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedpoints3dobservation

func VNRecognizedPoints3DObservationFromID

func VNRecognizedPoints3DObservationFromID(id objc.ID) *VNRecognizedPoints3DObservation

func (*VNRecognizedPoints3DObservation) AvailableGroupKeys

@brief The availableGroupKeys property returns all of the point group labels usable with the observation.

func (*VNRecognizedPoints3DObservation) AvailableKeys

@brief Returns all of the point group keys available in the observation.

func (*VNRecognizedPoints3DObservation) RecognizedPointForKeyError

func (o *VNRecognizedPoints3DObservation) RecognizedPointForKeyError(pointKey *foundation.NSString) (*VNRecognizedPoint3D, error)

@brief Obtains a specific normalized recognized point. @param pointKey The key specifying the desired recognized point. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return the recognized point, or nil if the specific point is not defined.

func (*VNRecognizedPoints3DObservation) RecognizedPointsForGroupKeyError

@brief Obtains the collection of points associated with an identified grouping. @discussion The obtained collection is a dictionary that provides the mapping of a recognized point's key to the recognized point. @param groupKey The key representing a specific grouping of points. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return the dictionary of recognized points in the group, or nil if an error was encountered.

type VNRecognizedPointsObservation

type VNRecognizedPointsObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedpointsobservation

func VNRecognizedPointsObservationFromID

func VNRecognizedPointsObservationFromID(id objc.ID) *VNRecognizedPointsObservation

func (*VNRecognizedPointsObservation) AvailableGroupKeys

@brief The availableGroupKeys property returns all of the point group labels usable with the observation.

func (*VNRecognizedPointsObservation) AvailableKeys

@brief Returns all of the point group keys available in the observation.

func (*VNRecognizedPointsObservation) KeypointsMultiArrayAndReturnError

func (o *VNRecognizedPointsObservation) KeypointsMultiArrayAndReturnError() (*coreml.MLMultiArray, error)

@brief Returns the recognized points packaged into an MLMultiArray. @discussion The MLMultiArray will contain the raw data output of (x coordinate, y coordinate, confidence) for specific points in the format expected by CreateML action recognition models. The datatype of the elements in the array is double and the dimensions are [1, 3, # of possible points]. If an expected point key is not available in the obeservation, that entry in the MLMultiArray will be populated with 0s. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return the MLMultiArray representation of the points, or nil if an error was encountered.

func (*VNRecognizedPointsObservation) RecognizedPointForKeyError

func (o *VNRecognizedPointsObservation) RecognizedPointForKeyError(pointKey *foundation.NSString) (*VNRecognizedPoint, error)

@brief Obtains a specific normalized recognized point. @param pointKey The key specifying the desired recognized point. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return the recognized point, or nil if the specific point is not defined.

func (*VNRecognizedPointsObservation) RecognizedPointsForGroupKeyError

@brief Obtains the collection of points associated with an identified grouping. @discussion The obtained collection is a dictionary that provides the mapping of a recognized point's key to the recognized point. @param groupKey The key representing a specific grouping of points. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return the dictionary of recognized points in the group, or nil if an error was encountered.

type VNRecognizedText

type VNRecognizedText struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedtext

func VNRecognizedTextFromID

func VNRecognizedTextFromID(id objc.ID) *VNRecognizedText

func (*VNRecognizedText) BoundingBoxForRangeError

func (o *VNRecognizedText) BoundingBoxForRangeError(range_ foundation.NSRange) (*VNRectangleObservation, error)

@brief Calculate the bounding box around the characters in the range of the string. @discussion The bounding boxes are not guaranteed to be an exact fit around the characters and are purely meant for UI purposes and not for image processing.

func (*VNRecognizedText) Confidence

func (o *VNRecognizedText) Confidence() float32

@brief The level of confidence normalized to [0.0, 1.0] where 1.0 is most confident

func (*VNRecognizedText) String

func (o *VNRecognizedText) String() *foundation.NSString

@brief Field that contains recognized text. @discussion This is the top candidate of the recognized text.

type VNRecognizedTextObservation

type VNRecognizedTextObservation struct {
	VNRectangleObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedtextobservation

func VNRecognizedTextObservationFromID

func VNRecognizedTextObservationFromID(id objc.ID) *VNRecognizedTextObservation

func (*VNRecognizedTextObservation) TopCandidates

func (o *VNRecognizedTextObservation) TopCandidates(maxCandidateCount uint) *foundation.NSArray[*VNRecognizedText]

@brief Returns the top N candidates sorted by decreasing confidence score @discussion This will return no more than N but can be less than N candidates. The maximum number of candidates returned cannot exceed 10 candidates.

type VNRectangleObservation

type VNRectangleObservation struct {
	VNDetectedObjectObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnrectangleobservation

func VNRectangleObservationFromID

func VNRectangleObservationFromID(id objc.ID) *VNRectangleObservation

func VNRectangleObservationRectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight

func VNRectangleObservationRectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision uint, topLeft corefoundation.CGPoint, bottomLeft corefoundation.CGPoint, bottomRight corefoundation.CGPoint, topRight corefoundation.CGPoint) *VNRectangleObservation

@brief Create a synthesized `VNRectangleObservation`. @note The clockwise parameter ordered `+[VNRectangleObservation rectangleObservationWithRequestRevision:topLeft:topRight:bottomRight:bottomLeft:]` is the preferred initializer. @param requestRevision The revision of the VNDetectRectanglesRequest that the observation is to be treated as originating from. @param topLeft The top-left corner of the rectangle in normalized coordinate space. @param bottomLeft The bottom-left corner of the rectangle in normalized coordinate space. @param bottomRight The bottom-right corner of the rectangle in normalized coordinate space. @param topRight The top-right corner of the rectangle in normalized coordinate space. Deprecated: since macOS 14.0.

func VNRectangleObservationRectangleObservationWithRequestRevisionTopLeftTopRightBottomRightBottomLeft

func VNRectangleObservationRectangleObservationWithRequestRevisionTopLeftTopRightBottomRightBottomLeft(requestRevision uint, topLeft corefoundation.CGPoint, topRight corefoundation.CGPoint, bottomRight corefoundation.CGPoint, bottomLeft corefoundation.CGPoint) *VNRectangleObservation

@brief Create a synthesized `VNRectangleObservation`. @param requestRevision The revision of the VNDetectRectanglesRequest that the observation is to be treated as originating from. @param topLeft The top-left corner of the rectangle in normalized coordinate space. @param topRight The top-right corner of the rectangle in normalized coordinate space. @param bottomRight The bottom-right corner of the rectangle in normalized coordinate space. @param bottomLeft The bottom-left corner of the rectangle in normalized coordinate space.

func (*VNRectangleObservation) BottomLeft

func (*VNRectangleObservation) BottomRight

func (*VNRectangleObservation) TopLeft

func (*VNRectangleObservation) TopRight

type VNRequest

type VNRequest struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnrequest

func VNRequestFromID

func VNRequestFromID(id objc.ID) *VNRequest

func (*VNRequest) Cancel

func (o *VNRequest) Cancel()

@discussion Tries to abort the request as soon as possible. Results will be nil. The completionHandler (if present) will be called with an error of VNErrorRequestCancelled.

func (*VNRequest) CompletionHandler

func (o *VNRequest) CompletionHandler() objc.Block

@property completionHandler @abstract The completion handler block that will be invoked after the request has completed processing.

func (*VNRequest) ComputeDeviceForComputeStage

func (o *VNRequest) ComputeDeviceForComputeStage(computeStage *foundation.NSString) coreml.MLComputeDeviceProtocol

@brief Determine what the currently configured compute device is for a specific compute stage. @param computeStage The compute stage to be introspected. @return The currently assigned compute device, or `nil` if there is no explicit assignment.

func (*VNRequest) Init

func (o *VNRequest) Init() *VNRequest

@abstract Creates a new VNRequest with no completion handler.

func (*VNRequest) InitWithCompletionHandler

func (o *VNRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNRequest

@abstract Creates a new VNRequest with an optional completion handler. @param completionHandler The block to be invoked after the request has completed its processing. The completion handler gets executed on the same dispatch queue as the request being executed.

func (*VNRequest) PreferBackgroundProcessing

func (o *VNRequest) PreferBackgroundProcessing() bool

@abstract A hint used to minimize the resource burden of the request. Memory footprint, processing footprint and/or CPU/GPU contention will be reduced (depending on the request), at the potential cost of longer execution time. This can help, for example, with ensuring UI updates and rendering are not getting blocked by Vision processing.

func (*VNRequest) Results

func (o *VNRequest) Results() *foundation.NSArray[*VNObservation]

@property results @abstract The collection of VNObservations generated by the processing of the request. @discussion The only valid time to access this property is after the request has been processed by a request handler. If the request failed, this property will be nil; otherwise, it will be an array of zero or more VNObservation subclasses specific to the VNRequest subclass.

func (*VNRequest) Revision

func (o *VNRequest) Revision() uint

@abstract The specific algorithm or implementation revision that is to be used to perform the request.

func (*VNRequest) SetComputeDeviceForComputeStage

func (o *VNRequest) SetComputeDeviceForComputeStage(computeDevice coreml.MLComputeDeviceProtocol, computeStage *foundation.NSString)

@brief Assign a specific compute device for a compute stage. @discussion It is important to note that any compute device can be configured for a given compute stage. Only when the request is performed is the validity of the (compute device / compute stage) assignments checked. Valid compute devices for a request's compute stages can be obtained via `-supportedComputeStageDevicesAndReturnError:`. @param computeDevice The compute device to assign to the compute stage. Passing nil for this parameter will remove any explicit compute device assignment, allowing Vision to select which device to use. @param computeStage The compute stage being configured.

func (*VNRequest) SetPreferBackgroundProcessing

func (o *VNRequest) SetPreferBackgroundProcessing(preferBackgroundProcessing bool)

func (*VNRequest) SetRevision

func (o *VNRequest) SetRevision(revision uint)

func (*VNRequest) SetUsesCPUOnly deprecated

func (o *VNRequest) SetUsesCPUOnly(usesCPUOnly bool)

Deprecated: since macOS 14.0.

func (*VNRequest) SupportedComputeStageDevicesAndReturnError

func (o *VNRequest) SupportedComputeStageDevicesAndReturnError() (*foundation.NSDictionary[*foundation.NSString, objc.ID], error)

@brief Obtain the collection of compute device per stage that are supported by the request. @discussion This method's result is based on the current state of configuration of the target request at the time of the call. @param error The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed. @return A dictionary of per-stage supported compute devices, or `nil` if an error occurs.

func (*VNRequest) UsesCPUOnly

func (o *VNRequest) UsesCPUOnly() bool

@abstract This property, if set to YES, signifies that the request should be performed exclusively on the CPU and not on the GPU. The default value is NO, which signifies that the request is free to leverage the GPU to accelerate any work the request may require. Deprecated: since macOS 14.0.

type VNRequestFaceLandmarksConstellation

type VNRequestFaceLandmarksConstellation uint64
const (
	VNRequestFaceLandmarksConstellationNotDefined VNRequestFaceLandmarksConstellation = 0
	VNRequestFaceLandmarksConstellation65Points   VNRequestFaceLandmarksConstellation = 1
	VNRequestFaceLandmarksConstellation76Points   VNRequestFaceLandmarksConstellation = 2
)

func (VNRequestFaceLandmarksConstellation) String

type VNRequestProgressProviding

type VNRequestProgressProviding interface {
	ProgressHandler() objc.Block
	SetProgressHandler(progressHandler func(*VNRequest, float64, unsafe.Pointer))
	Indeterminate() bool
}

VNRequestProgressProviding wraps the ObjC protocol VNRequestProgressProviding.

type VNRequestRevisionProviding

type VNRequestRevisionProviding interface {
	RequestRevision() uint
}

VNRequestRevisionProviding wraps the ObjC protocol VNRequestRevisionProviding.

type VNRequestTextRecognitionLevel

type VNRequestTextRecognitionLevel int64
const (
	VNRequestTextRecognitionLevelAccurate VNRequestTextRecognitionLevel = 0
	VNRequestTextRecognitionLevelFast     VNRequestTextRecognitionLevel = 1
)

func (VNRequestTextRecognitionLevel) String

type VNRequestTrackingLevel

type VNRequestTrackingLevel uint64
const (
	VNRequestTrackingLevelAccurate VNRequestTrackingLevel = 0
	VNRequestTrackingLevelFast     VNRequestTrackingLevel = 1
)

func (VNRequestTrackingLevel) String

func (e VNRequestTrackingLevel) String() string

type VNSaliencyImageObservation

type VNSaliencyImageObservation struct {
	VNPixelBufferObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vnsaliencyimageobservation

func VNSaliencyImageObservationFromID

func VNSaliencyImageObservationFromID(id objc.ID) *VNSaliencyImageObservation

func (*VNSaliencyImageObservation) SalientObjects

type VNSequenceRequestHandler

type VNSequenceRequestHandler struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnsequencerequesthandler

func VNSequenceRequestHandlerFromID

func VNSequenceRequestHandlerFromID(id objc.ID) *VNSequenceRequestHandler

func (*VNSequenceRequestHandler) Init

@brief Creates a new object.

func (*VNSequenceRequestHandler) PerformRequestsOnCGImageError

func (o *VNSequenceRequestHandler) PerformRequestsOnCGImageError(requests *foundation.NSArray[*VNRequest], image unsafe.Pointer) (bool, error)

@brief Perform requests on an image in a CGImageRef. @param requests The VNRequests to be performed on the image. @param image The CGImageRef containing the image to be processed. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

func (*VNSequenceRequestHandler) PerformRequestsOnCGImageOrientationError

func (o *VNSequenceRequestHandler) PerformRequestsOnCGImageOrientationError(requests *foundation.NSArray[*VNRequest], image unsafe.Pointer, orientation imageio.CGImagePropertyOrientation) (bool, error)

@brief Perform requests on an image in a CGImageRef. @param requests The VNRequests to be performed on the image. @param image The CGImageRef containing the image to be processed. @param orientation The orientation of the image. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

func (*VNSequenceRequestHandler) PerformRequestsOnCIImageError

func (o *VNSequenceRequestHandler) PerformRequestsOnCIImageError(requests *foundation.NSArray[*VNRequest], image *coreimage.CIImage) (bool, error)

@brief Perform requests on an image in a CIImage. @param requests The VNRequests to be performed on the image. @param image The CIImage containing the image to be processed. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

func (*VNSequenceRequestHandler) PerformRequestsOnCIImageOrientationError

func (o *VNSequenceRequestHandler) PerformRequestsOnCIImageOrientationError(requests *foundation.NSArray[*VNRequest], image *coreimage.CIImage, orientation imageio.CGImagePropertyOrientation) (bool, error)

@brief Perform requests on an image in a CIImage. @param requests The VNRequests to be performed on the image. @param image The CIImage containing the image to be processed. @param orientation The orientation of the image. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

func (*VNSequenceRequestHandler) PerformRequestsOnCMSampleBufferError

func (o *VNSequenceRequestHandler) PerformRequestsOnCMSampleBufferError(requests *foundation.NSArray[*VNRequest], sampleBuffer unsafe.Pointer) (bool, error)

@brief Perform requests on the image buffer contained in the CMSampleBufferRef. @param requests The VNRequests to be performed on the image. @param sampleBuffer A CMSampleBuffer containing an image that will be used for performing the requests. Not all types of sample buffers are supported. They need to contain a CVImageBuffer, be valid and ready. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

func (*VNSequenceRequestHandler) PerformRequestsOnCMSampleBufferOrientationError

func (o *VNSequenceRequestHandler) PerformRequestsOnCMSampleBufferOrientationError(requests *foundation.NSArray[*VNRequest], sampleBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation) (bool, error)

@brief Perform requests on the image buffer contained in the CMSampleBufferRef. @param requests The VNRequests to be performed on the image. @param sampleBuffer A CMSampleBuffer containing an image that will be used for performing the requests. Not all types of sample buffers are supported. They need to contain a CVImageBuffer, be valid and ready. @param orientation The orientation of the image. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

func (*VNSequenceRequestHandler) PerformRequestsOnCVPixelBufferError

func (o *VNSequenceRequestHandler) PerformRequestsOnCVPixelBufferError(requests *foundation.NSArray[*VNRequest], pixelBuffer unsafe.Pointer) (bool, error)

@brief Perform requests on an image in a CVPixelBuffer. @param requests The VNRequests to be performed on the image. @param pixelBuffer The CVPixelBuffer containing the image to be processed. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

func (*VNSequenceRequestHandler) PerformRequestsOnCVPixelBufferOrientationError

func (o *VNSequenceRequestHandler) PerformRequestsOnCVPixelBufferOrientationError(requests *foundation.NSArray[*VNRequest], pixelBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation) (bool, error)

@brief Perform requests on an image in a CVPixelBuffer. @param requests The VNRequests to be performed on the image. @param pixelBuffer The CVPixelBuffer containing the image to be processed. @param orientation The orientation of the image as it is captured in the pixel buffer. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

func (*VNSequenceRequestHandler) PerformRequestsOnImageDataError

func (o *VNSequenceRequestHandler) PerformRequestsOnImageDataError(requests *foundation.NSArray[*VNRequest], imageData *foundation.NSData) (bool, error)

@brief Perform requests on an image with its source format in memory. @param requests The VNRequests to be performed on the image. @param imageData The data representing the source format of the image to be processed. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

func (*VNSequenceRequestHandler) PerformRequestsOnImageDataOrientationError

func (o *VNSequenceRequestHandler) PerformRequestsOnImageDataOrientationError(requests *foundation.NSArray[*VNRequest], imageData *foundation.NSData, orientation imageio.CGImagePropertyOrientation) (bool, error)

@brief Perform requests on an image with its source format in memory. @param requests The VNRequests to be performed on the image. @param imageData The data representing the source format of the image to be processed. @param orientation The orientation of the image. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

func (*VNSequenceRequestHandler) PerformRequestsOnImageURLError

func (o *VNSequenceRequestHandler) PerformRequestsOnImageURLError(requests *foundation.NSArray[*VNRequest], imageURL *foundation.NSURL) (bool, error)

@brief Perform requests on an image referenced by an URL. @param requests The VNRequests to be performed on the image. @param imageURL The URL of the image to be processed. If this is not a file-based URL, the method will fail. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

func (*VNSequenceRequestHandler) PerformRequestsOnImageURLOrientationError

func (o *VNSequenceRequestHandler) PerformRequestsOnImageURLOrientationError(requests *foundation.NSArray[*VNRequest], imageURL *foundation.NSURL, orientation imageio.CGImagePropertyOrientation) (bool, error)

@brief Perform requests on an image referenced by an URL. @param requests The VNRequests to be performed on the image. @param imageURL The URL of the image to be processed. If this is not a file-based URL, the method will fail. @param orientation The orientation of the image. @param error On input, a pointer to an error object. If an error occurs, this pointer is set to an actual error object containing the error information. You may specify NULL for this parameter if you do not want the error information.

type VNStatefulRequest

type VNStatefulRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vnstatefulrequest

func VNStatefulRequestFromID

func VNStatefulRequestFromID(id objc.ID) *VNStatefulRequest

func (*VNStatefulRequest) FrameAnalysisSpacing

func (o *VNStatefulRequest) FrameAnalysisSpacing() coremedia.CMTime

@brief The reciprocal of maximum rate at which buffers will be processed. @discussion The request will not process buffers that fall within the `frameAnalysisSpacing` after it has performed the analysis. The analysis is not done by wall time but by analysis of of the time stamps of the samplebuffers being processed.

func (*VNStatefulRequest) InitWithFrameAnalysisSpacingCompletionHandler

func (o *VNStatefulRequest) InitWithFrameAnalysisSpacingCompletionHandler(frameAnalysisSpacing coremedia.CMTime, completionHandler func(*VNRequest, unsafe.Pointer)) *VNStatefulRequest

@brief Create a new video-based stateful request. @param frameAnalysisSpacing The reciprocal of maximum rate at which buffers will be processed. The request will not process buffers that fall within the frameAnalysisSpacing after it has performed the analysis. The analysis is not done by wall time but by analysis of of the time stamps of the samplebuffers being processed. @param completionHandler The block to be invoked after the request has completed its processing. The completion handler gets executed on the same dispatch queue as the request being executed.

func (*VNStatefulRequest) MinimumLatencyFrameCount

func (o *VNStatefulRequest) MinimumLatencyFrameCount() int

@brief The minimum number of frames that the request has to process on before reporting back any observation. This information is provided by the request once initialized with its required paramters. @discussion Video based request often need a minimum number of frames before they can report back any observation. An example would be that a movement detection requires at least 5 frames to be detected. The minimumLatencyFrameCount for that request would report 5 and only after 5 frames have been processed an observation would be returned in the results. This latency is indicative of how responsive a request is in respect to the incoming data.

type VNTargetedImageRequest

type VNTargetedImageRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vntargetedimagerequest

func VNTargetedImageRequestFromID

func VNTargetedImageRequestFromID(id objc.ID) *VNTargetedImageRequest

func (*VNTargetedImageRequest) InitWithTargetedCGImageOptions

func (o *VNTargetedImageRequest) InitWithTargetedCGImageOptions(cgImage unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request with a targeted CGImage. @param cgImage The CGImageRef of the targeted image. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedCGImageOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedCGImageOptionsCompletionHandler(cgImage unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request with a targeted CGImage. @param cgImage The CGImageRef of the targeted image. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked when the request has been performed.

func (*VNTargetedImageRequest) InitWithTargetedCGImageOrientationOptions

func (o *VNTargetedImageRequest) InitWithTargetedCGImageOrientationOptions(cgImage unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request with a targeted CGImage. @param cgImage The CGImageRef of the targeted image. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedCGImageOrientationOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request with a targeted CGImage. @param cgImage The CGImageRef of the targeted image. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked when the request has been performed.

func (*VNTargetedImageRequest) InitWithTargetedCIImageOptions

func (o *VNTargetedImageRequest) InitWithTargetedCIImageOptions(ciImage *coreimage.CIImage, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request with a targeted CIImage. @param ciImage The CIImage of the targeted image. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedCIImageOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedCIImageOptionsCompletionHandler(ciImage *coreimage.CIImage, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request with a targeted CIImage. @param ciImage The CIImage of the targeted image. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked when the request has been performed.

func (*VNTargetedImageRequest) InitWithTargetedCIImageOrientationOptions

func (o *VNTargetedImageRequest) InitWithTargetedCIImageOrientationOptions(ciImage *coreimage.CIImage, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request with a targeted CIImage. @param ciImage The CIImage of the targeted image. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedCIImageOrientationOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage *coreimage.CIImage, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request with a targeted CIImage. @param ciImage The CIImage of the targeted image. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked when the request has been performed.

func (*VNTargetedImageRequest) InitWithTargetedCMSampleBufferOptions

func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOptions(sampleBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request with a targeted CMSampleBuffer. @param sampleBuffer The CMSampleBuffer containing the CVImageBuffer to be used by the request. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedCMSampleBufferOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request with a targeted CMSampleBuffer. @param sampleBuffer The CMSampleBuffer containing the CVImageBuffer to be used by the request. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked after the request has been performed.

func (*VNTargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptions

func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request with a targeted CMSampleBuffer. @param sampleBuffer The CMSampleBuffer containing the CVImageBuffer to be used by the request. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request with a targeted CMSampleBuffer. @param sampleBuffer The CMSampleBuffer containing the CVImageBuffer to be used by the request. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked after the request has been performed.

func (*VNTargetedImageRequest) InitWithTargetedCVPixelBufferOptions

func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request that targets an image in a pixel buffer. @param pixelBuffer The pixel buffer containing the targeted image. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedCVPixelBufferOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request that targets an image in a pixel buffer. @param pixelBuffer The pixel buffer containing the targeted image. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked when the request has been performed.

func (*VNTargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptions

func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request that targets an image in a pixel buffer. @param pixelBuffer The pixel buffer containing the targeted image. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request that targets an image in a pixel buffer. @param pixelBuffer The pixel buffer containing the targeted image. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked when the request has been performed.

func (*VNTargetedImageRequest) InitWithTargetedImageDataOptions

func (o *VNTargetedImageRequest) InitWithTargetedImageDataOptions(imageData *foundation.NSData, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request with a targeted image data. @param imageData The data of the targeted image. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedImageDataOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedImageDataOptionsCompletionHandler(imageData *foundation.NSData, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request with a targeted image data. @param imageData The data of the targeted image. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked when the request has been performed.

func (*VNTargetedImageRequest) InitWithTargetedImageDataOrientationOptions

func (o *VNTargetedImageRequest) InitWithTargetedImageDataOrientationOptions(imageData *foundation.NSData, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request with a targeted image data. @param imageData The data of the targeted image. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedImageDataOrientationOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData *foundation.NSData, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request with a targeted image data. @param imageData The data of the targeted image. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked when the request has been performed.

func (*VNTargetedImageRequest) InitWithTargetedImageURLOptions

func (o *VNTargetedImageRequest) InitWithTargetedImageURLOptions(imageURL *foundation.NSURL, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request with a targeted image URL. @param imageURL The URL of the targeted image. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedImageURLOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedImageURLOptionsCompletionHandler(imageURL *foundation.NSURL, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request with a targeted image URL. @param imageURL The URL of the targeted image. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked when the request has been performed.

func (*VNTargetedImageRequest) InitWithTargetedImageURLOrientationOptions

func (o *VNTargetedImageRequest) InitWithTargetedImageURLOrientationOptions(imageURL *foundation.NSURL, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest

@brief Create a new request with a targeted image URL. @param imageURL The URL of the targeted image. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image.

func (*VNTargetedImageRequest) InitWithTargetedImageURLOrientationOptionsCompletionHandler

func (o *VNTargetedImageRequest) InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL *foundation.NSURL, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest

@brief Create a new request with a targeted image URL. @param imageURL The URL of the targeted image. @param orientation The orientation of the image/buffer based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information. @param options A dictionary with options specifying auxiliary information for the image. @param completionHandler The block that is invoked when the request has been performed.

type VNTextObservation

type VNTextObservation struct {
	VNRectangleObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vntextobservation

func VNTextObservationFromID

func VNTextObservationFromID(id objc.ID) *VNTextObservation

func (*VNTextObservation) CharacterBoxes

type VNTrackHomographicImageRegistrationRequest

type VNTrackHomographicImageRegistrationRequest struct {
	VNStatefulRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vntrackhomographicimageregistrationrequest

func VNTrackHomographicImageRegistrationRequestFromID

func VNTrackHomographicImageRegistrationRequestFromID(id objc.ID) *VNTrackHomographicImageRegistrationRequest

func (*VNTrackHomographicImageRegistrationRequest) Init

@brief Create a new request that can statefully track the homographic registration of two images. @discussion This is a convenience initializer for a frame analysis spacing of kCMTimeZero and a nil completion handler.

func (*VNTrackHomographicImageRegistrationRequest) InitWithCompletionHandler

@brief Create a new request that can statefully track the homographic registration of two images. @discussion This is a convenience initializer for a frame analysis spacing of kCMTimeZero.

type VNTrackObjectRequest

type VNTrackObjectRequest struct {
	VNTrackingRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vntrackobjectrequest

func VNTrackObjectRequestFromID

func VNTrackObjectRequestFromID(id objc.ID) *VNTrackObjectRequest

func (*VNTrackObjectRequest) InitWithDetectedObjectObservation

func (o *VNTrackObjectRequest) InitWithDetectedObjectObservation(observation *VNDetectedObjectObservation) *VNTrackObjectRequest

@brief Create a new request with detected object observation. @param observation Detected object observation with bounding box info.

func (*VNTrackObjectRequest) InitWithDetectedObjectObservationCompletionHandler

func (o *VNTrackObjectRequest) InitWithDetectedObjectObservationCompletionHandler(observation *VNDetectedObjectObservation, completionHandler func(*VNRequest, unsafe.Pointer)) *VNTrackObjectRequest

@brief Create a new request with detected object observation. @param observation Detected object observation with bounding box info. @param completionHandler The block that is invoked when the request has been performed.

type VNTrackOpticalFlowRequest

type VNTrackOpticalFlowRequest struct {
	VNStatefulRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vntrackopticalflowrequest

func VNTrackOpticalFlowRequestFromID

func VNTrackOpticalFlowRequestFromID(id objc.ID) *VNTrackOpticalFlowRequest

func (*VNTrackOpticalFlowRequest) ComputationAccuracy

@brief The level of accuracy used to compute the optical flow. Default is VNTrackOpticalFlowRequestComputationAccuracyMedium. @discussion The computational time typically trends with the accuracy level. This parameter allows for selective tuning by the client application.

func (*VNTrackOpticalFlowRequest) Init

@brief Create a new request that can statefully track the optical from from one image to another. @discussion This is a convenience initializer for a frame analysis spacing of kCMTimeZero and a nil completion handler.

func (*VNTrackOpticalFlowRequest) InitWithCompletionHandler

func (o *VNTrackOpticalFlowRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNTrackOpticalFlowRequest

@brief Create a new request that can statefully track the optical from from one image to another. @discussion This is a convenience initializer for a frame analysis spacing of kCMTimeZero.

func (*VNTrackOpticalFlowRequest) KeepNetworkOutput

func (o *VNTrackOpticalFlowRequest) KeepNetworkOutput() bool

@brief Setting this to `YES` will keep the raw pixel buffer coming from the the ML network. The default is `NO`. @discussion When set to `YES`, the outputPixelFormat is ignored.

func (*VNTrackOpticalFlowRequest) OutputPixelFormat

func (o *VNTrackOpticalFlowRequest) OutputPixelFormat() uint

@brief Pixel format type of the output buffer. Valid values are `kCVPixelFormatType_TwoComponent32Float` and `kCVPixelFormatType_TwoComponent16Half`. Default is `kCVPixelFormatType_TwoComponent32Float`.

func (*VNTrackOpticalFlowRequest) SetComputationAccuracy

func (o *VNTrackOpticalFlowRequest) SetComputationAccuracy(computationAccuracy VNTrackOpticalFlowRequestComputationAccuracy)

func (*VNTrackOpticalFlowRequest) SetKeepNetworkOutput

func (o *VNTrackOpticalFlowRequest) SetKeepNetworkOutput(keepNetworkOutput bool)

func (*VNTrackOpticalFlowRequest) SetOutputPixelFormat

func (o *VNTrackOpticalFlowRequest) SetOutputPixelFormat(outputPixelFormat uint)

type VNTrackOpticalFlowRequestComputationAccuracy

type VNTrackOpticalFlowRequestComputationAccuracy uint64
const (
	VNTrackOpticalFlowRequestComputationAccuracyLow      VNTrackOpticalFlowRequestComputationAccuracy = 0
	VNTrackOpticalFlowRequestComputationAccuracyMedium   VNTrackOpticalFlowRequestComputationAccuracy = 1
	VNTrackOpticalFlowRequestComputationAccuracyHigh     VNTrackOpticalFlowRequestComputationAccuracy = 2
	VNTrackOpticalFlowRequestComputationAccuracyVeryHigh VNTrackOpticalFlowRequestComputationAccuracy = 3
)

func (VNTrackOpticalFlowRequestComputationAccuracy) String

type VNTrackRectangleRequest

type VNTrackRectangleRequest struct {
	VNTrackingRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vntrackrectanglerequest

func VNTrackRectangleRequestFromID

func VNTrackRectangleRequestFromID(id objc.ID) *VNTrackRectangleRequest

func (*VNTrackRectangleRequest) InitWithRectangleObservation

func (o *VNTrackRectangleRequest) InitWithRectangleObservation(observation *VNRectangleObservation) *VNTrackRectangleRequest

@brief Create a new rectangle tracking request with rectangle observation. @param observation Rectangle observation with bounding box and rectangle corners location info.

func (*VNTrackRectangleRequest) InitWithRectangleObservationCompletionHandler

func (o *VNTrackRectangleRequest) InitWithRectangleObservationCompletionHandler(observation *VNRectangleObservation, completionHandler func(*VNRequest, unsafe.Pointer)) *VNTrackRectangleRequest

@brief Create a new rectangle tracking request with rectangle observation. @param observation Rectangle observation with bounding box and rectangle corners location info. @param completionHandler The block that is invoked when the request has been performed.

type VNTrackTranslationalImageRegistrationRequest

type VNTrackTranslationalImageRegistrationRequest struct {
	VNStatefulRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vntracktranslationalimageregistrationrequest

func VNTrackTranslationalImageRegistrationRequestFromID

func VNTrackTranslationalImageRegistrationRequestFromID(id objc.ID) *VNTrackTranslationalImageRegistrationRequest

func (*VNTrackTranslationalImageRegistrationRequest) Init

@brief Create a new request that can statefully track the translational registration of two images. @discussion This is a convenience initializer for a frame analysis spacing of kCMTimeZero and a nil completion handler.

func (*VNTrackTranslationalImageRegistrationRequest) InitWithCompletionHandler

@brief Create a new request that can statefully track the translational registration of two images. @discussion This is a convenience initializer for a frame analysis spacing of kCMTimeZero.

type VNTrackingRequest

type VNTrackingRequest struct {
	VNImageBasedRequest
}

Apple documentation: https://developer.apple.com/documentation/vision/vntrackingrequest

func VNTrackingRequestFromID

func VNTrackingRequestFromID(id objc.ID) *VNTrackingRequest

func (*VNTrackingRequest) InputObservation

func (o *VNTrackingRequest) InputObservation() *VNDetectedObjectObservation

@property property inputObservation @abstract The observation object that defines a region to track. Providing an observation not returned from a tracker (e.g. user-defined, or from a detector) begins a new tracker for the sequence. Providing an observation that was returned from a tracker continues the use of that tracker, to track the region to the next frame. In general, unless documented in the request's documentation, the rectangle must be defined in normalized coordinates (both dimensions normalized to [0,1] with the origin at the lower-left corner).

func (*VNTrackingRequest) IsLastFrame

func (o *VNTrackingRequest) IsLastFrame() bool

@property property lastFrame @abstract This property allows marking the last frame for tracking using current tracker. If set to YES, the results for this frame will be processed and returned and the current tracker will be released to the pool of available trackers

func (*VNTrackingRequest) SetInputObservation

func (o *VNTrackingRequest) SetInputObservation(inputObservation *VNDetectedObjectObservation)

func (*VNTrackingRequest) SetLastFrame

func (o *VNTrackingRequest) SetLastFrame(lastFrame bool)

func (*VNTrackingRequest) SetTrackingLevel

func (o *VNTrackingRequest) SetTrackingLevel(trackingLevel VNRequestTrackingLevel)

func (*VNTrackingRequest) SupportedNumberOfTrackersAndReturnError

func (o *VNTrackingRequest) SupportedNumberOfTrackersAndReturnError() (uint, error)

@brief This class method returns a maximum number of allowed simultaneously executed trackers for [request revision x tracking level] combination @details The total number of simultaneously running trackes is limited due to performance concerns. There is a limit for each combination of [request revision x tracking level] and this method could be used to query that limit @param revision The revision of a specific tracking request (an object of a subclass of VNTrackingRequest). @param trackingLevel Tracking level of a specific tracking request (an object of a subclass of VNTrackingRequest). @param error The address of a variable that will be populated with an error upon failure. If the caller does not need this information, NULL can be passed. @result Maximum number of trackers for a given combination [request revision x tracking level], or 0 if such combination doesn't exist

func (*VNTrackingRequest) TrackingLevel

func (o *VNTrackingRequest) TrackingLevel() VNRequestTrackingLevel

@property property trackingLevel @abstract Tracking level allows tuning tracking algorithm to prefer speed (VNRequestTrackingLevelFast) vs. tracking object location accuracy (VNRequestTrackingLevelAccurate). This property has no effect on general purpose object tracker (VNTrackObjectRequest) revision 2 (VNTrackObjectRequestRevision2)

type VNTrajectoryObservation

type VNTrajectoryObservation struct {
	VNObservation
}

Apple documentation: https://developer.apple.com/documentation/vision/vntrajectoryobservation

func VNTrajectoryObservationFromID

func VNTrajectoryObservationFromID(id objc.ID) *VNTrajectoryObservation

func (*VNTrajectoryObservation) DetectedPoints

func (o *VNTrajectoryObservation) DetectedPoints() *foundation.NSArray[*VNPoint]

@brief The centroids of the contour being detected along the trajectory. @details These are the unprocessed centroid points of the detected contour that is tracked on the trajectory. The points may be slightly off the ideal trajectory as these are the measured points that fall within the allowed tolerance. The maximum number or past points is limited by the maximum trajectory length set in the request.

func (*VNTrajectoryObservation) EquationCoefficients

func (o *VNTrajectoryObservation) EquationCoefficients() unsafe.Pointer

@brief The coefficients of the parabolic equation y = a*x^2 + b*x + c. @details This equation describes the parabola on which the detected contour is traveling. The equation and the projected points get refined over time of the detected trajectory.

func (*VNTrajectoryObservation) MovingAverageRadius

func (o *VNTrajectoryObservation) MovingAverageRadius() float64

@brief The moving average radius of the object being tracked. @details This is the radius of the object at each detected point (used to determine the trajectory) averaged.

func (*VNTrajectoryObservation) ProjectedPoints

func (o *VNTrajectoryObservation) ProjectedPoints() *foundation.NSArray[*VNPoint]

@brief The centroids of the calculated trajectory from the detected points. @details These are the calculated centroid points along the ideal trajectory described by the parabolic equation. The equation and the projected points of the detected trajectory get refined over time. The maximum number of cached points is limited by the maximum points needed to describe the trajectory together with the parabolic equation.

type VNVector

type VNVector struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnvector

func VNVectorFromID

func VNVectorFromID(id objc.ID) *VNVector

func VNVectorUnitVectorForVector

func VNVectorUnitVectorForVector(vector *VNVector) *VNVector

@brief Returns a vector that is normalized by preserving direction, such as |v|, or vector length = 1.0.

func VNVectorVectorByAddingVectorToVector

func VNVectorVectorByAddingVectorToVector(v1 *VNVector, v2 *VNVector) *VNVector

@brief Adds two vectors v1 and v2 and returns a resulting vector v, such as v = v1 + v2.

func VNVectorVectorByMultiplyingVectorByScalar

func VNVectorVectorByMultiplyingVectorByScalar(vector *VNVector, scalar float64) *VNVector

@brief Returns a vector that whose X and Y projections multiplied by a scalar value.

func VNVectorVectorBySubtractingVectorFromVector

func VNVectorVectorBySubtractingVectorFromVector(v1 *VNVector, v2 *VNVector) *VNVector

@brief Substructs vector v1 from v2 and returns a resulting vector v, such as v = v2 - v1.

func VNVectorZeroVector

func VNVectorZeroVector() *VNVector

@brief Returns a VNVector object with zero length. The theta for zeroVector is not defined (NaN).

func (*VNVector) InitWithRTheta

func (o *VNVector) InitWithRTheta(r float64, theta float64) *VNVector

@brief Initializes a vector in polar coordinate space, using R and Theta (radians), where R is the length of the vector and Theta is the ange that the vector forms with the positive direction of X axis.

func (*VNVector) InitWithVectorHeadTail

func (o *VNVector) InitWithVectorHeadTail(head *VNPoint, tail *VNPoint) *VNVector

@brief Initializes a vector in Cartesian Coordinate space, using two VNPoints - the head and the tail of the vector.

func (*VNVector) InitWithXComponentYComponent

func (o *VNVector) InitWithXComponentYComponent(x float64, y float64) *VNVector

@brief Initializes a vector in Cartesian Coordinate space, using its X and Y axis projections.

func (*VNVector) Length

func (o *VNVector) Length() float64

@brief Returns a length, or absolute value, of the vector.

func (*VNVector) R

func (o *VNVector) R() float64

@brief Radius, or absolute value, or length of the vector.

func (*VNVector) SquaredLength

func (o *VNVector) SquaredLength() float64

@brief Returns a length ^ 2 of a vector.

func (*VNVector) Theta

func (o *VNVector) Theta() float64

@brief Angle between the vector direction and positive direction of X axis.

func (*VNVector) X

func (o *VNVector) X() float64

@brief Signed projection on X-axis, or X component of the vector. Sign determines direction the vector is facing in X direction.

func (*VNVector) Y

func (o *VNVector) Y() float64

@brief Signed projection on Y-axis, or Y component of the vector. Sign determines direction the vector is facing in Y direction.

type VNVideoProcessor

type VNVideoProcessor struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnvideoprocessor

func VNVideoProcessorFromID

func VNVideoProcessorFromID(id objc.ID) *VNVideoProcessor

func (*VNVideoProcessor) AddRequestProcessingOptionsError

func (o *VNVideoProcessor) AddRequestProcessingOptionsError(request *VNRequest, processingOptions *VNVideoProcessorRequestProcessingOptions) (bool, error)

@brief Add a VNRequest with the specified processing options to be performed on the video. @details This method can be called either before calling -analyzeTimeRange:error: or from within one of the already associated request's completion handlers. @param request The VNRequest to be added to the processing pipeline. If added from within a completionHandler, it will be processed on the same frame that is currently being processed. @param processingOptions The options applied to the request's processing of the video. @param error Returns an error that happened during scheduling of the requests. Check individual requests results and errors for their respective success and failures. This parameter is optional. @return Returns true if the request added to the processing pipeline. @note The VNRequest must have completion handler set otherwise no results can be returned.

func (*VNVideoProcessor) AddRequestWithProcessingOptionsError deprecated

func (o *VNVideoProcessor) AddRequestWithProcessingOptionsError(request *VNRequest, processingOptions *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)

Deprecated: since macOS 11.0.

func (*VNVideoProcessor) AnalyzeTimeRangeError

func (o *VNVideoProcessor) AnalyzeTimeRangeError(timeRange coremedia.CMTimeRange) (bool, error)

@brief Processes the video over the specified time range. @details This call is synchronous and only returns after the video is processed through its duration or an error prevented the processing. @param timeRange Start and duration of the timerange within video to process. If the duration is longer than the video (e.g., kCMTimeIndefinite) the processing stops at the end of the video. @param error Returns an error that happened during the starting of the processing queue (for instance if the time range is not valid for the video asset). This parameter is optional. @return Returns true if all requests were scheduled and performed. Check individual requests results and errors for their respective success and failures. @note The intersection of the CMTimeRangeMake(start, duration) and CMTimeRangeMake(kCMTimeZero, asset.duration) will determine the timerange of the video to process

func (*VNVideoProcessor) AnalyzeWithTimeRangeError deprecated

func (o *VNVideoProcessor) AnalyzeWithTimeRangeError(timeRange coremedia.CMTimeRange) (bool, error)

Deprecated: since macOS 11.0.

func (*VNVideoProcessor) Cancel

func (o *VNVideoProcessor) Cancel()

@brief Cancel the processing of the video. This can return before the last request has completed.

func (*VNVideoProcessor) InitWithURL

func (o *VNVideoProcessor) InitWithURL(videoURL *foundation.NSURL) *VNVideoProcessor

@brief Creates a VNVideoProcessor to be used for performing requests against a video asset specified by it's URL. @param videoURL A URL pointing at a video asset on which the requests will be performed. The video format has to be supported by AVFoundation.

func (*VNVideoProcessor) RemoveRequestError

func (o *VNVideoProcessor) RemoveRequestError(request *VNRequest) (bool, error)

@brief Remove a VNRequest from the video processor, which means it won't be performed anymore. @details This method can be called either before calling -analyzeTimeRange:error: or from within one of the already associated request's completion handlers. @param request The VNRequest to be removed from the processing pipeline. @param error Returns an error that happened during processing of the request, such as if the request was not found in the processing queue. This parameter is optional. @return Returns true if the request was found and removed from the processing pipeline.

type VNVideoProcessorCadence

type VNVideoProcessorCadence struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnvideoprocessorcadence

func VNVideoProcessorCadenceFromID

func VNVideoProcessorCadenceFromID(id objc.ID) *VNVideoProcessorCadence

type VNVideoProcessorFrameRateCadence

type VNVideoProcessorFrameRateCadence struct {
	VNVideoProcessorCadence
}

Apple documentation: https://developer.apple.com/documentation/vision/vnvideoprocessorframeratecadence

func VNVideoProcessorFrameRateCadenceFromID

func VNVideoProcessorFrameRateCadenceFromID(id objc.ID) *VNVideoProcessorFrameRateCadence

func (*VNVideoProcessorFrameRateCadence) FrameRate

func (o *VNVideoProcessorFrameRateCadence) FrameRate() int

func (*VNVideoProcessorFrameRateCadence) InitWithFrameRate

type VNVideoProcessorRequestProcessingOptions

type VNVideoProcessorRequestProcessingOptions struct {
	foundation.NSObject
}

Apple documentation: https://developer.apple.com/documentation/vision/vnvideoprocessorrequestprocessingoptions

func VNVideoProcessorRequestProcessingOptionsFromID

func VNVideoProcessorRequestProcessingOptionsFromID(id objc.ID) *VNVideoProcessorRequestProcessingOptions

func (*VNVideoProcessorRequestProcessingOptions) Cadence

func (*VNVideoProcessorRequestProcessingOptions) SetCadence

type VNVideoProcessorTimeIntervalCadence

type VNVideoProcessorTimeIntervalCadence struct {
	VNVideoProcessorCadence
}

Apple documentation: https://developer.apple.com/documentation/vision/vnvideoprocessortimeintervalcadence

func VNVideoProcessorTimeIntervalCadenceFromID

func VNVideoProcessorTimeIntervalCadenceFromID(id objc.ID) *VNVideoProcessorTimeIntervalCadence

func (*VNVideoProcessorTimeIntervalCadence) InitWithTimeInterval

func (*VNVideoProcessorTimeIntervalCadence) TimeInterval

func (o *VNVideoProcessorTimeIntervalCadence) TimeInterval() float64

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL