vid_ocr.py 文件源码

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

项目:F1-Telemetry 作者: MrPranz 项目源码 文件源码
def throttle_ocr(image,coords):
    img = image[coords[1]:coords[3],coords[0]:coords[2]]
    # lower and upper ranges for green pixels, format BGR
    lower = np.array([0,110,0])
    upper = np.array([90,200,90])
    res = cv2.inRange(img,lower,upper)
    count = np.count_nonzero(res)
    return count
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号