This PR adds the cornerPoints attribute which is present in TextBlock, TextLine, and TextElement.
cornerPoints is useful if you want to draw accurate highlights over the block/line/element that follows the perspective in which the photo is taken.
Built the example app, successfully compiled and ran the app on both iOS and Android, and logged the resulting result and saw that the cornerPoints attribute was indeed present in each block/line/element.
What's New
This PR adds the
cornerPoints
attribute which is present inTextBlock
,TextLine
, andTextElement
.cornerPoints
is useful if you want to draw accurate highlights over the block/line/element that follows the perspective in which the photo is taken.Reference Documentation
iOS: https://developers.google.com/ml-kit/reference/ios/mlkittextrecognitioncommon/api/reference/Classes/MLKTextBlock#/c:objc(cs)MLKTextBlock(py)cornerPoints Android: https://developers.google.com/android/reference/com/google/mlkit/vision/text/Text.TextBlock#getCornerPoints()
Testing
Built the example app, successfully compiled and ran the app on both iOS and Android, and logged the resulting result and saw that the cornerPoints attribute was indeed present in each block/line/element.