Package apple.vision

Class VNHumanBodyPose3DObservation

    • Constructor Detail

      • VNHumanBodyPose3DObservation

        protected VNHumanBodyPose3DObservation​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • availableJointNames

        @NotNull
        public @NotNull NSArray<java.lang.String> availableJointNames()
        All of the joint names available in the observation.
      • availableJointsGroupNames

        @NotNull
        public @NotNull NSArray<java.lang.String> availableJointsGroupNames()
        All of the joints group names available in the observation.
      • bodyHeight

        public float bodyHeight()
        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`
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • getCameraRelativePositionForJointNameError

        public boolean getCameraRelativePositionForJointNameError​(@NotNull
                                                                  @NotNull org.moe.natj.general.ptr.VoidPtr modelPositionOut,
                                                                  @NotNull
                                                                  @NotNull java.lang.String jointName,
                                                                  @Nullable
                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Obtain position relative to camera for a named human body joint in meters
        Parameters:
        modelPositionOut - A reference to a simd_float4x4 that will be updated to contain position of a joint relative to the camera if successful
        jointName - The name of the human body joint
        Returns:
        BOOL indicating success of determing position
      • hash_static

        public static long hash_static()
      • heightEstimation

        public long heightEstimation()
        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
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • parentJointNameForJointName

        @Nullable
        public @Nullable java.lang.String parentJointNameForJointName​(@NotNull
                                                                      @NotNull java.lang.String jointName)
        Obtain the parent joint of a specified joint
        Parameters:
        jointName - The name of the human body joint
        Returns:
        The name of the parent joint
      • pointInImageForJointNameError

        @Nullable
        public @Nullable VNPoint pointInImageForJointNameError​(@NotNull
                                                               @NotNull java.lang.String jointName,
                                                               @Nullable
                                                               @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Obtain 2D point relative to the input image for named human body joint
        Parameters:
        jointName - The name of the human body joint
        Returns:
        A projection of the determined 3D position onto the original 2D image in normalized, lower left origin coordinates
      • recognizedPointForJointNameError

        @Nullable
        public @Nullable VNHumanBodyRecognizedPoint3D recognizedPointForJointNameError​(@NotNull
                                                                                       @NotNull java.lang.String jointName,
                                                                                       @Nullable
                                                                                       @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Obtain a specific point for a named human body joint. Each returned `VNHumanBodyRecognizedPoint3D` instance contains position relative to the model (`position`) and the parent joint (`localPosition`) Model position is relative to root joint (hip) for a named human body joint in meters . Local position is relative to parent joint for a named human body joint in meters.
        Parameters:
        jointName - The name of the human body joint.
        error - The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed.
        Returns:
        The recognized point, or nil if the point could not be obtained.
      • recognizedPointsForJointsGroupNameError

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​? extends VNHumanBodyRecognizedPoint3D> recognizedPointsForJointsGroupNameError​(@NotNull
                                                                                                                                             @NotNull java.lang.String jointsGroupName,
                                                                                                                                             @Nullable
                                                                                                                                             @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Obtains the collection of joints associated with a named human body joints group. The obtained collection is a dictionary that provides the mapping of human joint names to the recognized point.
        Parameters:
        jointsGroupName - The name of the human body joints group.
        error - The address of a variable that will be populated with the error that describes the failure. If the caller does not require this information, NULL can be passed.
        Returns:
        a dictionary of recognized points in the group, or nil if an error was encountered.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class VNRecognizedPoints3DObservation
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()