I want to read the Street View House Numbers (SVHN) Dataset by using h5py
In [117]: def printname(name):
...: print(name)
...:
In [118]: data['/digitStruct'].visit(printname)
bbox
name
There are two group in the data, bbox and name, name is the group name corresponding to the file name data, and bbox is the group name corresponding to the width, height, top, left and label data.
How can I visit all the data in name and bbox group?
I have tried with the following code from the Docs, but it just return HDF5 object reference.
In [119]: for i in data['/digitStruct/name']:
...: print(i[0])
...:
...:
<HDF5 object reference>
<HDF5 object reference>
<HDF5 object reference>
<HDF5 object reference>
<HDF5 object reference>
<HDF5 object reference>
Python version: 3.5 and OS: Windows 10.