h5文件怎么打开

用h5py的接口,只能帮你到这了

https://stackoverflow.com/questions/41627147/how-can-i-visualise-an-image-in-h5-format-data

import cv2
import numpy as np
import h5py
f = h5py.File('the_file.h5', 'r')
dset = f['key']
data = np.array(dset[:,:,:])
file = 'test.jpg'
cv2.imwrite(file, data)
已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 创作都市 设计师:CSDN官方博客 返回首页