Skip to content

Commit

Permalink
sepinf-inc#2253: Use Java to convert double array to numpy array
Browse files Browse the repository at this point in the history
  • Loading branch information
aberenguel committed Jun 28, 2024
1 parent d436a74 commit 505a635
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions iped-app/resources/scripts/tasks/FaceRecognitionTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ def init(self, configuration):
terminate = fp.terminate
imgError = fp.imgError
ping = fp.ping

global np
import numpy as np


# check if was called from gui the first time
global maxProcesses, firstInstance
# load configuration properties
Expand Down Expand Up @@ -292,8 +289,7 @@ def process(self, item):
for j in range(128):
line = proc.stdout.readline()
list.append(float(line))
np_array = np.array(list)
face_encodings.append(np_array)
face_encodings.append(javaArray.getNDArray(list))

#print('encodings ' + str(face_encodings))

Expand Down

0 comments on commit 505a635

Please sign in to comment.