他的回复:
https://github.com/huaweicloud/HiLens-Lab/blob/master/HiLens_framework/libhilens/BlockingQueue.hhttps://github.com/huaweicloud/HiLens-Lab/blob/master/HiLens_framework/libhilens/VideoCaptureEx.cppBatchBindAsyncBatchBindAsync(m_video_captures,VideoCaptureEx::ASYNC_THREAD,&Worker::ReadImgCb,&worker[vcapexindex]);参考一下这个类 , 这个就是开2个线程, 交替的去做整个处理的流程, 这样能把D310跑满。 目前确实有你说的 thread=1 会性能差一点点。可以8个线程, 用2个一样的模型 ACL 是D310新的推理接口, 但是kit目前还不支持。 这个Graph的是D310以前的matrix接口,调试比较麻烦, 你现在用的HiLensFramework的API对他们进行了封装, 这样你调用起来就比较方便。https://www.huaweicloud.com/ascend/doc/Atlas%20200%20DK/1.31.0.0(beta)/zh/zh-cn_topic_0197849520.html