GameplayAnalyser.py 文件源码

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

项目:TableSoccerCV 作者: StudentCV 项目源码 文件源码
def heatmap(self, get_ball_var):

        heat_values = get_ball_var('ball_position_history')

        # Generate some test data
        x = np.random.randn(8873)
        y = np.random.randn(8873)

        heatmap, xedges, yedges = np.histogram2d(x, y, bins=50)
        extent = [xedges[0], xedges[-1], yedges[0], yedges[-1]]

        # x = np.random.randn(100000)
        y = np.random.randn(100000)

        #  print(y)

        # plt.hist2d(HeatValues[0],HeatValues[1],bins=100);

        # plt.clf()
        # plt.imshow(heatmap, extent=extent)
        # plt.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号