Methods, devices, electronic devices, and storage media for previewing images

The integration of a first interface component in the Camera preview page for dynamic display of media database frames addresses inefficiencies in content creation systems, enabling simultaneous preview and selection of media data, thereby improving user interaction and reducing time to generate output media.

JP7872895B2Active Publication Date: 2026-06-10DOUYIN VISION CO LTD

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
DOUYIN VISION CO LTD
Filing Date
2023-10-08
Publication Date
2026-06-10

AI Technical Summary

Technical Problem

Existing content creation systems, such as short video applications, require users to switch between camera view and media database views, leading to inefficiencies in previewing and selecting media data, which increases the time required to acquire output media data.

Method used

A method and apparatus that integrates a first interface component in the Camera preview page to simultaneously display at least two frames of preview images from a media database, allowing users to dynamically switch between camera views and media database content, and optionally apply visual effects, thereby simplifying the decision-making process.

🎯Benefits of technology

This approach enhances user interaction efficiency by allowing simultaneous preview of real-time shooting and existing media data, reducing the need for separate page launches and searches, thus speeding up the generation and uploading of output media data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007872895000001
    Figure 0007872895000001
  • Figure 0007872895000002
    Figure 0007872895000002
  • Figure 0007872895000003
    Figure 0007872895000003
Patent Text Reader

Abstract

The image preview method, device, electronic device, and storage medium provided by the present disclosure include: activating a camera viewfinder page in response to a camera activation command; the camera viewfinder page including a first interface component, which provides an interaction entry for a media database and displays a corresponding preview image based on the first interface component; the first interface component dynamically displays at least two frames of the preview image within a first period of time, the preview image being generated based on media data in the media database; and providing the first interface component capable of dynamically displaying the preview image within the camera viewfinder page, which allows the camera viewfinder page to dynamically display the contents of the media database while simultaneously realizing the camera view, thereby allowing a user to simultaneously preview the results of capturing media data and loading existing media data in real time by observing the camera viewfinder page.
Need to check novelty before this filing date? Find Prior Art

Description

【Technical Field】 【0001】 This disclosure relates to the field of Internet technology, and particularly to a method, apparatus, electronic device, and storage medium for previewing images. 【Background Art】 【0002】 Currently, content creation system applications exemplified by short video applications are loved by users for their rich and diverse content. Here, media data such as videos and images are used as the main content display formats. 【0003】 In the prior art, on the client terminal corresponding to the content creation system application, by triggering camera control, Camera preview page can be called to capture media data, or by triggering media database control, a media database page can be called to load existing media data, and finally output media data for editing and uploading to the content creation system application can be obtained. 【Summary of the Invention】 【Problems to be Solved by the Invention】 【0004】 Embodiments of the present disclosure provide a method, apparatus, electronic device, and storage medium for previewing images. 【Means for Solving the Problems】 【0005】 In a first aspect, embodiments of the present disclosure provide a method for previewing an image, the method comprising: responding to a camera activation command, Camera preview page by activating, wherein the Camera preview page includes a first interface component, and the first interface component provides an interaction entry for the media database, and This includes displaying a corresponding preview image to guide the user to the interaction entry point based on the first interface component, The first interface component dynamically displays at least two frames of preview images within a first period, and these preview images are generated based on media data in a media database. 【0006】 In a second aspect, an embodiment of the present disclosure provides an apparatus for previewing an image, the apparatus, In response to the camera activation command, Camera preview page A startup module used to start the aforementioned Camera preview page This includes a startup module that provides an interaction entry point for the media database, and a first interface component, the first interface component provides an interaction entry point for the media database. Includes a display module used to display a corresponding preview image to guide the user to the interaction entry point based on the first interface component, The first interface component displays at least two frames of a preview image within a first period, and the preview image is generated based on media data in a media database. 【0007】 In a third aspect, embodiments of the present disclosure provide electronic devices. The electronic device includes a processor and a memory connected to the processor in a manner that enables communication with the processor. The aforementioned memory stores computer execution instructions. The processor executes computer execution instructions stored in the memory to implement the method for previewing the images described in the first embodiment and various possible designs of the first embodiment. 【0008】 In a fourth aspect, embodiments of the present disclosure provide a computer-readable storage medium. The computer-readable storage medium stores computer execution instructions, and when the processor executes the computer execution instructions, the method for previewing the images described in the first embodiment and various possible designs of the first embodiment is performed. 【0009】 In a fifth aspect, an embodiment of the present disclosure provides a computer program product including a computer program, wherein when the computer program is executed by a processor, a method for previewing images described in the first aspect and various possible designs of the first aspect is realized. 【0010】 In a sixth aspect, embodiments of the present disclosure provide a computer program for implementing a method for previewing images described in the first aspect and various possible designs of the first aspect. [Effects of the Invention] 【0011】 The methods, apparatus, electronic devices, and storage media provided in the embodiments of this disclosure for previewing images respond to a camera activation command. Camera preview page Start the above Camera preview page The system includes a first interface component, the first interface component providing an interaction entry point to a media database, and based on the first interface component, displaying corresponding preview images to guide the user to the interaction entry point, the first interface component dynamically displaying at least two frames of preview images within a first period, the preview images being generated based on media data in the media database. Camera preview page Because we have installed a first interface component that can dynamically display preview images, Camera preview page This enables camera views while simultaneously dynamically displaying content from the media database, thereby allowing the user to Camera preview pageBy observing, the results of real-time shooting of media data and the results of loading existing media data can be previewed simultaneously. 【Brief Description of Drawings】 【0012】 To more clearly explain the technical solutions in the embodiments of the present disclosure or the prior art, the drawings that need to be used in the following description of the embodiments or the prior art will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present disclosure. For those skilled in the art, other drawings can also be obtained based on these drawings without creative labor. [Figure 1] It is an application scenario diagram of a method for previewing an image provided by an embodiment of the present disclosure. [Figure 2] It is a flowchart of uploading media data in the prior art. [Figure 3] It is flowchart 1 of a method for previewing an image provided by an embodiment of the present disclosure. [Figure 4] It is a schematic diagram of a camera preview page provided by an embodiment of the present disclosure. [Figure 5] It is a schematic diagram of dynamically displaying a preview image within a first interface component provided by an embodiment of the present disclosure. [Figure 6] It is a schematic diagram of another camera preview page provided by an embodiment of the present disclosure. [Figure 7] It is a schematic diagram for generating an effect image provided by an embodiment of the present disclosure. [Figure 8] It is flowchart 2 of a method for previewing an image provided by an embodiment of the present disclosure. [Figure 9] It is a schematic diagram of a process for loading output media data provided by an embodiment of the present disclosure. [Figure 10] It is a block configuration diagram of an apparatus for previewing an image provided by an embodiment of the present disclosure. [Figure 11]It is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. [Figure 12] It is a schematic hardware structural diagram of an electronic device provided by an embodiment of the present disclosure. 【Modes for Carrying Out the Invention】 【0013】 In order to make the objectives, technical solutions and advantages of the embodiments of the present disclosure clearer, hereinafter, while referring to the drawings of the embodiments of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described. Obviously, the described embodiments are only some of the embodiments of the present disclosure, not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present disclosure without creative labor shall fall within the protection scope of the present disclosure. 【0014】 Hereinafter, the application scenarios of the embodiments of the present disclosure will be described. 【0015】 Figure 1 is an application scene diagram of an image preview method provided by an embodiment of the present disclosure. The image preview method provided by an embodiment of the present disclosure can be applied to a scene in which media data is uploaded to a content creation application based on a terminal device. More specifically, it can be applied to an application scene in which output media data is loaded, and the output media data is media data to be edited and uploaded to a content creation application. As shown in Figure 1, the method provided by an embodiment of the present disclosure can be applied to terminal devices such as smartphones. Exemplaryly, a content creation application refers to an application platform in which users can upload their own media data such as images, videos, and text. More specifically, examples include short video applications and video web applications. At the same time, other applications that have the function of allowing users to upload media data also belong to the category of content creation applications, such as social applications and news applications in which individual users can upload media data. Content creation applications include service terminals and client terminals. The client terminal operates on the terminal device side, and the user operates the terminal device to load output media data, edit this output media data, upload it to the service terminal, and complete the upload of user-created content. Other terminal devices can view the user's self-created output media data, such as videos and images, through the client terminal running the content creation application. 【0016】 In conventional technology, a trigger control is provided on the client terminal of a content creation application to upload media data corresponding to the user's created content. When the user clicks this trigger control, the client terminal displays the corresponding upload process page and guides the user to upload the media data. Figure 2 is a flowchart of media data upload in conventional technology. As shown in Figure 2, exemplarily, after the user clicks the "Upload My Work" trigger control on the client terminal, two controls, "Take Video / Photo" and "Load Video / Photo," are displayed on a newly popped-up page to guide the user to the next action. After the user clicks "Take Video / Photo," the client terminal... Camera preview page The application is launched to take a picture or video based on the user's shooting input, and output media data is generated. When the user clicks "Load Video / Photo," the client terminal launches the media database page, displays the videos and / or photos stored in the local media database or cloud media database on the terminal device, and retrieves the output media data based on the user's point selection operation. 【0017】 However, in actual application processes, in application scenarios where users create content, the process by which users create content is subjective and complex, while on the other hand, users Camera preview page In the process of taking a photograph, the user needs to observe whether the visual effect of the image displayed in the viewfinder meets the requirements, whether there is sufficient light, whether there are any obstructions, etc., and then decide whether to take the photograph. On the other hand, since there is not just one set of media data stored in the media database, the user needs to observe the content in the media database, select it, and load it. In other words, the user needs to make specific observations and then decide whether to take the photograph. Camera preview pageIt is necessary to decide whether to launch the application and acquire media data using "Real-time shooting," or to launch the media database page and acquire media data by "Loading existing media data." In conventional methods, Camera preview page You can only launch either the camera view effect or the media database page, and you cannot preview both the camera view effect and the contents of the media database simultaneously. Camera preview page Furthermore, repeatedly switching between and launching media database pages, and only being able to preview the camera's view effects and the contents of the media database, increased the time required to acquire output media data, resulting in a problem that affected the user's creative efficiency. An embodiment of this disclosure provides a method for previewing images to solve the above problem. 【0018】 Figure 3 is a flowchart 1 of a method for previewing an image provided by an embodiment of the present disclosure. The method of this embodiment can be applied to a terminal device, and this method for previewing an image includes the following: 【0019】 Step S101: In response to the camera activation command, Camera preview page Start it up, Camera preview page It includes the first interface component. 【0020】 Exemplary, the entity executing the method of this embodiment is a terminal device, more specifically, a smartphone, and a client terminal of a content creation application (hereinafter referred to as the client terminal) is running within the terminal device. The client terminal is configured with a camera control to trigger a camera activation command. After the user operates the terminal device and triggers this camera control, a corresponding camera activation command is generated, and then, in response to this camera activation command, within the client terminal... Camera preview page Start it. Figure 4 is provided by an embodiment of the present disclosure. Camera preview page This is a schematic diagram. As shown in Figure 4, exemplarily, Camera preview page Inside, Camera preview page It includes a camera viewfinder located in the center and a shooting trigger control located below the camera viewfinder, the shooting trigger control being used to control when the terminal device captures video or images. Camera preview page The camera viewfinder and shooting trigger control inside are based on prior art. Camera preview page This is a general functional unit within the system, and its principle will not be explained here. 【0021】 moreover, Camera preview page A first interface component is also located at the first target location, for example, to the right of the shooting trigger control in Figure 4. This first interface component provides an interaction entry point to the media database for displaying media data in the media database page in the form of a preview image. Here, the first interface component can be located at other target locations in addition to the location shown in Figure 4, and is not limited here; it can be configured as needed. Furthermore, the first interface component may consist of one or more components, and if the first interface component consists of multiple components, they may be placed adjacent to each other to facilitate user observation, and the specific locations are not limited and are not described here. 【0022】 Step S102: Based on the first interface component, at least two preview images are displayed within a first period, and the preview images are generated based on media data in the media database. 【0023】 For example, Camera preview pageThe application is launched, and a preview image is dynamically displayed via a first interface component. Here, the dynamic display of the preview image in the first interface component means that, within a first period, the preview image is displayed in such a way that it switches between at least two frames. This preview image is generated based on media data in a media database, for example, after identifying the target media data in the media database, and after sampling the target media data in the media database, the generated thumbnail is used as the preview image. Here, the target media data may be determined randomly or based on a certain rule. 【0024】 Furthermore, media data includes video and pictures, and if the media data is video, at least two video frames, for example, two adjacent keyframes, can be selected and extracted from the video and displayed in the first interface component as corresponding preview images after processing. Figure 5 is a schematic diagram of dynamically displaying preview images in the first interface component provided by an embodiment of this disclosure. As shown in Figure 5, Camera preview page The application is launched, and if user permission is obtained, the terminal device reads media data from the media database. Here, this media database may be a local media database or a cloud media database. At least two target media data, for example, three photos (photo A, photo B, and photo C in the diagram), are selected and retrieved from it, and then, within a first period, for example, within 2 seconds, these three photos are displayed in a switching manner within the first interface component, i.e., photo A is displayed at 0 seconds, photo B at 1 second, and photo C at 2 seconds. This allows the user to Camera preview page While looking at the preview images of three photos in the media database, 2It can be observed within seconds. Here, exemplarily, the first period is determined by the number of preview images, or the number of preview images is determined by a predetermined first period. 【0025】 Subsequently, the user can optionally decide, based on the preview image observed within the first page component, whether to load media data from the media database page corresponding to the preview image as output media data, or to capture it in real time directly through the camera viewfinder, thereby directly generating and loading the output media data. This enables a simple and quick loading of output media data, followed by the step of editing and uploading this output media data. 【0026】 In this embodiment, in response to a camera activation command, Camera preview page Start it up, Camera preview page It includes a first interface component, and based on the first interface component, displays at least two frames of preview images within a first period, and the preview images are generated based on media data in a media database. Camera preview page Because we have installed a first interface component that can dynamically display preview images, Camera preview page This enables camera views while simultaneously dynamically displaying content from the media database, thereby allowing the user to Camera preview page By observing this, it is possible to simultaneously preview the results of capturing media data in real time and the results of loading existing media data. Furthermore, the user Camera preview page This eliminates the need to launch separate media database pages and perform attempts and searches in each, supporting quick decision-making, simplifying operation steps, improving interaction efficiency, and ultimately increasing the speed of generating output media data for uploading to content creation applications. 【0027】 In addition to the embodiment shown in Figure 3, in one possible embodiment, Camera preview page The method provided by this embodiment further includes a second interface component for displaying a target visual effect added to a preview image, and the method provided by this embodiment further includes generating an effect image corresponding to the preview image based on the target visual effect displayed by the second interface component. 【0028】 Figure 6 shows other embodiments provided by the embodiments of this disclosure. Camera preview page This is a schematic diagram. As shown in Figure 6, Camera preview page A second interface component is provided at the second target position for displaying target visual effects added to the preview image, more specifically, such as a skin-beautifying effect or a sticker effect. In one possible embodiment, the second interface component changes the displayed target visual effect in response to user commands. For example, after the user clicks on this second interface component, several alternative visual effects are displayed in a pop-up window, and then, based on the user's selection of an alternative visual effect, one of them is designated as the target visual effect. 【0029】 Furthermore, based on the target visual effect displayed by the second interface component, the terminal device renders a preview image corresponding to the first interface component based on this target visual effect, thereby generating an image with this target visual effect, i.e., an effect image. Figure 7 is a schematic diagram for generating an effect image provided by an embodiment of the present disclosure. As shown in Figure 7, exemplary, if the target visual effect displayed by the second interface component is to add a seal effect of a virtual ornament (e.g., a crown as shown in the figure) to the user's avatar, and the preview image corresponding to the first interface component, i.e., the preview image generated from target media data in the media database, is a photograph containing the user's avatar, then after rendering the preview image based on the target visual effect, the generated effect image is a photograph containing the user's avatar with the virtual ornament. 【0030】 Accordingly, based on the above embodiment, a specific method of carrying out step S102 includes, based on the first interface component, displaying at least two preview images within a first period, each corresponding to an effect image. 【0031】 In this embodiment, Camera preview page After installing a first interface component, a second interface component is added to display the visual effects of the preview image. The second interface component displays and installs the target visual effects, allowing the first interface component to display a preview image with the corresponding visual effects added, thereby enabling the user to... Camera preview page By observing this, the effects after adding visual effects to media data in the media database can be further observed, allowing users to decide whether to use the media data in the media database page to generate the final output media data and then perform subsequent steps such as editing and uploading. This further reduces the number of steps required for user interaction, improves interaction efficiency, and shortens the time it takes to generate output media data. 【0032】 Figure 8 is a flowchart 2 of a method for previewing an image provided by an embodiment of the present disclosure. This embodiment adds the steps of determining the target media data in the media database page and generating the output media data to the embodiment shown in Figure 3, and the method for previewing this image includes the following: 【0033】 Step S201: Display the front page, retrieve the page information corresponding to the front page, the page information characterizes the page theme corresponding to the front page, and the front page includes a third interface component for generating user-created media corresponding to the page theme. 【0034】 Step S202: In response to the first trigger operation on the third interface component, a camera activation command containing page information is generated. 【0035】 For example, the front page is Camera preview page This is the page that triggers the action, and a third interface component is installed on the front page. For example, in the embodiment shown in Figure 2, the trigger control installed on the client terminal is named "Upload my work," and after the user clicks this trigger control, a camera activation command is generated, eliminating the need to display a page containing two controls, "Shoot video / photo" and "Load video / photo," in the embodiment shown in Figure 2. Camera preview page This is activated directly, thereby simplifying the operation flow. For specific implementations, please refer to the descriptions in the corresponding embodiments in Figures 2 and 4; further explanation is not provided here. 【0036】 Furthermore, the front page contains corresponding page information, and the terminal device can obtain the page information corresponding to the front page through the client terminal program. Here, exemplary, different front pages may correspond to different page information, and the page information characterizes the page theme corresponding to the front page. For example, front page #1 is the automotive board discussion forum in the application, the corresponding page theme is "automotive theme", and the corresponding page information for front page #1 is info_1; front page #2 is the travel board discussion forum in the application, the corresponding page theme is "travel theme", and the page information corresponding to front page #2 is info_2. Exemplary, the page information has a fixed mapping relationship with its characterized page theme, and this mapping relationship may be pre-configured; therefore, the page information may be an abstract identifier as in the above example. Furthermore, this page information can be determined by the access address of the front page. In response to the first trigger operation on the third interface component, a corresponding camera start command is generated so that the page information of this front page can be included in the camera start command based on the page information corresponding to this front page. 【0037】 Step S203: In response to the camera activation command, Camera preview page Start it up, Camera preview page It contains a first interface component and a second interface component. 【0038】 Step S204: Based on the page information during the camera activation command, target scene information is generated, and the target scene information characterizes the target content category of the media data. 【0039】 Step S205: Based on the target scene information, determine the target media data, and based on the target media data, generate at least two preview images. 【0040】 For example, after responding to the camera activation command, Camera preview page Call the corresponding startup method, Camera preview page Initialization is performed to load the data, and during the initialization phase, Camera preview page The first and second interface components within the system determine and load the data corresponding to them after the initialization phase is complete, without loading any data themselves. This allows the system to display the content corresponding to the first and second interface components. 【0041】 Here, as an example, the camera activation command includes page information that characterizes the page theme corresponding to the front page. Based on this page information and a pre-configured mapping relationship, the corresponding target scene information is obtained, and the target scene information characterizes the target content category of the media data. Content categories include, for example, vehicles, houses, landscapes, and portraits. The mapping relationship between page information and scene information is as follows: for example, if the page theme of the front page characterized by the page information is "automobile theme," the mapped target content categories are "vehicles" and "roads." If the page theme of the front page characterized by the page information is "travel theme," the mapped target content categories are "landscapes" and "portraits." Here, the scene information may also be characterized based on an abstract identifier, which can be specifically set as needed. The content categories of media data characterized by page information allow for the classification of media data based on the identification of media data. For example, videos and photographs related to "people" and "landscapes" in media data can be identified. Therefore, based on the target content category characterized by the target page information, the corresponding media data belonging to that target content category, i.e., target media data, can be obtained. Furthermore, at least two preview images can be obtained based on the target media data. A specific implementation is shown in the embodiment in Figure 3, but will not be explained further here. 【0042】 Step S206: Obtain the target visual effect based on the target scene information. 【0043】 Step S207: Display the target visual effect added to the preview image based on the second interface component. 【0044】 For example, based on target scene information, it is possible to determine a matching visual effect, i.e., a target visual effect. For instance, if the target content category corresponding to the target scene information is "landscape," visual effect A is used to add a "halo" effect. If the target content category corresponding to the target scene information is "people," visual effect B is used to add a "skin smoothing" effect. In other words, the matching target visual effect can be determined by different target scene information and a pre-defined mapping relationship. The implementation of specific mapping relationships can be set based on specific needs, and will not be explained further here. 【0045】 Furthermore, after determining the target visual effect, an identifier corresponding to that target visual effect, such as an effect icon or effect text, is displayed within a second interface component for displaying the visual effect. This enables the display and setting of the target visual effect, facilitates automatic recommendation of visual effects that match the page theme, reduces user interaction, and improves interaction efficiency. 【0046】 Step S208: Generate an effect image corresponding to the preview image based on the target visual effect displayed by the second interface component. 【0047】 Step S209: Based on the first interface component, within a first period, at least two preview images each display the corresponding effect image. 【0048】 Furthermore, after determining the target visual effect and preview image, rendering is performed based on the target visual effect preview image to generate a preview image with the visual effect, i.e., an effect image. Here, based on the above steps, the target visual effect and preview image are determined based on the target scene information of the same group, so the target visual effect and preview image themeIt can guarantee consistency at the scene level, make the generated effect images more rational, and be more similar to the results manually set and selected by experienced users, making it more user-friendly for inexperienced users. When users create content using existing media data, it can improve the quality and efficiency of the produced works. 【0049】 Furthermore, as an option, the following may be included after step S209: 【0050】 Step S210: In response to a second trigger operation on the first interface component, output media data is generated, where the second trigger operation directs a target preview image within the first interface component, and the output media data is generated based on the target preview image or target media data corresponding to the target preview image. 【0051】 Step S211: Output media data Camera preview page Display it on the front page. 【0052】 For example, since the preview image within the first interface component changes dynamically, when the terminal device detects a second trigger action on the first interface component at a first time, such as a click on the first interface component, the preview image displayed within the first interface component at that first time is the target preview image corresponding to the second trigger action. Subsequently, target media data corresponding to that target preview image, such as a video or photograph, is acquired, and after processing steps such as compression, resizing, and adding visual effects to the target media data, output media data is generated, or this target media data is used directly as output media data. After that, the client terminal running on the terminal device returns to the front page, displays the output media data on this front page, and completes the loading of the output media data. Subsequently, the output media data can be further edited and uploaded according to specific needs, but this will not be explained further here. 【0053】 Figure 9 is a schematic diagram of the process for loading output media data provided by an embodiment of the present disclosure. As shown in Figure 9, exemplarily, after clicking the “Load Image” button (third interface component) on the front page, Camera preview page Enter, Camera preview pageWithin this, the first interface component dynamically displays preview images of multiple frames. For example, at the first time, it displays preview image P1 within the first interface component; at the second time, it displays preview image P2 within the first interface component; and at the third time, it displays preview image P3 within the first interface component. At the third time, the terminal device detects a third trigger action on the first interface component, such as a user click. The terminal device then automatically acquires target media data data_1 corresponding to this preview image P1, and visually renders this target media data data_1 to generate media data with visual rendering effects, i.e., output media data. This output media data is then loaded and displayed on the front page, and optionally, the text "Loaded" is simultaneously displayed in the third interface component. 【0054】 In the steps of this embodiment, the preview image displayed in the first interface component is not manually selected by the user but is dynamically determined based on scene information. Furthermore, if visual effects are added, it may be difficult or impossible for the user to accurately find the corresponding target media data through the media database page simply by looking at the preview image. Additionally, the process of loading output media data based on the target media data takes extra time, reducing the efficiency of loading the output media data. In the steps of this embodiment, the target preview image is determined directly and the corresponding output media data is loaded onto the front page by responding to a second trigger action on the first interface component. By allowing the user to observe the preview image displayed in the first interface component and combining it with the second trigger action, the process of loading output media data can be completed, eliminating the need to launch the media database page and manually search for and select the target media data. This improves the efficiency of loading output media data and reduces time loss. 【0055】 In this embodiment, the implementation of step S203 is the same as the implementation of step S101 in the embodiment shown in Figure 3 of this disclosure. Specifically, you can refer to the explanation of the correspondence in the embodiment shown in Figure 3, and it will not be explained in general terms here. 【0056】 Figure 10 is a block diagram of an image previewing apparatus provided by the embodiments of this disclosure, corresponding to the method of previewing images in the embodiments described above. For convenience of explanation, only the parts relevant to the embodiments of this disclosure are shown. Referring to Figure 10, the image previewing apparatus 3 is: In response to the camera activation command, Camera preview page A startup module 31 used to start up, Camera preview page This includes a startup module 31 which includes a first interface component, A display module 32 used to display at least two frames of a preview image within a first period based on a first interface component, wherein the preview image is generated based on media data in a media database. 【0057】 In one embodiment of the present disclosure, before displaying at least two frames of the preview image, the display module 32: To obtain target scene information that characterizes the target content category of media data, Based on target scene information, determine target media data, It is used to generate at least two preview images based on the target media data, and further to do so. 【0058】 In one embodiment of the present disclosure, Camera preview page Before starting up, the startup module 31, This involves obtaining page information corresponding to the front page, where the page information characterizes the page theme corresponding to the front page, and the front page includes a third interface component for generating user-created media corresponding to the page theme. It is used to generate a camera activation command containing page information in response to a first trigger operation on a third interface component, When the display module 32 acquires target scene information, specifically, It is used to generate target scene information based on page information in the camera activation command. 【0059】 In one embodiment of the present disclosure, the target media data includes a target video stored in a media database. The display module 32, when generating at least two frames of preview images based on the target media data, specifically, Obtain at least two keyframes from the target video, It is used to generate corresponding preview images based on keyframes. 【0060】 In one embodiment of the present disclosure, Camera preview page It further includes a second interface component for displaying the target visual effects added to the preview image, The display module 32 is It is further used to generate an effect image corresponding to the preview image based on the target visual effect displayed by the second interface component. The display module 32, based on the first interface component, displays at least two frames of a preview image within a first period, specifically, Based on a first interface component, it is used to display at least two preview images, each corresponding to an effect image, within a first period. 【0061】 In one embodiment of the present disclosure, the display module 32 is This involves obtaining target visual effects based on target scene information, where target scene information characterizes the target content category of the media data. It is further used to display the target visual effect in the second interface component. 【0062】 In one embodiment of the present disclosure, the display module 32 is The process involves generating output media data in response to a second trigger operation on a first interface component, wherein the second trigger operation indicates a target preview image within the first interface component, and the output media data is generated based on the target preview image or target media data corresponding to the target preview image. Output media data Camera preview pageIt is used to display on the front page and for other purposes. 【0063】 Here, the startup module 31 and the display module 32 are connected. The device 3 for previewing images provided by this embodiment can implement the technical proposal of the embodiment of the method described above, and its implementation principle and technical effect are similar and will not be described further here. 【0064】 Figure 11 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. As shown in Figure 11, this electronic device 4 is It includes a processor 41 and a memory 42 that is communicatively connected to the processor 41. Memory 42 stores computer execution instructions. The processor 41 executes computer execution instructions stored in memory 42 to implement the method for previewing images in the embodiments shown in Figures 3 to 9. 【0065】 Here, optionally, the processor 41 and memory 42 are connected via the bus 43. 【0066】 The relevant explanations can be understood by referring to the relevant explanations and effects corresponding to the steps in the embodiments shown in Figures 3 to 9, and many explanations are omitted here. 【0067】 Referring to Figure 12, a schematic diagram of the structure of an electronic device 900 suitable for implementing an embodiment of the present disclosure is shown, which may be a terminal device or a server. Here, terminal devices may include, but are not limited to, mobile devices such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital televisions (TVs) and desktop computers. The electronic device shown in Figure 12 is merely an example and does not impose any limitations on the functionality and scope of use of the embodiments of the present disclosure. 【0068】 As shown in Figure 12, the electronic device 900 may include a processing unit (e.g., a central processing unit, a graphics processor, etc.) 901 capable of performing various appropriate operations and processes based on a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. The RAM 903 also stores various programs and data necessary for the operation of the electronic device 900. The processing unit 901, ROM 902, and RAM 903 are interconnected by a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904. 【0069】 Typically, the device includes an input device 906, such as a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, and gyroscope; an output device 907, such as a liquid crystal display (LCD), speaker, and vibrator; a storage device 908, such as magnetic tape and hard disk; and a communication device 909, which may be connected to the I / O interface 905. The communication device 909 can enable the electronic device 900 to exchange data with other devices via wireless or wired communication. Figure 12 shows an electronic device 900 with various devices, but it should be understood that it is not required to implement or include all the devices shown. Alternatively, more or fewer devices may be implemented or included. 【0070】 In particular, according to embodiments of the present disclosure, the process described with reference to the flowchart above may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and which includes program code for performing the method shown in the flowchart. In such embodiments, the computer program may be downloaded and installed from a network via a communication device 909, installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by a processing unit 901, it performs the functions limited to the methods of embodiments of the present disclosure. 【0071】 The computer-readable medium described in this disclosure may be a computer-readable signal medium, a computer-readable storage medium, or any combination of both. The computer-readable storage medium may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of more than these. More specific examples of computer-readable storage mediums may include, but are not limited to, electrical connections having one or more wires, portable computer magnetic disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium may include data signals propagating in the baseband or as part of a carrier wave, which contain computer-readable program code. Such propagating data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium may be any computer-readable storage medium other than a computer-readable storage medium, which can transmit, propagate, or transmit programs used by or in combination with instruction execution systems, apparatus, or devices. The program code contained in the computer-readable medium may be transmitted by any suitable medium, including but not limited to electric wires, optical cables, radio frequencies (RF), or any suitable combination thereof. 【0072】 The computer-readable medium described above may be included in the electronic device described above, or it may exist independently without being incorporated into the electronic device. 【0073】 The computer-readable medium described above carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is made to execute the method shown in the above embodiment. 【0074】 Computer program code for performing the operations of this disclosure can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and the C language or a similar programming language. The program code may run entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it may be connected to an external computer (for example, connected via the Internet using an Internet service provider). 【0075】 The flowcharts and block diagrams in the drawings illustrate the implementable system architectures, functions, and operations of systems, methods, and computer program products relating to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, block, or part of code containing one or more executable instructions for implementing a given logical function. In some alternative implementations, the functions described in the blocks may be executed in an order different from that shown in the drawings. For example, two consecutively displayed blocks, determined by their functions, may actually be executed essentially in parallel, or they may be executed in reverse order. Each block in a block diagram and / or flowchart, and combinations of blocks in a block diagram and / or flowchart, may be implemented by a system with dedicated hardware for performing a given function or operation, or by a combination of dedicated hardware and computer instructions. 【0076】 The units referred to in the embodiments of this disclosure may be implemented in software or in hardware. Herein, the names of the units are not limited in any case to the units themselves. stomach. 【0077】 Here, at least some of the functions described above may be performed by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used may include, but are not limited to, field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SOCs), and complex programmable logic devices (CPLDs). 【0078】 In the context of this disclosure, a machine-readable medium may be a tangible medium containing or storing a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium includes, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. More specific examples of machine-readable storage media include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. 【0079】 In a first aspect, according to one or more embodiments of the present disclosure, a method for previewing an image is provided, and the method is In response to the camera activation command, Camera preview page This involves activating the aforementioned Camera preview page This includes a first interface component, The method includes displaying at least two preview images within a first period based on the first interface component, wherein the preview images are generated based on media data in a media database. 【0080】 According to one or more embodiments of the present disclosure, before displaying the preview images of at least two frames, To obtain target scene information that characterizes the target content category of the aforementioned media data, Based on the aforementioned target scene information, the target media data is determined, The method further includes generating the at least two preview images based on the target media data. 【0081】 According to one or more embodiments of the present disclosure, Camera preview page Before starting, The method involves obtaining page information corresponding to a front page, wherein the page information characterizes a page theme corresponding to the front page, and the front page includes a third interface component for generating user-created media corresponding to the page theme. The present invention further includes generating a camera activation command containing the page information in response to a first trigger operation on the third interface component, Obtaining the aforementioned target scene information means that This includes generating target scene information based on the page information in the camera activation command. 【0082】 According to one or more embodiments of this disclosure, the target media data includes a target video stored in the media database. Based on the target media data, generating the at least two preview images is: Obtaining at least two keyframes from the target video, This includes generating a corresponding preview image based on the aforementioned keyframes. 【0083】 According to one or more embodiments of the present disclosure, Camera preview page It further includes a second interface component for displaying the target visual effect added to the preview image, The aforementioned method, The process further includes generating an effect image corresponding to the preview image based on the target visual effect displayed by the second interface component, Displaying at least two frames of preview images within a first period based on the first interface component is: This includes, based on the first interface component, that within the first period, the at least two preview images each display a corresponding effect image. 【0084】 According to one or more embodiments of this disclosure, the method is The process involves obtaining the target visual effect based on target scene information, wherein the target scene information characterizes the target content category of the media data. The further includes displaying the target visual effect on the second interface component. 【0085】 According to one or more embodiments of this disclosure, the method is The method involves generating output media data in response to a second trigger operation on the first interface component, wherein the second trigger operation indicates a target preview image within the first interface component, and the output media data is generated based on the target preview image or target media data corresponding to the target preview image. The output media data Camera preview page This includes displaying it on the front page, and further includes the following. 【0086】 In a second aspect, according to one or more embodiments of the present disclosure, an apparatus for previewing an image is provided, the apparatus is: In response to the camera activation command, Camera preview page A startup module used to start the aforementioned Camera preview page This includes a startup module, which contains a first interface component, A display module used to display at least two frames of a preview image within a first period based on the first interface component, wherein the preview image is generated based on media data in a media database. 【0087】 According to one or more embodiments of the present disclosure, before displaying the preview image of at least two frames, the display module: To obtain target scene information that characterizes the target content category of the aforementioned media data, Based on the aforementioned target scene information, the target media data is determined, It is further used to generate the at least two frames of preview images based on the target media data. 【0088】 According to one or more embodiments of the present disclosure, Camera preview page Before starting, the startup module, The process involves obtaining page information corresponding to the front page, wherein the page information characterizes the page theme corresponding to the front page, and the front page includes a third interface component for generating user-created media corresponding to the page theme. Further used to generate a camera start command including the page information in response to a first trigger operation on the third interface component, When the display module 32 acquires the target scene information, it specifically does the following: This is used to generate target scene information based on the page information in the aforementioned camera activation command. 【0089】 According to one or more embodiments of this disclosure, the target media data includes the target video stored in the media database. The display module, when generating the at least two frames of preview images based on the target media data, specifically, Obtaining at least two keyframes from the target video, It is used to generate a corresponding preview image based on the aforementioned keyframes. 【0090】 According to one or more embodiments of the present disclosure, Camera preview page It further includes a second interface component for displaying the target visual effect added to the preview image, The aforementioned display module is Further used to generate an effect image corresponding to the preview image based on the target visual effect displayed by the second interface component, The display module, based on the first interface component, displays at least two frames of a preview image within a first period, specifically, Based on the first interface component, it is used to display the corresponding effect image for each of the at least two preview images within the first period. 【0091】 According to one or more embodiments of this disclosure, the display module is: The process involves obtaining the target visual effect based on target scene information, wherein the target scene information characterizes the target content category of the media data. It is further used to display the target visual effect on the second interface component. 【0092】 According to one or more embodiments of this disclosure, the display module is: The method involves generating output media data in response to a second trigger operation on the first interface component, wherein the second trigger operation indicates a target preview image within the first interface component, and the output media data is generated based on the target preview image or target media data corresponding to the target preview image. The output media data Camera preview page It is used to display on the front page and for other purposes. 【0093】 In a third aspect, according to one or more embodiments of the present disclosure, an electronic device is provided. The electronic device includes a processor and a memory connected to the processor in a manner that enables communication with the processor. The aforementioned memory stores computer execution instructions. The processor executes computer execution instructions stored in the memory to implement the method for previewing the images described in the first embodiment and various possible designs of the first embodiment. 【0094】 In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores computer execution instructions, and when the processor executes the computer execution instructions, the method for previewing the images described in the first embodiment and various possible designs of the first embodiment is performed. 【0095】 In a fifth aspect, an embodiment of the present disclosure provides a computer program product including a computer program, wherein when the computer program is executed by a processor, a method for previewing images described in the first aspect and various possible designs of the first aspect is realized. 【0096】 In a sixth aspect, embodiments of the present disclosure provide a computer program for implementing a method for previewing images described in the first aspect and various possible designs of the first aspect. 【0097】 The above is merely a description of preferred embodiments and applicable technical principles of the present disclosure. Those skilled in the art will understand that the scope of the disclosure is not limited to any specific combination of the above technical features, and also includes other technical solutions formed by any combination of the above technical features or their equivalents, without departing from the spirit of the disclosure. For example, technical means formed by substituting the above features with (not limited to) similar functional technical features disclosed herein. 【0098】 Furthermore, although each operation is described in a specific order, these operations should not be understood as requiring that they be performed in a specific order or sequence as indicated. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included above, these should not be construed as limiting the scope of this disclosure. Some features described in the context of a single embodiment may be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may be implemented individually or in any appropriate subcombination in multiple embodiments. 【0099】 Although this subject matter has been described in language specific to structural features and / or methodological logic, it should be understood that the subject matter described in the claims is not necessarily limited to the features or behaviors described above. Conversely, the specific features and behaviors described above are merely exemplary forms of implementing the claims. 【0100】 Cross-reference of related applications This application claims priority to the Chinese patent application filed with the China National Intellectual Property Administration on October 10, 2022, with application number 202211236048.3 and application title "Method, apparatus, electronic device and storage medium for previewing images," all of which are incorporated herein by reference.

Claims

[Claim 1] A method for previewing images, In response to a camera activation command, a camera preview page is activated, wherein the camera preview page includes a first interface component, and the first interface component provides an interaction entry point for a media database. This includes displaying a corresponding preview image based on the first interface component, The first interface component dynamically displays at least two frames of preview images within a first period, and the preview images are generated based on media data in a media database. The camera preview page further includes a second interface component for displaying a target visual effect added to the preview image. The aforementioned method, The process further includes generating an effect image corresponding to the preview image based on the target visual effect displayed by the second interface component, How to preview an image. [Claim 2] Based on the first interface component, before displaying the corresponding preview image, To obtain target scene information that characterizes the target content category of the aforementioned media data, Based on the aforementioned target scene information, the target media data is determined, The method further includes generating at least two preview images based on the target media data, The aforementioned target visual effect matches the aforementioned target scene information. The method according to claim 1. [Claim 3] Before launching the aforementioned camera preview page, The process involves obtaining page information corresponding to the front page, wherein the page information characterizes the page theme corresponding to the front page, and the front page includes a third interface component for generating user-created media corresponding to the page theme. The present invention further includes generating a camera activation command containing the page information in response to a first trigger operation on the third interface component, Obtaining the aforementioned target scene information means that This includes generating target scene information based on the page information in the camera activation command, The method according to claim 2. [Claim 4] The target media data includes the target video stored in the media database. Based on the target media data, generating the at least two frames of the preview image is: Obtaining at least two keyframes from the target video, This includes generating a corresponding preview image based on the aforementioned keyframes, The method according to claim 2. [Claim 5] Displaying at least two frames of preview images within a first period based on the first interface component is: Based on the first interface component, within the first period, the preview images of at least two frames each display a corresponding effect image, The method according to claim 1. [Claim 6] The aforementioned method, The process involves obtaining the target visual effect based on target scene information, wherein the target scene information characterizes the target content category of the media data. The present invention further includes displaying the target visual effect on the second interface component, The method according to claim 5. [Claim 7] The aforementioned method, The method involves generating output media data in response to a second trigger operation on the first interface component, wherein the second trigger operation indicates a target preview image within the first interface component, and the output media data is generated based on the target preview image or target media data corresponding to the target preview image. The further includes displaying the output media data on the front page of the camera preview page, The method according to claim 1. [Claim 8] A device for previewing images, A startup module used to launch a camera preview page in response to a camera startup command, wherein the camera preview page includes a first interface component, and the first interface component provides an interaction entry point for a media database. The first interface component includes a display module used to display a corresponding preview image, The first interface component dynamically displays at least two frames of preview images within a first period, and the preview images are generated based on media data in a media database. The camera preview page further includes a second interface component, which is used to display a target visual effect added to the preview image. The aforementioned display module is Further used to generate an effect image corresponding to the preview image based on the target visual effect displayed by the second interface component, A device for previewing images. [Claim 9] It is an electronic device, The processor and a memory connected to the processor in a manner that enables communication between them are included. The aforementioned memory stores computer execution instructions. The processor executes computer execution instructions stored in the memory to implement the method for previewing an image according to any one of claims 1 to 7. electronic equipment. [Claim 10] A computer-readable storage medium, A computer execution instruction is stored, and when the processor executes the computer execution instruction, the method for previewing an image according to any one of claims 1 to 7 is performed. Computer-readable storage medium. [Claim 11] A computer program for implementing a method for previewing an image as described in any one of claims 1 to 7.