Matching working really well for Germany photos

Signed-off-by: James P. Ketrenos <james.p.ketrenos@intel.com>
This commit is contained in:
James P. Ketrenos 2023-01-20 19:30:19 -08:00
parent e54fc968e6
commit 99db385686
3 changed files with 5 additions and 4 deletions

View File

@ -124,7 +124,8 @@ print('Loading faces from database')
faces = load_faces(db_path = db_path)
minPts = max(len(faces) / 500, 5)
eps = 0.185
eps = 0.25
#eps = 0.185
print(f'Scanning {len(faces)} faces for clusters (minPts: {minPts}, eps: {eps})')
identities = DBSCAN(faces, minPts = minPts, eps = eps)
print(f'{len(identities)} clusters grouped')

View File

@ -99,7 +99,7 @@ def load_faces(db_path ):
FROM faces
INNER JOIN photos ON (photos.duplicate == 0 OR photos.duplicate IS NULL)
JOIN facedescriptors ON (faces.descriptorId=facedescriptors.id)
WHERE faces.identityId IS null AND faces.faceConfidence>0.99
WHERE faces.identityId IS null
AND faces.photoId=photos.id
''')
for row in res.fetchall():

View File

@ -91,7 +91,7 @@ app.use(function(req, res, next){
});
});
let dbPath = { ...config.get("sessions.db") };
let dbPath = config.get("sessions.db");
let configPath = process.env.NODE_CONFIG_DIR;
if (configPath) {
configPath = configPath.replace(/config/, '');