1. A method comprising: obtaining a cropping window in a picture comprising a plurality of objects of interest; detecting each object of interest of said plurality of objects; determining a weight for each of said detected object of interest, wherein said weight is determined at least based on the size of the corresponding detected object of interest; modifying the position of the cropping window in said picture based on said weight(s); and cropping the picture part delimited by said cropping window, wherein modifying the position of the cropping window in said picture based on said weights comprises: a) ordering said plurality of objects of interest in a decreasing order of said weights to form an ordered list of objects of interest; b) modifying the position of the cropping window so that it is centered on a bounding box comprising at least the first object of interest of the ordered list; c) enlarging said bounding box by adding a next object of interest of the ordered list; d) repeating b) and c) until the bounding box becomes larger than the cropping window.