Skip to content

Can't parse 'center'. Sequence item with index 0 has a wrong type #2

@hoanhvvinsofts

Description

@hoanhvvinsofts

File "draft.py", line 8, in
fr_object1.train_model(folder)
File "C:\Users\Hoan\anaconda3\envs\timekeeping\lib\site-packages\FaceReco\FaceReco.py", line 84, in train_model
faceAligned = self.faceDetection(os.path.join(trainpath,im))
File "C:\Users\Hoan\anaconda3\envs\timekeeping\lib\site-packages\FaceReco\FaceReco.py", line 55, in faceDetection
faceAligned = self.fa.align(img, gray, dlib.rectangle(x1,y1,x2,y2))
File "C:\Users\Hoan\anaconda3\envs\timekeeping\lib\site-packages\imutils\face_utils\facealigner.py", line 67, in align
M = cv2.getRotationMatrix2D(eyesCenter, angle, scale)
TypeError: Can't parse 'center'. Sequence item with index 0 has a wrong type

Can you fix this please

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions