Skip to content

Commit

Permalink
Revert "sepinf-inc#2253: Use Java to convert double array to numpy ar…
Browse files Browse the repository at this point in the history
…ray"

This reverts commit 505a635.
  • Loading branch information
aberenguel committed Jun 28, 2024
1 parent 505a635 commit 5cbc495
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions iped-app/resources/scripts/tasks/FaceRecognitionTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ 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 @@ -289,7 +292,8 @@ def process(self, item):
for j in range(128):
line = proc.stdout.readline()
list.append(float(line))
face_encodings.append(javaArray.getNDArray(list))
np_array = np.array(list)
face_encodings.append(np_array)

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

Expand Down

0 comments on commit 5cbc495

Please sign in to comment.