π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
blur
Manav Rathib9a07e536ca5
diff --git a/web/apps/photos/src/services/face/f-index.ts b/web/apps/photos/src/services/face/f-index.tsindex 5f1039c2f9..f219cc7f4e 100644--- a/web/apps/photos/src/services/face/f-index.ts+++ b/web/apps/photos/src/services/face/f-index.ts@@ -111,7 +111,7 @@ const indexFaces_ = async (const { width, height } = imageBitmap;const imageBox = { width, height };const mlFile: MlFileData = {- fileID: fileID,+ fileID,width,height,faceEmbedding: {@@ -129,6 +129,7 @@ const indexFaces_ = async (faceID: makeFaceID(fileID, box, imageBox),detection: { box, landmarks },score,+ blur: 0,}),);mlFile.faceEmbedding.faces = detectedFaces;@@ -150,13 +151,8 @@ const indexFaces_ = async (alignments,);- const blurValues = detectBlur(- alignedFacesData,- mlFile.faceEmbedding.faces,- );- mlFile.faceEmbedding.faces.forEach(- (f, i) => (f.blurValue = blurValues[i]),- );+ const blurs = detectBlur(alignedFacesData, mlFile.faceEmbedding.faces);+ mlFile.faceEmbedding.faces.forEach((f, i) => (f.blur = blurs[i]));const embeddings = await computeEmbeddings(alignedFacesData);mlFile.faceEmbedding.faces.forEach(diff --git a/web/apps/photos/src/services/face/remote.ts b/web/apps/photos/src/services/face/remote.tsindex 904eb8a50e..c6b3c84491 100644--- a/web/apps/photos/src/services/face/remote.ts+++ b/web/apps/photos/src/services/face/remote.ts@@ -121,7 +121,7 @@ function LocalFileMlDataToServerFileMl(const faceID = face.faceID;const embedding = face.embedding;const score = face.score;- const blur = face.blurValue;+ const blur = face.blur;const detection: FaceDetection = face.detection;const box = detection.box;const landmarks = detection.landmarks;diff --git a/web/apps/photos/src/services/face/types-old.ts b/web/apps/photos/src/services/face/types-old.tsindex 079e7285f4..086fd6dda8 100644--- a/web/apps/photos/src/services/face/types-old.ts+++ b/web/apps/photos/src/services/face/types-old.ts@@ -10,7 +10,7 @@ export interface Face {faceID: string;detection: FaceDetection;score: number;- blurValue?: number;+ blur: number;embedding?: Float32Array;}