mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00

* feat(platform-declarations): generate typings from iOS 13.0 SDK * fix(platform-declarations): typings generation script Delete Material Components typings from `tns-platform-declarations`, they are part of `tns-core-modules` package. * refactor(platform-declarations): workaround a TypeScript error Error: ``` tns-platform-declarations/ios/objc-x86_64/objc!OSLog.d.ts(178,15): error TS2417: Class static side 'typeof OSLogEnumerator' incorrectly extends base class static side 'typeof NSEnumerator'. Types of property 'alloc' are incompatible. Type '() => OSLogEnumerator' is not assignable to type '<ObjectType>() => NSEnumerator<ObjectType>'. Type 'OSLogEnumerator' is not assignable to type 'NSEnumerator<ObjectType>'. Types of property 'allObjects' are incompatible. Type 'NSArray<NSObject>' is not assignable to type 'NSArray<ObjectType>'. Type 'NSObject' is not assignable to type 'ObjectType'. 'NSObject' is assignable to the constraint of type 'ObjectType', but 'ObjectType' could be instantiated with a different subtype of constraint '{}'. ``` References: https://github.com/Microsoft/TypeScript/issues/17575 https://stackoverflow.com/questions/52518125/workaround-for-accessing-class-type-arguments-in-static-method-in-typescript * docs(platform-declarations): note a manual step on generating typings * chore(platform-declarations): exclude ios-typings-prj from transpilation * refactor(platform-declarations): delete references to MDC types ``` ios/objc-x86_64/objc!QuartzCore.d.ts:676:36 - error TS2304: Cannot find name 'MDCAnimationTimingFunction'. 676 static mdc_functionWithType(type: MDCAnimationTimingFunction): CAMediaTimingFunction; ios/objc-x86_64/objc!UIKit.d.ts:7717:54 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7717 static mdc_preferredFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont; ios/objc-x86_64/objc!UIKit.d.ts:7719:53 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7719 static mdc_standardFontForMaterialTextStyle(style: MDCFontTextStyle): UIFont; ios/objc-x86_64/objc!UIKit.d.ts:7771:63 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7771 mdc_fontSizedForMaterialTextStyleScaledForDynamicType(style: MDCFontTextStyle, scaled: boolean): UIFont; ios/objc-x86_64/objc!UIKit.d.ts:7794:64 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7794 static mdc_preferredFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor; ios/objc-x86_64/objc!UIKit.d.ts:7796:63 - error TS2304: Cannot find name 'MDCFontTextStyle'. 7796 static mdc_standardFontDescriptorForMaterialTextStyle(style: MDCFontTextStyle): UIFontDescriptor; ```
1121 lines
38 KiB
TypeScript
1121 lines
38 KiB
TypeScript
|
|
declare var VNAnimalDetectorCat: string;
|
|
|
|
declare var VNAnimalDetectorDog: string;
|
|
|
|
declare var VNAnimalIdentifierCat: string;
|
|
|
|
declare var VNAnimalIdentifierDog: string;
|
|
|
|
declare class VNBarcodeObservation extends VNRectangleObservation {
|
|
|
|
static alloc(): VNBarcodeObservation; // inherited from NSObject
|
|
|
|
static new(): VNBarcodeObservation; // inherited from NSObject
|
|
|
|
static observationWithBoundingBox(boundingBox: CGRect): VNBarcodeObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNBarcodeObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
static rectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision: number, topLeft: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint, topRight: CGPoint): VNBarcodeObservation; // inherited from VNRectangleObservation
|
|
|
|
readonly barcodeDescriptor: CIBarcodeDescriptor;
|
|
|
|
readonly payloadStringValue: string;
|
|
|
|
readonly symbology: string;
|
|
}
|
|
|
|
declare var VNBarcodeSymbologyAztec: string;
|
|
|
|
declare var VNBarcodeSymbologyCode128: string;
|
|
|
|
declare var VNBarcodeSymbologyCode39: string;
|
|
|
|
declare var VNBarcodeSymbologyCode39Checksum: string;
|
|
|
|
declare var VNBarcodeSymbologyCode39FullASCII: string;
|
|
|
|
declare var VNBarcodeSymbologyCode39FullASCIIChecksum: string;
|
|
|
|
declare var VNBarcodeSymbologyCode93: string;
|
|
|
|
declare var VNBarcodeSymbologyCode93i: string;
|
|
|
|
declare var VNBarcodeSymbologyDataMatrix: string;
|
|
|
|
declare var VNBarcodeSymbologyEAN13: string;
|
|
|
|
declare var VNBarcodeSymbologyEAN8: string;
|
|
|
|
declare var VNBarcodeSymbologyI2of5: string;
|
|
|
|
declare var VNBarcodeSymbologyI2of5Checksum: string;
|
|
|
|
declare var VNBarcodeSymbologyITF14: string;
|
|
|
|
declare var VNBarcodeSymbologyPDF417: string;
|
|
|
|
declare var VNBarcodeSymbologyQR: string;
|
|
|
|
declare var VNBarcodeSymbologyUPCE: string;
|
|
|
|
declare class VNClassificationObservation extends VNObservation {
|
|
|
|
static alloc(): VNClassificationObservation; // inherited from NSObject
|
|
|
|
static new(): VNClassificationObservation; // inherited from NSObject
|
|
|
|
readonly hasPrecisionRecallCurve: boolean;
|
|
|
|
readonly identifier: string;
|
|
|
|
hasMinimumPrecisionForRecall(minimumPrecision: number, recall: number): boolean;
|
|
|
|
hasMinimumRecallForPrecision(minimumRecall: number, precision: number): boolean;
|
|
}
|
|
|
|
declare class VNClassifyImageRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNClassifyImageRequest; // inherited from NSObject
|
|
|
|
static knownClassificationsForRevisionError(requestRevision: number): NSArray<VNClassificationObservation>;
|
|
|
|
static new(): VNClassifyImageRequest; // inherited from NSObject
|
|
}
|
|
|
|
declare var VNClassifyImageRequestRevision1: number;
|
|
|
|
declare class VNCoreMLFeatureValueObservation extends VNObservation {
|
|
|
|
static alloc(): VNCoreMLFeatureValueObservation; // inherited from NSObject
|
|
|
|
static new(): VNCoreMLFeatureValueObservation; // inherited from NSObject
|
|
|
|
readonly featureName: string;
|
|
|
|
readonly featureValue: MLFeatureValue;
|
|
}
|
|
|
|
declare class VNCoreMLModel extends NSObject {
|
|
|
|
static alloc(): VNCoreMLModel; // inherited from NSObject
|
|
|
|
static modelForMLModelError(model: MLModel): VNCoreMLModel;
|
|
|
|
static new(): VNCoreMLModel; // inherited from NSObject
|
|
|
|
featureProvider: MLFeatureProvider;
|
|
|
|
inputImageFeatureName: string;
|
|
}
|
|
|
|
declare class VNCoreMLRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNCoreMLRequest; // inherited from NSObject
|
|
|
|
static new(): VNCoreMLRequest; // inherited from NSObject
|
|
|
|
imageCropAndScaleOption: VNImageCropAndScaleOption;
|
|
|
|
readonly model: VNCoreMLModel;
|
|
|
|
constructor(o: { model: VNCoreMLModel; });
|
|
|
|
constructor(o: { model: VNCoreMLModel; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
initWithModel(model: VNCoreMLModel): this;
|
|
|
|
initWithModelCompletionHandler(model: VNCoreMLModel, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
}
|
|
|
|
declare var VNCoreMLRequestRevision1: number;
|
|
|
|
declare class VNDetectBarcodesRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNDetectBarcodesRequest; // inherited from NSObject
|
|
|
|
static new(): VNDetectBarcodesRequest; // inherited from NSObject
|
|
|
|
symbologies: NSArray<string>;
|
|
|
|
static readonly supportedSymbologies: NSArray<string>;
|
|
}
|
|
|
|
declare var VNDetectBarcodesRequestRevision1: number;
|
|
|
|
declare class VNDetectFaceCaptureQualityRequest extends VNImageBasedRequest implements VNFaceObservationAccepting {
|
|
|
|
static alloc(): VNDetectFaceCaptureQualityRequest; // inherited from NSObject
|
|
|
|
static new(): VNDetectFaceCaptureQualityRequest; // inherited from NSObject
|
|
|
|
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
|
|
readonly description: string; // inherited from NSObjectProtocol
|
|
|
|
readonly hash: number; // inherited from NSObjectProtocol
|
|
|
|
inputFaceObservations: NSArray<VNFaceObservation>; // inherited from VNFaceObservationAccepting
|
|
|
|
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
|
|
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
|
|
readonly // inherited from NSObjectProtocol
|
|
|
|
class(): typeof NSObject;
|
|
|
|
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
|
|
isEqual(object: any): boolean;
|
|
|
|
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
|
|
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
|
|
performSelector(aSelector: string): any;
|
|
|
|
performSelectorWithObject(aSelector: string, object: any): any;
|
|
|
|
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
|
|
respondsToSelector(aSelector: string): boolean;
|
|
|
|
retainCount(): number;
|
|
|
|
self(): this;
|
|
}
|
|
|
|
declare var VNDetectFaceCaptureQualityRequestRevision1: number;
|
|
|
|
declare class VNDetectFaceLandmarksRequest extends VNImageBasedRequest implements VNFaceObservationAccepting {
|
|
|
|
static alloc(): VNDetectFaceLandmarksRequest; // inherited from NSObject
|
|
|
|
static new(): VNDetectFaceLandmarksRequest; // inherited from NSObject
|
|
|
|
static revisionSupportsConstellation(requestRevision: number, constellation: VNRequestFaceLandmarksConstellation): boolean;
|
|
|
|
constellation: VNRequestFaceLandmarksConstellation;
|
|
|
|
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
|
|
readonly description: string; // inherited from NSObjectProtocol
|
|
|
|
readonly hash: number; // inherited from NSObjectProtocol
|
|
|
|
inputFaceObservations: NSArray<VNFaceObservation>; // inherited from VNFaceObservationAccepting
|
|
|
|
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
|
|
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
|
|
readonly // inherited from NSObjectProtocol
|
|
|
|
class(): typeof NSObject;
|
|
|
|
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
|
|
isEqual(object: any): boolean;
|
|
|
|
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
|
|
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
|
|
performSelector(aSelector: string): any;
|
|
|
|
performSelectorWithObject(aSelector: string, object: any): any;
|
|
|
|
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
|
|
respondsToSelector(aSelector: string): boolean;
|
|
|
|
retainCount(): number;
|
|
|
|
self(): this;
|
|
}
|
|
|
|
declare var VNDetectFaceLandmarksRequestRevision1: number;
|
|
|
|
declare var VNDetectFaceLandmarksRequestRevision2: number;
|
|
|
|
declare var VNDetectFaceLandmarksRequestRevision3: number;
|
|
|
|
declare class VNDetectFaceRectanglesRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNDetectFaceRectanglesRequest; // inherited from NSObject
|
|
|
|
static new(): VNDetectFaceRectanglesRequest; // inherited from NSObject
|
|
}
|
|
|
|
declare var VNDetectFaceRectanglesRequestRevision1: number;
|
|
|
|
declare var VNDetectFaceRectanglesRequestRevision2: number;
|
|
|
|
declare class VNDetectHorizonRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNDetectHorizonRequest; // inherited from NSObject
|
|
|
|
static new(): VNDetectHorizonRequest; // inherited from NSObject
|
|
}
|
|
|
|
declare var VNDetectHorizonRequestRevision1: number;
|
|
|
|
declare class VNDetectHumanRectanglesRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNDetectHumanRectanglesRequest; // inherited from NSObject
|
|
|
|
static new(): VNDetectHumanRectanglesRequest; // inherited from NSObject
|
|
}
|
|
|
|
declare var VNDetectHumanRectanglesRequestRevision1: number;
|
|
|
|
declare class VNDetectRectanglesRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNDetectRectanglesRequest; // inherited from NSObject
|
|
|
|
static new(): VNDetectRectanglesRequest; // inherited from NSObject
|
|
|
|
maximumAspectRatio: number;
|
|
|
|
maximumObservations: number;
|
|
|
|
minimumAspectRatio: number;
|
|
|
|
minimumConfidence: number;
|
|
|
|
minimumSize: number;
|
|
|
|
quadratureTolerance: number;
|
|
}
|
|
|
|
declare var VNDetectRectanglesRequestRevision1: number;
|
|
|
|
declare class VNDetectTextRectanglesRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNDetectTextRectanglesRequest; // inherited from NSObject
|
|
|
|
static new(): VNDetectTextRectanglesRequest; // inherited from NSObject
|
|
|
|
reportCharacterBoxes: boolean;
|
|
}
|
|
|
|
declare var VNDetectTextRectanglesRequestRevision1: number;
|
|
|
|
declare class VNDetectedObjectObservation extends VNObservation {
|
|
|
|
static alloc(): VNDetectedObjectObservation; // inherited from NSObject
|
|
|
|
static new(): VNDetectedObjectObservation; // inherited from NSObject
|
|
|
|
static observationWithBoundingBox(boundingBox: CGRect): VNDetectedObjectObservation;
|
|
|
|
static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNDetectedObjectObservation;
|
|
|
|
readonly boundingBox: CGRect;
|
|
}
|
|
|
|
declare const enum VNElementType {
|
|
|
|
Unknown = 0,
|
|
|
|
Float = 1,
|
|
|
|
Double = 2
|
|
}
|
|
|
|
declare function VNElementTypeSize(elementType: VNElementType): number;
|
|
|
|
declare const enum VNErrorCode {
|
|
|
|
OK = 0,
|
|
|
|
RequestCancelled = 1,
|
|
|
|
InvalidFormat = 2,
|
|
|
|
OperationFailed = 3,
|
|
|
|
OutOfBoundsError = 4,
|
|
|
|
InvalidOption = 5,
|
|
|
|
IOError = 6,
|
|
|
|
MissingOption = 7,
|
|
|
|
NotImplemented = 8,
|
|
|
|
InternalError = 9,
|
|
|
|
OutOfMemory = 10,
|
|
|
|
UnknownError = 11,
|
|
|
|
InvalidOperation = 12,
|
|
|
|
InvalidImage = 13,
|
|
|
|
InvalidArgument = 14,
|
|
|
|
InvalidModel = 15,
|
|
|
|
UnsupportedRevision = 16,
|
|
|
|
DataUnavailable = 17
|
|
}
|
|
|
|
declare var VNErrorDomain: string;
|
|
|
|
declare class VNFaceLandmarkRegion extends NSObject implements NSCopying, NSSecureCoding, VNRequestRevisionProviding {
|
|
|
|
static alloc(): VNFaceLandmarkRegion; // inherited from NSObject
|
|
|
|
static new(): VNFaceLandmarkRegion; // inherited from NSObject
|
|
|
|
readonly pointCount: number;
|
|
|
|
readonly requestRevision: number; // inherited from VNRequestRevisionProviding
|
|
|
|
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
|
|
|
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
|
|
|
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
|
|
|
encodeWithCoder(coder: NSCoder): void;
|
|
|
|
initWithCoder(coder: NSCoder): this;
|
|
}
|
|
|
|
declare class VNFaceLandmarkRegion2D extends VNFaceLandmarkRegion {
|
|
|
|
static alloc(): VNFaceLandmarkRegion2D; // inherited from NSObject
|
|
|
|
static new(): VNFaceLandmarkRegion2D; // inherited from NSObject
|
|
|
|
readonly normalizedPoints: interop.Pointer | interop.Reference<CGPoint>;
|
|
|
|
readonly precisionEstimatesPerPoint: NSArray<number>;
|
|
|
|
pointsInImageOfSize(imageSize: CGSize): interop.Pointer | interop.Reference<CGPoint>;
|
|
}
|
|
|
|
declare class VNFaceLandmarks extends NSObject implements NSCopying, NSSecureCoding, VNRequestRevisionProviding {
|
|
|
|
static alloc(): VNFaceLandmarks; // inherited from NSObject
|
|
|
|
static new(): VNFaceLandmarks; // inherited from NSObject
|
|
|
|
readonly confidence: number;
|
|
|
|
readonly requestRevision: number; // inherited from VNRequestRevisionProviding
|
|
|
|
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
|
|
|
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
|
|
|
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
|
|
|
encodeWithCoder(coder: NSCoder): void;
|
|
|
|
initWithCoder(coder: NSCoder): this;
|
|
}
|
|
|
|
declare class VNFaceLandmarks2D extends VNFaceLandmarks {
|
|
|
|
static alloc(): VNFaceLandmarks2D; // inherited from NSObject
|
|
|
|
static new(): VNFaceLandmarks2D; // inherited from NSObject
|
|
|
|
readonly allPoints: VNFaceLandmarkRegion2D;
|
|
|
|
readonly faceContour: VNFaceLandmarkRegion2D;
|
|
|
|
readonly innerLips: VNFaceLandmarkRegion2D;
|
|
|
|
readonly leftEye: VNFaceLandmarkRegion2D;
|
|
|
|
readonly leftEyebrow: VNFaceLandmarkRegion2D;
|
|
|
|
readonly leftPupil: VNFaceLandmarkRegion2D;
|
|
|
|
readonly medianLine: VNFaceLandmarkRegion2D;
|
|
|
|
readonly nose: VNFaceLandmarkRegion2D;
|
|
|
|
readonly noseCrest: VNFaceLandmarkRegion2D;
|
|
|
|
readonly outerLips: VNFaceLandmarkRegion2D;
|
|
|
|
readonly rightEye: VNFaceLandmarkRegion2D;
|
|
|
|
readonly rightEyebrow: VNFaceLandmarkRegion2D;
|
|
|
|
readonly rightPupil: VNFaceLandmarkRegion2D;
|
|
}
|
|
|
|
declare class VNFaceObservation extends VNDetectedObjectObservation {
|
|
|
|
static alloc(): VNFaceObservation; // inherited from NSObject
|
|
|
|
static faceObservationWithRequestRevisionBoundingBoxRollYaw(requestRevision: number, boundingBox: CGRect, roll: number, yaw: number): VNFaceObservation;
|
|
|
|
static new(): VNFaceObservation; // inherited from NSObject
|
|
|
|
static observationWithBoundingBox(boundingBox: CGRect): VNFaceObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNFaceObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
readonly faceCaptureQuality: number;
|
|
|
|
readonly landmarks: VNFaceLandmarks2D;
|
|
|
|
readonly roll: number;
|
|
|
|
readonly yaw: number;
|
|
}
|
|
|
|
interface VNFaceObservationAccepting extends NSObjectProtocol {
|
|
|
|
inputFaceObservations: NSArray<VNFaceObservation>;
|
|
}
|
|
declare var VNFaceObservationAccepting: {
|
|
|
|
prototype: VNFaceObservationAccepting;
|
|
};
|
|
|
|
declare class VNFeaturePrintObservation extends VNObservation {
|
|
|
|
static alloc(): VNFeaturePrintObservation; // inherited from NSObject
|
|
|
|
static new(): VNFeaturePrintObservation; // inherited from NSObject
|
|
|
|
readonly data: NSData;
|
|
|
|
readonly elementCount: number;
|
|
|
|
readonly elementType: VNElementType;
|
|
|
|
computeDistanceToFeaturePrintObservationError(outDistance: interop.Pointer | interop.Reference<number>, featurePrint: VNFeaturePrintObservation): boolean;
|
|
}
|
|
|
|
declare class VNGenerateAttentionBasedSaliencyImageRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNGenerateAttentionBasedSaliencyImageRequest; // inherited from NSObject
|
|
|
|
static new(): VNGenerateAttentionBasedSaliencyImageRequest; // inherited from NSObject
|
|
}
|
|
|
|
declare var VNGenerateAttentionBasedSaliencyImageRequestRevision1: number;
|
|
|
|
declare class VNGenerateImageFeaturePrintRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNGenerateImageFeaturePrintRequest; // inherited from NSObject
|
|
|
|
static new(): VNGenerateImageFeaturePrintRequest; // inherited from NSObject
|
|
|
|
imageCropAndScaleOption: VNImageCropAndScaleOption;
|
|
}
|
|
|
|
declare var VNGenerateImageFeaturePrintRequestRevision1: number;
|
|
|
|
declare class VNGenerateObjectnessBasedSaliencyImageRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNGenerateObjectnessBasedSaliencyImageRequest; // inherited from NSObject
|
|
|
|
static new(): VNGenerateObjectnessBasedSaliencyImageRequest; // inherited from NSObject
|
|
}
|
|
|
|
declare var VNGenerateObjectnessBasedSaliencyImageRequestRevision1: number;
|
|
|
|
declare class VNHomographicImageRegistrationRequest extends VNImageRegistrationRequest {
|
|
|
|
static alloc(): VNHomographicImageRegistrationRequest; // inherited from NSObject
|
|
|
|
static new(): VNHomographicImageRegistrationRequest; // inherited from NSObject
|
|
}
|
|
|
|
declare var VNHomographicImageRegistrationRequestRevision1: number;
|
|
|
|
declare class VNHorizonObservation extends VNObservation {
|
|
|
|
static alloc(): VNHorizonObservation; // inherited from NSObject
|
|
|
|
static new(): VNHorizonObservation; // inherited from NSObject
|
|
|
|
readonly angle: number;
|
|
|
|
readonly transform: CGAffineTransform;
|
|
}
|
|
|
|
declare class VNImageAlignmentObservation extends VNObservation {
|
|
|
|
static alloc(): VNImageAlignmentObservation; // inherited from NSObject
|
|
|
|
static new(): VNImageAlignmentObservation; // inherited from NSObject
|
|
}
|
|
|
|
declare class VNImageBasedRequest extends VNRequest {
|
|
|
|
static alloc(): VNImageBasedRequest; // inherited from NSObject
|
|
|
|
static new(): VNImageBasedRequest; // inherited from NSObject
|
|
|
|
regionOfInterest: CGRect;
|
|
}
|
|
|
|
declare const enum VNImageCropAndScaleOption {
|
|
|
|
CenterCrop = 0,
|
|
|
|
ScaleFit = 1,
|
|
|
|
ScaleFill = 2
|
|
}
|
|
|
|
declare class VNImageHomographicAlignmentObservation extends VNImageAlignmentObservation {
|
|
|
|
static alloc(): VNImageHomographicAlignmentObservation; // inherited from NSObject
|
|
|
|
static new(): VNImageHomographicAlignmentObservation; // inherited from NSObject
|
|
|
|
warpTransform: simd_float3x3;
|
|
}
|
|
|
|
declare var VNImageOptionCIContext: string;
|
|
|
|
declare var VNImageOptionCameraIntrinsics: string;
|
|
|
|
declare var VNImageOptionProperties: string;
|
|
|
|
declare function VNImagePointForFaceLandmarkPoint(faceLandmarkPoint: interop.Reference<number>, faceBoundingBox: CGRect, imageWidth: number, imageHeight: number): CGPoint;
|
|
|
|
declare function VNImagePointForNormalizedPoint(normalizedPoint: CGPoint, imageWidth: number, imageHeight: number): CGPoint;
|
|
|
|
declare function VNImageRectForNormalizedRect(normalizedRect: CGRect, imageWidth: number, imageHeight: number): CGRect;
|
|
|
|
declare class VNImageRegistrationRequest extends VNTargetedImageRequest {
|
|
|
|
static alloc(): VNImageRegistrationRequest; // inherited from NSObject
|
|
|
|
static new(): VNImageRegistrationRequest; // inherited from NSObject
|
|
}
|
|
|
|
declare class VNImageRequestHandler extends NSObject {
|
|
|
|
static alloc(): VNImageRequestHandler; // inherited from NSObject
|
|
|
|
static new(): VNImageRequestHandler; // inherited from NSObject
|
|
|
|
constructor(o: { CGImage: any; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { CGImage: any; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { CIImage: CIImage; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { CIImage: CIImage; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { CVPixelBuffer: any; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { CVPixelBuffer: any; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { data: NSData; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { data: NSData; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { URL: NSURL; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { URL: NSURL; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; });
|
|
|
|
initWithCGImageOptions(image: any, options: NSDictionary<string, any>): this;
|
|
|
|
initWithCGImageOrientationOptions(image: any, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>): this;
|
|
|
|
initWithCIImageOptions(image: CIImage, options: NSDictionary<string, any>): this;
|
|
|
|
initWithCIImageOrientationOptions(image: CIImage, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>): this;
|
|
|
|
initWithCVPixelBufferOptions(pixelBuffer: any, options: NSDictionary<string, any>): this;
|
|
|
|
initWithCVPixelBufferOrientationOptions(pixelBuffer: any, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>): this;
|
|
|
|
initWithDataOptions(imageData: NSData, options: NSDictionary<string, any>): this;
|
|
|
|
initWithDataOrientationOptions(imageData: NSData, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>): this;
|
|
|
|
initWithURLOptions(imageURL: NSURL, options: NSDictionary<string, any>): this;
|
|
|
|
initWithURLOrientationOptions(imageURL: NSURL, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>): this;
|
|
|
|
performRequestsError(requests: NSArray<VNRequest> | VNRequest[]): boolean;
|
|
}
|
|
|
|
declare class VNImageTranslationAlignmentObservation extends VNImageAlignmentObservation {
|
|
|
|
static alloc(): VNImageTranslationAlignmentObservation; // inherited from NSObject
|
|
|
|
static new(): VNImageTranslationAlignmentObservation; // inherited from NSObject
|
|
|
|
alignmentTransform: CGAffineTransform;
|
|
}
|
|
|
|
declare function VNNormalizedFaceBoundingBoxPointForLandmarkPoint(faceLandmarkPoint: interop.Reference<number>, faceBoundingBox: CGRect, imageWidth: number, imageHeight: number): CGPoint;
|
|
|
|
declare var VNNormalizedIdentityRect: CGRect;
|
|
|
|
declare function VNNormalizedRectForImageRect(imageRect: CGRect, imageWidth: number, imageHeight: number): CGRect;
|
|
|
|
declare function VNNormalizedRectIsIdentityRect(normalizedRect: CGRect): boolean;
|
|
|
|
declare class VNObservation extends NSObject implements NSCopying, NSSecureCoding, VNRequestRevisionProviding {
|
|
|
|
static alloc(): VNObservation; // inherited from NSObject
|
|
|
|
static new(): VNObservation; // inherited from NSObject
|
|
|
|
readonly confidence: number;
|
|
|
|
readonly uuid: NSUUID;
|
|
|
|
readonly requestRevision: number; // inherited from VNRequestRevisionProviding
|
|
|
|
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
|
|
|
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
|
|
|
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
|
|
|
encodeWithCoder(coder: NSCoder): void;
|
|
|
|
initWithCoder(coder: NSCoder): this;
|
|
}
|
|
|
|
declare class VNPixelBufferObservation extends VNObservation {
|
|
|
|
static alloc(): VNPixelBufferObservation; // inherited from NSObject
|
|
|
|
static new(): VNPixelBufferObservation; // inherited from NSObject
|
|
|
|
readonly featureName: string;
|
|
|
|
readonly pixelBuffer: any;
|
|
}
|
|
|
|
declare class VNRecognizeAnimalsRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNRecognizeAnimalsRequest; // inherited from NSObject
|
|
|
|
static knownAnimalIdentifiersForRevisionError(requestRevision: number): NSArray<string>;
|
|
|
|
static new(): VNRecognizeAnimalsRequest; // inherited from NSObject
|
|
}
|
|
|
|
declare var VNRecognizeAnimalsRequestRevision1: number;
|
|
|
|
declare class VNRecognizeTextRequest extends VNImageBasedRequest implements VNRequestProgressProviding {
|
|
|
|
static alloc(): VNRecognizeTextRequest; // inherited from NSObject
|
|
|
|
static new(): VNRecognizeTextRequest; // inherited from NSObject
|
|
|
|
static supportedRecognitionLanguagesForTextRecognitionLevelRevisionError(recognitionLevel: VNRequestTextRecognitionLevel, requestRevision: number): NSArray<string>;
|
|
|
|
customWords: NSArray<string>;
|
|
|
|
minimumTextHeight: number;
|
|
|
|
recognitionLanguages: NSArray<string>;
|
|
|
|
recognitionLevel: VNRequestTextRecognitionLevel;
|
|
|
|
usesLanguageCorrection: boolean;
|
|
|
|
readonly debugDescription: string; // inherited from NSObjectProtocol
|
|
|
|
readonly description: string; // inherited from NSObjectProtocol
|
|
|
|
readonly hash: number; // inherited from NSObjectProtocol
|
|
|
|
readonly indeterminate: boolean; // inherited from VNRequestProgressProviding
|
|
|
|
readonly isProxy: boolean; // inherited from NSObjectProtocol
|
|
|
|
progressHandler: (p1: VNRequest, p2: number, p3: NSError) => void; // inherited from VNRequestProgressProviding
|
|
|
|
readonly superclass: typeof NSObject; // inherited from NSObjectProtocol
|
|
|
|
readonly // inherited from NSObjectProtocol
|
|
|
|
class(): typeof NSObject;
|
|
|
|
conformsToProtocol(aProtocol: any /* Protocol */): boolean;
|
|
|
|
isEqual(object: any): boolean;
|
|
|
|
isKindOfClass(aClass: typeof NSObject): boolean;
|
|
|
|
isMemberOfClass(aClass: typeof NSObject): boolean;
|
|
|
|
performSelector(aSelector: string): any;
|
|
|
|
performSelectorWithObject(aSelector: string, object: any): any;
|
|
|
|
performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any;
|
|
|
|
respondsToSelector(aSelector: string): boolean;
|
|
|
|
retainCount(): number;
|
|
|
|
self(): this;
|
|
}
|
|
|
|
declare var VNRecognizeTextRequestRevision1: number;
|
|
|
|
declare class VNRecognizedObjectObservation extends VNDetectedObjectObservation {
|
|
|
|
static alloc(): VNRecognizedObjectObservation; // inherited from NSObject
|
|
|
|
static new(): VNRecognizedObjectObservation; // inherited from NSObject
|
|
|
|
static observationWithBoundingBox(boundingBox: CGRect): VNRecognizedObjectObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNRecognizedObjectObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
readonly labels: NSArray<VNClassificationObservation>;
|
|
}
|
|
|
|
declare class VNRecognizedText extends NSObject implements NSCopying, NSSecureCoding {
|
|
|
|
static alloc(): VNRecognizedText; // inherited from NSObject
|
|
|
|
static new(): VNRecognizedText; // inherited from NSObject
|
|
|
|
readonly confidence: number;
|
|
|
|
readonly string: string;
|
|
|
|
static readonly supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
|
|
|
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
|
|
|
boundingBoxForRangeError(range: NSRange): VNRectangleObservation;
|
|
|
|
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
|
|
|
encodeWithCoder(coder: NSCoder): void;
|
|
|
|
initWithCoder(coder: NSCoder): this;
|
|
}
|
|
|
|
declare class VNRecognizedTextObservation extends VNRectangleObservation {
|
|
|
|
static alloc(): VNRecognizedTextObservation; // inherited from NSObject
|
|
|
|
static new(): VNRecognizedTextObservation; // inherited from NSObject
|
|
|
|
static observationWithBoundingBox(boundingBox: CGRect): VNRecognizedTextObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNRecognizedTextObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
static rectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision: number, topLeft: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint, topRight: CGPoint): VNRecognizedTextObservation; // inherited from VNRectangleObservation
|
|
|
|
topCandidates(maxCandidateCount: number): NSArray<VNRecognizedText>;
|
|
}
|
|
|
|
declare class VNRectangleObservation extends VNDetectedObjectObservation {
|
|
|
|
static alloc(): VNRectangleObservation; // inherited from NSObject
|
|
|
|
static new(): VNRectangleObservation; // inherited from NSObject
|
|
|
|
static observationWithBoundingBox(boundingBox: CGRect): VNRectangleObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNRectangleObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
static rectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision: number, topLeft: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint, topRight: CGPoint): VNRectangleObservation;
|
|
|
|
readonly bottomLeft: CGPoint;
|
|
|
|
readonly bottomRight: CGPoint;
|
|
|
|
readonly topLeft: CGPoint;
|
|
|
|
readonly topRight: CGPoint;
|
|
}
|
|
|
|
declare class VNRequest extends NSObject implements NSCopying {
|
|
|
|
static alloc(): VNRequest; // inherited from NSObject
|
|
|
|
static new(): VNRequest; // inherited from NSObject
|
|
|
|
readonly completionHandler: (p1: VNRequest, p2: NSError) => void;
|
|
|
|
preferBackgroundProcessing: boolean;
|
|
|
|
readonly results: NSArray<any>;
|
|
|
|
revision: number;
|
|
|
|
usesCPUOnly: boolean;
|
|
|
|
static readonly currentRevision: number;
|
|
|
|
static readonly defaultRevision: number;
|
|
|
|
static readonly supportedRevisions: NSIndexSet;
|
|
|
|
constructor(o: { completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
cancel(): void;
|
|
|
|
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
|
|
|
initWithCompletionHandler(completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
}
|
|
|
|
declare const enum VNRequestFaceLandmarksConstellation {
|
|
|
|
ConstellationNotDefined = 0,
|
|
|
|
Constellation65Points = 1,
|
|
|
|
Constellation76Points = 2
|
|
}
|
|
|
|
interface VNRequestProgressProviding extends NSObjectProtocol {
|
|
|
|
indeterminate: boolean;
|
|
|
|
progressHandler: (p1: VNRequest, p2: number, p3: NSError) => void;
|
|
}
|
|
declare var VNRequestProgressProviding: {
|
|
|
|
prototype: VNRequestProgressProviding;
|
|
};
|
|
|
|
interface VNRequestRevisionProviding {
|
|
|
|
requestRevision: number;
|
|
}
|
|
declare var VNRequestRevisionProviding: {
|
|
|
|
prototype: VNRequestRevisionProviding;
|
|
};
|
|
|
|
declare var VNRequestRevisionUnspecified: number;
|
|
|
|
declare const enum VNRequestTextRecognitionLevel {
|
|
|
|
Accurate = 0,
|
|
|
|
Fast = 1
|
|
}
|
|
|
|
declare const enum VNRequestTrackingLevel {
|
|
|
|
Accurate = 0,
|
|
|
|
Fast = 1
|
|
}
|
|
|
|
declare class VNSaliencyImageObservation extends VNPixelBufferObservation {
|
|
|
|
static alloc(): VNSaliencyImageObservation; // inherited from NSObject
|
|
|
|
static new(): VNSaliencyImageObservation; // inherited from NSObject
|
|
|
|
readonly salientObjects: NSArray<VNRectangleObservation>;
|
|
}
|
|
|
|
declare class VNSequenceRequestHandler extends NSObject {
|
|
|
|
static alloc(): VNSequenceRequestHandler; // inherited from NSObject
|
|
|
|
static new(): VNSequenceRequestHandler; // inherited from NSObject
|
|
|
|
performRequestsOnCGImageError(requests: NSArray<VNRequest> | VNRequest[], image: any): boolean;
|
|
|
|
performRequestsOnCGImageOrientationError(requests: NSArray<VNRequest> | VNRequest[], image: any, orientation: CGImagePropertyOrientation): boolean;
|
|
|
|
performRequestsOnCIImageError(requests: NSArray<VNRequest> | VNRequest[], image: CIImage): boolean;
|
|
|
|
performRequestsOnCIImageOrientationError(requests: NSArray<VNRequest> | VNRequest[], image: CIImage, orientation: CGImagePropertyOrientation): boolean;
|
|
|
|
performRequestsOnCVPixelBufferError(requests: NSArray<VNRequest> | VNRequest[], pixelBuffer: any): boolean;
|
|
|
|
performRequestsOnCVPixelBufferOrientationError(requests: NSArray<VNRequest> | VNRequest[], pixelBuffer: any, orientation: CGImagePropertyOrientation): boolean;
|
|
|
|
performRequestsOnImageDataError(requests: NSArray<VNRequest> | VNRequest[], imageData: NSData): boolean;
|
|
|
|
performRequestsOnImageDataOrientationError(requests: NSArray<VNRequest> | VNRequest[], imageData: NSData, orientation: CGImagePropertyOrientation): boolean;
|
|
|
|
performRequestsOnImageURLError(requests: NSArray<VNRequest> | VNRequest[], imageURL: NSURL): boolean;
|
|
|
|
performRequestsOnImageURLOrientationError(requests: NSArray<VNRequest> | VNRequest[], imageURL: NSURL, orientation: CGImagePropertyOrientation): boolean;
|
|
}
|
|
|
|
declare class VNTargetedImageRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNTargetedImageRequest; // inherited from NSObject
|
|
|
|
static new(): VNTargetedImageRequest; // inherited from NSObject
|
|
|
|
constructor(o: { targetedCGImage: any; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { targetedCGImage: any; options: NSDictionary<string, any>; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
constructor(o: { targetedCGImage: any; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { targetedCGImage: any; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
constructor(o: { targetedCIImage: CIImage; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { targetedCIImage: CIImage; options: NSDictionary<string, any>; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
constructor(o: { targetedCIImage: CIImage; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { targetedCIImage: CIImage; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
constructor(o: { targetedCVPixelBuffer: any; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { targetedCVPixelBuffer: any; options: NSDictionary<string, any>; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
constructor(o: { targetedCVPixelBuffer: any; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { targetedCVPixelBuffer: any; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
constructor(o: { targetedImageData: NSData; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { targetedImageData: NSData; options: NSDictionary<string, any>; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
constructor(o: { targetedImageData: NSData; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { targetedImageData: NSData; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
constructor(o: { targetedImageURL: NSURL; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { targetedImageURL: NSURL; options: NSDictionary<string, any>; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
constructor(o: { targetedImageURL: NSURL; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; });
|
|
|
|
constructor(o: { targetedImageURL: NSURL; orientation: CGImagePropertyOrientation; options: NSDictionary<string, any>; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
initWithTargetedCGImageOptions(cgImage: any, options: NSDictionary<string, any>): this;
|
|
|
|
initWithTargetedCGImageOptionsCompletionHandler(cgImage: any, options: NSDictionary<string, any>, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
|
|
initWithTargetedCGImageOrientationOptions(cgImage: any, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>): this;
|
|
|
|
initWithTargetedCGImageOrientationOptionsCompletionHandler(cgImage: any, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
|
|
initWithTargetedCIImageOptions(ciImage: CIImage, options: NSDictionary<string, any>): this;
|
|
|
|
initWithTargetedCIImageOptionsCompletionHandler(ciImage: CIImage, options: NSDictionary<string, any>, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
|
|
initWithTargetedCIImageOrientationOptions(ciImage: CIImage, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>): this;
|
|
|
|
initWithTargetedCIImageOrientationOptionsCompletionHandler(ciImage: CIImage, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
|
|
initWithTargetedCVPixelBufferOptions(pixelBuffer: any, options: NSDictionary<string, any>): this;
|
|
|
|
initWithTargetedCVPixelBufferOptionsCompletionHandler(pixelBuffer: any, options: NSDictionary<string, any>, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
|
|
initWithTargetedCVPixelBufferOrientationOptions(pixelBuffer: any, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>): this;
|
|
|
|
initWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(pixelBuffer: any, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
|
|
initWithTargetedImageDataOptions(imageData: NSData, options: NSDictionary<string, any>): this;
|
|
|
|
initWithTargetedImageDataOptionsCompletionHandler(imageData: NSData, options: NSDictionary<string, any>, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
|
|
initWithTargetedImageDataOrientationOptions(imageData: NSData, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>): this;
|
|
|
|
initWithTargetedImageDataOrientationOptionsCompletionHandler(imageData: NSData, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
|
|
initWithTargetedImageURLOptions(imageURL: NSURL, options: NSDictionary<string, any>): this;
|
|
|
|
initWithTargetedImageURLOptionsCompletionHandler(imageURL: NSURL, options: NSDictionary<string, any>, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
|
|
initWithTargetedImageURLOrientationOptions(imageURL: NSURL, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>): this;
|
|
|
|
initWithTargetedImageURLOrientationOptionsCompletionHandler(imageURL: NSURL, orientation: CGImagePropertyOrientation, options: NSDictionary<string, any>, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
}
|
|
|
|
declare class VNTextObservation extends VNRectangleObservation {
|
|
|
|
static alloc(): VNTextObservation; // inherited from NSObject
|
|
|
|
static new(): VNTextObservation; // inherited from NSObject
|
|
|
|
static observationWithBoundingBox(boundingBox: CGRect): VNTextObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
static observationWithRequestRevisionBoundingBox(requestRevision: number, boundingBox: CGRect): VNTextObservation; // inherited from VNDetectedObjectObservation
|
|
|
|
static rectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight(requestRevision: number, topLeft: CGPoint, bottomLeft: CGPoint, bottomRight: CGPoint, topRight: CGPoint): VNTextObservation; // inherited from VNRectangleObservation
|
|
|
|
readonly characterBoxes: NSArray<VNRectangleObservation>;
|
|
}
|
|
|
|
declare class VNTrackObjectRequest extends VNTrackingRequest {
|
|
|
|
static alloc(): VNTrackObjectRequest; // inherited from NSObject
|
|
|
|
static new(): VNTrackObjectRequest; // inherited from NSObject
|
|
|
|
constructor(o: { detectedObjectObservation: VNDetectedObjectObservation; });
|
|
|
|
constructor(o: { detectedObjectObservation: VNDetectedObjectObservation; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
initWithDetectedObjectObservation(observation: VNDetectedObjectObservation): this;
|
|
|
|
initWithDetectedObjectObservationCompletionHandler(observation: VNDetectedObjectObservation, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
}
|
|
|
|
declare var VNTrackObjectRequestRevision1: number;
|
|
|
|
declare var VNTrackObjectRequestRevision2: number;
|
|
|
|
declare class VNTrackRectangleRequest extends VNTrackingRequest {
|
|
|
|
static alloc(): VNTrackRectangleRequest; // inherited from NSObject
|
|
|
|
static new(): VNTrackRectangleRequest; // inherited from NSObject
|
|
|
|
constructor(o: { rectangleObservation: VNRectangleObservation; });
|
|
|
|
constructor(o: { rectangleObservation: VNRectangleObservation; completionHandler: (p1: VNRequest, p2: NSError) => void; });
|
|
|
|
initWithRectangleObservation(observation: VNRectangleObservation): this;
|
|
|
|
initWithRectangleObservationCompletionHandler(observation: VNRectangleObservation, completionHandler: (p1: VNRequest, p2: NSError) => void): this;
|
|
}
|
|
|
|
declare var VNTrackRectangleRequestRevision1: number;
|
|
|
|
declare class VNTrackingRequest extends VNImageBasedRequest {
|
|
|
|
static alloc(): VNTrackingRequest; // inherited from NSObject
|
|
|
|
static new(): VNTrackingRequest; // inherited from NSObject
|
|
|
|
inputObservation: VNDetectedObjectObservation;
|
|
|
|
lastFrame: boolean;
|
|
|
|
trackingLevel: VNRequestTrackingLevel;
|
|
}
|
|
|
|
declare class VNTranslationalImageRegistrationRequest extends VNImageRegistrationRequest {
|
|
|
|
static alloc(): VNTranslationalImageRegistrationRequest; // inherited from NSObject
|
|
|
|
static new(): VNTranslationalImageRegistrationRequest; // inherited from NSObject
|
|
}
|
|
|
|
declare var VNTranslationalImageRegistrationRequestRevision1: number;
|
|
|
|
declare var VNVisionVersionNumber: number;
|