The minimum and maximum width values used here (min_height/2, max_height/2) do not lead to the same results as what obtained before with the default values of the minimum and maximum number of points. They should be set to something like (min_height/6, 3*max_height) to obtain a similar result. The most important parameter is the maximum width, which should be intended with the maximum width a cluster should have to be considered, not a person! The cluster can be composed of multiple people close to each other, thus the width could be much higher than a person width.