import h5py
import numpy as np
import cv2
if __name__ == '__main__':
    for i in range(1, 31):
        img = cv2.imread('/home/datamining/Datasets/CrowdCounting/bg/bg_{}.jpg'
            .format(i))
        h, w = img.shape[0:2]
        with h5py.File('/home/datamining/Datasets/CrowdCounting/bg/bg_{}.h5'
            .format(i), 'w') as f:
            f['density'] = np.zeros((h, w))

79335af903f1be401ba618b1e34c3678d7ca0517
<mask token>

<mask token>
if __name__ == '__main__':
    for i in range(1, 31):
        img = cv2.imread('/home/datamining/Datasets/CrowdCounting/bg/bg_{}.jpg'
            .format(i))
        h, w = img.shape[0:2]
        with h5py.File('/home/datamining/Datasets/CrowdCounting/bg/bg_{}.h5'
            .format(i), 'w') as f:
            f['density'] = np.zeros((h, w))

import h5py
import numpy as np
import cv2
if __name__ == '__main__':
    for i in range(1, 31):
        img = cv2.imread('/home/datamining/Datasets/CrowdCounting/bg/bg_{}.jpg'
            .format(i))
        h, w = img.shape[0:2]
        with h5py.File('/home/datamining/Datasets/CrowdCounting/bg/bg_{}.h5'
            .format(i), 'w') as f:
            f['density'] = np.zeros((h, w))
