GMVTextLineFeature Class
Stay organized with collections
Save and categorize content based on your preferences.
The Mobile Vision API is deprecated and no longer maintained.
It is now a part of ML Kit which includes all new on-device ML
capabilities. If you use Mobile Vision in your app today, follow the
migration guide .
Describes a single line of detected text.
Inherits GMVFeature .
NSString * value
Text contained in this text line, in string form. More...
NSString * language
The prevailing language in the text line. More...
NSArray< NSValue * > * cornerPoints
The four corner points of the text line, in clockwise order starting with the top left relative to the detected image in the view coordinate system. More...
NSArray< GMVTextElementFeature * > * elements
Text elements in this line. More...
CGRect bounds
The rectangle that holds the discovered feature relative to the detected image in the view coordinate system. More...
NSString * type
The type of feature that was discovered. More...
BOOL hasTrackingID
Indicates whether the object has a tracking ID. More...
NSUInteger trackingID
The tracking identifier of the feature. More...
- (NSString* const) GMVFeatureTypeFace
inherited
The discovered feature is a person’s face. Use the GMVFaceFeature class to get more information about the detected feature.
- (NSString* const) GMVFeatureTypeBarcode
inherited
The discovered feature is a barcode. Use the GMVBarcodeFeature class to get more information about the detected feature.
- (NSString* const) GMVFeatureTypeTextBlock
inherited
The discovered feature is a text block. Use the GMVTextBlockFeature class to get more information about the detected feature.
- (NSString* const) GMVFeatureTypeTextLine
inherited
The discovered feature is a text line. Use the GMVTextLineFeature class to get more information about the detected feature.
- (NSString* const) GMVFeatureTypeTextElement
inherited
The discovered feature is a text element. Use the GMVTextElementFeature class to get more information about the detected feature.
Text contained in this text line, in string form.
The prevailing language in the text line.
The format is the ISO 639-1 two-letter language code if that is defined (e.g. "en"), or else the ISO 639-2 three-letter code if that is defined.
- (NSArray<NSValue *>*) cornerPoints
read atomic copy
The four corner points of the text line, in clockwise order starting with the top left relative to the detected image in the view coordinate system.
These are CGPoints boxed in NSValues.
Text elements in this line.
read atomic assign inherited
The rectangle that holds the discovered feature relative to the detected image in the view coordinate system.
The type of feature that was discovered.
read atomic assign inherited
Indicates whether the object has a tracking ID.
- (NSUInteger) trackingID
read atomic assign inherited
The tracking identifier of the feature.
This ID is not associated with a specific feature but identifies the same line among consecutive video frames.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-06-17 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]