Package apple.vision

Class VNContoursObservation

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSSecureCoding, NSObject, VNRequestRevisionProviding

    public class VNContoursObservation
    extends VNObservation
    An observation that provides all of the detected contours in an image. Contours can be referenced as a flattened array or as a tree of enclosing parent contours to enclosed child contours. ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┌───────────────────┐ │ │ Λ │ ┌─────────┐ │ ╱ ╲ │ │ │ │ │ │ ╱ ╲ │ │ │ │ ╱ ╲ │ │ C │ │ │ │ ▕ A ▏ │ └─────────┘ │ ╲ ╱ │ │ │ │ ╲ ╱ │ B │ ╲ ╱ └───────────────────┘ │ │ V │ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ Contour A index 0, index path [0]. Contour B index 1, index path [1]. Contour C index 2, index path [1, 0].
    • Constructor Detail

      • VNContoursObservation

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

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

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

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

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • contourAtIndexError

        public VNContour contourAtIndexError​(long contourIndex,
                                             org.moe.natj.general.ptr.Ptr<NSError> error)
        Returns the VNContour object at the specified index, irrespective of hierarchy.
        Parameters:
        contourIndex - The index of the contour to request. Valid values are in the range [0..contourCount-1].
        error - The error returned if the index path is out of range.
        Returns:
        The detected VNContour at the specified index without regard to hierarchy.
      • contourAtIndexPathError

        public VNContour contourAtIndexPathError​(NSIndexPath indexPath,
                                                 org.moe.natj.general.ptr.Ptr<NSError> error)
        Returns the VNContour object at the specified index path. Use the indexPath property from a VNContour instance to pass to this method.
        Parameters:
        indexPath - The index path is the heirarchical path to the contour.
        error - The error returned if the index path is out of range.
        Returns:
        The VNContour object at the specified index path.
      • contourCount

        public long contourCount()
        The total number of contours detected.
      • debugDescription_static

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

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

        public static long hash_static()
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • normalizedPath

        public CGPathRef normalizedPath()
        Obtain all of the contours represented as a CGPath in normalized coordinates. The path is owned by the observation and therefore will be alive as long as the the observation is alive.
      • 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 VNObservation
      • topLevelContourCount

        public long topLevelContourCount()
        The total number of top-level contours detected.
      • topLevelContours

        public NSArray<? extends VNContour> topLevelContours()
        An array of the top level contours (i.e. contours that are not enclosed inside another contour),. This array constitutes the top of the contour hierarchy. Each contour object can be further iterated to determine its children.
        See Also:
        for more information.
      • version_static

        public static long version_static()