vision

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package vision provides a fluent Go API over the macOS Vision framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Errors

Failing calls return errors carrying the Objective-C error domain and code. Match them against this package's Err… sentinel values with errors.Is, or inspect domain, code, and Apple's prose via errors.As with *errkit.Error.

Types

Each base type below lists the concrete types you construct and pass where the base is accepted:

Index

Constants

This section is empty.

Variables

View Source
var ErrDataUnavailable = errkit.New("VNErrorDomain", 17)

ErrDataUnavailable matches the Vision error VNErrorDataUnavailable.

View Source
var ErrIOError = errkit.New("VNErrorDomain", 6)

ErrIOError matches the Vision error VNErrorIOError.

View Source
var ErrInternalError = errkit.New("VNErrorDomain", 9)

ErrInternalError matches the Vision error VNErrorInternalError.

View Source
var ErrInvalidArgument = errkit.New("VNErrorDomain", 14)

ErrInvalidArgument matches the Vision error VNErrorInvalidArgument.

View Source
var ErrInvalidFormat = errkit.New("VNErrorDomain", 2)

ErrInvalidFormat matches the Vision error VNErrorInvalidFormat.

View Source
var ErrInvalidImage = errkit.New("VNErrorDomain", 13)

ErrInvalidImage matches the Vision error VNErrorInvalidImage.

View Source
var ErrInvalidModel = errkit.New("VNErrorDomain", 15)

ErrInvalidModel matches the Vision error VNErrorInvalidModel.

View Source
var ErrInvalidOperation = errkit.New("VNErrorDomain", 12)

ErrInvalidOperation matches the Vision error VNErrorInvalidOperation.

View Source
var ErrInvalidOption = errkit.New("VNErrorDomain", 5)

ErrInvalidOption matches the Vision error VNErrorInvalidOption.

View Source
var ErrMissingOption = errkit.New("VNErrorDomain", 7)

ErrMissingOption matches the Vision error VNErrorMissingOption.

View Source
var ErrNotImplemented = errkit.New("VNErrorDomain", 8)

ErrNotImplemented matches the Vision error VNErrorNotImplemented.

View Source
var ErrOK = errkit.New("VNErrorDomain", 0)

ErrOK matches the Vision error VNErrorOK.

View Source
var ErrOperationFailed = errkit.New("VNErrorDomain", 3)

ErrOperationFailed matches the Vision error VNErrorOperationFailed.

View Source
var ErrOutOfBoundsError = errkit.New("VNErrorDomain", 4)

ErrOutOfBoundsError matches the Vision error VNErrorOutOfBoundsError.

View Source
var ErrOutOfMemory = errkit.New("VNErrorDomain", 10)

ErrOutOfMemory matches the Vision error VNErrorOutOfMemory.

View Source
var ErrRequestCancelled = errkit.New("VNErrorDomain", 1)

ErrRequestCancelled matches the Vision error VNErrorRequestCancelled.

View Source
var ErrTimeStampNotFound = errkit.New("VNErrorDomain", 18)

ErrTimeStampNotFound matches the Vision error VNErrorTimeStampNotFound.

View Source
var ErrTimeout = errkit.New("VNErrorDomain", 20)

ErrTimeout matches the Vision error VNErrorTimeout.

View Source
var ErrTuriCoreErrorCode = errkit.New("VNErrorDomain", -1)

ErrTuriCoreErrorCode matches the Vision error VNErrorTuriCoreErrorCode.

View Source
var ErrUnknownError = errkit.New("VNErrorDomain", 11)

ErrUnknownError matches the Vision error VNErrorUnknownError.

View Source
var ErrUnsupportedComputeDevice = errkit.New("VNErrorDomain", 22)

ErrUnsupportedComputeDevice matches the Vision error VNErrorUnsupportedComputeDevice.

View Source
var ErrUnsupportedComputeStage = errkit.New("VNErrorDomain", 21)

ErrUnsupportedComputeStage matches the Vision error VNErrorUnsupportedComputeStage.

View Source
var ErrUnsupportedRequest = errkit.New("VNErrorDomain", 19)

ErrUnsupportedRequest matches the Vision error VNErrorUnsupportedRequest.

View Source
var ErrUnsupportedRevision = errkit.New("VNErrorDomain", 16)

ErrUnsupportedRevision matches the Vision error VNErrorUnsupportedRevision.

Functions

func CalculateAreaForContourOrientedArea added in v0.17.0

func CalculateAreaForContourOrientedArea(contour *Contour, orientedArea bool) (area float64, err error)

CalculateAreaForContourOrientedArea calculates the area for the specified contour.

func CalculatePerimeterForContour added in v0.17.0

func CalculatePerimeterForContour(contour *Contour) (perimeter float64, err error)

CalculatePerimeterForContour calculates the perimeter of a closed contour.

func CurrentRevision added in v0.17.0

func CurrentRevision() int

CurrentRevision provides the current revision supported by the request.

func DefaultRevision added in v0.17.0

func DefaultRevision() int

DefaultRevision provides the revision of the request that was latest for the particular SDK that was linked with the client application.

func DistanceBetweenPointPoint added in v0.17.0

func DistanceBetweenPointPoint(point1 *Point, point2 *Point) float64

DistanceBetweenPointPoint calculates the distance between two points.

func DotProductOfVectorVector added in v0.17.0

func DotProductOfVectorVector(v1 *Vector, v2 *Vector) float64

DotProductOfVectorVector caclulates the dot product of two vectors.

func KnownAnimalIdentifiersForRevision added in v0.17.0

func KnownAnimalIdentifiersForRevision(requestRevision int) (result []*foundation.String, err error)

KnownAnimalIdentifiersForRevision returns a list of animal identifiers the recognition algorithm supports for the specified revision.

func RevisionSupportsConstellation added in v0.17.0

func RevisionSupportsConstellation(requestRevision int, constellation RequestFaceLandmarksConstellation) bool

RevisionSupportsConstellation returns a Boolean value that indicates whether a revision supports a constellation.

func SupportedJointNamesForRevision added in v0.17.0

func SupportedJointNamesForRevision(revision int) (result []*foundation.String, err error)

SupportedJointNamesForRevision retrieves the supported joint names for a revision.

func SupportedJointsGroupNamesForRevision added in v0.17.0

func SupportedJointsGroupNamesForRevision(revision int) (result []*foundation.String, err error)

SupportedJointsGroupNamesForRevision retrieves the supported joint group names for a revision.

func SupportedRecognitionLanguagesForTextRecognitionLevelRevision added in v0.17.0

func SupportedRecognitionLanguagesForTextRecognitionLevelRevision(recognitionLevel RequestTextRecognitionLevel, requestRevision int) (result []string, err error)

SupportedRecognitionLanguagesForTextRecognitionLevelRevision requests a list of languages that the specified revision recognizes.

func SupportedRevisions added in v0.17.0

func SupportedRevisions() *foundation.IndexSet

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

func SupportedSymbologies added in v0.17.0

func SupportedSymbologies() []obj.Object

SupportedSymbologies returns obtain the collection of barcode symbologies currently recognized by the Vision framework. Calling this method could be a potentially expensive operation.

SupportedSymbologies returns the collection as a Go slice.

func VNAnimalBodyPoseObservationJointNameLeftBackElbow

func VNAnimalBodyPoseObservationJointNameLeftBackElbow() obj.Object

VNAnimalBodyPoseObservationJointNameLeftBackElbow returns the string constant VNAnimalBodyPoseObservationJointNameLeftBackElbow, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameLeftBackKnee

func VNAnimalBodyPoseObservationJointNameLeftBackKnee() obj.Object

VNAnimalBodyPoseObservationJointNameLeftBackKnee returns the string constant VNAnimalBodyPoseObservationJointNameLeftBackKnee, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameLeftBackPaw

func VNAnimalBodyPoseObservationJointNameLeftBackPaw() obj.Object

VNAnimalBodyPoseObservationJointNameLeftBackPaw returns the string constant VNAnimalBodyPoseObservationJointNameLeftBackPaw, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameLeftEarBottom

func VNAnimalBodyPoseObservationJointNameLeftEarBottom() obj.Object

VNAnimalBodyPoseObservationJointNameLeftEarBottom returns the string constant VNAnimalBodyPoseObservationJointNameLeftEarBottom, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameLeftEarMiddle

func VNAnimalBodyPoseObservationJointNameLeftEarMiddle() obj.Object

VNAnimalBodyPoseObservationJointNameLeftEarMiddle returns the string constant VNAnimalBodyPoseObservationJointNameLeftEarMiddle, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameLeftEarTop

func VNAnimalBodyPoseObservationJointNameLeftEarTop() obj.Object

VNAnimalBodyPoseObservationJointNameLeftEarTop returns the string constant VNAnimalBodyPoseObservationJointNameLeftEarTop, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameLeftEye

func VNAnimalBodyPoseObservationJointNameLeftEye() obj.Object

VNAnimalBodyPoseObservationJointNameLeftEye returns the string constant VNAnimalBodyPoseObservationJointNameLeftEye, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameLeftFrontElbow

func VNAnimalBodyPoseObservationJointNameLeftFrontElbow() obj.Object

VNAnimalBodyPoseObservationJointNameLeftFrontElbow returns the string constant VNAnimalBodyPoseObservationJointNameLeftFrontElbow, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameLeftFrontKnee

func VNAnimalBodyPoseObservationJointNameLeftFrontKnee() obj.Object

VNAnimalBodyPoseObservationJointNameLeftFrontKnee returns the string constant VNAnimalBodyPoseObservationJointNameLeftFrontKnee, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameLeftFrontPaw

func VNAnimalBodyPoseObservationJointNameLeftFrontPaw() obj.Object

VNAnimalBodyPoseObservationJointNameLeftFrontPaw returns the string constant VNAnimalBodyPoseObservationJointNameLeftFrontPaw, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameNeck

func VNAnimalBodyPoseObservationJointNameNeck() obj.Object

VNAnimalBodyPoseObservationJointNameNeck returns the string constant VNAnimalBodyPoseObservationJointNameNeck, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameNose

func VNAnimalBodyPoseObservationJointNameNose() obj.Object

VNAnimalBodyPoseObservationJointNameNose returns the string constant VNAnimalBodyPoseObservationJointNameNose, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameRightBackElbow

func VNAnimalBodyPoseObservationJointNameRightBackElbow() obj.Object

VNAnimalBodyPoseObservationJointNameRightBackElbow returns the string constant VNAnimalBodyPoseObservationJointNameRightBackElbow, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameRightBackKnee

func VNAnimalBodyPoseObservationJointNameRightBackKnee() obj.Object

VNAnimalBodyPoseObservationJointNameRightBackKnee returns the string constant VNAnimalBodyPoseObservationJointNameRightBackKnee, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameRightBackPaw

func VNAnimalBodyPoseObservationJointNameRightBackPaw() obj.Object

VNAnimalBodyPoseObservationJointNameRightBackPaw returns the string constant VNAnimalBodyPoseObservationJointNameRightBackPaw, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameRightEarBottom

func VNAnimalBodyPoseObservationJointNameRightEarBottom() obj.Object

VNAnimalBodyPoseObservationJointNameRightEarBottom returns the string constant VNAnimalBodyPoseObservationJointNameRightEarBottom, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameRightEarMiddle

func VNAnimalBodyPoseObservationJointNameRightEarMiddle() obj.Object

VNAnimalBodyPoseObservationJointNameRightEarMiddle returns the string constant VNAnimalBodyPoseObservationJointNameRightEarMiddle, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameRightEarTop

func VNAnimalBodyPoseObservationJointNameRightEarTop() obj.Object

VNAnimalBodyPoseObservationJointNameRightEarTop returns the string constant VNAnimalBodyPoseObservationJointNameRightEarTop, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameRightEye

func VNAnimalBodyPoseObservationJointNameRightEye() obj.Object

VNAnimalBodyPoseObservationJointNameRightEye returns the string constant VNAnimalBodyPoseObservationJointNameRightEye, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameRightFrontElbow

func VNAnimalBodyPoseObservationJointNameRightFrontElbow() obj.Object

VNAnimalBodyPoseObservationJointNameRightFrontElbow returns the string constant VNAnimalBodyPoseObservationJointNameRightFrontElbow, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameRightFrontKnee

func VNAnimalBodyPoseObservationJointNameRightFrontKnee() obj.Object

VNAnimalBodyPoseObservationJointNameRightFrontKnee returns the string constant VNAnimalBodyPoseObservationJointNameRightFrontKnee, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameRightFrontPaw

func VNAnimalBodyPoseObservationJointNameRightFrontPaw() obj.Object

VNAnimalBodyPoseObservationJointNameRightFrontPaw returns the string constant VNAnimalBodyPoseObservationJointNameRightFrontPaw, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameTailBottom

func VNAnimalBodyPoseObservationJointNameTailBottom() obj.Object

VNAnimalBodyPoseObservationJointNameTailBottom returns the string constant VNAnimalBodyPoseObservationJointNameTailBottom, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameTailMiddle

func VNAnimalBodyPoseObservationJointNameTailMiddle() obj.Object

VNAnimalBodyPoseObservationJointNameTailMiddle returns the string constant VNAnimalBodyPoseObservationJointNameTailMiddle, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointNameTailTop

func VNAnimalBodyPoseObservationJointNameTailTop() obj.Object

VNAnimalBodyPoseObservationJointNameTailTop returns the string constant VNAnimalBodyPoseObservationJointNameTailTop, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointsGroupNameAll

func VNAnimalBodyPoseObservationJointsGroupNameAll() obj.Object

VNAnimalBodyPoseObservationJointsGroupNameAll returns the string constant VNAnimalBodyPoseObservationJointsGroupNameAll, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointsGroupNameForelegs

func VNAnimalBodyPoseObservationJointsGroupNameForelegs() obj.Object

VNAnimalBodyPoseObservationJointsGroupNameForelegs returns the string constant VNAnimalBodyPoseObservationJointsGroupNameForelegs, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointsGroupNameHead

func VNAnimalBodyPoseObservationJointsGroupNameHead() obj.Object

VNAnimalBodyPoseObservationJointsGroupNameHead returns the string constant VNAnimalBodyPoseObservationJointsGroupNameHead, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointsGroupNameHindlegs

func VNAnimalBodyPoseObservationJointsGroupNameHindlegs() obj.Object

VNAnimalBodyPoseObservationJointsGroupNameHindlegs returns the string constant VNAnimalBodyPoseObservationJointsGroupNameHindlegs, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointsGroupNameTail

func VNAnimalBodyPoseObservationJointsGroupNameTail() obj.Object

VNAnimalBodyPoseObservationJointsGroupNameTail returns the string constant VNAnimalBodyPoseObservationJointsGroupNameTail, for use as a dictionary key or argument.

func VNAnimalBodyPoseObservationJointsGroupNameTrunk

func VNAnimalBodyPoseObservationJointsGroupNameTrunk() obj.Object

VNAnimalBodyPoseObservationJointsGroupNameTrunk returns the string constant VNAnimalBodyPoseObservationJointsGroupNameTrunk, for use as a dictionary key or argument.

func VNAnimalIdentifierCat

func VNAnimalIdentifierCat() obj.Object

VNAnimalIdentifierCat returns the string constant VNAnimalIdentifierCat, for use as a dictionary key or argument.

func VNAnimalIdentifierDog

func VNAnimalIdentifierDog() obj.Object

VNAnimalIdentifierDog returns the string constant VNAnimalIdentifierDog, for use as a dictionary key or argument.

func VNBarcodeSymbologyAztec

func VNBarcodeSymbologyAztec() obj.Object

VNBarcodeSymbologyAztec returns the string constant VNBarcodeSymbologyAztec, for use as a dictionary key or argument.

func VNBarcodeSymbologyCodabar

func VNBarcodeSymbologyCodabar() obj.Object

VNBarcodeSymbologyCodabar returns the string constant VNBarcodeSymbologyCodabar, for use as a dictionary key or argument.

func VNBarcodeSymbologyCode39

func VNBarcodeSymbologyCode39() obj.Object

VNBarcodeSymbologyCode39 returns the string constant VNBarcodeSymbologyCode39, for use as a dictionary key or argument.

func VNBarcodeSymbologyCode39Checksum

func VNBarcodeSymbologyCode39Checksum() obj.Object

VNBarcodeSymbologyCode39Checksum returns the string constant VNBarcodeSymbologyCode39Checksum, for use as a dictionary key or argument.

func VNBarcodeSymbologyCode39FullASCII

func VNBarcodeSymbologyCode39FullASCII() obj.Object

VNBarcodeSymbologyCode39FullASCII returns the string constant VNBarcodeSymbologyCode39FullASCII, for use as a dictionary key or argument.

func VNBarcodeSymbologyCode39FullASCIIChecksum

func VNBarcodeSymbologyCode39FullASCIIChecksum() obj.Object

VNBarcodeSymbologyCode39FullASCIIChecksum returns the string constant VNBarcodeSymbologyCode39FullASCIIChecksum, for use as a dictionary key or argument.

func VNBarcodeSymbologyCode93

func VNBarcodeSymbologyCode93() obj.Object

VNBarcodeSymbologyCode93 returns the string constant VNBarcodeSymbologyCode93, for use as a dictionary key or argument.

func VNBarcodeSymbologyCode93i

func VNBarcodeSymbologyCode93i() obj.Object

VNBarcodeSymbologyCode93i returns the string constant VNBarcodeSymbologyCode93i, for use as a dictionary key or argument.

func VNBarcodeSymbologyCode128

func VNBarcodeSymbologyCode128() obj.Object

VNBarcodeSymbologyCode128 returns the string constant VNBarcodeSymbologyCode128, for use as a dictionary key or argument.

func VNBarcodeSymbologyDataMatrix

func VNBarcodeSymbologyDataMatrix() obj.Object

VNBarcodeSymbologyDataMatrix returns the string constant VNBarcodeSymbologyDataMatrix, for use as a dictionary key or argument.

func VNBarcodeSymbologyEAN8

func VNBarcodeSymbologyEAN8() obj.Object

VNBarcodeSymbologyEAN8 returns the string constant VNBarcodeSymbologyEAN8, for use as a dictionary key or argument.

func VNBarcodeSymbologyEAN13

func VNBarcodeSymbologyEAN13() obj.Object

VNBarcodeSymbologyEAN13 returns the string constant VNBarcodeSymbologyEAN13, for use as a dictionary key or argument.

func VNBarcodeSymbologyGS1DataBar

func VNBarcodeSymbologyGS1DataBar() obj.Object

VNBarcodeSymbologyGS1DataBar returns the string constant VNBarcodeSymbologyGS1DataBar, for use as a dictionary key or argument.

func VNBarcodeSymbologyGS1DataBarExpanded

func VNBarcodeSymbologyGS1DataBarExpanded() obj.Object

VNBarcodeSymbologyGS1DataBarExpanded returns the string constant VNBarcodeSymbologyGS1DataBarExpanded, for use as a dictionary key or argument.

func VNBarcodeSymbologyGS1DataBarLimited

func VNBarcodeSymbologyGS1DataBarLimited() obj.Object

VNBarcodeSymbologyGS1DataBarLimited returns the string constant VNBarcodeSymbologyGS1DataBarLimited, for use as a dictionary key or argument.

func VNBarcodeSymbologyI2of5

func VNBarcodeSymbologyI2of5() obj.Object

VNBarcodeSymbologyI2of5 returns the string constant VNBarcodeSymbologyI2of5, for use as a dictionary key or argument.

func VNBarcodeSymbologyI2of5Checksum

func VNBarcodeSymbologyI2of5Checksum() obj.Object

VNBarcodeSymbologyI2of5Checksum returns the string constant VNBarcodeSymbologyI2of5Checksum, for use as a dictionary key or argument.

func VNBarcodeSymbologyITF14

func VNBarcodeSymbologyITF14() obj.Object

VNBarcodeSymbologyITF14 returns the string constant VNBarcodeSymbologyITF14, for use as a dictionary key or argument.

func VNBarcodeSymbologyMSIPlessey

func VNBarcodeSymbologyMSIPlessey() obj.Object

VNBarcodeSymbologyMSIPlessey returns the string constant VNBarcodeSymbologyMSIPlessey, for use as a dictionary key or argument.

func VNBarcodeSymbologyMicroPDF417

func VNBarcodeSymbologyMicroPDF417() obj.Object

VNBarcodeSymbologyMicroPDF417 returns the string constant VNBarcodeSymbologyMicroPDF417, for use as a dictionary key or argument.

func VNBarcodeSymbologyMicroQR

func VNBarcodeSymbologyMicroQR() obj.Object

VNBarcodeSymbologyMicroQR returns the string constant VNBarcodeSymbologyMicroQR, for use as a dictionary key or argument.

func VNBarcodeSymbologyPDF417

func VNBarcodeSymbologyPDF417() obj.Object

VNBarcodeSymbologyPDF417 returns the string constant VNBarcodeSymbologyPDF417, for use as a dictionary key or argument.

func VNBarcodeSymbologyQR

func VNBarcodeSymbologyQR() obj.Object

VNBarcodeSymbologyQR returns the string constant VNBarcodeSymbologyQR, for use as a dictionary key or argument.

func VNBarcodeSymbologyUPCE

func VNBarcodeSymbologyUPCE() obj.Object

VNBarcodeSymbologyUPCE returns the string constant VNBarcodeSymbologyUPCE, for use as a dictionary key or argument.

func VNBodyLandmarkKeyLeftAnkle

func VNBodyLandmarkKeyLeftAnkle() obj.Object

VNBodyLandmarkKeyLeftAnkle returns the string constant VNBodyLandmarkKeyLeftAnkle, for use as a dictionary key or argument.

func VNBodyLandmarkKeyLeftEar

func VNBodyLandmarkKeyLeftEar() obj.Object

VNBodyLandmarkKeyLeftEar returns the string constant VNBodyLandmarkKeyLeftEar, for use as a dictionary key or argument.

func VNBodyLandmarkKeyLeftElbow

func VNBodyLandmarkKeyLeftElbow() obj.Object

VNBodyLandmarkKeyLeftElbow returns the string constant VNBodyLandmarkKeyLeftElbow, for use as a dictionary key or argument.

func VNBodyLandmarkKeyLeftEye

func VNBodyLandmarkKeyLeftEye() obj.Object

VNBodyLandmarkKeyLeftEye returns the string constant VNBodyLandmarkKeyLeftEye, for use as a dictionary key or argument.

func VNBodyLandmarkKeyLeftHip

func VNBodyLandmarkKeyLeftHip() obj.Object

VNBodyLandmarkKeyLeftHip returns the string constant VNBodyLandmarkKeyLeftHip, for use as a dictionary key or argument.

func VNBodyLandmarkKeyLeftKnee

func VNBodyLandmarkKeyLeftKnee() obj.Object

VNBodyLandmarkKeyLeftKnee returns the string constant VNBodyLandmarkKeyLeftKnee, for use as a dictionary key or argument.

func VNBodyLandmarkKeyLeftShoulder

func VNBodyLandmarkKeyLeftShoulder() obj.Object

VNBodyLandmarkKeyLeftShoulder returns the string constant VNBodyLandmarkKeyLeftShoulder, for use as a dictionary key or argument.

func VNBodyLandmarkKeyLeftWrist

func VNBodyLandmarkKeyLeftWrist() obj.Object

VNBodyLandmarkKeyLeftWrist returns the string constant VNBodyLandmarkKeyLeftWrist, for use as a dictionary key or argument.

func VNBodyLandmarkKeyNeck

func VNBodyLandmarkKeyNeck() obj.Object

VNBodyLandmarkKeyNeck returns the string constant VNBodyLandmarkKeyNeck, for use as a dictionary key or argument.

func VNBodyLandmarkKeyNose

func VNBodyLandmarkKeyNose() obj.Object

VNBodyLandmarkKeyNose returns the string constant VNBodyLandmarkKeyNose, for use as a dictionary key or argument.

func VNBodyLandmarkKeyRightAnkle

func VNBodyLandmarkKeyRightAnkle() obj.Object

VNBodyLandmarkKeyRightAnkle returns the string constant VNBodyLandmarkKeyRightAnkle, for use as a dictionary key or argument.

func VNBodyLandmarkKeyRightEar

func VNBodyLandmarkKeyRightEar() obj.Object

VNBodyLandmarkKeyRightEar returns the string constant VNBodyLandmarkKeyRightEar, for use as a dictionary key or argument.

func VNBodyLandmarkKeyRightElbow

func VNBodyLandmarkKeyRightElbow() obj.Object

VNBodyLandmarkKeyRightElbow returns the string constant VNBodyLandmarkKeyRightElbow, for use as a dictionary key or argument.

func VNBodyLandmarkKeyRightEye

func VNBodyLandmarkKeyRightEye() obj.Object

VNBodyLandmarkKeyRightEye returns the string constant VNBodyLandmarkKeyRightEye, for use as a dictionary key or argument.

func VNBodyLandmarkKeyRightHip

func VNBodyLandmarkKeyRightHip() obj.Object

VNBodyLandmarkKeyRightHip returns the string constant VNBodyLandmarkKeyRightHip, for use as a dictionary key or argument.

func VNBodyLandmarkKeyRightKnee

func VNBodyLandmarkKeyRightKnee() obj.Object

VNBodyLandmarkKeyRightKnee returns the string constant VNBodyLandmarkKeyRightKnee, for use as a dictionary key or argument.

func VNBodyLandmarkKeyRightShoulder

func VNBodyLandmarkKeyRightShoulder() obj.Object

VNBodyLandmarkKeyRightShoulder returns the string constant VNBodyLandmarkKeyRightShoulder, for use as a dictionary key or argument.

func VNBodyLandmarkKeyRightWrist

func VNBodyLandmarkKeyRightWrist() obj.Object

VNBodyLandmarkKeyRightWrist returns the string constant VNBodyLandmarkKeyRightWrist, for use as a dictionary key or argument.

func VNBodyLandmarkKeyRoot

func VNBodyLandmarkKeyRoot() obj.Object

VNBodyLandmarkKeyRoot returns the string constant VNBodyLandmarkKeyRoot, for use as a dictionary key or argument.

func VNBodyLandmarkRegionKeyFace

func VNBodyLandmarkRegionKeyFace() obj.Object

VNBodyLandmarkRegionKeyFace returns the string constant VNBodyLandmarkRegionKeyFace, for use as a dictionary key or argument.

func VNBodyLandmarkRegionKeyLeftArm

func VNBodyLandmarkRegionKeyLeftArm() obj.Object

VNBodyLandmarkRegionKeyLeftArm returns the string constant VNBodyLandmarkRegionKeyLeftArm, for use as a dictionary key or argument.

func VNBodyLandmarkRegionKeyLeftLeg

func VNBodyLandmarkRegionKeyLeftLeg() obj.Object

VNBodyLandmarkRegionKeyLeftLeg returns the string constant VNBodyLandmarkRegionKeyLeftLeg, for use as a dictionary key or argument.

func VNBodyLandmarkRegionKeyRightArm

func VNBodyLandmarkRegionKeyRightArm() obj.Object

VNBodyLandmarkRegionKeyRightArm returns the string constant VNBodyLandmarkRegionKeyRightArm, for use as a dictionary key or argument.

func VNBodyLandmarkRegionKeyRightLeg

func VNBodyLandmarkRegionKeyRightLeg() obj.Object

VNBodyLandmarkRegionKeyRightLeg returns the string constant VNBodyLandmarkRegionKeyRightLeg, for use as a dictionary key or argument.

func VNBodyLandmarkRegionKeyTorso

func VNBodyLandmarkRegionKeyTorso() obj.Object

VNBodyLandmarkRegionKeyTorso returns the string constant VNBodyLandmarkRegionKeyTorso, for use as a dictionary key or argument.

func VNComputeStageMain

func VNComputeStageMain() obj.Object

VNComputeStageMain returns the string constant VNComputeStageMain, for use as a dictionary key or argument.

func VNComputeStagePostProcessing

func VNComputeStagePostProcessing() obj.Object

VNComputeStagePostProcessing returns the string constant VNComputeStagePostProcessing, for use as a dictionary key or argument.

func VNDetectHumanHandPoseRequestSupportedJointNamesForRevision added in v0.17.0

func VNDetectHumanHandPoseRequestSupportedJointNamesForRevision(revision int) (result []*foundation.String, err error)

VNDetectHumanHandPoseRequestSupportedJointNamesForRevision retrieves the supported joint names for a revision.

func VNDetectHumanHandPoseRequestSupportedJointsGroupNamesForRevision added in v0.17.0

func VNDetectHumanHandPoseRequestSupportedJointsGroupNamesForRevision(revision int) (result []*foundation.String, err error)

VNDetectHumanHandPoseRequestSupportedJointsGroupNamesForRevision retrieves the supported joint group names for a revision.

func VNElementTypeSize

func VNElementTypeSize(elementType ElementType) int

VNElementTypeSize calls the Vision framework function VNElementTypeSize.

func VNErrorDomain

func VNErrorDomain() obj.Object

VNErrorDomain returns the string constant VNErrorDomain, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameCenterHead

func VNHumanBodyPose3DObservationJointNameCenterHead() obj.Object

VNHumanBodyPose3DObservationJointNameCenterHead returns the string constant VNHumanBodyPose3DObservationJointNameCenterHead, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameCenterShoulder

func VNHumanBodyPose3DObservationJointNameCenterShoulder() obj.Object

VNHumanBodyPose3DObservationJointNameCenterShoulder returns the string constant VNHumanBodyPose3DObservationJointNameCenterShoulder, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameLeftAnkle

func VNHumanBodyPose3DObservationJointNameLeftAnkle() obj.Object

VNHumanBodyPose3DObservationJointNameLeftAnkle returns the string constant VNHumanBodyPose3DObservationJointNameLeftAnkle, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameLeftElbow

func VNHumanBodyPose3DObservationJointNameLeftElbow() obj.Object

VNHumanBodyPose3DObservationJointNameLeftElbow returns the string constant VNHumanBodyPose3DObservationJointNameLeftElbow, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameLeftHip

func VNHumanBodyPose3DObservationJointNameLeftHip() obj.Object

VNHumanBodyPose3DObservationJointNameLeftHip returns the string constant VNHumanBodyPose3DObservationJointNameLeftHip, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameLeftKnee

func VNHumanBodyPose3DObservationJointNameLeftKnee() obj.Object

VNHumanBodyPose3DObservationJointNameLeftKnee returns the string constant VNHumanBodyPose3DObservationJointNameLeftKnee, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameLeftShoulder

func VNHumanBodyPose3DObservationJointNameLeftShoulder() obj.Object

VNHumanBodyPose3DObservationJointNameLeftShoulder returns the string constant VNHumanBodyPose3DObservationJointNameLeftShoulder, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameLeftWrist

func VNHumanBodyPose3DObservationJointNameLeftWrist() obj.Object

VNHumanBodyPose3DObservationJointNameLeftWrist returns the string constant VNHumanBodyPose3DObservationJointNameLeftWrist, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameRightAnkle

func VNHumanBodyPose3DObservationJointNameRightAnkle() obj.Object

VNHumanBodyPose3DObservationJointNameRightAnkle returns the string constant VNHumanBodyPose3DObservationJointNameRightAnkle, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameRightElbow

func VNHumanBodyPose3DObservationJointNameRightElbow() obj.Object

VNHumanBodyPose3DObservationJointNameRightElbow returns the string constant VNHumanBodyPose3DObservationJointNameRightElbow, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameRightHip

func VNHumanBodyPose3DObservationJointNameRightHip() obj.Object

VNHumanBodyPose3DObservationJointNameRightHip returns the string constant VNHumanBodyPose3DObservationJointNameRightHip, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameRightKnee

func VNHumanBodyPose3DObservationJointNameRightKnee() obj.Object

VNHumanBodyPose3DObservationJointNameRightKnee returns the string constant VNHumanBodyPose3DObservationJointNameRightKnee, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameRightShoulder

func VNHumanBodyPose3DObservationJointNameRightShoulder() obj.Object

VNHumanBodyPose3DObservationJointNameRightShoulder returns the string constant VNHumanBodyPose3DObservationJointNameRightShoulder, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameRightWrist

func VNHumanBodyPose3DObservationJointNameRightWrist() obj.Object

VNHumanBodyPose3DObservationJointNameRightWrist returns the string constant VNHumanBodyPose3DObservationJointNameRightWrist, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameRoot

func VNHumanBodyPose3DObservationJointNameRoot() obj.Object

VNHumanBodyPose3DObservationJointNameRoot returns the string constant VNHumanBodyPose3DObservationJointNameRoot, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameSpine

func VNHumanBodyPose3DObservationJointNameSpine() obj.Object

VNHumanBodyPose3DObservationJointNameSpine returns the string constant VNHumanBodyPose3DObservationJointNameSpine, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointNameTopHead

func VNHumanBodyPose3DObservationJointNameTopHead() obj.Object

VNHumanBodyPose3DObservationJointNameTopHead returns the string constant VNHumanBodyPose3DObservationJointNameTopHead, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointsGroupNameAll

func VNHumanBodyPose3DObservationJointsGroupNameAll() obj.Object

VNHumanBodyPose3DObservationJointsGroupNameAll returns the string constant VNHumanBodyPose3DObservationJointsGroupNameAll, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointsGroupNameHead

func VNHumanBodyPose3DObservationJointsGroupNameHead() obj.Object

VNHumanBodyPose3DObservationJointsGroupNameHead returns the string constant VNHumanBodyPose3DObservationJointsGroupNameHead, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointsGroupNameLeftArm

func VNHumanBodyPose3DObservationJointsGroupNameLeftArm() obj.Object

VNHumanBodyPose3DObservationJointsGroupNameLeftArm returns the string constant VNHumanBodyPose3DObservationJointsGroupNameLeftArm, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointsGroupNameLeftLeg

func VNHumanBodyPose3DObservationJointsGroupNameLeftLeg() obj.Object

VNHumanBodyPose3DObservationJointsGroupNameLeftLeg returns the string constant VNHumanBodyPose3DObservationJointsGroupNameLeftLeg, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointsGroupNameRightArm

func VNHumanBodyPose3DObservationJointsGroupNameRightArm() obj.Object

VNHumanBodyPose3DObservationJointsGroupNameRightArm returns the string constant VNHumanBodyPose3DObservationJointsGroupNameRightArm, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointsGroupNameRightLeg

func VNHumanBodyPose3DObservationJointsGroupNameRightLeg() obj.Object

VNHumanBodyPose3DObservationJointsGroupNameRightLeg returns the string constant VNHumanBodyPose3DObservationJointsGroupNameRightLeg, for use as a dictionary key or argument.

func VNHumanBodyPose3DObservationJointsGroupNameTorso

func VNHumanBodyPose3DObservationJointsGroupNameTorso() obj.Object

VNHumanBodyPose3DObservationJointsGroupNameTorso returns the string constant VNHumanBodyPose3DObservationJointsGroupNameTorso, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameLeftAnkle

func VNHumanBodyPoseObservationJointNameLeftAnkle() obj.Object

VNHumanBodyPoseObservationJointNameLeftAnkle returns the string constant VNHumanBodyPoseObservationJointNameLeftAnkle, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameLeftEar

func VNHumanBodyPoseObservationJointNameLeftEar() obj.Object

VNHumanBodyPoseObservationJointNameLeftEar returns the string constant VNHumanBodyPoseObservationJointNameLeftEar, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameLeftElbow

func VNHumanBodyPoseObservationJointNameLeftElbow() obj.Object

VNHumanBodyPoseObservationJointNameLeftElbow returns the string constant VNHumanBodyPoseObservationJointNameLeftElbow, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameLeftEye

func VNHumanBodyPoseObservationJointNameLeftEye() obj.Object

VNHumanBodyPoseObservationJointNameLeftEye returns the string constant VNHumanBodyPoseObservationJointNameLeftEye, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameLeftHip

func VNHumanBodyPoseObservationJointNameLeftHip() obj.Object

VNHumanBodyPoseObservationJointNameLeftHip returns the string constant VNHumanBodyPoseObservationJointNameLeftHip, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameLeftKnee

func VNHumanBodyPoseObservationJointNameLeftKnee() obj.Object

VNHumanBodyPoseObservationJointNameLeftKnee returns the string constant VNHumanBodyPoseObservationJointNameLeftKnee, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameLeftShoulder

func VNHumanBodyPoseObservationJointNameLeftShoulder() obj.Object

VNHumanBodyPoseObservationJointNameLeftShoulder returns the string constant VNHumanBodyPoseObservationJointNameLeftShoulder, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameLeftWrist

func VNHumanBodyPoseObservationJointNameLeftWrist() obj.Object

VNHumanBodyPoseObservationJointNameLeftWrist returns the string constant VNHumanBodyPoseObservationJointNameLeftWrist, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameNeck

func VNHumanBodyPoseObservationJointNameNeck() obj.Object

VNHumanBodyPoseObservationJointNameNeck returns the string constant VNHumanBodyPoseObservationJointNameNeck, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameNose

func VNHumanBodyPoseObservationJointNameNose() obj.Object

VNHumanBodyPoseObservationJointNameNose returns the string constant VNHumanBodyPoseObservationJointNameNose, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameRightAnkle

func VNHumanBodyPoseObservationJointNameRightAnkle() obj.Object

VNHumanBodyPoseObservationJointNameRightAnkle returns the string constant VNHumanBodyPoseObservationJointNameRightAnkle, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameRightEar

func VNHumanBodyPoseObservationJointNameRightEar() obj.Object

VNHumanBodyPoseObservationJointNameRightEar returns the string constant VNHumanBodyPoseObservationJointNameRightEar, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameRightElbow

func VNHumanBodyPoseObservationJointNameRightElbow() obj.Object

VNHumanBodyPoseObservationJointNameRightElbow returns the string constant VNHumanBodyPoseObservationJointNameRightElbow, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameRightEye

func VNHumanBodyPoseObservationJointNameRightEye() obj.Object

VNHumanBodyPoseObservationJointNameRightEye returns the string constant VNHumanBodyPoseObservationJointNameRightEye, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameRightHip

func VNHumanBodyPoseObservationJointNameRightHip() obj.Object

VNHumanBodyPoseObservationJointNameRightHip returns the string constant VNHumanBodyPoseObservationJointNameRightHip, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameRightKnee

func VNHumanBodyPoseObservationJointNameRightKnee() obj.Object

VNHumanBodyPoseObservationJointNameRightKnee returns the string constant VNHumanBodyPoseObservationJointNameRightKnee, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameRightShoulder

func VNHumanBodyPoseObservationJointNameRightShoulder() obj.Object

VNHumanBodyPoseObservationJointNameRightShoulder returns the string constant VNHumanBodyPoseObservationJointNameRightShoulder, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameRightWrist

func VNHumanBodyPoseObservationJointNameRightWrist() obj.Object

VNHumanBodyPoseObservationJointNameRightWrist returns the string constant VNHumanBodyPoseObservationJointNameRightWrist, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointNameRoot

func VNHumanBodyPoseObservationJointNameRoot() obj.Object

VNHumanBodyPoseObservationJointNameRoot returns the string constant VNHumanBodyPoseObservationJointNameRoot, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointsGroupNameAll

func VNHumanBodyPoseObservationJointsGroupNameAll() obj.Object

VNHumanBodyPoseObservationJointsGroupNameAll returns the string constant VNHumanBodyPoseObservationJointsGroupNameAll, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointsGroupNameFace

func VNHumanBodyPoseObservationJointsGroupNameFace() obj.Object

VNHumanBodyPoseObservationJointsGroupNameFace returns the string constant VNHumanBodyPoseObservationJointsGroupNameFace, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointsGroupNameLeftArm

func VNHumanBodyPoseObservationJointsGroupNameLeftArm() obj.Object

VNHumanBodyPoseObservationJointsGroupNameLeftArm returns the string constant VNHumanBodyPoseObservationJointsGroupNameLeftArm, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointsGroupNameLeftLeg

func VNHumanBodyPoseObservationJointsGroupNameLeftLeg() obj.Object

VNHumanBodyPoseObservationJointsGroupNameLeftLeg returns the string constant VNHumanBodyPoseObservationJointsGroupNameLeftLeg, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointsGroupNameRightArm

func VNHumanBodyPoseObservationJointsGroupNameRightArm() obj.Object

VNHumanBodyPoseObservationJointsGroupNameRightArm returns the string constant VNHumanBodyPoseObservationJointsGroupNameRightArm, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointsGroupNameRightLeg

func VNHumanBodyPoseObservationJointsGroupNameRightLeg() obj.Object

VNHumanBodyPoseObservationJointsGroupNameRightLeg returns the string constant VNHumanBodyPoseObservationJointsGroupNameRightLeg, for use as a dictionary key or argument.

func VNHumanBodyPoseObservationJointsGroupNameTorso

func VNHumanBodyPoseObservationJointsGroupNameTorso() obj.Object

VNHumanBodyPoseObservationJointsGroupNameTorso returns the string constant VNHumanBodyPoseObservationJointsGroupNameTorso, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameIndexDIP

func VNHumanHandPoseObservationJointNameIndexDIP() obj.Object

VNHumanHandPoseObservationJointNameIndexDIP returns the string constant VNHumanHandPoseObservationJointNameIndexDIP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameIndexMCP

func VNHumanHandPoseObservationJointNameIndexMCP() obj.Object

VNHumanHandPoseObservationJointNameIndexMCP returns the string constant VNHumanHandPoseObservationJointNameIndexMCP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameIndexPIP

func VNHumanHandPoseObservationJointNameIndexPIP() obj.Object

VNHumanHandPoseObservationJointNameIndexPIP returns the string constant VNHumanHandPoseObservationJointNameIndexPIP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameIndexTip

func VNHumanHandPoseObservationJointNameIndexTip() obj.Object

VNHumanHandPoseObservationJointNameIndexTip returns the string constant VNHumanHandPoseObservationJointNameIndexTip, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameLittleDIP

func VNHumanHandPoseObservationJointNameLittleDIP() obj.Object

VNHumanHandPoseObservationJointNameLittleDIP returns the string constant VNHumanHandPoseObservationJointNameLittleDIP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameLittleMCP

func VNHumanHandPoseObservationJointNameLittleMCP() obj.Object

VNHumanHandPoseObservationJointNameLittleMCP returns the string constant VNHumanHandPoseObservationJointNameLittleMCP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameLittlePIP

func VNHumanHandPoseObservationJointNameLittlePIP() obj.Object

VNHumanHandPoseObservationJointNameLittlePIP returns the string constant VNHumanHandPoseObservationJointNameLittlePIP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameLittleTip

func VNHumanHandPoseObservationJointNameLittleTip() obj.Object

VNHumanHandPoseObservationJointNameLittleTip returns the string constant VNHumanHandPoseObservationJointNameLittleTip, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameMiddleDIP

func VNHumanHandPoseObservationJointNameMiddleDIP() obj.Object

VNHumanHandPoseObservationJointNameMiddleDIP returns the string constant VNHumanHandPoseObservationJointNameMiddleDIP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameMiddleMCP

func VNHumanHandPoseObservationJointNameMiddleMCP() obj.Object

VNHumanHandPoseObservationJointNameMiddleMCP returns the string constant VNHumanHandPoseObservationJointNameMiddleMCP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameMiddlePIP

func VNHumanHandPoseObservationJointNameMiddlePIP() obj.Object

VNHumanHandPoseObservationJointNameMiddlePIP returns the string constant VNHumanHandPoseObservationJointNameMiddlePIP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameMiddleTip

func VNHumanHandPoseObservationJointNameMiddleTip() obj.Object

VNHumanHandPoseObservationJointNameMiddleTip returns the string constant VNHumanHandPoseObservationJointNameMiddleTip, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameRingDIP

func VNHumanHandPoseObservationJointNameRingDIP() obj.Object

VNHumanHandPoseObservationJointNameRingDIP returns the string constant VNHumanHandPoseObservationJointNameRingDIP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameRingMCP

func VNHumanHandPoseObservationJointNameRingMCP() obj.Object

VNHumanHandPoseObservationJointNameRingMCP returns the string constant VNHumanHandPoseObservationJointNameRingMCP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameRingPIP

func VNHumanHandPoseObservationJointNameRingPIP() obj.Object

VNHumanHandPoseObservationJointNameRingPIP returns the string constant VNHumanHandPoseObservationJointNameRingPIP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameRingTip

func VNHumanHandPoseObservationJointNameRingTip() obj.Object

VNHumanHandPoseObservationJointNameRingTip returns the string constant VNHumanHandPoseObservationJointNameRingTip, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameThumbCMC

func VNHumanHandPoseObservationJointNameThumbCMC() obj.Object

VNHumanHandPoseObservationJointNameThumbCMC returns the string constant VNHumanHandPoseObservationJointNameThumbCMC, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameThumbIP

func VNHumanHandPoseObservationJointNameThumbIP() obj.Object

VNHumanHandPoseObservationJointNameThumbIP returns the string constant VNHumanHandPoseObservationJointNameThumbIP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameThumbMP

func VNHumanHandPoseObservationJointNameThumbMP() obj.Object

VNHumanHandPoseObservationJointNameThumbMP returns the string constant VNHumanHandPoseObservationJointNameThumbMP, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameThumbTip

func VNHumanHandPoseObservationJointNameThumbTip() obj.Object

VNHumanHandPoseObservationJointNameThumbTip returns the string constant VNHumanHandPoseObservationJointNameThumbTip, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointNameWrist

func VNHumanHandPoseObservationJointNameWrist() obj.Object

VNHumanHandPoseObservationJointNameWrist returns the string constant VNHumanHandPoseObservationJointNameWrist, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointsGroupNameAll

func VNHumanHandPoseObservationJointsGroupNameAll() obj.Object

VNHumanHandPoseObservationJointsGroupNameAll returns the string constant VNHumanHandPoseObservationJointsGroupNameAll, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointsGroupNameIndexFinger

func VNHumanHandPoseObservationJointsGroupNameIndexFinger() obj.Object

VNHumanHandPoseObservationJointsGroupNameIndexFinger returns the string constant VNHumanHandPoseObservationJointsGroupNameIndexFinger, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointsGroupNameLittleFinger

func VNHumanHandPoseObservationJointsGroupNameLittleFinger() obj.Object

VNHumanHandPoseObservationJointsGroupNameLittleFinger returns the string constant VNHumanHandPoseObservationJointsGroupNameLittleFinger, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointsGroupNameMiddleFinger

func VNHumanHandPoseObservationJointsGroupNameMiddleFinger() obj.Object

VNHumanHandPoseObservationJointsGroupNameMiddleFinger returns the string constant VNHumanHandPoseObservationJointsGroupNameMiddleFinger, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointsGroupNameRingFinger

func VNHumanHandPoseObservationJointsGroupNameRingFinger() obj.Object

VNHumanHandPoseObservationJointsGroupNameRingFinger returns the string constant VNHumanHandPoseObservationJointsGroupNameRingFinger, for use as a dictionary key or argument.

func VNHumanHandPoseObservationJointsGroupNameThumb

func VNHumanHandPoseObservationJointsGroupNameThumb() obj.Object

VNHumanHandPoseObservationJointsGroupNameThumb returns the string constant VNHumanHandPoseObservationJointsGroupNameThumb, for use as a dictionary key or argument.

func VNImageOptionCIContext

func VNImageOptionCIContext() obj.Object

VNImageOptionCIContext returns the string constant VNImageOptionCIContext, for use as a dictionary key or argument.

func VNImageOptionCameraIntrinsics

func VNImageOptionCameraIntrinsics() obj.Object

VNImageOptionCameraIntrinsics returns the string constant VNImageOptionCameraIntrinsics, for use as a dictionary key or argument.

func VNImageOptionProperties

func VNImageOptionProperties() obj.Object

VNImageOptionProperties returns the string constant VNImageOptionProperties, for use as a dictionary key or argument.

func VNImagePointForFaceLandmarkPoint

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

VNImagePointForFaceLandmarkPoint calls the Vision framework function VNImagePointForFaceLandmarkPoint.

func VNImagePointForNormalizedPoint

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

VNImagePointForNormalizedPoint calls the Vision framework function VNImagePointForNormalizedPoint.

func VNImagePointForNormalizedPointUsingRegionOfInterest

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

VNImagePointForNormalizedPointUsingRegionOfInterest calls the Vision framework function VNImagePointForNormalizedPointUsingRegionOfInterest.

func VNImageRectForNormalizedRect

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

VNImageRectForNormalizedRect calls the Vision framework function VNImageRectForNormalizedRect.

func VNImageRectForNormalizedRectUsingRegionOfInterest

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

VNImageRectForNormalizedRectUsingRegionOfInterest calls the Vision framework function VNImageRectForNormalizedRectUsingRegionOfInterest.

func VNNormalizedFaceBoundingBoxPointForLandmarkPoint

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

VNNormalizedFaceBoundingBoxPointForLandmarkPoint calls the Vision framework function VNNormalizedFaceBoundingBoxPointForLandmarkPoint.

func VNNormalizedIdentityRect

func VNNormalizedIdentityRect() corefoundation.CGRect

VNNormalizedIdentityRect returns the value of the constant VNNormalizedIdentityRect.

func VNNormalizedPointForImagePoint

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

VNNormalizedPointForImagePoint calls the Vision framework function VNNormalizedPointForImagePoint.

func VNNormalizedPointForImagePointUsingRegionOfInterest

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

VNNormalizedPointForImagePointUsingRegionOfInterest calls the Vision framework function VNNormalizedPointForImagePointUsingRegionOfInterest.

func VNNormalizedRectForImageRect

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

VNNormalizedRectForImageRect calls the Vision framework function VNNormalizedRectForImageRect.

func VNNormalizedRectForImageRectUsingRegionOfInterest

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

VNNormalizedRectForImageRectUsingRegionOfInterest calls the Vision framework function VNNormalizedRectForImageRectUsingRegionOfInterest.

func VNNormalizedRectIsIdentityRect

func VNNormalizedRectIsIdentityRect(normalizedRect corefoundation.CGRect) bool

VNNormalizedRectIsIdentityRect calls the Vision framework function VNNormalizedRectIsIdentityRect.

func VNRecognizedPoint3DGroupKeyAll

func VNRecognizedPoint3DGroupKeyAll() obj.Object

VNRecognizedPoint3DGroupKeyAll returns the string constant VNRecognizedPoint3DGroupKeyAll, for use as a dictionary key or argument.

func VNRecognizedPointGroupKeyAll

func VNRecognizedPointGroupKeyAll() obj.Object

VNRecognizedPointGroupKeyAll returns the string constant VNRecognizedPointGroupKeyAll, for use as a dictionary key or argument.

func VNVideoProcessingOptionFrameCadence

func VNVideoProcessingOptionFrameCadence() obj.Object

VNVideoProcessingOptionFrameCadence returns the string constant VNVideoProcessingOptionFrameCadence, for use as a dictionary key or argument.

func VNVideoProcessingOptionTimeInterval

func VNVideoProcessingOptionTimeInterval() obj.Object

VNVideoProcessingOptionTimeInterval returns the string constant VNVideoProcessingOptionTimeInterval, for use as a dictionary key or argument.

func VNVisionVersionNumber

func VNVisionVersionNumber() float64

VNVisionVersionNumber returns the value of the constant VNVisionVersionNumber.

Types

type AnimalBodyPoseObservation added in v0.17.0

type AnimalBodyPoseObservation struct {
	RecognizedPointsObservation
}

AnimalBodyPoseObservation is an idiomatic wrapper over the Objective-C class VNAnimalBodyPoseObservation.

It embeds RecognizedPointsObservation, promoting that type's methods.

An observation that provides the animal body points the analysis recognizes.

func AnimalBodyPoseObservationFromID added in v0.17.0

func AnimalBodyPoseObservationFromID(id objc.ID) *AnimalBodyPoseObservation

AnimalBodyPoseObservationFromID adopts an existing Objective-C object as a AnimalBodyPoseObservation (nil for 0), retaining it and registering a release finalizer.

func NewAnimalBodyPoseObservation added in v0.17.0

func NewAnimalBodyPoseObservation() *AnimalBodyPoseObservation

NewAnimalBodyPoseObservation creates a new AnimalBodyPoseObservation.

func (*AnimalBodyPoseObservation) AvailableJointGroupNames added in v0.17.0

func (abpo *AnimalBodyPoseObservation) AvailableJointGroupNames() []obj.Object

AvailableJointGroupNames returns all animal joints group names available in the observation.

AvailableJointGroupNames returns the collection as a Go slice.

func (*AnimalBodyPoseObservation) AvailableJointNames added in v0.17.0

func (abpo *AnimalBodyPoseObservation) AvailableJointNames() []obj.Object

AvailableJointNames returns all animal joint names available in the observation.

AvailableJointNames returns the collection as a Go slice.

func (*AnimalBodyPoseObservation) RecognizedPointForJointName added in v0.17.0

func (abpo *AnimalBodyPoseObservation) RecognizedPointForJointName(jointName obj.Object) (result *RecognizedPoint, err error)

RecognizedPointForJointName returns the point for a joint name the observation recognizes.

func (*AnimalBodyPoseObservation) RecognizedPointsForJointsGroupName added in v0.17.0

func (abpo *AnimalBodyPoseObservation) RecognizedPointsForJointsGroupName(jointsGroupName obj.Object) (result obj.Object, err error)

RecognizedPointsForJointsGroupName returns the points for a joint group name the observation recognizes.

type BarcodeCompositeType added in v0.17.0

type BarcodeCompositeType int64

Composite types for barcode requests.

const (
	// A type that represents no composite type.
	BarcodeCompositeTypeNone BarcodeCompositeType = 0
	// A type that represents a linked composite type.
	BarcodeCompositeTypeLinked BarcodeCompositeType = 1
	// A type that represents trade items in bulk.
	BarcodeCompositeTypeGS1TypeA BarcodeCompositeType = 2
	// A type that represents trade items by piece.
	BarcodeCompositeTypeGS1TypeB BarcodeCompositeType = 3
	// A type that represents trade items in varying quantity.
	BarcodeCompositeTypeGS1TypeC BarcodeCompositeType = 4
)

func (BarcodeCompositeType) String added in v0.17.0

func (e BarcodeCompositeType) String() string

String returns the BarcodeCompositeType constant's name, or its numeric form when the value is not a known constant.

type BarcodeObservation added in v0.17.0

type BarcodeObservation struct {
	RectangleObservation
}

BarcodeObservation is an idiomatic wrapper over the Objective-C class VNBarcodeObservation.

It embeds RectangleObservation, promoting that type's methods.

An object that represents barcode information that an image analysis request detects.

func BarcodeObservationFromID added in v0.17.0

func BarcodeObservationFromID(id objc.ID) *BarcodeObservation

BarcodeObservationFromID adopts an existing Objective-C object as a BarcodeObservation (nil for 0), retaining it and registering a release finalizer.

func NewBarcodeObservation added in v0.17.0

func NewBarcodeObservation() *BarcodeObservation

NewBarcodeObservation creates a new BarcodeObservation.

func (*BarcodeObservation) BarcodeDescriptor added in v0.17.0

func (bo *BarcodeObservation) BarcodeDescriptor() obj.Object

BarcodeDescriptor returns an object that provides symbology-specific data for the barcode.

func (*BarcodeObservation) IsColorInverted added in v0.17.0

func (bo *BarcodeObservation) IsColorInverted() bool

IsColorInverted reports whether a boolean indicating if the barcode is color inverted

func (*BarcodeObservation) IsGS1DataCarrier added in v0.17.0

func (bo *BarcodeObservation) IsGS1DataCarrier() bool

IsGS1DataCarrier reports whether boolean indicating if the barcode carries any GS1 application specific data

func (*BarcodeObservation) PayloadData added in v0.17.0

func (bo *BarcodeObservation) PayloadData() []byte

PayloadData returns the raw data representation of the barcode's payload if available.

func (*BarcodeObservation) PayloadStringValue added in v0.17.0

func (bo *BarcodeObservation) PayloadStringValue() string

PayloadStringValue returns 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 (*BarcodeObservation) SupplementalCompositeType added in v0.17.0

func (bo *BarcodeObservation) SupplementalCompositeType() BarcodeCompositeType

SupplementalCompositeType 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 (*BarcodeObservation) SupplementalPayloadData added in v0.17.0

func (bo *BarcodeObservation) SupplementalPayloadData() []byte

SupplementalPayloadData returns 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 (*BarcodeObservation) SupplementalPayloadString added in v0.17.0

func (bo *BarcodeObservation) SupplementalPayloadString() string

SupplementalPayloadString returns 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 (*BarcodeObservation) Symbology added in v0.17.0

func (bo *BarcodeObservation) Symbology() *foundation.String

Symbology returns the symbology of the detected barcode.

type CGLCPContextPriorityRequest

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

func (CGLCPContextPriorityRequest) String

String returns the CGLCPContextPriorityRequest constant's name, or its numeric form when the value is not a known constant.

type CalculateImageAestheticsScoresRequest added in v0.17.0

type CalculateImageAestheticsScoresRequest struct {
	ImageBasedRequest
}

CalculateImageAestheticsScoresRequest is an idiomatic wrapper over the Objective-C class VNCalculateImageAestheticsScoresRequest.

It embeds ImageBasedRequest, promoting that type's methods.

An object that analyzes an image for aesthetically pleasing attributes.

func CalculateImageAestheticsScoresRequestFromID added in v0.17.0

func CalculateImageAestheticsScoresRequestFromID(id objc.ID) *CalculateImageAestheticsScoresRequest

CalculateImageAestheticsScoresRequestFromID adopts an existing Objective-C object as a CalculateImageAestheticsScoresRequest (nil for 0), retaining it and registering a release finalizer.

func NewCalculateImageAestheticsScoresRequest added in v0.17.0

func NewCalculateImageAestheticsScoresRequest() *CalculateImageAestheticsScoresRequest

NewCalculateImageAestheticsScoresRequest creates a new CalculateImageAestheticsScoresRequest.

func (*CalculateImageAestheticsScoresRequest) WithPreferBackgroundProcessing added in v0.17.0

func (ciasr *CalculateImageAestheticsScoresRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *CalculateImageAestheticsScoresRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*CalculateImageAestheticsScoresRequest) WithRegionOfInterest added in v0.17.0

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*CalculateImageAestheticsScoresRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*CalculateImageAestheticsScoresRequest) WithUsesCPUOnly added in v0.17.0

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type Chirality added in v0.17.0

type Chirality int64

Constants that the define the chirality, or handedness, of a pose.

const (
	// Indicates that the pose chirality is unknown.
	ChiralityUnknown Chirality = 0
	// Indicates a left-handed pose.
	ChiralityLeft Chirality = -1
	// Indicates a right-handed pose.
	ChiralityRight Chirality = 1
)

func (Chirality) String added in v0.17.0

func (e Chirality) String() string

String returns the Chirality constant's name, or its numeric form when the value is not a known constant.

type Circle added in v0.17.0

type Circle struct {
	objref.Handle
}

Circle is an idiomatic wrapper over the Objective-C class VNCircle.

An immutable 2D circle represented by its center point and radius.

func BoundingCircleForContour added in v0.17.0

func BoundingCircleForContour(contour *Contour) (result *Circle, err error)

BoundingCircleForContour calculates a bounding circle for the specified contour object.

func BoundingCircleForPoints added in v0.17.0

func BoundingCircleForPoints(points []*Point) (result *Circle, err error)

BoundingCircleForPoints calculates a bounding circle for the specified array of points.

func BoundingCircleForSIMDPointsPointCount added in v0.17.0

func BoundingCircleForSIMDPointsPointCount(points unsafe.Pointer, pointCount int) (result *Circle, err error)

BoundingCircleForSIMDPointsPointCount calculates a bounding circle for the specified points.

func CircleFromID added in v0.17.0

func CircleFromID(id objc.ID) *Circle

CircleFromID adopts an existing Objective-C object as a Circle (nil for 0), retaining it and registering a release finalizer.

func NewCircleWithCenterDiameter added in v0.17.0

func NewCircleWithCenterDiameter(center *Point, diameter float64) *Circle

NewCircleWithCenterDiameter creates a circle with the specified center and diameter.

func NewCircleWithCenterRadius added in v0.17.0

func NewCircleWithCenterRadius(center *Point, radius float64) *Circle

NewCircleWithCenterRadius creates a circle with the specified center and radius.

func ZeroCircle added in v0.17.0

func ZeroCircle() *Circle

ZeroCircle returns a VNCircle object with center at the Origin [0.0; 0.0] and zero radius.

func (*Circle) Center added in v0.17.0

func (c *Circle) Center() *Point

Center returns circle center.

func (*Circle) ContainsPoint added in v0.17.0

func (c *Circle) ContainsPoint(point *Point) bool

ContainsPoint determines if this circle, including its boundary, contains the specified point.

func (*Circle) ContainsPointInCircumferentialRingOfWidth added in v0.17.0

func (c *Circle) ContainsPointInCircumferentialRingOfWidth(point *Point, ringWidth float64) bool

ContainsPointInCircumferentialRingOfWidth determines if a ring around this circle’s circumference contains the specified point.

func (*Circle) Description added in v0.17.0

func (c *Circle) Description() string

Description returns the object's -description text.

func (*Circle) Diameter added in v0.17.0

func (c *Circle) Diameter() float64

Diameter returns circle diameter.

func (*Circle) IsEqual added in v0.17.0

func (c *Circle) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Circle) IsKind added in v0.17.0

func (c *Circle) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Circle) Radius added in v0.17.0

func (c *Circle) Radius() float64

Radius returns circle radius.

func (*Circle) String added in v0.17.0

func (c *Circle) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type ClassificationObservation added in v0.17.0

type ClassificationObservation struct {
	Observation
}

ClassificationObservation is an idiomatic wrapper over the Objective-C class VNClassificationObservation.

It embeds Observation, promoting that type's methods.

An object that represents classification information that an image-analysis request produces.

func ClassificationObservationFromID added in v0.17.0

func ClassificationObservationFromID(id objc.ID) *ClassificationObservation

ClassificationObservationFromID adopts an existing Objective-C object as a ClassificationObservation (nil for 0), retaining it and registering a release finalizer.

func KnownClassificationsForRevision added in v0.17.0

func KnownClassificationsForRevision(requestRevision int) (result []*ClassificationObservation, err error)

KnownClassificationsForRevision requests the collection of classifications that the Vision framework recognizes.

func NewClassificationObservation added in v0.17.0

func NewClassificationObservation() *ClassificationObservation

NewClassificationObservation creates a new ClassificationObservation.

func (*ClassificationObservation) HasMinimumPrecisionForRecall added in v0.17.0

func (co *ClassificationObservation) HasMinimumPrecisionForRecall(minimumPrecision float32, recall float32) bool

HasMinimumPrecisionForRecall determines whether the observation for a specific recall has a minimum precision value.

func (*ClassificationObservation) HasMinimumRecallForPrecision added in v0.17.0

func (co *ClassificationObservation) HasMinimumRecallForPrecision(minimumRecall float32, precision float32) bool

HasMinimumRecallForPrecision determines whether the observation for a specific precision has a minimum recall value.

func (*ClassificationObservation) HasPrecisionRecallCurve added in v0.17.0

func (co *ClassificationObservation) HasPrecisionRecallCurve() bool

HasPrecisionRecallCurve reports whether determine whether or not precision/recall curves are available with the observation. If this property is true, then all other precision/recall related methods in this addition can be called.

func (*ClassificationObservation) Identifier added in v0.17.0

func (co *ClassificationObservation) Identifier() string

Identifier returns the identifier.

type ClassifyImageRequest added in v0.17.0

type ClassifyImageRequest struct {
	ImageBasedRequest
}

ClassifyImageRequest is an idiomatic wrapper over the Objective-C class VNClassifyImageRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request to classify an image.

func ClassifyImageRequestFromID added in v0.17.0

func ClassifyImageRequestFromID(id objc.ID) *ClassifyImageRequest

ClassifyImageRequestFromID adopts an existing Objective-C object as a ClassifyImageRequest (nil for 0), retaining it and registering a release finalizer.

func NewClassifyImageRequest added in v0.17.0

func NewClassifyImageRequest() *ClassifyImageRequest

NewClassifyImageRequest creates a new ClassifyImageRequest.

func (*ClassifyImageRequest) SupportedIdentifiers added in v0.17.0

func (cir *ClassifyImageRequest) SupportedIdentifiers() (result []string, err error)

SupportedIdentifiers returns the classification identifiers that the request supports in its current configuration.

SupportedIdentifiers returns the collection as a Go slice.

func (*ClassifyImageRequest) WithPreferBackgroundProcessing added in v0.17.0

func (cir *ClassifyImageRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *ClassifyImageRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*ClassifyImageRequest) WithRegionOfInterest added in v0.17.0

func (cir *ClassifyImageRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *ClassifyImageRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*ClassifyImageRequest) WithRevision added in v0.17.0

func (cir *ClassifyImageRequest) WithRevision(revision int) *ClassifyImageRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*ClassifyImageRequest) WithUsesCPUOnly added in v0.17.0

func (cir *ClassifyImageRequest) WithUsesCPUOnly(usesCPUOnly bool) *ClassifyImageRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

type Contour added in v0.17.0

type Contour struct {
	objref.Handle
}

Contour is an idiomatic wrapper over the Objective-C class VNContour.

A class that represents a detected contour in an image.

func ContourFromID added in v0.17.0

func ContourFromID(id objc.ID) *Contour

ContourFromID adopts an existing Objective-C object as a Contour (nil for 0), retaining it and registering a release finalizer.

func NewContour added in v0.17.0

func NewContour() *Contour

NewContour creates a new Contour.

func (*Contour) AspectRatio added in v0.17.0

func (c *Contour) AspectRatio() float32

AspectRatio returns the aspect ratio of the contour from the original image aspect ratio expressed as width/height

func (*Contour) ChildContourAtIndex added in v0.17.0

func (c *Contour) ChildContourAtIndex(childContourIndex int) (result *Contour, err error)

ChildContourAtIndex retrieves the child contour object at the specified index.

func (*Contour) ChildContourCount added in v0.17.0

func (c *Contour) ChildContourCount() int

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

func (*Contour) ChildContours added in v0.17.0

func (c *Contour) ChildContours() []*Contour

ChildContours returns the array of the contours enclosed by the target contour. 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.

ChildContours returns the collection as a Go slice.

func (*Contour) Description added in v0.17.0

func (c *Contour) Description() string

Description returns the object's -description text.

func (*Contour) IndexPath added in v0.17.0

func (c *Contour) IndexPath() *foundation.IndexPath

IndexPath returns the path to the target VNContour as it is stored in the owning VNContoursObservation's hierarchy of contours.

func (*Contour) IsEqual added in v0.17.0

func (c *Contour) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Contour) IsKind added in v0.17.0

func (c *Contour) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Contour) NormalizedPath added in v0.17.0

func (c *Contour) NormalizedPath() coregraphics.CGPathRef

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

func (*Contour) NormalizedPoints added in v0.18.0

func (c *Contour) NormalizedPoints() unsafe.Pointer

NormalizedPoints returns the array of points in normalized coordinates that describe the contour. 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 (*Contour) PointCount added in v0.17.0

func (c *Contour) PointCount() int

PointCount returns the number of points that describe the contour.

func (*Contour) PolygonApproximationWithEpsilon added in v0.17.0

func (c *Contour) PolygonApproximationWithEpsilon(epsilon float32) (result *Contour, err error)

PolygonApproximationWithEpsilon simplifies the contour to a polygon using a Ramer-Douglas-Peucker algorithm.

func (*Contour) String added in v0.17.0

func (c *Contour) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type ContoursObservation added in v0.17.0

type ContoursObservation struct {
	Observation
}

ContoursObservation is an idiomatic wrapper over the Objective-C class VNContoursObservation.

It embeds Observation, promoting that type's methods.

An object that represents the detected contours in an image.

func ContoursObservationFromID added in v0.17.0

func ContoursObservationFromID(id objc.ID) *ContoursObservation

ContoursObservationFromID adopts an existing Objective-C object as a ContoursObservation (nil for 0), retaining it and registering a release finalizer.

func NewContoursObservation added in v0.17.0

func NewContoursObservation() *ContoursObservation

NewContoursObservation creates a new ContoursObservation.

func (*ContoursObservation) ContourAtIndex added in v0.17.0

func (co *ContoursObservation) ContourAtIndex(contourIndex int) (result *Contour, err error)

ContourAtIndex retrieves the contour object at the specified index, irrespective of hierarchy.

func (*ContoursObservation) ContourAtIndexPath added in v0.17.0

func (co *ContoursObservation) ContourAtIndexPath(indexPath obj.Object) (result *Contour, err error)

ContourAtIndexPath retrieves the contour object at the specified index path.

func (*ContoursObservation) ContourCount added in v0.17.0

func (co *ContoursObservation) ContourCount() int

ContourCount returns the total number of contours detected.

func (*ContoursObservation) NormalizedPath added in v0.17.0

func (co *ContoursObservation) NormalizedPath() coregraphics.CGPathRef

NormalizedPath returns obtain all of the contours represented as a CGPath in normalized coordinates. The path is owned by the observation and therefore will be alive as long as the the observation is alive.

func (*ContoursObservation) TopLevelContourCount added in v0.17.0

func (co *ContoursObservation) TopLevelContourCount() int

TopLevelContourCount returns the total number of top-level contours detected.

func (*ContoursObservation) TopLevelContours added in v0.17.0

func (co *ContoursObservation) TopLevelContours() []*Contour

TopLevelContours returns an array of the top level contours (i.e. contours that are not enclosed inside another contour),. This array constitutes the top of the contour hierarchy. Each contour object can be further iterated to determine its children.

TopLevelContours returns the collection as a Go slice.

type CoreMLFeatureValueObservation added in v0.17.0

type CoreMLFeatureValueObservation struct {
	Observation
}

CoreMLFeatureValueObservation is an idiomatic wrapper over the Objective-C class VNCoreMLFeatureValueObservation.

It embeds Observation, promoting that type's methods.

An object that represents a collection of key-value information that a Core ML image-analysis request produces.

func CoreMLFeatureValueObservationFromID added in v0.17.0

func CoreMLFeatureValueObservationFromID(id objc.ID) *CoreMLFeatureValueObservation

CoreMLFeatureValueObservationFromID adopts an existing Objective-C object as a CoreMLFeatureValueObservation (nil for 0), retaining it and registering a release finalizer.

func NewCoreMLFeatureValueObservation added in v0.17.0

func NewCoreMLFeatureValueObservation() *CoreMLFeatureValueObservation

NewCoreMLFeatureValueObservation creates a new CoreMLFeatureValueObservation.

func (*CoreMLFeatureValueObservation) FeatureName added in v0.17.0

func (cmfvo *CoreMLFeatureValueObservation) FeatureName() string

FeatureName returns 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 (*CoreMLFeatureValueObservation) FeatureValue added in v0.17.0

func (cmfvo *CoreMLFeatureValueObservation) FeatureValue() obj.Object

FeatureValue returns 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 CoreMLModel added in v0.17.0

type CoreMLModel struct {
	objref.Handle
}

CoreMLModel is an idiomatic wrapper over the Objective-C class VNCoreMLModel.

A container for the model to use with Vision requests.

func CoreMLModelFromID added in v0.17.0

func CoreMLModelFromID(id objc.ID) *CoreMLModel

CoreMLModelFromID adopts an existing Objective-C object as a CoreMLModel (nil for 0), retaining it and registering a release finalizer.

func ModelForMLModel added in v0.17.0

func ModelForMLModel(model obj.Object) (result *CoreMLModel, err error)

ModelForMLModel creates a model container to use with a Core ML request.

func NewCoreMLModel added in v0.17.0

func NewCoreMLModel() *CoreMLModel

NewCoreMLModel creates a new CoreMLModel.

func (*CoreMLModel) Description added in v0.17.0

func (cmm *CoreMLModel) Description() string

Description returns the object's -description text.

func (*CoreMLModel) InputImageFeatureName added in v0.17.0

func (cmm *CoreMLModel) InputImageFeatureName() string

InputImageFeatureName returns 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 (*CoreMLModel) IsEqual added in v0.17.0

func (cmm *CoreMLModel) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*CoreMLModel) IsKind added in v0.17.0

func (cmm *CoreMLModel) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*CoreMLModel) String added in v0.17.0

func (cmm *CoreMLModel) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*CoreMLModel) WithInputImageFeatureName added in v0.17.0

func (cmm *CoreMLModel) WithInputImageFeatureName(inputImageFeatureName string) *CoreMLModel

WithInputImageFeatureName sets the name of the feature value that Vision sets from the request handler.

type CoreMLRequest added in v0.17.0

type CoreMLRequest struct {
	ImageBasedRequest
}

CoreMLRequest is an idiomatic wrapper over the Objective-C class VNCoreMLRequest.

It embeds ImageBasedRequest, promoting that type's methods.

An image-analysis request that uses a Core ML model to process images.

func CoreMLRequestFromID added in v0.17.0

func CoreMLRequestFromID(id objc.ID) *CoreMLRequest

CoreMLRequestFromID adopts an existing Objective-C object as a CoreMLRequest (nil for 0), retaining it and registering a release finalizer.

func NewCoreMLRequestWithModel added in v0.17.0

func NewCoreMLRequestWithModel(model *CoreMLModel) *CoreMLRequest

NewCoreMLRequestWithModel creates a model container to use with an image analysis request based on the model you provide.

func NewCoreMLRequestWithModelCompletionHandler added in v0.18.0

func NewCoreMLRequestWithModelCompletionHandler(model *CoreMLModel, completionHandler func(obj.Object, unsafe.Pointer)) *CoreMLRequest

NewCoreMLRequestWithModelCompletionHandler creates a model container to use with an image analysis request based on the model you provide, with an optional completion handler.

func (*CoreMLRequest) ImageCropAndScaleOption added in v0.17.0

func (cmr *CoreMLRequest) ImageCropAndScaleOption() ImageCropAndScaleOption

ImageCropAndScaleOption returns the image crop and scale option.

func (*CoreMLRequest) Model added in v0.17.0

func (cmr *CoreMLRequest) Model() *CoreMLModel

Model returns the model from CoreML wrapped in a VNCoreMLModel.

func (*CoreMLRequest) WithImageCropAndScaleOption added in v0.17.0

func (cmr *CoreMLRequest) WithImageCropAndScaleOption(imageCropAndScaleOption ImageCropAndScaleOption) *CoreMLRequest

WithImageCropAndScaleOption sets an optional setting that tells the Vision algorithm how to scale an input image.

func (*CoreMLRequest) WithPreferBackgroundProcessing added in v0.17.0

func (cmr *CoreMLRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *CoreMLRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*CoreMLRequest) WithRegionOfInterest added in v0.17.0

func (cmr *CoreMLRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *CoreMLRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*CoreMLRequest) WithRevision added in v0.17.0

func (cmr *CoreMLRequest) WithRevision(revision int) *CoreMLRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*CoreMLRequest) WithUsesCPUOnly added in v0.17.0

func (cmr *CoreMLRequest) WithUsesCPUOnly(usesCPUOnly bool) *CoreMLRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectAnimalBodyPoseRequest added in v0.17.0

type DetectAnimalBodyPoseRequest struct {
	ImageBasedRequest
}

DetectAnimalBodyPoseRequest is an idiomatic wrapper over the Objective-C class VNDetectAnimalBodyPoseRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request that detects an animal body pose.

func DetectAnimalBodyPoseRequestFromID added in v0.17.0

func DetectAnimalBodyPoseRequestFromID(id objc.ID) *DetectAnimalBodyPoseRequest

DetectAnimalBodyPoseRequestFromID adopts an existing Objective-C object as a DetectAnimalBodyPoseRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectAnimalBodyPoseRequest added in v0.17.0

func NewDetectAnimalBodyPoseRequest() *DetectAnimalBodyPoseRequest

NewDetectAnimalBodyPoseRequest creates a new DetectAnimalBodyPoseRequest.

func (*DetectAnimalBodyPoseRequest) SupportedJointNames added in v0.17.0

func (dabpr *DetectAnimalBodyPoseRequest) SupportedJointNames() (result []obj.Object, err error)

SupportedJointNames returns retrieves the joint names the request supports.

SupportedJointNames returns the collection as a Go slice.

func (*DetectAnimalBodyPoseRequest) SupportedJointsGroupNames added in v0.17.0

func (dabpr *DetectAnimalBodyPoseRequest) SupportedJointsGroupNames() (result []obj.Object, err error)

SupportedJointsGroupNames returns retrieves the joint group names the request supports.

SupportedJointsGroupNames returns the collection as a Go slice.

func (*DetectAnimalBodyPoseRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dabpr *DetectAnimalBodyPoseRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectAnimalBodyPoseRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectAnimalBodyPoseRequest) WithRegionOfInterest added in v0.17.0

func (dabpr *DetectAnimalBodyPoseRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectAnimalBodyPoseRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectAnimalBodyPoseRequest) WithRevision added in v0.17.0

func (dabpr *DetectAnimalBodyPoseRequest) WithRevision(revision int) *DetectAnimalBodyPoseRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectAnimalBodyPoseRequest) WithUsesCPUOnly added in v0.17.0

func (dabpr *DetectAnimalBodyPoseRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectAnimalBodyPoseRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectBarcodesRequest added in v0.17.0

type DetectBarcodesRequest struct {
	ImageBasedRequest
}

DetectBarcodesRequest is an idiomatic wrapper over the Objective-C class VNDetectBarcodesRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request that detects barcodes in an image.

func DetectBarcodesRequestFromID added in v0.17.0

func DetectBarcodesRequestFromID(id objc.ID) *DetectBarcodesRequest

DetectBarcodesRequestFromID adopts an existing Objective-C object as a DetectBarcodesRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectBarcodesRequest added in v0.17.0

func NewDetectBarcodesRequest() *DetectBarcodesRequest

NewDetectBarcodesRequest creates a new DetectBarcodesRequest.

func (*DetectBarcodesRequest) CoalesceCompositeSymbologies added in v0.17.0

func (dbr *DetectBarcodesRequest) CoalesceCompositeSymbologies() bool

CoalesceCompositeSymbologies reports whether an option to coalesce multiple codes if applicable based on the symbology

func (*DetectBarcodesRequest) SupportedSymbologies added in v0.17.0

func (dbr *DetectBarcodesRequest) SupportedSymbologies() (result []obj.Object, err error)

SupportedSymbologies returns the barcode symbologies that the request supports.

SupportedSymbologies returns the collection as a Go slice.

func (*DetectBarcodesRequest) Symbologies added in v0.17.0

func (dbr *DetectBarcodesRequest) Symbologies() []obj.Object

Symbologies returns 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.

Symbologies returns the collection as a Go slice.

func (*DetectBarcodesRequest) WithCoalesceCompositeSymbologies added in v0.17.0

func (dbr *DetectBarcodesRequest) WithCoalesceCompositeSymbologies(coalesceCompositeSymbologies bool) *DetectBarcodesRequest

WithCoalesceCompositeSymbologies sets a Boolean value that indicates whether to coalesce multiple codes based on the symbology.

func (*DetectBarcodesRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dbr *DetectBarcodesRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectBarcodesRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectBarcodesRequest) WithRegionOfInterest added in v0.17.0

func (dbr *DetectBarcodesRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectBarcodesRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectBarcodesRequest) WithRevision added in v0.17.0

func (dbr *DetectBarcodesRequest) WithRevision(revision int) *DetectBarcodesRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectBarcodesRequest) WithSymbologies added in v0.17.0

func (dbr *DetectBarcodesRequest) WithSymbologies(items ...obj.Object) *DetectBarcodesRequest

WithSymbologies sets the barcode symbologies that the request detects in an image.

func (*DetectBarcodesRequest) WithUsesCPUOnly added in v0.17.0

func (dbr *DetectBarcodesRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectBarcodesRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectContoursRequest added in v0.17.0

type DetectContoursRequest struct {
	ImageBasedRequest
}

DetectContoursRequest is an idiomatic wrapper over the Objective-C class VNDetectContoursRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request that detects the contours of the edges of an image.

func DetectContoursRequestFromID added in v0.17.0

func DetectContoursRequestFromID(id objc.ID) *DetectContoursRequest

DetectContoursRequestFromID adopts an existing Objective-C object as a DetectContoursRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectContoursRequest added in v0.17.0

func NewDetectContoursRequest() *DetectContoursRequest

NewDetectContoursRequest creates a new DetectContoursRequest.

func (*DetectContoursRequest) ContrastAdjustment added in v0.17.0

func (dcr *DetectContoursRequest) ContrastAdjustment() float32

ContrastAdjustment returns 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. 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 (*DetectContoursRequest) ContrastPivot added in v0.17.0

func (dcr *DetectContoursRequest) ContrastPivot() *foundation.Number

ContrastPivot returns 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 (*DetectContoursRequest) DetectDarkOnLight added in v0.17.0

func (dcr *DetectContoursRequest) DetectDarkOnLight() bool

DetectDarkOnLight wraps the corresponding Objective-C method.

func (*DetectContoursRequest) DetectsDarkOnLight added in v0.17.0

func (dcr *DetectContoursRequest) DetectsDarkOnLight() bool

DetectsDarkOnLight reports whether identifies to the request if detecting a dark object on a light background, or vice versa, to aid in detection. The default value is true.

func (*DetectContoursRequest) MaximumImageDimension added in v0.17.0

func (dcr *DetectContoursRequest) MaximumImageDimension() int

MaximumImageDimension returns 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. 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 (*DetectContoursRequest) WithContrastAdjustment added in v0.17.0

func (dcr *DetectContoursRequest) WithContrastAdjustment(contrastAdjustment float32) *DetectContoursRequest

WithContrastAdjustment sets the amount by which to adjust the image contrast.

func (*DetectContoursRequest) WithContrastPivot added in v0.17.0

func (dcr *DetectContoursRequest) WithContrastPivot(contrastPivot obj.Object) *DetectContoursRequest

WithContrastPivot sets the pixel value to use as a pivot for the contrast.

func (*DetectContoursRequest) WithDetectDarkOnLight added in v0.17.0

func (dcr *DetectContoursRequest) WithDetectDarkOnLight(detectDarkOnLight bool) *DetectContoursRequest

WithDetectDarkOnLight sets a Boolean value that indicates whether the request detects a dark object on a light background.

func (*DetectContoursRequest) WithDetectsDarkOnLight added in v0.17.0

func (dcr *DetectContoursRequest) WithDetectsDarkOnLight(detectsDarkOnLight bool) *DetectContoursRequest

WithDetectsDarkOnLight sets a Boolean value that indicates whether the request detects a dark object on a light background to aid in detection.

func (*DetectContoursRequest) WithMaximumImageDimension added in v0.17.0

func (dcr *DetectContoursRequest) WithMaximumImageDimension(maximumImageDimension int) *DetectContoursRequest

WithMaximumImageDimension sets the maximum image dimension to use for contour detection.

func (*DetectContoursRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dcr *DetectContoursRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectContoursRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectContoursRequest) WithRegionOfInterest added in v0.17.0

func (dcr *DetectContoursRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectContoursRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectContoursRequest) WithRevision added in v0.17.0

func (dcr *DetectContoursRequest) WithRevision(revision int) *DetectContoursRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectContoursRequest) WithUsesCPUOnly added in v0.17.0

func (dcr *DetectContoursRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectContoursRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectDocumentSegmentationRequest added in v0.17.0

type DetectDocumentSegmentationRequest struct {
	ImageBasedRequest
}

DetectDocumentSegmentationRequest is an idiomatic wrapper over the Objective-C class VNDetectDocumentSegmentationRequest.

It embeds ImageBasedRequest, promoting that type's methods.

An object that detects rectangular regions that contain text in the input image.

func DetectDocumentSegmentationRequestFromID added in v0.17.0

func DetectDocumentSegmentationRequestFromID(id objc.ID) *DetectDocumentSegmentationRequest

DetectDocumentSegmentationRequestFromID adopts an existing Objective-C object as a DetectDocumentSegmentationRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectDocumentSegmentationRequest added in v0.17.0

func NewDetectDocumentSegmentationRequest() *DetectDocumentSegmentationRequest

NewDetectDocumentSegmentationRequest creates a new DetectDocumentSegmentationRequest.

func (*DetectDocumentSegmentationRequest) WithPreferBackgroundProcessing added in v0.17.0

func (ddsr *DetectDocumentSegmentationRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectDocumentSegmentationRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectDocumentSegmentationRequest) WithRegionOfInterest added in v0.17.0

func (ddsr *DetectDocumentSegmentationRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectDocumentSegmentationRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectDocumentSegmentationRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectDocumentSegmentationRequest) WithUsesCPUOnly added in v0.17.0

func (ddsr *DetectDocumentSegmentationRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectDocumentSegmentationRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectFaceCaptureQualityRequest added in v0.17.0

type DetectFaceCaptureQualityRequest struct {
	ImageBasedRequest
}

DetectFaceCaptureQualityRequest is an idiomatic wrapper over the Objective-C class VNDetectFaceCaptureQualityRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request that produces a floating-point number that represents the capture quality of a face in a photo.

func DetectFaceCaptureQualityRequestFromID added in v0.17.0

func DetectFaceCaptureQualityRequestFromID(id objc.ID) *DetectFaceCaptureQualityRequest

DetectFaceCaptureQualityRequestFromID adopts an existing Objective-C object as a DetectFaceCaptureQualityRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectFaceCaptureQualityRequest added in v0.17.0

func NewDetectFaceCaptureQualityRequest() *DetectFaceCaptureQualityRequest

NewDetectFaceCaptureQualityRequest creates a new DetectFaceCaptureQualityRequest.

func (*DetectFaceCaptureQualityRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dfcqr *DetectFaceCaptureQualityRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectFaceCaptureQualityRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectFaceCaptureQualityRequest) WithRegionOfInterest added in v0.17.0

func (dfcqr *DetectFaceCaptureQualityRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectFaceCaptureQualityRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectFaceCaptureQualityRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectFaceCaptureQualityRequest) WithUsesCPUOnly added in v0.17.0

func (dfcqr *DetectFaceCaptureQualityRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectFaceCaptureQualityRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectFaceLandmarksRequest added in v0.17.0

type DetectFaceLandmarksRequest struct {
	ImageBasedRequest
}

DetectFaceLandmarksRequest is an idiomatic wrapper over the Objective-C class VNDetectFaceLandmarksRequest.

It embeds ImageBasedRequest, promoting that type's methods.

An image-analysis request that finds facial features like eyes and mouth in an image.

func DetectFaceLandmarksRequestFromID added in v0.17.0

func DetectFaceLandmarksRequestFromID(id objc.ID) *DetectFaceLandmarksRequest

DetectFaceLandmarksRequestFromID adopts an existing Objective-C object as a DetectFaceLandmarksRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectFaceLandmarksRequest added in v0.17.0

func NewDetectFaceLandmarksRequest() *DetectFaceLandmarksRequest

NewDetectFaceLandmarksRequest creates a new DetectFaceLandmarksRequest.

func (*DetectFaceLandmarksRequest) Constellation added in v0.17.0

Constellation returns 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 (*DetectFaceLandmarksRequest) WithConstellation added in v0.17.0

WithConstellation sets a variable that describes how a face landmarks request orders or enumerates the resulting features.

func (*DetectFaceLandmarksRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dflr *DetectFaceLandmarksRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectFaceLandmarksRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectFaceLandmarksRequest) WithRegionOfInterest added in v0.17.0

func (dflr *DetectFaceLandmarksRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectFaceLandmarksRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectFaceLandmarksRequest) WithRevision added in v0.17.0

func (dflr *DetectFaceLandmarksRequest) WithRevision(revision int) *DetectFaceLandmarksRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectFaceLandmarksRequest) WithUsesCPUOnly added in v0.17.0

func (dflr *DetectFaceLandmarksRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectFaceLandmarksRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectFaceRectanglesRequest added in v0.17.0

type DetectFaceRectanglesRequest struct {
	ImageBasedRequest
}

DetectFaceRectanglesRequest is an idiomatic wrapper over the Objective-C class VNDetectFaceRectanglesRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request that finds faces within an image.

func DetectFaceRectanglesRequestFromID added in v0.17.0

func DetectFaceRectanglesRequestFromID(id objc.ID) *DetectFaceRectanglesRequest

DetectFaceRectanglesRequestFromID adopts an existing Objective-C object as a DetectFaceRectanglesRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectFaceRectanglesRequest added in v0.17.0

func NewDetectFaceRectanglesRequest() *DetectFaceRectanglesRequest

NewDetectFaceRectanglesRequest creates a new DetectFaceRectanglesRequest.

func (*DetectFaceRectanglesRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dfrr *DetectFaceRectanglesRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectFaceRectanglesRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectFaceRectanglesRequest) WithRegionOfInterest added in v0.17.0

func (dfrr *DetectFaceRectanglesRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectFaceRectanglesRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectFaceRectanglesRequest) WithRevision added in v0.17.0

func (dfrr *DetectFaceRectanglesRequest) WithRevision(revision int) *DetectFaceRectanglesRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectFaceRectanglesRequest) WithUsesCPUOnly added in v0.17.0

func (dfrr *DetectFaceRectanglesRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectFaceRectanglesRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectHorizonRequest added in v0.17.0

type DetectHorizonRequest struct {
	ImageBasedRequest
}

DetectHorizonRequest is an idiomatic wrapper over the Objective-C class VNDetectHorizonRequest.

It embeds ImageBasedRequest, promoting that type's methods.

An image-analysis request that determines the horizon angle in an image.

func DetectHorizonRequestFromID added in v0.17.0

func DetectHorizonRequestFromID(id objc.ID) *DetectHorizonRequest

DetectHorizonRequestFromID adopts an existing Objective-C object as a DetectHorizonRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectHorizonRequest added in v0.17.0

func NewDetectHorizonRequest() *DetectHorizonRequest

NewDetectHorizonRequest creates a new DetectHorizonRequest.

func (*DetectHorizonRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dhr *DetectHorizonRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectHorizonRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectHorizonRequest) WithRegionOfInterest added in v0.17.0

func (dhr *DetectHorizonRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectHorizonRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectHorizonRequest) WithRevision added in v0.17.0

func (dhr *DetectHorizonRequest) WithRevision(revision int) *DetectHorizonRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectHorizonRequest) WithUsesCPUOnly added in v0.17.0

func (dhr *DetectHorizonRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectHorizonRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectHumanBodyPose3DRequest added in v0.17.0

type DetectHumanBodyPose3DRequest struct {
	StatefulRequest
}

DetectHumanBodyPose3DRequest is an idiomatic wrapper over the Objective-C class VNDetectHumanBodyPose3DRequest.

It embeds StatefulRequest, promoting that type's methods.

A request that detects points on human bodies in 3D space, relative to the camera.

func DetectHumanBodyPose3DRequestFromID added in v0.17.0

func DetectHumanBodyPose3DRequestFromID(id objc.ID) *DetectHumanBodyPose3DRequest

DetectHumanBodyPose3DRequestFromID adopts an existing Objective-C object as a DetectHumanBodyPose3DRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectHumanBodyPose3DRequest added in v0.17.0

func NewDetectHumanBodyPose3DRequest() *DetectHumanBodyPose3DRequest

NewDetectHumanBodyPose3DRequest creates a new DetectHumanBodyPose3DRequest.

func NewDetectHumanBodyPose3DRequestWithCompletionHandler added in v0.18.0

func NewDetectHumanBodyPose3DRequestWithCompletionHandler(completionHandler func(obj.Object, unsafe.Pointer)) *DetectHumanBodyPose3DRequest

NewDetectHumanBodyPose3DRequestWithCompletionHandler creates a new 3D body pose request with a completion handler.

func (*DetectHumanBodyPose3DRequest) SupportedJointNames added in v0.17.0

func (dhbpdr *DetectHumanBodyPose3DRequest) SupportedJointNames() (result []obj.Object, err error)

SupportedJointNames returns the joint names the request supports.

SupportedJointNames returns the collection as a Go slice.

func (*DetectHumanBodyPose3DRequest) SupportedJointsGroupNames added in v0.17.0

func (dhbpdr *DetectHumanBodyPose3DRequest) SupportedJointsGroupNames() (result []obj.Object, err error)

SupportedJointsGroupNames returns the joint group names the request supports.

SupportedJointsGroupNames returns the collection as a Go slice.

func (*DetectHumanBodyPose3DRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dhbpdr *DetectHumanBodyPose3DRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectHumanBodyPose3DRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectHumanBodyPose3DRequest) WithRegionOfInterest added in v0.17.0

func (dhbpdr *DetectHumanBodyPose3DRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectHumanBodyPose3DRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectHumanBodyPose3DRequest) WithRevision added in v0.17.0

func (dhbpdr *DetectHumanBodyPose3DRequest) WithRevision(revision int) *DetectHumanBodyPose3DRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectHumanBodyPose3DRequest) WithUsesCPUOnly added in v0.17.0

func (dhbpdr *DetectHumanBodyPose3DRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectHumanBodyPose3DRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectHumanBodyPoseRequest added in v0.17.0

type DetectHumanBodyPoseRequest struct {
	ImageBasedRequest
}

DetectHumanBodyPoseRequest is an idiomatic wrapper over the Objective-C class VNDetectHumanBodyPoseRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request that detects a human body pose.

func DetectHumanBodyPoseRequestFromID added in v0.17.0

func DetectHumanBodyPoseRequestFromID(id objc.ID) *DetectHumanBodyPoseRequest

DetectHumanBodyPoseRequestFromID adopts an existing Objective-C object as a DetectHumanBodyPoseRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectHumanBodyPoseRequest added in v0.17.0

func NewDetectHumanBodyPoseRequest() *DetectHumanBodyPoseRequest

NewDetectHumanBodyPoseRequest creates a new DetectHumanBodyPoseRequest.

func (*DetectHumanBodyPoseRequest) SupportedJointNames added in v0.17.0

func (dhbpr *DetectHumanBodyPoseRequest) SupportedJointNames() (result []obj.Object, err error)

SupportedJointNames returns retrieves the supported joint names.

SupportedJointNames returns the collection as a Go slice.

func (*DetectHumanBodyPoseRequest) SupportedJointsGroupNames added in v0.17.0

func (dhbpr *DetectHumanBodyPoseRequest) SupportedJointsGroupNames() (result []obj.Object, err error)

SupportedJointsGroupNames returns retrieves the supported joint group names.

SupportedJointsGroupNames returns the collection as a Go slice.

func (*DetectHumanBodyPoseRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dhbpr *DetectHumanBodyPoseRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectHumanBodyPoseRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectHumanBodyPoseRequest) WithRegionOfInterest added in v0.17.0

func (dhbpr *DetectHumanBodyPoseRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectHumanBodyPoseRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectHumanBodyPoseRequest) WithRevision added in v0.17.0

func (dhbpr *DetectHumanBodyPoseRequest) WithRevision(revision int) *DetectHumanBodyPoseRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectHumanBodyPoseRequest) WithUsesCPUOnly added in v0.17.0

func (dhbpr *DetectHumanBodyPoseRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectHumanBodyPoseRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectHumanHandPoseRequest added in v0.17.0

type DetectHumanHandPoseRequest struct {
	ImageBasedRequest
}

DetectHumanHandPoseRequest is an idiomatic wrapper over the Objective-C class VNDetectHumanHandPoseRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request that detects a human hand pose.

func DetectHumanHandPoseRequestFromID added in v0.17.0

func DetectHumanHandPoseRequestFromID(id objc.ID) *DetectHumanHandPoseRequest

DetectHumanHandPoseRequestFromID adopts an existing Objective-C object as a DetectHumanHandPoseRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectHumanHandPoseRequest added in v0.17.0

func NewDetectHumanHandPoseRequest() *DetectHumanHandPoseRequest

NewDetectHumanHandPoseRequest creates a new DetectHumanHandPoseRequest.

func (*DetectHumanHandPoseRequest) MaximumHandCount added in v0.17.0

func (dhhpr *DetectHumanHandPoseRequest) MaximumHandCount() int

MaximumHandCount defines an upper bounds to the maximum number of hands that will be processed for key points in an image. 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 (*DetectHumanHandPoseRequest) SupportedJointNames added in v0.17.0

func (dhhpr *DetectHumanHandPoseRequest) SupportedJointNames() (result []obj.Object, err error)

SupportedJointNames returns retrieves the supported joint names.

SupportedJointNames returns the collection as a Go slice.

func (*DetectHumanHandPoseRequest) SupportedJointsGroupNames added in v0.17.0

func (dhhpr *DetectHumanHandPoseRequest) SupportedJointsGroupNames() (result []obj.Object, err error)

SupportedJointsGroupNames returns retrieves the supported joint group names.

SupportedJointsGroupNames returns the collection as a Go slice.

func (*DetectHumanHandPoseRequest) WithMaximumHandCount added in v0.17.0

func (dhhpr *DetectHumanHandPoseRequest) WithMaximumHandCount(maximumHandCount int) *DetectHumanHandPoseRequest

WithMaximumHandCount sets the maximum number of hands to detect in an image.

func (*DetectHumanHandPoseRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dhhpr *DetectHumanHandPoseRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectHumanHandPoseRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectHumanHandPoseRequest) WithRegionOfInterest added in v0.17.0

func (dhhpr *DetectHumanHandPoseRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectHumanHandPoseRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectHumanHandPoseRequest) WithRevision added in v0.17.0

func (dhhpr *DetectHumanHandPoseRequest) WithRevision(revision int) *DetectHumanHandPoseRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectHumanHandPoseRequest) WithUsesCPUOnly added in v0.17.0

func (dhhpr *DetectHumanHandPoseRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectHumanHandPoseRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectHumanRectanglesRequest added in v0.17.0

type DetectHumanRectanglesRequest struct {
	ImageBasedRequest
}

DetectHumanRectanglesRequest is an idiomatic wrapper over the Objective-C class VNDetectHumanRectanglesRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request that finds rectangular regions that contain people in an image.

func DetectHumanRectanglesRequestFromID added in v0.17.0

func DetectHumanRectanglesRequestFromID(id objc.ID) *DetectHumanRectanglesRequest

DetectHumanRectanglesRequestFromID adopts an existing Objective-C object as a DetectHumanRectanglesRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectHumanRectanglesRequest added in v0.17.0

func NewDetectHumanRectanglesRequest() *DetectHumanRectanglesRequest

NewDetectHumanRectanglesRequest creates a new DetectHumanRectanglesRequest.

func (*DetectHumanRectanglesRequest) UpperBodyOnly added in v0.17.0

func (dhrr *DetectHumanRectanglesRequest) UpperBodyOnly() bool

UpperBodyOnly reports whether boolean property to specify whether the human upper body or full body needs to be detected. The default is true, meaning the request is setup to detect upper body only

func (*DetectHumanRectanglesRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dhrr *DetectHumanRectanglesRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectHumanRectanglesRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectHumanRectanglesRequest) WithRegionOfInterest added in v0.17.0

func (dhrr *DetectHumanRectanglesRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectHumanRectanglesRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectHumanRectanglesRequest) WithRevision added in v0.17.0

func (dhrr *DetectHumanRectanglesRequest) WithRevision(revision int) *DetectHumanRectanglesRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectHumanRectanglesRequest) WithUpperBodyOnly added in v0.17.0

func (dhrr *DetectHumanRectanglesRequest) WithUpperBodyOnly(upperBodyOnly bool) *DetectHumanRectanglesRequest

WithUpperBodyOnly sets a Boolean value that indicates whether the request requires detecting a full body or upper body only to produce a result.

func (*DetectHumanRectanglesRequest) WithUsesCPUOnly added in v0.17.0

func (dhrr *DetectHumanRectanglesRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectHumanRectanglesRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectRectanglesRequest added in v0.17.0

type DetectRectanglesRequest struct {
	ImageBasedRequest
}

DetectRectanglesRequest is an idiomatic wrapper over the Objective-C class VNDetectRectanglesRequest.

It embeds ImageBasedRequest, promoting that type's methods.

An image-analysis request that finds projected rectangular regions in an image.

func DetectRectanglesRequestFromID added in v0.17.0

func DetectRectanglesRequestFromID(id objc.ID) *DetectRectanglesRequest

DetectRectanglesRequestFromID adopts an existing Objective-C object as a DetectRectanglesRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectRectanglesRequest added in v0.17.0

func NewDetectRectanglesRequest() *DetectRectanglesRequest

NewDetectRectanglesRequest creates a new DetectRectanglesRequest.

func (*DetectRectanglesRequest) MaximumAspectRatio added in v0.17.0

func (drr *DetectRectanglesRequest) MaximumAspectRatio() float32

MaximumAspectRatio specifies the maximum aspect ratio of the rectangle(s) to look for, range [0.0, 1.0], default 1.0

func (*DetectRectanglesRequest) MaximumObservations added in v0.17.0

func (drr *DetectRectanglesRequest) MaximumObservations() int

MaximumObservations 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 (*DetectRectanglesRequest) MinimumAspectRatio added in v0.17.0

func (drr *DetectRectanglesRequest) MinimumAspectRatio() float32

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

func (*DetectRectanglesRequest) MinimumConfidence added in v0.17.0

func (drr *DetectRectanglesRequest) MinimumConfidence() float32

MinimumConfidence 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 (*DetectRectanglesRequest) MinimumSize added in v0.17.0

func (drr *DetectRectanglesRequest) MinimumSize() float32

MinimumSize 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 (*DetectRectanglesRequest) QuadratureTolerance added in v0.17.0

func (drr *DetectRectanglesRequest) QuadratureTolerance() float32

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

func (*DetectRectanglesRequest) WithMaximumAspectRatio added in v0.17.0

func (drr *DetectRectanglesRequest) WithMaximumAspectRatio(maximumAspectRatio float32) *DetectRectanglesRequest

WithMaximumAspectRatio sets a float specifying the maximum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension.

func (*DetectRectanglesRequest) WithMaximumObservations added in v0.17.0

func (drr *DetectRectanglesRequest) WithMaximumObservations(maximumObservations int) *DetectRectanglesRequest

WithMaximumObservations sets an integer specifying the maximum number of rectangles Vision returns.

func (*DetectRectanglesRequest) WithMinimumAspectRatio added in v0.17.0

func (drr *DetectRectanglesRequest) WithMinimumAspectRatio(minimumAspectRatio float32) *DetectRectanglesRequest

WithMinimumAspectRatio sets a float specifying the minimum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension.

func (*DetectRectanglesRequest) WithMinimumConfidence added in v0.17.0

func (drr *DetectRectanglesRequest) WithMinimumConfidence(minimumConfidence float32) *DetectRectanglesRequest

WithMinimumConfidence sets a value specifying the minimum acceptable confidence level.

func (*DetectRectanglesRequest) WithMinimumSize added in v0.17.0

func (drr *DetectRectanglesRequest) WithMinimumSize(minimumSize float32) *DetectRectanglesRequest

WithMinimumSize sets the minimum size of a rectangle to detect, as a proportion of the smallest dimension.

func (*DetectRectanglesRequest) WithPreferBackgroundProcessing added in v0.17.0

func (drr *DetectRectanglesRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectRectanglesRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectRectanglesRequest) WithQuadratureTolerance added in v0.17.0

func (drr *DetectRectanglesRequest) WithQuadratureTolerance(quadratureTolerance float32) *DetectRectanglesRequest

WithQuadratureTolerance sets a float specifying the number of degrees a rectangle corner angle can deviate from 90°.

func (*DetectRectanglesRequest) WithRegionOfInterest added in v0.17.0

func (drr *DetectRectanglesRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectRectanglesRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectRectanglesRequest) WithRevision added in v0.17.0

func (drr *DetectRectanglesRequest) WithRevision(revision int) *DetectRectanglesRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectRectanglesRequest) WithUsesCPUOnly added in v0.17.0

func (drr *DetectRectanglesRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectRectanglesRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectTextRectanglesRequest added in v0.17.0

type DetectTextRectanglesRequest struct {
	ImageBasedRequest
}

DetectTextRectanglesRequest is an idiomatic wrapper over the Objective-C class VNDetectTextRectanglesRequest.

It embeds ImageBasedRequest, promoting that type's methods.

An image-analysis request that finds regions of visible text in an image.

func DetectTextRectanglesRequestFromID added in v0.17.0

func DetectTextRectanglesRequestFromID(id objc.ID) *DetectTextRectanglesRequest

DetectTextRectanglesRequestFromID adopts an existing Objective-C object as a DetectTextRectanglesRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectTextRectanglesRequest added in v0.17.0

func NewDetectTextRectanglesRequest() *DetectTextRectanglesRequest

NewDetectTextRectanglesRequest creates a new DetectTextRectanglesRequest.

func (*DetectTextRectanglesRequest) ReportCharacterBoxes added in v0.17.0

func (dtrr *DetectTextRectanglesRequest) ReportCharacterBoxes() bool

ReportCharacterBoxes reports whether specify whether or not the bounding boxes of individual characters should also be returned in the resultant VNTextObservations. Default is false.

func (*DetectTextRectanglesRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dtrr *DetectTextRectanglesRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectTextRectanglesRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectTextRectanglesRequest) WithRegionOfInterest added in v0.17.0

func (dtrr *DetectTextRectanglesRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectTextRectanglesRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectTextRectanglesRequest) WithReportCharacterBoxes added in v0.17.0

func (dtrr *DetectTextRectanglesRequest) WithReportCharacterBoxes(reportCharacterBoxes bool) *DetectTextRectanglesRequest

WithReportCharacterBoxes sets a Boolean value that indicates whether the request detects character bounding boxes.

func (*DetectTextRectanglesRequest) WithRevision added in v0.17.0

func (dtrr *DetectTextRectanglesRequest) WithRevision(revision int) *DetectTextRectanglesRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectTextRectanglesRequest) WithUsesCPUOnly added in v0.17.0

func (dtrr *DetectTextRectanglesRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectTextRectanglesRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectTrajectoriesRequest added in v0.17.0

type DetectTrajectoriesRequest struct {
	StatefulRequest
}

DetectTrajectoriesRequest is an idiomatic wrapper over the Objective-C class VNDetectTrajectoriesRequest.

It embeds StatefulRequest, promoting that type's methods.

A request that detects the trajectories of shapes moving along a parabolic path.

func DetectTrajectoriesRequestFromID added in v0.17.0

func DetectTrajectoriesRequestFromID(id objc.ID) *DetectTrajectoriesRequest

DetectTrajectoriesRequestFromID adopts an existing Objective-C object as a DetectTrajectoriesRequest (nil for 0), retaining it and registering a release finalizer.

func NewDetectTrajectoriesRequestWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler added in v0.18.0

func NewDetectTrajectoriesRequestWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler(frameAnalysisSpacing coremedia.CMTime, trajectoryLength int, completionHandler func(obj.Object, unsafe.Pointer)) *DetectTrajectoriesRequest

NewDetectTrajectoriesRequestWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler creates a new request to detect trajectories.

func (*DetectTrajectoriesRequest) MaximumObjectSize added in v0.17.0

func (dtr *DetectTrajectoriesRequest) MaximumObjectSize() float32

MaximumObjectSize returns the maximum object size.

func (*DetectTrajectoriesRequest) MinimumObjectSize added in v0.17.0

func (dtr *DetectTrajectoriesRequest) MinimumObjectSize() float32

MinimumObjectSize returns the minimum object size.

func (*DetectTrajectoriesRequest) ObjectMaximumNormalizedRadius added in v0.17.0

func (dtr *DetectTrajectoriesRequest) ObjectMaximumNormalizedRadius() float32

ObjectMaximumNormalizedRadius 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 (*DetectTrajectoriesRequest) ObjectMinimumNormalizedRadius added in v0.17.0

func (dtr *DetectTrajectoriesRequest) ObjectMinimumNormalizedRadius() float32

ObjectMinimumNormalizedRadius 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 (*DetectTrajectoriesRequest) TargetFrameTime added in v0.17.0

func (dtr *DetectTrajectoriesRequest) TargetFrameTime() coremedia.CMTime

TargetFrameTime 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 (*DetectTrajectoriesRequest) TrajectoryLength added in v0.17.0

func (dtr *DetectTrajectoriesRequest) TrajectoryLength() int

TrajectoryLength returns the number of points required to analyze a parabola that indicates a trajectory.

func (*DetectTrajectoriesRequest) WithMaximumObjectSize added in v0.17.0

func (dtr *DetectTrajectoriesRequest) WithMaximumObjectSize(maximumObjectSize float32) *DetectTrajectoriesRequest

WithMaximumObjectSize sets the maximum radius of the tracked shape’s bounding circle.

func (*DetectTrajectoriesRequest) WithMinimumObjectSize added in v0.17.0

func (dtr *DetectTrajectoriesRequest) WithMinimumObjectSize(minimumObjectSize float32) *DetectTrajectoriesRequest

WithMinimumObjectSize sets the minimum radius of the tracked shape’s bounding circle.

func (*DetectTrajectoriesRequest) WithObjectMaximumNormalizedRadius added in v0.17.0

func (dtr *DetectTrajectoriesRequest) WithObjectMaximumNormalizedRadius(objectMaximumNormalizedRadius float32) *DetectTrajectoriesRequest

WithObjectMaximumNormalizedRadius sets the maximum radius of the bounding circle of the object to track.

func (*DetectTrajectoriesRequest) WithObjectMinimumNormalizedRadius added in v0.17.0

func (dtr *DetectTrajectoriesRequest) WithObjectMinimumNormalizedRadius(objectMinimumNormalizedRadius float32) *DetectTrajectoriesRequest

WithObjectMinimumNormalizedRadius sets the minimum radius of the bounding circle of the object to track.

func (*DetectTrajectoriesRequest) WithPreferBackgroundProcessing added in v0.17.0

func (dtr *DetectTrajectoriesRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *DetectTrajectoriesRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*DetectTrajectoriesRequest) WithRegionOfInterest added in v0.17.0

func (dtr *DetectTrajectoriesRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *DetectTrajectoriesRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*DetectTrajectoriesRequest) WithRevision added in v0.17.0

func (dtr *DetectTrajectoriesRequest) WithRevision(revision int) *DetectTrajectoriesRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*DetectTrajectoriesRequest) WithTargetFrameTime added in v0.17.0

func (dtr *DetectTrajectoriesRequest) WithTargetFrameTime(targetFrameTime coremedia.CMTime) *DetectTrajectoriesRequest

WithTargetFrameTime sets the requested target frame time for processing trajectory detection.

func (*DetectTrajectoriesRequest) WithUsesCPUOnly added in v0.17.0

func (dtr *DetectTrajectoriesRequest) WithUsesCPUOnly(usesCPUOnly bool) *DetectTrajectoriesRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type DetectedObjectObservation added in v0.17.0

type DetectedObjectObservation struct {
	Observation
}

DetectedObjectObservation is an idiomatic wrapper over the Objective-C class VNDetectedObjectObservation.

DetectedObjectObservation is an abstract base — you do not construct it directly. Construct one of FaceObservation, HumanObservation, RecognizedObjectObservation, RectangleObservation and pass it where a DetectedObjectObservation is accepted.

An observation that provides the position and extent of an image feature that an image- analysis request detects.

func DetectedObjectObservationFromID added in v0.17.0

func DetectedObjectObservationFromID(id objc.ID) *DetectedObjectObservation

DetectedObjectObservationFromID adopts an existing Objective-C object as a DetectedObjectObservation (nil for 0), retaining it and registering a release finalizer.

func ObservationWithBoundingBox added in v0.17.0

func ObservationWithBoundingBox(boundingBox corefoundation.CGRect) *DetectedObjectObservation

ObservationWithBoundingBox creates an observation with a bounding box.

func ObservationWithRequestRevisionBoundingBox added in v0.17.0

func ObservationWithRequestRevisionBoundingBox(requestRevision int, boundingBox corefoundation.CGRect) *DetectedObjectObservation

ObservationWithRequestRevisionBoundingBox creates an observation with a revision number and bounding box.

func (*DetectedObjectObservation) BoundingBox added in v0.17.0

func (doo *DetectedObjectObservation) BoundingBox() corefoundation.CGRect

BoundingBox returns 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 (*DetectedObjectObservation) GlobalSegmentationMask added in v0.17.0

func (doo *DetectedObjectObservation) GlobalSegmentationMask() *PixelBufferObservation

GlobalSegmentationMask returns the resulting CVPixelBuffer from requests that generate a segmentation mask for the entire image.

type DetectedObjectObservationProvider added in v0.17.0

type DetectedObjectObservationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

DetectedObjectObservationProvider is accepted wherever a VNDetectedObjectObservation (or one of its subclasses) is expected.

type DetectedPoint added in v0.17.0

type DetectedPoint struct {
	Point
}

DetectedPoint is an idiomatic wrapper over the Objective-C class VNDetectedPoint.

DetectedPoint is an abstract base — you do not construct it directly. Construct one of RecognizedPoint and pass it where a DetectedPoint is accepted.

An object that represents a normalized point in an image, along with a confidence value.

func DetectedPointFromID added in v0.17.0

func DetectedPointFromID(id objc.ID) *DetectedPoint

DetectedPointFromID adopts an existing Objective-C object as a DetectedPoint (nil for 0), retaining it and registering a release finalizer.

func (*DetectedPoint) Confidence added in v0.17.0

func (dp *DetectedPoint) Confidence() float32

Confidence returns the confidence.

type DetectedPointProvider added in v0.17.0

type DetectedPointProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

DetectedPointProvider is accepted wherever a VNDetectedPoint (or one of its subclasses) is expected.

type DispatchAutoreleaseFrequency added in v0.17.0

type DispatchAutoreleaseFrequency uint64
const (
	DispatchAutoreleaseFrequencyInherit  DispatchAutoreleaseFrequency = 0
	DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1
	DispatchAutoreleaseFrequencyNever    DispatchAutoreleaseFrequency = 2
)

func (DispatchAutoreleaseFrequency) String added in v0.17.0

String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.

type DispatchBlockFlags added in v0.17.0

type DispatchBlockFlags uint64

Bitmask — values may be combined with |.

const (
	DispatchBlockFlagsBarrier         DispatchBlockFlags = 1
	DispatchBlockFlagsDetached        DispatchBlockFlags = 2
	DispatchBlockFlagsAssignCurrent   DispatchBlockFlags = 4
	DispatchBlockFlagsNoQosClass      DispatchBlockFlags = 8
	DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16
	DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32
)

func (DispatchBlockFlags) String added in v0.17.0

func (e DispatchBlockFlags) String() string

String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.

type ElementType added in v0.17.0

type ElementType uint64

An enumeration of the type of element in feature print data.

const (
	// The element type isn’t known.
	ElementTypeUnknown ElementType = 0
	// The elements are floating-point numbers.
	ElementTypeFloat ElementType = 1
	// The elements are double-precision floating-point numbers.
	ElementTypeDouble ElementType = 2
)

func (ElementType) String added in v0.17.0

func (e ElementType) String() string

String returns the ElementType constant's name, or its numeric form when the value is not a known constant.

type EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type ErrorCode added in v0.17.0

type ErrorCode int64

Constants that identify errors from the framework.

const (
	// An error occurred during Create ML training due to an invalid transformation or image.
	ErrorTuriCoreErrorCode ErrorCode = -1
	// The operation finished without error.
	ErrorOK ErrorCode = 0
	// An app canceled the request.
	ErrorRequestCancelled ErrorCode = 1
	// The format of the image is invalid.
	ErrorInvalidFormat ErrorCode = 2
	// The requested operation failed.
	ErrorOperationFailed ErrorCode = 3
	// An app attempted to access data that’s out-of-bounds.
	ErrorOutOfBoundsError ErrorCode = 4
	// An app specified an invalid option on a request.
	ErrorInvalidOption ErrorCode = 5
	// An I/O error for an image, image sequence, or Core ML model.
	ErrorIOError ErrorCode = 6
	// A request is missing a required option.
	ErrorMissingOption ErrorCode = 7
	// The method isn’t implemented in the underlying model.
	ErrorNotImplemented ErrorCode = 8
	// An internal error occurred within the framework.
	ErrorInternalError ErrorCode = 9
	// The system doesn’t have enough memory to complete the request.
	ErrorOutOfMemory ErrorCode = 10
	// An unidentified error occurred.
	ErrorUnknownError ErrorCode = 11
	// An app requested an unsupported operation.
	ErrorInvalidOperation ErrorCode = 12
	// The image is invalid.
	ErrorInvalidImage ErrorCode = 13
	// An app passed an invalid parameter to a request.
	ErrorInvalidArgument ErrorCode = 14
	// The Core ML model is incompatible with the request.
	ErrorInvalidModel ErrorCode = 15
	// An app specified an unsupported request revision.
	ErrorUnsupportedRevision ErrorCode = 16
	// The data isn’t available.
	ErrorDataUnavailable ErrorCode = 17
	// The system can’t find a timestamp.
	ErrorTimeStampNotFound ErrorCode = 18
	// An app attempted an unsupported request.
	ErrorUnsupportedRequest ErrorCode = 19
	// The requested operation timed out.
	ErrorTimeout ErrorCode = 20
	// An app requested an unsupported compute stage.
	ErrorUnsupportedComputeStage ErrorCode = 21
	// An app requested an unsupported compute device.
	ErrorUnsupportedComputeDevice ErrorCode = 22
)

func (ErrorCode) String added in v0.17.0

func (e ErrorCode) String() string

String returns the ErrorCode constant's name, or its numeric form when the value is not a known constant.

type EvCmd

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

func (EvCmd) String

func (e EvCmd) String() string

String returns the EvCmd constant's name, or its numeric form when the value is not a known constant.

type FaceLandmarkRegion added in v0.17.0

type FaceLandmarkRegion struct {
	objref.Handle
}

FaceLandmarkRegion is an idiomatic wrapper over the Objective-C class VNFaceLandmarkRegion.

FaceLandmarkRegion is an abstract base — you do not construct it directly. Construct one of FaceLandmarkRegion2D and pass it where a FaceLandmarkRegion is accepted.

The abstract superclass for information about a specific face landmark.

func FaceLandmarkRegionFromID added in v0.17.0

func FaceLandmarkRegionFromID(id objc.ID) *FaceLandmarkRegion

FaceLandmarkRegionFromID adopts an existing Objective-C object as a FaceLandmarkRegion (nil for 0), retaining it and registering a release finalizer.

func (*FaceLandmarkRegion) Description added in v0.17.0

func (flr *FaceLandmarkRegion) Description() string

Description returns the object's -description text.

func (*FaceLandmarkRegion) IsEqual added in v0.17.0

func (flr *FaceLandmarkRegion) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*FaceLandmarkRegion) IsKind added in v0.17.0

func (flr *FaceLandmarkRegion) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*FaceLandmarkRegion) PointCount added in v0.17.0

func (flr *FaceLandmarkRegion) PointCount() int

PointCount returns the point count.

func (*FaceLandmarkRegion) String added in v0.17.0

func (flr *FaceLandmarkRegion) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type FaceLandmarkRegion2D added in v0.17.0

type FaceLandmarkRegion2D struct {
	FaceLandmarkRegion
}

FaceLandmarkRegion2D is an idiomatic wrapper over the Objective-C class VNFaceLandmarkRegion2D.

It embeds FaceLandmarkRegion, promoting that type's methods.

2D geometry information for a specific facial feature.

func FaceLandmarkRegion2DFromID added in v0.17.0

func FaceLandmarkRegion2DFromID(id objc.ID) *FaceLandmarkRegion2D

FaceLandmarkRegion2DFromID adopts an existing Objective-C object as a FaceLandmarkRegion2D (nil for 0), retaining it and registering a release finalizer.

func NewFaceLandmarkRegion2D added in v0.17.0

func NewFaceLandmarkRegion2D() *FaceLandmarkRegion2D

NewFaceLandmarkRegion2D creates a new FaceLandmarkRegion2D.

func (*FaceLandmarkRegion2D) NormalizedPoints added in v0.18.0

func (flrd *FaceLandmarkRegion2D) NormalizedPoints() unsafe.Pointer

NormalizedPoints returns obtains the array of normalized landmark points. 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.

func (*FaceLandmarkRegion2D) PointsClassification added in v0.17.0

func (flrd *FaceLandmarkRegion2D) PointsClassification() PointsClassification

PointsClassification describes how to interpret the points provided by the region.

func (*FaceLandmarkRegion2D) PointsInImageOfSize added in v0.18.0

func (flrd *FaceLandmarkRegion2D) PointsInImageOfSize(imageSize corefoundation.CGSize) *corefoundation.CGPoint

PointsInImageOfSize a buffer in memory containing landmark points in the coordinate space of the specified image size.

func (*FaceLandmarkRegion2D) PrecisionEstimatesPerPoint added in v0.17.0

func (flrd *FaceLandmarkRegion2D) PrecisionEstimatesPerPoint() []obj.Object

PrecisionEstimatesPerPoint returns obtains the array of accuracy placement estimates per landmark point. 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

PrecisionEstimatesPerPoint returns the collection as a Go slice.

type FaceLandmarkRegionProvider added in v0.17.0

type FaceLandmarkRegionProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

FaceLandmarkRegionProvider is accepted wherever a VNFaceLandmarkRegion (or one of its subclasses) is expected.

type FaceLandmarks added in v0.17.0

type FaceLandmarks struct {
	objref.Handle
}

FaceLandmarks is an idiomatic wrapper over the Objective-C class VNFaceLandmarks.

FaceLandmarks is an abstract base — you do not construct it directly. Construct one of FaceLandmarks2D and pass it where a FaceLandmarks is accepted.

The abstract superclass for containers of face landmark information.

func FaceLandmarksFromID added in v0.17.0

func FaceLandmarksFromID(id objc.ID) *FaceLandmarks

FaceLandmarksFromID adopts an existing Objective-C object as a FaceLandmarks (nil for 0), retaining it and registering a release finalizer.

func (*FaceLandmarks) Confidence added in v0.17.0

func (fl *FaceLandmarks) Confidence() float32

Confidence returns the confidence.

func (*FaceLandmarks) Description added in v0.17.0

func (fl *FaceLandmarks) Description() string

Description returns the object's -description text.

func (*FaceLandmarks) IsEqual added in v0.17.0

func (fl *FaceLandmarks) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*FaceLandmarks) IsKind added in v0.17.0

func (fl *FaceLandmarks) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*FaceLandmarks) String added in v0.17.0

func (fl *FaceLandmarks) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type FaceLandmarks2D added in v0.17.0

type FaceLandmarks2D struct {
	FaceLandmarks
}

FaceLandmarks2D is an idiomatic wrapper over the Objective-C class VNFaceLandmarks2D.

It embeds FaceLandmarks, promoting that type's methods.

A collection of facial features that a request detects.

func FaceLandmarks2DFromID added in v0.17.0

func FaceLandmarks2DFromID(id objc.ID) *FaceLandmarks2D

FaceLandmarks2DFromID adopts an existing Objective-C object as a FaceLandmarks2D (nil for 0), retaining it and registering a release finalizer.

func NewFaceLandmarks2D added in v0.17.0

func NewFaceLandmarks2D() *FaceLandmarks2D

NewFaceLandmarks2D creates a new FaceLandmarks2D.

func (*FaceLandmarks2D) AllPoints added in v0.17.0

func (fld *FaceLandmarks2D) AllPoints() *FaceLandmarkRegion2D

AllPoints returns allPoints the region containing all face landmark points.

func (*FaceLandmarks2D) FaceContour added in v0.17.0

func (fld *FaceLandmarks2D) FaceContour() *FaceLandmarkRegion2D

FaceContour returns faceContour the region containing the points that describe the face contour from cheek over chin to cheek.

func (*FaceLandmarks2D) InnerLips added in v0.17.0

func (fld *FaceLandmarks2D) InnerLips() *FaceLandmarkRegion2D

InnerLips returns innerLips the region containing the points describing the outline of the space between the of the lips.

func (*FaceLandmarks2D) LeftEye added in v0.17.0

func (fld *FaceLandmarks2D) LeftEye() *FaceLandmarkRegion2D

LeftEye returns leftEye the region containing the points describing the outline of the left eye.

func (*FaceLandmarks2D) LeftEyebrow added in v0.17.0

func (fld *FaceLandmarks2D) LeftEyebrow() *FaceLandmarkRegion2D

LeftEyebrow returns leftEyebrow the region containing the points describing the trace of the left eyebrow.

func (*FaceLandmarks2D) LeftPupil added in v0.17.0

func (fld *FaceLandmarks2D) LeftPupil() *FaceLandmarkRegion2D

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

func (*FaceLandmarks2D) MedianLine added in v0.17.0

func (fld *FaceLandmarks2D) MedianLine() *FaceLandmarkRegion2D

MedianLine returns medianLine the region containing the points describing the trace of the center line of the face.

func (*FaceLandmarks2D) Nose added in v0.17.0

Nose returns nose the region containing the points describing the outline of the nose.

func (*FaceLandmarks2D) NoseCrest added in v0.17.0

func (fld *FaceLandmarks2D) NoseCrest() *FaceLandmarkRegion2D

NoseCrest returns noseCrest the region containing the points describing the trace of the center crest of the nose.

func (*FaceLandmarks2D) OuterLips added in v0.17.0

func (fld *FaceLandmarks2D) OuterLips() *FaceLandmarkRegion2D

OuterLips returns outer lips the region containing the points describing the outline of the outside of the lips.

func (*FaceLandmarks2D) RightEye added in v0.17.0

func (fld *FaceLandmarks2D) RightEye() *FaceLandmarkRegion2D

RightEye returns rightEye the region containing the points describing the outline of the right eye.

func (*FaceLandmarks2D) RightEyebrow added in v0.17.0

func (fld *FaceLandmarks2D) RightEyebrow() *FaceLandmarkRegion2D

RightEyebrow returns rightEyebrow the region containing the points describing the trace of the right eyebrow.

func (*FaceLandmarks2D) RightPupil added in v0.17.0

func (fld *FaceLandmarks2D) RightPupil() *FaceLandmarkRegion2D

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

type FaceLandmarksProvider added in v0.17.0

type FaceLandmarksProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

FaceLandmarksProvider is accepted wherever a VNFaceLandmarks (or one of its subclasses) is expected.

type FaceObservation added in v0.17.0

type FaceObservation struct {
	DetectedObjectObservation
}

FaceObservation is an idiomatic wrapper over the Objective-C class VNFaceObservation.

It embeds DetectedObjectObservation, promoting that type's methods.

Face or facial-feature information that an image analysis request detects.

func FaceObservationFromID added in v0.17.0

func FaceObservationFromID(id objc.ID) *FaceObservation

FaceObservationFromID adopts an existing Objective-C object as a FaceObservation (nil for 0), retaining it and registering a release finalizer.

func FaceObservationWithRequestRevisionBoundingBoxRollYaw added in v0.17.0

func FaceObservationWithRequestRevisionBoundingBoxRollYaw(requestRevision int, boundingBox corefoundation.CGRect, roll obj.Object, yaw obj.Object) *FaceObservation

FaceObservationWithRequestRevisionBoundingBoxRollYaw creates an observation that contains the roll and yaw of the face.

func FaceObservationWithRequestRevisionBoundingBoxRollYawPitch added in v0.17.0

func FaceObservationWithRequestRevisionBoundingBoxRollYawPitch(requestRevision int, boundingBox corefoundation.CGRect, roll obj.Object, yaw obj.Object, pitch obj.Object) *FaceObservation

FaceObservationWithRequestRevisionBoundingBoxRollYawPitch creates an observation that contains the roll, yaw, and pitch of the face.

func NewFaceObservation added in v0.17.0

func NewFaceObservation() *FaceObservation

NewFaceObservation creates a new FaceObservation.

func (*FaceObservation) FaceCaptureQuality added in v0.17.0

func (fo *FaceObservation) FaceCaptureQuality() *foundation.Number

FaceCaptureQuality returns 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 (*FaceObservation) Landmarks added in v0.17.0

func (fo *FaceObservation) Landmarks() *FaceLandmarks2D

Landmarks returns the face landmarks populated by the VNDetectFaceLandmarksRequest. This is set to nil if only a VNDetectFaceRectanglesRequest was performed.

func (*FaceObservation) Pitch added in v0.17.0

func (fo *FaceObservation) Pitch() *foundation.Number

Pitch returns 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 (*FaceObservation) Roll added in v0.17.0

func (fo *FaceObservation) Roll() *foundation.Number

Roll returns 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 (*FaceObservation) Yaw added in v0.17.0

func (fo *FaceObservation) Yaw() *foundation.Number

Yaw returns 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 FaceObservationAccepting added in v0.17.0

type FaceObservationAccepting interface {
	InputFaceObservations() []*FaceObservation
	SetInputFaceObservations(inputFaceObservations []*FaceObservation)
}

FaceObservationAccepting is the Go form of the Objective-C protocol VNFaceObservationAccepting.

type FeaturePrintObservation added in v0.17.0

type FeaturePrintObservation struct {
	Observation
}

FeaturePrintObservation is an idiomatic wrapper over the Objective-C class VNFeaturePrintObservation.

It embeds Observation, promoting that type's methods.

An observation that provides the recognized feature print.

func FeaturePrintObservationFromID added in v0.17.0

func FeaturePrintObservationFromID(id objc.ID) *FeaturePrintObservation

FeaturePrintObservationFromID adopts an existing Objective-C object as a FeaturePrintObservation (nil for 0), retaining it and registering a release finalizer.

func NewFeaturePrintObservation added in v0.17.0

func NewFeaturePrintObservation() *FeaturePrintObservation

NewFeaturePrintObservation creates a new FeaturePrintObservation.

func (*FeaturePrintObservation) ComputeDistanceToFeaturePrintObservation added in v0.17.0

func (fpo *FeaturePrintObservation) ComputeDistanceToFeaturePrintObservation(featurePrint *FeaturePrintObservation) (outDistance float32, err error)

ComputeDistanceToFeaturePrintObservation computes the distance between two feature print observations.

func (*FeaturePrintObservation) Data added in v0.17.0

func (fpo *FeaturePrintObservation) Data() []byte

Data returns the feature print data.

func (*FeaturePrintObservation) ElementCount added in v0.17.0

func (fpo *FeaturePrintObservation) ElementCount() int

ElementCount returns the total number of elements in the data.

func (*FeaturePrintObservation) ElementType added in v0.17.0

func (fpo *FeaturePrintObservation) ElementType() ElementType

ElementType returns the type of each element in the data.

type FilesecProperty added in v0.17.0

type FilesecProperty int32
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.

type Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type GenerateAttentionBasedSaliencyImageRequest added in v0.17.0

type GenerateAttentionBasedSaliencyImageRequest struct {
	ImageBasedRequest
}

GenerateAttentionBasedSaliencyImageRequest is an idiomatic wrapper over the Objective-C class VNGenerateAttentionBasedSaliencyImageRequest.

It embeds ImageBasedRequest, promoting that type's methods.

An object that produces a heat map that identifies the parts of an image most likely to draw attention.

func GenerateAttentionBasedSaliencyImageRequestFromID added in v0.17.0

func GenerateAttentionBasedSaliencyImageRequestFromID(id objc.ID) *GenerateAttentionBasedSaliencyImageRequest

GenerateAttentionBasedSaliencyImageRequestFromID adopts an existing Objective-C object as a GenerateAttentionBasedSaliencyImageRequest (nil for 0), retaining it and registering a release finalizer.

func NewGenerateAttentionBasedSaliencyImageRequest added in v0.17.0

func NewGenerateAttentionBasedSaliencyImageRequest() *GenerateAttentionBasedSaliencyImageRequest

NewGenerateAttentionBasedSaliencyImageRequest creates a new GenerateAttentionBasedSaliencyImageRequest.

func (*GenerateAttentionBasedSaliencyImageRequest) WithPreferBackgroundProcessing added in v0.17.0

func (gabsir *GenerateAttentionBasedSaliencyImageRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *GenerateAttentionBasedSaliencyImageRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*GenerateAttentionBasedSaliencyImageRequest) WithRegionOfInterest added in v0.17.0

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*GenerateAttentionBasedSaliencyImageRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*GenerateAttentionBasedSaliencyImageRequest) WithUsesCPUOnly added in v0.17.0

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type GenerateForegroundInstanceMaskRequest added in v0.17.0

type GenerateForegroundInstanceMaskRequest struct {
	ImageBasedRequest
}

GenerateForegroundInstanceMaskRequest is an idiomatic wrapper over the Objective-C class VNGenerateForegroundInstanceMaskRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request that generates an instance mask of noticable objects to separate from the background.

func GenerateForegroundInstanceMaskRequestFromID added in v0.17.0

func GenerateForegroundInstanceMaskRequestFromID(id objc.ID) *GenerateForegroundInstanceMaskRequest

GenerateForegroundInstanceMaskRequestFromID adopts an existing Objective-C object as a GenerateForegroundInstanceMaskRequest (nil for 0), retaining it and registering a release finalizer.

func NewGenerateForegroundInstanceMaskRequest added in v0.17.0

func NewGenerateForegroundInstanceMaskRequest() *GenerateForegroundInstanceMaskRequest

NewGenerateForegroundInstanceMaskRequest creates a new GenerateForegroundInstanceMaskRequest.

func (*GenerateForegroundInstanceMaskRequest) WithPreferBackgroundProcessing added in v0.17.0

func (gfimr *GenerateForegroundInstanceMaskRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *GenerateForegroundInstanceMaskRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*GenerateForegroundInstanceMaskRequest) WithRegionOfInterest added in v0.17.0

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*GenerateForegroundInstanceMaskRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*GenerateForegroundInstanceMaskRequest) WithUsesCPUOnly added in v0.17.0

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type GenerateImageFeaturePrintRequest added in v0.17.0

type GenerateImageFeaturePrintRequest struct {
	ImageBasedRequest
}

GenerateImageFeaturePrintRequest is an idiomatic wrapper over the Objective-C class VNGenerateImageFeaturePrintRequest.

It embeds ImageBasedRequest, promoting that type's methods.

An image-based request to generate feature prints from an image.

func GenerateImageFeaturePrintRequestFromID added in v0.17.0

func GenerateImageFeaturePrintRequestFromID(id objc.ID) *GenerateImageFeaturePrintRequest

GenerateImageFeaturePrintRequestFromID adopts an existing Objective-C object as a GenerateImageFeaturePrintRequest (nil for 0), retaining it and registering a release finalizer.

func NewGenerateImageFeaturePrintRequest added in v0.17.0

func NewGenerateImageFeaturePrintRequest() *GenerateImageFeaturePrintRequest

NewGenerateImageFeaturePrintRequest creates a new GenerateImageFeaturePrintRequest.

func (*GenerateImageFeaturePrintRequest) ImageCropAndScaleOption added in v0.17.0

func (gifpr *GenerateImageFeaturePrintRequest) ImageCropAndScaleOption() ImageCropAndScaleOption

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

func (*GenerateImageFeaturePrintRequest) WithImageCropAndScaleOption added in v0.17.0

func (gifpr *GenerateImageFeaturePrintRequest) WithImageCropAndScaleOption(imageCropAndScaleOption ImageCropAndScaleOption) *GenerateImageFeaturePrintRequest

WithImageCropAndScaleOption sets an optional setting that tells the algorithm how to scale an input image before generating the feature print.

func (*GenerateImageFeaturePrintRequest) WithPreferBackgroundProcessing added in v0.17.0

func (gifpr *GenerateImageFeaturePrintRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *GenerateImageFeaturePrintRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*GenerateImageFeaturePrintRequest) WithRegionOfInterest added in v0.17.0

func (gifpr *GenerateImageFeaturePrintRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *GenerateImageFeaturePrintRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*GenerateImageFeaturePrintRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*GenerateImageFeaturePrintRequest) WithUsesCPUOnly added in v0.17.0

func (gifpr *GenerateImageFeaturePrintRequest) WithUsesCPUOnly(usesCPUOnly bool) *GenerateImageFeaturePrintRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type GenerateObjectnessBasedSaliencyImageRequest added in v0.17.0

type GenerateObjectnessBasedSaliencyImageRequest struct {
	ImageBasedRequest
}

GenerateObjectnessBasedSaliencyImageRequest is an idiomatic wrapper over the Objective-C class VNGenerateObjectnessBasedSaliencyImageRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request that generates a heat map that identifies the parts of an image most likely to represent objects.

func GenerateObjectnessBasedSaliencyImageRequestFromID added in v0.17.0

func GenerateObjectnessBasedSaliencyImageRequestFromID(id objc.ID) *GenerateObjectnessBasedSaliencyImageRequest

GenerateObjectnessBasedSaliencyImageRequestFromID adopts an existing Objective-C object as a GenerateObjectnessBasedSaliencyImageRequest (nil for 0), retaining it and registering a release finalizer.

func NewGenerateObjectnessBasedSaliencyImageRequest added in v0.17.0

func NewGenerateObjectnessBasedSaliencyImageRequest() *GenerateObjectnessBasedSaliencyImageRequest

NewGenerateObjectnessBasedSaliencyImageRequest creates a new GenerateObjectnessBasedSaliencyImageRequest.

func (*GenerateObjectnessBasedSaliencyImageRequest) WithPreferBackgroundProcessing added in v0.17.0

func (gobsir *GenerateObjectnessBasedSaliencyImageRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *GenerateObjectnessBasedSaliencyImageRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*GenerateObjectnessBasedSaliencyImageRequest) WithRegionOfInterest added in v0.17.0

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*GenerateObjectnessBasedSaliencyImageRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*GenerateObjectnessBasedSaliencyImageRequest) WithUsesCPUOnly added in v0.17.0

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type GenerateOpticalFlowRequest added in v0.17.0

type GenerateOpticalFlowRequest struct {
	TargetedImageRequest
}

GenerateOpticalFlowRequest is an idiomatic wrapper over the Objective-C class VNGenerateOpticalFlowRequest.

It embeds TargetedImageRequest, promoting that type's methods.

An object that generates directional change vectors for each pixel in the targeted image.

func GenerateOpticalFlowRequestFromID added in v0.17.0

func GenerateOpticalFlowRequestFromID(id objc.ID) *GenerateOpticalFlowRequest

GenerateOpticalFlowRequestFromID adopts an existing Objective-C object as a GenerateOpticalFlowRequest (nil for 0), retaining it and registering a release finalizer.

func NewGenerateOpticalFlowRequest added in v0.17.0

func NewGenerateOpticalFlowRequest() *GenerateOpticalFlowRequest

NewGenerateOpticalFlowRequest creates a new GenerateOpticalFlowRequest.

func (*GenerateOpticalFlowRequest) ComputationAccuracy added in v0.17.0

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

func (*GenerateOpticalFlowRequest) KeepNetworkOutput added in v0.17.0

func (gofr *GenerateOpticalFlowRequest) KeepNetworkOutput() bool

KeepNetworkOutput reports whether setting this to true will keep the raw pixel buffer coming from the the ML network. The default is false. When set to true, the outputPixelFormat is ignored. Setting this for revision 1 is a no-op as it is not ML-based.

func (*GenerateOpticalFlowRequest) OutputPixelFormat added in v0.17.0

func (gofr *GenerateOpticalFlowRequest) OutputPixelFormat() int

OutputPixelFormat returns pixel format type of the output buffer. Valid values are kCVPixelFormatType_TwoComponent32Float and kCVPixelFormatType_TwoComponent16Half. Default is kCVPixelFormatType_TwoComponent32Float.

func (*GenerateOpticalFlowRequest) WithComputationAccuracy added in v0.17.0

WithComputationAccuracy sets the accuracy level for computing optical flow.

func (*GenerateOpticalFlowRequest) WithKeepNetworkOutput added in v0.17.0

func (gofr *GenerateOpticalFlowRequest) WithKeepNetworkOutput(keepNetworkOutput bool) *GenerateOpticalFlowRequest

WithKeepNetworkOutput sets a Boolean value that indicates whether to keep the raw pixel buffer coming from the machine learning network.

func (*GenerateOpticalFlowRequest) WithOutputPixelFormat added in v0.17.0

func (gofr *GenerateOpticalFlowRequest) WithOutputPixelFormat(outputPixelFormat int) *GenerateOpticalFlowRequest

WithOutputPixelFormat sets the output buffer’s pixel format.

func (*GenerateOpticalFlowRequest) WithPreferBackgroundProcessing added in v0.17.0

func (gofr *GenerateOpticalFlowRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *GenerateOpticalFlowRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*GenerateOpticalFlowRequest) WithRegionOfInterest added in v0.17.0

func (gofr *GenerateOpticalFlowRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *GenerateOpticalFlowRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*GenerateOpticalFlowRequest) WithRevision added in v0.17.0

func (gofr *GenerateOpticalFlowRequest) WithRevision(revision int) *GenerateOpticalFlowRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*GenerateOpticalFlowRequest) WithUsesCPUOnly added in v0.17.0

func (gofr *GenerateOpticalFlowRequest) WithUsesCPUOnly(usesCPUOnly bool) *GenerateOpticalFlowRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type GenerateOpticalFlowRequestComputationAccuracy added in v0.17.0

type GenerateOpticalFlowRequestComputationAccuracy uint64

The supported optical flow accuracy levels.

const (
	GenerateOpticalFlowRequestComputationAccuracyLow      GenerateOpticalFlowRequestComputationAccuracy = 0
	GenerateOpticalFlowRequestComputationAccuracyMedium   GenerateOpticalFlowRequestComputationAccuracy = 1
	GenerateOpticalFlowRequestComputationAccuracyHigh     GenerateOpticalFlowRequestComputationAccuracy = 2
	GenerateOpticalFlowRequestComputationAccuracyVeryHigh GenerateOpticalFlowRequestComputationAccuracy = 3
)

func (GenerateOpticalFlowRequestComputationAccuracy) String added in v0.17.0

String returns the GenerateOpticalFlowRequestComputationAccuracy constant's name, or its numeric form when the value is not a known constant.

type GeneratePersonInstanceMaskRequest added in v0.17.0

type GeneratePersonInstanceMaskRequest struct {
	ImageBasedRequest
}

GeneratePersonInstanceMaskRequest is an idiomatic wrapper over the Objective-C class VNGeneratePersonInstanceMaskRequest.

It embeds ImageBasedRequest, promoting that type's methods.

An object that produces a mask of individual people it finds in the input image.

func GeneratePersonInstanceMaskRequestFromID added in v0.17.0

func GeneratePersonInstanceMaskRequestFromID(id objc.ID) *GeneratePersonInstanceMaskRequest

GeneratePersonInstanceMaskRequestFromID adopts an existing Objective-C object as a GeneratePersonInstanceMaskRequest (nil for 0), retaining it and registering a release finalizer.

func NewGeneratePersonInstanceMaskRequest added in v0.17.0

func NewGeneratePersonInstanceMaskRequest() *GeneratePersonInstanceMaskRequest

NewGeneratePersonInstanceMaskRequest creates a new GeneratePersonInstanceMaskRequest.

func (*GeneratePersonInstanceMaskRequest) WithPreferBackgroundProcessing added in v0.17.0

func (gpimr *GeneratePersonInstanceMaskRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *GeneratePersonInstanceMaskRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*GeneratePersonInstanceMaskRequest) WithRegionOfInterest added in v0.17.0

func (gpimr *GeneratePersonInstanceMaskRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *GeneratePersonInstanceMaskRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*GeneratePersonInstanceMaskRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*GeneratePersonInstanceMaskRequest) WithUsesCPUOnly added in v0.17.0

func (gpimr *GeneratePersonInstanceMaskRequest) WithUsesCPUOnly(usesCPUOnly bool) *GeneratePersonInstanceMaskRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type GeneratePersonSegmentationRequest added in v0.17.0

type GeneratePersonSegmentationRequest struct {
	StatefulRequest
}

GeneratePersonSegmentationRequest is an idiomatic wrapper over the Objective-C class VNGeneratePersonSegmentationRequest.

It embeds StatefulRequest, promoting that type's methods.

An object that produces a matte image for a person it finds in the input image.

func GeneratePersonSegmentationRequestFromID added in v0.17.0

func GeneratePersonSegmentationRequestFromID(id objc.ID) *GeneratePersonSegmentationRequest

GeneratePersonSegmentationRequestFromID adopts an existing Objective-C object as a GeneratePersonSegmentationRequest (nil for 0), retaining it and registering a release finalizer.

func New added in v0.17.0

New returns a new generate person segmentation request.

func NewGeneratePersonSegmentationRequest added in v0.17.0

func NewGeneratePersonSegmentationRequest() *GeneratePersonSegmentationRequest

NewGeneratePersonSegmentationRequest creates a new GeneratePersonSegmentationRequest.

func NewGeneratePersonSegmentationRequestWithCompletionHandler added in v0.18.0

func NewGeneratePersonSegmentationRequestWithCompletionHandler(completionHandler func(obj.Object, unsafe.Pointer)) *GeneratePersonSegmentationRequest

NewGeneratePersonSegmentationRequestWithCompletionHandler creates a generate person segmentation request with a completion handler.

func (*GeneratePersonSegmentationRequest) OutputPixelFormat added in v0.17.0

func (gpsr *GeneratePersonSegmentationRequest) OutputPixelFormat() int

OutputPixelFormat returns pixel format type of the output buffer. Valid values are kCVPixelFormatType_OneComponent32Float, kCVPixelFormatType_OneComponent16Half, and kCVPixelFormatType_OneComponent8. Default is kCVPixelFormatType_OneComponent8.

func (*GeneratePersonSegmentationRequest) QualityLevel added in v0.17.0

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

func (*GeneratePersonSegmentationRequest) SupportedOutputPixelFormats added in v0.17.0

func (gpsr *GeneratePersonSegmentationRequest) SupportedOutputPixelFormats() (result []obj.Object, err error)

SupportedOutputPixelFormats returns a list of output pixel formats that the request supports.

SupportedOutputPixelFormats returns the collection as a Go slice.

func (*GeneratePersonSegmentationRequest) WithOutputPixelFormat added in v0.17.0

func (gpsr *GeneratePersonSegmentationRequest) WithOutputPixelFormat(outputPixelFormat int) *GeneratePersonSegmentationRequest

WithOutputPixelFormat sets the pixel format of the output image.

func (*GeneratePersonSegmentationRequest) WithPreferBackgroundProcessing added in v0.17.0

func (gpsr *GeneratePersonSegmentationRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *GeneratePersonSegmentationRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*GeneratePersonSegmentationRequest) WithQualityLevel added in v0.17.0

WithQualityLevel sets a value that indicates how the request balances accuracy and performance.

func (*GeneratePersonSegmentationRequest) WithRegionOfInterest added in v0.17.0

func (gpsr *GeneratePersonSegmentationRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *GeneratePersonSegmentationRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*GeneratePersonSegmentationRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*GeneratePersonSegmentationRequest) WithUsesCPUOnly added in v0.17.0

func (gpsr *GeneratePersonSegmentationRequest) WithUsesCPUOnly(usesCPUOnly bool) *GeneratePersonSegmentationRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type GeneratePersonSegmentationRequestQualityLevel added in v0.17.0

type GeneratePersonSegmentationRequestQualityLevel uint64

Constants that define the levels of quality for a person segmentation request.

const (
	GeneratePersonSegmentationRequestQualityLevelAccurate GeneratePersonSegmentationRequestQualityLevel = 0
	GeneratePersonSegmentationRequestQualityLevelBalanced GeneratePersonSegmentationRequestQualityLevel = 1
	GeneratePersonSegmentationRequestQualityLevelFast     GeneratePersonSegmentationRequestQualityLevel = 2
)

func (GeneratePersonSegmentationRequestQualityLevel) String added in v0.17.0

String returns the GeneratePersonSegmentationRequestQualityLevel constant's name, or its numeric form when the value is not a known constant.

type GeometryUtils added in v0.17.0

type GeometryUtils struct {
	objref.Handle
}

GeometryUtils is an idiomatic wrapper over the Objective-C class VNGeometryUtils.

Utility methods to determine the geometries of various Vision types.

func GeometryUtilsFromID added in v0.17.0

func GeometryUtilsFromID(id objc.ID) *GeometryUtils

GeometryUtilsFromID adopts an existing Objective-C object as a GeometryUtils (nil for 0), retaining it and registering a release finalizer.

func NewGeometryUtils added in v0.17.0

func NewGeometryUtils() *GeometryUtils

NewGeometryUtils creates a new GeometryUtils.

func (*GeometryUtils) Description added in v0.17.0

func (gu *GeometryUtils) Description() string

Description returns the object's -description text.

func (*GeometryUtils) IsEqual added in v0.17.0

func (gu *GeometryUtils) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*GeometryUtils) IsKind added in v0.17.0

func (gu *GeometryUtils) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*GeometryUtils) String added in v0.17.0

func (gu *GeometryUtils) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type HomographicImageRegistrationRequest added in v0.17.0

type HomographicImageRegistrationRequest struct {
	ImageRegistrationRequest
}

HomographicImageRegistrationRequest is an idiomatic wrapper over the Objective-C class VNHomographicImageRegistrationRequest.

It embeds ImageRegistrationRequest, promoting that type's methods.

An image-analysis request that determines the perspective warp matrix necessary to align the content of two images.

func HomographicImageRegistrationRequestFromID added in v0.17.0

func HomographicImageRegistrationRequestFromID(id objc.ID) *HomographicImageRegistrationRequest

HomographicImageRegistrationRequestFromID adopts an existing Objective-C object as a HomographicImageRegistrationRequest (nil for 0), retaining it and registering a release finalizer.

func NewHomographicImageRegistrationRequest added in v0.17.0

func NewHomographicImageRegistrationRequest() *HomographicImageRegistrationRequest

NewHomographicImageRegistrationRequest creates a new HomographicImageRegistrationRequest.

func (*HomographicImageRegistrationRequest) WithPreferBackgroundProcessing added in v0.17.0

func (hirr *HomographicImageRegistrationRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *HomographicImageRegistrationRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*HomographicImageRegistrationRequest) WithRegionOfInterest added in v0.17.0

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*HomographicImageRegistrationRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*HomographicImageRegistrationRequest) WithUsesCPUOnly added in v0.17.0

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type HorizonObservation added in v0.17.0

type HorizonObservation struct {
	Observation
}

HorizonObservation is an idiomatic wrapper over the Objective-C class VNHorizonObservation.

It embeds Observation, promoting that type's methods.

The horizon angle information that an image-analysis request detects.

func HorizonObservationFromID added in v0.17.0

func HorizonObservationFromID(id objc.ID) *HorizonObservation

HorizonObservationFromID adopts an existing Objective-C object as a HorizonObservation (nil for 0), retaining it and registering a release finalizer.

func NewHorizonObservation added in v0.17.0

func NewHorizonObservation() *HorizonObservation

NewHorizonObservation creates a new HorizonObservation.

func (*HorizonObservation) Angle added in v0.17.0

func (ho *HorizonObservation) Angle() float64

Angle returns angle of the observed horizon.

func (*HorizonObservation) Transform added in v0.17.0

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

func (*HorizonObservation) TransformForImageWidthHeight added in v0.17.0

func (ho *HorizonObservation) TransformForImageWidthHeight(width int, height int) corefoundation.CGAffineTransform

TransformForImageWidthHeight creates an affine transform for the specified image width and height.

type HumanBodyPose3DObservation added in v0.17.0

type HumanBodyPose3DObservation struct {
	RecognizedPoints3DObservation
}

HumanBodyPose3DObservation is an idiomatic wrapper over the Objective-C class VNHumanBodyPose3DObservation.

It embeds RecognizedPoints3DObservation, promoting that type's methods.

An observation that provides the 3D body points the request recognizes.

func HumanBodyPose3DObservationFromID added in v0.17.0

func HumanBodyPose3DObservationFromID(id objc.ID) *HumanBodyPose3DObservation

HumanBodyPose3DObservationFromID adopts an existing Objective-C object as a HumanBodyPose3DObservation (nil for 0), retaining it and registering a release finalizer.

func NewHumanBodyPose3DObservation added in v0.17.0

func NewHumanBodyPose3DObservation() *HumanBodyPose3DObservation

NewHumanBodyPose3DObservation creates a new HumanBodyPose3DObservation.

func (*HumanBodyPose3DObservation) AvailableJointNames added in v0.17.0

func (hbpdo *HumanBodyPose3DObservation) AvailableJointNames() []obj.Object

AvailableJointNames returns all of the joint names available in the observation.

AvailableJointNames returns the collection as a Go slice.

func (*HumanBodyPose3DObservation) AvailableJointsGroupNames added in v0.17.0

func (hbpdo *HumanBodyPose3DObservation) AvailableJointsGroupNames() []obj.Object

AvailableJointsGroupNames returns all of the joints group names available in the observation.

AvailableJointsGroupNames returns the collection as a Go slice.

func (*HumanBodyPose3DObservation) BodyHeight added in v0.17.0

func (hbpdo *HumanBodyPose3DObservation) BodyHeight() float32

BodyHeight returns estimated human height, in meters.

func (*HumanBodyPose3DObservation) CameraOriginMatrix added in v0.18.0

func (hbpdo *HumanBodyPose3DObservation) CameraOriginMatrix() unsafe.Pointer

CameraOriginMatrix returns a transform from root (at hip) to Camera as projection center.

func (*HumanBodyPose3DObservation) GetCameraRelativePositionForJointName added in v0.17.0

func (hbpdo *HumanBodyPose3DObservation) GetCameraRelativePositionForJointName(modelPositionOut unsafe.Pointer, jointName obj.Object) error

GetCameraRelativePositionForJointName gets a position relative to the camera for the body joint you specify.

func (*HumanBodyPose3DObservation) HeightEstimation added in v0.17.0

HeightEstimation returns 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 (*HumanBodyPose3DObservation) ParentJointNameForJointName added in v0.17.0

func (hbpdo *HumanBodyPose3DObservation) ParentJointNameForJointName(jointName obj.Object) *foundation.String

ParentJointNameForJointName returns the parent joint of the joint name you specify.

func (*HumanBodyPose3DObservation) PointInImageForJointName added in v0.17.0

func (hbpdo *HumanBodyPose3DObservation) PointInImageForJointName(jointName obj.Object) (result *Point, err error)

PointInImageForJointName returns a 2D point for the joint name you specify, relative to the input image.

func (*HumanBodyPose3DObservation) RecognizedPointForJointName added in v0.17.0

func (hbpdo *HumanBodyPose3DObservation) RecognizedPointForJointName(jointName obj.Object) (result *HumanBodyRecognizedPoint3D, err error)

RecognizedPointForJointName returns the point for a joint name that the observation recognizes.

func (*HumanBodyPose3DObservation) RecognizedPointsForJointsGroupName added in v0.17.0

func (hbpdo *HumanBodyPose3DObservation) RecognizedPointsForJointsGroupName(jointsGroupName obj.Object) (result obj.Object, err error)

RecognizedPointsForJointsGroupName returns a collection of points for the group name you specify.

type HumanBodyPose3DObservationHeightEstimation added in v0.17.0

type HumanBodyPose3DObservationHeightEstimation int64

Constants that identify body height estimation techniques.

const (
	HumanBodyPose3DObservationHeightEstimationReference HumanBodyPose3DObservationHeightEstimation = 0
	HumanBodyPose3DObservationHeightEstimationMeasured  HumanBodyPose3DObservationHeightEstimation = 1
)

func (HumanBodyPose3DObservationHeightEstimation) String added in v0.17.0

String returns the HumanBodyPose3DObservationHeightEstimation constant's name, or its numeric form when the value is not a known constant.

type HumanBodyPoseObservation added in v0.17.0

type HumanBodyPoseObservation struct {
	RecognizedPointsObservation
}

HumanBodyPoseObservation is an idiomatic wrapper over the Objective-C class VNHumanBodyPoseObservation.

It embeds RecognizedPointsObservation, promoting that type's methods.

An observation that provides the body points the analysis recognized.

func HumanBodyPoseObservationFromID added in v0.17.0

func HumanBodyPoseObservationFromID(id objc.ID) *HumanBodyPoseObservation

HumanBodyPoseObservationFromID adopts an existing Objective-C object as a HumanBodyPoseObservation (nil for 0), retaining it and registering a release finalizer.

func NewHumanBodyPoseObservation added in v0.17.0

func NewHumanBodyPoseObservation() *HumanBodyPoseObservation

NewHumanBodyPoseObservation creates a new HumanBodyPoseObservation.

func (*HumanBodyPoseObservation) AvailableJointNames added in v0.17.0

func (hbpo *HumanBodyPoseObservation) AvailableJointNames() []obj.Object

AvailableJointNames returns all of the joint names available in the observation.

AvailableJointNames returns the collection as a Go slice.

func (*HumanBodyPoseObservation) AvailableJointsGroupNames added in v0.17.0

func (hbpo *HumanBodyPoseObservation) AvailableJointsGroupNames() []obj.Object

AvailableJointsGroupNames returns all of the joints group names available in the observation.

AvailableJointsGroupNames returns the collection as a Go slice.

func (*HumanBodyPoseObservation) RecognizedPointForJointName added in v0.17.0

func (hbpo *HumanBodyPoseObservation) RecognizedPointForJointName(jointName obj.Object) (result *RecognizedPoint, err error)

RecognizedPointForJointName retrieves the recognized point for a joint name.

func (*HumanBodyPoseObservation) RecognizedPointsForJointsGroupName added in v0.17.0

func (hbpo *HumanBodyPoseObservation) RecognizedPointsForJointsGroupName(jointsGroupName obj.Object) (result obj.Object, err error)

RecognizedPointsForJointsGroupName retrieves the recognized points associated with the joint group name.

type HumanBodyRecognizedPoint3D added in v0.17.0

type HumanBodyRecognizedPoint3D struct {
	RecognizedPoint3D
}

HumanBodyRecognizedPoint3D is an idiomatic wrapper over the Objective-C class VNHumanBodyRecognizedPoint3D.

It embeds RecognizedPoint3D, promoting that type's methods.

A recognized 3D point that includes a parent joint.

func HumanBodyRecognizedPoint3DFromID added in v0.17.0

func HumanBodyRecognizedPoint3DFromID(id objc.ID) *HumanBodyRecognizedPoint3D

HumanBodyRecognizedPoint3DFromID adopts an existing Objective-C object as a HumanBodyRecognizedPoint3D (nil for 0), retaining it and registering a release finalizer.

func NewHumanBodyRecognizedPoint3D added in v0.17.0

func NewHumanBodyRecognizedPoint3D() *HumanBodyRecognizedPoint3D

NewHumanBodyRecognizedPoint3D creates a new HumanBodyRecognizedPoint3D.

func (*HumanBodyRecognizedPoint3D) LocalPosition added in v0.18.0

func (hbrpd *HumanBodyRecognizedPoint3D) LocalPosition() unsafe.Pointer

LocalPosition returns the local position.

func (*HumanBodyRecognizedPoint3D) ParentJoint added in v0.17.0

func (hbrpd *HumanBodyRecognizedPoint3D) ParentJoint() *foundation.String

ParentJoint returns the parent joint.

type HumanHandPoseObservation added in v0.17.0

type HumanHandPoseObservation struct {
	RecognizedPointsObservation
}

HumanHandPoseObservation is an idiomatic wrapper over the Objective-C class VNHumanHandPoseObservation.

It embeds RecognizedPointsObservation, promoting that type's methods.

An observation that provides the hand points the analysis recognized.

func HumanHandPoseObservationFromID added in v0.17.0

func HumanHandPoseObservationFromID(id objc.ID) *HumanHandPoseObservation

HumanHandPoseObservationFromID adopts an existing Objective-C object as a HumanHandPoseObservation (nil for 0), retaining it and registering a release finalizer.

func NewHumanHandPoseObservation added in v0.17.0

func NewHumanHandPoseObservation() *HumanHandPoseObservation

NewHumanHandPoseObservation creates a new HumanHandPoseObservation.

func (*HumanHandPoseObservation) AvailableJointNames added in v0.17.0

func (hhpo *HumanHandPoseObservation) AvailableJointNames() []obj.Object

AvailableJointNames returns all of the joint names available in the observation.

AvailableJointNames returns the collection as a Go slice.

func (*HumanHandPoseObservation) AvailableJointsGroupNames added in v0.17.0

func (hhpo *HumanHandPoseObservation) AvailableJointsGroupNames() []obj.Object

AvailableJointsGroupNames returns all of the joints group names available in the observation.

AvailableJointsGroupNames returns the collection as a Go slice.

func (*HumanHandPoseObservation) Chirality added in v0.17.0

func (hhpo *HumanHandPoseObservation) Chirality() Chirality

Chirality returns the chirality of the hand.

func (*HumanHandPoseObservation) RecognizedPointForJointName added in v0.17.0

func (hhpo *HumanHandPoseObservation) RecognizedPointForJointName(jointName obj.Object) (result *RecognizedPoint, err error)

RecognizedPointForJointName retrieves the recognized point for a joint name.

func (*HumanHandPoseObservation) RecognizedPointsForJointsGroupName added in v0.17.0

func (hhpo *HumanHandPoseObservation) RecognizedPointsForJointsGroupName(jointsGroupName obj.Object) (result obj.Object, err error)

RecognizedPointsForJointsGroupName retrieves the recognized points associated with the joint group name.

type HumanObservation added in v0.17.0

type HumanObservation struct {
	DetectedObjectObservation
}

HumanObservation is an idiomatic wrapper over the Objective-C class VNHumanObservation.

It embeds DetectedObjectObservation, promoting that type's methods.

An object that represents a person that the request detects.

func HumanObservationFromID added in v0.17.0

func HumanObservationFromID(id objc.ID) *HumanObservation

HumanObservationFromID adopts an existing Objective-C object as a HumanObservation (nil for 0), retaining it and registering a release finalizer.

func NewHumanObservation added in v0.17.0

func NewHumanObservation() *HumanObservation

NewHumanObservation creates a new HumanObservation.

func (*HumanObservation) UpperBodyOnly added in v0.17.0

func (ho *HumanObservation) UpperBodyOnly() bool

UpperBodyOnly wraps the corresponding Objective-C method.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type ImageAestheticsScoresObservation added in v0.17.0

type ImageAestheticsScoresObservation struct {
	Observation
}

ImageAestheticsScoresObservation is an idiomatic wrapper over the Objective-C class VNImageAestheticsScoresObservation.

It embeds Observation, promoting that type's methods.

An object that represents the overall score of aesthetic attributes for an image.

func ImageAestheticsScoresObservationFromID added in v0.17.0

func ImageAestheticsScoresObservationFromID(id objc.ID) *ImageAestheticsScoresObservation

ImageAestheticsScoresObservationFromID adopts an existing Objective-C object as a ImageAestheticsScoresObservation (nil for 0), retaining it and registering a release finalizer.

func NewImageAestheticsScoresObservation added in v0.17.0

func NewImageAestheticsScoresObservation() *ImageAestheticsScoresObservation

NewImageAestheticsScoresObservation creates a new ImageAestheticsScoresObservation.

func (*ImageAestheticsScoresObservation) IsUtility added in v0.17.0

func (iaso *ImageAestheticsScoresObservation) IsUtility() bool

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

func (*ImageAestheticsScoresObservation) OverallScore added in v0.17.0

func (iaso *ImageAestheticsScoresObservation) OverallScore() float32

OverallScore returns 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 ImageAlignmentObservation added in v0.17.0

type ImageAlignmentObservation struct {
	Observation
}

ImageAlignmentObservation is an idiomatic wrapper over the Objective-C class VNImageAlignmentObservation.

ImageAlignmentObservation is an abstract base — you do not construct it directly. Construct one of ImageHomographicAlignmentObservation, ImageTranslationAlignmentObservation and pass it where a ImageAlignmentObservation is accepted.

The abstract superclass for image-analysis results that describe the relative alignment of two images.

func ImageAlignmentObservationFromID added in v0.17.0

func ImageAlignmentObservationFromID(id objc.ID) *ImageAlignmentObservation

ImageAlignmentObservationFromID adopts an existing Objective-C object as a ImageAlignmentObservation (nil for 0), retaining it and registering a release finalizer.

type ImageAlignmentObservationProvider added in v0.17.0

type ImageAlignmentObservationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ImageAlignmentObservationProvider is accepted wherever a VNImageAlignmentObservation (or one of its subclasses) is expected.

type ImageBasedRequest added in v0.17.0

type ImageBasedRequest struct {
	Request
}

ImageBasedRequest is an idiomatic wrapper over the Objective-C class VNImageBasedRequest.

ImageBasedRequest is an abstract base — you do not construct it directly. Construct one of CalculateImageAestheticsScoresRequest, ClassifyImageRequest, CoreMLRequest, DetectAnimalBodyPoseRequest, DetectBarcodesRequest, DetectContoursRequest, DetectDocumentSegmentationRequest, DetectFaceCaptureQualityRequest, DetectFaceLandmarksRequest, DetectFaceRectanglesRequest, DetectHorizonRequest, DetectHumanBodyPoseRequest, DetectHumanHandPoseRequest, DetectHumanRectanglesRequest, DetectRectanglesRequest, DetectTextRectanglesRequest, GenerateAttentionBasedSaliencyImageRequest, GenerateForegroundInstanceMaskRequest, GenerateImageFeaturePrintRequest, GenerateObjectnessBasedSaliencyImageRequest, GeneratePersonInstanceMaskRequest, RecognizeAnimalsRequest, RecognizeTextRequest, StatefulRequest, TargetedImageRequest, TrackingRequest and pass it where a ImageBasedRequest is accepted.

The abstract superclass for image-analysis requests that focus on a specific part of an image.

func ImageBasedRequestFromID added in v0.17.0

func ImageBasedRequestFromID(id objc.ID) *ImageBasedRequest

ImageBasedRequestFromID adopts an existing Objective-C object as a ImageBasedRequest (nil for 0), retaining it and registering a release finalizer.

func (*ImageBasedRequest) RegionOfInterest added in v0.17.0

func (ibr *ImageBasedRequest) RegionOfInterest() corefoundation.CGRect

RegionOfInterest returns the region of interest.

func (*ImageBasedRequest) WithPreferBackgroundProcessing added in v0.17.0

func (ibr *ImageBasedRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *ImageBasedRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*ImageBasedRequest) WithRegionOfInterest added in v0.17.0

func (ibr *ImageBasedRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *ImageBasedRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*ImageBasedRequest) WithRevision added in v0.17.0

func (ibr *ImageBasedRequest) WithRevision(revision int) *ImageBasedRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*ImageBasedRequest) WithUsesCPUOnly added in v0.17.0

func (ibr *ImageBasedRequest) WithUsesCPUOnly(usesCPUOnly bool) *ImageBasedRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type ImageBasedRequestProvider added in v0.17.0

type ImageBasedRequestProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ImageBasedRequestProvider is accepted wherever a VNImageBasedRequest (or one of its subclasses) is expected.

type ImageCropAndScaleOption added in v0.17.0

type ImageCropAndScaleOption uint64

Options that define how Vision crops and scales an input-image.

const (
	// An option that scales the image to fit its shorter side within the input dimensions, while preserving its aspect ratio, and center-crops the image.
	ImageCropAndScaleOptionCenterCrop ImageCropAndScaleOption = 0
	// An option that scales the image to fit its longer side within the input dimensions, while preserving its aspect ratio, and center-crops the image.
	ImageCropAndScaleOptionScaleFit ImageCropAndScaleOption = 1
	// An option that scales the image to fill the input dimensions, resizing it if necessary.
	ImageCropAndScaleOptionScaleFill ImageCropAndScaleOption = 2
	// An option that rotates the image 90 degrees counterclockwise and then scales it, while preserving its aspect ratio, to fit on the long side.
	ImageCropAndScaleOptionScaleFitRotate90CCW ImageCropAndScaleOption = 257
	// An option that rotates the image 90 degrees counterclockwise and then scales it to fill the input dimensions.
	ImageCropAndScaleOptionScaleFillRotate90CCW ImageCropAndScaleOption = 258
)

func (ImageCropAndScaleOption) String added in v0.17.0

func (e ImageCropAndScaleOption) String() string

String returns the ImageCropAndScaleOption constant's name, or its numeric form when the value is not a known constant.

type ImageHomographicAlignmentObservation added in v0.17.0

type ImageHomographicAlignmentObservation struct {
	ImageAlignmentObservation
}

ImageHomographicAlignmentObservation is an idiomatic wrapper over the Objective-C class VNImageHomographicAlignmentObservation.

It embeds ImageAlignmentObservation, promoting that type's methods.

An object that represents a perspective warp transformation.

func ImageHomographicAlignmentObservationFromID added in v0.17.0

func ImageHomographicAlignmentObservationFromID(id objc.ID) *ImageHomographicAlignmentObservation

ImageHomographicAlignmentObservationFromID adopts an existing Objective-C object as a ImageHomographicAlignmentObservation (nil for 0), retaining it and registering a release finalizer.

func NewImageHomographicAlignmentObservation added in v0.17.0

func NewImageHomographicAlignmentObservation() *ImageHomographicAlignmentObservation

NewImageHomographicAlignmentObservation creates a new ImageHomographicAlignmentObservation.

func (*ImageHomographicAlignmentObservation) WarpTransform added in v0.18.0

func (ihao *ImageHomographicAlignmentObservation) WarpTransform() unsafe.Pointer

WarpTransform returns the warp transform.

type ImageRegistrationRequest added in v0.17.0

type ImageRegistrationRequest struct {
	TargetedImageRequest
}

ImageRegistrationRequest is an idiomatic wrapper over the Objective-C class VNImageRegistrationRequest.

ImageRegistrationRequest is an abstract base — you do not construct it directly. Construct one of HomographicImageRegistrationRequest, TranslationalImageRegistrationRequest and pass it where a ImageRegistrationRequest is accepted.

The abstract superclass for image-analysis requests that align images according to their content.

func ImageRegistrationRequestFromID added in v0.17.0

func ImageRegistrationRequestFromID(id objc.ID) *ImageRegistrationRequest

ImageRegistrationRequestFromID adopts an existing Objective-C object as a ImageRegistrationRequest (nil for 0), retaining it and registering a release finalizer.

func (*ImageRegistrationRequest) WithPreferBackgroundProcessing added in v0.17.0

func (irr *ImageRegistrationRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *ImageRegistrationRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*ImageRegistrationRequest) WithRegionOfInterest added in v0.17.0

func (irr *ImageRegistrationRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *ImageRegistrationRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*ImageRegistrationRequest) WithRevision added in v0.17.0

func (irr *ImageRegistrationRequest) WithRevision(revision int) *ImageRegistrationRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*ImageRegistrationRequest) WithUsesCPUOnly added in v0.17.0

func (irr *ImageRegistrationRequest) WithUsesCPUOnly(usesCPUOnly bool) *ImageRegistrationRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type ImageRegistrationRequestProvider added in v0.17.0

type ImageRegistrationRequestProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ImageRegistrationRequestProvider is accepted wherever a VNImageRegistrationRequest (or one of its subclasses) is expected.

type ImageRequestHandler added in v0.17.0

type ImageRequestHandler struct {
	objref.Handle
}

ImageRequestHandler is an idiomatic wrapper over the Objective-C class VNImageRequestHandler.

An object that processes one or more image-analysis request pertaining to a single image.

func ImageRequestHandlerFromID added in v0.17.0

func ImageRequestHandlerFromID(id objc.ID) *ImageRequestHandler

ImageRequestHandlerFromID adopts an existing Objective-C object as a ImageRequestHandler (nil for 0), retaining it and registering a release finalizer.

func NewImageRequestHandlerWithCGImageOptions added in v0.17.0

func NewImageRequestHandlerWithCGImageOptions(image coregraphics.CGImageRef, options obj.Object) *ImageRequestHandler

NewImageRequestHandlerWithCGImageOptions creates a handler to be used for performing requests on Core Graphics images.

func NewImageRequestHandlerWithCIImageOptions added in v0.17.0

func NewImageRequestHandlerWithCIImageOptions(image obj.Object, options obj.Object) *ImageRequestHandler

NewImageRequestHandlerWithCIImageOptions creates a handler to use for performing requests on Core Image image data.

func NewImageRequestHandlerWithCMSampleBufferOptions added in v0.17.0

func NewImageRequestHandlerWithCMSampleBufferOptions(sampleBuffer obj.Object, options obj.Object) *ImageRequestHandler

NewImageRequestHandlerWithCMSampleBufferOptions creates a request handler that performs requests on an image contained within a sample buffer.

func NewImageRequestHandlerWithCVPixelBufferOptions added in v0.17.0

func NewImageRequestHandlerWithCVPixelBufferOptions(pixelBuffer unsafe.Pointer, options obj.Object) *ImageRequestHandler

NewImageRequestHandlerWithCVPixelBufferOptions creates a handler for performing requests on a Core Video pixel buffer.

func NewImageRequestHandlerWithDataOptions added in v0.17.0

func NewImageRequestHandlerWithDataOptions(imageData []byte, options obj.Object) *ImageRequestHandler

NewImageRequestHandlerWithDataOptions creates a handler to use for performing requests on an image in a data object.

func NewImageRequestHandlerWithURLOptions added in v0.17.0

func NewImageRequestHandlerWithURLOptions(imageURL string, options obj.Object) *ImageRequestHandler

NewImageRequestHandlerWithURLOptions creates a handler to be used for performing requests on an image at the specified URL.

func (*ImageRequestHandler) Description added in v0.17.0

func (irh *ImageRequestHandler) Description() string

Description returns the object's -description text.

func (*ImageRequestHandler) IsEqual added in v0.17.0

func (irh *ImageRequestHandler) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*ImageRequestHandler) IsKind added in v0.17.0

func (irh *ImageRequestHandler) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*ImageRequestHandler) PerformRequests added in v0.17.0

func (irh *ImageRequestHandler) PerformRequests(requests []*Request) error

PerformRequests schedules Vision requests to perform.

func (*ImageRequestHandler) String added in v0.17.0

func (irh *ImageRequestHandler) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type ImageTranslationAlignmentObservation added in v0.17.0

type ImageTranslationAlignmentObservation struct {
	ImageAlignmentObservation
}

ImageTranslationAlignmentObservation is an idiomatic wrapper over the Objective-C class VNImageTranslationAlignmentObservation.

It embeds ImageAlignmentObservation, promoting that type's methods.

Affine transform information that an image-alignment request produces.

func ImageTranslationAlignmentObservationFromID added in v0.17.0

func ImageTranslationAlignmentObservationFromID(id objc.ID) *ImageTranslationAlignmentObservation

ImageTranslationAlignmentObservationFromID adopts an existing Objective-C object as a ImageTranslationAlignmentObservation (nil for 0), retaining it and registering a release finalizer.

func NewImageTranslationAlignmentObservation added in v0.17.0

func NewImageTranslationAlignmentObservation() *ImageTranslationAlignmentObservation

NewImageTranslationAlignmentObservation creates a new ImageTranslationAlignmentObservation.

func (*ImageTranslationAlignmentObservation) AlignmentTransform added in v0.17.0

AlignmentTransform returns the alignment transform.

type InstanceMaskObservation added in v0.17.0

type InstanceMaskObservation struct {
	Observation
}

InstanceMaskObservation is an idiomatic wrapper over the Objective-C class VNInstanceMaskObservation.

It embeds Observation, promoting that type's methods.

An observation that contains an instance mask that labels instances in the mask.

func InstanceMaskObservationFromID added in v0.17.0

func InstanceMaskObservationFromID(id objc.ID) *InstanceMaskObservation

InstanceMaskObservationFromID adopts an existing Objective-C object as a InstanceMaskObservation (nil for 0), retaining it and registering a release finalizer.

func NewInstanceMaskObservation added in v0.17.0

func NewInstanceMaskObservation() *InstanceMaskObservation

NewInstanceMaskObservation creates a new InstanceMaskObservation.

func (*InstanceMaskObservation) AllInstances added in v0.17.0

func (imo *InstanceMaskObservation) AllInstances() *foundation.IndexSet

AllInstances returns *The IndexSet that encompases all instances except the background

func (*InstanceMaskObservation) GenerateMaskForInstances added in v0.18.0

func (imo *InstanceMaskObservation) GenerateMaskForInstances(instances obj.Object) (result unsafe.Pointer, err error)

GenerateMaskForInstances creates a low-resolution mask from the instances you specify.

func (*InstanceMaskObservation) GenerateMaskedImageOfInstancesFromRequestHandlerCroppedToInstancesExtent added in v0.18.0

func (imo *InstanceMaskObservation) GenerateMaskedImageOfInstancesFromRequestHandlerCroppedToInstancesExtent(instances obj.Object, requestHandler *ImageRequestHandler, cropResult bool) (result unsafe.Pointer, err error)

GenerateMaskedImageOfInstancesFromRequestHandlerCroppedToInstancesExtent creates a high-resolution image where everything becomes transparent black, except for the instances you specify.

func (*InstanceMaskObservation) GenerateScaledMaskForImageForInstancesFromRequestHandler added in v0.18.0

func (imo *InstanceMaskObservation) GenerateScaledMaskForImageForInstancesFromRequestHandler(instances obj.Object, requestHandler *ImageRequestHandler) (result unsafe.Pointer, err error)

GenerateScaledMaskForImageForInstancesFromRequestHandler creates a high-resolution mask where everything becomes transparent black, except for the instances you specify.

func (*InstanceMaskObservation) InstanceMask added in v0.18.0

func (imo *InstanceMaskObservation) InstanceMask() unsafe.Pointer

InstanceMask returns 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 IpcInfoObjectType added in v0.17.0

type IpcInfoObjectType uint32
const (
	IpcInfoObjectTypeNone               IpcInfoObjectType = 0
	IpcInfoObjectTypeThreadControl      IpcInfoObjectType = 1
	IpcInfoObjectTypeTaskControl        IpcInfoObjectType = 2
	IpcInfoObjectTypeHost               IpcInfoObjectType = 3
	IpcInfoObjectTypeHostPriv           IpcInfoObjectType = 4
	IpcInfoObjectTypeProcessor          IpcInfoObjectType = 5
	IpcInfoObjectTypeProcessorSet       IpcInfoObjectType = 6
	IpcInfoObjectTypeProcessorSetName   IpcInfoObjectType = 7
	IpcInfoObjectTypeTimer              IpcInfoObjectType = 8
	IpcInfoObjectTypePortSubstOnce      IpcInfoObjectType = 9
	IpcInfoObjectTypeMig                IpcInfoObjectType = 10
	IpcInfoObjectTypeMemoryObject       IpcInfoObjectType = 11
	IpcInfoObjectTypeXmmPager           IpcInfoObjectType = 12
	IpcInfoObjectTypeXmmKernel          IpcInfoObjectType = 13
	IpcInfoObjectTypeXmmReply           IpcInfoObjectType = 14
	IpcInfoObjectTypeUndReply           IpcInfoObjectType = 15
	IpcInfoObjectTypeHostNotify         IpcInfoObjectType = 16
	IpcInfoObjectTypeHostSecurity       IpcInfoObjectType = 17
	IpcInfoObjectTypeLedger             IpcInfoObjectType = 18
	IpcInfoObjectTypeMainDevice         IpcInfoObjectType = 19
	IpcInfoObjectTypeTaskName           IpcInfoObjectType = 20
	IpcInfoObjectTypeSubsystem          IpcInfoObjectType = 21
	IpcInfoObjectTypeIODoneQueue        IpcInfoObjectType = 22
	IpcInfoObjectTypeSemaphore          IpcInfoObjectType = 23
	IpcInfoObjectTypeLockSet            IpcInfoObjectType = 24
	IpcInfoObjectTypeClock              IpcInfoObjectType = 25
	IpcInfoObjectTypeClockCtrl          IpcInfoObjectType = 26
	IpcInfoObjectTypeIokitIdent         IpcInfoObjectType = 27
	IpcInfoObjectTypeNamedEntry         IpcInfoObjectType = 28
	IpcInfoObjectTypeIokitConnect       IpcInfoObjectType = 29
	IpcInfoObjectTypeIokitObject        IpcInfoObjectType = 30
	IpcInfoObjectTypeUpl                IpcInfoObjectType = 31
	IpcInfoObjectTypeMemObjControl      IpcInfoObjectType = 32
	IpcInfoObjectTypeAuSessionport      IpcInfoObjectType = 33
	IpcInfoObjectTypeFileport           IpcInfoObjectType = 34
	IpcInfoObjectTypeLabelh             IpcInfoObjectType = 35
	IpcInfoObjectTypeTaskResume         IpcInfoObjectType = 36
	IpcInfoObjectTypeVoucher            IpcInfoObjectType = 37
	IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38
	IpcInfoObjectTypeWorkInterval       IpcInfoObjectType = 39
	IpcInfoObjectTypeUxHandler          IpcInfoObjectType = 40
	IpcInfoObjectTypeUextObject         IpcInfoObjectType = 41
	IpcInfoObjectTypeArcadeReg          IpcInfoObjectType = 42
	IpcInfoObjectTypeEventlink          IpcInfoObjectType = 43
	IpcInfoObjectTypeTaskInspect        IpcInfoObjectType = 44
	IpcInfoObjectTypeTaskRead           IpcInfoObjectType = 45
	IpcInfoObjectTypeThreadInspect      IpcInfoObjectType = 46
	IpcInfoObjectTypeThreadRead         IpcInfoObjectType = 47
	IpcInfoObjectTypeSuidCred           IpcInfoObjectType = 48
	IpcInfoObjectTypeHypervisor         IpcInfoObjectType = 49
	IpcInfoObjectTypeTaskIDToken        IpcInfoObjectType = 50
	IpcInfoObjectTypeTaskFatal          IpcInfoObjectType = 51
	IpcInfoObjectTypeKcdata             IpcInfoObjectType = 52
	IpcInfoObjectTypeExclavesResource   IpcInfoObjectType = 53
	IpcInfoObjectTypeThreadResume       IpcInfoObjectType = 54
	IpcInfoObjectTypeUnknown            IpcInfoObjectType = 4294967295
)

func (IpcInfoObjectType) String added in v0.17.0

func (e IpcInfoObjectType) String() string

String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.

type LaunchDataType added in v0.17.0

type LaunchDataType int32
const (
	LaunchDataTypeDictionary LaunchDataType = 1
	LaunchDataTypeArray      LaunchDataType = 2
	LaunchDataTypeFd         LaunchDataType = 3
	LaunchDataTypeInteger    LaunchDataType = 4
	LaunchDataTypeReal       LaunchDataType = 5
	LaunchDataTypeBool       LaunchDataType = 6
	LaunchDataTypeString     LaunchDataType = 7
	LaunchDataTypeOpaque     LaunchDataType = 8
	LaunchDataTypeErrno      LaunchDataType = 9
	LaunchDataTypeMachport   LaunchDataType = 10
)

func (LaunchDataType) String added in v0.17.0

func (e LaunchDataType) String() string

String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.

type MDLabelDomain

type MDLabelDomain int32

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

String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.

type MDQueryOptionFlags

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

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int32
const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlags added in v0.17.0

type MachVMRangeFlags uint64

Bitmask — values may be combined with |.

const (
	MachVMRangeFlagsNone MachVMRangeFlags = 0
)

func (MachVMRangeFlags) String added in v0.17.0

func (e MachVMRangeFlags) String() string

String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlavor added in v0.17.0

type MachVMRangeFlavor uint32
const (
	MachVMRangeFlavorInvalid MachVMRangeFlavor = 0
	MachVMRangeFlavorV1      MachVMRangeFlavor = 1
)

func (MachVMRangeFlavor) String added in v0.17.0

func (e MachVMRangeFlavor) String() string

String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeTag added in v0.17.0

type MachVMRangeTag uint16
const (
	MachVMRangeTagDefault MachVMRangeTag = 0
	MachVMRangeTagData    MachVMRangeTag = 1
	MachVMRangeTagFixed   MachVMRangeTag = 2
)

func (MachVMRangeTag) String added in v0.17.0

func (e MachVMRangeTag) String() string

String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.

type MpoFlags added in v0.17.0

type MpoFlags uint32

Bitmask — values may be combined with |.

const (
	MpoFlagsPort                        MpoFlags = 0
	MpoFlagsServicePort                 MpoFlags = 1024
	MpoFlagsConnectionPort              MpoFlags = 2048
	MpoFlagsReplyPort                   MpoFlags = 4096
	MpoFlagsWeakReplyPort               MpoFlags = 16384
	MpoFlagsNotificationPort            MpoFlags = 17408
	MpoFlagsExceptionPort               MpoFlags = 32768
	MpoFlagsConnectionPortWithPortArray MpoFlags = 65536
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type NXMouseButton

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

func (NXMouseButton) String

func (e NXMouseButton) String() string

String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type Observation added in v0.17.0

type Observation struct {
	objref.Handle
}

Observation is an idiomatic wrapper over the Objective-C class VNObservation.

Observation is an abstract base — you do not construct it directly. Construct one of ClassificationObservation, ContoursObservation, CoreMLFeatureValueObservation, DetectedObjectObservation, FeaturePrintObservation, HorizonObservation, ImageAestheticsScoresObservation, ImageAlignmentObservation, InstanceMaskObservation, PixelBufferObservation, RecognizedPoints3DObservation, RecognizedPointsObservation, TrajectoryObservation and pass it where a Observation is accepted.

The abstract superclass for analysis results.

func ObservationFromID added in v0.17.0

func ObservationFromID(id objc.ID) *Observation

ObservationFromID adopts an existing Objective-C object as a Observation (nil for 0), retaining it and registering a release finalizer.

func (*Observation) Confidence added in v0.17.0

func (o *Observation) Confidence() float32

Confidence returns 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 Confidence can always be returned as 1.0 if confidence is not supported or has no meaning

func (*Observation) Description added in v0.17.0

func (o *Observation) Description() string

Description returns the object's -description text.

func (*Observation) IsEqual added in v0.17.0

func (o *Observation) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Observation) IsKind added in v0.17.0

func (o *Observation) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Observation) String added in v0.17.0

func (o *Observation) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Observation) TimeRange added in v0.17.0

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

TimeRange returns the duration of the observation reporting when first detected and how long it is valid. 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 (*Observation) UUID added in v0.17.0

func (o *Observation) UUID() *foundation.UUID

UUID returns the unique identifier assigned to an observation.

type ObservationProvider added in v0.17.0

type ObservationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ObservationProvider is accepted wherever a VNObservation (or one of its subclasses) is expected.

type PMPageToPaperMappingType

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

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

String returns the PMPageToPaperMappingType constant's name, or its numeric form when the value is not a known constant.

type Perm added in v0.17.0

type Perm int32
const (
	PermReadData           Perm = 2
	PermListDirectory      Perm = 2
	PermWriteData          Perm = 4
	PermAddFile            Perm = 4
	PermExecute            Perm = 8
	PermSearch             Perm = 8
	PermDelete             Perm = 16
	PermAppendData         Perm = 32
	PermAddSubdirectory    Perm = 32
	PermDeleteChild        Perm = 64
	PermReadAttributes     Perm = 128
	PermWriteAttributes    Perm = 256
	PermReadExtattributes  Perm = 512
	PermWriteExtattributes Perm = 1024
	PermReadSecurity       Perm = 2048
	PermWriteSecurity      Perm = 4096
	PermChangeOwner        Perm = 8192
	PermSynchronize        Perm = 1048576
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type PixelBufferObservation added in v0.17.0

type PixelBufferObservation struct {
	Observation
}

PixelBufferObservation is an idiomatic wrapper over the Objective-C class VNPixelBufferObservation.

PixelBufferObservation is an abstract base — you do not construct it directly. Construct one of SaliencyImageObservation and pass it where a PixelBufferObservation is accepted.

An object that represents an image that an image-analysis request produces.

func PixelBufferObservationFromID added in v0.17.0

func PixelBufferObservationFromID(id objc.ID) *PixelBufferObservation

PixelBufferObservationFromID adopts an existing Objective-C object as a PixelBufferObservation (nil for 0), retaining it and registering a release finalizer.

func (*PixelBufferObservation) FeatureName added in v0.17.0

func (pbo *PixelBufferObservation) FeatureName() string

FeatureName returns 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 (*PixelBufferObservation) PixelBuffer added in v0.18.0

func (pbo *PixelBufferObservation) PixelBuffer() unsafe.Pointer

PixelBuffer returns the resulting image from a request like VNCoreMLRequest where the model produces an image as an output.

type PixelBufferObservationProvider added in v0.17.0

type PixelBufferObservationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

PixelBufferObservationProvider is accepted wherever a VNPixelBufferObservation (or one of its subclasses) is expected.

type Point added in v0.17.0

type Point struct {
	objref.Handle
}

Point is an idiomatic wrapper over the Objective-C class VNPoint.

Point is an abstract base — you do not construct it directly. Construct one of DetectedPoint and pass it where a Point is accepted.

An immutable object that represents a single 2D point in an image.

func NewPointWithLocation added in v0.17.0

func NewPointWithLocation(location corefoundation.CGPoint) *Point

NewPointWithLocation creates a point object from the specified Core Graphics point.

func NewPointWithXY added in v0.17.0

func NewPointWithXY(x float64, y float64) *Point

NewPointWithXY creates a point object with the specified coordinates.

func PointByApplyingVectorToPoint added in v0.17.0

func PointByApplyingVectorToPoint(vector *Vector, point *Point) *Point

PointByApplyingVectorToPoint creates a point object that’s shifted by the X and Y offsets of the specified vector.

func PointFromID added in v0.17.0

func PointFromID(id objc.ID) *Point

PointFromID adopts an existing Objective-C object as a Point (nil for 0), retaining it and registering a release finalizer.

func ZeroPoint added in v0.17.0

func ZeroPoint() *Point

ZeroPoint returns a VNPoint object that represents the location of (0.0, 0.0).

func (*Point) Description added in v0.17.0

func (p *Point) Description() string

Description returns the object's -description text.

func (*Point) DistanceToPoint added in v0.17.0

func (p *Point) DistanceToPoint(point *Point) float64

DistanceToPoint returns the distance to another point.

func (*Point) IsEqual added in v0.17.0

func (p *Point) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Point) IsKind added in v0.17.0

func (p *Point) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Point) Location added in v0.17.0

func (p *Point) Location() corefoundation.CGPoint

Location 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 (*Point) String added in v0.17.0

func (p *Point) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Point) X added in v0.17.0

func (p *Point) X() float64

X returns the X coordinate of the point with respect to the origin of the coordinate system the point is defined in.

func (*Point) Y added in v0.17.0

func (p *Point) Y() float64

Y returns the Y coordinate of the point with respect to the origin of the coordinate system the point is defined in.

type Point3D added in v0.17.0

type Point3D struct {
	objref.Handle
}

Point3D is an idiomatic wrapper over the Objective-C class VNPoint3D.

Point3D is an abstract base — you do not construct it directly. Construct one of RecognizedPoint3D and pass it where a Point3D is accepted.

An object that represents a 3D point in an image.

func NewPoint3DWithPosition added in v0.17.0

func NewPoint3DWithPosition(position unsafe.Pointer) *Point3D

NewPoint3DWithPosition creates a point object with the position you specify.

func Point3DFromID added in v0.17.0

func Point3DFromID(id objc.ID) *Point3D

Point3DFromID adopts an existing Objective-C object as a Point3D (nil for 0), retaining it and registering a release finalizer.

func (*Point3D) Description added in v0.17.0

func (pd *Point3D) Description() string

Description returns the object's -description text.

func (*Point3D) IsEqual added in v0.17.0

func (pd *Point3D) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Point3D) IsKind added in v0.17.0

func (pd *Point3D) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Point3D) Position added in v0.18.0

func (pd *Point3D) Position() unsafe.Pointer

Position returns the position.

func (*Point3D) String added in v0.17.0

func (pd *Point3D) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type Point3DProvider added in v0.17.0

type Point3DProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

Point3DProvider is accepted wherever a VNPoint3D (or one of its subclasses) is expected.

type PointProvider added in v0.17.0

type PointProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

PointProvider is accepted wherever a VNPoint (or one of its subclasses) is expected.

type PointsClassification added in v0.17.0

type PointsClassification int64

The set of classifications that describe how to interpret the points the region provides.

const (
	PointsClassificationDisconnected PointsClassification = 0
	PointsClassificationOpenPath     PointsClassification = 1
	PointsClassificationClosedPath   PointsClassification = 2
)

func (PointsClassification) String added in v0.17.0

func (e PointsClassification) String() string

String returns the PointsClassification constant's name, or its numeric form when the value is not a known constant.

type PtrauthKey added in v0.17.0

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

func (PtrauthKey) String added in v0.17.0

func (e PtrauthKey) String() string

String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type RecognizeAnimalsRequest added in v0.17.0

type RecognizeAnimalsRequest struct {
	ImageBasedRequest
}

RecognizeAnimalsRequest is an idiomatic wrapper over the Objective-C class VNRecognizeAnimalsRequest.

It embeds ImageBasedRequest, promoting that type's methods.

A request that recognizes animals in an image.

func NewRecognizeAnimalsRequest added in v0.17.0

func NewRecognizeAnimalsRequest() *RecognizeAnimalsRequest

NewRecognizeAnimalsRequest creates a new RecognizeAnimalsRequest.

func RecognizeAnimalsRequestFromID added in v0.17.0

func RecognizeAnimalsRequestFromID(id objc.ID) *RecognizeAnimalsRequest

RecognizeAnimalsRequestFromID adopts an existing Objective-C object as a RecognizeAnimalsRequest (nil for 0), retaining it and registering a release finalizer.

func (*RecognizeAnimalsRequest) SupportedIdentifiers added in v0.17.0

func (rar *RecognizeAnimalsRequest) SupportedIdentifiers() (result []obj.Object, err error)

SupportedIdentifiers returns the identifiers of the animals that the request detects.

SupportedIdentifiers returns the collection as a Go slice.

func (*RecognizeAnimalsRequest) WithPreferBackgroundProcessing added in v0.17.0

func (rar *RecognizeAnimalsRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *RecognizeAnimalsRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*RecognizeAnimalsRequest) WithRegionOfInterest added in v0.17.0

func (rar *RecognizeAnimalsRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *RecognizeAnimalsRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*RecognizeAnimalsRequest) WithRevision added in v0.17.0

func (rar *RecognizeAnimalsRequest) WithRevision(revision int) *RecognizeAnimalsRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*RecognizeAnimalsRequest) WithUsesCPUOnly added in v0.17.0

func (rar *RecognizeAnimalsRequest) WithUsesCPUOnly(usesCPUOnly bool) *RecognizeAnimalsRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type RecognizeTextRequest added in v0.17.0

type RecognizeTextRequest struct {
	ImageBasedRequest
}

RecognizeTextRequest is an idiomatic wrapper over the Objective-C class VNRecognizeTextRequest.

It embeds ImageBasedRequest, promoting that type's methods.

An image-analysis request that finds and recognizes text in an image.

func NewRecognizeTextRequest added in v0.17.0

func NewRecognizeTextRequest() *RecognizeTextRequest

NewRecognizeTextRequest creates a new RecognizeTextRequest.

func RecognizeTextRequestFromID added in v0.17.0

func RecognizeTextRequestFromID(id objc.ID) *RecognizeTextRequest

RecognizeTextRequestFromID adopts an existing Objective-C object as a RecognizeTextRequest (nil for 0), retaining it and registering a release finalizer.

func (*RecognizeTextRequest) AutomaticallyDetectsLanguage added in v0.17.0

func (rtr *RecognizeTextRequest) AutomaticallyDetectsLanguage() bool

AutomaticallyDetectsLanguage reports whether 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 false. Also note that this feature is only available since VNRecognizeTextRequestRevision3 and is a no-op before that.

func (*RecognizeTextRequest) CustomWords added in v0.17.0

func (rtr *RecognizeTextRequest) CustomWords() []string

CustomWords returns 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.

CustomWords returns the collection as a Go slice.

func (*RecognizeTextRequest) MinimumTextHeight added in v0.17.0

func (rtr *RecognizeTextRequest) MinimumTextHeight() float32

MinimumTextHeight returns the minimum text height.

func (*RecognizeTextRequest) RecognitionLanguages added in v0.17.0

func (rtr *RecognizeTextRequest) RecognitionLanguages() []string

RecognitionLanguages 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.

RecognitionLanguages returns the collection as a Go slice.

func (*RecognizeTextRequest) RecognitionLevel added in v0.17.0

func (rtr *RecognizeTextRequest) RecognitionLevel() RequestTextRecognitionLevel

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

func (*RecognizeTextRequest) SupportedRecognitionLanguages added in v0.17.0

func (rtr *RecognizeTextRequest) SupportedRecognitionLanguages() (result []string, err error)

SupportedRecognitionLanguages returns the identifiers of the languages that the request supports.

SupportedRecognitionLanguages returns the collection as a Go slice.

func (*RecognizeTextRequest) UsesLanguageCorrection added in v0.17.0

func (rtr *RecognizeTextRequest) UsesLanguageCorrection() bool

UsesLanguageCorrection reports 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.

func (*RecognizeTextRequest) WithAutomaticallyDetectsLanguage added in v0.17.0

func (rtr *RecognizeTextRequest) WithAutomaticallyDetectsLanguage(automaticallyDetectsLanguage bool) *RecognizeTextRequest

WithAutomaticallyDetectsLanguage sets a Boolean value that indicates whether to attempt detecting the language to use the appropriate model for recognition and language correction.

func (*RecognizeTextRequest) WithCustomWords added in v0.17.0

func (rtr *RecognizeTextRequest) WithCustomWords(items ...obj.Object) *RecognizeTextRequest

WithCustomWords sets an array of strings to supplement the recognized languages at the word-recognition stage.

func (*RecognizeTextRequest) WithMinimumTextHeight added in v0.17.0

func (rtr *RecognizeTextRequest) WithMinimumTextHeight(minimumTextHeight float32) *RecognizeTextRequest

WithMinimumTextHeight sets the minimum height, relative to the image height, of the text to recognize.

func (*RecognizeTextRequest) WithPreferBackgroundProcessing added in v0.17.0

func (rtr *RecognizeTextRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *RecognizeTextRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*RecognizeTextRequest) WithRecognitionLanguages added in v0.17.0

func (rtr *RecognizeTextRequest) WithRecognitionLanguages(items ...obj.Object) *RecognizeTextRequest

WithRecognitionLanguages sets an array of languages to detect, in priority order.

func (*RecognizeTextRequest) WithRecognitionLevel added in v0.17.0

func (rtr *RecognizeTextRequest) WithRecognitionLevel(recognitionLevel RequestTextRecognitionLevel) *RecognizeTextRequest

WithRecognitionLevel sets a value that determines whether the request prioritizes accuracy or speed in text recognition.

func (*RecognizeTextRequest) WithRegionOfInterest added in v0.17.0

func (rtr *RecognizeTextRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *RecognizeTextRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*RecognizeTextRequest) WithRevision added in v0.17.0

func (rtr *RecognizeTextRequest) WithRevision(revision int) *RecognizeTextRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*RecognizeTextRequest) WithUsesCPUOnly added in v0.17.0

func (rtr *RecognizeTextRequest) WithUsesCPUOnly(usesCPUOnly bool) *RecognizeTextRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

func (*RecognizeTextRequest) WithUsesLanguageCorrection added in v0.17.0

func (rtr *RecognizeTextRequest) WithUsesLanguageCorrection(usesLanguageCorrection bool) *RecognizeTextRequest

WithUsesLanguageCorrection sets a Boolean value that indicates whether the request applies language correction during the recognition process.

type RecognizedObjectObservation added in v0.17.0

type RecognizedObjectObservation struct {
	DetectedObjectObservation
}

RecognizedObjectObservation is an idiomatic wrapper over the Objective-C class VNRecognizedObjectObservation.

It embeds DetectedObjectObservation, promoting that type's methods.

A detected object observation with an array of classification labels that classify the recognized object.

func NewRecognizedObjectObservation added in v0.17.0

func NewRecognizedObjectObservation() *RecognizedObjectObservation

NewRecognizedObjectObservation creates a new RecognizedObjectObservation.

func RecognizedObjectObservationFromID added in v0.17.0

func RecognizedObjectObservationFromID(id objc.ID) *RecognizedObjectObservation

RecognizedObjectObservationFromID adopts an existing Objective-C object as a RecognizedObjectObservation (nil for 0), retaining it and registering a release finalizer.

func (*RecognizedObjectObservation) Labels added in v0.17.0

Labels returns the labels.

Labels returns the collection as a Go slice.

type RecognizedPoint added in v0.17.0

type RecognizedPoint struct {
	DetectedPoint
}

RecognizedPoint is an idiomatic wrapper over the Objective-C class VNRecognizedPoint.

It embeds DetectedPoint, promoting that type's methods.

An object that represents a normalized point in an image, along with an identifier label and a confidence value.

func NewRecognizedPoint added in v0.17.0

func NewRecognizedPoint() *RecognizedPoint

NewRecognizedPoint creates a new RecognizedPoint.

func RecognizedPointFromID added in v0.17.0

func RecognizedPointFromID(id objc.ID) *RecognizedPoint

RecognizedPointFromID adopts an existing Objective-C object as a RecognizedPoint (nil for 0), retaining it and registering a release finalizer.

func (*RecognizedPoint) Identifier added in v0.17.0

func (rp *RecognizedPoint) Identifier() *foundation.String

Identifier returns the identifier.

type RecognizedPoint3D added in v0.17.0

type RecognizedPoint3D struct {
	Point3D
}

RecognizedPoint3D is an idiomatic wrapper over the Objective-C class VNRecognizedPoint3D.

RecognizedPoint3D is an abstract base — you do not construct it directly. Construct one of HumanBodyRecognizedPoint3D and pass it where a RecognizedPoint3D is accepted.

A 3D point that includes an identifier to the point.

func RecognizedPoint3DFromID added in v0.17.0

func RecognizedPoint3DFromID(id objc.ID) *RecognizedPoint3D

RecognizedPoint3DFromID adopts an existing Objective-C object as a RecognizedPoint3D (nil for 0), retaining it and registering a release finalizer.

func (*RecognizedPoint3D) Identifier added in v0.17.0

func (rpd *RecognizedPoint3D) Identifier() *foundation.String

Identifier returns the identifier.

type RecognizedPoint3DProvider added in v0.17.0

type RecognizedPoint3DProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

RecognizedPoint3DProvider is accepted wherever a VNRecognizedPoint3D (or one of its subclasses) is expected.

type RecognizedPoints3DObservation added in v0.17.0

type RecognizedPoints3DObservation struct {
	Observation
}

RecognizedPoints3DObservation is an idiomatic wrapper over the Objective-C class VNRecognizedPoints3DObservation.

RecognizedPoints3DObservation is an abstract base — you do not construct it directly. Construct one of HumanBodyPose3DObservation and pass it where a RecognizedPoints3DObservation is accepted.

An observation that provides the 3D points for a request.

func RecognizedPoints3DObservationFromID added in v0.17.0

func RecognizedPoints3DObservationFromID(id objc.ID) *RecognizedPoints3DObservation

RecognizedPoints3DObservationFromID adopts an existing Objective-C object as a RecognizedPoints3DObservation (nil for 0), retaining it and registering a release finalizer.

func (*RecognizedPoints3DObservation) AvailableGroupKeys added in v0.17.0

func (rpdo *RecognizedPoints3DObservation) AvailableGroupKeys() []obj.Object

AvailableGroupKeys returns the availableGroupKeys property returns all of the point group labels usable with the observation.

AvailableGroupKeys returns the collection as a Go slice.

func (*RecognizedPoints3DObservation) AvailableKeys added in v0.17.0

func (rpdo *RecognizedPoints3DObservation) AvailableKeys() []obj.Object

AvailableKeys returns all of the point group keys available in the observation.

AvailableKeys returns the collection as a Go slice.

func (*RecognizedPoints3DObservation) RecognizedPointForKey added in v0.17.0

func (rpdo *RecognizedPoints3DObservation) RecognizedPointForKey(pointKey obj.Object) (result *RecognizedPoint3D, err error)

RecognizedPointForKey returns a point for a key you specify.

func (*RecognizedPoints3DObservation) RecognizedPointsForGroupKey added in v0.17.0

func (rpdo *RecognizedPoints3DObservation) RecognizedPointsForGroupKey(groupKey obj.Object) (result obj.Object, err error)

RecognizedPointsForGroupKey returns a point for a group key you specify.

type RecognizedPoints3DObservationProvider added in v0.17.0

type RecognizedPoints3DObservationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

RecognizedPoints3DObservationProvider is accepted wherever a VNRecognizedPoints3DObservation (or one of its subclasses) is expected.

type RecognizedPointsObservation added in v0.17.0

type RecognizedPointsObservation struct {
	Observation
}

RecognizedPointsObservation is an idiomatic wrapper over the Objective-C class VNRecognizedPointsObservation.

RecognizedPointsObservation is an abstract base — you do not construct it directly. Construct one of AnimalBodyPoseObservation, HumanBodyPoseObservation, HumanHandPoseObservation and pass it where a RecognizedPointsObservation is accepted.

An observation that provides the points the analysis recognized.

func RecognizedPointsObservationFromID added in v0.17.0

func RecognizedPointsObservationFromID(id objc.ID) *RecognizedPointsObservation

RecognizedPointsObservationFromID adopts an existing Objective-C object as a RecognizedPointsObservation (nil for 0), retaining it and registering a release finalizer.

func (*RecognizedPointsObservation) AvailableGroupKeys added in v0.17.0

func (rpo *RecognizedPointsObservation) AvailableGroupKeys() []obj.Object

AvailableGroupKeys returns the availableGroupKeys property returns all of the point group labels usable with the observation.

AvailableGroupKeys returns the collection as a Go slice.

func (*RecognizedPointsObservation) AvailableKeys added in v0.17.0

func (rpo *RecognizedPointsObservation) AvailableKeys() []obj.Object

AvailableKeys returns all of the point group keys available in the observation.

AvailableKeys returns the collection as a Go slice.

func (*RecognizedPointsObservation) KeypointsMultiArray added in v0.17.0

func (rpo *RecognizedPointsObservation) KeypointsMultiArray() (result obj.Object, err error)

KeypointsMultiArray retrieves the grouping of normalized point coordinates and confidence scores in a format compatible with Core ML.

func (*RecognizedPointsObservation) RecognizedPointForKey added in v0.17.0

func (rpo *RecognizedPointsObservation) RecognizedPointForKey(pointKey obj.Object) (result *RecognizedPoint, err error)

RecognizedPointForKey retrieves a recognized point for a key.

func (*RecognizedPointsObservation) RecognizedPointsForGroupKey added in v0.17.0

func (rpo *RecognizedPointsObservation) RecognizedPointsForGroupKey(groupKey obj.Object) (result obj.Object, err error)

RecognizedPointsForGroupKey retrieves the recognized points for a key.

type RecognizedPointsObservationProvider added in v0.17.0

type RecognizedPointsObservationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

RecognizedPointsObservationProvider is accepted wherever a VNRecognizedPointsObservation (or one of its subclasses) is expected.

type RecognizedText added in v0.17.0

type RecognizedText struct {
	objref.Handle
}

RecognizedText is an idiomatic wrapper over the Objective-C class VNRecognizedText.

Text recognized in an image through a text recognition request.

func NewRecognizedText added in v0.17.0

func NewRecognizedText() *RecognizedText

NewRecognizedText creates a new RecognizedText.

func RecognizedTextFromID added in v0.17.0

func RecognizedTextFromID(id objc.ID) *RecognizedText

RecognizedTextFromID adopts an existing Objective-C object as a RecognizedText (nil for 0), retaining it and registering a release finalizer.

func (*RecognizedText) BoundingBoxForRange added in v0.17.0

func (rt_ *RecognizedText) BoundingBoxForRange(range_ foundation.NSRange) (result *RectangleObservation, err error)

BoundingBoxForRange calculates the bounding box around the characters in the range of a string.

func (*RecognizedText) Confidence added in v0.17.0

func (rt_ *RecognizedText) Confidence() float32

Confidence returns the level of confidence normalized to [0.0, 1.0] where 1.0 is most confident

func (*RecognizedText) Description added in v0.17.0

func (rt_ *RecognizedText) Description() string

Description returns the object's -description text.

func (*RecognizedText) IsEqual added in v0.17.0

func (rt_ *RecognizedText) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*RecognizedText) IsKind added in v0.17.0

func (rt_ *RecognizedText) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*RecognizedText) String added in v0.17.0

func (rt_ *RecognizedText) String() string

String returns field that contains recognized text. This is the top candidate of the recognized text.

type RecognizedTextObservation added in v0.17.0

type RecognizedTextObservation struct {
	RectangleObservation
}

RecognizedTextObservation is an idiomatic wrapper over the Objective-C class VNRecognizedTextObservation.

It embeds RectangleObservation, promoting that type's methods.

A request that detects and recognizes regions of text in an image.

func NewRecognizedTextObservation added in v0.17.0

func NewRecognizedTextObservation() *RecognizedTextObservation

NewRecognizedTextObservation creates a new RecognizedTextObservation.

func RecognizedTextObservationFromID added in v0.17.0

func RecognizedTextObservationFromID(id objc.ID) *RecognizedTextObservation

RecognizedTextObservationFromID adopts an existing Objective-C object as a RecognizedTextObservation (nil for 0), retaining it and registering a release finalizer.

func (*RecognizedTextObservation) TopCandidates added in v0.17.0

func (rto *RecognizedTextObservation) TopCandidates(maxCandidateCount int) []*RecognizedText

TopCandidates requests the n top candidates for a recognized text string.

type RectangleObservation added in v0.17.0

type RectangleObservation struct {
	DetectedObjectObservation
}

RectangleObservation is an idiomatic wrapper over the Objective-C class VNRectangleObservation.

RectangleObservation is an abstract base — you do not construct it directly. Construct one of BarcodeObservation, RecognizedTextObservation, TextObservation and pass it where a RectangleObservation is accepted.

An object that represents the four vertices of a detected rectangle.

func RectangleObservationFromID added in v0.17.0

func RectangleObservationFromID(id objc.ID) *RectangleObservation

RectangleObservationFromID adopts an existing Objective-C object as a RectangleObservation (nil for 0), retaining it and registering a release finalizer.

func RectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight added in v0.17.0

func RectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision int, topLeft corefoundation.CGPoint, bottomLeft corefoundation.CGPoint, bottomRight corefoundation.CGPoint, topRight corefoundation.CGPoint) *RectangleObservation

RectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight creates a rectangle observation from its corner points.

func RectangleObservationWithRequestRevisionTopLeftTopRightBottomRightBottomLeft added in v0.17.0

func RectangleObservationWithRequestRevisionTopLeftTopRightBottomRightBottomLeft(requestRevision int, topLeft corefoundation.CGPoint, topRight corefoundation.CGPoint, bottomRight corefoundation.CGPoint, bottomLeft corefoundation.CGPoint) *RectangleObservation

RectangleObservationWithRequestRevisionTopLeftTopRightBottomRightBottomLeft creates a rectangle observation from its corner points.

func (*RectangleObservation) BottomLeft added in v0.17.0

func (ro *RectangleObservation) BottomLeft() corefoundation.CGPoint

BottomLeft returns the bottom left.

func (*RectangleObservation) BottomRight added in v0.17.0

func (ro *RectangleObservation) BottomRight() corefoundation.CGPoint

BottomRight returns the bottom right.

func (*RectangleObservation) TopLeft added in v0.17.0

TopLeft returns the top left.

func (*RectangleObservation) TopRight added in v0.17.0

TopRight returns the top right.

type RectangleObservationProvider added in v0.17.0

type RectangleObservationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

RectangleObservationProvider is accepted wherever a VNRectangleObservation (or one of its subclasses) is expected.

type Request added in v0.17.0

type Request struct {
	objref.Handle
}

Request is an idiomatic wrapper over the Objective-C class VNRequest.

Request is an abstract base — you do not construct it directly. Construct one of ImageBasedRequest and pass it where a Request is accepted.

The abstract superclass for analysis requests.

func NewRequestWithCompletionHandler added in v0.18.0

func NewRequestWithCompletionHandler(completionHandler func(obj.Object, unsafe.Pointer)) *Request

NewRequestWithCompletionHandler creates a new Vision request with an optional completion handler.

func RequestFromID added in v0.17.0

func RequestFromID(id objc.ID) *Request

RequestFromID adopts an existing Objective-C object as a Request (nil for 0), retaining it and registering a release finalizer.

func (*Request) Cancel added in v0.17.0

func (r *Request) Cancel()

Cancel cancels the request before it can finish executing.

func (*Request) Description added in v0.17.0

func (r *Request) Description() string

Description returns the object's -description text.

func (*Request) IsEqual added in v0.17.0

func (r *Request) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Request) IsKind added in v0.17.0

func (r *Request) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Request) PreferBackgroundProcessing added in v0.17.0

func (r *Request) PreferBackgroundProcessing() bool

PreferBackgroundProcessing reports whether 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 (*Request) Results added in v0.17.0

func (r *Request) Results() []*Observation

Results returns the collection of VNObservations generated by the processing of the request. 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.

Results returns the collection as a Go slice.

func (*Request) Revision added in v0.17.0

func (r *Request) Revision() int

Revision returns the specific algorithm or implementation revision that is to be used to perform the request.

func (*Request) String added in v0.17.0

func (r *Request) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Request) SupportedComputeStageDevices added in v0.17.0

func (r *Request) SupportedComputeStageDevices() (result obj.Object, err error)

SupportedComputeStageDevices the collection of compute devices per stage that a request supports.

func (*Request) UsesCPUOnly added in v0.17.0

func (r *Request) UsesCPUOnly() bool

UsesCPUOnly reports whether this property, if set to true, signifies that the request should be performed exclusively on the CPU and not on the GPU. The default value is false, which signifies that the request is free to leverage the GPU to accelerate any work the request may require.

func (*Request) WithPreferBackgroundProcessing added in v0.17.0

func (r *Request) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *Request

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*Request) WithRevision added in v0.17.0

func (r *Request) WithRevision(revision int) *Request

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*Request) WithUsesCPUOnly added in v0.17.0

func (r *Request) WithUsesCPUOnly(usesCPUOnly bool) *Request

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type RequestFaceLandmarksConstellation added in v0.17.0

type RequestFaceLandmarksConstellation uint64

An enumeration of face landmarks in a constellation object.

const (
	// An undefined constellation.
	RequestFaceLandmarksConstellationNotDefined RequestFaceLandmarksConstellation = 0
	// A constellation with 65 points.
	RequestFaceLandmarksConstellation65Points RequestFaceLandmarksConstellation = 1
	// A constellation with 76 points.
	RequestFaceLandmarksConstellation76Points RequestFaceLandmarksConstellation = 2
)

func (RequestFaceLandmarksConstellation) String added in v0.17.0

String returns the RequestFaceLandmarksConstellation constant's name, or its numeric form when the value is not a known constant.

type RequestProgressProviding added in v0.17.0

type RequestProgressProviding interface {
	ProgressHandler() obj.Object
	SetProgressHandler(progressHandler func(obj.Object, float64, unsafe.Pointer))
	Indeterminate() bool
}

RequestProgressProviding is the Go form of the Objective-C protocol VNRequestProgressProviding.

type RequestProvider added in v0.17.0

type RequestProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

RequestProvider is accepted wherever a VNRequest (or one of its subclasses) is expected.

type RequestRevisionProviding added in v0.17.0

type RequestRevisionProviding interface {
	RequestRevision() int
}

RequestRevisionProviding is the Go form of the Objective-C protocol VNRequestRevisionProviding.

type RequestTextRecognitionLevel added in v0.17.0

type RequestTextRecognitionLevel int64

Constants that identify the performance and accuracy of the text recognition.

const (
	// Accurate text recognition takes more time to produce a more comprehensive result.
	RequestTextRecognitionLevelAccurate RequestTextRecognitionLevel = 0
	// Fast text recognition returns results more quickly at the expense of accuracy.
	RequestTextRecognitionLevelFast RequestTextRecognitionLevel = 1
)

func (RequestTextRecognitionLevel) String added in v0.17.0

String returns the RequestTextRecognitionLevel constant's name, or its numeric form when the value is not a known constant.

type RequestTrackingLevel added in v0.17.0

type RequestTrackingLevel uint64

An enumeration of tracking priorities.

const (
	// Tracking level that favors location accuracy over speed.
	RequestTrackingLevelAccurate RequestTrackingLevel = 0
	// Tracking level that favors speed over location accuracy.
	RequestTrackingLevelFast RequestTrackingLevel = 1
)

func (RequestTrackingLevel) String added in v0.17.0

func (e RequestTrackingLevel) String() string

String returns the RequestTrackingLevel constant's name, or its numeric form when the value is not a known constant.

type SaliencyImageObservation added in v0.17.0

type SaliencyImageObservation struct {
	PixelBufferObservation
}

SaliencyImageObservation is an idiomatic wrapper over the Objective-C class VNSaliencyImageObservation.

It embeds PixelBufferObservation, promoting that type's methods.

An observation that contains a grayscale heat map of important areas across an image.

func NewSaliencyImageObservation added in v0.17.0

func NewSaliencyImageObservation() *SaliencyImageObservation

NewSaliencyImageObservation creates a new SaliencyImageObservation.

func SaliencyImageObservationFromID added in v0.17.0

func SaliencyImageObservationFromID(id objc.ID) *SaliencyImageObservation

SaliencyImageObservationFromID adopts an existing Objective-C object as a SaliencyImageObservation (nil for 0), retaining it and registering a release finalizer.

func (*SaliencyImageObservation) SalientObjects added in v0.17.0

func (sio *SaliencyImageObservation) SalientObjects() []*RectangleObservation

SalientObjects returns the salient objects.

SalientObjects returns the collection as a Go slice.

type SequenceRequestHandler added in v0.17.0

type SequenceRequestHandler struct {
	objref.Handle
}

SequenceRequestHandler is an idiomatic wrapper over the Objective-C class VNSequenceRequestHandler.

An object that processes image-analysis requests for each frame in a sequence.

func NewSequenceRequestHandler added in v0.17.0

func NewSequenceRequestHandler() *SequenceRequestHandler

NewSequenceRequestHandler creates a new SequenceRequestHandler.

func SequenceRequestHandlerFromID added in v0.17.0

func SequenceRequestHandlerFromID(id objc.ID) *SequenceRequestHandler

SequenceRequestHandlerFromID adopts an existing Objective-C object as a SequenceRequestHandler (nil for 0), retaining it and registering a release finalizer.

func (*SequenceRequestHandler) Description added in v0.17.0

func (srh *SequenceRequestHandler) Description() string

Description returns the object's -description text.

func (*SequenceRequestHandler) IsEqual added in v0.17.0

func (srh *SequenceRequestHandler) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*SequenceRequestHandler) IsKind added in v0.17.0

func (srh *SequenceRequestHandler) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*SequenceRequestHandler) PerformRequestsOnCGImage added in v0.17.0

func (srh *SequenceRequestHandler) PerformRequestsOnCGImage(requests []*Request, image coregraphics.CGImageRef) error

PerformRequestsOnCGImage schedules Vision requests to be performed on a Core Graphics image.

func (*SequenceRequestHandler) PerformRequestsOnCIImage added in v0.17.0

func (srh *SequenceRequestHandler) PerformRequestsOnCIImage(requests []*Request, image obj.Object) error

PerformRequestsOnCIImage schedules one or more Vision requests to be performed on Core Image image data.

func (*SequenceRequestHandler) PerformRequestsOnCMSampleBuffer added in v0.17.0

func (srh *SequenceRequestHandler) PerformRequestsOnCMSampleBuffer(requests []*Request, sampleBuffer obj.Object) error

PerformRequestsOnCMSampleBuffer performs one or more requests on an image contained within a sample buffer.

func (*SequenceRequestHandler) PerformRequestsOnCVPixelBuffer added in v0.17.0

func (srh *SequenceRequestHandler) PerformRequestsOnCVPixelBuffer(requests []*Request, pixelBuffer unsafe.Pointer) error

PerformRequestsOnCVPixelBuffer schedules one or more Vision requests to be performed on a Core Video pixel buffer.

func (*SequenceRequestHandler) PerformRequestsOnImageData added in v0.17.0

func (srh *SequenceRequestHandler) PerformRequestsOnImageData(requests []*Request, imageData []byte) error

PerformRequestsOnImageData schedules one or more Vision requests to be performed on raw image data.

func (*SequenceRequestHandler) PerformRequestsOnImageURL added in v0.17.0

func (srh *SequenceRequestHandler) PerformRequestsOnImageURL(requests []*Request, imageURL string) error

PerformRequestsOnImageURL schedules one or more Vision requests to be performed on an image.

func (*SequenceRequestHandler) String added in v0.17.0

func (srh *SequenceRequestHandler) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type StatefulRequest added in v0.17.0

type StatefulRequest struct {
	ImageBasedRequest
}

StatefulRequest is an idiomatic wrapper over the Objective-C class VNStatefulRequest.

StatefulRequest is an abstract base — you do not construct it directly. Construct one of DetectHumanBodyPose3DRequest, DetectTrajectoriesRequest, GeneratePersonSegmentationRequest, TrackHomographicImageRegistrationRequest, TrackOpticalFlowRequest, TrackTranslationalImageRegistrationRequest and pass it where a StatefulRequest is accepted.

An abstract request type that builds evidence of a condition over time.

func NewStatefulRequestWithFrameAnalysisSpacingCompletionHandler added in v0.18.0

func NewStatefulRequestWithFrameAnalysisSpacingCompletionHandler(frameAnalysisSpacing coremedia.CMTime, completionHandler func(obj.Object, unsafe.Pointer)) *StatefulRequest

NewStatefulRequestWithFrameAnalysisSpacingCompletionHandler initializes a video-based request.

func StatefulRequestFromID added in v0.17.0

func StatefulRequestFromID(id objc.ID) *StatefulRequest

StatefulRequestFromID adopts an existing Objective-C object as a StatefulRequest (nil for 0), retaining it and registering a release finalizer.

func (*StatefulRequest) FrameAnalysisSpacing added in v0.17.0

func (sr *StatefulRequest) FrameAnalysisSpacing() coremedia.CMTime

FrameAnalysisSpacing returns 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.

func (*StatefulRequest) MinimumLatencyFrameCount added in v0.17.0

func (sr *StatefulRequest) MinimumLatencyFrameCount() int

MinimumLatencyFrameCount returns 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. 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.

func (*StatefulRequest) WithPreferBackgroundProcessing added in v0.17.0

func (sr *StatefulRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *StatefulRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*StatefulRequest) WithRegionOfInterest added in v0.17.0

func (sr *StatefulRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *StatefulRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*StatefulRequest) WithRevision added in v0.17.0

func (sr *StatefulRequest) WithRevision(revision int) *StatefulRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*StatefulRequest) WithUsesCPUOnly added in v0.17.0

func (sr *StatefulRequest) WithUsesCPUOnly(usesCPUOnly bool) *StatefulRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type StatefulRequestProvider added in v0.17.0

type StatefulRequestProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

StatefulRequestProvider is accepted wherever a VNStatefulRequest (or one of its subclasses) is expected.

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type TargetedImageRequest added in v0.17.0

type TargetedImageRequest struct {
	ImageBasedRequest
}

TargetedImageRequest is an idiomatic wrapper over the Objective-C class VNTargetedImageRequest.

TargetedImageRequest is an abstract base — you do not construct it directly. Construct one of GenerateOpticalFlowRequest, ImageRegistrationRequest and pass it where a TargetedImageRequest is accepted.

The abstract superclass for image analysis requests that operate on both the processed image and a secondary image.

func NewTargetedImageRequestWithTargetedCGImageOptions added in v0.17.0

func NewTargetedImageRequestWithTargetedCGImageOptions(cgImage coregraphics.CGImageRef, options obj.Object) *TargetedImageRequest

NewTargetedImageRequestWithTargetedCGImageOptions creates a new request targeting a Core Graphics image.

func NewTargetedImageRequestWithTargetedCGImageOptionsCompletionHandler added in v0.18.0

func NewTargetedImageRequestWithTargetedCGImageOptionsCompletionHandler(cgImage coregraphics.CGImageRef, options obj.Object, completionHandler func(obj.Object, unsafe.Pointer)) *TargetedImageRequest

NewTargetedImageRequestWithTargetedCGImageOptionsCompletionHandler creates a new request targeting a Core Graphics image, executing the completion handler when done.

func NewTargetedImageRequestWithTargetedCIImageOptions added in v0.17.0

func NewTargetedImageRequestWithTargetedCIImageOptions(ciImage obj.Object, options obj.Object) *TargetedImageRequest

NewTargetedImageRequestWithTargetedCIImageOptions creates a new request targeting a Core Image image.

func NewTargetedImageRequestWithTargetedCIImageOptionsCompletionHandler added in v0.18.0

func NewTargetedImageRequestWithTargetedCIImageOptionsCompletionHandler(ciImage obj.Object, options obj.Object, completionHandler func(obj.Object, unsafe.Pointer)) *TargetedImageRequest

NewTargetedImageRequestWithTargetedCIImageOptionsCompletionHandler creates a new request targeting a Core Image image.

func NewTargetedImageRequestWithTargetedCMSampleBufferOptions added in v0.17.0

func NewTargetedImageRequestWithTargetedCMSampleBufferOptions(sampleBuffer obj.Object, options obj.Object) *TargetedImageRequest

NewTargetedImageRequestWithTargetedCMSampleBufferOptions creates a new request that targets an image in a sample buffer.

func NewTargetedImageRequestWithTargetedCMSampleBufferOptionsCompletionHandler added in v0.18.0

func NewTargetedImageRequestWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer obj.Object, options obj.Object, completionHandler func(obj.Object, unsafe.Pointer)) *TargetedImageRequest

NewTargetedImageRequestWithTargetedCMSampleBufferOptionsCompletionHandler creates a new request with a completion handler that targets an image in a sample buffer.

func NewTargetedImageRequestWithTargetedCVPixelBufferOptions added in v0.17.0

func NewTargetedImageRequestWithTargetedCVPixelBufferOptions(pixelBuffer unsafe.Pointer, options obj.Object) *TargetedImageRequest

NewTargetedImageRequestWithTargetedCVPixelBufferOptions creates a new request targeting an image in a pixel buffer.

func NewTargetedImageRequestWithTargetedCVPixelBufferOptionsCompletionHandler added in v0.18.0

func NewTargetedImageRequestWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer unsafe.Pointer, options obj.Object, completionHandler func(obj.Object, unsafe.Pointer)) *TargetedImageRequest

NewTargetedImageRequestWithTargetedCVPixelBufferOptionsCompletionHandler creates a new request targeting an image in a pixel buffer.

func NewTargetedImageRequestWithTargetedImageDataOptions added in v0.17.0

func NewTargetedImageRequestWithTargetedImageDataOptions(imageData []byte, options obj.Object) *TargetedImageRequest

NewTargetedImageRequestWithTargetedImageDataOptions creates a new request targeting an image as raw data.

func NewTargetedImageRequestWithTargetedImageDataOptionsCompletionHandler added in v0.18.0

func NewTargetedImageRequestWithTargetedImageDataOptionsCompletionHandler(imageData []byte, options obj.Object, completionHandler func(obj.Object, unsafe.Pointer)) *TargetedImageRequest

NewTargetedImageRequestWithTargetedImageDataOptionsCompletionHandler creates a new request targeting an image as raw data, executing the completion handler when done.

func NewTargetedImageRequestWithTargetedImageURLOptions added in v0.17.0

func NewTargetedImageRequestWithTargetedImageURLOptions(imageURL string, options obj.Object) *TargetedImageRequest

NewTargetedImageRequestWithTargetedImageURLOptions creates a new request targeting an image at the specified URL.

func NewTargetedImageRequestWithTargetedImageURLOptionsCompletionHandler added in v0.18.0

func NewTargetedImageRequestWithTargetedImageURLOptionsCompletionHandler(imageURL string, options obj.Object, completionHandler func(obj.Object, unsafe.Pointer)) *TargetedImageRequest

NewTargetedImageRequestWithTargetedImageURLOptionsCompletionHandler creates a new request targeting an image at the specified URL, executing the completion handler when done.

func TargetedImageRequestFromID added in v0.17.0

func TargetedImageRequestFromID(id objc.ID) *TargetedImageRequest

TargetedImageRequestFromID adopts an existing Objective-C object as a TargetedImageRequest (nil for 0), retaining it and registering a release finalizer.

func (*TargetedImageRequest) WithPreferBackgroundProcessing added in v0.17.0

func (tir *TargetedImageRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *TargetedImageRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*TargetedImageRequest) WithRegionOfInterest added in v0.17.0

func (tir *TargetedImageRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *TargetedImageRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*TargetedImageRequest) WithRevision added in v0.17.0

func (tir *TargetedImageRequest) WithRevision(revision int) *TargetedImageRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*TargetedImageRequest) WithUsesCPUOnly added in v0.17.0

func (tir *TargetedImageRequest) WithUsesCPUOnly(usesCPUOnly bool) *TargetedImageRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type TargetedImageRequestProvider added in v0.17.0

type TargetedImageRequestProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

TargetedImageRequestProvider is accepted wherever a VNTargetedImageRequest (or one of its subclasses) is expected.

type TextObservation added in v0.17.0

type TextObservation struct {
	RectangleObservation
}

TextObservation is an idiomatic wrapper over the Objective-C class VNTextObservation.

It embeds RectangleObservation, promoting that type's methods.

Information about regions of text that an image-analysis request detects.

func NewTextObservation added in v0.17.0

func NewTextObservation() *TextObservation

NewTextObservation creates a new TextObservation.

func TextObservationFromID added in v0.17.0

func TextObservationFromID(id objc.ID) *TextObservation

TextObservationFromID adopts an existing Objective-C object as a TextObservation (nil for 0), retaining it and registering a release finalizer.

func (*TextObservation) CharacterBoxes added in v0.17.0

func (to *TextObservation) CharacterBoxes() []*RectangleObservation

CharacterBoxes returns the character boxes.

CharacterBoxes returns the collection as a Go slice.

type TrackHomographicImageRegistrationRequest added in v0.17.0

type TrackHomographicImageRegistrationRequest struct {
	StatefulRequest
}

TrackHomographicImageRegistrationRequest is an idiomatic wrapper over the Objective-C class VNTrackHomographicImageRegistrationRequest.

It embeds StatefulRequest, promoting that type's methods.

An image-analysis request, as a stateful request you track over time, that determines the perspective warp matrix necessary to align the content of two images.

func NewTrackHomographicImageRegistrationRequest added in v0.17.0

func NewTrackHomographicImageRegistrationRequest() *TrackHomographicImageRegistrationRequest

NewTrackHomographicImageRegistrationRequest creates a new TrackHomographicImageRegistrationRequest.

func NewTrackHomographicImageRegistrationRequestWithCompletionHandler added in v0.18.0

func NewTrackHomographicImageRegistrationRequestWithCompletionHandler(completionHandler func(obj.Object, unsafe.Pointer)) *TrackHomographicImageRegistrationRequest

NewTrackHomographicImageRegistrationRequestWithCompletionHandler creates a new request that tracks the homographic transformation of two images, with a system callback on completion.

func TrackHomographicImageRegistrationRequestFromID added in v0.17.0

func TrackHomographicImageRegistrationRequestFromID(id objc.ID) *TrackHomographicImageRegistrationRequest

TrackHomographicImageRegistrationRequestFromID adopts an existing Objective-C object as a TrackHomographicImageRegistrationRequest (nil for 0), retaining it and registering a release finalizer.

func (*TrackHomographicImageRegistrationRequest) WithPreferBackgroundProcessing added in v0.17.0

func (thirr *TrackHomographicImageRegistrationRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *TrackHomographicImageRegistrationRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*TrackHomographicImageRegistrationRequest) WithRegionOfInterest added in v0.17.0

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*TrackHomographicImageRegistrationRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*TrackHomographicImageRegistrationRequest) WithUsesCPUOnly added in v0.17.0

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type TrackObjectRequest added in v0.17.0

type TrackObjectRequest struct {
	TrackingRequest
}

TrackObjectRequest is an idiomatic wrapper over the Objective-C class VNTrackObjectRequest.

It embeds TrackingRequest, promoting that type's methods.

An image-analysis request that tracks the movement of a previously identified object across multiple images or video frames.

func NewTrackObjectRequestWithDetectedObjectObservation added in v0.17.0

func NewTrackObjectRequestWithDetectedObjectObservation(observation *DetectedObjectObservation) *TrackObjectRequest

NewTrackObjectRequestWithDetectedObjectObservation creates a new object tracking request with a detected object observation.

func NewTrackObjectRequestWithDetectedObjectObservationCompletionHandler added in v0.18.0

func NewTrackObjectRequestWithDetectedObjectObservationCompletionHandler(observation *DetectedObjectObservation, completionHandler func(obj.Object, unsafe.Pointer)) *TrackObjectRequest

NewTrackObjectRequestWithDetectedObjectObservationCompletionHandler creates a new object tracking request with a detected object observation.

func TrackObjectRequestFromID added in v0.17.0

func TrackObjectRequestFromID(id objc.ID) *TrackObjectRequest

TrackObjectRequestFromID adopts an existing Objective-C object as a TrackObjectRequest (nil for 0), retaining it and registering a release finalizer.

func (*TrackObjectRequest) WithInputObservation added in v0.17.0

func (tor *TrackObjectRequest) WithInputObservation(inputObservation DetectedObjectObservationProvider) *TrackObjectRequest

WithInputObservation sets the observation object defining a region to track.

func (*TrackObjectRequest) WithLastFrame added in v0.17.0

func (tor *TrackObjectRequest) WithLastFrame(lastFrame bool) *TrackObjectRequest

WithLastFrame sets a Boolean that indicates the last frame in a tracking sequence.

func (*TrackObjectRequest) WithPreferBackgroundProcessing added in v0.17.0

func (tor *TrackObjectRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *TrackObjectRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*TrackObjectRequest) WithRegionOfInterest added in v0.17.0

func (tor *TrackObjectRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *TrackObjectRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*TrackObjectRequest) WithRevision added in v0.17.0

func (tor *TrackObjectRequest) WithRevision(revision int) *TrackObjectRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*TrackObjectRequest) WithTrackingLevel added in v0.17.0

func (tor *TrackObjectRequest) WithTrackingLevel(trackingLevel RequestTrackingLevel) *TrackObjectRequest

WithTrackingLevel sets a value for specifying whether to prioritize speed or location accuracy.

func (*TrackObjectRequest) WithUsesCPUOnly added in v0.17.0

func (tor *TrackObjectRequest) WithUsesCPUOnly(usesCPUOnly bool) *TrackObjectRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type TrackOpticalFlowRequest added in v0.17.0

type TrackOpticalFlowRequest struct {
	StatefulRequest
}

TrackOpticalFlowRequest is an idiomatic wrapper over the Objective-C class VNTrackOpticalFlowRequest.

It embeds StatefulRequest, promoting that type's methods.

An object that determines the direction change of vectors for each pixel from a previous to current image.

func NewTrackOpticalFlowRequest added in v0.17.0

func NewTrackOpticalFlowRequest() *TrackOpticalFlowRequest

NewTrackOpticalFlowRequest creates a new TrackOpticalFlowRequest.

func NewTrackOpticalFlowRequestWithCompletionHandler added in v0.18.0

func NewTrackOpticalFlowRequestWithCompletionHandler(completionHandler func(obj.Object, unsafe.Pointer)) *TrackOpticalFlowRequest

NewTrackOpticalFlowRequestWithCompletionHandler creates a new request that tracks the optical from one image to another, with a system callback on completion.

func TrackOpticalFlowRequestFromID added in v0.17.0

func TrackOpticalFlowRequestFromID(id objc.ID) *TrackOpticalFlowRequest

TrackOpticalFlowRequestFromID adopts an existing Objective-C object as a TrackOpticalFlowRequest (nil for 0), retaining it and registering a release finalizer.

func (*TrackOpticalFlowRequest) ComputationAccuracy added in v0.17.0

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

func (*TrackOpticalFlowRequest) KeepNetworkOutput added in v0.17.0

func (tofr *TrackOpticalFlowRequest) KeepNetworkOutput() bool

KeepNetworkOutput reports whether setting this to `YES` will keep the raw pixel buffer coming from the the ML network. The default is `NO`. When set to `YES`, the outputPixelFormat is ignored.

func (*TrackOpticalFlowRequest) OutputPixelFormat added in v0.17.0

func (tofr *TrackOpticalFlowRequest) OutputPixelFormat() int

OutputPixelFormat returns pixel format type of the output buffer. Valid values are `kCVPixelFormatType_TwoComponent32Float` and `kCVPixelFormatType_TwoComponent16Half`. Default is `kCVPixelFormatType_TwoComponent32Float`.

func (*TrackOpticalFlowRequest) WithComputationAccuracy added in v0.17.0

func (tofr *TrackOpticalFlowRequest) WithComputationAccuracy(computationAccuracy TrackOpticalFlowRequestComputationAccuracy) *TrackOpticalFlowRequest

WithComputationAccuracy sets the level of accuracy to compute the optical flow.

func (*TrackOpticalFlowRequest) WithKeepNetworkOutput added in v0.17.0

func (tofr *TrackOpticalFlowRequest) WithKeepNetworkOutput(keepNetworkOutput bool) *TrackOpticalFlowRequest

WithKeepNetworkOutput sets a Boolean value that indicates the raw pixel buffer continues to emit from the network.

func (*TrackOpticalFlowRequest) WithOutputPixelFormat added in v0.17.0

func (tofr *TrackOpticalFlowRequest) WithOutputPixelFormat(outputPixelFormat int) *TrackOpticalFlowRequest

WithOutputPixelFormat sets the pixel format type of the output value.

func (*TrackOpticalFlowRequest) WithPreferBackgroundProcessing added in v0.17.0

func (tofr *TrackOpticalFlowRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *TrackOpticalFlowRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*TrackOpticalFlowRequest) WithRegionOfInterest added in v0.17.0

func (tofr *TrackOpticalFlowRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *TrackOpticalFlowRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*TrackOpticalFlowRequest) WithRevision added in v0.17.0

func (tofr *TrackOpticalFlowRequest) WithRevision(revision int) *TrackOpticalFlowRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*TrackOpticalFlowRequest) WithUsesCPUOnly added in v0.17.0

func (tofr *TrackOpticalFlowRequest) WithUsesCPUOnly(usesCPUOnly bool) *TrackOpticalFlowRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type TrackOpticalFlowRequestComputationAccuracy added in v0.17.0

type TrackOpticalFlowRequestComputationAccuracy uint64

Computational accuracy options.

const (
	TrackOpticalFlowRequestComputationAccuracyLow      TrackOpticalFlowRequestComputationAccuracy = 0
	TrackOpticalFlowRequestComputationAccuracyMedium   TrackOpticalFlowRequestComputationAccuracy = 1
	TrackOpticalFlowRequestComputationAccuracyHigh     TrackOpticalFlowRequestComputationAccuracy = 2
	TrackOpticalFlowRequestComputationAccuracyVeryHigh TrackOpticalFlowRequestComputationAccuracy = 3
)

func (TrackOpticalFlowRequestComputationAccuracy) String added in v0.17.0

String returns the TrackOpticalFlowRequestComputationAccuracy constant's name, or its numeric form when the value is not a known constant.

type TrackRectangleRequest added in v0.17.0

type TrackRectangleRequest struct {
	TrackingRequest
}

TrackRectangleRequest is an idiomatic wrapper over the Objective-C class VNTrackRectangleRequest.

It embeds TrackingRequest, promoting that type's methods.

An image-analysis request that tracks movement of a previously identified rectangular object across multiple images or video frames.

func NewTrackRectangleRequestWithRectangleObservation added in v0.17.0

func NewTrackRectangleRequestWithRectangleObservation(observation *RectangleObservation) *TrackRectangleRequest

NewTrackRectangleRequestWithRectangleObservation creates a new rectangle tracking request with a rectangle observation.

func NewTrackRectangleRequestWithRectangleObservationCompletionHandler added in v0.18.0

func NewTrackRectangleRequestWithRectangleObservationCompletionHandler(observation *RectangleObservation, completionHandler func(obj.Object, unsafe.Pointer)) *TrackRectangleRequest

NewTrackRectangleRequestWithRectangleObservationCompletionHandler creates a new rectangle tracking request with a rectangle observation.

func TrackRectangleRequestFromID added in v0.17.0

func TrackRectangleRequestFromID(id objc.ID) *TrackRectangleRequest

TrackRectangleRequestFromID adopts an existing Objective-C object as a TrackRectangleRequest (nil for 0), retaining it and registering a release finalizer.

func (*TrackRectangleRequest) WithInputObservation added in v0.17.0

func (trr *TrackRectangleRequest) WithInputObservation(inputObservation DetectedObjectObservationProvider) *TrackRectangleRequest

WithInputObservation sets the observation object defining a region to track.

func (*TrackRectangleRequest) WithLastFrame added in v0.17.0

func (trr *TrackRectangleRequest) WithLastFrame(lastFrame bool) *TrackRectangleRequest

WithLastFrame sets a Boolean that indicates the last frame in a tracking sequence.

func (*TrackRectangleRequest) WithPreferBackgroundProcessing added in v0.17.0

func (trr *TrackRectangleRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *TrackRectangleRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*TrackRectangleRequest) WithRegionOfInterest added in v0.17.0

func (trr *TrackRectangleRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *TrackRectangleRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*TrackRectangleRequest) WithRevision added in v0.17.0

func (trr *TrackRectangleRequest) WithRevision(revision int) *TrackRectangleRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*TrackRectangleRequest) WithTrackingLevel added in v0.17.0

func (trr *TrackRectangleRequest) WithTrackingLevel(trackingLevel RequestTrackingLevel) *TrackRectangleRequest

WithTrackingLevel sets a value for specifying whether to prioritize speed or location accuracy.

func (*TrackRectangleRequest) WithUsesCPUOnly added in v0.17.0

func (trr *TrackRectangleRequest) WithUsesCPUOnly(usesCPUOnly bool) *TrackRectangleRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type TrackTranslationalImageRegistrationRequest added in v0.17.0

type TrackTranslationalImageRegistrationRequest struct {
	StatefulRequest
}

TrackTranslationalImageRegistrationRequest is an idiomatic wrapper over the Objective-C class VNTrackTranslationalImageRegistrationRequest.

It embeds StatefulRequest, promoting that type's methods.

An image-analysis request, as a stateful request you track over time, that determines the affine transform necessary to align the content of two images.

func NewTrackTranslationalImageRegistrationRequest added in v0.17.0

func NewTrackTranslationalImageRegistrationRequest() *TrackTranslationalImageRegistrationRequest

NewTrackTranslationalImageRegistrationRequest creates a new TrackTranslationalImageRegistrationRequest.

func NewTrackTranslationalImageRegistrationRequestWithCompletionHandler added in v0.18.0

func NewTrackTranslationalImageRegistrationRequestWithCompletionHandler(completionHandler func(obj.Object, unsafe.Pointer)) *TrackTranslationalImageRegistrationRequest

NewTrackTranslationalImageRegistrationRequestWithCompletionHandler creates a new request that tracks the translational registration of two images, with a system callback on completion.

func TrackTranslationalImageRegistrationRequestFromID added in v0.17.0

func TrackTranslationalImageRegistrationRequestFromID(id objc.ID) *TrackTranslationalImageRegistrationRequest

TrackTranslationalImageRegistrationRequestFromID adopts an existing Objective-C object as a TrackTranslationalImageRegistrationRequest (nil for 0), retaining it and registering a release finalizer.

func (*TrackTranslationalImageRegistrationRequest) WithPreferBackgroundProcessing added in v0.17.0

func (ttirr *TrackTranslationalImageRegistrationRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *TrackTranslationalImageRegistrationRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*TrackTranslationalImageRegistrationRequest) WithRegionOfInterest added in v0.17.0

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*TrackTranslationalImageRegistrationRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*TrackTranslationalImageRegistrationRequest) WithUsesCPUOnly added in v0.17.0

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type TrackingRequest added in v0.17.0

type TrackingRequest struct {
	ImageBasedRequest
}

TrackingRequest is an idiomatic wrapper over the Objective-C class VNTrackingRequest.

TrackingRequest is an abstract base — you do not construct it directly. Construct one of TrackObjectRequest, TrackRectangleRequest and pass it where a TrackingRequest is accepted.

The abstract superclass for image-analysis requests that track unique features across multiple images or video frames.

func TrackingRequestFromID added in v0.17.0

func TrackingRequestFromID(id objc.ID) *TrackingRequest

TrackingRequestFromID adopts an existing Objective-C object as a TrackingRequest (nil for 0), retaining it and registering a release finalizer.

func (*TrackingRequest) InputObservation added in v0.17.0

func (tr *TrackingRequest) InputObservation() *DetectedObjectObservation

InputObservation returns 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 (*TrackingRequest) IsLastFrame added in v0.17.0

func (tr *TrackingRequest) IsLastFrame() bool

IsLastFrame reports whether this property allows marking the last frame for tracking using current tracker. If set to true, the results for this frame will be processed and returned and the current tracker will be released to the pool of available trackers

func (*TrackingRequest) SupportedNumberOfTrackers added in v0.17.0

func (tr *TrackingRequest) SupportedNumberOfTrackers() (result int, err error)

SupportedNumberOfTrackers returns the maximum number of simultaneous trackers for the request.

func (*TrackingRequest) TrackingLevel added in v0.17.0

func (tr *TrackingRequest) TrackingLevel() RequestTrackingLevel

TrackingLevel returns 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)

func (*TrackingRequest) WithInputObservation added in v0.17.0

func (tr *TrackingRequest) WithInputObservation(inputObservation DetectedObjectObservationProvider) *TrackingRequest

WithInputObservation sets the observation object defining a region to track.

func (*TrackingRequest) WithLastFrame added in v0.17.0

func (tr *TrackingRequest) WithLastFrame(lastFrame bool) *TrackingRequest

WithLastFrame sets a Boolean that indicates the last frame in a tracking sequence.

func (*TrackingRequest) WithPreferBackgroundProcessing added in v0.17.0

func (tr *TrackingRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *TrackingRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*TrackingRequest) WithRegionOfInterest added in v0.17.0

func (tr *TrackingRequest) WithRegionOfInterest(regionOfInterest corefoundation.CGRect) *TrackingRequest

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*TrackingRequest) WithRevision added in v0.17.0

func (tr *TrackingRequest) WithRevision(revision int) *TrackingRequest

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*TrackingRequest) WithTrackingLevel added in v0.17.0

func (tr *TrackingRequest) WithTrackingLevel(trackingLevel RequestTrackingLevel) *TrackingRequest

WithTrackingLevel sets a value for specifying whether to prioritize speed or location accuracy.

func (*TrackingRequest) WithUsesCPUOnly added in v0.17.0

func (tr *TrackingRequest) WithUsesCPUOnly(usesCPUOnly bool) *TrackingRequest

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type TrackingRequestProvider added in v0.17.0

type TrackingRequestProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

TrackingRequestProvider is accepted wherever a VNTrackingRequest (or one of its subclasses) is expected.

type TrajectoryObservation added in v0.17.0

type TrajectoryObservation struct {
	Observation
}

TrajectoryObservation is an idiomatic wrapper over the Objective-C class VNTrajectoryObservation.

It embeds Observation, promoting that type's methods.

An observation that describes a detected trajectory.

func NewTrajectoryObservation added in v0.17.0

func NewTrajectoryObservation() *TrajectoryObservation

NewTrajectoryObservation creates a new TrajectoryObservation.

func TrajectoryObservationFromID added in v0.17.0

func TrajectoryObservationFromID(id objc.ID) *TrajectoryObservation

TrajectoryObservationFromID adopts an existing Objective-C object as a TrajectoryObservation (nil for 0), retaining it and registering a release finalizer.

func (*TrajectoryObservation) DetectedPoints added in v0.17.0

func (to *TrajectoryObservation) DetectedPoints() []*Point

DetectedPoints returns the centroids of the contour being detected along the trajectory. 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.

DetectedPoints returns the collection as a Go slice.

func (*TrajectoryObservation) EquationCoefficients added in v0.18.0

func (to *TrajectoryObservation) EquationCoefficients() unsafe.Pointer

EquationCoefficients returns the coefficients of the parabolic equation y = a*x^2 + b*x + c. 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 (*TrajectoryObservation) MovingAverageRadius added in v0.17.0

func (to *TrajectoryObservation) MovingAverageRadius() float64

MovingAverageRadius returns the moving average radius of the object being tracked. This is the radius of the object at each detected point (used to determine the trajectory) averaged.

func (*TrajectoryObservation) ProjectedPoints added in v0.17.0

func (to *TrajectoryObservation) ProjectedPoints() []*Point

ProjectedPoints returns the centroids of the calculated trajectory from the detected points. 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.

ProjectedPoints returns the collection as a Go slice.

type TranslationalImageRegistrationRequest added in v0.17.0

type TranslationalImageRegistrationRequest struct {
	ImageRegistrationRequest
}

TranslationalImageRegistrationRequest is an idiomatic wrapper over the Objective-C class VNTranslationalImageRegistrationRequest.

It embeds ImageRegistrationRequest, promoting that type's methods.

An image-analysis request that determines the affine transform necessary to align the content of two images.

func NewTranslationalImageRegistrationRequest added in v0.17.0

func NewTranslationalImageRegistrationRequest() *TranslationalImageRegistrationRequest

NewTranslationalImageRegistrationRequest creates a new TranslationalImageRegistrationRequest.

func TranslationalImageRegistrationRequestFromID added in v0.17.0

func TranslationalImageRegistrationRequestFromID(id objc.ID) *TranslationalImageRegistrationRequest

TranslationalImageRegistrationRequestFromID adopts an existing Objective-C object as a TranslationalImageRegistrationRequest (nil for 0), retaining it and registering a release finalizer.

func (*TranslationalImageRegistrationRequest) WithPreferBackgroundProcessing added in v0.17.0

func (tirr *TranslationalImageRegistrationRequest) WithPreferBackgroundProcessing(preferBackgroundProcessing bool) *TranslationalImageRegistrationRequest

WithPreferBackgroundProcessing sets a hint to minimize the resource burden of the request.

func (*TranslationalImageRegistrationRequest) WithRegionOfInterest added in v0.17.0

WithRegionOfInterest sets the region of the image in which Vision will perform the request.

func (*TranslationalImageRegistrationRequest) WithRevision added in v0.17.0

WithRevision sets the specific algorithm or implementation revision that’s used to perform the request.

func (*TranslationalImageRegistrationRequest) WithUsesCPUOnly added in v0.17.0

WithUsesCPUOnly sets a Boolean signifying that the Vision request should execute exclusively on the CPU.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

type Vector added in v0.17.0

type Vector struct {
	objref.Handle
}

Vector is an idiomatic wrapper over the Objective-C class VNVector.

An immutable 2D vector represented by its x-axis and y-axis projections.

func NewVectorWithRTheta added in v0.17.0

func NewVectorWithRTheta(r float64, theta float64) *Vector

NewVectorWithRTheta creates a new vector in polar coordinate space.

func NewVectorWithVectorHeadTail added in v0.17.0

func NewVectorWithVectorHeadTail(head *Point, tail *Point) *Vector

NewVectorWithVectorHeadTail creates a new vector in Cartesian coordinate space.

func NewVectorWithXComponentYComponent added in v0.17.0

func NewVectorWithXComponentYComponent(x float64, y float64) *Vector

NewVectorWithXComponentYComponent creates a new vector in Cartesian coordinate space, based on its x-axis and y-axis projections.

func UnitVectorForVector added in v0.17.0

func UnitVectorForVector(vector *Vector) *Vector

UnitVectorForVector calculates a vector that’s normalized by preserving its direction, so that the vector length equals 1.0.

func VectorByAddingVectorToVector added in v0.17.0

func VectorByAddingVectorToVector(v1 *Vector, v2 *Vector) *Vector

VectorByAddingVectorToVector creates a new vector by adding the specified vectors.

func VectorByMultiplyingVectorByScalar added in v0.17.0

func VectorByMultiplyingVectorByScalar(vector *Vector, scalar float64) *Vector

VectorByMultiplyingVectorByScalar creates a new vector by multiplying the specified vector’s x-axis and y-axis projections by the scalar value.

func VectorBySubtractingVectorFromVector added in v0.17.0

func VectorBySubtractingVectorFromVector(v1 *Vector, v2 *Vector) *Vector

VectorBySubtractingVectorFromVector creates a new vector by subtracting the first vector from the second vector.

func VectorFromID added in v0.17.0

func VectorFromID(id objc.ID) *Vector

VectorFromID adopts an existing Objective-C object as a Vector (nil for 0), retaining it and registering a release finalizer.

func ZeroVector added in v0.17.0

func ZeroVector() *Vector

ZeroVector returns a VNVector object with zero length. The theta for zeroVector is not defined (NaN).

func (*Vector) Description added in v0.17.0

func (v_ *Vector) Description() string

Description returns the object's -description text.

func (*Vector) IsEqual added in v0.17.0

func (v_ *Vector) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Vector) IsKind added in v0.17.0

func (v_ *Vector) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Vector) Length added in v0.17.0

func (v_ *Vector) Length() float64

Length returns a length, or absolute value, of the vector.

func (*Vector) R added in v0.17.0

func (v_ *Vector) R() float64

R returns radius, or absolute value, or length of the vector.

func (*Vector) SquaredLength added in v0.17.0

func (v_ *Vector) SquaredLength() float64

SquaredLength returns a length ^ 2 of a vector.

func (*Vector) String added in v0.17.0

func (v_ *Vector) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Vector) Theta added in v0.17.0

func (v_ *Vector) Theta() float64

Theta returns angle between the vector direction and positive direction of X axis.

func (*Vector) X added in v0.17.0

func (v_ *Vector) X() float64

X returns signed projection on X-axis, or X component of the vector. Sign determines direction the vector is facing in X direction.

func (*Vector) Y added in v0.17.0

func (v_ *Vector) Y() float64

Y returns signed projection on Y-axis, or Y component of the vector. Sign determines direction the vector is facing in Y direction.

type VideoProcessor added in v0.17.0

type VideoProcessor struct {
	objref.Handle
}

VideoProcessor is an idiomatic wrapper over the Objective-C class VNVideoProcessor.

An object that performs offline analysis of video content.

func NewVideoProcessorWithURL added in v0.17.0

func NewVideoProcessorWithURL(videoURL string) *VideoProcessor

NewVideoProcessorWithURL creates a video processor to perform Vision requests against the specified video asset.

func VideoProcessorFromID added in v0.17.0

func VideoProcessorFromID(id objc.ID) *VideoProcessor

VideoProcessorFromID adopts an existing Objective-C object as a VideoProcessor (nil for 0), retaining it and registering a release finalizer.

func (*VideoProcessor) AddRequestProcessing added in v0.17.0

func (vp *VideoProcessor) AddRequestProcessing(request *Request, processingOptions *VideoProcessorRequestProcessingOptions) error

AddRequestProcessing adds a request with processing options to the video processor.

func (*VideoProcessor) AddRequestWithProcessingOptions added in v0.17.0

func (vp *VideoProcessor) AddRequestWithProcessingOptions(request *Request, processingOptions obj.Object) error

AddRequestWithProcessingOptions adds a Vision request to perform with the specified configuration.

func (*VideoProcessor) AnalyzeTimeRange added in v0.17.0

func (vp *VideoProcessor) AnalyzeTimeRange(timeRange coremedia.CMTimeRange) error

AnalyzeTimeRange analyzes a time range of video content.

func (*VideoProcessor) AnalyzeWithTimeRange added in v0.17.0

func (vp *VideoProcessor) AnalyzeWithTimeRange(timeRange coremedia.CMTimeRange) error

AnalyzeWithTimeRange analyzes the specifed time range of the video content.

func (*VideoProcessor) Cancel added in v0.17.0

func (vp *VideoProcessor) Cancel()

Cancel cancels the video processing.

func (*VideoProcessor) Description added in v0.17.0

func (vp *VideoProcessor) Description() string

Description returns the object's -description text.

func (*VideoProcessor) IsEqual added in v0.17.0

func (vp *VideoProcessor) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*VideoProcessor) IsKind added in v0.17.0

func (vp *VideoProcessor) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*VideoProcessor) RemoveRequest added in v0.17.0

func (vp *VideoProcessor) RemoveRequest(request *Request) error

RemoveRequest removes a Vision request from the video processor’s request queue.

func (*VideoProcessor) String added in v0.17.0

func (vp *VideoProcessor) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type VideoProcessorCadence added in v0.17.0

type VideoProcessorCadence struct {
	objref.Handle
}

VideoProcessorCadence is an idiomatic wrapper over the Objective-C class VNVideoProcessorCadence.

VideoProcessorCadence is an abstract base — you do not construct it directly. Construct one of VideoProcessorFrameRateCadence, VideoProcessorTimeIntervalCadence and pass it where a VideoProcessorCadence is accepted.

An object that defines the cadence at which to process video.

func VideoProcessorCadenceFromID added in v0.17.0

func VideoProcessorCadenceFromID(id objc.ID) *VideoProcessorCadence

VideoProcessorCadenceFromID adopts an existing Objective-C object as a VideoProcessorCadence (nil for 0), retaining it and registering a release finalizer.

func (*VideoProcessorCadence) Description added in v0.17.0

func (vpc *VideoProcessorCadence) Description() string

Description returns the object's -description text.

func (*VideoProcessorCadence) IsEqual added in v0.17.0

func (vpc *VideoProcessorCadence) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*VideoProcessorCadence) IsKind added in v0.17.0

func (vpc *VideoProcessorCadence) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*VideoProcessorCadence) String added in v0.17.0

func (vpc *VideoProcessorCadence) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type VideoProcessorCadenceProvider added in v0.17.0

type VideoProcessorCadenceProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

VideoProcessorCadenceProvider is accepted wherever a VNVideoProcessorCadence (or one of its subclasses) is expected.

type VideoProcessorFrameRateCadence added in v0.17.0

type VideoProcessorFrameRateCadence struct {
	VideoProcessorCadence
}

VideoProcessorFrameRateCadence is an idiomatic wrapper over the Objective-C class VNVideoProcessorFrameRateCadence.

It embeds VideoProcessorCadence, promoting that type's methods.

An object that defines a frame-based cadence for processing a video stream.

func NewVideoProcessorFrameRateCadenceWithFrameRate added in v0.17.0

func NewVideoProcessorFrameRateCadenceWithFrameRate(frameRate int) *VideoProcessorFrameRateCadence

NewVideoProcessorFrameRateCadenceWithFrameRate creates a new VideoProcessorFrameRateCadence.

func VideoProcessorFrameRateCadenceFromID added in v0.17.0

func VideoProcessorFrameRateCadenceFromID(id objc.ID) *VideoProcessorFrameRateCadence

VideoProcessorFrameRateCadenceFromID adopts an existing Objective-C object as a VideoProcessorFrameRateCadence (nil for 0), retaining it and registering a release finalizer.

func (*VideoProcessorFrameRateCadence) FrameRate added in v0.17.0

func (vpfrc *VideoProcessorFrameRateCadence) FrameRate() int

FrameRate returns the frame rate.

type VideoProcessorRequestProcessingOptions added in v0.17.0

type VideoProcessorRequestProcessingOptions struct {
	objref.Handle
}

VideoProcessorRequestProcessingOptions is an idiomatic wrapper over the Objective-C class VNVideoProcessorRequestProcessingOptions.

An object that defines a video processor’s configuration options.

func NewVideoProcessorRequestProcessingOptions added in v0.17.0

func NewVideoProcessorRequestProcessingOptions() *VideoProcessorRequestProcessingOptions

NewVideoProcessorRequestProcessingOptions creates a new VideoProcessorRequestProcessingOptions.

func VideoProcessorRequestProcessingOptionsFromID added in v0.17.0

func VideoProcessorRequestProcessingOptionsFromID(id objc.ID) *VideoProcessorRequestProcessingOptions

VideoProcessorRequestProcessingOptionsFromID adopts an existing Objective-C object as a VideoProcessorRequestProcessingOptions (nil for 0), retaining it and registering a release finalizer.

func (*VideoProcessorRequestProcessingOptions) Cadence added in v0.17.0

Cadence returns the cadence.

func (*VideoProcessorRequestProcessingOptions) Description added in v0.17.0

func (vprpo *VideoProcessorRequestProcessingOptions) Description() string

Description returns the object's -description text.

func (*VideoProcessorRequestProcessingOptions) IsEqual added in v0.17.0

func (vprpo *VideoProcessorRequestProcessingOptions) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*VideoProcessorRequestProcessingOptions) IsKind added in v0.17.0

func (vprpo *VideoProcessorRequestProcessingOptions) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*VideoProcessorRequestProcessingOptions) String added in v0.17.0

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*VideoProcessorRequestProcessingOptions) WithCadence added in v0.17.0

WithCadence sets the cadence at which the request should be performed. If this property is not defined, then every frame will be processed.

type VideoProcessorTimeIntervalCadence added in v0.17.0

type VideoProcessorTimeIntervalCadence struct {
	VideoProcessorCadence
}

VideoProcessorTimeIntervalCadence is an idiomatic wrapper over the Objective-C class VNVideoProcessorTimeIntervalCadence.

It embeds VideoProcessorCadence, promoting that type's methods.

An object that defines a time-based cadence for processing a video stream.

func NewVideoProcessorTimeIntervalCadenceWithTimeInterval added in v0.17.0

func NewVideoProcessorTimeIntervalCadenceWithTimeInterval(timeInterval float64) *VideoProcessorTimeIntervalCadence

NewVideoProcessorTimeIntervalCadenceWithTimeInterval creates a new VideoProcessorTimeIntervalCadence.

func VideoProcessorTimeIntervalCadenceFromID added in v0.17.0

func VideoProcessorTimeIntervalCadenceFromID(id objc.ID) *VideoProcessorTimeIntervalCadence

VideoProcessorTimeIntervalCadenceFromID adopts an existing Objective-C object as a VideoProcessorTimeIntervalCadence (nil for 0), retaining it and registering a release finalizer.

func (*VideoProcessorTimeIntervalCadence) TimeInterval added in v0.17.0

func (vptic *VideoProcessorTimeIntervalCadence) TimeInterval() float64

TimeInterval returns the time interval.

type VirtualMemoryGuardExceptionCode added in v0.17.0

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

func (VirtualMemoryGuardExceptionCode) String added in v0.17.0

String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.

type XpcListenerCreateFlags added in v0.17.0

type XpcListenerCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcListenerCreateFlagsNone            XpcListenerCreateFlags = 0
	XpcListenerCreateFlagsInactive        XpcListenerCreateFlags = 1
	XpcListenerCreateFlagsForceMach       XpcListenerCreateFlags = 2
	XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4
)

func (XpcListenerCreateFlags) String added in v0.17.0

func (e XpcListenerCreateFlags) String() string

String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.

type XpcSessionCreateFlags added in v0.17.0

type XpcSessionCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcSessionCreateFlagsNone           XpcSessionCreateFlags = 0
	XpcSessionCreateFlagsInactive       XpcSessionCreateFlags = 1
	XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2
)

func (XpcSessionCreateFlags) String added in v0.17.0

func (e XpcSessionCreateFlags) String() string

String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.

Source Files

Jump to

Keyboard shortcuts

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