MLKitTextRecognitionCommon フレームワーク リファレンス
TextRecognizedLanguage
class TextRecognizedLanguage : NSObject
テキスト認識で検出された言語。
-
ISO 639-1 の 2 文字の言語コードが定義されている場合はそのコード(「en」など)、または ISO 639-2
3 文字のコード(定義されている場合は 3 文字のコード、または Google 固有のコード)が使用されます。
宣言
Swift
var languageCode: String? { get }
-
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[null,null,["最終更新日 2024-08-22 UTC。"],[[["`TextRecognizedLanguage` objects store the detected language from text recognition."],["The `languageCode` property provides the language code in ISO 639-1 (two-letter), ISO 639-2 (three-letter), or a Google-specific code."],["Initializing `TextRecognizedLanguage` directly is not allowed."]]],["The `TextRecognizedLanguage` class detects the language from text recognition. It provides a read-only property, `languageCode`, which returns the detected language's code as a string. The code follows ISO 639-1 (two-letter), ISO 639-2 (three-letter), or a Google-specific code if no ISO code is available. The initializer `init` is unavailable for this class.\n"]]