Last active
January 5, 2021 08:52
-
-
Save yektasarioglu/bab75b1625afdaa49b5c29cdeae24909 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var resultAction: ((SparseArray<MLText.Block?>) -> Unit)? = null | |
override fun transactResult(results: MLAnalyzer.Result<MLText.Block?>) { | |
val items = results.analyseList | |
// Determine detection result processing as required. Note that only the detection results are processed. | |
// Other detection-related APIs provided by ML Kit cannot be called. | |
resultAction?.invoke(items) | |
resultAction = null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment