MLKitTextRecognition Framework Reference
Protocols
The following protocols are available globally.
-
A protocol for indicating images that are compatible with ML Kit.
Don’t implement this protocol yourself; instead, use MLImage
to create an
MLKitCompatibleImage
.
Declaration
Swift
protocol MLKitCompatibleImage : NSObjectProtocol
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.
[null,null,["Last updated 2024-07-10 UTC."],[[["The `MLKitCompatibleImage` protocol is used to indicate images that are compatible with ML Kit."],["Users should not directly implement this protocol but instead utilize `MLImage` to create an `MLKitCompatibleImage` instance."]]],["The core content defines the `MLKitCompatibleImage` protocol, which signifies images compatible with ML Kit. Users are instructed not to implement this protocol directly. Instead, they should utilize `MLImage` to create an `MLKitCompatibleImage`. The protocol is available globally and is declared using Swift's `protocol` keyword, inheriting from `NSObjectProtocol`.\n"]]