US 11,682,148 B2
Method for displaying advertisement picture, method for uploading advertisement picture, and apparatus
Yang Li, Nanjing (CN); Yiliang He, Nanjing (CN); and Huangang Pang, Shenzhen (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Appl. No. 17/56,516
Filed by PETAL CLOUD TECHNOLOGY CO., LTD., Dongguan (CN)
PCT Filed Aug. 16, 2018, PCT No. PCT/CN2018/100847
§ 371(c)(1), (2) Date Nov. 18, 2020,
PCT Pub. No. WO2020/034150, PCT Pub. Date Feb. 20, 2020.
Prior Publication US 2021/0217062 A1, Jul. 15, 2021
Int. Cl. G06T 11/60 (2006.01); G06Q 30/0241 (2023.01); G06T 3/40 (2006.01); G06T 11/00 (2006.01); G06F 3/0482 (2013.01); G06F 3/04847 (2022.01)
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
OG exemplary drawing
 
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.