Skip to content

boxes, _ = generateBoundingBox(out1[0,:,:,1].copy(), out0[0,:,:,:].copy(), scale, threshold[0]) TypeError: 'float' object is not subscriptable #5

@chenyuqing

Description

@chenyuqing

Traceback (most recent call last):
File "/home/honghaier1688/workspaces/face_project/04_facematch/face_match_via_camera.py", line 81, in
distance = compare2face(img1, rgb_small_frame)
File "/home/honghaier1688/workspaces/face_project/04_facematch/face_match_via_camera.py", line 54, in compare2face
face1 = getFace(img1)
File "/home/honghaier1688/workspaces/face_project/04_facematch/face_match_via_camera.py", line 32, in getFace
bounding_boxes, _ = detect_face.detect_face(img, minsize, pnet, rnet, onet, threshold, factor)
File "/home/honghaier1688/workspaces/face_project/04_facematch/align/detect_face.py", line 332, in detect_face
boxes, _ = generateBoundingBox(out1[0,:,:,1].copy(), out0[0,:,:,:].copy(), scale, threshold[0])
TypeError: 'float' object is not subscriptable

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