MLKitTextRecognitionCommon फ़्रेमवर्क रेफ़रंस के बारे में जानकारी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
TextElement
class TextElement : NSObject
किसी इमेज में पहचाना गया टेक्स्ट एलिमेंट. टेक्स्ट एलिमेंट, टेक्स्ट में स्पेस से अलग किया गया सेगमेंट होता है
(उदाहरण के लिए, ज़्यादातर लैटिन-स्क्रिप्ट भाषाओं का कोई शब्द).
-
टेक्स्ट एलिमेंट का स्ट्रिंग दिखना, जिसकी पहचान की गई.
एलान
Swift
var text: String { get }
-
वह रेक्टैंगल जिसमें डिफ़ॉल्ट कोऑर्डिनेट में मौजूद इमेज से मिलता-जुलता टेक्स्ट एलिमेंट शामिल है
स्पेस.
एलान
Swift
var frame: CGRect { get }
-
टेक्स्ट एलिमेंट में पहचानी गई भाषाओं का कलेक्शन. अगर किसी भाषा की पहचान नहीं की जाती, तो कलेक्शन
खाली है.
एलान
Swift
var recognizedLanguages: [MLKTextRecognizedLanguage] { get }
-
टेक्स्ट एलिमेंट के चार कोने वाले पॉइंट, जो घड़ी की सुई की दिशा में सबसे ऊपर बाएं पॉइंट से शुरू होते हैं
डिफ़ॉल्ट कोऑर्डिनेट स्पेस में इमेज से मिलता-जुलता है. NSValue
ऑब्जेक्ट, CGPoint
होते हैं.
एलान
Swift
var cornerPoints: [NSValue] { get }
-
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]