Package apple.vision

Class VNRecognizeTextRequest

    • Constructor Detail

      • VNRecognizeTextRequest

        protected VNRecognizeTextRequest​(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()
      • currentRevision

        public static long currentRevision()
      • customWords

        public NSArray<java.lang.String> customWords()
        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.
      • debugDescription_static

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

        public static long defaultRevision()
      • description_static

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

        public static long hash_static()
      • indeterminate

        public boolean indeterminate()
        Description copied from interface: VNRequestProgressProviding
        If a request cannot determine its progress in fractions completed, this property will be set. If this is set, it doesn't mean that the request will run forever just that the nature of the request is not broken down into identifiable fractions on which progress can be reported in increments. The progressHandler will nonetheless be called at suitable intervals.
        Specified by:
        indeterminate in interface VNRequestProgressProviding
      • 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)
      • minimumTextHeight

        public float minimumTextHeight()
        Minimum height of the text expected to be recognized, relative to the image height (e.g. for half of the image height, use 0.5). Increasing the size will reduce the memory consumption and speed up the recognition with the trade-off that text smaller than the minimum height may not be recognized properly. If the minimum height is set to 0.0 the image gets processed at the highest possible resolution with no downscaling. With that the processing time will be the longest and the memory usage the highest but the smallest technically readable text will be recognized. The default value for this is 0.0.
      • new_objc

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

        public VNRequestProgressProviding.Block_progressHandler_ret progressHandler()
        Description copied from interface: VNRequestProgressProviding
        Requests that support the VNRequestProgressProviding protocol would periodically call the progressHandler to report progress on longer running tasks. The progessHandler is optional allowing clients of the request to report progress to the user and/or display or process partial results when they become available. Note that the progressHandler can be called on a different dispatch queue than what the request was initiated from.
        Specified by:
        progressHandler in interface VNRequestProgressProviding
      • recognitionLanguages

        public NSArray<java.lang.String> recognitionLanguages()
        Specify the languages used for the detection. The order of the languages in the array defines the order in which languages will be used during the language processing. The languages are specified as ISO language codes.
      • recognitionLevel

        public long recognitionLevel()
        The recognition level selects which techniques will be used during the text recognition. There are trade-offs between performance and accuracy.
      • resolveClassMethod

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

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

        public void setCustomWords​(NSArray<java.lang.String> value)
        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.
      • setMinimumTextHeight

        public void setMinimumTextHeight​(float value)
        Minimum height of the text expected to be recognized, relative to the image height (e.g. for half of the image height, use 0.5). Increasing the size will reduce the memory consumption and speed up the recognition with the trade-off that text smaller than the minimum height may not be recognized properly. If the minimum height is set to 0.0 the image gets processed at the highest possible resolution with no downscaling. With that the processing time will be the longest and the memory usage the highest but the smallest technically readable text will be recognized. The default value for this is 0.0.
      • setProgressHandler

        public void setProgressHandler​(VNRequestProgressProviding.Block_setProgressHandler value)
        Description copied from interface: VNRequestProgressProviding
        Requests that support the VNRequestProgressProviding protocol would periodically call the progressHandler to report progress on longer running tasks. The progessHandler is optional allowing clients of the request to report progress to the user and/or display or process partial results when they become available. Note that the progressHandler can be called on a different dispatch queue than what the request was initiated from.
        Specified by:
        setProgressHandler in interface VNRequestProgressProviding
      • setRecognitionLanguages

        public void setRecognitionLanguages​(NSArray<java.lang.String> value)
        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.
      • setRecognitionLevel

        public void setRecognitionLevel​(long value)
        The recognition level selects which techniques will be used during the text recognition. There are trade-offs between performance and accuracy.
      • setUsesLanguageCorrection

        public void setUsesLanguageCorrection​(boolean value)
        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.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static NSArray<java.lang.String> supportedRecognitionLanguagesForTextRecognitionLevelRevisionError​(long recognitionLevel,
                                                                                                                  long requestRevision,
                                                                                                                  org.moe.natj.general.ptr.Ptr<NSError> error)
        Returns all the supported languages for a given text recognition level. Note that a language supported in one recognition level might not be available in another.
      • supportedRevisions

        public static NSIndexSet supportedRevisions()
      • usesLanguageCorrection

        public boolean usesLanguageCorrection()
        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.
      • version_static

        public static long version_static()