I have been trying for days, searching for the proper way to read this file in my python project. Which is an ordinary matlab datastructure file.
https://drive.google.com/open?id=1E1w1eQn6pTcQ1lkhGMJzmB5ugtmaDPht
I am familiar about how to read h5 files which seems to be the case with this .mat file since it doesn't allow scipy.loadmat to read it. So I used h5py.Read().
import h5py
f = h5py.File('./imgIdx.mat','r')
d = f['imgIdx/anno']
print(d[1000]) # accessing an arbitrary object
[<HDF5 object reference>]
Which is an object that I can't deal with This is supposed to be a m x 4 matrix where m >= 0