2
import h5py
f = h5py.File('the_file.h5', 'r')
one_data = f['key']
print(one_data.shape)
print(one_data.dtype)
print(one_data)
위의 코드를 사용하여 정보를 인쇄합니다. 인쇄 결과는 다음과 같습니다h5 형식 데이터로 이미지를 시각화하려면 어떻게해야합니까?
(320, 320, 3)
uint8
<HDF5 dataset "1458552843.750": shape (320, 320, 3), type "|u1">