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

AttributeError: 'tuple' object has no attribute 'flatten' #13

Open
EscaticZheng opened this issue Apr 16, 2024 · 2 comments
Open

AttributeError: 'tuple' object has no attribute 'flatten' #13

EscaticZheng opened this issue Apr 16, 2024 · 2 comments

Comments

@EscaticZheng
Copy link

图片无人脸情况下,cv2.dnn.NMSBoxes输出的indices是空的tuple()。
有人脸情况下输出的是array([2])。
所以if len(indices) > 0: 判断这里是无效的,会在上一句直接报错。烦请修改一下

@EscaticZheng
Copy link
Author

在main.py里122行

@hpc203
Copy link
Owner

hpc203 commented Apr 16, 2024 via email

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