A method of setting values of camera settings of a camera, the method comprising determining a plurality of sets of objective image parameters values of images captured by the camera, the value of at least one camera setting being different for each set of objective image parameters; obtaining a trade-off value; determining for each set of objective image parameters values, a quality value and a resource consumption value; determining a value of the at least one camera setting optimizing a trade-off between the quality and the resource consumption according to the trade-off value based on the determined quality values and resource consumption values; and setting the value of the at least one camera setting to the determined value.