CN112363786A - Advertisement picture processing method and device, electronic equipment and storage medium - Google Patents

Advertisement picture processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112363786A
CN112363786A CN202011194267.0A CN202011194267A CN112363786A CN 112363786 A CN112363786 A CN 112363786A CN 202011194267 A CN202011194267 A CN 202011194267A CN 112363786 A CN112363786 A CN 112363786A
Authority
CN
China
Prior art keywords
advertisement
screen
mobile terminal
aspect ratio
pictures
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011194267.0A
Other languages
Chinese (zh)
Inventor
蒋演
彭飞
邓竹立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN202011194267.0A priority Critical patent/CN112363786A/en
Publication of CN112363786A publication Critical patent/CN112363786A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention provides a method and a device for processing an advertisement picture, electronic equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining an advertisement request of a mobile terminal for opening a screen, wherein the advertisement request comprises: a screen resolution parameter of the mobile terminal; determining the aspect ratio of the screen of the mobile terminal according to the screen resolution parameter; when the advertisement pictures with the corresponding proportion are matched according to the aspect ratio of the screen of the mobile terminal, acquiring the addresses of the advertisement pictures with the corresponding proportion; and sending the address of the advertisement picture with the corresponding proportion to the mobile terminal so that the mobile terminal can display the advertisement picture corresponding to the address when a screen is opened. In the embodiment of the invention, the server can provide the advertisement pictures with the corresponding proportions for the mobile terminals with different screen proportions, thereby greatly simplifying the design cost and the development cost for designing the corresponding advertisement pictures for each screen proportion.

Description

Advertisement picture processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of terminal image processing, and in particular, to a method and an apparatus for processing an advertisement image, an electronic device, and a storage medium.
Background
With the rapid development of mobile internet, mobile terminals (such as mobile phones) are gradually becoming a main platform for man-machine interaction, each mobile terminal with resolution has a set of corresponding open screen advertisement pictures, and the open screen advertisement is an advertisement displayed to users through a mobile terminal screen in the process of first starting and non-first starting of the mobile terminal (such as a mobile phone).
However, with the increasing increase of mobile phone models, the original screen-opened advertisement pictures are not suitable for the screen size of the newly added mobile phone models, so that the workload of the adaptation of the screen-opened advertisement pictures and the screen size of the mobile phone models is increased, and the design and development cost of the screen-opened advertisement pictures is increased.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for processing an advertisement picture, an electronic device, and a storage medium, so as to at least solve the technical problem that design cost and development cost of an advertisement picture increase because each model with a resolution needs to design a set of advertisement pictures corresponding to an open screen in the related art. The technical scheme of the invention is as follows:
according to a first aspect of the embodiments of the present invention, there is provided a method for processing an advertisement picture, including:
the method comprises the steps of obtaining an advertisement request of a mobile terminal for opening a screen, wherein the advertisement request comprises: a screen resolution parameter of the mobile terminal;
determining the aspect ratio of the screen of the mobile terminal according to the screen resolution parameter;
when the advertisement pictures with the corresponding proportion are matched according to the aspect ratio of the screen of the mobile terminal, acquiring the addresses of the advertisement pictures with the corresponding proportion;
and sending the address of the advertisement picture with the corresponding proportion to the mobile terminal so that the mobile terminal can display the advertisement picture corresponding to the address when a screen is opened.
Optionally, the method further includes:
judging whether the advertisement pictures with the corresponding proportion are matched according to the aspect ratio of the screen of the mobile terminal; if yes, executing the step of obtaining the address of the advertisement picture with the corresponding proportion;
if not, selecting an advertisement picture close to the aspect ratio of the screen of the mobile terminal;
and sending the address of the selected advertisement picture close to the aspect ratio of the screen of the mobile terminal to the mobile terminal, so that the mobile terminal can display the advertisement picture corresponding to the address of the advertisement picture close to the aspect ratio when the screen is opened.
Optionally, the determining whether the advertisement pictures in the corresponding ratio are matched according to the aspect ratio of the screen of the mobile terminal includes:
searching a mapping relation table of a preset screen aspect ratio and the advertisement pictures with the corresponding proportion according to the aspect ratio of the screen of the mobile terminal, and if the mapping relation table is searched, determining the advertisement pictures matched with the corresponding proportion; otherwise, determining that no advertisement picture with the corresponding proportion is matched.
Optionally, before obtaining the advertisement request for opening the screen of the mobile terminal, the method further includes:
pre-establishing the mapping relation between the aspect ratio of various screens and the advertisement pictures with corresponding proportions and the addresses corresponding to the advertisement pictures;
and storing the mapping relation in the mapping relation table.
Optionally, the method further includes:
receiving a configuration request of a new model of a mobile terminal, wherein the configuration request comprises: the aspect ratio of the new type screen;
establishing a mapping relation between the advertisement pictures of the aspect ratio and the contrast ratio of the new machine type screen and the addresses of the advertisement pictures;
and storing the mapping relation into a mapping relation table.
According to a second aspect of the embodiments of the present invention, there is provided an advertisement picture processing apparatus, including:
the first obtaining module is used for obtaining an advertisement request of opening a screen of a mobile terminal, and the advertisement request comprises: a screen resolution parameter of the mobile terminal;
the first determining module is used for determining the aspect ratio of the screen of the mobile terminal according to the screen resolution parameter;
the second acquisition module is used for acquiring the address of the advertisement picture with the corresponding proportion when the advertisement picture with the corresponding proportion is matched according to the aspect ratio of the screen of the mobile terminal;
and the first sending module is used for sending the addresses of the advertisement pictures with the corresponding proportion to the mobile terminal so as to display the advertisement pictures corresponding to the addresses when the mobile terminal starts a screen.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the address of the advertisement picture with the corresponding proportion is matched according to the aspect ratio of the mobile terminal screen after the first determining module determines the aspect ratio of the mobile terminal screen;
the second obtaining module is further configured to obtain an address of the advertisement picture in the corresponding proportion when the judging module judges that the advertisement picture in the corresponding proportion is matched;
the selection module is used for selecting the advertisement picture which is close to the aspect ratio of the screen of the mobile terminal when the judgment module judges that the advertisement pictures with the corresponding proportion are not matched;
and the second sending module is used for sending the address of the advertisement picture which is selected by the selection module and is close to the aspect ratio of the screen of the mobile terminal to the mobile terminal so that the mobile terminal can display the advertisement picture which is selected by the selection module and is close to the aspect ratio and corresponds to the address of the advertisement picture when the screen is opened.
Optionally, the determining module includes:
the searching module is used for searching a mapping relation table of a preset screen aspect ratio and the advertisement pictures with corresponding proportions according to the aspect ratio of the screen of the mobile terminal;
the second determining module is used for determining the advertisement pictures matched with the corresponding proportion when the searching module finds the advertisement pictures with the corresponding proportion;
and the third determining module is used for determining that the advertisement pictures with the corresponding proportion are not matched when the searching module does not search the advertisement pictures with the corresponding proportion.
Optionally, the apparatus further comprises:
the first establishing module is used for pre-establishing the aspect ratios of various screens, advertisement pictures with corresponding proportions and the mapping relation of addresses corresponding to the advertisement pictures before the first obtaining module obtains the advertisement request of starting the screen of the mobile terminal;
and the first storage module is used for storing the mapping relation into a mapping relation table.
Optionally, the apparatus further comprises:
a receiving module, configured to receive a configuration request of a new model of the mobile terminal after the second sending module sends the address of the close advertisement picture, where the configuration request includes: the aspect ratio of the new type screen;
the second establishing module is used for establishing a mapping relation between the advertisement pictures with the aspect ratio and the contrast ratio of the new machine type screen and the addresses of the advertisement pictures;
and the second storage module is used for storing the established mapping relation into a mapping relation table.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for processing the advertisement picture as described in any one of the above.
According to a fourth aspect of the embodiments of the present invention, there is provided a storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to execute the method for processing an advertisement picture as described in any one of the above.
According to a fifth aspect of the embodiments of the present invention, there is provided a computer program product, wherein instructions of the computer program product, when executed by a processor of an electronic device, cause the electronic device to execute any one of the above-mentioned advertisement picture processing methods.
The technical scheme provided by the embodiment of the invention at least has the following beneficial effects:
in the embodiment of the invention, when an advertisement request for acquiring an open screen sent by a mobile terminal is received, the aspect ratio of the screen of the mobile terminal is determined according to a screen resolution parameter in the advertisement request; when the advertisement pictures with the corresponding proportion are matched according to the aspect ratio of the screen of the mobile terminal, the address of the advertisement picture with the corresponding proportion is obtained; and finally, sending the address of the advertisement picture with the corresponding proportion to the mobile terminal so as to display the advertisement picture corresponding to the address when the mobile terminal starts a screen. That is to say, in the embodiment of the present invention, the server may determine the aspect ratio of the screen according to the screen resolution parameter in the advertisement request for opening the screen sent by the mobile terminal, obtain the advertisement picture in the corresponding ratio according to the aspect ratio of the screen, and send the address of the advertisement picture to the mobile terminal, so that the mobile terminal displays the advertisement picture corresponding to the address when opening the screen. The server can provide the advertisement pictures with corresponding proportions for the aspect ratios of different screens of the mobile terminal, and the design cost and the development cost for designing the corresponding advertisement pictures for each screen proportion are greatly simplified.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention and are not to be construed as limiting the invention.
Fig. 1 is a flowchart of a method for processing an advertisement picture according to an embodiment of the present invention.
Fig. 2 is another flowchart of a method for processing an advertisement picture according to an embodiment of the present invention.
Fig. 3 is a block diagram of an apparatus for processing an advertisement picture according to an embodiment of the present invention.
Fig. 4 is another block diagram of an apparatus for processing an advertisement picture according to an embodiment of the present invention.
Fig. 5 is a block diagram of a determining module according to an embodiment of the present invention.
Fig. 6 is another block diagram of an apparatus for processing an advertisement picture according to an embodiment of the present invention.
Fig. 7 is still another block diagram of an apparatus for processing an advertisement picture according to an embodiment of the present invention.
Fig. 8 is a block diagram of an electronic device according to an embodiment of the present invention.
Fig. 9 is a block diagram of a processing device for advertisement pictures according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart of a method for processing an advertisement picture according to an embodiment of the present invention, and as shown in fig. 1, the method for processing an advertisement picture is used in a terminal, and includes the following steps:
in step 101, an advertisement request for opening a screen of a mobile terminal is obtained, where the advertisement request includes: a screen resolution parameter of the mobile terminal.
In step 102, determining the aspect ratio of the screen of the mobile terminal according to the screen resolution parameter;
in step 103, when the advertisement pictures with the corresponding proportion are matched according to the aspect ratio of the screen of the mobile terminal, acquiring the addresses of the advertisement pictures with the corresponding proportion;
in step 104, the address of the advertisement picture with the corresponding proportion is sent to the mobile terminal, so that the mobile terminal can display the advertisement picture corresponding to the address when the screen is opened.
The method for processing the advertisement picture can be applied to a terminal, a server and the like, and is not limited herein, and the terminal implementation equipment can be electronic equipment such as a smart phone, a notebook computer, a tablet computer and the like.
The following describes in detail specific implementation steps of a method for processing an advertisement picture according to an embodiment of the present invention with reference to fig. 1.
Firstly, step 101 is executed to obtain an advertisement request for opening a screen of a mobile terminal, where the advertisement request includes: a screen resolution parameter of the mobile terminal;
in this step, the mobile terminal or a client on the mobile terminal sends an advertisement request for obtaining an open screen to the server, where the advertisement request may include: the screen resolution parameter of the mobile terminal may, of course, include other parameters as needed, and this embodiment is not limited. For example, when the client sends a request for obtaining an open screen advertisement to the server, the resolution parameter of the mobile terminal is carried, for example, iPhoneX carries the screen resolution 1125x2436 of the mobile terminal in a Header (Header) of the request.
At this time, the server receives an advertisement request for acquiring a mobile terminal opening screen sent by the mobile terminal or a client on the mobile terminal, where the advertisement request includes: a screen resolution parameter of the mobile terminal.
The opening of the screen advertisement (i.e. the opening of the screen advertisement) is the advertisement displayed to the user through the screen of the mobile terminal in the first starting process and the non-first starting process of the mobile terminal.
Secondly, step 102 is executed to determine the aspect ratio of the screen of the mobile terminal according to the screen resolution parameter.
In the step, after receiving an advertisement request for acquiring a start screen sent by a mobile terminal or a client of the mobile terminal, a server acquires a parameter of screen resolution carried in an advertisement request Header, and calculates an aspect ratio of a screen according to the parameter of screen resolution.
One way to calculate the aspect ratio of the screen according to the screen resolution parameter is: that is, the number of pixels included in the horizontal direction is divided by the number of pixels included in the vertical direction, so that the screen aspect ratio is obtained.
For example, a mobile terminal with a screen of 6.5 inches (such as iPhoneXs Max) has a screen resolution of 1242x 2688px, where 1242 is the number of pixels included in the horizontal direction, 1242 is the number of pixels included in the vertical direction, and the aspect ratio of the corresponding screen is 1242/2688 ═ 0.462;
a mobile terminal with 6.1 inch screen (such as iPhoneXR), with a screen resolution of 828x1792 px, corresponding to a screen aspect ratio of 828/1792-0.462;
a mobile terminal with a 5.8 inch screen (for example, iPhoneX/Xs) has a screen resolution of 1125x2436 px, and an aspect ratio of 1125/2436-0.4618.
And then, executing step 103, and acquiring the address of the advertisement picture of the corresponding proportion when the advertisement picture of the corresponding proportion is matched according to the aspect ratio of the screen of the mobile terminal.
In this step, a mapping relation table between a preset screen aspect ratio and the advertisement pictures of the corresponding proportion can be searched according to the aspect ratio of the screen of the mobile terminal, and if the advertisement pictures of the corresponding proportion are searched from the mapping relation table, the addresses of the advertisement pictures of the corresponding proportion are obtained.
The preset mapping relation table comprises the screen aspect ratio of various mobile terminals, advertisement pictures with corresponding proportions and the mapping relation between the addresses of the advertisement pictures. That is, in the background, the server may pre-configure a mapping relationship between various screen aspect ratios and advertisement pictures, for example, the aspect ratio of a screen is 9: 16, the advertisement picture with the corresponding proportion is a picture I, and the address corresponding to the picture I is set; the aspect ratio of the screen is 9: 19, the advertisement picture with the corresponding proportion is a second picture, and an address corresponding to the second picture is set; the width-to-height ratio of the screen is 1: 2, the advertisement picture with the corresponding proportion is the third picture, and the address corresponding to the third picture is set, etc., and the advertisement pictures with the corresponding proportion can be configured for the aspect ratios of different screens, which needs to be explained in the embodiment of the present invention that the advertisement pictures are all the pictures displayed when the screen is opened by the mobile terminal.
And then, executing step 104, and sending the address of the advertisement picture with the corresponding proportion to the mobile terminal, so that the mobile terminal can display the advertisement picture corresponding to the address when the screen is opened.
In the embodiment of the invention, when an advertisement request for acquiring an open screen sent by a mobile terminal is received, the aspect ratio of the screen of the mobile terminal is determined according to a screen resolution parameter in the advertisement request; when the advertisement pictures with the corresponding proportion are matched according to the aspect ratio of the screen of the mobile terminal, the address of the advertisement picture with the corresponding proportion is obtained; and finally, sending the address of the advertisement picture with the corresponding proportion to the mobile terminal so as to display the advertisement picture corresponding to the address when the mobile terminal starts a screen. That is to say, in the embodiment of the present invention, the server may determine the aspect ratio of the screen according to the screen resolution parameter in the advertisement request for opening the screen sent by the mobile terminal, obtain the advertisement picture in the corresponding ratio according to the aspect ratio of the screen, and send the address of the advertisement picture to the mobile terminal, so that the mobile terminal displays the advertisement picture corresponding to the address when opening the screen. For all iOS and Android mobile terminals, the server can provide advertisement pictures with corresponding proportions for the mobile terminals with different screen aspect ratios, and design cost and development cost for designing corresponding advertisement pictures for each screen proportion are greatly reduced.
Referring to fig. 2, another flowchart of a method for processing an advertisement picture according to an embodiment of the present invention is shown, where the method includes:
step 201: the method comprises the steps of obtaining an advertisement request of a mobile terminal for opening a screen, wherein the advertisement request comprises: a screen resolution parameter of the mobile terminal;
step 202: determining the aspect ratio of the screen of the mobile terminal according to the screen resolution parameter;
in this embodiment, the implementation processes of step 201 to step 202 are the same as those of step 101 and step 102, which are described in detail above and are not described herein again.
Step 203: judging whether the advertisement pictures with the corresponding proportion are matched according to the aspect ratio of the screen of the mobile terminal, if so, executing a step 204; otherwise, go to step 206;
in this step, the server searches a mapping relation table between a preset screen aspect ratio and the advertisement pictures of the corresponding proportion according to the aspect ratio of the screen of the mobile terminal, if the advertisement pictures of the corresponding proportion are found from the mapping relation table, the advertisement pictures matched with the corresponding proportion are determined, and step 204 is executed; otherwise, it is determined that there is no advertisement picture matching the corresponding ratio, and step 206 is executed. The mapping relation table is configured in advance and comprises the mapping relation between the screen aspect ratio of various types of mobile terminals and the advertisement pictures with corresponding proportions and the addresses of the advertisement pictures.
Step 204: acquiring addresses of advertisement pictures in corresponding proportions;
in this step, when the advertisement picture with the ratio corresponding to the screen width-height ratio is found, the address corresponding to the advertisement picture can be obtained from the mapping relation table.
Step 205: sending the address of the advertisement picture with the corresponding proportion to the mobile terminal so that the mobile terminal can display the advertisement picture corresponding to the address when a screen is opened;
step 206: selecting an advertisement picture close to the aspect ratio of the screen of the mobile terminal;
in this step, if no advertisement picture with a corresponding ratio is found from the mapping relationship table, an advertisement picture with an aspect ratio close to that of the screen needs to be selected.
Step 207: and sending the address of the selected advertisement picture close to the aspect ratio of the screen of the mobile terminal to the mobile terminal, so that the mobile terminal can display the advertisement picture corresponding to the address of the advertisement picture close to the aspect ratio when the screen is opened.
In this step, the server sends the address of the advertisement picture close to the aspect ratio of the screen of the mobile terminal to the mobile terminal, so that the mobile terminal can display the advertisement picture corresponding to the address of the advertisement picture close to the aspect ratio when the screen is opened.
Further, the method can also comprise prompting maintenance personnel to increase the information of the advertisement pictures corresponding to the width-height ratio of the screen, so that the maintenance personnel can increase the advertisement pictures with the corresponding proportion in time according to the prompting information. So that the advertisement pictures with the corresponding proportion can be inquired when the aspect ratio of the screen is received. That is, when a new mobile terminal issues, if the screen ratio of the new mobile terminal is inconsistent with the corresponding advertisement picture ratio in the mapping relation table configured by the current server, the address of the advertisement picture with the similar ratio can be sent to the mobile terminal, and then the advertisement picture with the corresponding ratio is reconfigured according to the width-height ratio of the new mobile terminal without changing a client, so that the cost and the expense are saved, and the satisfaction degree of a user is improved.
Optionally, in another embodiment, on the basis of the foregoing embodiment, before acquiring the advertisement request of the mobile terminal to open the screen, the method may further include: pre-establishing the mapping relation between the aspect ratio of various screens and the advertisement pictures with corresponding proportions and the addresses corresponding to the advertisement pictures; and storing the mapping relation in the mapping relation table.
In this embodiment, the aspect ratio of the screen is 9: 16, the advertisement picture with the corresponding proportion is a picture I, and the address corresponding to the picture I is set; the aspect ratio of the screen is 9: 19, the advertisement picture with the corresponding proportion is a second picture, and an address corresponding to the second picture is set; the width-to-height ratio of the screen is 1: 2, the advertisement picture with the corresponding proportion is figure three, and addresses and the like corresponding to figure three are set, and the advertisement picture with the corresponding proportion can be configured for different aspect ratios of different screens.
In the embodiment, through the corresponding relation between the three sets of pre-designed advertisement pictures and the corresponding screen aspect ratios, the advertisement pictures with the corresponding ratios can be matched for each screen of the current mobile terminal, so that the design cost and the development cost are greatly simplified, and the satisfaction degree of a user is improved.
Optionally, in another embodiment, on the basis of the above embodiment, the method may further include: receiving a configuration request of a new model of a mobile terminal, wherein the configuration request comprises: the aspect ratio of the new type screen; establishing a mapping relation between the advertisement pictures of the aspect ratio and the contrast ratio of the new machine type screen and the addresses of the advertisement pictures; and storing the mapping relation into a mapping relation table.
In this embodiment, when a new type of mobile terminal is released, if the screen ratio of the new mobile terminal is inconsistent with the advertisement picture ratio in the configured mapping relationship table, and the difference is large, the mapping relationship between the screen aspect ratio of the new mobile terminal and the advertisement picture in the corresponding ratio may be increased, without changing the mobile terminal, for example, the configuration background may be configured to add the aspect ratio of the new screen and the corresponding advertisement picture, and if the aspect ratio of the new screen is 1: 1, the corresponding advertisement picture is graph four and the address corresponding to the graph four, so that the adaptation problem can be solved by adding configuration for a new model of a newly released mobile terminal. Therefore, the design cost and the development cost are saved, and the satisfaction degree of a user is improved.
In the embodiment of the invention, after a mobile terminal (such as a mobile phone) manufacturer releases a new model, if the size of a screen changes and the aspect ratio of the screen does not change, the configured mapping relation is not needed, and only configured advertisement pictures corresponding to the aspect ratio of the screen are used; if the size of the screen changes and the aspect ratio of the screen also changes, advertisement pictures with corresponding proportions need to be configured for the aspect ratio of the screen again in the background so as to be suitable for a new issued machine type.
It is noted that while for simplicity of explanation, the method embodiments are shown as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fig. 3 is a block diagram illustrating an advertisement picture processing apparatus according to an exemplary embodiment. Referring to fig. 2, the apparatus includes: a first obtaining module 301, a first determining module 302, a second obtaining module 303 and a first sending module 304.
The first obtaining module 301 is configured to obtain an advertisement request for opening a screen of a mobile terminal, where the advertisement request includes: a screen resolution parameter of the mobile terminal;
the first determining module 302 is configured to determine an aspect ratio of the screen of the mobile terminal according to the screen resolution parameter;
the second obtaining module 303 is configured to obtain an address of the advertisement picture in the corresponding proportion when the advertisement picture in the corresponding proportion is matched according to the aspect ratio of the screen of the mobile terminal;
the first sending module 304 is configured to send the address of the advertisement picture with the corresponding proportion to the mobile terminal, so that the mobile terminal displays the advertisement picture corresponding to the address when the screen is opened.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: a judging module 401, a selecting module 402 and a second sending module 403, which are schematically shown in fig. 4, wherein,
the determining module 401 is configured to determine whether the address of the advertisement picture in the corresponding ratio is matched according to the aspect ratio of the mobile terminal screen after the first determining module 302 determines the aspect ratio of the mobile terminal screen;
the second obtaining module 303 is further configured to obtain an address of the advertisement picture in the corresponding proportion when the judging module 401 determines that the advertisement picture in the corresponding proportion is matched;
the selecting module 402 is configured to select an advertisement picture that is close to the aspect ratio of the screen of the mobile terminal when the judging module 401 judges that no advertisement picture with a corresponding ratio is matched;
the second sending module 403 is configured to send the address of the advertisement picture that is selected by the selecting module 402 and is close to the aspect ratio of the screen of the mobile terminal to the mobile terminal, so that the mobile terminal displays the advertisement picture corresponding to the address of the advertisement picture that is close to the aspect ratio when the screen is opened.
Optionally, in another embodiment, on the basis of the foregoing embodiment, the determining module 401 includes: a search module 501, a second determination module 502 and a third determination module 503, which are schematically shown in fig. 5, wherein,
the searching module 501 is configured to search a mapping relation table between a preset screen aspect ratio and an advertisement picture in a corresponding ratio according to the aspect ratio of the screen of the mobile terminal;
the second determining module 502 is configured to determine the advertisement pictures matched with the corresponding proportions when the searching module 501 finds the advertisement pictures with the corresponding proportions;
the third determining module 503 is configured to determine that no advertisement picture in the corresponding ratio is matched when the searching module 501 does not search for an advertisement picture in the corresponding ratio.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus may further include: a schematic structural diagram of the first establishing module 601 and the first storing module 602 is shown in fig. 6, wherein,
the first establishing module 601 is configured to pre-establish an aspect ratio of multiple screens, advertisement pictures with corresponding proportions, and a mapping relationship between addresses corresponding to the advertisement pictures before the first obtaining module 301 obtains an advertisement request for starting a screen of a mobile terminal;
a first storage module 602, configured to store the mapping relationship in a mapping relationship table.
Optionally, in another embodiment, on the basis of the above embodiment, the apparatus further includes: a receiving module 701, a second establishing module 702 and a second storing module 703, which are schematically shown in fig. 7, wherein,
the receiving module 701 is configured to receive a configuration request of a new model of a mobile terminal after the second sending module 403 sends an address of a similar advertisement picture, where the configuration request includes: the aspect ratio of the new type screen;
the second establishing module 702 is configured to establish a mapping relationship between the advertisement pictures with the aspect ratio and the contrast ratio of the new model screen and the addresses of the advertisement pictures;
the second storage module 703 is configured to store the mapping relationship to be established in a mapping relationship table.
Optionally, an embodiment of the present invention further provides an electronic device, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method for processing the advertisement picture as described above.
Optionally, an embodiment of the present invention further provides a storage medium, and when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method for processing an advertisement picture as described above.
In the embodiment of the invention, the server determines the aspect ratio of the screen according to the screen resolution parameter of the mobile terminal, and obtains the advertisement pictures corresponding to the aspect ratio of the screen by inquiring the mapping relation table, namely the client maps the advertisement pictures with different proportions according to the aspect ratio of the resolution of the mobile terminal. For example, in the case of iOS, there are 18 different screen sizes from iPhone4 to iPhone11, but the aspect ratio is only approximately 3. Therefore, the server can perfectly show the advertisement image on each different screen as long as the server is configured with the advertisement image of the 3 sets of opening screens with high screen width ratio in advance. As another example, the iPhone XR screen size is 6.1 inches, with a screen resolution of 828x 1792. The iPhoneX screen size was 5.8 inches with a screen resolution of 1125x 2436. However, the width and height ratios of the screens of the two mobile terminals are consistent, and the same set of corresponding advertisement pictures can be used. And aiming at the aspect ratios of different screen ratios, the advertisement pictures with corresponding ratios can be matched through the mapping relation table configured in advance by the invention, and certainly, the advertisement pictures with corresponding ratios can be configured in real time according to the actually issued screen aspect ratio of a new machine type, so that the design cost and the development cost of the advertisement pictures are saved, and the satisfaction degree of users is improved.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method, and reference may be made to part of the description of the embodiment of the method for the relevant points, and the detailed description will not be made here.
Embodiments of the present invention also provide a storage medium, such as a memory, including instructions executable by a processor of an electronic device to perform the above-described method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 8 is a block diagram of an electronic device 800 according to an embodiment of the invention. For example, the electronic device 800 may be a mobile terminal or a server, and in the embodiment of the present invention, the electronic device is taken as an example of a mobile terminal. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the advertisement picture processing method shown above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the advertisement picture processing method illustrated above, is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Embodiments of the present invention further provide a computer program product, wherein when instructions in the computer program product are executed by the processor 820 of the electronic device 800, the electronic device 800 is enabled to execute the advertisement picture processing method described above.
Fig. 9 is a block diagram illustrating an apparatus 900 for advertisement picture processing according to an example embodiment. For example, the apparatus 900 may be provided as a server. Referring to fig. 9, the apparatus 900 includes a processing component 922, which further includes one or more processors, and memory resources, represented by memory 932, for storing instructions, such as applications, that are executable by the processing component 922. The application programs stored in memory 932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 922 is configured to execute instructions to perform the above-described method advertisement picture processing method.
The device 900 may also include a power component 926 configured to perform power management of the device 900, a wired or wireless network interface 950 configured to connect the device 900 to a network, and an input output (I/O) interface 958. The apparatus 900 may operate based on an operating system stored in the memory 932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (12)

1. A method for processing advertisement pictures is characterized by comprising the following steps:
the method comprises the steps of obtaining an advertisement request of a mobile terminal for opening a screen, wherein the advertisement request comprises: a screen resolution parameter of the mobile terminal;
determining the aspect ratio of the screen of the mobile terminal according to the screen resolution parameter;
when the advertisement pictures with the corresponding proportion are matched according to the aspect ratio of the screen of the mobile terminal, acquiring the addresses of the advertisement pictures with the corresponding proportion;
and sending the address of the advertisement picture with the corresponding proportion to the mobile terminal so that the mobile terminal can display the advertisement picture corresponding to the address when a screen is opened.
2. The method for processing advertisement pictures according to claim 1, further comprising:
judging whether the advertisement pictures with the corresponding proportion are matched according to the aspect ratio of the screen of the mobile terminal; if yes, executing the step of obtaining the address of the advertisement picture with the corresponding proportion;
if not, selecting an advertisement picture close to the aspect ratio of the screen of the mobile terminal;
and sending the address of the selected advertisement picture close to the aspect ratio of the screen of the mobile terminal to the mobile terminal, so that the mobile terminal can display the advertisement picture corresponding to the address of the advertisement picture close to the aspect ratio when the screen is opened.
3. The method for processing advertisement pictures according to claim 2, wherein the determining whether the advertisement pictures are matched to the corresponding ratio according to the aspect ratio of the screen of the mobile terminal comprises:
searching a mapping relation table of a preset screen aspect ratio and the advertisement pictures with the corresponding proportion according to the aspect ratio of the screen of the mobile terminal, and if the mapping relation table is searched, determining the advertisement pictures matched with the corresponding proportion; otherwise, determining that no advertisement picture with the corresponding proportion is matched.
4. The method for processing advertisement pictures according to claim 3, wherein before acquiring the advertisement request of the mobile terminal to open the screen, the method further comprises:
pre-establishing the mapping relation between the aspect ratio of various screens and the advertisement pictures with corresponding proportions and the addresses corresponding to the advertisement pictures;
and storing the mapping relation into the mapping relation table.
5. The method for processing advertisement pictures according to claim 3, further comprising:
receiving a configuration request of a new model of a mobile terminal, wherein the configuration request comprises: the aspect ratio of the new type screen;
establishing a mapping relation between the advertisement pictures of the aspect ratio and the contrast ratio of the new machine type screen and the addresses of the advertisement pictures;
and storing the mapping relation into the mapping relation table.
6. An advertisement picture processing apparatus, comprising:
the first obtaining module is used for obtaining an advertisement request of opening a screen of a mobile terminal, and the advertisement request comprises: a screen resolution parameter of the mobile terminal;
the first determining module is used for determining the aspect ratio of the screen of the mobile terminal according to the screen resolution parameter;
the second acquisition module is used for acquiring the address of the advertisement picture with the corresponding proportion when the advertisement picture with the corresponding proportion is matched according to the aspect ratio of the screen of the mobile terminal;
and the first sending module is used for sending the addresses of the advertisement pictures with the corresponding proportion to the mobile terminal so as to display the advertisement pictures corresponding to the addresses when the mobile terminal starts a screen.
7. The apparatus for processing advertisement pictures according to claim 6, further comprising:
the judging module is used for judging whether the address of the advertisement picture with the corresponding proportion is matched according to the aspect ratio of the mobile terminal screen after the first determining module determines the aspect ratio of the mobile terminal screen;
the second obtaining module is further configured to obtain an address of the advertisement picture in the corresponding proportion when the judging module judges that the advertisement picture in the corresponding proportion is matched;
the selection module is used for selecting the advertisement picture which is close to the aspect ratio of the screen of the mobile terminal when the judgment module judges that the advertisement pictures with the corresponding proportion are not matched;
and the second sending module is used for sending the address of the advertisement picture which is selected by the selection module and is close to the aspect ratio of the screen of the mobile terminal to the mobile terminal so that the mobile terminal can display the advertisement picture which is selected by the selection module and is close to the aspect ratio and corresponds to the address of the advertisement picture when the screen is opened.
8. The apparatus for processing advertisement pictures according to claim 7, wherein the determining module comprises:
the searching module is used for searching a mapping relation table of a preset screen aspect ratio and the advertisement pictures with corresponding proportions according to the aspect ratio of the screen of the mobile terminal;
the second determining module is used for determining the advertisement pictures matched with the corresponding proportion when the searching module finds the advertisement pictures with the corresponding proportion;
and the third determining module is used for determining that the advertisement pictures with the corresponding proportion are not matched when the searching module does not search the advertisement pictures with the corresponding proportion.
9. The apparatus for processing advertisement pictures according to claim 8, further comprising:
the first establishing module is used for pre-establishing the aspect ratios of various screens, advertisement pictures with corresponding proportions and the mapping relation of addresses corresponding to the advertisement pictures before the first obtaining module obtains the advertisement request of starting the screen of the mobile terminal;
and the first storage module is used for storing the mapping relation into a mapping relation table.
10. The apparatus for processing advertisement pictures according to claim 8, further comprising:
a receiving module, configured to receive a configuration request of a new model of the mobile terminal after the second sending module sends the address of the close advertisement picture, where the configuration request includes: the aspect ratio of the new type screen;
the second establishing module is used for establishing a mapping relation between the advertisement pictures with the aspect ratio and the contrast ratio of the new machine type screen and the addresses of the advertisement pictures;
and the second storage module is used for storing the established mapping relation into a mapping relation table.
11. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of processing an advertisement picture according to any one of claims 1 to 5.
12. A storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of processing an advertisement picture according to any one of claims 1 to 5.
CN202011194267.0A 2020-10-30 2020-10-30 Advertisement picture processing method and device, electronic equipment and storage medium Pending CN112363786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011194267.0A CN112363786A (en) 2020-10-30 2020-10-30 Advertisement picture processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011194267.0A CN112363786A (en) 2020-10-30 2020-10-30 Advertisement picture processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112363786A true CN112363786A (en) 2021-02-12

Family

ID=74513150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011194267.0A Pending CN112363786A (en) 2020-10-30 2020-10-30 Advertisement picture processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112363786A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900613A (en) * 2021-10-18 2022-01-07 北京博瑞彤芸科技股份有限公司 Picture dynamic adaptation method and device
WO2022213303A1 (en) * 2021-04-07 2022-10-13 Google Llc Systems and methods for adjusting aspect ratio of content slot

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699839A (en) * 2009-11-30 2010-04-28 威海捷讯通信技术有限公司 Mobile terminal figure adaptive system and method thereof
CN201585139U (en) * 2009-11-30 2010-09-15 威海捷讯通信技术有限公司 Mobile terminal graph adapting system
WO2015054899A1 (en) * 2013-10-18 2015-04-23 华为终端有限公司 Advertising information display method, system and device
CN106791912A (en) * 2016-12-28 2017-05-31 Tcl集团股份有限公司 A kind of poster picture match method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699839A (en) * 2009-11-30 2010-04-28 威海捷讯通信技术有限公司 Mobile terminal figure adaptive system and method thereof
CN201585139U (en) * 2009-11-30 2010-09-15 威海捷讯通信技术有限公司 Mobile terminal graph adapting system
WO2015054899A1 (en) * 2013-10-18 2015-04-23 华为终端有限公司 Advertising information display method, system and device
CN106791912A (en) * 2016-12-28 2017-05-31 Tcl集团股份有限公司 A kind of poster picture match method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022213303A1 (en) * 2021-04-07 2022-10-13 Google Llc Systems and methods for adjusting aspect ratio of content slot
CN113900613A (en) * 2021-10-18 2022-01-07 北京博瑞彤芸科技股份有限公司 Picture dynamic adaptation method and device

Similar Documents

Publication Publication Date Title
EP3041204A1 (en) Method for prompting calling request and device for the same
CN112114765A (en) Screen projection method and device and storage medium
EP3229423A1 (en) Method and device for displaying setting interface of router
CN104462296B (en) File management method and device and terminal
EP2981116A1 (en) Method and apparatus for accessing wi-fi network and computer program product
CN106354504B (en) Message display method and device
CN108810866B (en) Method and device for connecting intelligent equipment and storage medium
EP3147802A1 (en) Method and apparatus for processing information
CN106155703B (en) Emotional state display method and device
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN107885016B (en) Holographic projection method and device
CN107666660B (en) Interphone configuration method and device
CN112363786A (en) Advertisement picture processing method and device, electronic equipment and storage medium
CN112416219A (en) Target object processing method, device and system, electronic equipment and storage medium
CN110636318A (en) Message display method, message display device, client device, server and storage medium
CN104951522B (en) Method and device for searching
CN106506808B (en) Method and device for prompting communication message
CN111541922B (en) Method, device and storage medium for displaying interface input information
CN107437269B (en) Method and device for processing picture
CN106878654B (en) Video communication method and device
US11075811B2 (en) Method and apparatus for device identification
CN106933111B (en) Method and device for controlling equipment
CN113079493A (en) Information matching display method and device and electronic equipment
EP3128722A1 (en) File transmission method and apparatus, computer program and recording medium
CN107885464B (en) Data storage method, device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination