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

模型后处理部分 #80

Open
omaiyiwa opened this issue May 19, 2023 · 0 comments
Open

模型后处理部分 #80

omaiyiwa opened this issue May 19, 2023 · 0 comments

Comments

@omaiyiwa
Copy link

该怎么转换后的yolov5模型,调用摄像头,检测模型中的某个类别,在屏幕上只画这个类别的框,保存检测图片
目前我是这样做,能只输出人信息,但是屏幕会画其它框。
import time
from ax import pipeline

pipeline.load([
'libsample_vin_ivps_joint_vo_sipy.so',
'-p', '/home/config/yolov5s.json',
'-c', '2',
])

while pipeline.work():
time.sleep(0.001)
tmp = pipeline.result()

print(tmp)

if tmp and tmp['nObjSize']:
    for i in tmp['mObjects']:
        if i['label'] == 0:
            print(i)
        else:
            pass
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

1 participant