Package apple.vision
Class VNTargetedImageRequest
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.vision.VNRequest
-
- apple.vision.VNImageBasedRequest
-
- apple.vision.VNTargetedImageRequest
-
- Direct Known Subclasses:
VNGenerateOpticalFlowRequest,VNImageRegistrationRequest
public class VNTargetedImageRequest extends VNImageBasedRequest
A request that requires an initial image as a starting point for its work.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.vision.VNRequest
VNRequest.Block_completionHandler_ret, VNRequest.Block_initWithCompletionHandler
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedVNTargetedImageRequest(org.moe.natj.general.Pointer peer)
-
Method Summary
-
Methods inherited from class apple.vision.VNImageBasedRequest
regionOfInterest, setRegionOfInterest
-
Methods inherited from class apple.vision.VNRequest
cancel, completionHandler, copyWithZone, preferBackgroundProcessing, results, revision, setPreferBackgroundProcessing, setRevision, setUsesCPUOnly, usesCPUOnly
-
Methods inherited from class apple.NSObject
accessibilityActivate, 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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static VNTargetedImageRequest alloc()
-
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()
-
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()
-
init
public VNTargetedImageRequest init()
Description copied from class:VNRequestCreates a new VNRequest with no completion handler.- Overrides:
initin classVNImageBasedRequest
-
initWithCompletionHandler
public VNTargetedImageRequest initWithCompletionHandler(VNRequest.Block_initWithCompletionHandler completionHandler)
Description copied from class:VNRequestCreates a new VNRequest with an optional completion handler.- Overrides:
initWithCompletionHandlerin classVNImageBasedRequest- Parameters:
completionHandler- 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.
-
initWithTargetedCGImageOptions
public VNTargetedImageRequest initWithTargetedCGImageOptions(CGImageRef cgImage, NSDictionary<java.lang.String,?> options)
Create a new request with a targeted CGImage.- Parameters:
cgImage- The CGImageRef of the targeted image.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCGImageOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedCGImageOptionsCompletionHandler(CGImageRef cgImage, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCGImageOptionsCompletionHandler completionHandler)
Create a new request with a targeted CGImage.- Parameters:
cgImage- The CGImageRef of the targeted image.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedCGImageOrientationOptions
public VNTargetedImageRequest initWithTargetedCGImageOrientationOptions(CGImageRef cgImage, int orientation, NSDictionary<java.lang.String,?> options)
Create a new request with a targeted CGImage.- Parameters:
cgImage- The CGImageRef of the targeted image.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCGImageOrientationOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedCGImageOrientationOptionsCompletionHandler(CGImageRef cgImage, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCGImageOrientationOptionsCompletionHandler completionHandler)
Create a new request with a targeted CGImage.- Parameters:
cgImage- The CGImageRef of the targeted image.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedCIImageOptions
public VNTargetedImageRequest initWithTargetedCIImageOptions(CIImage ciImage, NSDictionary<java.lang.String,?> options)
Create a new request with a targeted CIImage.- Parameters:
ciImage- The CIImage of the targeted image.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCIImageOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedCIImageOptionsCompletionHandler(CIImage ciImage, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCIImageOptionsCompletionHandler completionHandler)
Create a new request with a targeted CIImage.- Parameters:
ciImage- The CIImage of the targeted image.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedCIImageOrientationOptions
public VNTargetedImageRequest initWithTargetedCIImageOrientationOptions(CIImage ciImage, int orientation, NSDictionary<java.lang.String,?> options)
Create a new request with a targeted CIImage.- Parameters:
ciImage- The CIImage of the targeted image.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCIImageOrientationOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedCIImageOrientationOptionsCompletionHandler(CIImage ciImage, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCIImageOrientationOptionsCompletionHandler completionHandler)
Create a new request with a targeted CIImage.- Parameters:
ciImage- The CIImage of the targeted image.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedCVPixelBufferOptions
public VNTargetedImageRequest initWithTargetedCVPixelBufferOptions(CVBufferRef pixelBuffer, NSDictionary<java.lang.String,?> options)
Create a new request that targets an image in a pixel buffer.- Parameters:
pixelBuffer- The pixel buffer containing the targeted image.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCVPixelBufferOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedCVPixelBufferOptionsCompletionHandler(CVBufferRef pixelBuffer, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCVPixelBufferOptionsCompletionHandler completionHandler)
Create a new request that targets an image in a pixel buffer.- Parameters:
pixelBuffer- The pixel buffer containing the targeted image.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedCVPixelBufferOrientationOptions
public VNTargetedImageRequest initWithTargetedCVPixelBufferOrientationOptions(CVBufferRef pixelBuffer, int orientation, NSDictionary<java.lang.String,?> options)
Create a new request that targets an image in a pixel buffer.- Parameters:
pixelBuffer- The pixel buffer containing the targeted image.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCVPixelBufferOrientationOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(CVBufferRef pixelBuffer, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCVPixelBufferOrientationOptionsCompletionHandler completionHandler)
Create a new request that targets an image in a pixel buffer.- Parameters:
pixelBuffer- The pixel buffer containing the targeted image.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedImageDataOptions
public VNTargetedImageRequest initWithTargetedImageDataOptions(NSData imageData, NSDictionary<java.lang.String,?> options)
Create a new request with a targeted image data.- Parameters:
imageData- The data of the targeted image.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedImageDataOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedImageDataOptionsCompletionHandler(NSData imageData, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedImageDataOptionsCompletionHandler completionHandler)
Create a new request with a targeted image data.- Parameters:
imageData- The data of the targeted image.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedImageDataOrientationOptions
public VNTargetedImageRequest initWithTargetedImageDataOrientationOptions(NSData imageData, int orientation, NSDictionary<java.lang.String,?> options)
Create a new request with a targeted image data.- Parameters:
imageData- The data of the targeted image.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedImageDataOrientationOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedImageDataOrientationOptionsCompletionHandler(NSData imageData, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedImageDataOrientationOptionsCompletionHandler completionHandler)
Create a new request with a targeted image data.- Parameters:
imageData- The data of the targeted image.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedImageURLOptions
public VNTargetedImageRequest initWithTargetedImageURLOptions(NSURL imageURL, NSDictionary<java.lang.String,?> options)
Create a new request with a targeted image URL.- Parameters:
imageURL- The URL of the targeted image.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedImageURLOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedImageURLOptionsCompletionHandler(NSURL imageURL, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedImageURLOptionsCompletionHandler completionHandler)
Create a new request with a targeted image URL.- Parameters:
imageURL- The URL of the targeted image.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
initWithTargetedImageURLOrientationOptions
public VNTargetedImageRequest initWithTargetedImageURLOrientationOptions(NSURL imageURL, int orientation, NSDictionary<java.lang.String,?> options)
Create a new request with a targeted image URL.- Parameters:
imageURL- The URL of the targeted image.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedImageURLOrientationOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedImageURLOrientationOptionsCompletionHandler(NSURL imageURL, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedImageURLOrientationOptionsCompletionHandler completionHandler)
Create a new request with a targeted image URL.- Parameters:
imageURL- The URL of the targeted image.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked when the request has been performed.
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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()
-
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()
-
version_static
public static long version_static()
-
currentRevision
public static long currentRevision()
-
defaultRevision
public static long defaultRevision()
-
supportedRevisions
public static NSIndexSet supportedRevisions()
-
initWithTargetedCMSampleBufferOptions
public VNTargetedImageRequest initWithTargetedCMSampleBufferOptions(CMSampleBufferRef sampleBuffer, NSDictionary<java.lang.String,?> options)
Create a new request with a targeted CMSampleBuffer.- Parameters:
sampleBuffer- The CMSampleBuffer containing the CVImageBuffer to be used by the request.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCMSampleBufferOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedCMSampleBufferOptionsCompletionHandler(CMSampleBufferRef sampleBuffer, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCMSampleBufferOptionsCompletionHandler completionHandler)
Create a new request with a targeted CMSampleBuffer.- Parameters:
sampleBuffer- The CMSampleBuffer containing the CVImageBuffer to be used by the request.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked after the request has been performed.
-
initWithTargetedCMSampleBufferOrientationOptions
public VNTargetedImageRequest initWithTargetedCMSampleBufferOrientationOptions(CMSampleBufferRef sampleBuffer, int orientation, NSDictionary<java.lang.String,?> options)
Create a new request with a targeted CMSampleBuffer.- Parameters:
sampleBuffer- The CMSampleBuffer containing the CVImageBuffer to be used by the request.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.
-
initWithTargetedCMSampleBufferOrientationOptionsCompletionHandler
public VNTargetedImageRequest initWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(CMSampleBufferRef sampleBuffer, int orientation, NSDictionary<java.lang.String,?> options, VNTargetedImageRequest.Block_initWithTargetedCMSampleBufferOrientationOptionsCompletionHandler completionHandler)
Create a new request with a targeted CMSampleBuffer.- Parameters:
sampleBuffer- The CMSampleBuffer containing the CVImageBuffer to be used by the request.orientation- The orientation of the image/buffer 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.options- A dictionary with options specifying auxiliary information for the image.completionHandler- The block that is invoked after the request has been performed.
-
-