public class VNRecognizeTextRequest extends VNImageBasedRequest implements VNRequestProgressProviding
This request will generate VNRecognizedTextObservation objects describing the locations of text and the actual text recognized.
VNRequest.Block_completionHandler_ret, VNRequest.Block_initWithCompletionHandlerNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retVNRequestProgressProviding.Block_progressHandler_ret, VNRequestProgressProviding.Block_setProgressHandler| Modifier | Constructor and Description |
|---|---|
protected |
VNRecognizeTextRequest(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static VNRecognizeTextRequest |
alloc() |
static VNRecognizeTextRequest |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static long |
currentRevision() |
NSArray<java.lang.String> |
customWords()
An array of strings that will be used at the word recognition stage in addition to the recognition languages.
|
static java.lang.String |
debugDescription_static() |
static long |
defaultRevision() |
static java.lang.String |
description_static() |
static long |
hash_static() |
boolean |
indeterminate()
If a request cannot determine its progress in fractions completed, this property will be set.
|
VNRecognizeTextRequest |
init()
Creates a new VNRequest with no completion handler.
|
VNRecognizeTextRequest |
initWithCompletionHandler(VNRequest.Block_initWithCompletionHandler completionHandler)
Creates a new VNRequest with an optional completion handler.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
float |
minimumTextHeight()
Minimum height of the text expected to be recognized, relative to the image height (e.g.
|
static VNRecognizeTextRequest |
new_objc() |
VNRequestProgressProviding.Block_progressHandler_ret |
progressHandler()
Requests that support the VNRequestProgressProviding protocol would periodically call the progressHandler to report progress on longer running tasks.
|
NSArray<java.lang.String> |
recognitionLanguages()
Specify the languages used for the detection.
|
long |
recognitionLevel()
The recognition level selects which techniques will be used during the text recognition.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
NSArray<? extends VNRecognizedTextObservation> |
results()
VNRecognizedTextObservation results.
|
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.
|
void |
setMinimumTextHeight(float value)
Minimum height of the text expected to be recognized, relative to the image height (e.g.
|
void |
setProgressHandler(VNRequestProgressProviding.Block_setProgressHandler value)
Requests that support the VNRequestProgressProviding protocol would periodically call the progressHandler to report progress on longer running tasks.
|
void |
setRecognitionLanguages(NSArray<java.lang.String> value)
Specify the languages used for the detection.
|
void |
setRecognitionLevel(long value)
The recognition level selects which techniques will be used during the text recognition.
|
void |
setUsesLanguageCorrection(boolean value)
Determines whether language correction should be applied during the recognition process.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
NSArray<java.lang.String> |
supportedRecognitionLanguagesAndReturnError(org.moe.natj.general.ptr.Ptr<NSError> error)
Obtain the collection of supported recognition languages.
|
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.
|
static NSIndexSet |
supportedRevisions() |
boolean |
usesLanguageCorrection()
Determines whether language correction should be applied during the recognition process.
|
static long |
version_static() |
regionOfInterest, setRegionOfInterestcancel, completionHandler, copyWithZone, preferBackgroundProcessing, revision, setPreferBackgroundProcessing, setRevision, setUsesCPUOnly, usesCPUOnlyaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected VNRecognizeTextRequest(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static VNRecognizeTextRequest alloc()
public static VNRecognizeTextRequest allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static long currentRevision()
public NSArray<java.lang.String> customWords()
public static java.lang.String debugDescription_static()
public static long defaultRevision()
public static java.lang.String description_static()
public static long hash_static()
public boolean indeterminate()
VNRequestProgressProvidingIf 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.
indeterminate in interface VNRequestProgressProvidingpublic VNRecognizeTextRequest init()
VNRequestinit in class VNImageBasedRequestpublic VNRecognizeTextRequest initWithCompletionHandler(VNRequest.Block_initWithCompletionHandler completionHandler)
VNRequestinitWithCompletionHandler in class VNImageBasedRequestcompletionHandler - The block to be invoked after the request has completed its processing. The completion handler gets executed on the same dispatch queue as the request being executed.public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public float minimumTextHeight()
public static VNRecognizeTextRequest new_objc()
public VNRequestProgressProviding.Block_progressHandler_ret progressHandler()
VNRequestProgressProvidingThe 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.
progressHandler in interface VNRequestProgressProvidingpublic NSArray<java.lang.String> recognitionLanguages()
public long recognitionLevel()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setCustomWords(NSArray<java.lang.String> value)
public void setMinimumTextHeight(float value)
public void setProgressHandler(VNRequestProgressProviding.Block_setProgressHandler value)
VNRequestProgressProvidingThe 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.
setProgressHandler in interface VNRequestProgressProvidingpublic void setRecognitionLanguages(NSArray<java.lang.String> value)
public void setRecognitionLevel(long value)
public void setUsesLanguageCorrection(boolean value)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static NSArray<java.lang.String> supportedRecognitionLanguagesForTextRecognitionLevelRevisionError(long recognitionLevel, long requestRevision, org.moe.natj.general.ptr.Ptr<NSError> error)
public static NSIndexSet supportedRevisions()
public boolean usesLanguageCorrection()
public static long version_static()
public NSArray<? extends VNRecognizedTextObservation> results()
public NSArray<java.lang.String> supportedRecognitionLanguagesAndReturnError(org.moe.natj.general.ptr.Ptr<NSError> error)
This method will return the collection of all possible language identifiers that are recognized by the target request based on its current state of configuration at the time of the call.
error - The address of the variable that will be populated with the error if the call fails.