Skip to content

Commit

Permalink
#1475 Remove debug messages;
Browse files Browse the repository at this point in the history
  • Loading branch information
hauck-jvsh committed Jan 17, 2023
1 parent f6d1162 commit 2d2df9b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions iped-app/resources/scripts/tasks/FaceRecognitionTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def finish(self):
detectTime = -1
featureTime = -1
global clusterExecuted,maxClusterDist
print("Dist",maxClusterDist)

with clusterLock:
if clusterExecuted==1 or maxClusterDist==0:
return
Expand All @@ -225,23 +225,18 @@ def finish(self):

if len(encodings)==0:
return
logger.info("[FaceRecognitionTask] Time(s) to extract faces ",str(time.time()-groupTime))
#print(encodings)
#print("Number of faces",len(ids))
logger.info("[FaceRecognitionTask] Time(s) to extract "+str(len(ids))+ " faces ",str(time.time()-groupTime))
clt = DBSCAN(metric="euclidean",n_jobs=-1,eps=maxClusterDist)
clt.fit(encodings)
clusters={}
#print("labels",clt.labels_)
#print("Number of labels",len(clt.labels_))


for i in range(len(clt.labels_)):
if clt.labels_[i]<0:#-1 is an unknown cluster
continue
try:
clusters[clt.labels_[i]]["ids"].append(ids[i])
except:
clusters[clt.labels_[i]]={"ids":[ids[i]],"name":"Face_"+str(clt.labels_[i])}
#print(clusters)
tot=0
for c in clusters:
tot+=1
Expand Down

0 comments on commit 2d2df9b

Please sign in to comment.