a7medev / react-native-ml-kit

React Native On-Device Machine Learning w/ Google ML Kit
MIT License
396 stars 58 forks source link

Add rotation degree and confidence #40

Open DeluxeOwl opened 1 year ago

DeluxeOwl commented 1 year ago

It seems that for each line, MLKit provides a rotation degree and confidence score, is it possible to add this to RN?

https://developers.google.com/ml-kit/vision/text-recognition/v2

Example for line 0:

Text Wege der
Frame (434, 678 - 670, 749)
Corner Points (434, 705), (665, 678), (670, 722), (439, 749)
Recognized Language Code de
Confidence Score 0.8766741
Rotation Degree -6.6116457
Elements (2 elements)
FoundersApproach commented 5 months ago

We also are looking for the confidence score to be available in this library. We noticed it's missing when we switched from native Android to React Native