Overlaying text content 3500 - 3506 on a digital image, where the foreground text colour is computer automatically for a given location, comprising selecting and ranking colours which best contrast with the average background colour of the given location, based on all unique colours present in the image. Calculating location scores for each of a plurality of candidate text 3500 - 3506 location regions within a digital image, based on two of the following criteria: colour similarity within the region; perceived brightness within the region; position of the region; presence and magnitude of the extra pixels around the region which have a similar colour to the region; whether the region encroaches a region containing a face; the presence of detected edges within the region; the extent of the blurring of content within the region. Selecting a preferred text location based on the location score; selecting a preferred colour. With some claims further including selecting a preferred colour based on criteria comprising contrast relative to the preferred text location; displaying a final image comprising a composite of the initial image and the text content overlaid thereon, at the preferred location and with the preferred text colour.
展开▼