Documentation
¶
Overview ¶
Package vision provides purego-based Go bindings for the macOS Vision framework.
Apple documentation: https://developer.apple.com/documentation/vision
Index ¶
- func SymbolAvailable(symbol string) bool
- func VNAnimalBodyPoseObservationJointNameLeftBackElbow() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameLeftBackKnee() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameLeftBackPaw() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameLeftEarBottom() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameLeftEarMiddle() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameLeftEarTop() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameLeftEye() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameLeftFrontElbow() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameLeftFrontKnee() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameLeftFrontPaw() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameNeck() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameNose() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameRightBackElbow() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameRightBackKnee() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameRightBackPaw() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameRightEarBottom() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameRightEarMiddle() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameRightEarTop() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameRightEye() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameRightFrontElbow() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameRightFrontKnee() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameRightFrontPaw() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameTailBottom() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameTailMiddle() *foundation.NSString
- func VNAnimalBodyPoseObservationJointNameTailTop() *foundation.NSString
- func VNAnimalBodyPoseObservationJointsGroupNameAll() *foundation.NSString
- func VNAnimalBodyPoseObservationJointsGroupNameForelegs() *foundation.NSString
- func VNAnimalBodyPoseObservationJointsGroupNameHead() *foundation.NSString
- func VNAnimalBodyPoseObservationJointsGroupNameHindlegs() *foundation.NSString
- func VNAnimalBodyPoseObservationJointsGroupNameTail() *foundation.NSString
- func VNAnimalBodyPoseObservationJointsGroupNameTrunk() *foundation.NSString
- func VNAnimalIdentifierCat() *foundation.NSString
- func VNAnimalIdentifierDog() *foundation.NSString
- func VNBarcodeSymbologyAztec() *foundation.NSString
- func VNBarcodeSymbologyCodabar() *foundation.NSString
- func VNBarcodeSymbologyCode39() *foundation.NSString
- func VNBarcodeSymbologyCode39Checksum() *foundation.NSString
- func VNBarcodeSymbologyCode39FullASCII() *foundation.NSString
- func VNBarcodeSymbologyCode39FullASCIIChecksum() *foundation.NSString
- func VNBarcodeSymbologyCode93() *foundation.NSString
- func VNBarcodeSymbologyCode93i() *foundation.NSString
- func VNBarcodeSymbologyCode128() *foundation.NSString
- func VNBarcodeSymbologyDataMatrix() *foundation.NSString
- func VNBarcodeSymbologyEAN8() *foundation.NSString
- func VNBarcodeSymbologyEAN13() *foundation.NSString
- func VNBarcodeSymbologyGS1DataBar() *foundation.NSString
- func VNBarcodeSymbologyGS1DataBarExpanded() *foundation.NSString
- func VNBarcodeSymbologyGS1DataBarLimited() *foundation.NSString
- func VNBarcodeSymbologyI2of5() *foundation.NSString
- func VNBarcodeSymbologyI2of5Checksum() *foundation.NSString
- func VNBarcodeSymbologyITF14() *foundation.NSString
- func VNBarcodeSymbologyMSIPlessey() *foundation.NSString
- func VNBarcodeSymbologyMicroPDF417() *foundation.NSString
- func VNBarcodeSymbologyMicroQR() *foundation.NSString
- func VNBarcodeSymbologyPDF417() *foundation.NSString
- func VNBarcodeSymbologyQR() *foundation.NSString
- func VNBarcodeSymbologyUPCE() *foundation.NSString
- func VNBodyLandmarkKeyLeftAnkle() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyLeftEar() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyLeftElbow() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyLeftEye() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyLeftHip() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyLeftKnee() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyLeftShoulder() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyLeftWrist() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyNeck() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyNose() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyRightAnkle() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyRightEar() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyRightElbow() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyRightEye() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyRightHip() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyRightKnee() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyRightShoulder() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyRightWrist() *foundation.NSStringdeprecated
- func VNBodyLandmarkKeyRoot() *foundation.NSStringdeprecated
- func VNBodyLandmarkRegionKeyFace() *foundation.NSStringdeprecated
- func VNBodyLandmarkRegionKeyLeftArm() *foundation.NSStringdeprecated
- func VNBodyLandmarkRegionKeyLeftLeg() *foundation.NSStringdeprecated
- func VNBodyLandmarkRegionKeyRightArm() *foundation.NSStringdeprecated
- func VNBodyLandmarkRegionKeyRightLeg() *foundation.NSStringdeprecated
- func VNBodyLandmarkRegionKeyTorso() *foundation.NSStringdeprecated
- func VNClassifyImageRequestKnownClassificationsForRevisionError(requestRevision uint) (*foundation.NSArray[*VNClassificationObservation], error)
- func VNComputeStageMain() *foundation.NSString
- func VNComputeStagePostProcessing() *foundation.NSString
- func VNDetectBarcodesRequestSupportedSymbologies() *foundation.NSArray[*foundation.NSString]
- func VNDetectFaceLandmarksRequestRevisionSupportsConstellation(requestRevision uint, constellation VNRequestFaceLandmarksConstellation) bool
- func VNDetectHumanBodyPoseRequestSupportedJointNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)
- func VNDetectHumanBodyPoseRequestSupportedJointsGroupNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)
- func VNDetectHumanHandPoseRequestSupportedJointNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)
- func VNDetectHumanHandPoseRequestSupportedJointsGroupNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)
- func VNElementTypeSize(elementType VNElementType) uint
- func VNErrorDomain() *foundation.NSString
- func VNGeometryUtilsCalculateAreaForContourOrientedAreaError(area *float64, contour *VNContour, orientedArea bool) (bool, error)
- func VNGeometryUtilsCalculatePerimeterForContourError(perimeter *float64, contour *VNContour) (bool, error)
- func VNHumanBodyPose3DObservationJointNameCenterHead() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameCenterShoulder() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameLeftAnkle() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameLeftElbow() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameLeftHip() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameLeftKnee() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameLeftShoulder() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameLeftWrist() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameRightAnkle() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameRightElbow() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameRightHip() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameRightKnee() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameRightShoulder() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameRightWrist() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameRoot() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameSpine() *foundation.NSString
- func VNHumanBodyPose3DObservationJointNameTopHead() *foundation.NSString
- func VNHumanBodyPose3DObservationJointsGroupNameAll() *foundation.NSString
- func VNHumanBodyPose3DObservationJointsGroupNameHead() *foundation.NSString
- func VNHumanBodyPose3DObservationJointsGroupNameLeftArm() *foundation.NSString
- func VNHumanBodyPose3DObservationJointsGroupNameLeftLeg() *foundation.NSString
- func VNHumanBodyPose3DObservationJointsGroupNameRightArm() *foundation.NSString
- func VNHumanBodyPose3DObservationJointsGroupNameRightLeg() *foundation.NSString
- func VNHumanBodyPose3DObservationJointsGroupNameTorso() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameLeftAnkle() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameLeftEar() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameLeftElbow() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameLeftEye() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameLeftHip() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameLeftKnee() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameLeftShoulder() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameLeftWrist() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameNeck() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameNose() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameRightAnkle() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameRightEar() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameRightElbow() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameRightEye() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameRightHip() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameRightKnee() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameRightShoulder() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameRightWrist() *foundation.NSString
- func VNHumanBodyPoseObservationJointNameRoot() *foundation.NSString
- func VNHumanBodyPoseObservationJointsGroupNameAll() *foundation.NSString
- func VNHumanBodyPoseObservationJointsGroupNameFace() *foundation.NSString
- func VNHumanBodyPoseObservationJointsGroupNameLeftArm() *foundation.NSString
- func VNHumanBodyPoseObservationJointsGroupNameLeftLeg() *foundation.NSString
- func VNHumanBodyPoseObservationJointsGroupNameRightArm() *foundation.NSString
- func VNHumanBodyPoseObservationJointsGroupNameRightLeg() *foundation.NSString
- func VNHumanBodyPoseObservationJointsGroupNameTorso() *foundation.NSString
- func VNHumanHandPoseObservationJointNameIndexDIP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameIndexMCP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameIndexPIP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameIndexTip() *foundation.NSString
- func VNHumanHandPoseObservationJointNameLittleDIP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameLittleMCP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameLittlePIP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameLittleTip() *foundation.NSString
- func VNHumanHandPoseObservationJointNameMiddleDIP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameMiddleMCP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameMiddlePIP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameMiddleTip() *foundation.NSString
- func VNHumanHandPoseObservationJointNameRingDIP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameRingMCP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameRingPIP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameRingTip() *foundation.NSString
- func VNHumanHandPoseObservationJointNameThumbCMC() *foundation.NSString
- func VNHumanHandPoseObservationJointNameThumbIP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameThumbMP() *foundation.NSString
- func VNHumanHandPoseObservationJointNameThumbTip() *foundation.NSString
- func VNHumanHandPoseObservationJointNameWrist() *foundation.NSString
- func VNHumanHandPoseObservationJointsGroupNameAll() *foundation.NSString
- func VNHumanHandPoseObservationJointsGroupNameIndexFinger() *foundation.NSString
- func VNHumanHandPoseObservationJointsGroupNameLittleFinger() *foundation.NSString
- func VNHumanHandPoseObservationJointsGroupNameMiddleFinger() *foundation.NSString
- func VNHumanHandPoseObservationJointsGroupNameRingFinger() *foundation.NSString
- func VNHumanHandPoseObservationJointsGroupNameThumb() *foundation.NSString
- func VNImageOptionCIContext() *foundation.NSString
- func VNImageOptionCameraIntrinsics() *foundation.NSString
- func VNImageOptionProperties() *foundation.NSString
- func VNImagePointForFaceLandmarkPoint(faceLandmarkPoint unsafe.Pointer, faceBoundingBox corefoundation.CGRect, ...) corefoundation.CGPoint
- func VNImagePointForNormalizedPoint(normalizedPoint corefoundation.CGPoint, imageWidth uint, imageHeight uint) corefoundation.CGPoint
- func VNImagePointForNormalizedPointUsingRegionOfInterest(normalizedPoint corefoundation.CGPoint, imageWidth uint, imageHeight uint, ...) corefoundation.CGPoint
- func VNImageRectForNormalizedRect(normalizedRect corefoundation.CGRect, imageWidth uint, imageHeight uint) corefoundation.CGRect
- func VNImageRectForNormalizedRectUsingRegionOfInterest(normalizedRect corefoundation.CGRect, imageWidth uint, imageHeight uint, ...) corefoundation.CGRect
- func VNNormalizedFaceBoundingBoxPointForLandmarkPoint(faceLandmarkPoint unsafe.Pointer, faceBoundingBox corefoundation.CGRect, ...) corefoundation.CGPoint
- func VNNormalizedIdentityRect() corefoundation.CGRect
- func VNNormalizedPointForImagePoint(imagePoint corefoundation.CGPoint, imageWidth uint, imageHeight uint) corefoundation.CGPoint
- func VNNormalizedPointForImagePointUsingRegionOfInterest(imagePoint corefoundation.CGPoint, imageWidth uint, imageHeight uint, ...) corefoundation.CGPoint
- func VNNormalizedRectForImageRect(imageRect corefoundation.CGRect, imageWidth uint, imageHeight uint) corefoundation.CGRect
- func VNNormalizedRectForImageRectUsingRegionOfInterest(imageRect corefoundation.CGRect, imageWidth uint, imageHeight uint, ...) corefoundation.CGRect
- func VNNormalizedRectIsIdentityRect(normalizedRect corefoundation.CGRect) bool
- func VNPointDistanceBetweenPointPoint(point1 *VNPoint, point2 *VNPoint) float64
- func VNRecognizeAnimalsRequestKnownAnimalIdentifiersForRevisionError(requestRevision uint) (*foundation.NSArray[*foundation.NSString], error)
- func VNRecognizeTextRequestSupportedRecognitionLanguagesForTextRecognitionLevelRevisionError(recognitionLevel VNRequestTextRecognitionLevel, requestRevision uint) (*foundation.NSArray[*foundation.NSString], error)
- func VNRecognizedPoint3DGroupKeyAll() *foundation.NSString
- func VNRecognizedPointGroupKeyAll() *foundation.NSString
- func VNRequestCurrentRevision() uint
- func VNRequestDefaultRevision() uint
- func VNRequestSupportedRevisions() *foundation.NSIndexSet
- func VNVectorDotProductOfVectorVector(v1 *VNVector, v2 *VNVector) float64
- func VNVideoProcessingOptionFrameCadence() *foundation.NSStringdeprecated
- func VNVideoProcessingOptionTimeInterval() *foundation.NSStringdeprecated
- func VNVisionVersionNumber() float64
- type Acl_entry_id_t
- type Acl_flag_t
- type Acl_perm_t
- type Acl_tag_t
- type Acl_type_t
- type CGLCPContextPriorityRequest
- type Clockid_t
- type Dispatch_autorelease_frequency_t
- type Dispatch_block_flags_t
- type EvCmd
- type Filesec_property_t
- type Idtype_t
- type Ipc_info_object_type_t
- type Launch_data_type_t
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type Mach_vm_range_flags_t
- type Mach_vm_range_flavor_t
- type Mach_vm_range_tag_t
- type Mpo_flags_t
- type NXMouseButton
- type Os_clockid_t
- type PMPageToPaperMappingType
- type Ptrauth_key
- type Qos_class_t
- type VNAnimalBodyPoseObservation
- func (o *VNAnimalBodyPoseObservation) AvailableJointGroupNames() *foundation.NSArray[*foundation.NSString]
- func (o *VNAnimalBodyPoseObservation) AvailableJointNames() *foundation.NSArray[*foundation.NSString]
- func (o *VNAnimalBodyPoseObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNRecognizedPoint, error)
- func (o *VNAnimalBodyPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint], error)
- type VNBarcodeCompositeType
- type VNBarcodeObservation
- func (o *VNBarcodeObservation) BarcodeDescriptor() *coreimage.CIBarcodeDescriptor
- func (o *VNBarcodeObservation) IsColorInverted() bool
- func (o *VNBarcodeObservation) IsGS1DataCarrier() bool
- func (o *VNBarcodeObservation) PayloadData() *foundation.NSData
- func (o *VNBarcodeObservation) PayloadStringValue() *foundation.NSString
- func (o *VNBarcodeObservation) SupplementalCompositeType() VNBarcodeCompositeType
- func (o *VNBarcodeObservation) SupplementalPayloadData() *foundation.NSData
- func (o *VNBarcodeObservation) SupplementalPayloadString() *foundation.NSString
- func (o *VNBarcodeObservation) Symbology() *foundation.NSString
- type VNCalculateImageAestheticsScoresRequest
- type VNChirality
- type VNCircle
- func VNCircleFromID(id objc.ID) *VNCircle
- func VNCircleZeroCircle() *VNCircle
- func VNGeometryUtilsBoundingCircleForContourError(contour *VNContour) (*VNCircle, error)
- func VNGeometryUtilsBoundingCircleForPointsError(points *foundation.NSArray[*VNPoint]) (*VNCircle, error)
- func VNGeometryUtilsBoundingCircleForSIMDPointsPointCountError(points unsafe.Pointer, pointCount int) (*VNCircle, error)
- func (o *VNCircle) Center() *VNPoint
- func (o *VNCircle) ContainsPoint(point *VNPoint) bool
- func (o *VNCircle) ContainsPointInCircumferentialRingOfWidth(point *VNPoint, ringWidth float64) bool
- func (o *VNCircle) Diameter() float64
- func (o *VNCircle) InitWithCenterDiameter(center *VNPoint, diameter float64) *VNCircle
- func (o *VNCircle) InitWithCenterRadius(center *VNPoint, radius float64) *VNCircle
- func (o *VNCircle) Radius() float64
- type VNClassificationObservation
- func (o *VNClassificationObservation) HasMinimumPrecisionForRecall(minimumPrecision float32, recall float32) bool
- func (o *VNClassificationObservation) HasMinimumRecallForPrecision(minimumRecall float32, precision float32) bool
- func (o *VNClassificationObservation) HasPrecisionRecallCurve() bool
- func (o *VNClassificationObservation) Identifier() *foundation.NSString
- type VNClassifyImageRequest
- type VNContour
- func (o *VNContour) AspectRatio() float32
- func (o *VNContour) ChildContourAtIndexError(childContourIndex uint) (*VNContour, error)
- func (o *VNContour) ChildContourCount() int
- func (o *VNContour) ChildContours() *foundation.NSArray[*VNContour]
- func (o *VNContour) IndexPath() *foundation.NSIndexPath
- func (o *VNContour) NormalizedPath() unsafe.Pointer
- func (o *VNContour) NormalizedPoints() unsafe.Pointer
- func (o *VNContour) PointCount() int
- func (o *VNContour) PolygonApproximationWithEpsilonError(epsilon float32) (*VNContour, error)
- type VNContoursObservation
- func (o *VNContoursObservation) ContourAtIndexError(contourIndex int) (*VNContour, error)
- func (o *VNContoursObservation) ContourAtIndexPathError(indexPath *foundation.NSIndexPath) (*VNContour, error)
- func (o *VNContoursObservation) ContourCount() int
- func (o *VNContoursObservation) NormalizedPath() unsafe.Pointer
- func (o *VNContoursObservation) TopLevelContourCount() int
- func (o *VNContoursObservation) TopLevelContours() *foundation.NSArray[*VNContour]
- type VNCoreMLFeatureValueObservation
- type VNCoreMLModel
- func (o *VNCoreMLModel) FeatureProvider() coreml.MLFeatureProvider
- func (o *VNCoreMLModel) InputImageFeatureName() *foundation.NSString
- func (o *VNCoreMLModel) SetFeatureProvider(featureProvider coreml.MLFeatureProvider)
- func (o *VNCoreMLModel) SetInputImageFeatureName(inputImageFeatureName *foundation.NSString)
- type VNCoreMLRequest
- func (o *VNCoreMLRequest) ImageCropAndScaleOption() VNImageCropAndScaleOption
- func (o *VNCoreMLRequest) InitWithModel(model *VNCoreMLModel) *VNCoreMLRequest
- func (o *VNCoreMLRequest) InitWithModelCompletionHandler(model *VNCoreMLModel, completionHandler func(*VNRequest, unsafe.Pointer)) *VNCoreMLRequest
- func (o *VNCoreMLRequest) Model() *VNCoreMLModel
- func (o *VNCoreMLRequest) SetImageCropAndScaleOption(imageCropAndScaleOption VNImageCropAndScaleOption)
- type VNDetectAnimalBodyPoseRequest
- type VNDetectBarcodesRequest
- func (o *VNDetectBarcodesRequest) CoalesceCompositeSymbologies() bool
- func (o *VNDetectBarcodesRequest) SetCoalesceCompositeSymbologies(coalesceCompositeSymbologies bool)
- func (o *VNDetectBarcodesRequest) SetSymbologies(symbologies *foundation.NSArray[*foundation.NSString])
- func (o *VNDetectBarcodesRequest) SupportedSymbologiesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
- func (o *VNDetectBarcodesRequest) Symbologies() *foundation.NSArray[*foundation.NSString]
- type VNDetectContoursRequest
- func (o *VNDetectContoursRequest) ContrastAdjustment() float32
- func (o *VNDetectContoursRequest) ContrastPivot() *foundation.NSNumber
- func (o *VNDetectContoursRequest) DetectDarkOnLight() booldeprecated
- func (o *VNDetectContoursRequest) DetectsDarkOnLight() bool
- func (o *VNDetectContoursRequest) MaximumImageDimension() uint
- func (o *VNDetectContoursRequest) SetContrastAdjustment(contrastAdjustment float32)
- func (o *VNDetectContoursRequest) SetContrastPivot(contrastPivot *foundation.NSNumber)
- func (o *VNDetectContoursRequest) SetDetectDarkOnLight(detectDarkOnLight bool)deprecated
- func (o *VNDetectContoursRequest) SetDetectsDarkOnLight(detectsDarkOnLight bool)
- func (o *VNDetectContoursRequest) SetMaximumImageDimension(maximumImageDimension uint)
- type VNDetectDocumentSegmentationRequest
- type VNDetectFaceCaptureQualityRequest
- type VNDetectFaceLandmarksRequest
- type VNDetectFaceRectanglesRequest
- type VNDetectHorizonRequest
- type VNDetectHumanBodyPose3DRequest
- func (o *VNDetectHumanBodyPose3DRequest) Init() *VNDetectHumanBodyPose3DRequest
- func (o *VNDetectHumanBodyPose3DRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNDetectHumanBodyPose3DRequest
- func (o *VNDetectHumanBodyPose3DRequest) SupportedJointNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
- func (o *VNDetectHumanBodyPose3DRequest) SupportedJointsGroupNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
- type VNDetectHumanBodyPoseRequest
- type VNDetectHumanHandPoseRequest
- func (o *VNDetectHumanHandPoseRequest) MaximumHandCount() uint
- func (o *VNDetectHumanHandPoseRequest) SetMaximumHandCount(maximumHandCount uint)
- func (o *VNDetectHumanHandPoseRequest) SupportedJointNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
- func (o *VNDetectHumanHandPoseRequest) SupportedJointsGroupNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
- type VNDetectHumanRectanglesRequest
- type VNDetectRectanglesRequest
- func (o *VNDetectRectanglesRequest) MaximumAspectRatio() float32
- func (o *VNDetectRectanglesRequest) MaximumObservations() uint
- func (o *VNDetectRectanglesRequest) MinimumAspectRatio() float32
- func (o *VNDetectRectanglesRequest) MinimumConfidence() float32
- func (o *VNDetectRectanglesRequest) MinimumSize() float32
- func (o *VNDetectRectanglesRequest) QuadratureTolerance() float32
- func (o *VNDetectRectanglesRequest) SetMaximumAspectRatio(maximumAspectRatio float32)
- func (o *VNDetectRectanglesRequest) SetMaximumObservations(maximumObservations uint)
- func (o *VNDetectRectanglesRequest) SetMinimumAspectRatio(minimumAspectRatio float32)
- func (o *VNDetectRectanglesRequest) SetMinimumConfidence(minimumConfidence float32)
- func (o *VNDetectRectanglesRequest) SetMinimumSize(minimumSize float32)
- func (o *VNDetectRectanglesRequest) SetQuadratureTolerance(quadratureTolerance float32)
- type VNDetectTextRectanglesRequest
- type VNDetectTrajectoriesRequest
- func (o *VNDetectTrajectoriesRequest) InitWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler(frameAnalysisSpacing coremedia.CMTime, trajectoryLength int, ...) *VNDetectTrajectoriesRequest
- func (o *VNDetectTrajectoriesRequest) MaximumObjectSize() float32deprecated
- func (o *VNDetectTrajectoriesRequest) MinimumObjectSize() float32deprecated
- func (o *VNDetectTrajectoriesRequest) ObjectMaximumNormalizedRadius() float32
- func (o *VNDetectTrajectoriesRequest) ObjectMinimumNormalizedRadius() float32
- func (o *VNDetectTrajectoriesRequest) SetMaximumObjectSize(maximumObjectSize float32)deprecated
- func (o *VNDetectTrajectoriesRequest) SetMinimumObjectSize(minimumObjectSize float32)deprecated
- func (o *VNDetectTrajectoriesRequest) SetObjectMaximumNormalizedRadius(objectMaximumNormalizedRadius float32)
- func (o *VNDetectTrajectoriesRequest) SetObjectMinimumNormalizedRadius(objectMinimumNormalizedRadius float32)
- func (o *VNDetectTrajectoriesRequest) SetTargetFrameTime(targetFrameTime coremedia.CMTime)
- func (o *VNDetectTrajectoriesRequest) TargetFrameTime() coremedia.CMTime
- func (o *VNDetectTrajectoriesRequest) TrajectoryLength() int
- type VNDetectedObjectObservation
- func VNDetectedObjectObservationFromID(id objc.ID) *VNDetectedObjectObservation
- func VNDetectedObjectObservationObservationWithBoundingBox(boundingBox corefoundation.CGRect) *VNDetectedObjectObservation
- func VNDetectedObjectObservationObservationWithRequestRevisionBoundingBox(requestRevision uint, boundingBox corefoundation.CGRect) *VNDetectedObjectObservation
- type VNDetectedPoint
- type VNElementType
- type VNErrorCode
- type VNFaceLandmarkRegion
- type VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarkRegion2D) NormalizedPoints() unsafe.Pointer
- func (o *VNFaceLandmarkRegion2D) PointsClassification() VNPointsClassification
- func (o *VNFaceLandmarkRegion2D) PointsInImageOfSize(imageSize corefoundation.CGSize) *corefoundation.CGPoint
- func (o *VNFaceLandmarkRegion2D) PrecisionEstimatesPerPoint() *foundation.NSArray[*foundation.NSNumber]
- type VNFaceLandmarks
- type VNFaceLandmarks2D
- func (o *VNFaceLandmarks2D) AllPoints() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) FaceContour() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) InnerLips() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) LeftEye() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) LeftEyebrow() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) LeftPupil() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) MedianLine() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) Nose() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) NoseCrest() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) OuterLips() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) RightEye() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) RightEyebrow() *VNFaceLandmarkRegion2D
- func (o *VNFaceLandmarks2D) RightPupil() *VNFaceLandmarkRegion2D
- type VNFaceObservation
- func VNFaceObservationFaceObservationWithRequestRevisionBoundingBoxRollYaw(requestRevision uint, boundingBox corefoundation.CGRect, ...) *VNFaceObservation
- func VNFaceObservationFaceObservationWithRequestRevisionBoundingBoxRollYawPitch(requestRevision uint, boundingBox corefoundation.CGRect, ...) *VNFaceObservation
- func VNFaceObservationFromID(id objc.ID) *VNFaceObservation
- type VNFaceObservationAccepting
- type VNFeaturePrintObservation
- func (o *VNFeaturePrintObservation) ComputeDistanceToFeaturePrintObservationError(outDistance *float32, featurePrint *VNFeaturePrintObservation) (bool, error)
- func (o *VNFeaturePrintObservation) Data() *foundation.NSData
- func (o *VNFeaturePrintObservation) ElementCount() uint
- func (o *VNFeaturePrintObservation) ElementType() VNElementType
- type VNGenerateAttentionBasedSaliencyImageRequest
- type VNGenerateForegroundInstanceMaskRequest
- type VNGenerateImageFeaturePrintRequest
- type VNGenerateObjectnessBasedSaliencyImageRequest
- type VNGenerateOpticalFlowRequest
- func (o *VNGenerateOpticalFlowRequest) ComputationAccuracy() VNGenerateOpticalFlowRequestComputationAccuracy
- func (o *VNGenerateOpticalFlowRequest) KeepNetworkOutput() bool
- func (o *VNGenerateOpticalFlowRequest) OutputPixelFormat() uint
- func (o *VNGenerateOpticalFlowRequest) SetComputationAccuracy(computationAccuracy VNGenerateOpticalFlowRequestComputationAccuracy)
- func (o *VNGenerateOpticalFlowRequest) SetKeepNetworkOutput(keepNetworkOutput bool)
- func (o *VNGenerateOpticalFlowRequest) SetOutputPixelFormat(outputPixelFormat uint)
- type VNGenerateOpticalFlowRequestComputationAccuracy
- type VNGeneratePersonInstanceMaskRequest
- type VNGeneratePersonSegmentationRequest
- func (o *VNGeneratePersonSegmentationRequest) Init() *VNGeneratePersonSegmentationRequest
- func (o *VNGeneratePersonSegmentationRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNGeneratePersonSegmentationRequest
- func (o *VNGeneratePersonSegmentationRequest) OutputPixelFormat() uint
- func (o *VNGeneratePersonSegmentationRequest) QualityLevel() VNGeneratePersonSegmentationRequestQualityLevel
- func (o *VNGeneratePersonSegmentationRequest) SetOutputPixelFormat(outputPixelFormat uint)
- func (o *VNGeneratePersonSegmentationRequest) SetQualityLevel(qualityLevel VNGeneratePersonSegmentationRequestQualityLevel)
- func (o *VNGeneratePersonSegmentationRequest) SupportedOutputPixelFormatsAndReturnError() (*foundation.NSArray[*foundation.NSNumber], error)
- type VNGeneratePersonSegmentationRequestQualityLevel
- type VNGeometryUtils
- type VNHomographicImageRegistrationRequest
- type VNHorizonObservation
- type VNHumanBodyPose3DObservation
- func (o *VNHumanBodyPose3DObservation) AvailableJointNames() *foundation.NSArray[*foundation.NSString]
- func (o *VNHumanBodyPose3DObservation) AvailableJointsGroupNames() *foundation.NSArray[*foundation.NSString]
- func (o *VNHumanBodyPose3DObservation) BodyHeight() float32
- func (o *VNHumanBodyPose3DObservation) CameraOriginMatrix() unsafe.Pointer
- func (o *VNHumanBodyPose3DObservation) GetCameraRelativePositionForJointNameError(modelPositionOut unsafe.Pointer, jointName *foundation.NSString) (bool, error)
- func (o *VNHumanBodyPose3DObservation) HeightEstimation() VNHumanBodyPose3DObservationHeightEstimation
- func (o *VNHumanBodyPose3DObservation) ParentJointNameForJointName(jointName *foundation.NSString) *foundation.NSString
- func (o *VNHumanBodyPose3DObservation) PointInImageForJointNameError(jointName *foundation.NSString) (*VNPoint, error)
- func (o *VNHumanBodyPose3DObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNHumanBodyRecognizedPoint3D, error)
- func (o *VNHumanBodyPose3DObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNHumanBodyRecognizedPoint3D], ...)
- type VNHumanBodyPose3DObservationHeightEstimation
- type VNHumanBodyPoseObservation
- func (o *VNHumanBodyPoseObservation) AvailableJointNames() *foundation.NSArray[*foundation.NSString]
- func (o *VNHumanBodyPoseObservation) AvailableJointsGroupNames() *foundation.NSArray[*foundation.NSString]
- func (o *VNHumanBodyPoseObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNRecognizedPoint, error)
- func (o *VNHumanBodyPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint], error)
- type VNHumanBodyRecognizedPoint3D
- type VNHumanHandPoseObservation
- func (o *VNHumanHandPoseObservation) AvailableJointNames() *foundation.NSArray[*foundation.NSString]
- func (o *VNHumanHandPoseObservation) AvailableJointsGroupNames() *foundation.NSArray[*foundation.NSString]
- func (o *VNHumanHandPoseObservation) Chirality() VNChirality
- func (o *VNHumanHandPoseObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNRecognizedPoint, error)
- func (o *VNHumanHandPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint], error)
- type VNHumanObservation
- type VNImageAestheticsScoresObservation
- type VNImageAlignmentObservation
- type VNImageBasedRequest
- type VNImageCropAndScaleOption
- type VNImageHomographicAlignmentObservation
- type VNImageRegistrationRequest
- type VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithCGImageOptions(image unsafe.Pointer, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithCGImageOrientationOptions(image unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithCIImageOptions(image *coreimage.CIImage, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithCIImageOrientationOptions(image *coreimage.CIImage, orientation imageio.CGImagePropertyOrientation, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithCMSampleBufferDepthDataOrientationOptions(sampleBuffer unsafe.Pointer, depthData *avfoundation.AVDepthData, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithCMSampleBufferOptions(sampleBuffer unsafe.Pointer, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithCMSampleBufferOrientationOptions(sampleBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithCVPixelBufferDepthDataOrientationOptions(pixelBuffer unsafe.Pointer, depthData *avfoundation.AVDepthData, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithCVPixelBufferOptions(pixelBuffer unsafe.Pointer, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithCVPixelBufferOrientationOptions(pixelBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithDataOptions(imageData *foundation.NSData, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithDataOrientationOptions(imageData *foundation.NSData, orientation imageio.CGImagePropertyOrientation, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithURLOptions(imageURL *foundation.NSURL, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) InitWithURLOrientationOptions(imageURL *foundation.NSURL, orientation imageio.CGImagePropertyOrientation, ...) *VNImageRequestHandler
- func (o *VNImageRequestHandler) PerformRequestsError(requests *foundation.NSArray[*VNRequest]) (bool, error)
- type VNImageTranslationAlignmentObservation
- type VNInstanceMaskObservation
- func (o *VNInstanceMaskObservation) AllInstances() *foundation.NSIndexSet
- func (o *VNInstanceMaskObservation) GenerateMaskForInstancesError(instances *foundation.NSIndexSet) (unsafe.Pointer, error)
- func (o *VNInstanceMaskObservation) GenerateMaskedImageOfInstancesFromRequestHandlerCroppedToInstancesExtentError(instances *foundation.NSIndexSet, requestHandler *VNImageRequestHandler, ...) (unsafe.Pointer, error)
- func (o *VNInstanceMaskObservation) GenerateScaledMaskForImageForInstancesFromRequestHandlerError(instances *foundation.NSIndexSet, requestHandler *VNImageRequestHandler) (unsafe.Pointer, error)
- func (o *VNInstanceMaskObservation) InstanceMask() unsafe.Pointer
- type VNObservation
- type VNPixelBufferObservation
- type VNPoint
- func (o *VNPoint) DistanceToPoint(point *VNPoint) float64
- func (o *VNPoint) InitWithLocation(location corefoundation.CGPoint) *VNPoint
- func (o *VNPoint) InitWithXY(x float64, y float64) *VNPoint
- func (o *VNPoint) Location() corefoundation.CGPoint
- func (o *VNPoint) X() float64
- func (o *VNPoint) Y() float64
- type VNPoint3D
- type VNPointsClassification
- type VNRecognizeAnimalsRequest
- type VNRecognizeTextRequest
- func (o *VNRecognizeTextRequest) AutomaticallyDetectsLanguage() bool
- func (o *VNRecognizeTextRequest) CustomWords() *foundation.NSArray[*foundation.NSString]
- func (o *VNRecognizeTextRequest) MinimumTextHeight() float32
- func (o *VNRecognizeTextRequest) RecognitionLanguages() *foundation.NSArray[*foundation.NSString]
- func (o *VNRecognizeTextRequest) RecognitionLevel() VNRequestTextRecognitionLevel
- func (o *VNRecognizeTextRequest) SetAutomaticallyDetectsLanguage(automaticallyDetectsLanguage bool)
- func (o *VNRecognizeTextRequest) SetCustomWords(customWords *foundation.NSArray[*foundation.NSString])
- func (o *VNRecognizeTextRequest) SetMinimumTextHeight(minimumTextHeight float32)
- func (o *VNRecognizeTextRequest) SetRecognitionLanguages(recognitionLanguages *foundation.NSArray[*foundation.NSString])
- func (o *VNRecognizeTextRequest) SetRecognitionLevel(recognitionLevel VNRequestTextRecognitionLevel)
- func (o *VNRecognizeTextRequest) SetUsesLanguageCorrection(usesLanguageCorrection bool)
- func (o *VNRecognizeTextRequest) SupportedRecognitionLanguagesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
- func (o *VNRecognizeTextRequest) UsesLanguageCorrection() bool
- type VNRecognizedObjectObservation
- type VNRecognizedPoint
- type VNRecognizedPoint3D
- type VNRecognizedPoints3DObservation
- func (o *VNRecognizedPoints3DObservation) AvailableGroupKeys() *foundation.NSArray[*foundation.NSString]
- func (o *VNRecognizedPoints3DObservation) AvailableKeys() *foundation.NSArray[*foundation.NSString]
- func (o *VNRecognizedPoints3DObservation) RecognizedPointForKeyError(pointKey *foundation.NSString) (*VNRecognizedPoint3D, error)
- func (o *VNRecognizedPoints3DObservation) RecognizedPointsForGroupKeyError(groupKey *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint3D], error)
- type VNRecognizedPointsObservation
- func (o *VNRecognizedPointsObservation) AvailableGroupKeys() *foundation.NSArray[*foundation.NSString]
- func (o *VNRecognizedPointsObservation) AvailableKeys() *foundation.NSArray[*foundation.NSString]
- func (o *VNRecognizedPointsObservation) KeypointsMultiArrayAndReturnError() (*coreml.MLMultiArray, error)
- func (o *VNRecognizedPointsObservation) RecognizedPointForKeyError(pointKey *foundation.NSString) (*VNRecognizedPoint, error)
- func (o *VNRecognizedPointsObservation) RecognizedPointsForGroupKeyError(groupKey *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint], error)
- type VNRecognizedText
- type VNRecognizedTextObservation
- type VNRectangleObservation
- func VNRectangleObservationFromID(id objc.ID) *VNRectangleObservation
- func VNRectangleObservationRectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision uint, topLeft corefoundation.CGPoint, ...) *VNRectangleObservation
- func VNRectangleObservationRectangleObservationWithRequestRevisionTopLeftTopRightBottomRightBottomLeft(requestRevision uint, topLeft corefoundation.CGPoint, ...) *VNRectangleObservation
- type VNRequest
- func (o *VNRequest) Cancel()
- func (o *VNRequest) CompletionHandler() objc.Block
- func (o *VNRequest) ComputeDeviceForComputeStage(computeStage *foundation.NSString) coreml.MLComputeDeviceProtocol
- func (o *VNRequest) Init() *VNRequest
- func (o *VNRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNRequest
- func (o *VNRequest) PreferBackgroundProcessing() bool
- func (o *VNRequest) Results() *foundation.NSArray[*VNObservation]
- func (o *VNRequest) Revision() uint
- func (o *VNRequest) SetComputeDeviceForComputeStage(computeDevice coreml.MLComputeDeviceProtocol, ...)
- func (o *VNRequest) SetPreferBackgroundProcessing(preferBackgroundProcessing bool)
- func (o *VNRequest) SetRevision(revision uint)
- func (o *VNRequest) SetUsesCPUOnly(usesCPUOnly bool)deprecated
- func (o *VNRequest) SupportedComputeStageDevicesAndReturnError() (*foundation.NSDictionary[*foundation.NSString, objc.ID], error)
- func (o *VNRequest) UsesCPUOnly() bool
- type VNRequestFaceLandmarksConstellation
- type VNRequestProgressProviding
- type VNRequestRevisionProviding
- type VNRequestTextRecognitionLevel
- type VNRequestTrackingLevel
- type VNSaliencyImageObservation
- type VNSequenceRequestHandler
- func (o *VNSequenceRequestHandler) Init() *VNSequenceRequestHandler
- func (o *VNSequenceRequestHandler) PerformRequestsOnCGImageError(requests *foundation.NSArray[*VNRequest], image unsafe.Pointer) (bool, error)
- func (o *VNSequenceRequestHandler) PerformRequestsOnCGImageOrientationError(requests *foundation.NSArray[*VNRequest], image unsafe.Pointer, ...) (bool, error)
- func (o *VNSequenceRequestHandler) PerformRequestsOnCIImageError(requests *foundation.NSArray[*VNRequest], image *coreimage.CIImage) (bool, error)
- func (o *VNSequenceRequestHandler) PerformRequestsOnCIImageOrientationError(requests *foundation.NSArray[*VNRequest], image *coreimage.CIImage, ...) (bool, error)
- func (o *VNSequenceRequestHandler) PerformRequestsOnCMSampleBufferError(requests *foundation.NSArray[*VNRequest], sampleBuffer unsafe.Pointer) (bool, error)
- func (o *VNSequenceRequestHandler) PerformRequestsOnCMSampleBufferOrientationError(requests *foundation.NSArray[*VNRequest], sampleBuffer unsafe.Pointer, ...) (bool, error)
- func (o *VNSequenceRequestHandler) PerformRequestsOnCVPixelBufferError(requests *foundation.NSArray[*VNRequest], pixelBuffer unsafe.Pointer) (bool, error)
- func (o *VNSequenceRequestHandler) PerformRequestsOnCVPixelBufferOrientationError(requests *foundation.NSArray[*VNRequest], pixelBuffer unsafe.Pointer, ...) (bool, error)
- func (o *VNSequenceRequestHandler) PerformRequestsOnImageDataError(requests *foundation.NSArray[*VNRequest], imageData *foundation.NSData) (bool, error)
- func (o *VNSequenceRequestHandler) PerformRequestsOnImageDataOrientationError(requests *foundation.NSArray[*VNRequest], imageData *foundation.NSData, ...) (bool, error)
- func (o *VNSequenceRequestHandler) PerformRequestsOnImageURLError(requests *foundation.NSArray[*VNRequest], imageURL *foundation.NSURL) (bool, error)
- func (o *VNSequenceRequestHandler) PerformRequestsOnImageURLOrientationError(requests *foundation.NSArray[*VNRequest], imageURL *foundation.NSURL, ...) (bool, error)
- type VNStatefulRequest
- type VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCGImageOptions(cgImage unsafe.Pointer, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCGImageOptionsCompletionHandler(cgImage unsafe.Pointer, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCGImageOrientationOptions(cgImage unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCIImageOptions(ciImage *coreimage.CIImage, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCIImageOptionsCompletionHandler(ciImage *coreimage.CIImage, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCIImageOrientationOptions(ciImage *coreimage.CIImage, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage *coreimage.CIImage, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOptions(sampleBuffer unsafe.Pointer, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer unsafe.Pointer, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer unsafe.Pointer, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer unsafe.Pointer, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedImageDataOptions(imageData *foundation.NSData, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedImageDataOptionsCompletionHandler(imageData *foundation.NSData, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedImageDataOrientationOptions(imageData *foundation.NSData, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData *foundation.NSData, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedImageURLOptions(imageURL *foundation.NSURL, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedImageURLOptionsCompletionHandler(imageURL *foundation.NSURL, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedImageURLOrientationOptions(imageURL *foundation.NSURL, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- func (o *VNTargetedImageRequest) InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL *foundation.NSURL, orientation imageio.CGImagePropertyOrientation, ...) *VNTargetedImageRequest
- type VNTextObservation
- type VNTrackHomographicImageRegistrationRequest
- type VNTrackObjectRequest
- type VNTrackOpticalFlowRequest
- func (o *VNTrackOpticalFlowRequest) ComputationAccuracy() VNTrackOpticalFlowRequestComputationAccuracy
- func (o *VNTrackOpticalFlowRequest) Init() *VNTrackOpticalFlowRequest
- func (o *VNTrackOpticalFlowRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNTrackOpticalFlowRequest
- func (o *VNTrackOpticalFlowRequest) KeepNetworkOutput() bool
- func (o *VNTrackOpticalFlowRequest) OutputPixelFormat() uint
- func (o *VNTrackOpticalFlowRequest) SetComputationAccuracy(computationAccuracy VNTrackOpticalFlowRequestComputationAccuracy)
- func (o *VNTrackOpticalFlowRequest) SetKeepNetworkOutput(keepNetworkOutput bool)
- func (o *VNTrackOpticalFlowRequest) SetOutputPixelFormat(outputPixelFormat uint)
- type VNTrackOpticalFlowRequestComputationAccuracy
- type VNTrackRectangleRequest
- type VNTrackTranslationalImageRegistrationRequest
- type VNTrackingRequest
- func (o *VNTrackingRequest) InputObservation() *VNDetectedObjectObservation
- func (o *VNTrackingRequest) IsLastFrame() bool
- func (o *VNTrackingRequest) SetInputObservation(inputObservation *VNDetectedObjectObservation)
- func (o *VNTrackingRequest) SetLastFrame(lastFrame bool)
- func (o *VNTrackingRequest) SetTrackingLevel(trackingLevel VNRequestTrackingLevel)
- func (o *VNTrackingRequest) SupportedNumberOfTrackersAndReturnError() (uint, error)
- func (o *VNTrackingRequest) TrackingLevel() VNRequestTrackingLevel
- type VNTrajectoryObservation
- type VNTranslationalImageRegistrationRequest
- type VNVector
- func VNVectorFromID(id objc.ID) *VNVector
- func VNVectorUnitVectorForVector(vector *VNVector) *VNVector
- func VNVectorVectorByAddingVectorToVector(v1 *VNVector, v2 *VNVector) *VNVector
- func VNVectorVectorByMultiplyingVectorByScalar(vector *VNVector, scalar float64) *VNVector
- func VNVectorVectorBySubtractingVectorFromVector(v1 *VNVector, v2 *VNVector) *VNVector
- func VNVectorZeroVector() *VNVector
- func (o *VNVector) InitWithRTheta(r float64, theta float64) *VNVector
- func (o *VNVector) InitWithVectorHeadTail(head *VNPoint, tail *VNPoint) *VNVector
- func (o *VNVector) InitWithXComponentYComponent(x float64, y float64) *VNVector
- func (o *VNVector) Length() float64
- func (o *VNVector) R() float64
- func (o *VNVector) SquaredLength() float64
- func (o *VNVector) Theta() float64
- func (o *VNVector) X() float64
- func (o *VNVector) Y() float64
- type VNVideoProcessor
- func (o *VNVideoProcessor) AddRequestProcessingOptionsError(request *VNRequest, ...) (bool, error)
- func (o *VNVideoProcessor) AddRequestWithProcessingOptionsError(request *VNRequest, ...) (bool, error)
- func (o *VNVideoProcessor) AnalyzeTimeRangeError(timeRange coremedia.CMTimeRange) (bool, error)
- func (o *VNVideoProcessor) AnalyzeWithTimeRangeError(timeRange coremedia.CMTimeRange) (bool, error)
- func (o *VNVideoProcessor) Cancel()
- func (o *VNVideoProcessor) InitWithURL(videoURL *foundation.NSURL) *VNVideoProcessor
- func (o *VNVideoProcessor) RemoveRequestError(request *VNRequest) (bool, error)
- type VNVideoProcessorCadence
- type VNVideoProcessorFrameRateCadence
- type VNVideoProcessorRequestProcessingOptions
- type VNVideoProcessorTimeIntervalCadence
- type Virtual_memory_guard_exception_code_t
- type Xpc_listener_create_flags_t
- type Xpc_session_create_flags_t
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SymbolAvailable ¶
SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.
func VNAnimalBodyPoseObservationJointNameLeftBackElbow ¶
func VNAnimalBodyPoseObservationJointNameLeftBackElbow() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameLeftBackKnee ¶
func VNAnimalBodyPoseObservationJointNameLeftBackKnee() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameLeftBackPaw ¶
func VNAnimalBodyPoseObservationJointNameLeftBackPaw() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameLeftEarBottom ¶
func VNAnimalBodyPoseObservationJointNameLeftEarBottom() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameLeftEarMiddle ¶
func VNAnimalBodyPoseObservationJointNameLeftEarMiddle() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameLeftEarTop ¶
func VNAnimalBodyPoseObservationJointNameLeftEarTop() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameLeftEye ¶
func VNAnimalBodyPoseObservationJointNameLeftEye() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameLeftFrontElbow ¶
func VNAnimalBodyPoseObservationJointNameLeftFrontElbow() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameLeftFrontKnee ¶
func VNAnimalBodyPoseObservationJointNameLeftFrontKnee() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameLeftFrontPaw ¶
func VNAnimalBodyPoseObservationJointNameLeftFrontPaw() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameNeck ¶
func VNAnimalBodyPoseObservationJointNameNeck() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameNose ¶
func VNAnimalBodyPoseObservationJointNameNose() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameRightBackElbow ¶
func VNAnimalBodyPoseObservationJointNameRightBackElbow() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameRightBackKnee ¶
func VNAnimalBodyPoseObservationJointNameRightBackKnee() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameRightBackPaw ¶
func VNAnimalBodyPoseObservationJointNameRightBackPaw() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameRightEarBottom ¶
func VNAnimalBodyPoseObservationJointNameRightEarBottom() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameRightEarMiddle ¶
func VNAnimalBodyPoseObservationJointNameRightEarMiddle() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameRightEarTop ¶
func VNAnimalBodyPoseObservationJointNameRightEarTop() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameRightEye ¶
func VNAnimalBodyPoseObservationJointNameRightEye() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameRightFrontElbow ¶
func VNAnimalBodyPoseObservationJointNameRightFrontElbow() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameRightFrontKnee ¶
func VNAnimalBodyPoseObservationJointNameRightFrontKnee() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameRightFrontPaw ¶
func VNAnimalBodyPoseObservationJointNameRightFrontPaw() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameTailBottom ¶
func VNAnimalBodyPoseObservationJointNameTailBottom() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameTailMiddle ¶
func VNAnimalBodyPoseObservationJointNameTailMiddle() *foundation.NSString
func VNAnimalBodyPoseObservationJointNameTailTop ¶
func VNAnimalBodyPoseObservationJointNameTailTop() *foundation.NSString
func VNAnimalBodyPoseObservationJointsGroupNameAll ¶
func VNAnimalBodyPoseObservationJointsGroupNameAll() *foundation.NSString
func VNAnimalBodyPoseObservationJointsGroupNameForelegs ¶
func VNAnimalBodyPoseObservationJointsGroupNameForelegs() *foundation.NSString
func VNAnimalBodyPoseObservationJointsGroupNameHead ¶
func VNAnimalBodyPoseObservationJointsGroupNameHead() *foundation.NSString
func VNAnimalBodyPoseObservationJointsGroupNameHindlegs ¶
func VNAnimalBodyPoseObservationJointsGroupNameHindlegs() *foundation.NSString
func VNAnimalBodyPoseObservationJointsGroupNameTail ¶
func VNAnimalBodyPoseObservationJointsGroupNameTail() *foundation.NSString
func VNAnimalBodyPoseObservationJointsGroupNameTrunk ¶
func VNAnimalBodyPoseObservationJointsGroupNameTrunk() *foundation.NSString
func VNAnimalIdentifierCat ¶
func VNAnimalIdentifierCat() *foundation.NSString
func VNAnimalIdentifierDog ¶
func VNAnimalIdentifierDog() *foundation.NSString
func VNBarcodeSymbologyAztec ¶
func VNBarcodeSymbologyAztec() *foundation.NSString
func VNBarcodeSymbologyCodabar ¶
func VNBarcodeSymbologyCodabar() *foundation.NSString
func VNBarcodeSymbologyCode39 ¶
func VNBarcodeSymbologyCode39() *foundation.NSString
func VNBarcodeSymbologyCode39Checksum ¶
func VNBarcodeSymbologyCode39Checksum() *foundation.NSString
func VNBarcodeSymbologyCode39FullASCII ¶
func VNBarcodeSymbologyCode39FullASCII() *foundation.NSString
func VNBarcodeSymbologyCode39FullASCIIChecksum ¶
func VNBarcodeSymbologyCode39FullASCIIChecksum() *foundation.NSString
func VNBarcodeSymbologyCode93 ¶
func VNBarcodeSymbologyCode93() *foundation.NSString
func VNBarcodeSymbologyCode93i ¶
func VNBarcodeSymbologyCode93i() *foundation.NSString
func VNBarcodeSymbologyCode128 ¶
func VNBarcodeSymbologyCode128() *foundation.NSString
func VNBarcodeSymbologyDataMatrix ¶
func VNBarcodeSymbologyDataMatrix() *foundation.NSString
func VNBarcodeSymbologyEAN8 ¶
func VNBarcodeSymbologyEAN8() *foundation.NSString
func VNBarcodeSymbologyEAN13 ¶
func VNBarcodeSymbologyEAN13() *foundation.NSString
func VNBarcodeSymbologyGS1DataBar ¶
func VNBarcodeSymbologyGS1DataBar() *foundation.NSString
func VNBarcodeSymbologyGS1DataBarExpanded ¶
func VNBarcodeSymbologyGS1DataBarExpanded() *foundation.NSString
func VNBarcodeSymbologyGS1DataBarLimited ¶
func VNBarcodeSymbologyGS1DataBarLimited() *foundation.NSString
func VNBarcodeSymbologyI2of5 ¶
func VNBarcodeSymbologyI2of5() *foundation.NSString
func VNBarcodeSymbologyI2of5Checksum ¶
func VNBarcodeSymbologyI2of5Checksum() *foundation.NSString
func VNBarcodeSymbologyITF14 ¶
func VNBarcodeSymbologyITF14() *foundation.NSString
func VNBarcodeSymbologyMSIPlessey ¶
func VNBarcodeSymbologyMSIPlessey() *foundation.NSString
func VNBarcodeSymbologyMicroPDF417 ¶
func VNBarcodeSymbologyMicroPDF417() *foundation.NSString
func VNBarcodeSymbologyMicroQR ¶
func VNBarcodeSymbologyMicroQR() *foundation.NSString
func VNBarcodeSymbologyPDF417 ¶
func VNBarcodeSymbologyPDF417() *foundation.NSString
func VNBarcodeSymbologyQR ¶
func VNBarcodeSymbologyQR() *foundation.NSString
func VNBarcodeSymbologyUPCE ¶
func VNBarcodeSymbologyUPCE() *foundation.NSString
func VNBodyLandmarkKeyLeftAnkle
deprecated
func VNBodyLandmarkKeyLeftAnkle() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyLeftEar
deprecated
func VNBodyLandmarkKeyLeftEar() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyLeftElbow
deprecated
func VNBodyLandmarkKeyLeftElbow() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyLeftEye
deprecated
func VNBodyLandmarkKeyLeftEye() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyLeftHip
deprecated
func VNBodyLandmarkKeyLeftHip() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyLeftKnee
deprecated
func VNBodyLandmarkKeyLeftKnee() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyLeftShoulder
deprecated
func VNBodyLandmarkKeyLeftShoulder() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyLeftWrist
deprecated
func VNBodyLandmarkKeyLeftWrist() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyNeck
deprecated
func VNBodyLandmarkKeyNeck() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyNose
deprecated
func VNBodyLandmarkKeyNose() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyRightAnkle
deprecated
func VNBodyLandmarkKeyRightAnkle() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyRightEar
deprecated
func VNBodyLandmarkKeyRightEar() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyRightElbow
deprecated
func VNBodyLandmarkKeyRightElbow() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyRightEye
deprecated
func VNBodyLandmarkKeyRightEye() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyRightHip
deprecated
func VNBodyLandmarkKeyRightHip() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyRightKnee
deprecated
func VNBodyLandmarkKeyRightKnee() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyRightShoulder
deprecated
func VNBodyLandmarkKeyRightShoulder() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyRightWrist
deprecated
func VNBodyLandmarkKeyRightWrist() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkKeyRoot
deprecated
func VNBodyLandmarkKeyRoot() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkRegionKeyFace
deprecated
func VNBodyLandmarkRegionKeyFace() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkRegionKeyLeftArm
deprecated
func VNBodyLandmarkRegionKeyLeftArm() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkRegionKeyLeftLeg
deprecated
func VNBodyLandmarkRegionKeyLeftLeg() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkRegionKeyRightArm
deprecated
func VNBodyLandmarkRegionKeyRightArm() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkRegionKeyRightLeg
deprecated
func VNBodyLandmarkRegionKeyRightLeg() *foundation.NSString
Deprecated: since macOS 11.0.
func VNBodyLandmarkRegionKeyTorso
deprecated
func VNBodyLandmarkRegionKeyTorso() *foundation.NSString
Deprecated: since macOS 11.0.
func VNClassifyImageRequestKnownClassificationsForRevisionError ¶
func VNClassifyImageRequestKnownClassificationsForRevisionError(requestRevision uint) (*foundation.NSArray[*VNClassificationObservation], error)
Requests the collection of classifications that the Vision framework recognizes. Deprecated: since macOS 12.0.
func VNComputeStageMain ¶
func VNComputeStageMain() *foundation.NSString
@brief The stage of a request where the main functionality is being performed. @discussion All requests will have this compute stage.
func VNComputeStagePostProcessing ¶
func VNComputeStagePostProcessing() *foundation.NSString
@brief A compute stage for additional analysis and/or conversion of the data produced by the `VNComputeStageMain`. @discussion This is an optional compute stage that some requests may expose.
func VNDetectBarcodesRequestSupportedSymbologies ¶
func VNDetectBarcodesRequestSupportedSymbologies() *foundation.NSArray[*foundation.NSString]
@brief Obtain the collection of barcode symbologies currently recognized by the Vision framework. @discussion Calling this method could be a potentially expensive operation. @return An array of VNBarcodeSymbology objects describing the symbologies currently supported by the Vision framework. Deprecated: since macOS 12.0.
func VNDetectFaceLandmarksRequestRevisionSupportsConstellation ¶
func VNDetectFaceLandmarksRequestRevisionSupportsConstellation(requestRevision uint, constellation VNRequestFaceLandmarksConstellation) bool
Returns a Boolean value that indicates whether a revision supports a constellation.
func VNDetectHumanBodyPoseRequestSupportedJointNamesForRevisionError ¶
func VNDetectHumanBodyPoseRequestSupportedJointNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)
Retrieves the supported joint names for a revision. Deprecated: since macOS 14.0.
func VNDetectHumanBodyPoseRequestSupportedJointsGroupNamesForRevisionError ¶
func VNDetectHumanBodyPoseRequestSupportedJointsGroupNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)
Retrieves the supported joint group names for a revision. Deprecated: since macOS 14.0.
func VNDetectHumanHandPoseRequestSupportedJointNamesForRevisionError ¶
func VNDetectHumanHandPoseRequestSupportedJointNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)
Retrieves the supported joint names for a revision. Deprecated: since macOS 14.0.
func VNDetectHumanHandPoseRequestSupportedJointsGroupNamesForRevisionError ¶
func VNDetectHumanHandPoseRequestSupportedJointsGroupNamesForRevisionError(revision uint) (*foundation.NSArray[*foundation.NSString], error)
Retrieves the supported joint group names for a revision. Deprecated: since macOS 14.0.
func VNElementTypeSize ¶
func VNElementTypeSize(elementType VNElementType) uint
@brief Obtain the size, in bytes, of a given element type. @param elementType The element type. @return a byte count, or 0 if the element type is unknown.
func VNErrorDomain ¶
func VNErrorDomain() *foundation.NSString
func VNGeometryUtilsCalculateAreaForContourOrientedAreaError ¶
func VNGeometryUtilsCalculateAreaForContourOrientedAreaError(area *float64, contour *VNContour, orientedArea bool) (bool, error)
Calculates the area for the specified contour.
func VNGeometryUtilsCalculatePerimeterForContourError ¶
func VNGeometryUtilsCalculatePerimeterForContourError(perimeter *float64, contour *VNContour) (bool, error)
Calculates the perimeter of a closed contour.
func VNHumanBodyPose3DObservationJointNameCenterHead ¶
func VNHumanBodyPose3DObservationJointNameCenterHead() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameCenterShoulder ¶
func VNHumanBodyPose3DObservationJointNameCenterShoulder() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameLeftAnkle ¶
func VNHumanBodyPose3DObservationJointNameLeftAnkle() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameLeftElbow ¶
func VNHumanBodyPose3DObservationJointNameLeftElbow() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameLeftHip ¶
func VNHumanBodyPose3DObservationJointNameLeftHip() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameLeftKnee ¶
func VNHumanBodyPose3DObservationJointNameLeftKnee() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameLeftShoulder ¶
func VNHumanBodyPose3DObservationJointNameLeftShoulder() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameLeftWrist ¶
func VNHumanBodyPose3DObservationJointNameLeftWrist() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameRightAnkle ¶
func VNHumanBodyPose3DObservationJointNameRightAnkle() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameRightElbow ¶
func VNHumanBodyPose3DObservationJointNameRightElbow() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameRightHip ¶
func VNHumanBodyPose3DObservationJointNameRightHip() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameRightKnee ¶
func VNHumanBodyPose3DObservationJointNameRightKnee() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameRightShoulder ¶
func VNHumanBodyPose3DObservationJointNameRightShoulder() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameRightWrist ¶
func VNHumanBodyPose3DObservationJointNameRightWrist() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameRoot ¶
func VNHumanBodyPose3DObservationJointNameRoot() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameSpine ¶
func VNHumanBodyPose3DObservationJointNameSpine() *foundation.NSString
func VNHumanBodyPose3DObservationJointNameTopHead ¶
func VNHumanBodyPose3DObservationJointNameTopHead() *foundation.NSString
func VNHumanBodyPose3DObservationJointsGroupNameAll ¶
func VNHumanBodyPose3DObservationJointsGroupNameAll() *foundation.NSString
func VNHumanBodyPose3DObservationJointsGroupNameHead ¶
func VNHumanBodyPose3DObservationJointsGroupNameHead() *foundation.NSString
func VNHumanBodyPose3DObservationJointsGroupNameLeftArm ¶
func VNHumanBodyPose3DObservationJointsGroupNameLeftArm() *foundation.NSString
func VNHumanBodyPose3DObservationJointsGroupNameLeftLeg ¶
func VNHumanBodyPose3DObservationJointsGroupNameLeftLeg() *foundation.NSString
func VNHumanBodyPose3DObservationJointsGroupNameRightArm ¶
func VNHumanBodyPose3DObservationJointsGroupNameRightArm() *foundation.NSString
func VNHumanBodyPose3DObservationJointsGroupNameRightLeg ¶
func VNHumanBodyPose3DObservationJointsGroupNameRightLeg() *foundation.NSString
func VNHumanBodyPose3DObservationJointsGroupNameTorso ¶
func VNHumanBodyPose3DObservationJointsGroupNameTorso() *foundation.NSString
func VNHumanBodyPoseObservationJointNameLeftAnkle ¶
func VNHumanBodyPoseObservationJointNameLeftAnkle() *foundation.NSString
func VNHumanBodyPoseObservationJointNameLeftEar ¶
func VNHumanBodyPoseObservationJointNameLeftEar() *foundation.NSString
func VNHumanBodyPoseObservationJointNameLeftElbow ¶
func VNHumanBodyPoseObservationJointNameLeftElbow() *foundation.NSString
func VNHumanBodyPoseObservationJointNameLeftEye ¶
func VNHumanBodyPoseObservationJointNameLeftEye() *foundation.NSString
func VNHumanBodyPoseObservationJointNameLeftHip ¶
func VNHumanBodyPoseObservationJointNameLeftHip() *foundation.NSString
func VNHumanBodyPoseObservationJointNameLeftKnee ¶
func VNHumanBodyPoseObservationJointNameLeftKnee() *foundation.NSString
func VNHumanBodyPoseObservationJointNameLeftShoulder ¶
func VNHumanBodyPoseObservationJointNameLeftShoulder() *foundation.NSString
func VNHumanBodyPoseObservationJointNameLeftWrist ¶
func VNHumanBodyPoseObservationJointNameLeftWrist() *foundation.NSString
func VNHumanBodyPoseObservationJointNameNeck ¶
func VNHumanBodyPoseObservationJointNameNeck() *foundation.NSString
func VNHumanBodyPoseObservationJointNameNose ¶
func VNHumanBodyPoseObservationJointNameNose() *foundation.NSString
func VNHumanBodyPoseObservationJointNameRightAnkle ¶
func VNHumanBodyPoseObservationJointNameRightAnkle() *foundation.NSString
func VNHumanBodyPoseObservationJointNameRightEar ¶
func VNHumanBodyPoseObservationJointNameRightEar() *foundation.NSString
func VNHumanBodyPoseObservationJointNameRightElbow ¶
func VNHumanBodyPoseObservationJointNameRightElbow() *foundation.NSString
func VNHumanBodyPoseObservationJointNameRightEye ¶
func VNHumanBodyPoseObservationJointNameRightEye() *foundation.NSString
func VNHumanBodyPoseObservationJointNameRightHip ¶
func VNHumanBodyPoseObservationJointNameRightHip() *foundation.NSString
func VNHumanBodyPoseObservationJointNameRightKnee ¶
func VNHumanBodyPoseObservationJointNameRightKnee() *foundation.NSString
func VNHumanBodyPoseObservationJointNameRightShoulder ¶
func VNHumanBodyPoseObservationJointNameRightShoulder() *foundation.NSString
func VNHumanBodyPoseObservationJointNameRightWrist ¶
func VNHumanBodyPoseObservationJointNameRightWrist() *foundation.NSString
func VNHumanBodyPoseObservationJointNameRoot ¶
func VNHumanBodyPoseObservationJointNameRoot() *foundation.NSString
func VNHumanBodyPoseObservationJointsGroupNameAll ¶
func VNHumanBodyPoseObservationJointsGroupNameAll() *foundation.NSString
func VNHumanBodyPoseObservationJointsGroupNameFace ¶
func VNHumanBodyPoseObservationJointsGroupNameFace() *foundation.NSString
func VNHumanBodyPoseObservationJointsGroupNameLeftArm ¶
func VNHumanBodyPoseObservationJointsGroupNameLeftArm() *foundation.NSString
func VNHumanBodyPoseObservationJointsGroupNameLeftLeg ¶
func VNHumanBodyPoseObservationJointsGroupNameLeftLeg() *foundation.NSString
func VNHumanBodyPoseObservationJointsGroupNameRightArm ¶
func VNHumanBodyPoseObservationJointsGroupNameRightArm() *foundation.NSString
func VNHumanBodyPoseObservationJointsGroupNameRightLeg ¶
func VNHumanBodyPoseObservationJointsGroupNameRightLeg() *foundation.NSString
func VNHumanBodyPoseObservationJointsGroupNameTorso ¶
func VNHumanBodyPoseObservationJointsGroupNameTorso() *foundation.NSString
func VNHumanHandPoseObservationJointNameIndexDIP ¶
func VNHumanHandPoseObservationJointNameIndexDIP() *foundation.NSString
func VNHumanHandPoseObservationJointNameIndexMCP ¶
func VNHumanHandPoseObservationJointNameIndexMCP() *foundation.NSString
func VNHumanHandPoseObservationJointNameIndexPIP ¶
func VNHumanHandPoseObservationJointNameIndexPIP() *foundation.NSString
func VNHumanHandPoseObservationJointNameIndexTip ¶
func VNHumanHandPoseObservationJointNameIndexTip() *foundation.NSString
func VNHumanHandPoseObservationJointNameLittleDIP ¶
func VNHumanHandPoseObservationJointNameLittleDIP() *foundation.NSString
func VNHumanHandPoseObservationJointNameLittleMCP ¶
func VNHumanHandPoseObservationJointNameLittleMCP() *foundation.NSString
func VNHumanHandPoseObservationJointNameLittlePIP ¶
func VNHumanHandPoseObservationJointNameLittlePIP() *foundation.NSString
func VNHumanHandPoseObservationJointNameLittleTip ¶
func VNHumanHandPoseObservationJointNameLittleTip() *foundation.NSString
func VNHumanHandPoseObservationJointNameMiddleDIP ¶
func VNHumanHandPoseObservationJointNameMiddleDIP() *foundation.NSString
func VNHumanHandPoseObservationJointNameMiddleMCP ¶
func VNHumanHandPoseObservationJointNameMiddleMCP() *foundation.NSString
func VNHumanHandPoseObservationJointNameMiddlePIP ¶
func VNHumanHandPoseObservationJointNameMiddlePIP() *foundation.NSString
func VNHumanHandPoseObservationJointNameMiddleTip ¶
func VNHumanHandPoseObservationJointNameMiddleTip() *foundation.NSString
func VNHumanHandPoseObservationJointNameRingDIP ¶
func VNHumanHandPoseObservationJointNameRingDIP() *foundation.NSString
func VNHumanHandPoseObservationJointNameRingMCP ¶
func VNHumanHandPoseObservationJointNameRingMCP() *foundation.NSString
func VNHumanHandPoseObservationJointNameRingPIP ¶
func VNHumanHandPoseObservationJointNameRingPIP() *foundation.NSString
func VNHumanHandPoseObservationJointNameRingTip ¶
func VNHumanHandPoseObservationJointNameRingTip() *foundation.NSString
func VNHumanHandPoseObservationJointNameThumbCMC ¶
func VNHumanHandPoseObservationJointNameThumbCMC() *foundation.NSString
func VNHumanHandPoseObservationJointNameThumbIP ¶
func VNHumanHandPoseObservationJointNameThumbIP() *foundation.NSString
func VNHumanHandPoseObservationJointNameThumbMP ¶
func VNHumanHandPoseObservationJointNameThumbMP() *foundation.NSString
func VNHumanHandPoseObservationJointNameThumbTip ¶
func VNHumanHandPoseObservationJointNameThumbTip() *foundation.NSString
func VNHumanHandPoseObservationJointNameWrist ¶
func VNHumanHandPoseObservationJointNameWrist() *foundation.NSString
func VNHumanHandPoseObservationJointsGroupNameAll ¶
func VNHumanHandPoseObservationJointsGroupNameAll() *foundation.NSString
func VNHumanHandPoseObservationJointsGroupNameIndexFinger ¶
func VNHumanHandPoseObservationJointsGroupNameIndexFinger() *foundation.NSString
func VNHumanHandPoseObservationJointsGroupNameLittleFinger ¶
func VNHumanHandPoseObservationJointsGroupNameLittleFinger() *foundation.NSString
func VNHumanHandPoseObservationJointsGroupNameMiddleFinger ¶
func VNHumanHandPoseObservationJointsGroupNameMiddleFinger() *foundation.NSString
func VNHumanHandPoseObservationJointsGroupNameRingFinger ¶
func VNHumanHandPoseObservationJointsGroupNameRingFinger() *foundation.NSString
func VNHumanHandPoseObservationJointsGroupNameThumb ¶
func VNHumanHandPoseObservationJointsGroupNameThumb() *foundation.NSString
func VNImageOptionCIContext ¶
func VNImageOptionCIContext() *foundation.NSString
func VNImageOptionCameraIntrinsics ¶
func VNImageOptionCameraIntrinsics() *foundation.NSString
@brief VNImageOptionCameraIntrinsics Specifies the camera intrinsics as an NSData or CFData representing a matrix_float3x3. See kCMSampleBufferAttachmentKey_CameraIntrinsicMatrix for details @discussion Camera intrinsic matrix is a CFData containing a matrix_float3x3, which is column-major. It has the following contents: fx 0 ox 0 fy oy 0 0 1 fx and fy are the focal length in pixels. For square pixels, they will have the same value. ox and oy are the coordinates of the principal point. The origin is the upper left of the frame. @note When using a CMSampleBuffer as an input and that sample buffer has camera intrinsics attached to it, Vision will use the camera intrinsic from there unless overwritten by passing in as an explicit option which will take precedence.
func VNImageOptionProperties ¶
func VNImageOptionProperties() *foundation.NSString
func VNImagePointForFaceLandmarkPoint ¶
func VNImagePointForFaceLandmarkPoint(faceLandmarkPoint unsafe.Pointer, faceBoundingBox corefoundation.CGRect, imageWidth uint, imageHeight uint) corefoundation.CGPoint
@discussion Returns the (possibly non-integral) image cooridnate of a given face landmark point. @param faceLandmarkPoint A face landmark point obtained from a VNFaceLandmarkRegion2D instance. @param faceBoundingBox The normalized bounding box of a face obtaining from a VNFaceObservation. @param imageWidth The pixel width of the image from which the VNFaceObservation was generated. @param imageHeight The pixel height of the image from which the VNFaceObservation was generated. @return the face landmark point in image coordinates.
func VNImagePointForNormalizedPoint ¶
func VNImagePointForNormalizedPoint(normalizedPoint corefoundation.CGPoint, imageWidth uint, imageHeight uint) corefoundation.CGPoint
@discussion Returns a point in (possibly non-integral) image coordinates that is projected from a point in a normalized coordinate space. @param normalizedPoint The point in the normalized coordinate space of [0..1]. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @return the point in image coordinates.
func VNImagePointForNormalizedPointUsingRegionOfInterest ¶
func VNImagePointForNormalizedPointUsingRegionOfInterest(normalizedPoint corefoundation.CGPoint, imageWidth uint, imageHeight uint, roi corefoundation.CGRect) corefoundation.CGPoint
@discussion Returns a point in (possibly non-integral) image coordinates that is projected from a point in a normalized coordinate space taking the region of interest (roi) into account. @param normalizedPoint The point in the normalized coordinate space of [0..1]. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @param roi The region of interest on which the normalized point was based on. @return the point in image coordinates from a normalized point that was reported in relation to a region of interest.
func VNImageRectForNormalizedRect ¶
func VNImageRectForNormalizedRect(normalizedRect corefoundation.CGRect, imageWidth uint, imageHeight uint) corefoundation.CGRect
@discussion Returns a rectangle in (possibly non-integral) image coordinates that is projected from a rectangle in a normalized coordinate space. @param normalizedRect The rectangle in the normalized coordinate space of [0..1]. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @return the rectangle in pixel coordinates.
func VNImageRectForNormalizedRectUsingRegionOfInterest ¶
func VNImageRectForNormalizedRectUsingRegionOfInterest(normalizedRect corefoundation.CGRect, imageWidth uint, imageHeight uint, roi corefoundation.CGRect) corefoundation.CGRect
@discussion Returns a rectangle in (possibly non-integral) image coordinates that is projected from a rectangle in a normalized coordinate space taking the region of interest (roi) into account. @param normalizedRect The rectangle in the normalized coordinate space of [0..1]. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @param roi The region of interest on which the normalized point was based on. @return the rectangle in pixel coordinates from a normalized rectangle that was reported in relation to a region of interest.
func VNNormalizedFaceBoundingBoxPointForLandmarkPoint ¶
func VNNormalizedFaceBoundingBoxPointForLandmarkPoint(faceLandmarkPoint unsafe.Pointer, faceBoundingBox corefoundation.CGRect, imageWidth uint, imageHeight uint) corefoundation.CGPoint
@discussion Returns the cooridnate of a given face landmark point relative to a face bounding box. @param faceLandmarkPoint A face landmark point obtained from a VNFaceLandmarkRegion2D instance. @param faceBoundingBox The normalized bounding box of a face obtaining from a VNFaceObservation. @param imageWidth The pixel width of the image from which the VNFaceObservation was generated. @param imageHeight The pixel height of the image from which the VNFaceObservation was generated. @return the face landmark point in face bounding box coordinates.
func VNNormalizedIdentityRect ¶
func VNNormalizedIdentityRect() corefoundation.CGRect
@brief The normalized identity rect of { {0, 0}, {1, 1} }.
func VNNormalizedPointForImagePoint ¶
func VNNormalizedPointForImagePoint(imagePoint corefoundation.CGPoint, imageWidth uint, imageHeight uint) corefoundation.CGPoint
@discussion Returns a point in normalized coordinate space that is projected from a point in a image coordinates @param imagePoint The point in image coordinate space. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @return the point in normalized coordinates.
func VNNormalizedPointForImagePointUsingRegionOfInterest ¶
func VNNormalizedPointForImagePointUsingRegionOfInterest(imagePoint corefoundation.CGPoint, imageWidth uint, imageHeight uint, roi corefoundation.CGRect) corefoundation.CGPoint
@discussion Returns a point in normalized coordinate space within a spedified regioin of interest (roi) that is projected from a point in a image coordinates @param imagePoint The point in image coordinate space. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @param roi The region of interest on which the normalized point will based on. @return the point in normalized coordinates in relation to the region of interest.
func VNNormalizedRectForImageRect ¶
func VNNormalizedRectForImageRect(imageRect corefoundation.CGRect, imageWidth uint, imageHeight uint) corefoundation.CGRect
@discussion Returns an image rectangle in normalized coordinates. @param imageRect The rectangle in image coordinate space. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @return the normalized rectangle.
func VNNormalizedRectForImageRectUsingRegionOfInterest ¶
func VNNormalizedRectForImageRectUsingRegionOfInterest(imageRect corefoundation.CGRect, imageWidth uint, imageHeight uint, roi corefoundation.CGRect) corefoundation.CGRect
@discussion Returns an image rectangle in normalized coordinates in relation to the region of interest. @param imageRect The rectangle in image coordinate space. @param imageWidth The pixel width of the image. @param imageHeight The pixel height of the image. @param roi The region of interest on which the normalized rect will be based on. @return the normalized rectangle in relation to the region of interest.
func VNNormalizedRectIsIdentityRect ¶
func VNNormalizedRectIsIdentityRect(normalizedRect corefoundation.CGRect) bool
@discussion Determines whether or not the normalized rect describes the identity rect of { {0, 0}, {1, 1} }. @param normalizedRect The rectangle in the normalized coordinate space of [0..1]. @return YES if the rect is the identity rect; otherwise, NO.
func VNPointDistanceBetweenPointPoint ¶
Calculates the distance between two points. Deprecated: since macOS 11.0.
func VNRecognizeAnimalsRequestKnownAnimalIdentifiersForRevisionError ¶
func VNRecognizeAnimalsRequestKnownAnimalIdentifiersForRevisionError(requestRevision uint) (*foundation.NSArray[*foundation.NSString], error)
Returns a list of animal identifiers the recognition algorithm supports for the specified revision. Deprecated: since macOS 12.0.
func VNRecognizeTextRequestSupportedRecognitionLanguagesForTextRecognitionLevelRevisionError ¶
func VNRecognizeTextRequestSupportedRecognitionLanguagesForTextRecognitionLevelRevisionError(recognitionLevel VNRequestTextRecognitionLevel, requestRevision uint) (*foundation.NSArray[*foundation.NSString], error)
Requests a list of languages that the specified revision recognizes. Deprecated: since macOS 12.0.
func VNRecognizedPoint3DGroupKeyAll ¶
func VNRecognizedPoint3DGroupKeyAll() *foundation.NSString
func VNRecognizedPointGroupKeyAll ¶
func VNRecognizedPointGroupKeyAll() *foundation.NSString
func VNRequestCurrentRevision ¶
func VNRequestCurrentRevision() uint
@abstract Provides the current revision supported by the request.
func VNRequestDefaultRevision ¶
func VNRequestDefaultRevision() uint
@abstract Provides the revision of the request that was latest for the particular SDK that was linked with the client application.
func VNRequestSupportedRevisions ¶
func VNRequestSupportedRevisions() *foundation.NSIndexSet
@abstract Provides the collection of currently-supported algorithm or implementation versions for the class of request. @discussion This method allows clients to introspect at runtime what capabilities are available for each class of VNRequest in the Vision framework.
func VNVectorDotProductOfVectorVector ¶
Caclulates the dot product of two vectors.
func VNVideoProcessingOptionFrameCadence
deprecated
func VNVideoProcessingOptionFrameCadence() *foundation.NSString
Deprecated: since macOS 11.0.
func VNVideoProcessingOptionTimeInterval
deprecated
func VNVideoProcessingOptionTimeInterval() *foundation.NSString
Deprecated: since macOS 11.0.
func VNVisionVersionNumber ¶
func VNVisionVersionNumber() float64
Types ¶
type Acl_entry_id_t ¶
type Acl_entry_id_t int64
const ( ACL_FIRST_ENTRY Acl_entry_id_t = 0 ACL_NEXT_ENTRY Acl_entry_id_t = -1 ACL_LAST_ENTRY Acl_entry_id_t = -2 )
func (Acl_entry_id_t) String ¶
func (e Acl_entry_id_t) String() string
type Acl_flag_t ¶
type Acl_flag_t int64
const ( ACL_FLAG_DEFER_INHERIT Acl_flag_t = 1 ACL_FLAG_NO_INHERIT Acl_flag_t = 131072 ACL_ENTRY_INHERITED Acl_flag_t = 16 ACL_ENTRY_FILE_INHERIT Acl_flag_t = 32 ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64 ACL_ENTRY_LIMIT_INHERIT Acl_flag_t = 128 ACL_ENTRY_ONLY_INHERIT Acl_flag_t = 256 )
func (Acl_flag_t) String ¶
func (e Acl_flag_t) String() string
type Acl_perm_t ¶
type Acl_perm_t int64
const ( ACL_READ_DATA Acl_perm_t = 2 ACL_LIST_DIRECTORY Acl_perm_t = 2 ACL_WRITE_DATA Acl_perm_t = 4 ACL_ADD_FILE Acl_perm_t = 4 ACL_EXECUTE Acl_perm_t = 8 ACL_SEARCH Acl_perm_t = 8 ACL_DELETE Acl_perm_t = 16 ACL_APPEND_DATA Acl_perm_t = 32 ACL_ADD_SUBDIRECTORY Acl_perm_t = 32 ACL_DELETE_CHILD Acl_perm_t = 64 ACL_READ_ATTRIBUTES Acl_perm_t = 128 ACL_WRITE_ATTRIBUTES Acl_perm_t = 256 ACL_READ_EXTATTRIBUTES Acl_perm_t = 512 ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024 ACL_READ_SECURITY Acl_perm_t = 2048 ACL_WRITE_SECURITY Acl_perm_t = 4096 ACL_CHANGE_OWNER Acl_perm_t = 8192 ACL_SYNCHRONIZE Acl_perm_t = 1048576 )
func (Acl_perm_t) String ¶
func (e Acl_perm_t) String() string
type Acl_type_t ¶
type Acl_type_t int64
const ( ACL_TYPE_EXTENDED Acl_type_t = 256 ACL_TYPE_ACCESS Acl_type_t = 0 ACL_TYPE_DEFAULT Acl_type_t = 1 ACL_TYPE_AFS Acl_type_t = 2 ACL_TYPE_CODA Acl_type_t = 3 ACL_TYPE_NTFS Acl_type_t = 4 ACL_TYPE_NWFS Acl_type_t = 5 )
func (Acl_type_t) String ¶
func (e Acl_type_t) String() string
type CGLCPContextPriorityRequest ¶
type CGLCPContextPriorityRequest int64
const ( KCGLCPContextPriorityRequestHigh CGLCPContextPriorityRequest = 0 KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1 KCGLCPContextPriorityRequestLow CGLCPContextPriorityRequest = 2 )
func (CGLCPContextPriorityRequest) String ¶
func (e CGLCPContextPriorityRequest) String() string
type Dispatch_autorelease_frequency_t ¶
type Dispatch_autorelease_frequency_t uint64
const ( DISPATCH_AUTORELEASE_FREQUENCY_INHERIT Dispatch_autorelease_frequency_t = 0 DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1 DISPATCH_AUTORELEASE_FREQUENCY_NEVER Dispatch_autorelease_frequency_t = 2 )
func (Dispatch_autorelease_frequency_t) String ¶
func (e Dispatch_autorelease_frequency_t) String() string
type Dispatch_block_flags_t ¶
type Dispatch_block_flags_t uint64
const ( DISPATCH_BLOCK_BARRIER Dispatch_block_flags_t = 1 DISPATCH_BLOCK_DETACHED Dispatch_block_flags_t = 2 DISPATCH_BLOCK_ASSIGN_CURRENT Dispatch_block_flags_t = 4 DISPATCH_BLOCK_NO_QOS_CLASS Dispatch_block_flags_t = 8 DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16 DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32 )
func (Dispatch_block_flags_t) String ¶
func (e Dispatch_block_flags_t) String() string
type Filesec_property_t ¶
type Filesec_property_t int64
const ( FILESEC_OWNER Filesec_property_t = 1 FILESEC_GROUP Filesec_property_t = 2 FILESEC_UUID Filesec_property_t = 3 FILESEC_MODE Filesec_property_t = 4 FILESEC_ACL Filesec_property_t = 5 FILESEC_GRPUUID Filesec_property_t = 6 FILESEC_ACL_RAW Filesec_property_t = 100 FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101 )
func (Filesec_property_t) String ¶
func (e Filesec_property_t) String() string
type Ipc_info_object_type_t ¶
type Ipc_info_object_type_t int64
const ( IPC_OTYPE_NONE Ipc_info_object_type_t = 0 IPC_OTYPE_THREAD_CONTROL Ipc_info_object_type_t = 1 IPC_OTYPE_TASK_CONTROL Ipc_info_object_type_t = 2 IPC_OTYPE_HOST Ipc_info_object_type_t = 3 IPC_OTYPE_HOST_PRIV Ipc_info_object_type_t = 4 IPC_OTYPE_PROCESSOR Ipc_info_object_type_t = 5 IPC_OTYPE_PROCESSOR_SET Ipc_info_object_type_t = 6 IPC_OTYPE_PROCESSOR_SET_NAME Ipc_info_object_type_t = 7 IPC_OTYPE_TIMER Ipc_info_object_type_t = 8 IPC_OTYPE_PORT_SUBST_ONCE Ipc_info_object_type_t = 9 IPC_OTYPE_MIG Ipc_info_object_type_t = 10 IPC_OTYPE_MEMORY_OBJECT Ipc_info_object_type_t = 11 IPC_OTYPE_XMM_PAGER Ipc_info_object_type_t = 12 IPC_OTYPE_XMM_KERNEL Ipc_info_object_type_t = 13 IPC_OTYPE_XMM_REPLY Ipc_info_object_type_t = 14 IPC_OTYPE_UND_REPLY Ipc_info_object_type_t = 15 IPC_OTYPE_HOST_NOTIFY Ipc_info_object_type_t = 16 IPC_OTYPE_HOST_SECURITY Ipc_info_object_type_t = 17 IPC_OTYPE_LEDGER Ipc_info_object_type_t = 18 IPC_OTYPE_MAIN_DEVICE Ipc_info_object_type_t = 19 IPC_OTYPE_TASK_NAME Ipc_info_object_type_t = 20 IPC_OTYPE_SUBSYSTEM Ipc_info_object_type_t = 21 IPC_OTYPE_IO_DONE_QUEUE Ipc_info_object_type_t = 22 IPC_OTYPE_SEMAPHORE Ipc_info_object_type_t = 23 IPC_OTYPE_LOCK_SET Ipc_info_object_type_t = 24 IPC_OTYPE_CLOCK Ipc_info_object_type_t = 25 IPC_OTYPE_CLOCK_CTRL Ipc_info_object_type_t = 26 IPC_OTYPE_IOKIT_IDENT Ipc_info_object_type_t = 27 IPC_OTYPE_NAMED_ENTRY Ipc_info_object_type_t = 28 IPC_OTYPE_IOKIT_CONNECT Ipc_info_object_type_t = 29 IPC_OTYPE_IOKIT_OBJECT Ipc_info_object_type_t = 30 IPC_OTYPE_UPL Ipc_info_object_type_t = 31 IPC_OTYPE_MEM_OBJ_CONTROL Ipc_info_object_type_t = 32 IPC_OTYPE_AU_SESSIONPORT Ipc_info_object_type_t = 33 IPC_OTYPE_FILEPORT Ipc_info_object_type_t = 34 IPC_OTYPE_LABELH Ipc_info_object_type_t = 35 IPC_OTYPE_TASK_RESUME Ipc_info_object_type_t = 36 IPC_OTYPE_VOUCHER Ipc_info_object_type_t = 37 IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38 IPC_OTYPE_WORK_INTERVAL Ipc_info_object_type_t = 39 IPC_OTYPE_UX_HANDLER Ipc_info_object_type_t = 40 IPC_OTYPE_UEXT_OBJECT Ipc_info_object_type_t = 41 IPC_OTYPE_ARCADE_REG Ipc_info_object_type_t = 42 IPC_OTYPE_EVENTLINK Ipc_info_object_type_t = 43 IPC_OTYPE_TASK_INSPECT Ipc_info_object_type_t = 44 IPC_OTYPE_TASK_READ Ipc_info_object_type_t = 45 IPC_OTYPE_THREAD_INSPECT Ipc_info_object_type_t = 46 IPC_OTYPE_THREAD_READ Ipc_info_object_type_t = 47 IPC_OTYPE_SUID_CRED Ipc_info_object_type_t = 48 IPC_OTYPE_HYPERVISOR Ipc_info_object_type_t = 49 IPC_OTYPE_TASK_ID_TOKEN Ipc_info_object_type_t = 50 IPC_OTYPE_TASK_FATAL Ipc_info_object_type_t = 51 IPC_OTYPE_KCDATA Ipc_info_object_type_t = 52 IPC_OTYPE_EXCLAVES_RESOURCE Ipc_info_object_type_t = 53 IPC_OTYPE_THREAD_RESUME Ipc_info_object_type_t = 54 IPC_OTYPE_UNKNOWN Ipc_info_object_type_t = 4294967295 )
func (Ipc_info_object_type_t) String ¶
func (e Ipc_info_object_type_t) String() string
type Launch_data_type_t ¶
type Launch_data_type_t int64
const ( LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1 LAUNCH_DATA_ARRAY Launch_data_type_t = 2 LAUNCH_DATA_FD Launch_data_type_t = 3 LAUNCH_DATA_INTEGER Launch_data_type_t = 4 LAUNCH_DATA_REAL Launch_data_type_t = 5 LAUNCH_DATA_BOOL Launch_data_type_t = 6 LAUNCH_DATA_STRING Launch_data_type_t = 7 LAUNCH_DATA_OPAQUE Launch_data_type_t = 8 LAUNCH_DATA_ERRNO Launch_data_type_t = 9 LAUNCH_DATA_MACHPORT Launch_data_type_t = 10 )
func (Launch_data_type_t) String ¶
func (e Launch_data_type_t) String() string
type MDLabelDomain ¶
type MDLabelDomain int64
@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int64
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int64
@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
type Mach_vm_range_flags_t ¶
type Mach_vm_range_flags_t int64
const (
MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)
func (Mach_vm_range_flags_t) String ¶
func (e Mach_vm_range_flags_t) String() string
type Mach_vm_range_flavor_t ¶
type Mach_vm_range_flavor_t int64
const ( MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0 MACH_VM_RANGE_FLAVOR_V1 Mach_vm_range_flavor_t = 1 )
func (Mach_vm_range_flavor_t) String ¶
func (e Mach_vm_range_flavor_t) String() string
type Mach_vm_range_tag_t ¶
type Mach_vm_range_tag_t int64
const ( MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0 MACH_VM_RANGE_DATA Mach_vm_range_tag_t = 1 MACH_VM_RANGE_FIXED Mach_vm_range_tag_t = 2 )
func (Mach_vm_range_tag_t) String ¶
func (e Mach_vm_range_tag_t) String() string
type Mpo_flags_t ¶
type Mpo_flags_t int64
const ( MPO_PORT Mpo_flags_t = 0 MPO_SERVICE_PORT Mpo_flags_t = 1024 MPO_CONNECTION_PORT Mpo_flags_t = 2048 MPO_REPLY_PORT Mpo_flags_t = 4096 MPO_WEAK_REPLY_PORT Mpo_flags_t = 16384 MPO_NOTIFICATION_PORT Mpo_flags_t = 17408 MPO_EXCEPTION_PORT Mpo_flags_t = 32768 MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536 )
func (Mpo_flags_t) String ¶
func (e Mpo_flags_t) String() string
type NXMouseButton ¶
type NXMouseButton int64
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
type Os_clockid_t ¶
type Os_clockid_t int64
const (
OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)
func (Os_clockid_t) String ¶
func (e Os_clockid_t) String() string
type PMPageToPaperMappingType ¶
type PMPageToPaperMappingType int64
const ( KPMPageToPaperMappingNone PMPageToPaperMappingType = 1 KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2 )
func (PMPageToPaperMappingType) String ¶
func (e PMPageToPaperMappingType) String() string
type Ptrauth_key ¶
type Ptrauth_key int64
const ( Ptrauth_key_none Ptrauth_key = -1 Ptrauth_key_asia Ptrauth_key = 0 Ptrauth_key_asib Ptrauth_key = 1 Ptrauth_key_asda Ptrauth_key = 2 Ptrauth_key_asdb Ptrauth_key = 3 Ptrauth_key_process_independent_code Ptrauth_key = 0 Ptrauth_key_process_dependent_code Ptrauth_key = 1 Ptrauth_key_process_independent_data Ptrauth_key = 2 Ptrauth_key_process_dependent_data Ptrauth_key = 3 Ptrauth_key_return_address Ptrauth_key = 1 Ptrauth_key_frame_pointer Ptrauth_key = 3 Ptrauth_key_function_pointer Ptrauth_key = 0 Ptrauth_key_block_function Ptrauth_key = 0 Ptrauth_key_cxx_vtable_pointer Ptrauth_key = 2 Ptrauth_key_method_list_pointer Ptrauth_key = 2 Ptrauth_key_objc_isa_pointer Ptrauth_key = 2 Ptrauth_key_objc_super_pointer Ptrauth_key = 2 Ptrauth_key_objc_sel_pointer Ptrauth_key = 3 Ptrauth_key_objc_class_ro_pointer Ptrauth_key = 2 Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2 Ptrauth_key_init_fini_pointer Ptrauth_key = 0 )
func (Ptrauth_key) String ¶
func (e Ptrauth_key) String() string
type Qos_class_t ¶
type Qos_class_t uint32
const ( QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33 QOS_CLASS_USER_INITIATED Qos_class_t = 25 QOS_CLASS_DEFAULT Qos_class_t = 21 QOS_CLASS_UTILITY Qos_class_t = 17 QOS_CLASS_BACKGROUND Qos_class_t = 9 QOS_CLASS_UNSPECIFIED Qos_class_t = 0 )
func (Qos_class_t) String ¶
func (e Qos_class_t) String() string
type VNAnimalBodyPoseObservation ¶
type VNAnimalBodyPoseObservation struct {
VNRecognizedPointsObservation
}
An observation that provides the animal body points the analysis recognizes.
Apple documentation: https://developer.apple.com/documentation/vision/vnanimalbodyposeobservation
func VNAnimalBodyPoseObservationFromID ¶
func VNAnimalBodyPoseObservationFromID(id objc.ID) *VNAnimalBodyPoseObservation
func (*VNAnimalBodyPoseObservation) AvailableJointGroupNames ¶
func (o *VNAnimalBodyPoseObservation) AvailableJointGroupNames() *foundation.NSArray[*foundation.NSString]
@brief All animal joints group names available in the observation.
func (*VNAnimalBodyPoseObservation) AvailableJointNames ¶
func (o *VNAnimalBodyPoseObservation) AvailableJointNames() *foundation.NSArray[*foundation.NSString]
@brief All animal joint names available in the observation.
func (*VNAnimalBodyPoseObservation) RecognizedPointForJointNameError ¶
func (o *VNAnimalBodyPoseObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNRecognizedPoint, error)
Returns the point for a joint name the observation recognizes.
func (*VNAnimalBodyPoseObservation) RecognizedPointsForJointsGroupNameError ¶
func (o *VNAnimalBodyPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint], error)
Returns the points for a joint group name the observation recognizes.
type VNBarcodeCompositeType ¶
type VNBarcodeCompositeType int64
Composite types for barcode requests.
const ( // A type that represents no composite type. VNBarcodeCompositeTypeNone VNBarcodeCompositeType = 0 // A type that represents a linked composite type. VNBarcodeCompositeTypeLinked VNBarcodeCompositeType = 1 // A type that represents trade items in bulk. VNBarcodeCompositeTypeGS1TypeA VNBarcodeCompositeType = 2 // A type that represents trade items by piece. VNBarcodeCompositeTypeGS1TypeB VNBarcodeCompositeType = 3 // A type that represents trade items in varying quantity. VNBarcodeCompositeTypeGS1TypeC VNBarcodeCompositeType = 4 )
func (VNBarcodeCompositeType) String ¶
func (e VNBarcodeCompositeType) String() string
type VNBarcodeObservation ¶
type VNBarcodeObservation struct {
VNRectangleObservation
}
An object that represents barcode information that an image analysis request detects.
Apple documentation: https://developer.apple.com/documentation/vision/vnbarcodeobservation
func VNBarcodeObservationFromID ¶
func VNBarcodeObservationFromID(id objc.ID) *VNBarcodeObservation
func (*VNBarcodeObservation) BarcodeDescriptor ¶
func (o *VNBarcodeObservation) BarcodeDescriptor() *coreimage.CIBarcodeDescriptor
@brief An object that provides symbology-specific data for the barcode.
func (*VNBarcodeObservation) IsColorInverted ¶
func (o *VNBarcodeObservation) IsColorInverted() bool
@brief A boolean indicating if the barcode is color inverted
func (*VNBarcodeObservation) IsGS1DataCarrier ¶
func (o *VNBarcodeObservation) IsGS1DataCarrier() bool
@brief Boolean indicating if the barcode carries any GS1 application specific data
func (*VNBarcodeObservation) PayloadData ¶
func (o *VNBarcodeObservation) PayloadData() *foundation.NSData
@brief The raw data representation of the barcode's payload if available.
func (*VNBarcodeObservation) PayloadStringValue ¶
func (o *VNBarcodeObservation) PayloadStringValue() *foundation.NSString
@brief The string representation of the barcode's payload. Depending on the symbology of the barcode and/or the payload data itself, a string representation of the payload may not be available.
func (*VNBarcodeObservation) SupplementalCompositeType ¶
func (o *VNBarcodeObservation) SupplementalCompositeType() VNBarcodeCompositeType
@brief Represents the supplemental composite type. Currently, this can only refer to the composite flag of the 2D symbology as part of a GS1 composite symbology. This attribute only exists when the primary descriptor is the 1D symbology of a GS1 composite symbology, and of which a valid 2D counterpart has been coalesced into.
func (*VNBarcodeObservation) SupplementalPayloadData ¶
func (o *VNBarcodeObservation) SupplementalPayloadData() *foundation.NSData
@brief Decode the supplemental code in the descriptor as a string value. Note: this property might be expensive the first time it is accessed When non-NULL, and if the descriptor has supplemental raw payload data, the pointee will be set to the decoded supplemental payload raw data value.
func (*VNBarcodeObservation) SupplementalPayloadString ¶
func (o *VNBarcodeObservation) SupplementalPayloadString() *foundation.NSString
@brief Decode the supplemental code in the descriptor as a string value. Note: this property might be expensive the first time it is accessed When non-NULL, and if the descriptor has supplemental raw payload data, the pointee will be set to the decoded supplemental payload string value.
func (*VNBarcodeObservation) Symbology ¶
func (o *VNBarcodeObservation) Symbology() *foundation.NSString
@brief The symbology of the detected barcode.
type VNCalculateImageAestheticsScoresRequest ¶
type VNCalculateImageAestheticsScoresRequest struct {
VNImageBasedRequest
}
An object that analyzes an image for aesthetically pleasing attributes.
Apple documentation: https://developer.apple.com/documentation/vision/vncalculateimageaestheticsscoresrequest
func VNCalculateImageAestheticsScoresRequestFromID ¶
func VNCalculateImageAestheticsScoresRequestFromID(id objc.ID) *VNCalculateImageAestheticsScoresRequest
type VNChirality ¶
type VNChirality int64
Constants that the define the chirality, or handedness, of a pose.
const ( // Indicates that the pose chirality is unknown. VNChiralityUnknown VNChirality = 0 // Indicates a left-handed pose. VNChiralityLeft VNChirality = -1 // Indicates a right-handed pose. VNChiralityRight VNChirality = 1 )
func (VNChirality) String ¶
func (e VNChirality) String() string
type VNCircle ¶
type VNCircle struct {
foundation.NSObject
}
An immutable 2D circle represented by its center point and radius.
Apple documentation: https://developer.apple.com/documentation/vision/vncircle
func VNCircleFromID ¶
func VNCircleZeroCircle ¶
func VNCircleZeroCircle() *VNCircle
@brief Returns a VNCircle object with center at the Origin [0.0; 0.0] and zero radius.
func VNGeometryUtilsBoundingCircleForContourError ¶
Calculates a bounding circle for the specified contour object.
func VNGeometryUtilsBoundingCircleForPointsError ¶
func VNGeometryUtilsBoundingCircleForPointsError(points *foundation.NSArray[*VNPoint]) (*VNCircle, error)
Calculates a bounding circle for the specified array of points.
func VNGeometryUtilsBoundingCircleForSIMDPointsPointCountError ¶
func VNGeometryUtilsBoundingCircleForSIMDPointsPointCountError(points unsafe.Pointer, pointCount int) (*VNCircle, error)
Calculates a bounding circle for the specified points.
func (*VNCircle) ContainsPoint ¶
Determines if this circle, including its boundary, contains the specified point.
func (*VNCircle) ContainsPointInCircumferentialRingOfWidth ¶
func (o *VNCircle) ContainsPointInCircumferentialRingOfWidth(point *VNPoint, ringWidth float64) bool
Determines if a ring around this circle’s circumference contains the specified point.
func (*VNCircle) InitWithCenterDiameter ¶
Creates a circle with the specified center and diameter.
func (*VNCircle) InitWithCenterRadius ¶
Creates a circle with the specified center and radius.
type VNClassificationObservation ¶
type VNClassificationObservation struct {
VNObservation
}
An object that represents classification information that an image-analysis request produces.
Apple documentation: https://developer.apple.com/documentation/vision/vnclassificationobservation
func VNClassificationObservationFromID ¶
func VNClassificationObservationFromID(id objc.ID) *VNClassificationObservation
func (*VNClassificationObservation) HasMinimumPrecisionForRecall ¶
func (o *VNClassificationObservation) HasMinimumPrecisionForRecall(minimumPrecision float32, recall float32) bool
Determines whether the observation for a specific recall has a minimum precision value.
func (*VNClassificationObservation) HasMinimumRecallForPrecision ¶
func (o *VNClassificationObservation) HasMinimumRecallForPrecision(minimumRecall float32, precision float32) bool
Determines whether the observation for a specific precision has a minimum recall value.
func (*VNClassificationObservation) HasPrecisionRecallCurve ¶
func (o *VNClassificationObservation) HasPrecisionRecallCurve() bool
@brief Determine whether or not precision/recall curves are available with the observation. @discussion If this property is YES, then all other precision/recall related methods in this addition can be called.
func (*VNClassificationObservation) Identifier ¶
func (o *VNClassificationObservation) Identifier() *foundation.NSString
type VNClassifyImageRequest ¶
type VNClassifyImageRequest struct {
VNImageBasedRequest
}
A request to classify an image.
Apple documentation: https://developer.apple.com/documentation/vision/vnclassifyimagerequest
func VNClassifyImageRequestFromID ¶
func VNClassifyImageRequestFromID(id objc.ID) *VNClassifyImageRequest
func (*VNClassifyImageRequest) SupportedIdentifiersAndReturnError ¶
func (o *VNClassifyImageRequest) SupportedIdentifiersAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Returns the classification identifiers that the request supports in its current configuration.
type VNContour ¶
type VNContour struct {
foundation.NSObject
}
A class that represents a detected contour in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vncontour
func VNContourFromID ¶
func (*VNContour) AspectRatio ¶
@brief The aspect ratio of the contour from the original image aspect ratio expressed as width/height
func (*VNContour) ChildContourAtIndexError ¶
Retrieves the child contour object at the specified index.
func (*VNContour) ChildContourCount ¶
@brief The total number of child contours in the target contour. @discussion The use of this property is preferred over childContours.count due to the cost of building the child objects.
func (*VNContour) ChildContours ¶
func (o *VNContour) ChildContours() *foundation.NSArray[*VNContour]
@brief The array of the contours enclosed by the target contour. @discussion This property may come with the cost of instantiating new VNContour objects; therefore, clients are strongly encouraged to hold the results in a local variable instead of repeatedly invoking it.
func (*VNContour) IndexPath ¶
func (o *VNContour) IndexPath() *foundation.NSIndexPath
@brief The path to the target VNContour as it is stored in the owning VNContoursObservation's hierarchy of contours.
func (*VNContour) NormalizedPath ¶
@brief The contour represented as a CGPath in normalized coordinates. @details The path is owned by this object and therefore will be alive as long as the the observation is alive.
func (*VNContour) NormalizedPoints ¶
@brief The array of points in normalized coordinates that describe the contour. @discussion Provides the address of a buffer containing the array of (x,y) points stored as a simd_float2 value. This buffer is owned by the target object and is guaranteed to exist as long as this VNContour instance exists.
func (*VNContour) PointCount ¶
@brief The number of points that describe the contour.
type VNContoursObservation ¶
type VNContoursObservation struct {
VNObservation
}
An object that represents the detected contours in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vncontoursobservation
func VNContoursObservationFromID ¶
func VNContoursObservationFromID(id objc.ID) *VNContoursObservation
func (*VNContoursObservation) ContourAtIndexError ¶
func (o *VNContoursObservation) ContourAtIndexError(contourIndex int) (*VNContour, error)
Retrieves the contour object at the specified index, irrespective of hierarchy.
func (*VNContoursObservation) ContourAtIndexPathError ¶
func (o *VNContoursObservation) ContourAtIndexPathError(indexPath *foundation.NSIndexPath) (*VNContour, error)
Retrieves the contour object at the specified index path.
func (*VNContoursObservation) ContourCount ¶
func (o *VNContoursObservation) ContourCount() int
@brief The total number of contours detected.
func (*VNContoursObservation) NormalizedPath ¶
func (o *VNContoursObservation) NormalizedPath() unsafe.Pointer
@brief Obtain all of the contours represented as a CGPath in normalized coordinates. @details The path is owned by the observation and therefore will be alive as long as the the observation is alive.
func (*VNContoursObservation) TopLevelContourCount ¶
func (o *VNContoursObservation) TopLevelContourCount() int
@brief The total number of top-level contours detected.
func (*VNContoursObservation) TopLevelContours ¶
func (o *VNContoursObservation) TopLevelContours() *foundation.NSArray[*VNContour]
@brief An array of the top level contours (i.e. contours that are not enclosed inside another contour),. @details This array constitutes the top of the contour hierarchy. Each contour object can be further iterated to determine its children. @see VNContour for more information.
type VNCoreMLFeatureValueObservation ¶
type VNCoreMLFeatureValueObservation struct {
VNObservation
}
An object that represents a collection of key-value information that a Core ML image-analysis request produces.
Apple documentation: https://developer.apple.com/documentation/vision/vncoremlfeaturevalueobservation
func VNCoreMLFeatureValueObservationFromID ¶
func VNCoreMLFeatureValueObservationFromID(id objc.ID) *VNCoreMLFeatureValueObservation
func (*VNCoreMLFeatureValueObservation) FeatureName ¶
func (o *VNCoreMLFeatureValueObservation) FeatureName() *foundation.NSString
@brief The name used in the model description of the CoreML model that produced this observation allowing to correlate the observation back to the output of the model.
func (*VNCoreMLFeatureValueObservation) FeatureValue ¶
func (o *VNCoreMLFeatureValueObservation) FeatureValue() *coreml.MLFeatureValue
@brief The result VNCoreMLRequest where the model produces an MLFeatureValue that is neither a classification or image. Refer to the Core ML documentation and the model itself for the handling of the content of the featureValue.
type VNCoreMLModel ¶
type VNCoreMLModel struct {
foundation.NSObject
}
A container for the model to use with Vision requests.
Apple documentation: https://developer.apple.com/documentation/vision/vncoremlmodel
func VNCoreMLModelFromID ¶
func VNCoreMLModelFromID(id objc.ID) *VNCoreMLModel
func VNCoreMLModelModelForMLModelError ¶
func VNCoreMLModelModelForMLModelError(model *coreml.MLModel) (*VNCoreMLModel, error)
Creates a model container to use with a Core ML request.
func (*VNCoreMLModel) FeatureProvider ¶
func (o *VNCoreMLModel) FeatureProvider() coreml.MLFeatureProvider
@brief An optional object conforming to the MLFeatureProvider protocol that is used by the model during the predict call to support inputs that are not supplied by Vision. Vision will provide the image for the inputImageFeatureName from the the VNRequestHandler. A feature provider is necessary for models that have more than one input and require those parameters to be set. Models that only have one image input will not use the feature provider as that input will be set by Vision.
func (*VNCoreMLModel) InputImageFeatureName ¶
func (o *VNCoreMLModel) InputImageFeatureName() *foundation.NSString
@brief The name of the MLFeatureValue that Vision will set from the VNRequestHandler. Vision will use the first input it finds by default but it can be set to another featureName instead.
func (*VNCoreMLModel) SetFeatureProvider ¶
func (o *VNCoreMLModel) SetFeatureProvider(featureProvider coreml.MLFeatureProvider)
func (*VNCoreMLModel) SetInputImageFeatureName ¶
func (o *VNCoreMLModel) SetInputImageFeatureName(inputImageFeatureName *foundation.NSString)
type VNCoreMLRequest ¶
type VNCoreMLRequest struct {
VNImageBasedRequest
}
An image-analysis request that uses a Core ML model to process images.
Apple documentation: https://developer.apple.com/documentation/vision/vncoremlrequest
func VNCoreMLRequestFromID ¶
func VNCoreMLRequestFromID(id objc.ID) *VNCoreMLRequest
func (*VNCoreMLRequest) ImageCropAndScaleOption ¶
func (o *VNCoreMLRequest) ImageCropAndScaleOption() VNImageCropAndScaleOption
func (*VNCoreMLRequest) InitWithModel ¶
func (o *VNCoreMLRequest) InitWithModel(model *VNCoreMLModel) *VNCoreMLRequest
Creates a model container to use with an image analysis request based on the model you provide.
func (*VNCoreMLRequest) InitWithModelCompletionHandler ¶
func (o *VNCoreMLRequest) InitWithModelCompletionHandler(model *VNCoreMLModel, completionHandler func(*VNRequest, unsafe.Pointer)) *VNCoreMLRequest
Creates a model container to use with an image analysis request based on the model you provide, with an optional completion handler.
func (*VNCoreMLRequest) Model ¶
func (o *VNCoreMLRequest) Model() *VNCoreMLModel
@brief The model from CoreML wrapped in a VNCoreMLModel.
func (*VNCoreMLRequest) SetImageCropAndScaleOption ¶
func (o *VNCoreMLRequest) SetImageCropAndScaleOption(imageCropAndScaleOption VNImageCropAndScaleOption)
type VNDetectAnimalBodyPoseRequest ¶
type VNDetectAnimalBodyPoseRequest struct {
VNImageBasedRequest
}
A request that detects an animal body pose.
Apple documentation: https://developer.apple.com/documentation/vision/vndetectanimalbodyposerequest
func VNDetectAnimalBodyPoseRequestFromID ¶
func VNDetectAnimalBodyPoseRequestFromID(id objc.ID) *VNDetectAnimalBodyPoseRequest
func (*VNDetectAnimalBodyPoseRequest) SupportedJointNamesAndReturnError ¶
func (o *VNDetectAnimalBodyPoseRequest) SupportedJointNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Retrieves the joint names the request supports.
func (*VNDetectAnimalBodyPoseRequest) SupportedJointsGroupNamesAndReturnError ¶
func (o *VNDetectAnimalBodyPoseRequest) SupportedJointsGroupNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Retrieves the joint group names the request supports.
type VNDetectBarcodesRequest ¶
type VNDetectBarcodesRequest struct {
VNImageBasedRequest
}
A request that detects barcodes in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vndetectbarcodesrequest
func VNDetectBarcodesRequestFromID ¶
func VNDetectBarcodesRequestFromID(id objc.ID) *VNDetectBarcodesRequest
func (*VNDetectBarcodesRequest) CoalesceCompositeSymbologies ¶
func (o *VNDetectBarcodesRequest) CoalesceCompositeSymbologies() bool
@discussion An option to coalesce multiple codes if applicable based on the symbology
func (*VNDetectBarcodesRequest) SetCoalesceCompositeSymbologies ¶
func (o *VNDetectBarcodesRequest) SetCoalesceCompositeSymbologies(coalesceCompositeSymbologies bool)
func (*VNDetectBarcodesRequest) SetSymbologies ¶
func (o *VNDetectBarcodesRequest) SetSymbologies(symbologies *foundation.NSArray[*foundation.NSString])
func (*VNDetectBarcodesRequest) SupportedSymbologiesAndReturnError ¶
func (o *VNDetectBarcodesRequest) SupportedSymbologiesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Returns the barcode symbologies that the request supports.
func (*VNDetectBarcodesRequest) Symbologies ¶
func (o *VNDetectBarcodesRequest) Symbologies() *foundation.NSArray[*foundation.NSString]
@discussion The collection of barcode symbologies that are to be detected in the image. The default is to scan for all possible symbologies. Setting a revision on the request will reset the symbologies to all symbologies for the specified revision.
type VNDetectContoursRequest ¶
type VNDetectContoursRequest struct {
VNImageBasedRequest
}
A request that detects the contours of the edges of an image.
Apple documentation: https://developer.apple.com/documentation/vision/vndetectcontoursrequest
func VNDetectContoursRequestFromID ¶
func VNDetectContoursRequestFromID(id objc.ID) *VNDetectContoursRequest
func (*VNDetectContoursRequest) ContrastAdjustment ¶
func (o *VNDetectContoursRequest) ContrastAdjustment() float32
@brief The amount to adjust the image's contrast by. A value of +1.0 means that the contrast is not adjusted. The default value is +2.0. @discussion Contour detection works best with high contrast images. The default value of 2 doubles the image's contrast to aid in detection. If the image already has a high contrast then this value should be set to 1.
func (*VNDetectContoursRequest) ContrastPivot ¶
func (o *VNDetectContoursRequest) ContrastPivot() *foundation.NSNumber
@brief The pixel value to use as a pivot for the contrast. Valid values are from [0.0 ... +1.0], or nil to auto-detect based on image intensity. The default value is +0.5 (i.e. pixel center).
func (*VNDetectContoursRequest) DetectDarkOnLight
deprecated
func (o *VNDetectContoursRequest) DetectDarkOnLight() bool
Deprecated: since macOS 11.0.
func (*VNDetectContoursRequest) DetectsDarkOnLight ¶
func (o *VNDetectContoursRequest) DetectsDarkOnLight() bool
@brief Identifies to the request if detecting a dark object on a light background, or vice versa, to aid in detection. The default value is YES.
func (*VNDetectContoursRequest) MaximumImageDimension ¶
func (o *VNDetectContoursRequest) MaximumImageDimension() uint
@brief The limit on the maximum dimension of the image to be used for contour detection. Valid range of values is [64 ... NSUIntegerMax]. The default value is 512. @discussion As the contour request is compute intensive, the input image is scaled down maintaining aspect ratio (if needed), such that its maximum dimension is the value of this property. The image never gets scaled up, so specifying the maximum value ensures that the image gets processed in its original size and not downscaled.
func (*VNDetectContoursRequest) SetContrastAdjustment ¶
func (o *VNDetectContoursRequest) SetContrastAdjustment(contrastAdjustment float32)
func (*VNDetectContoursRequest) SetContrastPivot ¶
func (o *VNDetectContoursRequest) SetContrastPivot(contrastPivot *foundation.NSNumber)
func (*VNDetectContoursRequest) SetDetectDarkOnLight
deprecated
func (o *VNDetectContoursRequest) SetDetectDarkOnLight(detectDarkOnLight bool)
Deprecated: since macOS 11.0.
func (*VNDetectContoursRequest) SetDetectsDarkOnLight ¶
func (o *VNDetectContoursRequest) SetDetectsDarkOnLight(detectsDarkOnLight bool)
func (*VNDetectContoursRequest) SetMaximumImageDimension ¶
func (o *VNDetectContoursRequest) SetMaximumImageDimension(maximumImageDimension uint)
type VNDetectDocumentSegmentationRequest ¶
type VNDetectDocumentSegmentationRequest struct {
VNImageBasedRequest
}
An object that detects rectangular regions that contain text in the input image.
Apple documentation: https://developer.apple.com/documentation/vision/vndetectdocumentsegmentationrequest
func VNDetectDocumentSegmentationRequestFromID ¶
func VNDetectDocumentSegmentationRequestFromID(id objc.ID) *VNDetectDocumentSegmentationRequest
type VNDetectFaceCaptureQualityRequest ¶
type VNDetectFaceCaptureQualityRequest struct {
VNImageBasedRequest
}
A request that produces a floating-point number that represents the capture quality of a face in a photo.
Apple documentation: https://developer.apple.com/documentation/vision/vndetectfacecapturequalityrequest
func VNDetectFaceCaptureQualityRequestFromID ¶
func VNDetectFaceCaptureQualityRequestFromID(id objc.ID) *VNDetectFaceCaptureQualityRequest
type VNDetectFaceLandmarksRequest ¶
type VNDetectFaceLandmarksRequest struct {
VNImageBasedRequest
}
An image-analysis request that finds facial features like eyes and mouth in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vndetectfacelandmarksrequest
func VNDetectFaceLandmarksRequestFromID ¶
func VNDetectFaceLandmarksRequestFromID(id objc.ID) *VNDetectFaceLandmarksRequest
func (*VNDetectFaceLandmarksRequest) Constellation ¶
func (o *VNDetectFaceLandmarksRequest) Constellation() VNRequestFaceLandmarksConstellation
@property property constellation @abstract Constellation type defines how many landmark points are used to map a face. Revisions 1, 2, and 3 of the request support 65 points, where Revision 3 also supports 76 points.
func (*VNDetectFaceLandmarksRequest) SetConstellation ¶
func (o *VNDetectFaceLandmarksRequest) SetConstellation(constellation VNRequestFaceLandmarksConstellation)
type VNDetectFaceRectanglesRequest ¶
type VNDetectFaceRectanglesRequest struct {
VNImageBasedRequest
}
A request that finds faces within an image.
Apple documentation: https://developer.apple.com/documentation/vision/vndetectfacerectanglesrequest
func VNDetectFaceRectanglesRequestFromID ¶
func VNDetectFaceRectanglesRequestFromID(id objc.ID) *VNDetectFaceRectanglesRequest
type VNDetectHorizonRequest ¶
type VNDetectHorizonRequest struct {
VNImageBasedRequest
}
An image-analysis request that determines the horizon angle in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vndetecthorizonrequest
func VNDetectHorizonRequestFromID ¶
func VNDetectHorizonRequestFromID(id objc.ID) *VNDetectHorizonRequest
type VNDetectHumanBodyPose3DRequest ¶
type VNDetectHumanBodyPose3DRequest struct {
VNStatefulRequest
}
A request that detects points on human bodies in 3D space, relative to the camera.
Apple documentation: https://developer.apple.com/documentation/vision/vndetecthumanbodypose3drequest
func VNDetectHumanBodyPose3DRequestFromID ¶
func VNDetectHumanBodyPose3DRequestFromID(id objc.ID) *VNDetectHumanBodyPose3DRequest
func (*VNDetectHumanBodyPose3DRequest) Init ¶
func (o *VNDetectHumanBodyPose3DRequest) Init() *VNDetectHumanBodyPose3DRequest
Creates a new request with no completion handler.
func (*VNDetectHumanBodyPose3DRequest) InitWithCompletionHandler ¶
func (o *VNDetectHumanBodyPose3DRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNDetectHumanBodyPose3DRequest
Creates a new 3D body pose request with a completion handler.
func (*VNDetectHumanBodyPose3DRequest) SupportedJointNamesAndReturnError ¶
func (o *VNDetectHumanBodyPose3DRequest) SupportedJointNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Returns the joint names the request supports.
func (*VNDetectHumanBodyPose3DRequest) SupportedJointsGroupNamesAndReturnError ¶
func (o *VNDetectHumanBodyPose3DRequest) SupportedJointsGroupNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Returns the joint group names the request supports.
type VNDetectHumanBodyPoseRequest ¶
type VNDetectHumanBodyPoseRequest struct {
VNImageBasedRequest
}
A request that detects a human body pose.
Apple documentation: https://developer.apple.com/documentation/vision/vndetecthumanbodyposerequest
func VNDetectHumanBodyPoseRequestFromID ¶
func VNDetectHumanBodyPoseRequestFromID(id objc.ID) *VNDetectHumanBodyPoseRequest
func (*VNDetectHumanBodyPoseRequest) SupportedJointNamesAndReturnError ¶
func (o *VNDetectHumanBodyPoseRequest) SupportedJointNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Retrieves the supported joint names.
func (*VNDetectHumanBodyPoseRequest) SupportedJointsGroupNamesAndReturnError ¶
func (o *VNDetectHumanBodyPoseRequest) SupportedJointsGroupNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Retrieves the supported joint group names.
type VNDetectHumanHandPoseRequest ¶
type VNDetectHumanHandPoseRequest struct {
VNImageBasedRequest
}
A request that detects a human hand pose.
Apple documentation: https://developer.apple.com/documentation/vision/vndetecthumanhandposerequest
func VNDetectHumanHandPoseRequestFromID ¶
func VNDetectHumanHandPoseRequestFromID(id objc.ID) *VNDetectHumanHandPoseRequest
func (*VNDetectHumanHandPoseRequest) MaximumHandCount ¶
func (o *VNDetectHumanHandPoseRequest) MaximumHandCount() uint
@brief Defines an upper bounds to the maximum number of hands that will be processed for key points in an image. @discussion The complexity in key points determination is scalable by the number of hands to be processed. All hands detected in an image will be ordered by relative size, with only the N largest ones having key points determined. The default value for this property is 2. The maximum value for VNDetectHumanHandPoseRequestRevision1 is 6.
func (*VNDetectHumanHandPoseRequest) SetMaximumHandCount ¶
func (o *VNDetectHumanHandPoseRequest) SetMaximumHandCount(maximumHandCount uint)
func (*VNDetectHumanHandPoseRequest) SupportedJointNamesAndReturnError ¶
func (o *VNDetectHumanHandPoseRequest) SupportedJointNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Retrieves the supported joint names.
func (*VNDetectHumanHandPoseRequest) SupportedJointsGroupNamesAndReturnError ¶
func (o *VNDetectHumanHandPoseRequest) SupportedJointsGroupNamesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Retrieves the supported joint group names.
type VNDetectHumanRectanglesRequest ¶
type VNDetectHumanRectanglesRequest struct {
VNImageBasedRequest
}
A request that finds rectangular regions that contain people in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vndetecthumanrectanglesrequest
func VNDetectHumanRectanglesRequestFromID ¶
func VNDetectHumanRectanglesRequestFromID(id objc.ID) *VNDetectHumanRectanglesRequest
func (*VNDetectHumanRectanglesRequest) SetUpperBodyOnly ¶
func (o *VNDetectHumanRectanglesRequest) SetUpperBodyOnly(upperBodyOnly bool)
func (*VNDetectHumanRectanglesRequest) UpperBodyOnly ¶
func (o *VNDetectHumanRectanglesRequest) UpperBodyOnly() bool
@brief Boolean property to specify whether the human upper body or full body needs to be detected. The default is YES, meaning the request is setup to detect upper body only
type VNDetectRectanglesRequest ¶
type VNDetectRectanglesRequest struct {
VNImageBasedRequest
}
An image-analysis request that finds projected rectangular regions in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest
func VNDetectRectanglesRequestFromID ¶
func VNDetectRectanglesRequestFromID(id objc.ID) *VNDetectRectanglesRequest
func (*VNDetectRectanglesRequest) MaximumAspectRatio ¶
func (o *VNDetectRectanglesRequest) MaximumAspectRatio() float32
@brief Specifies the maximum aspect ratio of the rectangle(s) to look for, range [0.0, 1.0], default 1.0
func (*VNDetectRectanglesRequest) MaximumObservations ¶
func (o *VNDetectRectanglesRequest) MaximumObservations() uint
@brief Specifies the maximum number of rectangles to be returned. The default is 1. Setting this property to 0 will allow an unlimited number of observations to be returned.
func (*VNDetectRectanglesRequest) MinimumAspectRatio ¶
func (o *VNDetectRectanglesRequest) MinimumAspectRatio() float32
@brief Specifies the minimum aspect ratio of the rectangle(s) to look for, range [0.0, 1.0], default 0.5
func (*VNDetectRectanglesRequest) MinimumConfidence ¶
func (o *VNDetectRectanglesRequest) MinimumConfidence() float32
@brief Specifies a minimum confidence score, range [0.0, 1.0], default 0.0. Any rectangles with a lower confidence score will not be returned.
func (*VNDetectRectanglesRequest) MinimumSize ¶
func (o *VNDetectRectanglesRequest) MinimumSize() float32
@brief Specifies the minimum size of the rectangle to be detected, as a proportion of the smallest dimension, range [0.0, 1.0], default .2. Any smaller rectangles that may have been detected will not be returned.
func (*VNDetectRectanglesRequest) QuadratureTolerance ¶
func (o *VNDetectRectanglesRequest) QuadratureTolerance() float32
@brief Specifies the maximum number of degrees a rectangle corner angle can deviate from 90 degrees, range [0,45], default 30
func (*VNDetectRectanglesRequest) SetMaximumAspectRatio ¶
func (o *VNDetectRectanglesRequest) SetMaximumAspectRatio(maximumAspectRatio float32)
func (*VNDetectRectanglesRequest) SetMaximumObservations ¶
func (o *VNDetectRectanglesRequest) SetMaximumObservations(maximumObservations uint)
func (*VNDetectRectanglesRequest) SetMinimumAspectRatio ¶
func (o *VNDetectRectanglesRequest) SetMinimumAspectRatio(minimumAspectRatio float32)
func (*VNDetectRectanglesRequest) SetMinimumConfidence ¶
func (o *VNDetectRectanglesRequest) SetMinimumConfidence(minimumConfidence float32)
func (*VNDetectRectanglesRequest) SetMinimumSize ¶
func (o *VNDetectRectanglesRequest) SetMinimumSize(minimumSize float32)
func (*VNDetectRectanglesRequest) SetQuadratureTolerance ¶
func (o *VNDetectRectanglesRequest) SetQuadratureTolerance(quadratureTolerance float32)
type VNDetectTextRectanglesRequest ¶
type VNDetectTextRectanglesRequest struct {
VNImageBasedRequest
}
An image-analysis request that finds regions of visible text in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vndetecttextrectanglesrequest
func VNDetectTextRectanglesRequestFromID ¶
func VNDetectTextRectanglesRequestFromID(id objc.ID) *VNDetectTextRectanglesRequest
func (*VNDetectTextRectanglesRequest) ReportCharacterBoxes ¶
func (o *VNDetectTextRectanglesRequest) ReportCharacterBoxes() bool
@brief Specify whether or not the bounding boxes of individual characters should also be returned in the resultant VNTextObservations. Default is NO.
func (*VNDetectTextRectanglesRequest) SetReportCharacterBoxes ¶
func (o *VNDetectTextRectanglesRequest) SetReportCharacterBoxes(reportCharacterBoxes bool)
type VNDetectTrajectoriesRequest ¶
type VNDetectTrajectoriesRequest struct {
VNStatefulRequest
}
A request that detects the trajectories of shapes moving along a parabolic path.
Apple documentation: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest
func VNDetectTrajectoriesRequestFromID ¶
func VNDetectTrajectoriesRequestFromID(id objc.ID) *VNDetectTrajectoriesRequest
func (*VNDetectTrajectoriesRequest) InitWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler ¶
func (o *VNDetectTrajectoriesRequest) InitWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler(frameAnalysisSpacing coremedia.CMTime, trajectoryLength int, completionHandler func(*VNRequest, unsafe.Pointer)) *VNDetectTrajectoriesRequest
Creates a new request to detect trajectories.
func (*VNDetectTrajectoriesRequest) MaximumObjectSize
deprecated
func (o *VNDetectTrajectoriesRequest) MaximumObjectSize() float32
Deprecated: since macOS 11.0.
func (*VNDetectTrajectoriesRequest) MinimumObjectSize
deprecated
func (o *VNDetectTrajectoriesRequest) MinimumObjectSize() float32
Deprecated: since macOS 11.0.
func (*VNDetectTrajectoriesRequest) ObjectMaximumNormalizedRadius ¶
func (o *VNDetectTrajectoriesRequest) ObjectMaximumNormalizedRadius() float32
@brief Specifies the maximum radius of the bounding circle of the object to be tracked. This can be used to filter out unwanted trajectories from larger objects moving through the scene. The default is 1.0, which means no filtering is applied. Changing the maximum from frame to frame can produce eratic trajectories as objects will either disappear or be added to the tracking base on this filtering. The size is specified in normalized coordinates.
func (*VNDetectTrajectoriesRequest) ObjectMinimumNormalizedRadius ¶
func (o *VNDetectTrajectoriesRequest) ObjectMinimumNormalizedRadius() float32
@brief Specifies the minimum radius of the bounding circle of the object to be tracked. This can be used to filter out noise and small objects. The default is 0.0, which means no filtering is applied. Changing the property from frame to frame can produce eratic trajectories as objects will either disappear or be added to the tracking base on this filtering. The value is specified in normalized coordinates.
func (*VNDetectTrajectoriesRequest) SetMaximumObjectSize
deprecated
func (o *VNDetectTrajectoriesRequest) SetMaximumObjectSize(maximumObjectSize float32)
Deprecated: since macOS 11.0.
func (*VNDetectTrajectoriesRequest) SetMinimumObjectSize
deprecated
func (o *VNDetectTrajectoriesRequest) SetMinimumObjectSize(minimumObjectSize float32)
Deprecated: since macOS 11.0.
func (*VNDetectTrajectoriesRequest) SetObjectMaximumNormalizedRadius ¶
func (o *VNDetectTrajectoriesRequest) SetObjectMaximumNormalizedRadius(objectMaximumNormalizedRadius float32)
func (*VNDetectTrajectoriesRequest) SetObjectMinimumNormalizedRadius ¶
func (o *VNDetectTrajectoriesRequest) SetObjectMinimumNormalizedRadius(objectMinimumNormalizedRadius float32)
func (*VNDetectTrajectoriesRequest) SetTargetFrameTime ¶
func (o *VNDetectTrajectoriesRequest) SetTargetFrameTime(targetFrameTime coremedia.CMTime)
func (*VNDetectTrajectoriesRequest) TargetFrameTime ¶
func (o *VNDetectTrajectoriesRequest) TargetFrameTime() coremedia.CMTime
@brief Specifies the desired target frame time for processing trajectory detection. This can be used for real-time processing of frames, which requires execution with a specific amount of time. The target frame time is evaluated from frame-to-frame. If processing takes longer than this target frame time for the currect frame, it will attempt to reduce the amount of time taken by reducing the accuracy (down to a set minimum) for the next frame. If a frame takes less time than this target, then accuracy of the next frame will be increased (up to a set maximum). The default value is kCMTimeIndefinite, meaning accuracy stays at the predefined maximum.
func (*VNDetectTrajectoriesRequest) TrajectoryLength ¶
func (o *VNDetectTrajectoriesRequest) TrajectoryLength() int
@brief The number of points required to analyze a parabola that indicates a trajectory.
type VNDetectedObjectObservation ¶
type VNDetectedObjectObservation struct {
VNObservation
}
An observation that provides the position and extent of an image feature that an image- analysis request detects.
Apple documentation: https://developer.apple.com/documentation/vision/vndetectedobjectobservation
func VNDetectedObjectObservationFromID ¶
func VNDetectedObjectObservationFromID(id objc.ID) *VNDetectedObjectObservation
func VNDetectedObjectObservationObservationWithBoundingBox ¶
func VNDetectedObjectObservationObservationWithBoundingBox(boundingBox corefoundation.CGRect) *VNDetectedObjectObservation
Creates an observation with a bounding box.
func VNDetectedObjectObservationObservationWithRequestRevisionBoundingBox ¶
func VNDetectedObjectObservationObservationWithRequestRevisionBoundingBox(requestRevision uint, boundingBox corefoundation.CGRect) *VNDetectedObjectObservation
Creates an observation with a revision number and bounding box.
func (*VNDetectedObjectObservation) BoundingBox ¶
func (o *VNDetectedObjectObservation) BoundingBox() corefoundation.CGRect
@brief The bounding box of the detected object. The coordinates are normalized to the dimensions of the processed image, with the origin at the image's lower-left corner.
func (*VNDetectedObjectObservation) GlobalSegmentationMask ¶
func (o *VNDetectedObjectObservation) GlobalSegmentationMask() *VNPixelBufferObservation
@brief The resulting CVPixelBuffer from requests that generate a segmentation mask for the entire image.
type VNDetectedPoint ¶
type VNDetectedPoint struct {
VNPoint
}
An object that represents a normalized point in an image, along with a confidence value.
Apple documentation: https://developer.apple.com/documentation/vision/vndetectedpoint
func VNDetectedPointFromID ¶
func VNDetectedPointFromID(id objc.ID) *VNDetectedPoint
func (*VNDetectedPoint) Confidence ¶
func (o *VNDetectedPoint) Confidence() float32
type VNElementType ¶
type VNElementType uint64
An enumeration of the type of element in feature print data.
const ( // The element type isn’t known. VNElementTypeUnknown VNElementType = 0 // The elements are floating-point numbers. VNElementTypeFloat VNElementType = 1 // The elements are double-precision floating-point numbers. VNElementTypeDouble VNElementType = 2 )
func (VNElementType) String ¶
func (e VNElementType) String() string
type VNErrorCode ¶
type VNErrorCode int64
Constants that identify errors from the framework.
const ( // An error occurred during Create ML training due to an invalid transformation or image. VNErrorTuriCoreErrorCode VNErrorCode = -1 // The operation finished without error. VNErrorOK VNErrorCode = 0 // An app canceled the request. VNErrorRequestCancelled VNErrorCode = 1 // The format of the image is invalid. VNErrorInvalidFormat VNErrorCode = 2 // The requested operation failed. VNErrorOperationFailed VNErrorCode = 3 // An app attempted to access data that’s out-of-bounds. VNErrorOutOfBoundsError VNErrorCode = 4 // An app specified an invalid option on a request. VNErrorInvalidOption VNErrorCode = 5 // An I/O error for an image, image sequence, or Core ML model. VNErrorIOError VNErrorCode = 6 // A request is missing a required option. VNErrorMissingOption VNErrorCode = 7 // The method isn’t implemented in the underlying model. VNErrorNotImplemented VNErrorCode = 8 // An internal error occurred within the framework. VNErrorInternalError VNErrorCode = 9 // The system doesn’t have enough memory to complete the request. VNErrorOutOfMemory VNErrorCode = 10 // An unidentified error occurred. VNErrorUnknownError VNErrorCode = 11 // An app requested an unsupported operation. VNErrorInvalidOperation VNErrorCode = 12 // The image is invalid. VNErrorInvalidImage VNErrorCode = 13 // An app passed an invalid parameter to a request. VNErrorInvalidArgument VNErrorCode = 14 // The Core ML model is incompatible with the request. VNErrorInvalidModel VNErrorCode = 15 // An app specified an unsupported request revision. VNErrorUnsupportedRevision VNErrorCode = 16 VNErrorDataUnavailable VNErrorCode = 17 // The system can’t find a timestamp. VNErrorTimeStampNotFound VNErrorCode = 18 // An app attempted an unsupported request. VNErrorUnsupportedRequest VNErrorCode = 19 // The requested operation timed out. VNErrorTimeout VNErrorCode = 20 // An app requested an unsupported compute stage. VNErrorUnsupportedComputeStage VNErrorCode = 21 // An app requested an unsupported compute device. VNErrorUnsupportedComputeDevice VNErrorCode = 22 )
func (VNErrorCode) String ¶
func (e VNErrorCode) String() string
type VNFaceLandmarkRegion ¶
type VNFaceLandmarkRegion struct {
foundation.NSObject
}
The abstract superclass for information about a specific face landmark.
Apple documentation: https://developer.apple.com/documentation/vision/vnfacelandmarkregion
func VNFaceLandmarkRegionFromID ¶
func VNFaceLandmarkRegionFromID(id objc.ID) *VNFaceLandmarkRegion
func (*VNFaceLandmarkRegion) PointCount ¶
func (o *VNFaceLandmarkRegion) PointCount() uint
type VNFaceLandmarkRegion2D ¶
type VNFaceLandmarkRegion2D struct {
VNFaceLandmarkRegion
}
2D geometry information for a specific facial feature.
Apple documentation: https://developer.apple.com/documentation/vision/vnfacelandmarkregion2d
func VNFaceLandmarkRegion2DFromID ¶
func VNFaceLandmarkRegion2DFromID(id objc.ID) *VNFaceLandmarkRegion2D
func (*VNFaceLandmarkRegion2D) NormalizedPoints ¶
func (o *VNFaceLandmarkRegion2D) NormalizedPoints() unsafe.Pointer
@brief Obtains the array of normalized landmark points. @discussion Provides the address of a buffer containing the array of CGPoints representing the landmark points. This buffer is owned by the target object and is guaranteed to exist as long as the VNFaceLandmarkRegion2D does. @return the address of the array of pointCount points.
func (*VNFaceLandmarkRegion2D) PointsClassification ¶
func (o *VNFaceLandmarkRegion2D) PointsClassification() VNPointsClassification
@brief Describes how to interpret the points provided by the region.
func (*VNFaceLandmarkRegion2D) PointsInImageOfSize ¶
func (o *VNFaceLandmarkRegion2D) PointsInImageOfSize(imageSize corefoundation.CGSize) *corefoundation.CGPoint
A buffer in memory containing landmark points in the coordinate space of the specified image size.
func (*VNFaceLandmarkRegion2D) PrecisionEstimatesPerPoint ¶
func (o *VNFaceLandmarkRegion2D) PrecisionEstimatesPerPoint() *foundation.NSArray[*foundation.NSNumber]
@brief Obtains the array of accuracy placement estimates per landmark point. @discussion Provides the NSArray object containing landmarks accuracy placement estimates per landmark point. This property is only populated when VNDetectFaceLandmarksRequest object is configured with VNRequestFaceLandmarksConstellation76Points. It is set to nil for other constellations @return NSArray object of NSNumber(s) initialized to floating point values.
type VNFaceLandmarks ¶
type VNFaceLandmarks struct {
foundation.NSObject
}
The abstract superclass for containers of face landmark information.
Apple documentation: https://developer.apple.com/documentation/vision/vnfacelandmarks
func VNFaceLandmarksFromID ¶
func VNFaceLandmarksFromID(id objc.ID) *VNFaceLandmarks
func (*VNFaceLandmarks) Confidence ¶
func (o *VNFaceLandmarks) Confidence() float32
type VNFaceLandmarks2D ¶
type VNFaceLandmarks2D struct {
VNFaceLandmarks
}
A collection of facial features that a request detects.
Apple documentation: https://developer.apple.com/documentation/vision/vnfacelandmarks2d
func VNFaceLandmarks2DFromID ¶
func VNFaceLandmarks2DFromID(id objc.ID) *VNFaceLandmarks2D
func (*VNFaceLandmarks2D) AllPoints ¶
func (o *VNFaceLandmarks2D) AllPoints() *VNFaceLandmarkRegion2D
@brief allPoints the region containing all face landmark points.
func (*VNFaceLandmarks2D) FaceContour ¶
func (o *VNFaceLandmarks2D) FaceContour() *VNFaceLandmarkRegion2D
@brief faceContour the region containing the points that describe the face contour from cheek over chin to cheek.
func (*VNFaceLandmarks2D) InnerLips ¶
func (o *VNFaceLandmarks2D) InnerLips() *VNFaceLandmarkRegion2D
@brief innerLips the region containing the points describing the outline of the space between the of the lips.
func (*VNFaceLandmarks2D) LeftEye ¶
func (o *VNFaceLandmarks2D) LeftEye() *VNFaceLandmarkRegion2D
@brief leftEye the region containing the points describing the outline of the left eye.
func (*VNFaceLandmarks2D) LeftEyebrow ¶
func (o *VNFaceLandmarks2D) LeftEyebrow() *VNFaceLandmarkRegion2D
@brief leftEyebrow the region containing the points describing the trace of the left eyebrow.
func (*VNFaceLandmarks2D) LeftPupil ¶
func (o *VNFaceLandmarks2D) LeftPupil() *VNFaceLandmarkRegion2D
@brief leftPupil the region containing the point where the left pupil is located. This value may be inaccurate if the face isBlinking.
func (*VNFaceLandmarks2D) MedianLine ¶
func (o *VNFaceLandmarks2D) MedianLine() *VNFaceLandmarkRegion2D
@brief medianLine the region containing the points describing the trace of the center line of the face.
func (*VNFaceLandmarks2D) Nose ¶
func (o *VNFaceLandmarks2D) Nose() *VNFaceLandmarkRegion2D
@brief nose the region containing the points describing the outline of the nose.
func (*VNFaceLandmarks2D) NoseCrest ¶
func (o *VNFaceLandmarks2D) NoseCrest() *VNFaceLandmarkRegion2D
@brief noseCrest the region containing the points describing the trace of the center crest of the nose.
func (*VNFaceLandmarks2D) OuterLips ¶
func (o *VNFaceLandmarks2D) OuterLips() *VNFaceLandmarkRegion2D
@brief outer lips the region containing the points describing the outline of the outside of the lips.
func (*VNFaceLandmarks2D) RightEye ¶
func (o *VNFaceLandmarks2D) RightEye() *VNFaceLandmarkRegion2D
@brief rightEye the region containing the points describing the outline of the right eye.
func (*VNFaceLandmarks2D) RightEyebrow ¶
func (o *VNFaceLandmarks2D) RightEyebrow() *VNFaceLandmarkRegion2D
@brief rightEyebrow the region containing the points describing the trace of the right eyebrow.
func (*VNFaceLandmarks2D) RightPupil ¶
func (o *VNFaceLandmarks2D) RightPupil() *VNFaceLandmarkRegion2D
@brief rightPupil the region containing the point where the right pupil is located. This value may be inaccurate if the face isBlinking.
type VNFaceObservation ¶
type VNFaceObservation struct {
VNDetectedObjectObservation
}
Face or facial-feature information that an image analysis request detects.
Apple documentation: https://developer.apple.com/documentation/vision/vnfaceobservation
func VNFaceObservationFaceObservationWithRequestRevisionBoundingBoxRollYaw ¶
func VNFaceObservationFaceObservationWithRequestRevisionBoundingBoxRollYaw(requestRevision uint, boundingBox corefoundation.CGRect, roll *foundation.NSNumber, yaw *foundation.NSNumber) *VNFaceObservation
Creates an observation that contains the roll and yaw of the face. Deprecated: since macOS 12.0.
func VNFaceObservationFaceObservationWithRequestRevisionBoundingBoxRollYawPitch ¶
func VNFaceObservationFaceObservationWithRequestRevisionBoundingBoxRollYawPitch(requestRevision uint, boundingBox corefoundation.CGRect, roll *foundation.NSNumber, yaw *foundation.NSNumber, pitch *foundation.NSNumber) *VNFaceObservation
Creates an observation that contains the roll, yaw, and pitch of the face.
func VNFaceObservationFromID ¶
func VNFaceObservationFromID(id objc.ID) *VNFaceObservation
func (*VNFaceObservation) FaceCaptureQuality ¶
func (o *VNFaceObservation) FaceCaptureQuality() *foundation.NSNumber
@brief The capture quality of the face as a normalized value between 0.0 and 1.0 that can be used to compare the quality of the face in terms of it capture attributes (lighting, blur, position). This score can be used to compare the capture quality of a face against other captures of the same face in a given set.
func (*VNFaceObservation) Landmarks ¶
func (o *VNFaceObservation) Landmarks() *VNFaceLandmarks2D
@brief The face landmarks populated by the VNDetectFaceLandmarksRequest. This is set to nil if only a VNDetectFaceRectanglesRequest was performed.
func (*VNFaceObservation) Pitch ¶
func (o *VNFaceObservation) Pitch() *foundation.NSNumber
@brief Face pitch angle populated by VNDetectFaceRectanglesRequest. The pitch is reported in radians, positive angle corresponds to nodding head down direction, range [-Pi/2, Pi/2]. nil value indicates that the pitch angle hasn't been computed
func (*VNFaceObservation) Roll ¶
func (o *VNFaceObservation) Roll() *foundation.NSNumber
@brief Face roll angle populated by VNDetectFaceRectanglesRequest. The roll is reported in radians, positive angle corresponds to counterclockwise direction, range [-Pi, Pi). nil value indicates that the roll angle hasn't been computed
func (*VNFaceObservation) Yaw ¶
func (o *VNFaceObservation) Yaw() *foundation.NSNumber
@brief Face yaw angle populated by VNDetectFaceRectanglesRequest. The yaw is reported in radians, positive angle corresponds to counterclockwise direction, range [-Pi/2, Pi/2]. nil value indicates that the yaw angle hasn't been computed
type VNFaceObservationAccepting ¶
type VNFaceObservationAccepting interface {
InputFaceObservations() *foundation.NSArray[*VNFaceObservation]
SetInputFaceObservations(inputFaceObservations *foundation.NSArray[*VNFaceObservation])
}
VNFaceObservationAccepting wraps the ObjC protocol VNFaceObservationAccepting.
type VNFeaturePrintObservation ¶
type VNFeaturePrintObservation struct {
VNObservation
}
An observation that provides the recognized feature print.
Apple documentation: https://developer.apple.com/documentation/vision/vnfeatureprintobservation
func VNFeaturePrintObservationFromID ¶
func VNFeaturePrintObservationFromID(id objc.ID) *VNFeaturePrintObservation
func (*VNFeaturePrintObservation) ComputeDistanceToFeaturePrintObservationError ¶
func (o *VNFeaturePrintObservation) ComputeDistanceToFeaturePrintObservationError(outDistance *float32, featurePrint *VNFeaturePrintObservation) (bool, error)
Computes the distance between two feature print observations.
func (*VNFeaturePrintObservation) Data ¶
func (o *VNFeaturePrintObservation) Data() *foundation.NSData
@brief The feature print data.
func (*VNFeaturePrintObservation) ElementCount ¶
func (o *VNFeaturePrintObservation) ElementCount() uint
@brief The total number of elements in the data.
func (*VNFeaturePrintObservation) ElementType ¶
func (o *VNFeaturePrintObservation) ElementType() VNElementType
@brief The type of each element in the data.
type VNGenerateAttentionBasedSaliencyImageRequest ¶
type VNGenerateAttentionBasedSaliencyImageRequest struct {
VNImageBasedRequest
}
An object that produces a heat map that identifies the parts of an image most likely to draw attention.
Apple documentation: https://developer.apple.com/documentation/vision/vngenerateattentionbasedsaliencyimagerequest
func VNGenerateAttentionBasedSaliencyImageRequestFromID ¶
func VNGenerateAttentionBasedSaliencyImageRequestFromID(id objc.ID) *VNGenerateAttentionBasedSaliencyImageRequest
type VNGenerateForegroundInstanceMaskRequest ¶
type VNGenerateForegroundInstanceMaskRequest struct {
VNImageBasedRequest
}
A request that generates an instance mask of noticable objects to separate from the background.
Apple documentation: https://developer.apple.com/documentation/vision/vngenerateforegroundinstancemaskrequest
func VNGenerateForegroundInstanceMaskRequestFromID ¶
func VNGenerateForegroundInstanceMaskRequestFromID(id objc.ID) *VNGenerateForegroundInstanceMaskRequest
type VNGenerateImageFeaturePrintRequest ¶
type VNGenerateImageFeaturePrintRequest struct {
VNImageBasedRequest
}
An image-based request to generate feature prints from an image.
Apple documentation: https://developer.apple.com/documentation/vision/vngenerateimagefeatureprintrequest
func VNGenerateImageFeaturePrintRequestFromID ¶
func VNGenerateImageFeaturePrintRequestFromID(id objc.ID) *VNGenerateImageFeaturePrintRequest
func (*VNGenerateImageFeaturePrintRequest) ImageCropAndScaleOption ¶
func (o *VNGenerateImageFeaturePrintRequest) ImageCropAndScaleOption() VNImageCropAndScaleOption
@brief Determine what type of croping and scaling action should be applied to the image before generating the feature print. @discussion The default value for this property is `VNImageCropAndScaleOptionScaleFill`.
func (*VNGenerateImageFeaturePrintRequest) SetImageCropAndScaleOption ¶
func (o *VNGenerateImageFeaturePrintRequest) SetImageCropAndScaleOption(imageCropAndScaleOption VNImageCropAndScaleOption)
type VNGenerateObjectnessBasedSaliencyImageRequest ¶
type VNGenerateObjectnessBasedSaliencyImageRequest struct {
VNImageBasedRequest
}
A request that generates a heat map that identifies the parts of an image most likely to represent objects.
Apple documentation: https://developer.apple.com/documentation/vision/vngenerateobjectnessbasedsaliencyimagerequest
func VNGenerateObjectnessBasedSaliencyImageRequestFromID ¶
func VNGenerateObjectnessBasedSaliencyImageRequestFromID(id objc.ID) *VNGenerateObjectnessBasedSaliencyImageRequest
type VNGenerateOpticalFlowRequest ¶
type VNGenerateOpticalFlowRequest struct {
VNTargetedImageRequest
}
An object that generates directional change vectors for each pixel in the targeted image.
Apple documentation: https://developer.apple.com/documentation/vision/vngenerateopticalflowrequest
func VNGenerateOpticalFlowRequestFromID ¶
func VNGenerateOpticalFlowRequestFromID(id objc.ID) *VNGenerateOpticalFlowRequest
func (*VNGenerateOpticalFlowRequest) ComputationAccuracy ¶
func (o *VNGenerateOpticalFlowRequest) ComputationAccuracy() VNGenerateOpticalFlowRequestComputationAccuracy
@brief The level of accuracy used to compute the optical flow. Default is VNGenerateOpticalFlowRequestComputationAccuracyMedium. @discussion The computational time typically trends with the accuracy level. This parameter allows for selective tuning by the client application.
func (*VNGenerateOpticalFlowRequest) KeepNetworkOutput ¶
func (o *VNGenerateOpticalFlowRequest) KeepNetworkOutput() bool
@brief Setting this to YES will keep the raw pixel buffer coming from the the ML network. The default is NO. @discussion When set to YES, the outputPixelFormat is ignored. Setting this for revision 1 is a no-op as it is not ML-based.
func (*VNGenerateOpticalFlowRequest) OutputPixelFormat ¶
func (o *VNGenerateOpticalFlowRequest) OutputPixelFormat() uint
@brief Pixel format type of the output buffer. Valid values are kCVPixelFormatType_TwoComponent32Float and kCVPixelFormatType_TwoComponent16Half. Default is kCVPixelFormatType_TwoComponent32Float.
func (*VNGenerateOpticalFlowRequest) SetComputationAccuracy ¶
func (o *VNGenerateOpticalFlowRequest) SetComputationAccuracy(computationAccuracy VNGenerateOpticalFlowRequestComputationAccuracy)
func (*VNGenerateOpticalFlowRequest) SetKeepNetworkOutput ¶
func (o *VNGenerateOpticalFlowRequest) SetKeepNetworkOutput(keepNetworkOutput bool)
func (*VNGenerateOpticalFlowRequest) SetOutputPixelFormat ¶
func (o *VNGenerateOpticalFlowRequest) SetOutputPixelFormat(outputPixelFormat uint)
type VNGenerateOpticalFlowRequestComputationAccuracy ¶
type VNGenerateOpticalFlowRequestComputationAccuracy uint64
The supported optical flow accuracy levels.
const ( VNGenerateOpticalFlowRequestComputationAccuracyLow VNGenerateOpticalFlowRequestComputationAccuracy = 0 VNGenerateOpticalFlowRequestComputationAccuracyMedium VNGenerateOpticalFlowRequestComputationAccuracy = 1 VNGenerateOpticalFlowRequestComputationAccuracyHigh VNGenerateOpticalFlowRequestComputationAccuracy = 2 VNGenerateOpticalFlowRequestComputationAccuracyVeryHigh VNGenerateOpticalFlowRequestComputationAccuracy = 3 )
func (VNGenerateOpticalFlowRequestComputationAccuracy) String ¶
func (e VNGenerateOpticalFlowRequestComputationAccuracy) String() string
type VNGeneratePersonInstanceMaskRequest ¶
type VNGeneratePersonInstanceMaskRequest struct {
VNImageBasedRequest
}
An object that produces a mask of individual people it finds in the input image.
Apple documentation: https://developer.apple.com/documentation/vision/vngeneratepersoninstancemaskrequest
func VNGeneratePersonInstanceMaskRequestFromID ¶
func VNGeneratePersonInstanceMaskRequestFromID(id objc.ID) *VNGeneratePersonInstanceMaskRequest
type VNGeneratePersonSegmentationRequest ¶
type VNGeneratePersonSegmentationRequest struct {
VNStatefulRequest
}
An object that produces a matte image for a person it finds in the input image.
Apple documentation: https://developer.apple.com/documentation/vision/vngeneratepersonsegmentationrequest
func VNGeneratePersonSegmentationRequestFromID ¶
func VNGeneratePersonSegmentationRequestFromID(id objc.ID) *VNGeneratePersonSegmentationRequest
func VNGeneratePersonSegmentationRequestNew ¶
func VNGeneratePersonSegmentationRequestNew() *VNGeneratePersonSegmentationRequest
Returns a new generate person segmentation request.
func (*VNGeneratePersonSegmentationRequest) Init ¶
func (o *VNGeneratePersonSegmentationRequest) Init() *VNGeneratePersonSegmentationRequest
Creates a generate person segmentation request.
func (*VNGeneratePersonSegmentationRequest) InitWithCompletionHandler ¶
func (o *VNGeneratePersonSegmentationRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNGeneratePersonSegmentationRequest
Creates a generate person segmentation request with a completion handler.
func (*VNGeneratePersonSegmentationRequest) OutputPixelFormat ¶
func (o *VNGeneratePersonSegmentationRequest) OutputPixelFormat() uint
@brief Pixel format type of the output buffer. Valid values are kCVPixelFormatType_OneComponent32Float, kCVPixelFormatType_OneComponent16Half, and kCVPixelFormatType_OneComponent8. Default is kCVPixelFormatType_OneComponent8.
func (*VNGeneratePersonSegmentationRequest) QualityLevel ¶
func (o *VNGeneratePersonSegmentationRequest) QualityLevel() VNGeneratePersonSegmentationRequestQualityLevel
@brief The quality level selects which techniques will be used during the person segmentation. There are trade-offs between performance and accuracy.
func (*VNGeneratePersonSegmentationRequest) SetOutputPixelFormat ¶
func (o *VNGeneratePersonSegmentationRequest) SetOutputPixelFormat(outputPixelFormat uint)
func (*VNGeneratePersonSegmentationRequest) SetQualityLevel ¶
func (o *VNGeneratePersonSegmentationRequest) SetQualityLevel(qualityLevel VNGeneratePersonSegmentationRequestQualityLevel)
func (*VNGeneratePersonSegmentationRequest) SupportedOutputPixelFormatsAndReturnError ¶
func (o *VNGeneratePersonSegmentationRequest) SupportedOutputPixelFormatsAndReturnError() (*foundation.NSArray[*foundation.NSNumber], error)
Returns a list of output pixel formats that the request supports.
type VNGeneratePersonSegmentationRequestQualityLevel ¶
type VNGeneratePersonSegmentationRequestQualityLevel uint64
Constants that define the levels of quality for a person segmentation request.
const ( VNGeneratePersonSegmentationRequestQualityLevelAccurate VNGeneratePersonSegmentationRequestQualityLevel = 0 VNGeneratePersonSegmentationRequestQualityLevelBalanced VNGeneratePersonSegmentationRequestQualityLevel = 1 VNGeneratePersonSegmentationRequestQualityLevelFast VNGeneratePersonSegmentationRequestQualityLevel = 2 )
func (VNGeneratePersonSegmentationRequestQualityLevel) String ¶
func (e VNGeneratePersonSegmentationRequestQualityLevel) String() string
type VNGeometryUtils ¶
type VNGeometryUtils struct {
foundation.NSObject
}
Utility methods to determine the geometries of various Vision types.
Apple documentation: https://developer.apple.com/documentation/vision/vngeometryutils
func VNGeometryUtilsFromID ¶
func VNGeometryUtilsFromID(id objc.ID) *VNGeometryUtils
type VNHomographicImageRegistrationRequest ¶
type VNHomographicImageRegistrationRequest struct {
VNImageRegistrationRequest
}
An image-analysis request that determines the perspective warp matrix necessary to align the content of two images.
Apple documentation: https://developer.apple.com/documentation/vision/vnhomographicimageregistrationrequest
func VNHomographicImageRegistrationRequestFromID ¶
func VNHomographicImageRegistrationRequestFromID(id objc.ID) *VNHomographicImageRegistrationRequest
type VNHorizonObservation ¶
type VNHorizonObservation struct {
VNObservation
}
The horizon angle information that an image-analysis request detects.
Apple documentation: https://developer.apple.com/documentation/vision/vnhorizonobservation
func VNHorizonObservationFromID ¶
func VNHorizonObservationFromID(id objc.ID) *VNHorizonObservation
func (*VNHorizonObservation) Angle ¶
func (o *VNHorizonObservation) Angle() float64
@brief Angle of the observed horizon.
func (*VNHorizonObservation) Transform ¶
func (o *VNHorizonObservation) Transform() corefoundation.CGAffineTransform
@brief Transform applied to the detected horizon in image coordinates. @discussion This is the transform in image coordinates and not a normalized transform.
func (*VNHorizonObservation) TransformForImageWidthHeight ¶
func (o *VNHorizonObservation) TransformForImageWidthHeight(width uint, height uint) corefoundation.CGAffineTransform
Creates an affine transform for the specified image width and height.
type VNHumanBodyPose3DObservation ¶
type VNHumanBodyPose3DObservation struct {
VNRecognizedPoints3DObservation
}
An observation that provides the 3D body points the request recognizes.
Apple documentation: https://developer.apple.com/documentation/vision/vnhumanbodypose3dobservation
func VNHumanBodyPose3DObservationFromID ¶
func VNHumanBodyPose3DObservationFromID(id objc.ID) *VNHumanBodyPose3DObservation
func (*VNHumanBodyPose3DObservation) AvailableJointNames ¶
func (o *VNHumanBodyPose3DObservation) AvailableJointNames() *foundation.NSArray[*foundation.NSString]
@brief All of the joint names available in the observation.
func (*VNHumanBodyPose3DObservation) AvailableJointsGroupNames ¶
func (o *VNHumanBodyPose3DObservation) AvailableJointsGroupNames() *foundation.NSArray[*foundation.NSString]
@brief All of the joints group names available in the observation.
func (*VNHumanBodyPose3DObservation) BodyHeight ¶
func (o *VNHumanBodyPose3DObservation) BodyHeight() float32
@brief Estimated human height, in meters. @note A measured height will be returned in meters if `heightEstimation` is `VNHumanBodyPose3DObservationHeightEstimationMeasured`, otherwise reference height of 1.8 meters is returned for `VNHumanBodyPose3DObservationHeightEstimationReference`
func (*VNHumanBodyPose3DObservation) CameraOriginMatrix ¶
func (o *VNHumanBodyPose3DObservation) CameraOriginMatrix() unsafe.Pointer
@brief A transform from root (at hip) to Camera as projection center.
func (*VNHumanBodyPose3DObservation) GetCameraRelativePositionForJointNameError ¶
func (o *VNHumanBodyPose3DObservation) GetCameraRelativePositionForJointNameError(modelPositionOut unsafe.Pointer, jointName *foundation.NSString) (bool, error)
Gets a position relative to the camera for the body joint you specify.
func (*VNHumanBodyPose3DObservation) HeightEstimation ¶
func (o *VNHumanBodyPose3DObservation) HeightEstimation() VNHumanBodyPose3DObservationHeightEstimation
@brief Technique used to estimate body height. `VNHumanBodyPose3DObservationHeightEstimationMeasured` indicates`bodyHeight` returns measured height in meters more accurate to true world height. `VNHumanBodyPose3DObservationHeightEstimationReference` indicates `bodyHeight` returns reference height of 1.8 m
func (*VNHumanBodyPose3DObservation) ParentJointNameForJointName ¶
func (o *VNHumanBodyPose3DObservation) ParentJointNameForJointName(jointName *foundation.NSString) *foundation.NSString
Returns the parent joint of the joint name you specify.
func (*VNHumanBodyPose3DObservation) PointInImageForJointNameError ¶
func (o *VNHumanBodyPose3DObservation) PointInImageForJointNameError(jointName *foundation.NSString) (*VNPoint, error)
Returns a 2D point for the joint name you specify, relative to the input image.
func (*VNHumanBodyPose3DObservation) RecognizedPointForJointNameError ¶
func (o *VNHumanBodyPose3DObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNHumanBodyRecognizedPoint3D, error)
Returns the point for a joint name that the observation recognizes.
func (*VNHumanBodyPose3DObservation) RecognizedPointsForJointsGroupNameError ¶
func (o *VNHumanBodyPose3DObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNHumanBodyRecognizedPoint3D], error)
Returns a collection of points for the group name you specify.
type VNHumanBodyPose3DObservationHeightEstimation ¶
type VNHumanBodyPose3DObservationHeightEstimation int64
Constants that identify body height estimation techniques.
const ( VNHumanBodyPose3DObservationHeightEstimationReference VNHumanBodyPose3DObservationHeightEstimation = 0 VNHumanBodyPose3DObservationHeightEstimationMeasured VNHumanBodyPose3DObservationHeightEstimation = 1 )
func (VNHumanBodyPose3DObservationHeightEstimation) String ¶
func (e VNHumanBodyPose3DObservationHeightEstimation) String() string
type VNHumanBodyPoseObservation ¶
type VNHumanBodyPoseObservation struct {
VNRecognizedPointsObservation
}
An observation that provides the body points the analysis recognized.
Apple documentation: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation
func VNHumanBodyPoseObservationFromID ¶
func VNHumanBodyPoseObservationFromID(id objc.ID) *VNHumanBodyPoseObservation
func (*VNHumanBodyPoseObservation) AvailableJointNames ¶
func (o *VNHumanBodyPoseObservation) AvailableJointNames() *foundation.NSArray[*foundation.NSString]
@brief All of the joint names available in the observation.
func (*VNHumanBodyPoseObservation) AvailableJointsGroupNames ¶
func (o *VNHumanBodyPoseObservation) AvailableJointsGroupNames() *foundation.NSArray[*foundation.NSString]
@brief All of the joints group names available in the observation.
func (*VNHumanBodyPoseObservation) RecognizedPointForJointNameError ¶
func (o *VNHumanBodyPoseObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNRecognizedPoint, error)
Retrieves the recognized point for a joint name.
func (*VNHumanBodyPoseObservation) RecognizedPointsForJointsGroupNameError ¶
func (o *VNHumanBodyPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint], error)
Retrieves the recognized points associated with the joint group name.
type VNHumanBodyRecognizedPoint3D ¶
type VNHumanBodyRecognizedPoint3D struct {
VNRecognizedPoint3D
}
A recognized 3D point that includes a parent joint.
Apple documentation: https://developer.apple.com/documentation/vision/vnhumanbodyrecognizedpoint3d
func VNHumanBodyRecognizedPoint3DFromID ¶
func VNHumanBodyRecognizedPoint3DFromID(id objc.ID) *VNHumanBodyRecognizedPoint3D
func (*VNHumanBodyRecognizedPoint3D) LocalPosition ¶
func (o *VNHumanBodyRecognizedPoint3D) LocalPosition() unsafe.Pointer
func (*VNHumanBodyRecognizedPoint3D) ParentJoint ¶
func (o *VNHumanBodyRecognizedPoint3D) ParentJoint() *foundation.NSString
type VNHumanHandPoseObservation ¶
type VNHumanHandPoseObservation struct {
VNRecognizedPointsObservation
}
An observation that provides the hand points the analysis recognized.
Apple documentation: https://developer.apple.com/documentation/vision/vnhumanhandposeobservation
func VNHumanHandPoseObservationFromID ¶
func VNHumanHandPoseObservationFromID(id objc.ID) *VNHumanHandPoseObservation
func (*VNHumanHandPoseObservation) AvailableJointNames ¶
func (o *VNHumanHandPoseObservation) AvailableJointNames() *foundation.NSArray[*foundation.NSString]
@brief All of the joint names available in the observation.
func (*VNHumanHandPoseObservation) AvailableJointsGroupNames ¶
func (o *VNHumanHandPoseObservation) AvailableJointsGroupNames() *foundation.NSArray[*foundation.NSString]
@brief All of the joints group names available in the observation.
func (*VNHumanHandPoseObservation) Chirality ¶
func (o *VNHumanHandPoseObservation) Chirality() VNChirality
@brief The chirality of the hand.
func (*VNHumanHandPoseObservation) RecognizedPointForJointNameError ¶
func (o *VNHumanHandPoseObservation) RecognizedPointForJointNameError(jointName *foundation.NSString) (*VNRecognizedPoint, error)
Retrieves the recognized point for a joint name.
func (*VNHumanHandPoseObservation) RecognizedPointsForJointsGroupNameError ¶
func (o *VNHumanHandPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint], error)
Retrieves the recognized points associated with the joint group name.
type VNHumanObservation ¶
type VNHumanObservation struct {
VNDetectedObjectObservation
}
An object that represents a person that the request detects.
Apple documentation: https://developer.apple.com/documentation/vision/vnhumanobservation
func VNHumanObservationFromID ¶
func VNHumanObservationFromID(id objc.ID) *VNHumanObservation
func (*VNHumanObservation) UpperBodyOnly ¶
func (o *VNHumanObservation) UpperBodyOnly() bool
type VNImageAestheticsScoresObservation ¶
type VNImageAestheticsScoresObservation struct {
VNObservation
}
An object that represents the overall score of aesthetic attributes for an image.
Apple documentation: https://developer.apple.com/documentation/vision/vnimageaestheticsscoresobservation
func VNImageAestheticsScoresObservationFromID ¶
func VNImageAestheticsScoresObservationFromID(id objc.ID) *VNImageAestheticsScoresObservation
func (*VNImageAestheticsScoresObservation) IsUtility ¶
func (o *VNImageAestheticsScoresObservation) IsUtility() bool
A Boolean value that represents images that are not necessarily of poor image quality, but may not have memorable or exciting content.
func (*VNImageAestheticsScoresObservation) OverallScore ¶
func (o *VNImageAestheticsScoresObservation) OverallScore() float32
A score which incorporates aesthetic score, failure score, and utility labels. This returns a value within the range of `-1` and `1`, where `-1` is least desirable and `1` is most desirable.
type VNImageAlignmentObservation ¶
type VNImageAlignmentObservation struct {
VNObservation
}
The abstract superclass for image-analysis results that describe the relative alignment of two images.
Apple documentation: https://developer.apple.com/documentation/vision/vnimagealignmentobservation
func VNImageAlignmentObservationFromID ¶
func VNImageAlignmentObservationFromID(id objc.ID) *VNImageAlignmentObservation
type VNImageBasedRequest ¶
type VNImageBasedRequest struct {
VNRequest
}
The abstract superclass for image-analysis requests that focus on a specific part of an image.
Apple documentation: https://developer.apple.com/documentation/vision/vnimagebasedrequest
func VNImageBasedRequestFromID ¶
func VNImageBasedRequestFromID(id objc.ID) *VNImageBasedRequest
func (*VNImageBasedRequest) RegionOfInterest ¶
func (o *VNImageBasedRequest) RegionOfInterest() corefoundation.CGRect
func (*VNImageBasedRequest) SetRegionOfInterest ¶
func (o *VNImageBasedRequest) SetRegionOfInterest(regionOfInterest corefoundation.CGRect)
type VNImageCropAndScaleOption ¶
type VNImageCropAndScaleOption uint64
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. VNImageCropAndScaleOptionCenterCrop VNImageCropAndScaleOption = 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. VNImageCropAndScaleOptionScaleFit VNImageCropAndScaleOption = 1 // An option that scales the image to fill the input dimensions, resizing it if necessary. VNImageCropAndScaleOptionScaleFill VNImageCropAndScaleOption = 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. VNImageCropAndScaleOptionScaleFitRotate90CCW VNImageCropAndScaleOption = 257 // An option that rotates the image 90 degrees counterclockwise and then scales it to fill the input dimensions. VNImageCropAndScaleOptionScaleFillRotate90CCW VNImageCropAndScaleOption = 258 )
func (VNImageCropAndScaleOption) String ¶
func (e VNImageCropAndScaleOption) String() string
type VNImageHomographicAlignmentObservation ¶
type VNImageHomographicAlignmentObservation struct {
VNImageAlignmentObservation
}
An object that represents a perspective warp transformation.
Apple documentation: https://developer.apple.com/documentation/vision/vnimagehomographicalignmentobservation
func VNImageHomographicAlignmentObservationFromID ¶
func VNImageHomographicAlignmentObservationFromID(id objc.ID) *VNImageHomographicAlignmentObservation
func (*VNImageHomographicAlignmentObservation) WarpTransform ¶
func (o *VNImageHomographicAlignmentObservation) WarpTransform() unsafe.Pointer
type VNImageRegistrationRequest ¶
type VNImageRegistrationRequest struct {
VNTargetedImageRequest
}
The abstract superclass for image-analysis requests that align images according to their content.
Apple documentation: https://developer.apple.com/documentation/vision/vnimageregistrationrequest
func VNImageRegistrationRequestFromID ¶
func VNImageRegistrationRequestFromID(id objc.ID) *VNImageRegistrationRequest
type VNImageRequestHandler ¶
type VNImageRequestHandler struct {
foundation.NSObject
}
An object that processes one or more image-analysis request pertaining to a single image.
Apple documentation: https://developer.apple.com/documentation/vision/vnimagerequesthandler
func VNImageRequestHandlerFromID ¶
func VNImageRequestHandlerFromID(id objc.ID) *VNImageRequestHandler
func (*VNImageRequestHandler) InitWithCGImageOptions ¶
func (o *VNImageRequestHandler) InitWithCGImageOptions(image unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a handler to be used for performing requests on Core Graphics images.
func (*VNImageRequestHandler) InitWithCGImageOrientationOptions ¶
func (o *VNImageRequestHandler) InitWithCGImageOrientationOptions(image unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a handler to be used for performing requests on a Core Graphics image with known orientation.
func (*VNImageRequestHandler) InitWithCIImageOptions ¶
func (o *VNImageRequestHandler) InitWithCIImageOptions(image *coreimage.CIImage, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a handler to use for performing requests on Core Image image data.
func (*VNImageRequestHandler) InitWithCIImageOrientationOptions ¶
func (o *VNImageRequestHandler) InitWithCIImageOrientationOptions(image *coreimage.CIImage, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a handler to be used for performing requests on Core Image image data of a known orientation.
func (*VNImageRequestHandler) InitWithCMSampleBufferDepthDataOrientationOptions ¶
func (o *VNImageRequestHandler) InitWithCMSampleBufferDepthDataOrientationOptions(sampleBuffer unsafe.Pointer, depthData *avfoundation.AVDepthData, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a request handler that performs requests on an image in a sample buffer that contains depth data.
func (*VNImageRequestHandler) InitWithCMSampleBufferOptions ¶
func (o *VNImageRequestHandler) InitWithCMSampleBufferOptions(sampleBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a request handler that performs requests on an image contained within a sample buffer.
func (*VNImageRequestHandler) InitWithCMSampleBufferOrientationOptions ¶
func (o *VNImageRequestHandler) InitWithCMSampleBufferOrientationOptions(sampleBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a request handler that performs requests on an image of a specified orientation contained within a sample buffer.
func (*VNImageRequestHandler) InitWithCVPixelBufferDepthDataOrientationOptions ¶
func (o *VNImageRequestHandler) InitWithCVPixelBufferDepthDataOrientationOptions(pixelBuffer unsafe.Pointer, depthData *avfoundation.AVDepthData, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
@brief initWithCVPixelBuffer:depthData:orientation:options creates a VNImageRequestHandler to be used for performing requests against the image passed in as buffer with depth information. @param pixelBuffer A CVPixelBuffer containing the image to be used for performing the requests. The content of the buffer cannot be modified for the lifetime of the VNImageRequestHandler. @param depthData An AVDepthData instance associated with the pixelBuffer @param orientation The orientation of the image and depth buffers based on the EXIF specification. For details see kCGImagePropertyOrientation. The value has to be an integer from 1 to 8. This supersedes every other orientation information and should match for both buffers. @param options A dictionary with options specifying auxiliary information for the buffer/image
func (*VNImageRequestHandler) InitWithCVPixelBufferOptions ¶
func (o *VNImageRequestHandler) InitWithCVPixelBufferOptions(pixelBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a handler for performing requests on a Core Video pixel buffer.
func (*VNImageRequestHandler) InitWithCVPixelBufferOrientationOptions ¶
func (o *VNImageRequestHandler) InitWithCVPixelBufferOrientationOptions(pixelBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a handler for performing requests on a Core Video pixel buffer of a known orientation.
func (*VNImageRequestHandler) InitWithDataOptions ¶
func (o *VNImageRequestHandler) InitWithDataOptions(imageData *foundation.NSData, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a handler to use for performing requests on an image in a data object.
func (*VNImageRequestHandler) InitWithDataOrientationOptions ¶
func (o *VNImageRequestHandler) InitWithDataOrientationOptions(imageData *foundation.NSData, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a handler to use for performing requests on an image of known orientation.
func (*VNImageRequestHandler) InitWithURLOptions ¶
func (o *VNImageRequestHandler) InitWithURLOptions(imageURL *foundation.NSURL, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a handler to be used for performing requests on an image at the specified URL.
func (*VNImageRequestHandler) InitWithURLOrientationOptions ¶
func (o *VNImageRequestHandler) InitWithURLOrientationOptions(imageURL *foundation.NSURL, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNImageRequestHandler
Creates a handler to be used for performing requests on an image with known orientation, at the specified URL.
func (*VNImageRequestHandler) PerformRequestsError ¶
func (o *VNImageRequestHandler) PerformRequestsError(requests *foundation.NSArray[*VNRequest]) (bool, error)
Schedules Vision requests to perform.
type VNImageTranslationAlignmentObservation ¶
type VNImageTranslationAlignmentObservation struct {
VNImageAlignmentObservation
}
Affine transform information that an image-alignment request produces.
Apple documentation: https://developer.apple.com/documentation/vision/vnimagetranslationalignmentobservation
func VNImageTranslationAlignmentObservationFromID ¶
func VNImageTranslationAlignmentObservationFromID(id objc.ID) *VNImageTranslationAlignmentObservation
func (*VNImageTranslationAlignmentObservation) AlignmentTransform ¶
func (o *VNImageTranslationAlignmentObservation) AlignmentTransform() corefoundation.CGAffineTransform
type VNInstanceMaskObservation ¶
type VNInstanceMaskObservation struct {
VNObservation
}
An observation that contains an instance mask that labels instances in the mask.
Apple documentation: https://developer.apple.com/documentation/vision/vninstancemaskobservation
func VNInstanceMaskObservationFromID ¶
func VNInstanceMaskObservationFromID(id objc.ID) *VNInstanceMaskObservation
func (*VNInstanceMaskObservation) AllInstances ¶
func (o *VNInstanceMaskObservation) AllInstances() *foundation.NSIndexSet
@brief *The IndexSet that encompases all instances except the background
func (*VNInstanceMaskObservation) GenerateMaskForInstancesError ¶
func (o *VNInstanceMaskObservation) GenerateMaskForInstancesError(instances *foundation.NSIndexSet) (unsafe.Pointer, error)
Creates a low-resolution mask from the instances you specify.
func (*VNInstanceMaskObservation) GenerateMaskedImageOfInstancesFromRequestHandlerCroppedToInstancesExtentError ¶
func (o *VNInstanceMaskObservation) GenerateMaskedImageOfInstancesFromRequestHandlerCroppedToInstancesExtentError(instances *foundation.NSIndexSet, requestHandler *VNImageRequestHandler, cropResult bool) (unsafe.Pointer, error)
Creates a high-resolution image where everything becomes transparent black, except for the instances you specify.
func (*VNInstanceMaskObservation) GenerateScaledMaskForImageForInstancesFromRequestHandlerError ¶
func (o *VNInstanceMaskObservation) GenerateScaledMaskForImageForInstancesFromRequestHandlerError(instances *foundation.NSIndexSet, requestHandler *VNImageRequestHandler) (unsafe.Pointer, error)
Creates a high-resolution mask where everything becomes transparent black, except for the instances you specify.
func (*VNInstanceMaskObservation) InstanceMask ¶
func (o *VNInstanceMaskObservation) InstanceMask() unsafe.Pointer
@brief The resulting mask represents all instances in a mask image where 0 represents the background and all other values represent the indices of the instances identified. Note that a pixel can only correspond to one instance and not multiple instances.
type VNObservation ¶
type VNObservation struct {
foundation.NSObject
}
The abstract superclass for analysis results.
Apple documentation: https://developer.apple.com/documentation/vision/vnobservation
func VNObservationFromID ¶
func VNObservationFromID(id objc.ID) *VNObservation
func (*VNObservation) Confidence ¶
func (o *VNObservation) Confidence() float32
@brief The level of confidence normalized to [0, 1] where 1 is most confident. The only exception is results coming from VNCoreMLRequest, where confidence values are forwarded as is from relevant CoreML models @discussion Confidence can always be returned as 1.0 if confidence is not supported or has no meaning
func (*VNObservation) TimeRange ¶
func (o *VNObservation) TimeRange() coremedia.CMTimeRange
@brief The duration of the observation reporting when first detected and how long it is valid. @discussion The duration of the observation when used with a sequence of buffers. If a request does not support a timeRange or the timeRange is not known, the start time and duration will be set to 0.
func (*VNObservation) Uuid ¶
func (o *VNObservation) Uuid() *foundation.NSUUID
@brief The unique identifier assigned to an observation.
type VNPixelBufferObservation ¶
type VNPixelBufferObservation struct {
VNObservation
}
An object that represents an image that an image-analysis request produces.
Apple documentation: https://developer.apple.com/documentation/vision/vnpixelbufferobservation
func VNPixelBufferObservationFromID ¶
func VNPixelBufferObservationFromID(id objc.ID) *VNPixelBufferObservation
func (*VNPixelBufferObservation) FeatureName ¶
func (o *VNPixelBufferObservation) FeatureName() *foundation.NSString
@brief The name used in the model description of the CoreML model that produced this observation allowing to correlate the observation back to the output of the model. This can be nil if the observation is not the result of a VNCoreMLRequest operation.
func (*VNPixelBufferObservation) PixelBuffer ¶
func (o *VNPixelBufferObservation) PixelBuffer() unsafe.Pointer
@brief The resulting image from a request like VNCoreMLRequest where the model produces an image as an output.
type VNPoint ¶
type VNPoint struct {
foundation.NSObject
}
An immutable object that represents a single 2D point in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vnpoint
func VNPointFromID ¶
func VNPointPointByApplyingVectorToPoint ¶
Creates a point object that’s shifted by the X and Y offsets of the specified vector.
func VNPointZeroPoint ¶
func VNPointZeroPoint() *VNPoint
@brief Returns a VNPoint object that represents the location of (0.0, 0.0).
func (*VNPoint) DistanceToPoint ¶
Returns the distance to another point.
func (*VNPoint) InitWithLocation ¶
func (o *VNPoint) InitWithLocation(location corefoundation.CGPoint) *VNPoint
Creates a point object from the specified Core Graphics point.
func (*VNPoint) InitWithXY ¶
Creates a point object with the specified coordinates.
func (*VNPoint) Location ¶
func (o *VNPoint) Location() corefoundation.CGPoint
@brief Returns the X and Y coordinates of the point, as CGPoint type, with respect to the origin of the coordinate system the point is defined in.
type VNPoint3D ¶
type VNPoint3D struct {
foundation.NSObject
}
An object that represents a 3D point in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vnpoint3d
func VNPoint3DFromID ¶
func (*VNPoint3D) InitWithPosition ¶
Creates a point object with the position you specify.
type VNPointsClassification ¶
type VNPointsClassification int64
The set of classifications that describe how to interpret the points the region provides.
const ( VNPointsClassificationDisconnected VNPointsClassification = 0 VNPointsClassificationOpenPath VNPointsClassification = 1 VNPointsClassificationClosedPath VNPointsClassification = 2 )
func (VNPointsClassification) String ¶
func (e VNPointsClassification) String() string
type VNRecognizeAnimalsRequest ¶
type VNRecognizeAnimalsRequest struct {
VNImageBasedRequest
}
A request that recognizes animals in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizeanimalsrequest
func VNRecognizeAnimalsRequestFromID ¶
func VNRecognizeAnimalsRequestFromID(id objc.ID) *VNRecognizeAnimalsRequest
func (*VNRecognizeAnimalsRequest) SupportedIdentifiersAndReturnError ¶
func (o *VNRecognizeAnimalsRequest) SupportedIdentifiersAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Returns the identifiers of the animals that the request detects.
type VNRecognizeTextRequest ¶
type VNRecognizeTextRequest struct {
VNImageBasedRequest
}
An image-analysis request that finds and recognizes text in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizetextrequest
func VNRecognizeTextRequestFromID ¶
func VNRecognizeTextRequestFromID(id objc.ID) *VNRecognizeTextRequest
func (*VNRecognizeTextRequest) AutomaticallyDetectsLanguage ¶
func (o *VNRecognizeTextRequest) AutomaticallyDetectsLanguage() bool
@brief Language detection will try to automatically identify the script/langauge during the detection and use the appropiate model for recognition and language correction. This can be particularly helpful, if the nature of the content is unkown and with this flag being set it will for instance determine if text is latin vs chinese so you don't have to pick the language model in the first case. But as the language correction cannot always guarantee the correct detection, it is advisable to set the languages, if you have domain knowledge of what language to expect. The default value is NO. Also note that this feature is only available since VNRecognizeTextRequestRevision3 and is a no-op before that.
func (*VNRecognizeTextRequest) CustomWords ¶
func (o *VNRecognizeTextRequest) CustomWords() *foundation.NSArray[*foundation.NSString]
@brief An array of strings that will be used at the word recognition stage in addition to the recognition languages. The customWords list takes precedence over the standard lexicon.
func (*VNRecognizeTextRequest) MinimumTextHeight ¶
func (o *VNRecognizeTextRequest) MinimumTextHeight() float32
func (*VNRecognizeTextRequest) RecognitionLanguages ¶
func (o *VNRecognizeTextRequest) RecognitionLanguages() *foundation.NSArray[*foundation.NSString]
@brief Specify the languages used for the detection. The order of the languages in the array defines the order in which languages will be used during the language processing. The languages are specified as ISO language codes.
func (*VNRecognizeTextRequest) RecognitionLevel ¶
func (o *VNRecognizeTextRequest) RecognitionLevel() VNRequestTextRecognitionLevel
@brief The recognition level selects which techniques will be used during the text recognition. There are trade-offs between performance and accuracy.
func (*VNRecognizeTextRequest) SetAutomaticallyDetectsLanguage ¶
func (o *VNRecognizeTextRequest) SetAutomaticallyDetectsLanguage(automaticallyDetectsLanguage bool)
func (*VNRecognizeTextRequest) SetCustomWords ¶
func (o *VNRecognizeTextRequest) SetCustomWords(customWords *foundation.NSArray[*foundation.NSString])
func (*VNRecognizeTextRequest) SetMinimumTextHeight ¶
func (o *VNRecognizeTextRequest) SetMinimumTextHeight(minimumTextHeight float32)
func (*VNRecognizeTextRequest) SetRecognitionLanguages ¶
func (o *VNRecognizeTextRequest) SetRecognitionLanguages(recognitionLanguages *foundation.NSArray[*foundation.NSString])
func (*VNRecognizeTextRequest) SetRecognitionLevel ¶
func (o *VNRecognizeTextRequest) SetRecognitionLevel(recognitionLevel VNRequestTextRecognitionLevel)
func (*VNRecognizeTextRequest) SetUsesLanguageCorrection ¶
func (o *VNRecognizeTextRequest) SetUsesLanguageCorrection(usesLanguageCorrection bool)
func (*VNRecognizeTextRequest) SupportedRecognitionLanguagesAndReturnError ¶
func (o *VNRecognizeTextRequest) SupportedRecognitionLanguagesAndReturnError() (*foundation.NSArray[*foundation.NSString], error)
Returns the identifiers of the languages that the request supports.
func (*VNRecognizeTextRequest) UsesLanguageCorrection ¶
func (o *VNRecognizeTextRequest) UsesLanguageCorrection() bool
@brief Determines whether language correction should be applied during the recognition process. Disabling this will return the raw recognition results providing performance benefits but less accurate results.
type VNRecognizedObjectObservation ¶
type VNRecognizedObjectObservation struct {
VNDetectedObjectObservation
}
A detected object observation with an array of classification labels that classify the recognized object.
Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedobjectobservation
func VNRecognizedObjectObservationFromID ¶
func VNRecognizedObjectObservationFromID(id objc.ID) *VNRecognizedObjectObservation
func (*VNRecognizedObjectObservation) Labels ¶
func (o *VNRecognizedObjectObservation) Labels() *foundation.NSArray[*VNClassificationObservation]
type VNRecognizedPoint ¶
type VNRecognizedPoint struct {
VNDetectedPoint
}
An object that represents a normalized point in an image, along with an identifier label and a confidence value.
Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedpoint
func VNRecognizedPointFromID ¶
func VNRecognizedPointFromID(id objc.ID) *VNRecognizedPoint
func (*VNRecognizedPoint) Identifier ¶
func (o *VNRecognizedPoint) Identifier() *foundation.NSString
type VNRecognizedPoint3D ¶
type VNRecognizedPoint3D struct {
VNPoint3D
}
A 3D point that includes an identifier to the point.
Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedpoint3d
func VNRecognizedPoint3DFromID ¶
func VNRecognizedPoint3DFromID(id objc.ID) *VNRecognizedPoint3D
func (*VNRecognizedPoint3D) Identifier ¶
func (o *VNRecognizedPoint3D) Identifier() *foundation.NSString
type VNRecognizedPoints3DObservation ¶
type VNRecognizedPoints3DObservation struct {
VNObservation
}
An observation that provides the 3D points for a request.
Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedpoints3dobservation
func VNRecognizedPoints3DObservationFromID ¶
func VNRecognizedPoints3DObservationFromID(id objc.ID) *VNRecognizedPoints3DObservation
func (*VNRecognizedPoints3DObservation) AvailableGroupKeys ¶
func (o *VNRecognizedPoints3DObservation) AvailableGroupKeys() *foundation.NSArray[*foundation.NSString]
@brief The availableGroupKeys property returns all of the point group labels usable with the observation.
func (*VNRecognizedPoints3DObservation) AvailableKeys ¶
func (o *VNRecognizedPoints3DObservation) AvailableKeys() *foundation.NSArray[*foundation.NSString]
@brief Returns all of the point group keys available in the observation.
func (*VNRecognizedPoints3DObservation) RecognizedPointForKeyError ¶
func (o *VNRecognizedPoints3DObservation) RecognizedPointForKeyError(pointKey *foundation.NSString) (*VNRecognizedPoint3D, error)
Returns a point for a key you specify.
func (*VNRecognizedPoints3DObservation) RecognizedPointsForGroupKeyError ¶
func (o *VNRecognizedPoints3DObservation) RecognizedPointsForGroupKeyError(groupKey *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint3D], error)
Returns a point for a group key you specify.
type VNRecognizedPointsObservation ¶
type VNRecognizedPointsObservation struct {
VNObservation
}
An observation that provides the points the analysis recognized.
Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedpointsobservation
func VNRecognizedPointsObservationFromID ¶
func VNRecognizedPointsObservationFromID(id objc.ID) *VNRecognizedPointsObservation
func (*VNRecognizedPointsObservation) AvailableGroupKeys ¶
func (o *VNRecognizedPointsObservation) AvailableGroupKeys() *foundation.NSArray[*foundation.NSString]
@brief The availableGroupKeys property returns all of the point group labels usable with the observation.
func (*VNRecognizedPointsObservation) AvailableKeys ¶
func (o *VNRecognizedPointsObservation) AvailableKeys() *foundation.NSArray[*foundation.NSString]
@brief Returns all of the point group keys available in the observation.
func (*VNRecognizedPointsObservation) KeypointsMultiArrayAndReturnError ¶
func (o *VNRecognizedPointsObservation) KeypointsMultiArrayAndReturnError() (*coreml.MLMultiArray, error)
Retrieves the grouping of normalized point coordinates and confidence scores in a format compatible with Core ML.
func (*VNRecognizedPointsObservation) RecognizedPointForKeyError ¶
func (o *VNRecognizedPointsObservation) RecognizedPointForKeyError(pointKey *foundation.NSString) (*VNRecognizedPoint, error)
Retrieves a recognized point for a key.
func (*VNRecognizedPointsObservation) RecognizedPointsForGroupKeyError ¶
func (o *VNRecognizedPointsObservation) RecognizedPointsForGroupKeyError(groupKey *foundation.NSString) (*foundation.NSDictionary[*foundation.NSString, *VNRecognizedPoint], error)
Retrieves the recognized points for a key.
type VNRecognizedText ¶
type VNRecognizedText struct {
foundation.NSObject
}
Text recognized in an image through a text recognition request.
Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedtext
func VNRecognizedTextFromID ¶
func VNRecognizedTextFromID(id objc.ID) *VNRecognizedText
func (*VNRecognizedText) BoundingBoxForRangeError ¶
func (o *VNRecognizedText) BoundingBoxForRangeError(range_ foundation.NSRange) (*VNRectangleObservation, error)
Calculates the bounding box around the characters in the range of a string.
func (*VNRecognizedText) Confidence ¶
func (o *VNRecognizedText) Confidence() float32
@brief The level of confidence normalized to [0.0, 1.0] where 1.0 is most confident
func (*VNRecognizedText) String ¶
func (o *VNRecognizedText) String() *foundation.NSString
@brief Field that contains recognized text. @discussion This is the top candidate of the recognized text.
type VNRecognizedTextObservation ¶
type VNRecognizedTextObservation struct {
VNRectangleObservation
}
A request that detects and recognizes regions of text in an image.
Apple documentation: https://developer.apple.com/documentation/vision/vnrecognizedtextobservation
func VNRecognizedTextObservationFromID ¶
func VNRecognizedTextObservationFromID(id objc.ID) *VNRecognizedTextObservation
func (*VNRecognizedTextObservation) TopCandidates ¶
func (o *VNRecognizedTextObservation) TopCandidates(maxCandidateCount uint) *foundation.NSArray[*VNRecognizedText]
Requests the n top candidates for a recognized text string.
type VNRectangleObservation ¶
type VNRectangleObservation struct {
VNDetectedObjectObservation
}
An object that represents the four vertices of a detected rectangle.
Apple documentation: https://developer.apple.com/documentation/vision/vnrectangleobservation
func VNRectangleObservationFromID ¶
func VNRectangleObservationFromID(id objc.ID) *VNRectangleObservation
func VNRectangleObservationRectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight ¶
func VNRectangleObservationRectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision uint, topLeft corefoundation.CGPoint, bottomLeft corefoundation.CGPoint, bottomRight corefoundation.CGPoint, topRight corefoundation.CGPoint) *VNRectangleObservation
Creates a rectangle observation from its corner points. Deprecated: since macOS 14.0.
func VNRectangleObservationRectangleObservationWithRequestRevisionTopLeftTopRightBottomRightBottomLeft ¶
func VNRectangleObservationRectangleObservationWithRequestRevisionTopLeftTopRightBottomRightBottomLeft(requestRevision uint, topLeft corefoundation.CGPoint, topRight corefoundation.CGPoint, bottomRight corefoundation.CGPoint, bottomLeft corefoundation.CGPoint) *VNRectangleObservation
Creates a rectangle observation from its corner points.
func (*VNRectangleObservation) BottomLeft ¶
func (o *VNRectangleObservation) BottomLeft() corefoundation.CGPoint
func (*VNRectangleObservation) BottomRight ¶
func (o *VNRectangleObservation) BottomRight() corefoundation.CGPoint
func (*VNRectangleObservation) TopLeft ¶
func (o *VNRectangleObservation) TopLeft() corefoundation.CGPoint
func (*VNRectangleObservation) TopRight ¶
func (o *VNRectangleObservation) TopRight() corefoundation.CGPoint
type VNRequest ¶
type VNRequest struct {
foundation.NSObject
}
The abstract superclass for analysis requests.
Apple documentation: https://developer.apple.com/documentation/vision/vnrequest
func VNRequestFromID ¶
func (*VNRequest) Cancel ¶
func (o *VNRequest) Cancel()
Cancels the request before it can finish executing.
func (*VNRequest) CompletionHandler ¶
@property completionHandler @abstract The completion handler block that will be invoked after the request has completed processing.
func (*VNRequest) ComputeDeviceForComputeStage ¶
func (o *VNRequest) ComputeDeviceForComputeStage(computeStage *foundation.NSString) coreml.MLComputeDeviceProtocol
Returns the compute device for a compute stage.
func (*VNRequest) InitWithCompletionHandler ¶
func (o *VNRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNRequest
Creates a new Vision request with an optional completion handler.
func (*VNRequest) PreferBackgroundProcessing ¶
@abstract A hint used to minimize the resource burden of the request. Memory footprint, processing footprint and/or CPU/GPU contention will be reduced (depending on the request), at the potential cost of longer execution time. This can help, for example, with ensuring UI updates and rendering are not getting blocked by Vision processing.
func (*VNRequest) Results ¶
func (o *VNRequest) Results() *foundation.NSArray[*VNObservation]
@property results @abstract The collection of VNObservations generated by the processing of the request. @discussion The only valid time to access this property is after the request has been processed by a request handler. If the request failed, this property will be nil; otherwise, it will be an array of zero or more VNObservation subclasses specific to the VNRequest subclass.
func (*VNRequest) Revision ¶
@abstract The specific algorithm or implementation revision that is to be used to perform the request.
func (*VNRequest) SetComputeDeviceForComputeStage ¶
func (o *VNRequest) SetComputeDeviceForComputeStage(computeDevice coreml.MLComputeDeviceProtocol, computeStage *foundation.NSString)
Assigns a compute device for a compute stage.
func (*VNRequest) SetPreferBackgroundProcessing ¶
func (*VNRequest) SetRevision ¶
func (*VNRequest) SetUsesCPUOnly
deprecated
func (*VNRequest) SupportedComputeStageDevicesAndReturnError ¶
func (o *VNRequest) SupportedComputeStageDevicesAndReturnError() (*foundation.NSDictionary[*foundation.NSString, objc.ID], error)
The collection of compute devices per stage that a request supports.
func (*VNRequest) UsesCPUOnly ¶
@abstract This property, if set to YES, signifies that the request should be performed exclusively on the CPU and not on the GPU. The default value is NO, which signifies that the request is free to leverage the GPU to accelerate any work the request may require. Deprecated: since macOS 14.0.
type VNRequestFaceLandmarksConstellation ¶
type VNRequestFaceLandmarksConstellation uint64
An enumeration of face landmarks in a constellation object.
const ( // An undefined constellation. VNRequestFaceLandmarksConstellationNotDefined VNRequestFaceLandmarksConstellation = 0 // A constellation with 65 points. VNRequestFaceLandmarksConstellation65Points VNRequestFaceLandmarksConstellation = 1 // A constellation with 76 points. VNRequestFaceLandmarksConstellation76Points VNRequestFaceLandmarksConstellation = 2 )
func (VNRequestFaceLandmarksConstellation) String ¶
func (e VNRequestFaceLandmarksConstellation) String() string
type VNRequestProgressProviding ¶
type VNRequestProgressProviding interface {
ProgressHandler() objc.Block
SetProgressHandler(progressHandler func(*VNRequest, float64, unsafe.Pointer))
Indeterminate() bool
}
VNRequestProgressProviding wraps the ObjC protocol VNRequestProgressProviding.
type VNRequestRevisionProviding ¶
type VNRequestRevisionProviding interface {
RequestRevision() uint
}
VNRequestRevisionProviding wraps the ObjC protocol VNRequestRevisionProviding.
type VNRequestTextRecognitionLevel ¶
type VNRequestTextRecognitionLevel int64
Constants that identify the performance and accuracy of the text recognition.
const ( // Accurate text recognition takes more time to produce a more comprehensive result. VNRequestTextRecognitionLevelAccurate VNRequestTextRecognitionLevel = 0 // Fast text recognition returns results more quickly at the expense of accuracy. VNRequestTextRecognitionLevelFast VNRequestTextRecognitionLevel = 1 )
func (VNRequestTextRecognitionLevel) String ¶
func (e VNRequestTextRecognitionLevel) String() string
type VNRequestTrackingLevel ¶
type VNRequestTrackingLevel uint64
An enumeration of tracking priorities.
const ( // Tracking level that favors location accuracy over speed. VNRequestTrackingLevelAccurate VNRequestTrackingLevel = 0 // Tracking level that favors speed over location accuracy. VNRequestTrackingLevelFast VNRequestTrackingLevel = 1 )
func (VNRequestTrackingLevel) String ¶
func (e VNRequestTrackingLevel) String() string
type VNSaliencyImageObservation ¶
type VNSaliencyImageObservation struct {
VNPixelBufferObservation
}
An observation that contains a grayscale heat map of important areas across an image.
Apple documentation: https://developer.apple.com/documentation/vision/vnsaliencyimageobservation
func VNSaliencyImageObservationFromID ¶
func VNSaliencyImageObservationFromID(id objc.ID) *VNSaliencyImageObservation
func (*VNSaliencyImageObservation) SalientObjects ¶
func (o *VNSaliencyImageObservation) SalientObjects() *foundation.NSArray[*VNRectangleObservation]
type VNSequenceRequestHandler ¶
type VNSequenceRequestHandler struct {
foundation.NSObject
}
An object that processes image-analysis requests for each frame in a sequence.
Apple documentation: https://developer.apple.com/documentation/vision/vnsequencerequesthandler
func VNSequenceRequestHandlerFromID ¶
func VNSequenceRequestHandlerFromID(id objc.ID) *VNSequenceRequestHandler
func (*VNSequenceRequestHandler) Init ¶
func (o *VNSequenceRequestHandler) Init() *VNSequenceRequestHandler
Initializes a sequence request handler.
func (*VNSequenceRequestHandler) PerformRequestsOnCGImageError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnCGImageError(requests *foundation.NSArray[*VNRequest], image unsafe.Pointer) (bool, error)
Schedules Vision requests to be performed on a Core Graphics image.
func (*VNSequenceRequestHandler) PerformRequestsOnCGImageOrientationError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnCGImageOrientationError(requests *foundation.NSArray[*VNRequest], image unsafe.Pointer, orientation imageio.CGImagePropertyOrientation) (bool, error)
Schedules one or more Vision requests to be performed on a Core Graphics image with known orientation.
func (*VNSequenceRequestHandler) PerformRequestsOnCIImageError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnCIImageError(requests *foundation.NSArray[*VNRequest], image *coreimage.CIImage) (bool, error)
Schedules one or more Vision requests to be performed on Core Image image data.
func (*VNSequenceRequestHandler) PerformRequestsOnCIImageOrientationError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnCIImageOrientationError(requests *foundation.NSArray[*VNRequest], image *coreimage.CIImage, orientation imageio.CGImagePropertyOrientation) (bool, error)
Schedules one or more Vision requests to be performed on Core Image image data with known orientation.
func (*VNSequenceRequestHandler) PerformRequestsOnCMSampleBufferError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnCMSampleBufferError(requests *foundation.NSArray[*VNRequest], sampleBuffer unsafe.Pointer) (bool, error)
Performs one or more requests on an image contained within a sample buffer.
func (*VNSequenceRequestHandler) PerformRequestsOnCMSampleBufferOrientationError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnCMSampleBufferOrientationError(requests *foundation.NSArray[*VNRequest], sampleBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation) (bool, error)
Performs one or more requests on an image of a specified orientation contained within a sample buffer.
func (*VNSequenceRequestHandler) PerformRequestsOnCVPixelBufferError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnCVPixelBufferError(requests *foundation.NSArray[*VNRequest], pixelBuffer unsafe.Pointer) (bool, error)
Schedules one or more Vision requests to be performed on a Core Video pixel buffer.
func (*VNSequenceRequestHandler) PerformRequestsOnCVPixelBufferOrientationError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnCVPixelBufferOrientationError(requests *foundation.NSArray[*VNRequest], pixelBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation) (bool, error)
Schedules one or more Vision requests to be performed on a Core Video pixel buffer with known orientation.
func (*VNSequenceRequestHandler) PerformRequestsOnImageDataError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnImageDataError(requests *foundation.NSArray[*VNRequest], imageData *foundation.NSData) (bool, error)
Schedules one or more Vision requests to be performed on raw image data.
func (*VNSequenceRequestHandler) PerformRequestsOnImageDataOrientationError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnImageDataOrientationError(requests *foundation.NSArray[*VNRequest], imageData *foundation.NSData, orientation imageio.CGImagePropertyOrientation) (bool, error)
Schedules one or more Vision requests to be performed on raw data containing an image with known orientation.
func (*VNSequenceRequestHandler) PerformRequestsOnImageURLError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnImageURLError(requests *foundation.NSArray[*VNRequest], imageURL *foundation.NSURL) (bool, error)
Schedules one or more Vision requests to be performed on an image.
func (*VNSequenceRequestHandler) PerformRequestsOnImageURLOrientationError ¶
func (o *VNSequenceRequestHandler) PerformRequestsOnImageURLOrientationError(requests *foundation.NSArray[*VNRequest], imageURL *foundation.NSURL, orientation imageio.CGImagePropertyOrientation) (bool, error)
Schedules one or more Vision requests to be performed on an image with known orientation, at a specific URL.
type VNStatefulRequest ¶
type VNStatefulRequest struct {
VNImageBasedRequest
}
An abstract request type that builds evidence of a condition over time.
Apple documentation: https://developer.apple.com/documentation/vision/vnstatefulrequest
func VNStatefulRequestFromID ¶
func VNStatefulRequestFromID(id objc.ID) *VNStatefulRequest
func (*VNStatefulRequest) FrameAnalysisSpacing ¶
func (o *VNStatefulRequest) FrameAnalysisSpacing() coremedia.CMTime
@brief The reciprocal of maximum rate at which buffers will be processed. @discussion The request will not process buffers that fall within the `frameAnalysisSpacing` after it has performed the analysis. The analysis is not done by wall time but by analysis of of the time stamps of the samplebuffers being processed.
func (*VNStatefulRequest) InitWithFrameAnalysisSpacingCompletionHandler ¶
func (o *VNStatefulRequest) InitWithFrameAnalysisSpacingCompletionHandler(frameAnalysisSpacing coremedia.CMTime, completionHandler func(*VNRequest, unsafe.Pointer)) *VNStatefulRequest
Initializes a video-based request.
func (*VNStatefulRequest) MinimumLatencyFrameCount ¶
func (o *VNStatefulRequest) MinimumLatencyFrameCount() int
@brief The minimum number of frames that the request has to process on before reporting back any observation. This information is provided by the request once initialized with its required paramters. @discussion Video based request often need a minimum number of frames before they can report back any observation. An example would be that a movement detection requires at least 5 frames to be detected. The minimumLatencyFrameCount for that request would report 5 and only after 5 frames have been processed an observation would be returned in the results. This latency is indicative of how responsive a request is in respect to the incoming data.
type VNTargetedImageRequest ¶
type VNTargetedImageRequest struct {
VNImageBasedRequest
}
The abstract superclass for image analysis requests that operate on both the processed image and a secondary image.
Apple documentation: https://developer.apple.com/documentation/vision/vntargetedimagerequest
func VNTargetedImageRequestFromID ¶
func VNTargetedImageRequestFromID(id objc.ID) *VNTargetedImageRequest
func (*VNTargetedImageRequest) InitWithTargetedCGImageOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedCGImageOptions(cgImage unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request targeting a Core Graphics image.
func (*VNTargetedImageRequest) InitWithTargetedCGImageOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedCGImageOptionsCompletionHandler(cgImage unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request targeting a Core Graphics image, executing the completion handler when done.
func (*VNTargetedImageRequest) InitWithTargetedCGImageOrientationOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedCGImageOrientationOptions(cgImage unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request targeting a Core Graphics image of known orientation.
func (*VNTargetedImageRequest) InitWithTargetedCGImageOrientationOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request targeting a Core Graphics image of known orientation, executing the completion handler when done.
func (*VNTargetedImageRequest) InitWithTargetedCIImageOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedCIImageOptions(ciImage *coreimage.CIImage, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request targeting a Core Image image.
func (*VNTargetedImageRequest) InitWithTargetedCIImageOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedCIImageOptionsCompletionHandler(ciImage *coreimage.CIImage, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request targeting a Core Image image.
func (*VNTargetedImageRequest) InitWithTargetedCIImageOrientationOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedCIImageOrientationOptions(ciImage *coreimage.CIImage, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request targeting a Core Image image of known orientation.
func (*VNTargetedImageRequest) InitWithTargetedCIImageOrientationOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage *coreimage.CIImage, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request targeting a Core Image image of known orientation, executing the completion handler when done.
func (*VNTargetedImageRequest) InitWithTargetedCMSampleBufferOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOptions(sampleBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request that targets an image in a sample buffer.
func (*VNTargetedImageRequest) InitWithTargetedCMSampleBufferOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOptionsCompletionHandler(sampleBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request with a completion handler that targets an image in a sample buffer.
func (*VNTargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptions(sampleBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request that targets an image of a known orientation in a sample buffer.
func (*VNTargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(sampleBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request with a completion handler that targets an image of a known orientation in a sample buffer.
func (*VNTargetedImageRequest) InitWithTargetedCVPixelBufferOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOptions(pixelBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request targeting an image in a pixel buffer.
func (*VNTargetedImageRequest) InitWithTargetedCVPixelBufferOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer unsafe.Pointer, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request targeting an image in a pixel buffer.
func (*VNTargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptions(pixelBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request targeting an image in a pixel buffer of known orientation.
func (*VNTargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer unsafe.Pointer, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request targeting an image in a pixel buffer of known orientation.
func (*VNTargetedImageRequest) InitWithTargetedImageDataOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedImageDataOptions(imageData *foundation.NSData, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request targeting an image as raw data.
func (*VNTargetedImageRequest) InitWithTargetedImageDataOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedImageDataOptionsCompletionHandler(imageData *foundation.NSData, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request targeting an image as raw data, executing the completion handler when done.
func (*VNTargetedImageRequest) InitWithTargetedImageDataOrientationOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedImageDataOrientationOptions(imageData *foundation.NSData, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request targeting a raw data image of known orientation.
func (*VNTargetedImageRequest) InitWithTargetedImageDataOrientationOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedImageDataOrientationOptionsCompletionHandler(imageData *foundation.NSData, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request targeting a raw data image of known orientation, executing the completion handler when done.
func (*VNTargetedImageRequest) InitWithTargetedImageURLOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedImageURLOptions(imageURL *foundation.NSURL, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request targeting an image at the specified URL.
func (*VNTargetedImageRequest) InitWithTargetedImageURLOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedImageURLOptionsCompletionHandler(imageURL *foundation.NSURL, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request targeting an image at the specified URL, executing the completion handler when done.
func (*VNTargetedImageRequest) InitWithTargetedImageURLOrientationOptions ¶
func (o *VNTargetedImageRequest) InitWithTargetedImageURLOrientationOptions(imageURL *foundation.NSURL, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *VNTargetedImageRequest
Creates a new request targeting an image of known orientation, at the specified URL.
func (*VNTargetedImageRequest) InitWithTargetedImageURLOrientationOptionsCompletionHandler ¶
func (o *VNTargetedImageRequest) InitWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL *foundation.NSURL, orientation imageio.CGImagePropertyOrientation, options *foundation.NSDictionary[*foundation.NSString, objc.ID], completionHandler func(*VNRequest, unsafe.Pointer)) *VNTargetedImageRequest
Creates a new request targeting an image of known orientation, at the specified URL, executing the completion handler when done.
type VNTextObservation ¶
type VNTextObservation struct {
VNRectangleObservation
}
Information about regions of text that an image-analysis request detects.
Apple documentation: https://developer.apple.com/documentation/vision/vntextobservation
func VNTextObservationFromID ¶
func VNTextObservationFromID(id objc.ID) *VNTextObservation
func (*VNTextObservation) CharacterBoxes ¶
func (o *VNTextObservation) CharacterBoxes() *foundation.NSArray[*VNRectangleObservation]
type VNTrackHomographicImageRegistrationRequest ¶
type VNTrackHomographicImageRegistrationRequest struct {
VNStatefulRequest
}
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.
Apple documentation: https://developer.apple.com/documentation/vision/vntrackhomographicimageregistrationrequest
func VNTrackHomographicImageRegistrationRequestFromID ¶
func VNTrackHomographicImageRegistrationRequestFromID(id objc.ID) *VNTrackHomographicImageRegistrationRequest
func (*VNTrackHomographicImageRegistrationRequest) Init ¶
func (o *VNTrackHomographicImageRegistrationRequest) Init() *VNTrackHomographicImageRegistrationRequest
Creates a new request that tracks the homographic transformation of two images.
func (*VNTrackHomographicImageRegistrationRequest) InitWithCompletionHandler ¶
func (o *VNTrackHomographicImageRegistrationRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNTrackHomographicImageRegistrationRequest
Creates a new request that tracks the homographic transformation of two images, with a system callback on completion.
type VNTrackObjectRequest ¶
type VNTrackObjectRequest struct {
VNTrackingRequest
}
An image-analysis request that tracks the movement of a previously identified object across multiple images or video frames.
Apple documentation: https://developer.apple.com/documentation/vision/vntrackobjectrequest
func VNTrackObjectRequestFromID ¶
func VNTrackObjectRequestFromID(id objc.ID) *VNTrackObjectRequest
func (*VNTrackObjectRequest) InitWithDetectedObjectObservation ¶
func (o *VNTrackObjectRequest) InitWithDetectedObjectObservation(observation *VNDetectedObjectObservation) *VNTrackObjectRequest
Creates a new object tracking request with a detected object observation.
func (*VNTrackObjectRequest) InitWithDetectedObjectObservationCompletionHandler ¶
func (o *VNTrackObjectRequest) InitWithDetectedObjectObservationCompletionHandler(observation *VNDetectedObjectObservation, completionHandler func(*VNRequest, unsafe.Pointer)) *VNTrackObjectRequest
Creates a new object tracking request with a detected object observation.
type VNTrackOpticalFlowRequest ¶
type VNTrackOpticalFlowRequest struct {
VNStatefulRequest
}
An object that determines the direction change of vectors for each pixel from a previous to current image.
Apple documentation: https://developer.apple.com/documentation/vision/vntrackopticalflowrequest
func VNTrackOpticalFlowRequestFromID ¶
func VNTrackOpticalFlowRequestFromID(id objc.ID) *VNTrackOpticalFlowRequest
func (*VNTrackOpticalFlowRequest) ComputationAccuracy ¶
func (o *VNTrackOpticalFlowRequest) ComputationAccuracy() VNTrackOpticalFlowRequestComputationAccuracy
@brief The level of accuracy used to compute the optical flow. Default is VNTrackOpticalFlowRequestComputationAccuracyMedium. @discussion The computational time typically trends with the accuracy level. This parameter allows for selective tuning by the client application.
func (*VNTrackOpticalFlowRequest) Init ¶
func (o *VNTrackOpticalFlowRequest) Init() *VNTrackOpticalFlowRequest
Creates a new request that tracks the optical from one image to another.
func (*VNTrackOpticalFlowRequest) InitWithCompletionHandler ¶
func (o *VNTrackOpticalFlowRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNTrackOpticalFlowRequest
Creates a new request that tracks the optical from one image to another, with a system callback on completion.
func (*VNTrackOpticalFlowRequest) KeepNetworkOutput ¶
func (o *VNTrackOpticalFlowRequest) KeepNetworkOutput() bool
@brief Setting this to `YES` will keep the raw pixel buffer coming from the the ML network. The default is `NO`. @discussion When set to `YES`, the outputPixelFormat is ignored.
func (*VNTrackOpticalFlowRequest) OutputPixelFormat ¶
func (o *VNTrackOpticalFlowRequest) OutputPixelFormat() uint
@brief Pixel format type of the output buffer. Valid values are `kCVPixelFormatType_TwoComponent32Float` and `kCVPixelFormatType_TwoComponent16Half`. Default is `kCVPixelFormatType_TwoComponent32Float`.
func (*VNTrackOpticalFlowRequest) SetComputationAccuracy ¶
func (o *VNTrackOpticalFlowRequest) SetComputationAccuracy(computationAccuracy VNTrackOpticalFlowRequestComputationAccuracy)
func (*VNTrackOpticalFlowRequest) SetKeepNetworkOutput ¶
func (o *VNTrackOpticalFlowRequest) SetKeepNetworkOutput(keepNetworkOutput bool)
func (*VNTrackOpticalFlowRequest) SetOutputPixelFormat ¶
func (o *VNTrackOpticalFlowRequest) SetOutputPixelFormat(outputPixelFormat uint)
type VNTrackOpticalFlowRequestComputationAccuracy ¶
type VNTrackOpticalFlowRequestComputationAccuracy uint64
Computational accuracy options.
const ( VNTrackOpticalFlowRequestComputationAccuracyLow VNTrackOpticalFlowRequestComputationAccuracy = 0 VNTrackOpticalFlowRequestComputationAccuracyMedium VNTrackOpticalFlowRequestComputationAccuracy = 1 VNTrackOpticalFlowRequestComputationAccuracyHigh VNTrackOpticalFlowRequestComputationAccuracy = 2 VNTrackOpticalFlowRequestComputationAccuracyVeryHigh VNTrackOpticalFlowRequestComputationAccuracy = 3 )
func (VNTrackOpticalFlowRequestComputationAccuracy) String ¶
func (e VNTrackOpticalFlowRequestComputationAccuracy) String() string
type VNTrackRectangleRequest ¶
type VNTrackRectangleRequest struct {
VNTrackingRequest
}
An image-analysis request that tracks movement of a previously identified rectangular object across multiple images or video frames.
Apple documentation: https://developer.apple.com/documentation/vision/vntrackrectanglerequest
func VNTrackRectangleRequestFromID ¶
func VNTrackRectangleRequestFromID(id objc.ID) *VNTrackRectangleRequest
func (*VNTrackRectangleRequest) InitWithRectangleObservation ¶
func (o *VNTrackRectangleRequest) InitWithRectangleObservation(observation *VNRectangleObservation) *VNTrackRectangleRequest
Creates a new rectangle tracking request with a rectangle observation.
func (*VNTrackRectangleRequest) InitWithRectangleObservationCompletionHandler ¶
func (o *VNTrackRectangleRequest) InitWithRectangleObservationCompletionHandler(observation *VNRectangleObservation, completionHandler func(*VNRequest, unsafe.Pointer)) *VNTrackRectangleRequest
Creates a new rectangle tracking request with a rectangle observation.
type VNTrackTranslationalImageRegistrationRequest ¶
type VNTrackTranslationalImageRegistrationRequest struct {
VNStatefulRequest
}
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.
Apple documentation: https://developer.apple.com/documentation/vision/vntracktranslationalimageregistrationrequest
func VNTrackTranslationalImageRegistrationRequestFromID ¶
func VNTrackTranslationalImageRegistrationRequestFromID(id objc.ID) *VNTrackTranslationalImageRegistrationRequest
func (*VNTrackTranslationalImageRegistrationRequest) Init ¶
func (o *VNTrackTranslationalImageRegistrationRequest) Init() *VNTrackTranslationalImageRegistrationRequest
Creates a new request that tracks the translational registration of two images.
func (*VNTrackTranslationalImageRegistrationRequest) InitWithCompletionHandler ¶
func (o *VNTrackTranslationalImageRegistrationRequest) InitWithCompletionHandler(completionHandler func(*VNRequest, unsafe.Pointer)) *VNTrackTranslationalImageRegistrationRequest
Creates a new request that tracks the translational registration of two images, with a system callback on completion.
type VNTrackingRequest ¶
type VNTrackingRequest struct {
VNImageBasedRequest
}
The abstract superclass for image-analysis requests that track unique features across multiple images or video frames.
Apple documentation: https://developer.apple.com/documentation/vision/vntrackingrequest
func VNTrackingRequestFromID ¶
func VNTrackingRequestFromID(id objc.ID) *VNTrackingRequest
func (*VNTrackingRequest) InputObservation ¶
func (o *VNTrackingRequest) InputObservation() *VNDetectedObjectObservation
@property property inputObservation @abstract The observation object that defines a region to track. Providing an observation not returned from a tracker (e.g. user-defined, or from a detector) begins a new tracker for the sequence. Providing an observation that was returned from a tracker continues the use of that tracker, to track the region to the next frame. In general, unless documented in the request's documentation, the rectangle must be defined in normalized coordinates (both dimensions normalized to [0,1] with the origin at the lower-left corner).
func (*VNTrackingRequest) IsLastFrame ¶
func (o *VNTrackingRequest) IsLastFrame() bool
@property property lastFrame @abstract This property allows marking the last frame for tracking using current tracker. If set to YES, the results for this frame will be processed and returned and the current tracker will be released to the pool of available trackers
func (*VNTrackingRequest) SetInputObservation ¶
func (o *VNTrackingRequest) SetInputObservation(inputObservation *VNDetectedObjectObservation)
func (*VNTrackingRequest) SetLastFrame ¶
func (o *VNTrackingRequest) SetLastFrame(lastFrame bool)
func (*VNTrackingRequest) SetTrackingLevel ¶
func (o *VNTrackingRequest) SetTrackingLevel(trackingLevel VNRequestTrackingLevel)
func (*VNTrackingRequest) SupportedNumberOfTrackersAndReturnError ¶
func (o *VNTrackingRequest) SupportedNumberOfTrackersAndReturnError() (uint, error)
Returns the maximum number of simultaneous trackers for the request.
func (*VNTrackingRequest) TrackingLevel ¶
func (o *VNTrackingRequest) TrackingLevel() VNRequestTrackingLevel
@property property trackingLevel @abstract Tracking level allows tuning tracking algorithm to prefer speed (VNRequestTrackingLevelFast) vs. tracking object location accuracy (VNRequestTrackingLevelAccurate). This property has no effect on general purpose object tracker (VNTrackObjectRequest) revision 2 (VNTrackObjectRequestRevision2)
type VNTrajectoryObservation ¶
type VNTrajectoryObservation struct {
VNObservation
}
An observation that describes a detected trajectory.
Apple documentation: https://developer.apple.com/documentation/vision/vntrajectoryobservation
func VNTrajectoryObservationFromID ¶
func VNTrajectoryObservationFromID(id objc.ID) *VNTrajectoryObservation
func (*VNTrajectoryObservation) DetectedPoints ¶
func (o *VNTrajectoryObservation) DetectedPoints() *foundation.NSArray[*VNPoint]
@brief The centroids of the contour being detected along the trajectory. @details These are the unprocessed centroid points of the detected contour that is tracked on the trajectory. The points may be slightly off the ideal trajectory as these are the measured points that fall within the allowed tolerance. The maximum number or past points is limited by the maximum trajectory length set in the request.
func (*VNTrajectoryObservation) EquationCoefficients ¶
func (o *VNTrajectoryObservation) EquationCoefficients() unsafe.Pointer
@brief The coefficients of the parabolic equation y = a*x^2 + b*x + c. @details This equation describes the parabola on which the detected contour is traveling. The equation and the projected points get refined over time of the detected trajectory.
func (*VNTrajectoryObservation) MovingAverageRadius ¶
func (o *VNTrajectoryObservation) MovingAverageRadius() float64
@brief The moving average radius of the object being tracked. @details This is the radius of the object at each detected point (used to determine the trajectory) averaged.
func (*VNTrajectoryObservation) ProjectedPoints ¶
func (o *VNTrajectoryObservation) ProjectedPoints() *foundation.NSArray[*VNPoint]
@brief The centroids of the calculated trajectory from the detected points. @details These are the calculated centroid points along the ideal trajectory described by the parabolic equation. The equation and the projected points of the detected trajectory get refined over time. The maximum number of cached points is limited by the maximum points needed to describe the trajectory together with the parabolic equation.
type VNTranslationalImageRegistrationRequest ¶
type VNTranslationalImageRegistrationRequest struct {
VNImageRegistrationRequest
}
An image-analysis request that determines the affine transform necessary to align the content of two images.
Apple documentation: https://developer.apple.com/documentation/vision/vntranslationalimageregistrationrequest
func VNTranslationalImageRegistrationRequestFromID ¶
func VNTranslationalImageRegistrationRequestFromID(id objc.ID) *VNTranslationalImageRegistrationRequest
type VNVector ¶
type VNVector struct {
foundation.NSObject
}
An immutable 2D vector represented by its x-axis and y-axis projections.
Apple documentation: https://developer.apple.com/documentation/vision/vnvector
func VNVectorFromID ¶
func VNVectorUnitVectorForVector ¶
Calculates a vector that’s normalized by preserving its direction, so that the vector length equals 1.0.
func VNVectorVectorByAddingVectorToVector ¶
Creates a new vector by adding the specified vectors.
func VNVectorVectorByMultiplyingVectorByScalar ¶
Creates a new vector by multiplying the specified vector’s x-axis and y-axis projections by the scalar value.
func VNVectorVectorBySubtractingVectorFromVector ¶
Creates a new vector by subtracting the first vector from the second vector.
func VNVectorZeroVector ¶
func VNVectorZeroVector() *VNVector
@brief Returns a VNVector object with zero length. The theta for zeroVector is not defined (NaN).
func (*VNVector) InitWithRTheta ¶
Creates a new vector in polar coordinate space.
func (*VNVector) InitWithVectorHeadTail ¶
Creates a new vector in Cartesian coordinate space.
func (*VNVector) InitWithXComponentYComponent ¶
Creates a new vector in Cartesian coordinate space, based on its x-axis and y-axis projections.
func (*VNVector) SquaredLength ¶
@brief Returns a length ^ 2 of a vector.
func (*VNVector) Theta ¶
@brief Angle between the vector direction and positive direction of X axis.
type VNVideoProcessor ¶
type VNVideoProcessor struct {
foundation.NSObject
}
An object that performs offline analysis of video content.
Apple documentation: https://developer.apple.com/documentation/vision/vnvideoprocessor
func VNVideoProcessorFromID ¶
func VNVideoProcessorFromID(id objc.ID) *VNVideoProcessor
func (*VNVideoProcessor) AddRequestProcessingOptionsError ¶
func (o *VNVideoProcessor) AddRequestProcessingOptionsError(request *VNRequest, processingOptions *VNVideoProcessorRequestProcessingOptions) (bool, error)
Adds a request with processing options to the video processor.
func (*VNVideoProcessor) AddRequestWithProcessingOptionsError ¶
func (o *VNVideoProcessor) AddRequestWithProcessingOptionsError(request *VNRequest, processingOptions *foundation.NSDictionary[*foundation.NSString, objc.ID]) (bool, error)
Adds a Vision request to perform with the specified configuration. Deprecated: since macOS 11.0.
func (*VNVideoProcessor) AnalyzeTimeRangeError ¶
func (o *VNVideoProcessor) AnalyzeTimeRangeError(timeRange coremedia.CMTimeRange) (bool, error)
Analyzes a time range of video content.
func (*VNVideoProcessor) AnalyzeWithTimeRangeError ¶
func (o *VNVideoProcessor) AnalyzeWithTimeRangeError(timeRange coremedia.CMTimeRange) (bool, error)
Analyzes the specifed time range of the video content. Deprecated: since macOS 11.0.
func (*VNVideoProcessor) InitWithURL ¶
func (o *VNVideoProcessor) InitWithURL(videoURL *foundation.NSURL) *VNVideoProcessor
Creates a video processor to perform Vision requests against the specified video asset.
func (*VNVideoProcessor) RemoveRequestError ¶
func (o *VNVideoProcessor) RemoveRequestError(request *VNRequest) (bool, error)
Removes a Vision request from the video processor’s request queue.
type VNVideoProcessorCadence ¶
type VNVideoProcessorCadence struct {
foundation.NSObject
}
An object that defines the cadence at which to process video.
Apple documentation: https://developer.apple.com/documentation/vision/vnvideoprocessorcadence
func VNVideoProcessorCadenceFromID ¶
func VNVideoProcessorCadenceFromID(id objc.ID) *VNVideoProcessorCadence
type VNVideoProcessorFrameRateCadence ¶
type VNVideoProcessorFrameRateCadence struct {
VNVideoProcessorCadence
}
An object that defines a frame-based cadence for processing a video stream.
Apple documentation: https://developer.apple.com/documentation/vision/vnvideoprocessorframeratecadence
func VNVideoProcessorFrameRateCadenceFromID ¶
func VNVideoProcessorFrameRateCadenceFromID(id objc.ID) *VNVideoProcessorFrameRateCadence
func (*VNVideoProcessorFrameRateCadence) FrameRate ¶
func (o *VNVideoProcessorFrameRateCadence) FrameRate() int
func (*VNVideoProcessorFrameRateCadence) InitWithFrameRate ¶
func (o *VNVideoProcessorFrameRateCadence) InitWithFrameRate(frameRate int) *VNVideoProcessorFrameRateCadence
type VNVideoProcessorRequestProcessingOptions ¶
type VNVideoProcessorRequestProcessingOptions struct {
foundation.NSObject
}
An object that defines a video processor’s configuration options.
Apple documentation: https://developer.apple.com/documentation/vision/vnvideoprocessorrequestprocessingoptions
func VNVideoProcessorRequestProcessingOptionsFromID ¶
func VNVideoProcessorRequestProcessingOptionsFromID(id objc.ID) *VNVideoProcessorRequestProcessingOptions
func (*VNVideoProcessorRequestProcessingOptions) Cadence ¶
func (o *VNVideoProcessorRequestProcessingOptions) Cadence() *VNVideoProcessorCadence
func (*VNVideoProcessorRequestProcessingOptions) SetCadence ¶
func (o *VNVideoProcessorRequestProcessingOptions) SetCadence(cadence *VNVideoProcessorCadence)
type VNVideoProcessorTimeIntervalCadence ¶
type VNVideoProcessorTimeIntervalCadence struct {
VNVideoProcessorCadence
}
An object that defines a time-based cadence for processing a video stream.
Apple documentation: https://developer.apple.com/documentation/vision/vnvideoprocessortimeintervalcadence
func VNVideoProcessorTimeIntervalCadenceFromID ¶
func VNVideoProcessorTimeIntervalCadenceFromID(id objc.ID) *VNVideoProcessorTimeIntervalCadence
func (*VNVideoProcessorTimeIntervalCadence) InitWithTimeInterval ¶
func (o *VNVideoProcessorTimeIntervalCadence) InitWithTimeInterval(timeInterval float64) *VNVideoProcessorTimeIntervalCadence
func (*VNVideoProcessorTimeIntervalCadence) TimeInterval ¶
func (o *VNVideoProcessorTimeIntervalCadence) TimeInterval() float64
type Virtual_memory_guard_exception_code_t ¶
type Virtual_memory_guard_exception_code_t int64
const ( KGUARD_EXC_DEALLOC_GAP Virtual_memory_guard_exception_code_t = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE Virtual_memory_guard_exception_code_t = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE Virtual_memory_guard_exception_code_t = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE Virtual_memory_guard_exception_code_t = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE Virtual_memory_guard_exception_code_t = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE Virtual_memory_guard_exception_code_t = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE Virtual_memory_guard_exception_code_t = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION Virtual_memory_guard_exception_code_t = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY Virtual_memory_guard_exception_code_t = 13 KGUARD_EXC_SEC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 99 KGUARD_EXC_SEC_COPY_DENIED Virtual_memory_guard_exception_code_t = 100 KGUARD_EXC_SEC_SHARING_DENIED Virtual_memory_guard_exception_code_t = 101 KGUARD_EXC_MTE_SYNC_FAULT Virtual_memory_guard_exception_code_t = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204 )
func (Virtual_memory_guard_exception_code_t) String ¶
func (e Virtual_memory_guard_exception_code_t) String() string
type Xpc_listener_create_flags_t ¶
type Xpc_listener_create_flags_t int64
const ( XPC_LISTENER_CREATE_NONE Xpc_listener_create_flags_t = 0 XPC_LISTENER_CREATE_INACTIVE Xpc_listener_create_flags_t = 1 XPC_LISTENER_CREATE_FORCE_MACH Xpc_listener_create_flags_t = 2 XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4 )
func (Xpc_listener_create_flags_t) String ¶
func (e Xpc_listener_create_flags_t) String() string
type Xpc_session_create_flags_t ¶
type Xpc_session_create_flags_t int64
const ( XPC_SESSION_CREATE_NONE Xpc_session_create_flags_t = 0 XPC_SESSION_CREATE_INACTIVE Xpc_session_create_flags_t = 1 XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2 )
func (Xpc_session_create_flags_t) String ¶
func (e Xpc_session_create_flags_t) String() string
Source Files
¶
- VNAnimalBodyPoseObservation.go
- VNBarcodeObservation.go
- VNCalculateImageAestheticsScoresRequest.go
- VNCircle.go
- VNClassificationObservation.go
- VNClassifyImageRequest.go
- VNContour.go
- VNContoursObservation.go
- VNCoreMLFeatureValueObservation.go
- VNCoreMLModel.go
- VNCoreMLRequest.go
- VNDetectAnimalBodyPoseRequest.go
- VNDetectBarcodesRequest.go
- VNDetectContoursRequest.go
- VNDetectDocumentSegmentationRequest.go
- VNDetectFaceCaptureQualityRequest.go
- VNDetectFaceLandmarksRequest.go
- VNDetectFaceRectanglesRequest.go
- VNDetectHorizonRequest.go
- VNDetectHumanBodyPose3DRequest.go
- VNDetectHumanBodyPoseRequest.go
- VNDetectHumanHandPoseRequest.go
- VNDetectHumanRectanglesRequest.go
- VNDetectRectanglesRequest.go
- VNDetectTextRectanglesRequest.go
- VNDetectTrajectoriesRequest.go
- VNDetectedObjectObservation.go
- VNDetectedPoint.go
- VNFaceLandmarkRegion.go
- VNFaceLandmarkRegion2D.go
- VNFaceLandmarks.go
- VNFaceLandmarks2D.go
- VNFaceObservation.go
- VNFeaturePrintObservation.go
- VNGenerateAttentionBasedSaliencyImageRequest.go
- VNGenerateForegroundInstanceMaskRequest.go
- VNGenerateImageFeaturePrintRequest.go
- VNGenerateObjectnessBasedSaliencyImageRequest.go
- VNGenerateOpticalFlowRequest.go
- VNGeneratePersonInstanceMaskRequest.go
- VNGeneratePersonSegmentationRequest.go
- VNGeometryUtils.go
- VNHomographicImageRegistrationRequest.go
- VNHorizonObservation.go
- VNHumanBodyPose3DObservation.go
- VNHumanBodyPoseObservation.go
- VNHumanBodyRecognizedPoint3D.go
- VNHumanHandPoseObservation.go
- VNHumanObservation.go
- VNImageAestheticsScoresObservation.go
- VNImageAlignmentObservation.go
- VNImageBasedRequest.go
- VNImageHomographicAlignmentObservation.go
- VNImageRegistrationRequest.go
- VNImageRequestHandler.go
- VNImageTranslationAlignmentObservation.go
- VNInstanceMaskObservation.go
- VNObservation.go
- VNPixelBufferObservation.go
- VNPoint.go
- VNPoint3D.go
- VNRecognizeAnimalsRequest.go
- VNRecognizeTextRequest.go
- VNRecognizedObjectObservation.go
- VNRecognizedPoint.go
- VNRecognizedPoint3D.go
- VNRecognizedPoints3DObservation.go
- VNRecognizedPointsObservation.go
- VNRecognizedText.go
- VNRecognizedTextObservation.go
- VNRectangleObservation.go
- VNRequest.go
- VNSaliencyImageObservation.go
- VNSequenceRequestHandler.go
- VNStatefulRequest.go
- VNTargetedImageRequest.go
- VNTextObservation.go
- VNTrackHomographicImageRegistrationRequest.go
- VNTrackObjectRequest.go
- VNTrackOpticalFlowRequest.go
- VNTrackRectangleRequest.go
- VNTrackTranslationalImageRegistrationRequest.go
- VNTrackingRequest.go
- VNTrajectoryObservation.go
- VNTranslationalImageRegistrationRequest.go
- VNVector.go
- VNVideoProcessor.go
- VNVideoProcessorCadence.go
- VNVideoProcessorFrameRateCadence.go
- VNVideoProcessorRequestProcessingOptions.go
- VNVideoProcessorTimeIntervalCadence.go
- doc.go
- vision_enums.go
- vision_externs.go
- vision_functions.go
- vision_protocols.go
- vision_runtime.go