Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

密度图 #7

Open
jituoo opened this issue Sep 11, 2018 · 8 comments
Open

密度图 #7

jituoo opened this issue Sep 11, 2018 · 8 comments

Comments

@jituoo
Copy link

jituoo commented Sep 11, 2018

输出的密度图如何查看?

@jituoo
Copy link
Author

jituoo commented Sep 11, 2018

@Ling-Bao

@Ling-Bao
Copy link
Owner

Ling-Bao commented Sep 17, 2018

import numpy as np
from matplotlib import pyplot as plt

# load crowd map file
mp_name = ***
mp = np.load(mp_name +  ".npy" )

# crowd counts
people_counts = round(sum(sum(mp)))

# show
plt.imsave(mp_name + ".png", mp, cmap=plt.get_cmap('jet'))
plt.imshow(mp, cmap=plt.get_cmap('jet'))

@jituoo
Copy link
Author

jituoo commented Sep 18, 2018

image这是什么问题,附件是npy文件的信息
1.txt

@Marcus208
Copy link

@jituoo 你好,请问或者问题怎么解决了?

@jituoo
Copy link
Author

jituoo commented Nov 1, 2018

删除它多余的维度就行

@jituoo
Copy link
Author

jituoo commented Nov 1, 2018

您好,再打扰一下。请问您有没有wordExpo10这个数据集能否给我发一下,先谢谢啦 @Ling-Bao

@Ling-Bao
Copy link
Owner

Ling-Bao commented Nov 2, 2018

抱歉,我这里没有这个数据集

@aain3314
Copy link

我看你的密度图的生成,使用npy只能生成标签密度图,怎样才能生成估计的密度图呢?谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants