π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Move FaceBoxImage to face_util
laurenspriem6235f7ee78d1
diff --git a/mobile/lib/face/model/box.dart b/mobile/lib/face/model/box.dartindex dafe3d8384..73d7dea388 100644--- a/mobile/lib/face/model/box.dart+++ b/mobile/lib/face/model/box.dart@@ -41,23 +41,3 @@ class FaceBox {'height': height,};}--/// Bounding box of a face.-///-/// [xMin] and [yMin] are the coordinates of the top left corner of the box, and-/// [width] and [height] are the width and height of the box.-///-/// One unit is equal to one pixel in the original image.-class FaceBoxImage {- final int xMin;- final int yMin;- final int width;- final int height;-- FaceBoxImage({- required this.xMin,- required this.yMin,- required this.width,- required this.height,- });-}diff --git a/mobile/lib/utils/face/face_util.dart b/mobile/lib/utils/face/face_util.dartindex b417657915..17b1986679 100644--- a/mobile/lib/utils/face/face_util.dart+++ b/mobile/lib/utils/face/face_util.dart@@ -7,6 +7,26 @@ import "package:image/image.dart" as img;import "package:logging/logging.dart";import "package:photos/face/model/box.dart";+/// Bounding box of a face.+///+/// [xMin] and [yMin] are the coordinates of the top left corner of the box, and+/// [width] and [height] are the width and height of the box.+///+/// One unit is equal to one pixel in the original image.+class FaceBoxImage {+ final int xMin;+ final int yMin;+ final int width;+ final int height;++ FaceBoxImage({+ required this.xMin,+ required this.yMin,+ required this.width,+ required this.height,+ });+}+final _logger = Logger("FaceUtil");final _computer = Computer.shared();const _faceImageBufferFactor = 0.2;