CPC G06T 11/60 (2013.01) [G06Q 30/0276 (2013.01); G06T 3/40 (2013.01); G06T 11/00 (2013.01); G06F 3/0482 (2013.01); G06F 3/04847 (2013.01); G06T 2200/16 (2013.01); G06T 2200/24 (2013.01)] | 20 Claims |
1. A method implemented by a terminal, wherein the method comprises:
obtaining, from an advertisement server, location information of a first key information area in a first advertisement picture;
obtaining the first advertisement picture;
cropping the first advertisement picture based on the location information, to obtain a cropped first advertisement picture;
setting the cropped first advertisement picture as a second advertisement picture, or scaling the cropped first advertisement picture to obtain the second advertisement picture, wherein the second advertisement picture comprises a second key information area and a rectangular third key information area, wherein location information of the third key information area comprises coordinate information of a vertex A1 in a top left corner of the third key information area and coordinate information of a vertex B1 in a lower right corner of the third key information area, wherein a first priority of the third key information area is higher than a second priority of a rectangular fourth key information area of the first advertisement picture, and wherein location information of the fourth key information area comprises coordinate information of a vertex A2 in a top left corner of the fourth key information area and coordinate information of a vertex B2 in a lower right corner of the fourth key information area;
determining a maximum rectangle in the first advertisement picture having a fourth aspect ratio that is the same as a second aspect ratio of an advertisement display area;
moving the maximum rectangle to enable a vertex in a top left corner of the maximum rectangle to coincide with the vertex A1;
setting a boundary line of the maximum rectangle as a cropping line;
cropping the first advertisement picture based on the cropping line; and
displaying the second advertisement picture in the advertisement display area of a display of the terminal.
|