MLKitTextRecognitionCommon 프레임워크 참조
TextBlock
class TextBlock : NSObject
텍스트 줄 배열로 구성된 이미지에서 인식된 텍스트 블록입니다.
-
선언
Swift
var text: String { get }
-
선언
Swift
var lines: [MLKTextLine] { get }
-
기본 좌표 공간의 이미지를 기준으로 텍스트 블록을 포함하는 직사각형입니다.
선언
Swift
var frame: CGRect { get }
-
텍스트 블록에서 인식된 언어의 배열. 언어가 인식되지 않은 경우 배열은
비어 있습니다.
선언
Swift
var recognizedLanguages: [MLKTextRecognizedLanguage] { get }
-
왼쪽 상단 지점부터 시계 방향으로 텍스트 블록의 네 모서리 지점
상대적 위치를 나타냅니다. NSValue
객체는 CGPoint
입니다.
선언
Swift
var cornerPoints: [NSValue] { get }
-
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-22(UTC)
[null,null,["최종 업데이트: 2024-08-22(UTC)"],[[["`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"]]