From c1411e93b9a1e6b357b8f547c733f6709dfdf7fa Mon Sep 17 00:00:00 2001 From: Google ML Kit Date: Wed, 26 Apr 2023 10:33:34 -0700 Subject: [PATCH] List of included changes: - Add symbol example in kotlin implementation. PiperOrigin-RevId: 527307216 Change-Id: Ia6befe79150510a51ddfb19bc04e5e86c748d410 --- .../mlkit/vision/demo/kotlin/textdetector/TextGraphic.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/textdetector/TextGraphic.kt b/android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/textdetector/TextGraphic.kt index f334ff2937..42fb3c0f3f 100644 --- a/android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/textdetector/TextGraphic.kt +++ b/android/vision-quickstart/app/src/main/java/com/google/mlkit/vision/demo/kotlin/textdetector/TextGraphic.kt @@ -95,6 +95,13 @@ constructor( Log.d(TAG, "Element language is: " + element.recognizedLanguage) Log.d(TAG, "Element confidence is: " + element.confidence) Log.d(TAG, "Element angle is: " + element.angle) + for (symbol in element.symbols) { + Log.d(TAG, "Symbol text is: " + symbol.text) + Log.d(TAG, "Symbol boundingbox is: " + symbol.boundingBox) + Log.d(TAG, "Symbol cornerpoint is: " + Arrays.toString(symbol.cornerPoints)) + Log.d(TAG, "Symbol confidence is: " + symbol.confidence) + Log.d(TAG, "Symbol angle is: " + symbol.angle) + } } } }