MLKitVision Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Classes
The following classes are available globally.
-
An image used in on-device machine learning.
Declaration
Swift
class
MLImage
:
NSObject
-
A three-dimensional point in an image. The point’s coordinates have the same scale as the
original image.
-
An image or image buffer used for vision detection.
-
A point in an image. The point’s coordinates have the same scale as the original image.
Declaration
Swift
class
VisionPoint
:
NSObject
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eMLImage\u003c/code\u003e is a class specifically designed for on-device machine learning tasks.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVision3DPoint\u003c/code\u003e and \u003ccode\u003eVisionPoint\u003c/code\u003e represent points in an image, with \u003ccode\u003eVision3DPoint\u003c/code\u003e offering three-dimensional coordinates.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVisionImage\u003c/code\u003e is a versatile class that can handle both images and image buffers, serving as input for vision detection processes.\u003c/p\u003e\n"]]],["The core content defines four Swift classes for image processing and machine learning. `MLImage` represents an image for on-device machine learning. `Vision3DPoint` defines a three-dimensional point within an image, inheriting from `VisionPoint`. `VisionImage` represents an image or buffer used for vision detection. `VisionPoint` is a two-dimensional point within an image, where all coordinates share the original image's scale. Each class includes a Swift declaration.\n"],null,["# MLKitVision Framework Reference\n\nClasses\n=======\n\nThe following classes are available globally.\n- `\n ``\n ``\n `\n\n ### [MLImage](/ml-kit/reference/swift/mlkitvision/api/reference/Classes/MLImage)\n\n `\n ` \n An image used in on-device machine learning. \n\n #### Declaration\n\n Swift \n\n class MLImage : NSObject\n\n- `\n ``\n ``\n `\n\n ### [Vision3DPoint](/ml-kit/reference/swift/mlkitvision/api/reference/Classes/Vision3DPoint)\n\n `\n ` \n A three-dimensional point in an image. The point's coordinates have the same scale as the\n original image. \n\n #### Declaration\n\n Swift \n\n class Vision3DPoint : /ml-kit/reference/swift/mlkitvision/api/reference/Classes/VisionPoint\n\n- `\n ``\n ``\n `\n\n ### [VisionImage](/ml-kit/reference/swift/mlkitvision/api/reference/Classes/VisionImage)\n\n `\n ` \n An image or image buffer used for vision detection. \n\n #### Declaration\n\n Swift \n\n class VisionImage : NSObject, /ml-kit/reference/swift/mlkitvision/api/reference/Protocols#/c:objc(pl)MLKCompatibleImage\n\n- `\n ``\n ``\n `\n\n ### [VisionPoint](/ml-kit/reference/swift/mlkitvision/api/reference/Classes/VisionPoint)\n\n `\n ` \n A point in an image. The point's coordinates have the same scale as the original image. \n\n #### Declaration\n\n Swift \n\n class VisionPoint : NSObject"]]