CN111028315B - Picture display method, device, terminal and storage medium - Google Patents

Picture display method, device, terminal and storage medium Download PDF

Info

Publication number
CN111028315B
CN111028315B CN201911225029.9A CN201911225029A CN111028315B CN 111028315 B CN111028315 B CN 111028315B CN 201911225029 A CN201911225029 A CN 201911225029A CN 111028315 B CN111028315 B CN 111028315B
Authority
CN
China
Prior art keywords
dynamic display
displayed
picture
parameters
display
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.)
Active
Application number
CN201911225029.9A
Other languages
Chinese (zh)
Other versions
CN111028315A (en
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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201911225029.9A priority Critical patent/CN111028315B/en
Publication of CN111028315A publication Critical patent/CN111028315A/en
Application granted granted Critical
Publication of CN111028315B publication Critical patent/CN111028315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Abstract

The application discloses a picture display method, a picture display device, a terminal and a storage medium, and belongs to the field of image processing. The method comprises the following steps: receiving selection operation of n pictures to be displayed, wherein n is an integer greater than or equal to 2; and sending a configuration acquisition request to the server according to the selection operation, wherein the configuration acquisition request is used for requesting to acquire a display configuration file, the display configuration file comprises dynamic display parameters configured for each picture to be displayed, the display configuration file sent by the server is received, and the n pictures to be displayed are dynamically displayed according to the dynamic display parameters in the display configuration file. The picture display method provided by the embodiment of the application can realize that the terminal automatically configures the dynamic display parameters for the picture to be displayed, and finally realizes the dynamic display of the picture to be displayed, thereby improving the efficiency of editing the picture by a user.

Description

Picture display method, device, terminal and storage medium
Technical Field
The present application relates to the field of image processing, and in particular, to a method, an apparatus, a terminal, and a storage medium for displaying a picture.
Background
Short video is a popular internet content transmission mode, and related short video production software is rapidly developed based on the wide transmission of short video.
In the short video production process, the production materials comprise pictures and video clips, and for the short video production based on the picture materials, a user can import a plurality of pictures into short video production software, edit each picture and export the edited pictures into short videos.
However, when there are a large number of pictures to be processed, the workload of user editing increases, and the processing efficiency of the user decreases based on a large editing work.
Disclosure of Invention
The embodiment of the application provides a picture display method, a picture display device, a terminal and a storage medium. The technical scheme is as follows:
according to an aspect of the present application, there is provided a picture display method, the method including:
receiving selection operation of n pictures to be displayed, wherein n is an integer greater than or equal to 2;
sending a configuration acquisition request to a server according to the selection operation, wherein the configuration acquisition request is used for requesting acquisition of a display configuration file, and the display configuration file comprises dynamic display parameters configured for each picture to be displayed;
receiving the display configuration file sent by the server;
and dynamically displaying the n pictures to be displayed according to the dynamic display parameters in the display configuration file.
Optionally, the dynamically displaying the n pictures to be displayed according to the dynamic display parameters in the display configuration file includes:
obtaining a target dynamic display parameter corresponding to an ith picture to be displayed from the display configuration file, wherein i is an integer greater than or equal to 1 and less than or equal to n;
determining a dynamic display mode of the ith picture to be displayed according to the dynamic effect parameters in the target dynamic display parameters;
determining the dynamic display progress of the ith picture to be displayed according to the display duration parameter in the target dynamic display parameters;
and controlling the ith picture to be displayed to be dynamically displayed according to the dynamic display mode according to the dynamic display progress.
Optionally, the configuration obtaining request includes the number of the pictures to be displayed, and the display configuration file includes m groups of the dynamic display parameters, where m is an integer greater than or equal to n;
the step of obtaining the target dynamic display parameters corresponding to the ith picture to be displayed from the display configuration file comprises the following steps:
determining n groups of continuous dynamic display parameters from m groups of dynamic display parameters;
and determining an ith group of dynamic display parameters in the n groups of continuous dynamic display parameters as the target dynamic display parameters corresponding to the ith picture to be displayed.
Optionally, the display configuration file corresponds to the target background music, and the display configuration file includes m groups of the dynamic display parameters, where m is an integer greater than or equal to n;
the step of obtaining the target dynamic display parameters corresponding to the ith picture to be displayed from the display configuration file comprises the following steps:
determining preset dynamic display parameters in the display configuration file, wherein the preset dynamic display parameters correspond to preset background music fragments in the target background music, and the preset background music fragments are at least one of climax fragments, main song starting fragments or trending fragments;
according to the preset dynamic display parameters, determining n groups of continuous dynamic display parameters from m groups of dynamic display parameters, wherein the n groups of continuous dynamic display parameters comprise the preset dynamic display parameters;
determining an ith group of dynamic display parameters in the n groups of continuous dynamic display parameters as the target dynamic display parameters corresponding to the ith picture to be displayed;
the method further comprises the steps of:
and when n pictures to be displayed are dynamically displayed, synchronously playing background music fragments corresponding to the n groups of continuous dynamic display parameters.
Optionally, the method further comprises:
receiving a selection operation of the target background music; adding a music identifier of the target background music to the configuration acquisition request;
or alternatively, the first and second heat exchangers may be,
carrying out picture identification on the picture to be displayed to obtain the picture content type of the picture to be displayed; determining a target music type corresponding to the picture content type; and adding the target music type to the configuration acquisition request, wherein the target background music belongs to the target music type.
Optionally, the determining the dynamic display progress of the ith picture to be displayed according to the display duration parameter in the target dynamic display parameters includes:
acquiring the displayed duration of the ith picture to be displayed;
and determining the dynamic display progress of the ith picture to be displayed according to the displayed time length and the display time length parameter.
Alternatively to this, the method may comprise,
when the dynamic display mode is moving, the dynamic display progress is the current moving distance; or alternatively, the first and second heat exchangers may be,
when the dynamic display mode is rotation, the dynamic display progress is the current rotation angle; or alternatively, the first and second heat exchangers may be,
when the dynamic display mode is scaling, the dynamic display progress is the current scaling; or alternatively, the first and second heat exchangers may be,
When the dynamic display mode is Gaussian blur, the dynamic display progress is the current Gaussian blur degree.
According to another aspect of the present application, there is provided a picture display device, the device comprising:
the first receiving module is used for receiving the selection operation of n pictures to be displayed, wherein n is an integer greater than or equal to 2;
the request sending module is used for sending a configuration acquisition request to the server according to the selection operation, wherein the configuration acquisition request is used for requesting acquisition of a display configuration file, and the display configuration file comprises dynamic display parameters configured for each picture to be displayed;
the second receiving module is used for receiving the display configuration file sent by the server;
and the picture display module is used for dynamically displaying the n pictures to be displayed according to the dynamic display parameters in the display configuration file.
Optionally, the image display module includes:
the parameter acquisition unit is used for acquiring a target dynamic display parameter corresponding to an ith picture to be displayed from the display configuration file, wherein i is an integer which is more than or equal to 1 and less than or equal to n;
the first determining unit is used for determining a dynamic display mode of the ith picture to be displayed according to the dynamic effect parameters in the target dynamic display parameters;
The second determining unit is used for determining the dynamic display progress of the ith picture to be displayed according to the display duration parameter in the target dynamic display parameters;
and the display control unit is used for controlling the ith picture to be displayed to be dynamically displayed according to the dynamic display mode according to the dynamic display progress.
Optionally, the configuration obtaining request includes the number of the pictures to be displayed, and the display configuration file includes m groups of the dynamic display parameters, where m is an integer greater than or equal to n;
optionally, the parameter obtaining unit is configured to:
determining n groups of continuous dynamic display parameters from m groups of dynamic display parameters;
and determining an ith group of dynamic display parameters in the n groups of continuous dynamic display parameters as the target dynamic display parameters corresponding to the ith picture to be displayed.
Optionally, the display configuration file corresponds to the target background music, and the display configuration file includes m groups of the dynamic display parameters, where m is an integer greater than or equal to n;
optionally, the parameter obtaining unit is configured to:
determining preset dynamic display parameters in the display configuration file, wherein the preset dynamic display parameters correspond to preset background music fragments in the target background music, and the preset background music fragments are at least one of climax fragments, main song starting fragments or trending fragments;
According to the preset dynamic display parameters, determining n groups of continuous dynamic display parameters from m groups of dynamic display parameters, wherein the n groups of continuous dynamic display parameters comprise the preset dynamic display parameters;
determining an ith group of dynamic display parameters in the n groups of continuous dynamic display parameters as the target dynamic display parameters corresponding to the ith picture to be displayed;
optionally, the apparatus further includes:
and the music playing module is used for synchronously playing the background music pieces corresponding to the n groups of continuous dynamic display parameters when n pictures to be displayed are dynamically displayed.
Optionally, the apparatus further includes:
the second receiving module is used for receiving the selection operation of the target background music; the first adding module is used for adding the music identifier of the target background music to the configuration acquisition request;
or alternatively, the first and second heat exchangers may be,
the picture identification module is used for carrying out picture identification on the picture to be displayed to obtain the picture content type of the picture to be displayed; determining a target music type corresponding to the picture content type; and the second adding module is used for adding the target music type to the configuration acquisition request, wherein the target background music belongs to the target music type.
Optionally, the second determining unit is configured to:
acquiring the displayed duration of the ith picture to be displayed;
and determining the dynamic display progress of the ith picture to be displayed according to the displayed time length and the display time length parameter.
Alternatively to this, the method may comprise,
when the dynamic display mode is moving, the dynamic display progress is the current moving distance; or alternatively, the first and second heat exchangers may be,
when the dynamic display mode is rotation, the dynamic display progress is the current rotation angle; or alternatively, the first and second heat exchangers may be,
when the dynamic display mode is scaling, the dynamic display progress is the current scaling; or alternatively, the first and second heat exchangers may be,
when the dynamic display mode is Gaussian blur, the dynamic display progress is the current Gaussian blur degree.
According to another aspect of the present application, there is provided a terminal comprising a processor and a memory, the memory storing at least one instruction, the instruction being loaded and executed by the processor to implement the picture presentation method of the above aspect.
According to another aspect of the present application, there is provided a computer readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the picture presentation method as described in the above aspect.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
after receiving the selection operation of n pictures to be displayed, the terminal sends a configuration acquisition request to the server, receives a display configuration file returned by the server, and dynamically displays the pictures to be displayed according to dynamic display parameters contained in the display configuration file; based on the picture display method in the embodiment of the application, the terminal can automatically configure dynamic display parameters for the picture to be displayed, and finally, the dynamic display of the picture to be displayed is realized, thereby improving the efficiency of editing the picture by a user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates an environmental schematic of an implementation environment provided by an exemplary embodiment of the present application;
FIG. 2 is a flow chart of a method for displaying pictures according to an exemplary embodiment of the present application;
Fig. 3 is a flowchart of a method for displaying a picture according to another exemplary embodiment of the present application;
FIG. 4 is a flowchart of a method for obtaining dynamic presentation parameters of a target according to an exemplary embodiment of the present application;
FIG. 5 is a flowchart illustrating a method for determining dynamic presentation progress in accordance with an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram of a dynamic presentation provided by an exemplary embodiment of the present application;
fig. 7 is a flowchart of a method for displaying a picture according to another exemplary embodiment of the present application;
fig. 8 is a schematic diagram showing a correspondence between preset dynamic presentation parameters and preset background music pieces according to an exemplary embodiment of the present application;
fig. 9 is a block diagram of a picture display device according to an exemplary embodiment of the present application;
fig. 10 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Referring to fig. 1, an environmental schematic diagram of an implementation environment provided by an exemplary embodiment of the present application is shown, where the implementation environment includes a terminal 100 and a server 110.
The terminal 100 may be a smart phone, a tablet computer, a portable computer, a wearable device, etc. In fig. 1, the terminal 100 is exemplified as a smart phone, but this configuration is not limited thereto. In the embodiment of the present application, the terminal 100 is installed with a video production application. The video production application may be independent of a multimedia browsing program (such as a gallery, a video player, etc.) preset by the terminal, and when the video production application is started, the terminal may display an image selection interface 101, where the image selection interface 101 may display a picture resource and/or a video resource stored in the terminal. The video production application may be used to produce short videos based on multiple pictures and/or videos.
The server 110 may be any one of a server, a server cluster formed by a plurality of servers, a virtual cloud storage, or a cloud computing center. The server 110 is used for providing background services for the terminal 100, and the server 110 has data storage capability and can store related data for picture presentation.
In a possible implementation manner, the terminal 100 receives a selection operation of the image selection interface 101 by a user, determines a picture to be displayed to be dynamically displayed, sends a configuration acquisition request to the server 110, and after receiving the configuration acquisition request, the server 110 sends a display configuration file to the terminal 100, and the terminal 100 can implement dynamic display of the picture to be displayed according to the display configuration file.
Referring to fig. 2, a method flowchart of a picture display method according to an exemplary embodiment of the present application is shown, where the method includes:
step 201, receiving a selection operation of n pictures to be displayed, where n is an integer greater than or equal to 2.
The picture display method provided by the embodiment of the application is implemented on the basis of manually selecting the picture by the user. In the above-mentioned implementation environment, the terminal is installed with a video production application program for producing short video, and when the video production application program is started, the terminal can display an image selection interface, and the image selection interface can display picture resources and/or video resources stored in the terminal. In the embodiment of the present application, the image selection interface is used to display the image resource, but the present application is not limited thereto. Further, when the user selects n pictures to be displayed on the image selection interface, the terminal receives a selection operation of the user on the n pictures to be displayed.
Optionally, the image selection interface of the video production application program further displays a selected number prompt control and a remaining selected number prompt control, wherein the selected number prompt control is used for displaying the number of pictures selected by the current user, and the remaining selected number prompt control is used for displaying the number of pictures which can be selected by the current user.
In one example, in order to ensure that the running process does not occupy too much memory, the video production application may set the upper limit number of the pictures to be displayed selected by the user to be 40, and when the user selects 8 pictures as the pictures to be displayed on the image selection interface, the selected number prompt control displays the number 8, and the remaining selected number prompt controls display the number 32.
In fact, the purpose of selecting the picture presentation by the user using the video creation application is to create a video based on the dynamic presentation of pictures from a plurality of pictures, so that, optionally, the terminal receives a selection operation of at least 2 pictures to be presented.
In one example, the video production application program sets the lower limit number of the pictures to be displayed to be 5, and the user displays a continuous selection prompt control in the process that the user selects 1 to 4 pictures as the pictures to be displayed through the image selection interface, and when the number of the pictures to be displayed selected by the user reaches 5, the continuous selection prompt control disappears.
Optionally, in addition to the method for displaying a picture based on the video production application provided by the above implementation environment, in the embodiment of the present application, the method for displaying a picture may also be applied to implement a function for dynamically displaying a picture, where the function for dynamically displaying a picture may be a function provided by a multimedia browsing program preset by a terminal. The picture library can provide a picture dynamic display function, and the picture dynamic display function is realized based on the picture display method.
Step 202, a configuration acquisition request is sent to a server according to a selection operation, wherein the configuration acquisition request is used for requesting acquisition of a display configuration file, and the display configuration file comprises dynamic display parameters configured for each picture to be displayed.
Further, after the user finishes the selection operation of the pictures to be displayed, the terminal generates a configuration acquisition request according to the selection operation of the user, and requests to acquire a display configuration file by sending the configuration acquisition request to the server, wherein the display configuration file comprises dynamic display parameters configured for each picture to be displayed.
Optionally, for the process of implementing dynamic display of the pictures to be displayed, the terminal side at least obtains information related to the display effect and display time of each picture to be displayed from the server side. Therefore, the dynamic display parameters included in the display configuration file at least provide information related to the display effect and the display time of each picture to be displayed, wherein each picture to be displayed is correspondingly configured with an independent dynamic display parameter.
Optionally, based on the selection operation of the user on the n pictures to be displayed, the terminal may obtain related information about the number of pictures, the picture sequence, the picture type, the picture size, and the like of the pictures to be displayed.
In a possible implementation manner, taking the configuration acquisition request including the picture number information of the picture to be displayed as an example, the server issues a display configuration file corresponding to the picture number information to the terminal, that is, the number of dynamic display parameters included in the display configuration file is consistent with the picture number.
In one example, a terminal obtains a selection operation of a user on 10 pictures to be displayed, generates a configuration obtaining request according to picture quantity information of the pictures to be displayed, a server receives the configuration obtaining request, analyzes the picture quantity information from the configuration obtaining request, generates a display configuration file corresponding to the picture quantity information, the display configuration file comprises 10 groups of dynamic display parameters, and sends the display configuration file comprising 10 groups of dynamic display parameters to the terminal.
In another possible implementation manner, in the presentation configuration file issued by the server to the terminal, the number of dynamic presentation parameters included in the presentation configuration file is greater than the number of pictures, that is, the dynamic presentation parameters included in the presentation configuration file are selectable by the terminal.
Optionally, when the terminal is set with an upper limit number related to the selection of the pictures to be displayed by the user, the number of the dynamic display parameters is not greater than the upper limit number; optionally, the number of dynamic display parameters below the server side may be set to be the upper limit number, and at this time, since the number of dynamic display parameters is a fixed value, the configuration acquisition request sent by the terminal to the server may include the picture number information of the pictures to be displayed selected by the current user.
In one example, a terminal obtains a selection operation of a user on 10 pictures to be displayed, generates a configuration obtaining request according to picture quantity information of the pictures to be displayed, receives the configuration obtaining request, analyzes picture quantity information from the configuration obtaining request, generates three sets of dynamic display parameters, each set of dynamic display parameters comprises 10 sets of dynamic display parameters, and sends a display configuration file comprising 30 sets of dynamic display parameters to the terminal.
In another example, the terminal sets the upper limit number of the pictures to be displayed to 40, the terminal generates a configuration acquisition request when the user completes the selection operation of the pictures to be displayed, the server receives the configuration acquisition request, and the server sends the display configuration file containing 40 groups of dynamic display parameters to the terminal.
In step 201, it has been described that the picture display method provided by the embodiment of the present application may be implemented based on the video production application installed in the terminal, and in this case, the server in the embodiment of the present application is the server corresponding to the video production application; or, the picture display method provided by the embodiment of the application is a function provided by a multimedia browsing program preset in a terminal, and at this time, the server in the embodiment of the application is a server corresponding to the multimedia browsing program preset in the terminal.
And 203, receiving the display configuration file sent by the server.
In one possible implementation, the server sends the display configuration file containing the dynamic display parameters to the terminal, and the terminal receives the display configuration file sent by the server and parses the display configuration file to obtain the dynamic display parameters.
Optionally, the display configuration file is preset by the server, and the preset display configuration file can meet the configuration requirement of the maximum number of dynamic display parameters of the terminal, if the terminal side is preset with the upper limit number of the pictures to be displayed, the preset display configuration file on the server side at least contains the dynamic display parameters of the upper limit number.
In a possible implementation manner, the number requirement of the terminal side on the dynamic display parameters does not exceed the upper limit number of the pictures to be displayed of the terminal, the server determines the dynamic display parameters which are not smaller than the number of the pictures to be displayed from preset display configuration files according to the information related to the number of the pictures to be displayed in the configuration acquisition request, packages the determined dynamic display parameters to generate display configuration files corresponding to the current configuration acquisition request, then sends the display configuration files to the terminal, and the terminal receives the display configuration files sent by the server.
Step 204, dynamically displaying the n pictures to be displayed according to the dynamic display parameters in the display configuration file.
In one possible implementation manner, the terminal obtains picture sequence information about the pictures to be displayed according to the selection operation, and configures the dynamic display parameters in the display configuration file to each picture to be displayed according to the picture sequence information.
Optionally, when the number of the dynamic display parameters is the same as that of the pictures to be displayed, sequentially configuring the dynamic display parameters to each picture to be displayed; when the dynamic display parameters are larger than the number of the pictures to be displayed, the terminal determines the dynamic display parameters required to be configured for each picture to be displayed from the display configuration file, and then configures the determined dynamic display parameters for each picture to be displayed.
Each group of dynamic display parameters corresponds to the same or different dynamic display effects, and the dynamic display effects such as rotation and movement of the pictures to be displayed are realized. If the user wants to change the dynamic display effect of the picture to be displayed during display, in a possible implementation manner, step 204 further includes the terminal receiving a replacement operation of the dynamic display parameters corresponding to the picture to be displayed.
In one example, the terminal dynamically displays n pictures to be displayed according to the dynamic display parameters in the display configuration file, and in the process of dynamically displaying each picture to be displayed, the user is not satisfied with the dynamic display effect of the (n-5) th picture to be displayed and tends to replace the dynamic display effect of the (n-5) th picture to be displayed with the dynamic display effect of the (n-2) th picture to be displayed. Optionally, the terminal displays an operable control for replacing the dynamic display effect on the relevant interface for dynamic display of the picture to be displayed, the operable control can provide selectable items including all the current dynamic display effects, and at this time, the user replaces the dynamic display effect of the (n-2) th picture to be displayed with the dynamic display effect of the (n-5) th picture to be displayed through the selectable items of the operable control.
In the above example, for the user, the change of the picture to be displayed is a change of the display effect based on the visual angle, and for the terminal, the user's replacement operation of the dynamic display effect is a replacement operation of the dynamic display parameter of the picture to be displayed.
In summary, in the embodiment of the present application, after receiving the selection operation on n pictures to be displayed, the terminal sends a configuration acquisition request to the server, and the terminal receives the display configuration file returned by the server, and dynamically displays the pictures to be displayed according to the dynamic display parameters included in the display configuration file.
In a possible implementation manner, a process of dynamically displaying a picture to be displayed by a terminal according to a dynamic display parameter is described by the following embodiment.
Referring to fig. 3, a method flowchart of a picture display method according to another exemplary embodiment of the present application is shown, where the method includes:
step 301, receiving a selection operation for n pictures to be displayed, where n is an integer greater than or equal to 2.
For the content of this step, please refer to step 201, and the embodiment of the present application is not described herein again.
Step 302, a configuration acquisition request is sent to a server according to a selection operation, wherein the configuration acquisition request is used for requesting acquisition of a display configuration file, and the display configuration file comprises dynamic display parameters configured for each picture to be displayed.
For the content of this step, please refer to step 202, and the embodiment of the present application is not described herein again.
Step 303, receiving the display configuration file sent by the server.
For the content of this step, please refer to step 203, and the embodiment of the present application is not described herein again.
Step 304, obtaining the target dynamic display parameters corresponding to the ith picture to be displayed from the display configuration file.
Optionally, the terminal obtains the number of the pictures to be displayed according to the selection operation of the user on the pictures to be displayed, and the number of the pictures to be displayed is included in the cooperation obtaining request sent by the terminal to the server.
The dynamic display parameters are used for dynamic display of the pictures to be displayed, and each picture to be displayed has a dynamic display process independent of each other during dynamic display, so that the pictures to be displayed sequentially run the respectively configured dynamic display parameters during dynamic display, namely the number of the dynamic display parameters is at least equal to the number of the pictures to be displayed.
In the embodiment of the application, in order to enrich the dynamic display effect of the picture to be displayed and realize the corresponding expansion function of dynamic display (such as increasing the playing of music fragments, etc.), the number of dynamic display parameters contained in the display configuration file is m groups, and m is an integer greater than or equal to n.
In one possible implementation, as shown in fig. 4, step 304 includes the following steps 304a and 304b.
Step 304a, determining n groups of continuous dynamic presentation parameters from m groups of dynamic presentation parameters.
The terminal analyzes m groups of dynamic display parameters from the display configuration file, determines the number of the required dynamic display parameters according to the number of the pictures to be displayed, and is n groups of continuous dynamic display parameters.
It should be noted that, regarding the judgment basis for determining the number of dynamic presentation parameters by the server, the present application is not limited thereto, and the following examples are given to illustrate possible judgment basis.
In one example, the number of dynamic presentation parameters included in the presentation configuration file corresponds to the number of pictures to be presented. After receiving the configuration acquisition request of the terminal, the server determines the number of dynamic display parameters to be issued according to the number of pictures to be displayed, which are included in the configuration acquisition request, and finally sends the dynamic display parameters consistent with the number of the pictures to be displayed to the terminal in the form of a display configuration file.
In another example, the dynamic display parameters included in the display configuration file are distributed in a set, the number of each set of dynamic display parameters is related to the number range of the pictures to be displayed, and after receiving the configuration acquisition request of the terminal, the server determines the issuing number of the dynamic display parameters according to the range of the number of the pictures to be displayed. If the terminal sets the upper limit number of the pictures to be displayed as 40, the terminal server presets four sets of dynamic display parameters, the number of the included dynamic display parameters is 10, 20, 30 and 40, the number of the pictures to be displayed received by the server is 12, and the server determines that the number of the pictures to be displayed is in the range of 11 to 20, so that a display configuration file containing a second set of dynamic display parameters is issued to the terminal.
Furthermore, regarding the judgment basis for determining n sets of continuous dynamic presentation parameters from m sets of dynamic presentation parameters by the terminal, the present application is not limited thereto, and possible judgment basis is exemplarily described by the following examples.
In one example, the terminal starts to acquire from the 1 st group of m groups of dynamic display parameters, and ends the acquisition of the dynamic display parameters after acquiring the n-th group of dynamic display parameters according to the number of pictures to be displayed. If the display configuration file comprises 10 groups of dynamic display parameters, the terminal determines that the number of the pictures to be displayed is 6 according to the selection operation, and the terminal determines the 1 st group to the 6 th group of the dynamic display parameters as the dynamic display parameters configured by the pictures to be displayed, namely, the terminal determines 6 groups of continuous dynamic display parameters; or the terminal determines the 3 rd group to the 8 th group of the dynamic display parameters as the dynamic display parameters configured by the pictures to be displayed.
Further, in the above example, if the user exits the relevant interface of the current dynamic display during the dynamic display of the picture and returns to the relevant interface of the picture selection to reselect the picture to be displayed, if the number of the pictures to be displayed reselected by the user does not exceed the number of the received dynamic display parameters, the terminal does not need to send a configuration acquisition request to the server again according to the new selection operation, and the received display configuration file can be repeatedly analyzed and the configuration of the dynamic display parameters is performed for the current picture to be displayed.
Step 304b, determining the ith group of dynamic display parameters in the n groups of continuous dynamic display parameters as target dynamic display parameters corresponding to the ith picture to be displayed.
Optionally, after determining n groups of continuous dynamic display parameters from m groups of dynamic display parameters, the terminal sequentially configures the n groups of continuous dynamic display parameters to n pictures to be displayed, namely, determining an ith group of dynamic display parameters in the n groups of continuous dynamic display parameters as target dynamic display parameters corresponding to the ith picture to be displayed. In the embodiment of the present application, i is an integer of 1 or more and n or less.
In one example, the number of pictures to be displayed is 6, and the terminal determines 6 groups of continuous dynamic display parameters. The terminal determines a 1 st group of dynamic display parameters in the 6 groups of continuous dynamic display parameters as target dynamic display parameters corresponding to the 1 st picture to be displayed; then, the terminal determines a 2 nd group of dynamic display parameters in the 6 groups of continuous dynamic display parameters as target dynamic display parameters corresponding to the 2 nd picture to be displayed; then, the terminal determines a 3 rd group of dynamic display parameters in the 6 groups of continuous dynamic display parameters as target dynamic display parameters corresponding to the 3 rd picture to be displayed; then, the terminal determines a 4 th group of dynamic display parameters in the 6 groups of continuous dynamic display parameters as target dynamic display parameters corresponding to the 4 th picture to be displayed; then, the terminal determines a 5 th group of dynamic display parameters in the 6 groups of continuous dynamic display parameters as target dynamic display parameters corresponding to the 5 th picture to be displayed; and finally, the terminal determines the 6 th group of dynamic display parameters in the 6 th group of continuous dynamic display parameters as target dynamic display parameters corresponding to the 6 th picture to be displayed.
Step 305, determining a dynamic display mode of the ith picture to be displayed according to the dynamic effect parameters in the target dynamic display parameters.
The above embodiments have explained that the terminal side obtains, from at least the server side, information related to the display effect and display time of each picture to be displayed. In the embodiment of the application, the dynamic display parameters comprise a dynamic effect parameter and a display duration parameter.
Optionally, the dynamic effect parameters include parameters for achieving a move, rotate, scale, and gaussian blur dynamic effect. When the dynamic effect parameters in the target dynamic display parameters of the ith picture to be displayed comprise parameters for realizing movement, the dynamic display mode of the ith picture to be displayed is movement; when the dynamic effect parameters in the target dynamic display parameters of the ith picture to be displayed comprise parameters for realizing rotation, the dynamic display mode of the ith picture to be displayed is rotation; when the dynamic effect parameters in the target dynamic display parameters of the ith picture to be displayed comprise parameters for realizing scaling, the dynamic display mode of the ith picture to be displayed is scaling; when the dynamic effect parameters in the target dynamic display parameters of the ith picture to be displayed comprise parameters for realizing Gaussian blur, the dynamic display mode of the ith picture to be displayed is Gaussian blur.
Step 306, determining the dynamic display progress of the ith picture to be displayed according to the display duration parameter in the target dynamic display parameters.
Optionally, in the process of dynamically displaying the pictures to be displayed, the dynamic display progress of each picture to be displayed can be determined according to the displayed time length and the display time length parameters of each picture to be displayed.
In one example, when the dynamic display manner is moving, the dynamic display progress is the current moving distance; when the dynamic display mode is rotation, the dynamic display progress is the current rotation angle; when the dynamic display mode is scaling, the dynamic display progress is the current scaling; when the dynamic display mode is Gaussian blur, the dynamic display progress is the current Gaussian blur degree.
In one possible implementation, as shown in fig. 5, step 306 includes step 306a and step 306b.
Step 306a, obtaining the displayed duration of the ith picture to be displayed.
Optionally, when the dynamic display mode is moving, the displayed duration of the ith picture to be displayed is the moved duration; when the dynamic display mode is rotation, the displayed time length of the ith picture to be displayed is the rotated time length; when the dynamic display mode is scaling, the displayed duration of the ith picture to be displayed is the scaled duration; when the dynamic display mode is Gaussian blur, the displayed duration of the ith picture to be displayed is Gaussian blur duration.
Step 306b, determining the dynamic display progress of the ith picture to be displayed according to the displayed time length and the display time length parameter.
Optionally, when the dynamic display mode is moving, the display duration parameter in the target dynamic display parameters indicates the moving duration of the corresponding picture to be displayed, and when the moving duration is over, the moving distance of the picture to be displayed is a fixed value. In the translation process, the real-time moving distance of the picture to be displayed is related to the moved duration, and if the terminal obtains the moved duration of the ith picture to be displayed, the current moving distance of the picture to be displayed can be determined, namely the dynamic display progress of the ith picture to be displayed is determined.
In one example, as shown in fig. 6 (a), the picture to be displayed is displayed as the position where the picture 601 is located before moving, and after the movement time t1, the picture 601 is moved to the right by s1, and the picture to be displayed is displayed as the position where the picture 601a is located after moving. The moving distance s1 is the dynamic display progress of the picture to be displayed.
In another possible implementation manner, the terminal determines the ratio of the current moving distance to the fixed moving distance as the dynamic display progress of the ith picture to be displayed, and the fixed moving distance is the distance that the picture to be displayed needs to move when the dynamic display is completed.
Optionally, when the dynamic display mode is rotation, the display duration parameter in the target dynamic display parameters indicates the rotation duration of the corresponding picture to be displayed, and when the rotation duration is over, the rotation angle of the picture to be displayed is a fixed value. In the rotating process, the real-time rotating angle of the picture to be displayed is related to the rotated time length, and when the terminal obtains the rotated time length of the ith picture to be displayed, the current rotating angle of the picture to be displayed can be determined, namely the dynamic display progress of the ith picture to be displayed is determined.
In one example, as shown in fig. 6 (b), the picture to be displayed is displayed as a picture 602, an initial rotation angle θ, before rotation 0 After the rotation time t2, the picture 602 rotates counterclockwise by 30 degrees=0°, and the picture to be displayed is displayed as a picture 602a after the rotation. Wherein the angle of rotation theta 1 Namely the picture to be displayedIs provided.
In another possible implementation manner, the terminal determines the ratio of the current rotation angle to the fixed rotation angle as the dynamic display progress of the ith picture to be displayed, and the fixed rotation angle is the angle at which the picture to be displayed needs to rotate when the dynamic display is completed.
Optionally, when the dynamic display mode is scaling, the display duration parameter in the target dynamic display parameter indicates the scaling duration of the corresponding picture to be displayed. In the zooming process, the real-time zooming ratio of the picture to be displayed is related to the zoomed time length, and when the terminal obtains the zoomed time length of the ith picture to be displayed, the current zooming ratio of the picture to be displayed can be determined, namely the dynamic displaying progress of the ith picture to be displayed is determined.
In one example, as shown in fig. 6 (c), the picture to be displayed is displayed as a picture 603 before moving, and after a scaling time t3, the picture to be displayed is displayed as a picture 603a after scaling. The scaling of the picture 603a is the current scaling of the time t3, and the current scaling is the dynamic display progress of the picture to be displayed, compared with the scaling of the picture 603.
In another possible implementation manner, the terminal determines the ratio of the current scaling to the fixed scaling as the dynamic display progress of the ith picture to be displayed, and the fixed scaling is the scaling effect required to be achieved when the dynamic display of the picture to be displayed is completed.
Optionally, when the dynamic display mode is gaussian blur, the display duration parameter in the target dynamic display parameters indicates the gaussian blur duration of the corresponding picture to be displayed. In the Gaussian blur process, the real-time Gaussian blur degree of the picture to be displayed is related to the Gaussian blur duration, and when the terminal obtains the Gaussian blur duration of the ith picture to be displayed, the current Gaussian blur degree of the picture to be displayed can be determined, namely the dynamic display progress of the ith picture to be displayed is determined.
In one example, as shown in fig. 6 (d), the picture to be displayed is displayed as a picture 604 before the gaussian blur, and after the gaussian blur time t4, the picture to be displayed is displayed as a picture 604a after the gaussian blur. The gaussian blur degree of the picture 604a is the current gaussian blur degree at time t4, and the current gaussian blur degree is the dynamic display progress of the picture to be displayed, compared with the gaussian blur degree of the picture 603.
In another possible implementation manner, the terminal determines the ratio of the current gaussian blur degree to the fixed gaussian blur degree as the dynamic display progress of the ith picture to be displayed, and the fixed gaussian blur degree is the gaussian blur degree required to be realized when the dynamic display of the picture to be displayed is completed.
Step 307, according to the dynamic display mode, controlling the ith picture to be displayed to dynamically display according to the dynamic display progress.
In the dynamic display process, the terminal realizes dynamic display of the static picture by loading dynamic display parameters configured corresponding to each picture to be displayed. In a possible implementation manner, the terminal controls the ith picture to be displayed to dynamically display according to the dynamic display mode corresponding to the ith picture to be displayed.
On the basis of the embodiment, the dynamic display parameters comprise the dynamic effect parameters and the display duration parameters, the terminal determines the dynamic display mode of the ith picture to be displayed according to the dynamic effect parameters in the target dynamic display parameters, determines the dynamic display progress of the ith picture to be displayed according to the display duration parameters in the target dynamic display parameters, and finally realizes the control of the terminal on the dynamic display of the ith picture to be displayed. The method provided by the embodiment of the application can enable the terminal to display a plurality of pictures to be displayed in a plurality of dynamic display modes, each picture to be displayed is respectively configured with the corresponding dynamic display parameter, the effect that different pictures to be displayed are displayed in different dynamic display modes can be realized, and good picture dynamic display effect of the terminal is ensured while the picture editing efficiency of the user is improved.
The picture display method provided by the embodiment of the application not only can realize dynamic display of the picture to be displayed based on movement, rotation, scaling and Gaussian blur in the terminal, but also can realize playing of background music when the picture to be displayed is displayed.
Referring to fig. 7, a method flowchart of a picture display method according to another exemplary embodiment of the present application is shown, where the method includes:
step 701, receiving a selection operation on n pictures to be displayed, where n is an integer greater than or equal to 2.
For the content of this step, please refer to step 201, and the embodiment of the present application is not described herein again.
Step 702, sending a configuration acquisition request to a server according to a selection operation, where the configuration acquisition request is used to request acquisition of a display configuration file, and the display configuration file includes dynamic display parameters configured for each picture to be displayed.
For the content of this step, please refer to step 202, and the embodiment of the present application is not described herein again.
In step 703, a selection operation of the target background music is received.
Optionally, in step 702, in addition to sending a configuration acquisition request to the server according to a user selection operation on n pictures to be displayed, the terminal sends a configuration acquisition request to the server according to a user selection operation on the target background music.
In one example, after the image selection interface of the video production application completes the selection of the picture to be displayed, the user may also complete the selection of the target background music at the background music selection interface of the video production application, and the video production application may provide an online audio search function or access a local audio storage function. After the user finishes selecting the target background music, the terminal sends a configuration acquisition request containing the target background music to the server according to the selection operation of the target background music.
Step 704, adding a music identifier of the target background music to the configuration acquisition request.
Further, the terminal generates a configuration acquisition request according to the selection operation of the user on the picture to be displayed, and adds a music identifier of the target background music to the configuration acquisition request according to the selection operation of the user on the target background music, wherein the music identifier is used for identifying the target background music on the server side.
Optionally, the music identifier includes at least song name information, and in order to improve accuracy of identifying the target background music on the server side, the music identifier may further include at least one of related information such as a word starter, a singer, a style, an album, and the like.
In a possible implementation, step 703 and step 704 propose a method of obtaining the target background music based on the user selection.
In another possible implementation, steps 705 to 707 propose another acquisition method of the target background music, that is, the acquisition method of the target background music based on the picture content type.
Step 705, performing picture identification on the picture to be displayed to obtain the picture content type of the picture to be displayed.
When a user only completes the selection operation of n pictures to be displayed, the terminal realizes intelligent recommendation of target background music of the n pictures to be displayed in order to improve the dynamic display effect of the pictures to be displayed.
Optionally, intelligent recommendation of the target background music is achieved through picture recognition. The terminal performs picture identification on the picture to be displayed to obtain a picture content type of the picture to be displayed, wherein the picture content type comprises a landscape type, a character type, an animal type and other possible picture content types, or the terminal performs further picture identification on the picture to be displayed based on the possible picture content types, for example, the terminal can further refine the landscape type according to the landscape characteristics.
Step 706, determining a target music type corresponding to the picture content type.
In order to improve the suitability of target background music and the picture to be displayed, different picture content types correspond to different music types. For example, the landscape type of the picture to be displayed including the desert mountain corresponds to the far-reaching and wide music type; as another example, the animal type that includes the loved one's pet to be shown picture corresponds to activating a cheerful music type.
In a possible implementation manner, the terminal determines the picture content type of the picture to be displayed according to the picture identification result of the picture to be displayed, and further determines the target music type corresponding to the picture content type.
Step 707, adding a target music type to the configuration acquisition request, wherein the target background music belongs to the target music type.
Optionally, after determining the target music type of the picture to be displayed, the terminal adds the target music type to the configuration acquisition request. Further, after receiving the configuration acquisition request sent by the terminal, the server may acquire not only information related to the number of pictures to be displayed from the configuration acquisition request, but also information related to the target background music (i.e., the target music type).
Further, the server generates a display configuration file according to the configuration acquisition request, wherein the display configuration file comprises dynamic display parameters configured for each picture to be displayed, and the dynamic display parameters also comprise preset dynamic display parameters for realizing background music playing of the pictures to be displayed.
Step 708, receiving the presentation configuration file sent by the server.
In the embodiment of the present application, step 708, in addition to the content set forth in step 203, if the acquisition mode based on the target background music selected by the user set forth in step 703 and step 704 is based on the server side, searches and identifies the target background music according to the music identifier included in the configuration acquisition request, and generates the display configuration file by combining the related information of the target background music and the number information of the pictures to be displayed.
Optionally, if the acquisition mode of the target background music based on the picture content types set forth in steps 705 to 707 is based on the acquisition mode, the server side stores the target background music corresponding to different target music types in advance, or an online search entry for determining the target background music according to the target music types is associated in advance, and after the server determines the target background music in the determination mode, the server generates the display configuration file by combining the number information of the pictures to be displayed. In one possible implementation, after the server completes the generation of the presentation configuration file, the presentation configuration file is sent to the terminal, and the terminal receives the presentation configuration file sent by the server.
Step 709, determining a preset dynamic exhibition parameter in the exhibition configuration file, where the preset dynamic exhibition parameter corresponds to a preset background music piece in the target background music.
In the embodiment of the application, the display configuration file is also used for playing the background music of the picture to be displayed, the display configuration file corresponds to the target background music, the display configuration file contains m groups of dynamic display parameters, and m is an integer greater than or equal to n. Wherein the target background music is background music selected by the user.
Generally, the whole duration of the background music is longer than the display time of the picture to be displayed, so that selecting a suitable music piece from the background music can further improve the display effect of the picture to be displayed.
In order to further improve the display effect of the picture to be displayed, in a possible implementation manner, the terminal determines a preset dynamic display parameter in the display configuration file, wherein the preset dynamic display parameter corresponds to a preset background music piece in the target background music. The preset background music segment is at least one of a climax segment, a main song starting segment or a trending segment. In one example, for a presentation profile corresponding to the target background music, the dynamic presentation parameters include a dynamic presentation parameter corresponding to a climax piece in the target background music, a dynamic presentation parameter corresponding to a main song start piece in the target background music, and a dynamic presentation parameter corresponding to a hot piece in the target background music, and after receiving the presentation profile, the terminal determines a preset dynamic presentation parameter in the presentation profile, where the preset dynamic presentation parameter corresponds to a preset background music piece in the target background music.
Schematically, as shown in fig. 8, according to the type of target music contained in the configuration acquisition request, the server determines a piece of target background music with a duration of 3 minutes as shown in fig. 8, optionally, the server divides the target background music into a plurality of background music pieces according to the cadence of the karst, and correspondingly, in a presentation configuration file issued to the terminal, each dynamic presentation parameter corresponds to each background music piece.
Further, the terminal sets the preset background music segment as a climax segment in the target background music, as shown in fig. 8, and in the display configuration file, the terminal analyzes a dynamic display parameter Q1 corresponding to the climax segment P1. Optionally, the terminal obtains at least dynamic display parameters satisfying the number from the front and back of the dynamic display parameters Q1 according to the number of the pictures to be displayed, if the number of the pictures to be displayed is 8, the terminal obtains 3 dynamic display parameters before the dynamic display parameters Q1, and obtains 4 dynamic display parameters after the dynamic display parameters Q1 (the number distribution of the dynamic display parameters before and after the dynamic display parameters is not limited), and finally, the terminal determines the obtained dynamic display parameters as dynamic display parameters corresponding to the background music piece played during dynamic display.
Step 710, determining n groups of continuous dynamic display parameters from m groups of dynamic display parameters according to the preset dynamic display parameters, wherein the n groups of continuous dynamic display parameters comprise the preset dynamic display parameters.
In a possible implementation manner, the terminal determines the type of the preset background music piece (at least one of a climax piece, a goodwill starting piece and a treble piece) played by the picture to be displayed, the preset background music piece under the type is correspondingly configured with preset dynamic display parameters, and the terminal determines n groups of continuous dynamic display parameters from m groups of dynamic display parameters according to the determined type of the preset background music piece, wherein the n groups of continuous dynamic display parameters comprise the preset dynamic display parameters.
And 711, determining the ith group of dynamic display parameters in the n groups of continuous dynamic display parameters as target dynamic display parameters corresponding to the ith picture to be displayed.
Please refer to the above embodiments for the content of this step, and the embodiments of the present application are not described herein again.
Step 712, when n pictures to be displayed are dynamically displayed, playing background music pieces corresponding to n groups of continuous dynamic display parameters synchronously.
Optionally, the terminal not only receives the selection operation of the user on the picture to be displayed, but also receives the selection operation of the user on the target background music, or determines the target music type of the picture to be displayed through picture identification; then, the terminal generates a configuration acquisition request according to the number of pictures to be displayed and the music identification or the target music type; finally, the terminal synchronously plays the background music fragments corresponding to n groups of continuous dynamic display parameters when dynamically displaying n pictures to be displayed.
In the embodiment of the application, another picture display method is provided, a terminal sends a configuration acquisition request containing target background music to a server, the server issues a display configuration file related to the target background music, the terminal determines preset dynamic display parameters from the display configuration file, the preset dynamic display parameters correspond to preset background music pieces in the target background music, and when a picture to be displayed is dynamically displayed, the terminal plays the background music pieces of the picture to be displayed according to the preset dynamic display parameters. According to the embodiment of the application, the picture display method of the terminal is further enriched by synchronously realizing the picture dynamic display and the background music piece play, and the preset background music piece is at least one of the climax piece, the main song starting piece or the popular piece, so that the selection of the preset background music piece has diversity, and the play effect of the background music piece can be improved.
Fig. 9 is a block diagram of a picture display device according to an exemplary embodiment of the present application, the device includes:
the first receiving module 901 is configured to receive a selection operation for n pictures to be displayed, where n is an integer greater than or equal to 2;
A request sending module 902, configured to send a configuration acquisition request to a server according to the selection operation, where the configuration acquisition request is used to request acquisition of a display configuration file, and the display configuration file includes dynamic display parameters configured for each picture to be displayed;
a second receiving module 903, configured to receive the display configuration file sent by the server;
and the picture display module 904 is configured to dynamically display n pictures to be displayed according to the dynamic display parameters in the display configuration file.
Optionally, the picture display module 904 includes:
the parameter acquisition unit is used for acquiring a target dynamic display parameter corresponding to an ith picture to be displayed from the display configuration file, wherein i is an integer which is more than or equal to 1 and less than or equal to n;
the first determining unit is used for determining a dynamic display mode of the ith picture to be displayed according to the dynamic effect parameters in the target dynamic display parameters;
the second determining unit is used for determining the dynamic display progress of the ith picture to be displayed according to the display duration parameter in the target dynamic display parameters;
and the display control unit is used for controlling the ith picture to be displayed to be dynamically displayed according to the dynamic display mode according to the dynamic display progress.
Optionally, the configuration obtaining request includes the number of the pictures to be displayed, and the display configuration file includes m groups of the dynamic display parameters, where m is an integer greater than or equal to n;
optionally, the parameter obtaining unit is configured to:
determining n groups of continuous dynamic display parameters from m groups of dynamic display parameters;
and determining an ith group of dynamic display parameters in the n groups of continuous dynamic display parameters as the target dynamic display parameters corresponding to the ith picture to be displayed.
Optionally, the display configuration file corresponds to the target background music, and the display configuration file includes m groups of the dynamic display parameters, where m is an integer greater than or equal to n;
optionally, the parameter obtaining unit is configured to:
determining preset dynamic display parameters in the display configuration file, wherein the preset dynamic display parameters correspond to preset background music fragments in the target background music, and the preset background music fragments are at least one of climax fragments, main song starting fragments or trending fragments;
according to the preset dynamic display parameters, determining n groups of continuous dynamic display parameters from m groups of dynamic display parameters, wherein the n groups of continuous dynamic display parameters comprise the preset dynamic display parameters;
Determining an ith group of dynamic display parameters in the n groups of continuous dynamic display parameters as the target dynamic display parameters corresponding to the ith picture to be displayed;
optionally, the apparatus further includes:
and the music playing module is used for synchronously playing the background music pieces corresponding to the n groups of continuous dynamic display parameters when n pictures to be displayed are dynamically displayed.
Optionally, the apparatus further includes:
a second receiving module 903, configured to receive a selection operation of the target background music; the first adding module is used for adding the music identifier of the target background music to the configuration acquisition request;
or alternatively, the first and second heat exchangers may be,
the picture identification module is used for carrying out picture identification on the picture to be displayed to obtain the picture content type of the picture to be displayed; determining a target music type corresponding to the picture content type; and the second adding module is used for adding the target music type to the configuration acquisition request, wherein the target background music belongs to the target music type.
Optionally, the second determining unit is configured to:
acquiring the displayed duration of the ith picture to be displayed;
and determining the dynamic display progress of the ith picture to be displayed according to the displayed time length and the display time length parameter.
Alternatively to this, the method may comprise,
when the dynamic display mode is moving, the dynamic display progress is the current moving distance; or alternatively, the first and second heat exchangers may be,
when the dynamic display mode is rotation, the dynamic display progress is the current rotation angle; or alternatively, the first and second heat exchangers may be,
when the dynamic display mode is scaling, the dynamic display progress is the current scaling; or alternatively, the first and second heat exchangers may be,
when the dynamic display mode is Gaussian blur, the dynamic display progress is the current Gaussian blur degree.
In summary, in the embodiment of the present application, after receiving the selection operation on n pictures to be displayed, the terminal sends a configuration acquisition request to the server, and the terminal receives the display configuration file returned by the server, and dynamically displays the pictures to be displayed according to the dynamic display parameters included in the display configuration file. According to the picture display method provided by the embodiment of the application, the terminal can automatically configure the dynamic display parameters for the picture to be displayed, and finally, the dynamic display of the picture to be displayed is realized, so that the picture editing efficiency of a user is improved, and the user experience of related application programs is enhanced.
Fig. 10 shows a block diagram of a terminal 1000 according to an exemplary embodiment of the present application. The terminal 1000 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 1000 can also be referred to by other names of user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, terminal 1000 can include: a processor 1001 and a memory 1002.
The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 1001 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1001 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. Memory 1002 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1002 is used to store at least one instruction for execution by processor 1001 to implement the picture presentation method provided by the method embodiments of the present application.
In some embodiments, terminal 1000 can optionally further include: a peripheral interface 1003, and at least one peripheral. The processor 1001, the memory 1002, and the peripheral interface 1003 may be connected by a bus or signal line. The various peripheral devices may be connected to the peripheral device interface 1003 via a bus, signal wire, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, touch display 1005, camera 1006, audio circuitry 1007, positioning component 1008, and power supply 1009.
Peripheral interface 1003 may be used to connect I/O (Input/Output) related at least one peripheral to processor 1001 and memory 1002. In some embodiments, processor 1001, memory 1002, and peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 1001, memory 1002, and peripheral interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
Radio Frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. Radio frequency circuitry 1004 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. Radio frequency circuitry 1004 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuitry 1004 may also include NFC (Near Field Communication ) related circuitry, which is not limiting of the application.
The display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 1005 is a touch screen, the display 1005 also has the ability to capture touch signals at or above the surface of the display 1005. The touch signal may be input to the processor 1001 as a control signal for processing. At this time, the display 1005 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, display 1005 may be one, providing a front panel of terminal 1000; in other embodiments, display 1005 may be provided in at least two, separately provided on different surfaces of terminal 1000 or in a folded configuration; in still other embodiments, display 1005 may be a flexible display disposed on a curved surface or a folded surface of terminal 1000. Even more, the display 1005 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The display 1005 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 1006 is used to capture images or video. Optionally, camera assembly 1006 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 1006 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 1007 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 1001 for processing, or inputting the electric signals to the radio frequency circuit 1004 for voice communication. For purposes of stereo acquisition or noise reduction, the microphone may be multiple, each located at a different portion of terminal 1000. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, audio circuit 1007 may also include a headphone jack.
The location component 1008 is used to locate the current geographic location of terminal 1000 to enable navigation or LBS (Location Based Service, location-based services). The positioning component 1008 may be a positioning component based on the united states GPS (Global Positioning System ), the beidou system of china, or the galileo system of russia.
Power supply 1009 is used to power the various components in terminal 1000. The power source 1009 may be alternating current, direct current, disposable battery or rechargeable battery. When the power source 1009 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1000 can further include one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyroscope sensor 1012, pressure sensor 1013, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
The acceleration sensor 1011 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 1000. For example, the acceleration sensor 1011 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1001 may control the touch display 1005 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 1012 may detect the body direction and the rotation angle of the terminal 1000, and the gyro sensor 1012 may collect the 3D motion of the user to the terminal 1000 in cooperation with the acceleration sensor 1011. The processor 1001 may implement the following functions according to the data collected by the gyro sensor 1012: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
Pressure sensor 1013 may be disposed on a side frame of terminal 1000 and/or on an underlying layer of touch display 1005. When the pressure sensor 1013 is provided at a side frame of the terminal 1000, a grip signal of the terminal 1000 by a user can be detected, and the processor 1001 performs right-and-left hand recognition or quick operation according to the grip signal collected by the pressure sensor 1013. When the pressure sensor 1013 is provided at the lower layer of the touch display 1005, the processor 1001 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 1005. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 1014 is used to collect a fingerprint of the user, and the processor 1001 identifies the identity of the user based on the fingerprint collected by the fingerprint sensor 1014, or the fingerprint sensor 1014 identifies the identity of the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 1014 may be provided on the front, back or side of terminal 1000. When a physical key or vendor Logo is provided on terminal 1000, fingerprint sensor 1014 may be integrated with the physical key or vendor Logo.
The optical sensor 1015 is used to collect ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the touch display 1005 based on the ambient light intensity collected by the optical sensor 1015. Specifically, when the intensity of the ambient light is high, the display brightness of the touch display screen 1005 is turned up; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is turned down. In another embodiment, the processor 1001 may dynamically adjust the shooting parameters of the camera module 1006 according to the ambient light intensity collected by the optical sensor 1015.
Proximity sensor 1016, also referred to as a distance sensor, is typically located on the front panel of terminal 1000. Proximity sensor 1016 is used to collect the distance between the user and the front of terminal 1000. In one embodiment, when proximity sensor 1016 detects a gradual decrease in the distance between the user and the front face of terminal 1000, processor 1001 controls touch display 1005 to switch from the bright screen state to the off screen state; when proximity sensor 1016 detects a gradual increase in the distance between the user and the front face of terminal 1000, processor 1001 controls touch display 1005 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 10 is not limiting and that terminal 1000 can include more or fewer components than shown, or certain components can be combined, or a different arrangement of components can be employed.
The embodiment of the application also provides a computer readable storage medium, wherein at least one instruction, at least one section of program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by a processor to realize the picture display method provided by the embodiment of the method.
Optionally, an embodiment of the present application further provides a computer program product containing instructions, which when run on a computer, cause the computer to perform the picture presentation method described in the above aspects.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the present application is not intended to limit the application, but rather, the application is to be construed as limited to the appended claims.

Claims (9)

1. A picture display method, the method comprising:
receiving selection operation of n pictures to be displayed, wherein n is an integer greater than or equal to 2;
sending a configuration acquisition request to a server according to the selection operation, wherein the configuration acquisition request is used for requesting acquisition of a display configuration file, the display configuration file comprises dynamic display parameters configured for each picture to be displayed, and the configuration acquisition request comprises the quantity information of the pictures to be displayed;
Receiving the display configuration file sent by the server;
obtaining a target dynamic display parameter corresponding to an ith picture to be displayed from the display configuration file, wherein i is an integer greater than or equal to 1 and less than or equal to n;
determining a dynamic display mode of the ith picture to be displayed according to the dynamic effect parameters in the target dynamic display parameters;
determining the dynamic display progress of the ith picture to be displayed according to the display duration parameter in the target dynamic display parameters;
and controlling the ith picture to be displayed to be dynamically displayed according to the dynamic display mode according to the dynamic display progress.
2. The method of claim 1, wherein the presentation configuration file includes m groups of the dynamic presentation parameters, m being an integer greater than or equal to n;
the step of obtaining the target dynamic display parameters corresponding to the ith picture to be displayed from the display configuration file comprises the following steps:
determining n groups of continuous dynamic display parameters from m groups of dynamic display parameters;
and determining an ith group of dynamic display parameters in the n groups of continuous dynamic display parameters as the target dynamic display parameters corresponding to the ith picture to be displayed.
3. The method of claim 1, wherein the presentation profile corresponds to a target background music, and the presentation profile includes m sets of the dynamic presentation parameters, m being an integer greater than or equal to n;
the step of obtaining the target dynamic display parameters corresponding to the ith picture to be displayed from the display configuration file comprises the following steps:
determining preset dynamic display parameters in the display configuration file, wherein the preset dynamic display parameters correspond to preset background music fragments in the target background music, and the preset background music fragments are at least one of climax fragments, main song starting fragments or trending fragments;
according to the preset dynamic display parameters, determining n groups of continuous dynamic display parameters from m groups of dynamic display parameters, wherein the n groups of continuous dynamic display parameters comprise the preset dynamic display parameters;
determining an ith group of dynamic display parameters in the n groups of continuous dynamic display parameters as the target dynamic display parameters corresponding to the ith picture to be displayed;
the method further comprises the steps of:
and when n pictures to be displayed are dynamically displayed, synchronously playing background music fragments corresponding to the n groups of continuous dynamic display parameters.
4. A method according to claim 3, characterized in that the method further comprises:
receiving a selection operation of the target background music; adding a music identifier of the target background music to the configuration acquisition request;
or alternatively, the first and second heat exchangers may be,
carrying out picture identification on the picture to be displayed to obtain the picture content type of the picture to be displayed; determining a target music type corresponding to the picture content type; and adding the target music type to the configuration acquisition request, wherein the target background music belongs to the target music type.
5. The method according to any one of claims 1 to 4, wherein the determining the dynamic display progress of the ith picture to be displayed according to the display duration parameter in the target dynamic display parameters includes:
acquiring the displayed duration of the ith picture to be displayed;
and determining the dynamic display progress of the ith picture to be displayed according to the displayed time length and the display time length parameter.
6. The method according to any one of claim 1 to 4, wherein,
when the dynamic display mode is moving, the dynamic display progress is the current moving distance; or alternatively, the first and second heat exchangers may be,
When the dynamic display mode is rotation, the dynamic display progress is the current rotation angle; or alternatively, the first and second heat exchangers may be,
when the dynamic display mode is scaling, the dynamic display progress is the current scaling; or alternatively, the first and second heat exchangers may be,
when the dynamic display mode is Gaussian blur, the dynamic display progress is the current Gaussian blur degree.
7. A picture display device, the device comprising:
the first receiving module is used for receiving the selection operation of n pictures to be displayed, wherein n is an integer greater than or equal to 2;
the request sending module is used for sending a configuration acquisition request to the server according to the selection operation, wherein the configuration acquisition request is used for requesting to acquire a display configuration file, the display configuration file comprises dynamic display parameters configured for each picture to be displayed, and the configuration acquisition request comprises the quantity information of the pictures to be displayed;
the second receiving module is used for receiving the display configuration file sent by the server;
the picture display device also comprises a parameter acquisition unit, a first determination unit, a second determination unit and a display control unit,
the parameter acquisition unit is used for acquiring a target dynamic display parameter corresponding to an ith picture to be displayed from the display configuration file, wherein i is an integer greater than or equal to 1 and less than or equal to n;
The first determining unit is used for determining a dynamic display mode of the ith picture to be displayed according to the dynamic effect parameters in the target dynamic display parameters;
the second determining unit is used for determining the dynamic display progress of the ith picture to be displayed according to the display duration parameter in the target dynamic display parameters;
the display control unit is used for controlling the ith picture to be displayed to be dynamically displayed according to the dynamic display mode according to the dynamic display progress.
8. A terminal comprising a processor and a memory, wherein the memory has stored therein at least one instruction that is loaded and executed by the processor to implement the picture presentation method of any of claims 1 to 6.
9. A computer readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to implement the picture presentation method of any one of claims 1 to 6.
CN201911225029.9A 2019-12-04 2019-12-04 Picture display method, device, terminal and storage medium Active CN111028315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911225029.9A CN111028315B (en) 2019-12-04 2019-12-04 Picture display method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911225029.9A CN111028315B (en) 2019-12-04 2019-12-04 Picture display method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111028315A CN111028315A (en) 2020-04-17
CN111028315B true CN111028315B (en) 2023-09-29

Family

ID=70204189

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911225029.9A Active CN111028315B (en) 2019-12-04 2019-12-04 Picture display method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111028315B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512187B (en) * 2015-11-25 2021-05-14 腾讯科技(深圳)有限公司 Information display method and information display device based on display picture
CN110069728B (en) * 2017-10-30 2022-08-12 北京京东尚科信息技术有限公司 Method and device for displaying pictures
CN108933814A (en) * 2018-05-31 2018-12-04 康键信息技术(深圳)有限公司 electronic device, image processing method and storage medium

Also Published As

Publication number Publication date
CN111028315A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN110336960B (en) Video synthesis method, device, terminal and storage medium
US11557322B2 (en) Method and device for generating multimedia resource
CN110233976B (en) Video synthesis method and device
CN107885533B (en) Method and device for managing component codes
CN110545476B (en) Video synthesis method and device, computer equipment and storage medium
CN108268187A (en) The display methods and device of intelligent terminal
WO2020125334A1 (en) Music playing method, device, terminal and storage medium
CN109168073B (en) Method and device for displaying cover of live broadcast room
EP3941037A1 (en) Editing template generating method and apparatus, electronic device, and storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN109068160B (en) Method, device and system for linking videos
CN111711838B (en) Video switching method, device, terminal, server and storage medium
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN110248236B (en) Video playing method, device, terminal and storage medium
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
WO2019242235A1 (en) Audio mixing method and apparatus, and storage medium
WO2022095465A1 (en) Information display method and apparatus
CN114546227B (en) Virtual lens control method, device, computer equipment and medium
CN111402844B (en) Song chorus method, device and system
CN109547847B (en) Method and device for adding video information and computer readable storage medium
CN112822544B (en) Video material file generation method, video synthesis method, device and medium
CN111031394B (en) Video production method, device, equipment and storage medium
CN112616082A (en) Video preview method, device, terminal and storage medium
WO2022227589A1 (en) Audio processing method and apparatus
CN113076286B (en) Method, device, equipment and readable storage medium for acquiring multimedia file

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
GR01 Patent grant
GR01 Patent grant