MLKitTextRecognitionCommon フレームワーク リファレンス
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
TextElement
class TextElement : NSObject
画像内で認識されるテキスト要素。テキスト要素は、スペースで区切られたテキスト セグメントです
行(ラテン文字のほとんどの言語では 1 つの単語など)を返します。
-
宣言
Swift
var text: String { get }
-
テキスト要素を含む、デフォルトの座標の画像に関連する長方形
選択します。
宣言
Swift
var frame: CGRect { get }
-
テキスト要素内で認識される言語の配列。言語が認識されなかった場合、配列は
は空です。
宣言
Swift
var recognizedLanguages: [MLKTextRecognizedLanguage] { get }
-
テキスト要素の四隅の点を、左上の点から時計回りの順に並べます。
デフォルトの座標空間で画像を基準とします。NSValue
オブジェクトは CGPoint
です。
宣言
Swift
var cornerPoints: [NSValue] { get }
-
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-08-22 UTC。"],[[["`MLKTextElement` represents a word or space-separated text segment recognized within an image."],["It provides access to the text content, its bounding rectangle (`frame`), and recognized languages."],["Corner points of the element's location in the image are also available, along with a string representation of the recognized text."],["Direct initialization of `MLKTextElement` is not allowed; it's obtained through text recognition results."]]],["A `TextElement` represents a recognized word in an image. It provides the `text` as a string, its `frame` (bounding rectangle), and an array of `recognizedLanguages`. It also offers `cornerPoints`, detailing the four corners of the element's position. The text's properties are provided as get-only. It is not initializable with `init`, so you will have to retrieve them from an existing recognized text object.\n"]]