mirror of
https://github.com/status-im/react-native-camera.git
synced 2026-08-31 13:41:08 +00:00
fix(textrecognition): height of text block
This commit is contained in:
@@ -104,7 +104,7 @@ public class TextRecognizedEvent extends Event<TextRecognizedEvent> {
|
||||
|
||||
WritableMap size = Arguments.createMap();
|
||||
size.putDouble("width", text.getBoundingBox().width() * this.mScaleX);
|
||||
size.putDouble("height", text.getBoundingBox().width() * this.mScaleY);
|
||||
size.putDouble("height", text.getBoundingBox().height() * this.mScaleY);
|
||||
|
||||
WritableMap bounds = Arguments.createMap();
|
||||
bounds.putMap("origin", origin);
|
||||
|
||||
Reference in New Issue
Block a user