googlesamples / mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS
Apache License 2.0
3.59k stars 2.94k forks source link

[Feature request] Add Confidence Score and Angle in Line/Element/Symbol for IOS implementation #678

Open EduardoDiNizo opened 1 year ago

EduardoDiNizo commented 1 year ago

https://developers.google.com/android/reference/com/google/mlkit/vision/text/Text.Element https://developers.google.com/ml-kit/reference/ios/mlkittextrecognitioncommon/api/reference/Classes/MLKTextLine https://developers.google.com/ml-kit/reference/ios/mlkittextrecognitioncommon/api/reference/Classes/MLKTextElement

Will these features be added to the ml kit - text recognition library for IOS?

I need to get OCR confidence score in the reads in IOS.

for (final element in line.elements) {
          print(' element Text: ${element.text}');
          print(' element Rect: ${element.boundingBox.toString()}');
          print(' element CornerPoints: ${element.cornerPoints.toString()}');
          print(' element confidence: ${element.confidence.toString()}');
}

java example - https://github.com/googlesamples/mlkit/blob/master/android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/java/textdetector/TextGraphic.java

EduardoDiNizo commented 1 year ago

@stunningdimension22 , any news?