test.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:yolo_tensorflow 作者: hizhangp 项目源码 文件源码
def image_detector(self, imname, wait=0):
        detect_timer = Timer()
        image = cv2.imread(imname)

        detect_timer.tic()
        result = self.detect(image)
        detect_timer.toc()
        print('Average detecting time: {:.3f}s'.format(detect_timer.average_time))

        self.draw_result(image, result)
        cv2.imshow('Image', image)
        cv2.waitKey(wait)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号