Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于人脸考勤机 #33

Open
llechee opened this issue Jun 11, 2023 · 1 comment
Open

关于人脸考勤机 #33

llechee opened this issue Jun 11, 2023 · 1 comment

Comments

@llechee
Copy link

llechee commented Jun 11, 2023

识别时出现错误

Traceback (most recent call last):
File "demo_full.py", line 479, in
faceRecognize(detector=args.detector,threshold=args.threshold, write_video = args.record,resize_w=args.w,resize_h=args.h)
File "demo_full.py", line 422, in faceRecognize
frame = updateRightInfo(frame,face_info_list,face_img_list)
File "demo_full.py", line 200, in updateRightInfo
frame[(left_y+offset_y_value):(left_y+resize_w+ offset_y_value), -(left_x+resize_w):-left_x] = face_img
ValueError: could not broadcast input array from shape (80,80,3) into shape (0,80,3)

刷新时大小不一致,请问怎么解决呢

@enpeizhao
Copy link
Owner

应该是截图时人脸靠近边缘了,所以越界大小不一,要加一个判断

@enpeizhao enpeizhao reopened this Jun 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants