مرجع چارچوب مشترک MLKitTextRecognition
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
TextBlock
class TextBlock : NSObject
یک بلوک متنی که در تصویری که از آرایه ای از خطوط متن تشکیل شده است، شناسایی می شود.
نمایش رشته ای از بلوک متنی که شناسایی شد.
اعلامیه
سویفت
var text: String { get }
آرایه ای از خطوط متنی که بلوک را تشکیل می دهند.
اعلامیه
سویفت
var lines: [MLKTextLine] { get }
مستطیلی که حاوی بلوک متنی نسبت به تصویر در فضای مختصات پیش فرض است.
اعلامیه
سویفت
var frame: CGRect { get }
آرایه ای از زبان های شناخته شده در بلوک متن. اگر هیچ زبانی شناسایی نشد، آرایه خالی است.
اعلامیه
سویفت
var recognizedLanguages: [MLKTextRecognizedLanguage] { get }
چهار نقطه گوشه بلوک متن به ترتیب در جهت عقربههای ساعت از نقطه بالا سمت چپ نسبت به تصویر در فضای مختصات پیشفرض شروع میشود. اشیاء NSValue
CGPoint
s هستند.
اعلامیه
سویفت
var cornerPoints: [NSValue] { get }
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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"]],["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["`MLKTextBlock` represents a recognized text block in an image, containing an array of text lines."],["It provides access to the recognized text, individual text lines, and the block's bounding box within the image."],["Information about recognized languages and corner points of the text block are also available."],["It's worth noting that the `MLKTextBlock` instance itself is not directly instantiable, likely created internally during text recognition."]]],["A `TextBlock` object represents recognized text in an image. It provides the `text` (string representation), `lines` (array of `TextLine` objects), and `frame` (rectangle coordinates). It also details the `recognizedLanguages` and `cornerPoints` (four corners as `CGPoint`s). The `TextBlock` object cannot be initialized directly and is derived from image processing. The object contains the full recognized text of the block.\n"]]