vision.py 文件源码

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

项目:Vision2016 作者: Team3309 项目源码 文件源码
def target_distance(target):
    camera_fov_vert = 41.41
    camera_pitch = 40
    # units in inches
    target_height = 83
    camera_height = 9
    # target[0][1] is [1,-1] y coord from top-bottom
    y = target[0][1]
    return (target_height - camera_height) / math.tan(math.radians((y * camera_fov_vert / 2) + camera_pitch))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号