v6 Implement ML Kit Vision (#2343)

This commit is contained in:
Mike Diarmid
2019-07-12 14:05:29 +01:00
committed by GitHub
parent 2626f5ffef
commit a966c20be7
77 changed files with 6256 additions and 39 deletions

View File

@@ -51,8 +51,8 @@ public class SharedUtils {
private static final String REACT_NATIVE_CORE_PACKAGE = "com.facebook.react.bridge";
public static int[] rectToIntArray(@Nullable Rect rect) {
if (rect == null) return new int[]{};
return new int[]{rect.top, rect.left, rect.bottom, rect.right};
if (rect == null || rect.isEmpty()) return new int[]{};
return new int[]{rect.left, rect.top, rect.right, rect.bottom};
}
public static int[] pointToIntArray(@Nullable Point point) {