WO2024078409A1 - 图像预览方法、装置、电子设备及存储介质 - Google Patents

图像预览方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2024078409A1
WO2024078409A1 PCT/CN2023/123364 CN2023123364W WO2024078409A1 WO 2024078409 A1 WO2024078409 A1 WO 2024078409A1 CN 2023123364 W CN2023123364 W CN 2023123364W WO 2024078409 A1 WO2024078409 A1 WO 2024078409A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface component
page
target
preview
media data
Prior art date
Application number
PCT/CN2023/123364
Other languages
English (en)
French (fr)
Inventor
马晓桐
Original Assignee
抖音视界有限公司
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 抖音视界有限公司 filed Critical 抖音视界有限公司
Publication of WO2024078409A1 publication Critical patent/WO2024078409A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2621Cameras specially adapted for the electronic generation of special effects during image pickup, e.g. digital cameras, camcorders, video cameras having integrated special effects capability

Definitions

  • the embodiments of the present disclosure relate to the field of Internet technology, and in particular to an image preview method, device, electronic device, and storage medium.
  • content creation applications such as short video applications
  • media data such as videos and images are the main forms of content display.
  • the camera control in the client corresponding to the content creation application, can be triggered to call up the camera viewfinder page to shoot media data, or the media database control can be triggered to call up the media database page to load existing media data, and finally the output media data can be obtained for editing and uploading to the content creation application.
  • Embodiments of the present disclosure provide an image preview method, device, electronic device, and storage medium.
  • an embodiment of the present disclosure provides an image preview method, comprising:
  • a camera viewfinder page is started, wherein the camera viewfinder page includes a first interface component; wherein the first interface component provides an interactive entrance to a media database; and based on the first interface component, a corresponding preview image is displayed to guide a user to enter the interactive entrance; wherein the first interface component dynamically displays at least two frames of preview images within a first time period, wherein the preview images are generated based on media data in the media database.
  • an image preview device including:
  • a start module in response to a camera start instruction, starts a camera viewfinder page, wherein the camera viewfinder page includes a first interface component; wherein the first interface component provides an interactive entrance to a media database;
  • a display module based on the first interface component, displays a corresponding preview image to guide the user to enter the interactive entrance;
  • the first interface component displays at least two frames of preview images within a first time period, and the preview images are generated based on media data in a media database.
  • an electronic device including:
  • a processor and a memory communicatively connected to the processor
  • the memory stores computer-executable instructions
  • the processor executes the computer-executable instructions stored in the memory to implement the image preview method as described in the first aspect and various possible designs of the first aspect.
  • an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions.
  • the image preview method described in the first aspect and various possible designs of the first aspect is implemented.
  • an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the image preview method as described in the first aspect and various possible designs of the first aspect.
  • an embodiment of the present disclosure provides a computer program, which is used to implement the image preview method described in the first aspect and various possible designs of the first aspect.
  • the image preview method, device, electronic device and storage medium provided by the embodiments of the present disclosure start the camera viewfinder page in response to the camera start instruction, wherein the camera viewfinder page includes a first interface component; wherein the first interface component provides an interactive entrance to the media database; and based on the first interface component, a corresponding preview image is displayed to guide the user to enter the interactive entrance; wherein the first interface component dynamically displays at least two frames of preview images within a first time period, and the preview images are generated based on the media data in the media database.
  • the camera viewfinder page can dynamically display the content in the media database while realizing the camera framing, so that the user can simultaneously preview the results of real-time shooting of media data and the results of loading existing media data by observing the camera viewfinder page.
  • FIG1 is a diagram of an application scenario of an image preview method provided by an embodiment of the present disclosure.
  • FIG2 is a schematic diagram of a process of uploading media data in the prior art
  • FIG3 is a flowchart diagram 1 of an image preview method provided by an embodiment of the present disclosure.
  • FIG4 is a schematic diagram of a camera viewfinder page provided by an embodiment of the present disclosure.
  • FIG5 is a schematic diagram of dynamically displaying a preview image in a first interface component provided by an embodiment of the present disclosure
  • FIG6 is a schematic diagram of another camera viewfinder page provided by an embodiment of the present disclosure.
  • FIG7 is a schematic diagram of generating a special effect image provided by an embodiment of the present disclosure.
  • FIG8 is a second flow chart of the image preview method provided by an embodiment of the present disclosure.
  • FIG9 is a schematic diagram of a process of loading and outputting media data provided by an embodiment of the present disclosure.
  • FIG10 is a structural block diagram of an image preview device provided by an embodiment of the present disclosure.
  • FIG11 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure.
  • FIG. 12 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure.
  • FIG1 is an application scenario diagram of the image preview method provided by the embodiment of the present disclosure.
  • the image preview method provided by the embodiment of the present disclosure can be applied to the scenario of uploading media data to the content creation application based on the terminal device. More specifically, it can be applied to the application scenario of loading output media data, and the output media data is the media data used for subsequent editing and uploading to the content creation application.
  • the method provided by the embodiment of the present disclosure can be applied to the terminal device, such as a smart phone.
  • the content creation application refers to an application platform where users can upload self-made images, videos, texts and other media data, more specifically, such as short video applications, video website applications, etc.
  • the content creation application includes a server and a client, wherein the client runs on one side of the terminal device.
  • the user loads the output media data by operating the terminal device and then edits and uploads the output media data to the server to complete the upload of the user-created content.
  • Other terminal devices can see the output media data, such as user-made videos and pictures, by running the client of the content creation application.
  • FIG. 2 is a schematic diagram of a process of uploading media data in the prior art.
  • the client will display the corresponding upload process page to guide the user to upload the media data.
  • Figure 2 is a schematic diagram of a process of uploading media data in the prior art.
  • the "Upload my work" trigger control in the client two controls “shoot video/photo” and “load video/photo” are displayed in the new pop-up page to guide the user's subsequent operations.
  • the client When the user clicks "shoot video/photo", the client starts the camera viewfinder page to shoot and frame, and based on the user's shooting operation, shoots videos or photos to generate output media data; when the user clicks "load video/photo", the client starts the media database page to display the videos and/or photos stored in the local media database in the terminal device or the cloud media database, and obtains the output media data based on the user's click operation.
  • the solution in the prior art can only choose to open the camera viewfinder page or the media database page, and cannot simultaneously preview the camera framing effect and the media database content. Therefore, the camera viewfinder page and the media database page can only be repeatedly switched to open to preview the camera framing effect and the media database content respectively, resulting in an increase in the time consumption of obtaining output media data and affecting the user's creation efficiency.
  • the disclosed embodiment provides an image preview method to solve the above problems.
  • FIG3 is a flow chart of an image preview method provided by an embodiment of the present disclosure.
  • the method of this embodiment can be applied in a terminal device, and the image preview method includes:
  • Step S101 In response to a camera start instruction, a camera viewfinder page is started, wherein the camera viewfinder page includes a first interface component.
  • the execution subject of the method of this embodiment is a terminal device, more specifically, for example, a smart phone, in which a client of a content creation application (hereinafter referred to as the client) is running.
  • a camera control for triggering a camera start instruction is provided in the client.
  • a corresponding camera start instruction is generated in response to the camera start instruction.
  • a camera viewfinder page is started in the client.
  • FIG4 is a schematic diagram of a camera viewfinder page provided in an embodiment of the present disclosure.
  • a camera viewfinder located in the middle of the camera viewfinder page and a shooting trigger control located in the lower part of the camera viewfinder are included.
  • the shooting trigger control is used to control the terminal device to shoot videos or pictures.
  • the camera viewfinder and the shooting trigger control in the above-mentioned camera viewfinder page are commonly used functional units in the camera viewfinder page in the prior art, and the implementation principle will not be repeated.
  • a first interface component is also provided, and the first interface component provides an interactive entrance to the media database, and the first interface component is used to display the media data in the media database page in the form of a preview image.
  • the first interface component can also be set at other target positions, which is not limited here and can be set specifically as needed.
  • the first interface component can be one or more components. When the first interface component is multiple components, the multiple components can be set at adjacent positions to facilitate user observation. The specific position is not limited and will not be repeated.
  • Step S102 Based on the first interface component, at least two preview images are displayed within a first time period, where the preview images are generated based on the media data in the media database.
  • a preview image is dynamically displayed through the first interface component, wherein the first interface component dynamically displays the preview image, that is, in a first time period, at least two frames of preview images are displayed in a switching display manner.
  • the preview image is generated based on the media data in the media database. For example, after determining the target media data in the media database, the target media data in the media database is sampled, and the generated thumbnail is used as the preview image.
  • the target media data can be determined randomly or based on a certain rule.
  • the media data includes videos and pictures.
  • the media data is a video
  • FIG. 5 is a schematic diagram of a first interface component for dynamically displaying preview images provided by an embodiment of the present disclosure.
  • the terminal device reads the media data in the media database with the authorization of the user, wherein the media database can be a local media database or a cloud media database.
  • At least two target media data are selected therefrom, such as three photos (shown as photo A, photo B and photo C in the figure); then, within a first time period, such as 2 seconds, the three photos are switched and displayed in the first interface component, that is, photo A is displayed at the 0th second, photo B is displayed at the 1st second, and photo C is displayed at the 2nd second.
  • a first time period such as 2 seconds
  • the three photos are switched and displayed in the first interface component, that is, photo A is displayed at the 0th second, photo B is displayed at the 1st second, and photo C is displayed at the 2nd second.
  • the first time period is determined by the number of preview images, or the number of preview images is determined by a preset first time period.
  • the user can decide whether to use the media data in the media database page corresponding to the preview image as the output media data for loading, or directly generate the output media data for loading by shooting in real time through the camera viewfinder, based on the preview image observed in the first page component. This enables convenient and fast loading of the output media data, and subsequent steps of editing and uploading the output media data.
  • the camera viewfinder page by responding to the camera start instruction, the camera viewfinder page is started, and the camera viewfinder page includes a first interface component; based on the first interface component, at least two frames of preview images are displayed within a first time period, and the preview images The image is generated based on the media data in the media database.
  • the camera viewfinder page can dynamically display the content in the media database while realizing the camera framing, so that the user can preview the results of real-time shooting of media data and the results of loading existing media data by observing the camera viewfinder page, thereby helping the user to make decisions quickly without having to open the camera viewfinder page and the media database page separately to try and search respectively, which simplifies the operation steps, improves the interaction efficiency, and increases the speed of generating the output media data that is ultimately uploaded to the content creation application.
  • the camera viewfinder page also includes a second interface component, and the second interface component is used to display the target visual effects added to the preview image.
  • the method provided in this embodiment also includes: based on the target visual effects displayed by the second interface component, generating a special effects image corresponding to the preview image.
  • FIG6 is a schematic diagram of another camera viewfinder page provided by an embodiment of the present disclosure.
  • a second interface component is provided at a second target position of the camera viewfinder page.
  • the second interface component is used to display target visual effects added to the preview image, more specifically, skin beautification effects, sticker effects, etc.
  • the second interface component changes the target visual effect displayed in response to a user instruction. For example, after the user clicks on the second interface component, a plurality of alternative visual effects are popped up and displayed. Then, based on the user's selection operation of the alternative visual effects, one of the alternative visual effects is selected as the target visual effect.
  • FIG7 is a schematic diagram of generating a special effect image provided by an embodiment of the present disclosure.
  • the target visual effect displayed by the second interface component is a sticker effect that adds virtual decorations (such as the crown shown in the figure) to the user avatar
  • the preview image corresponding to the first interface component that is, the preview image generated by the target media data in the media database, is a photo containing the user avatar.
  • the generated special effect image is: a photo containing the user avatar with virtual decorations.
  • step S102 includes: based on the first interface component, in the first time period, displaying special effect images corresponding to at least two frames of preview images respectively.
  • a second interface component for displaying the visual effects of the preview image is further added.
  • the target visual effects are displayed and set by the second interface component, so that the first interface component can display the preview image with the corresponding visual effects added, so that the user can further observe the effect of adding visual effects to the media data in the media database by observing the camera viewfinder page, thereby helping the user decide whether to use the media data in the media database page to generate the final output media data to perform subsequent editing, uploading and other steps. This further reduces the user operation steps, improves the interaction efficiency, and shortens the time consumption of generating output media data.
  • FIG8 is a second flow chart of the image preview method provided by the embodiment of the present disclosure. Based on the embodiment shown in FIG3 , this embodiment adds a step of determining target media data in a media database page and a step of generating output media data.
  • the image preview method includes:
  • Step S201 display the previous page and obtain page information corresponding to the previous page, the page information represents the page theme corresponding to the previous page, the previous page includes a third interface component, and the third interface component is used to generate user-made media corresponding to the page theme.
  • Step S202 In response to a first trigger operation on the third interface component, a camera start instruction is generated, where the camera start instruction includes page information.
  • the front page is a page that triggers the camera viewfinder page
  • a third interface component is set in the front page, such as a trigger control named "Upload my work" set in the client in the embodiment shown in FIG2.
  • a trigger control named "Upload my work” set in the client in the embodiment shown in FIG2.
  • a camera start instruction is generated, and the camera viewfinder page is directly started, without displaying the page containing the two controls of "shooting video/photo” and “loading video/photo” in the embodiment shown in FIG2, thereby simplifying the operation process.
  • the front page is configured with corresponding page information
  • the terminal device can obtain the page information corresponding to the front page through the client program.
  • different front pages can correspond to different page information
  • the page information represents the page theme corresponding to the front page.
  • the front page #1 is the car section discussion area in the application, the corresponding page theme is "car theme”, and the page information corresponding to the front page #1 is info_1;
  • the front page #2 is the travel section discussion area in the application, the corresponding page theme is "travel theme”, and the page information corresponding to the front page #2 is info_2.
  • the page information has a fixed mapping relationship with the page theme it represents, and the mapping relationship can be preset, so the page information can be an abstract identifier in the above example.
  • the page information can be determined by the access address of the front page.
  • a corresponding camera startup instruction is generated, so that the camera startup instruction can include the page information of the front page.
  • Step S203 In response to the camera start instruction, start the camera viewfinder page, which includes a first interface component and a second interface component.
  • Step S204 Generate target scene information according to the page information in the camera startup instruction, where the target scene information represents the target content category of the media data.
  • Step S205 Determine target media data according to the target scene information, and generate at least two frames of preview images based on the target media data.
  • the startup method corresponding to the camera viewfinder page is called, and initialization is performed to load the camera viewfinder page, wherein, during the initialization phase, the first interface component and the second interface component within the camera viewfinder page may not load data, and after the initialization phase ends, the data corresponding to the first interface component and the second interface component are determined and loaded, so that the first interface component and the second interface component display corresponding content.
  • the camera startup instruction includes page information, and the page information represents the page theme corresponding to the front page.
  • the corresponding target scene information is obtained, and the target scene information represents the target content category of the media data.
  • the content categories include, for example, vehicles, houses, scenery, portraits, etc.
  • the mapping relationship between the page information and the scene information is, for example, when the page theme of the front page represented by the page information is "car theme", then the target content category mapped is "vehicle” and "highway”.
  • the target content category mapped is "scenery" and "portrait”.
  • the scene information can also be represented based on an abstract identifier, which can be set according to needs. Due to the content category of the media data represented by the scene information, the media data can be classified on the basis of identifying the media data, for example, videos and photos about "portraits" and "landscapes" in the media data can be identified. Therefore, based on the target content category represented by the target scene information, the corresponding media data belonging to the target content category, that is, the target media data, can be obtained. Furthermore, at least two frames of preview images can be obtained according to the target media data.
  • the specific implementation method has been introduced in the embodiment shown in Figure 3 and will not be repeated here.
  • Step S206 Obtain target visual effects based on the target scene information.
  • Step S207 Based on the second interface component, display the target visual effects added to the preview image.
  • the visual effects that match it can be further determined.
  • the target content category corresponding to the target scene information is "scenery”
  • visual effect A for adding a "halo” effect
  • the target content category corresponding to the target scene information is "character”
  • visual effect B for adding a "skin beautification” effect
  • the specific mapping relationship can be set based on specific needs and will not be repeated here.
  • an identifier corresponding to the target visual effect is displayed in the second interface component used to display the visual effect, thereby realizing the display and setting of the target visual effect, and realizing automatic recommendation of visual effects that match the page theme, reducing user operations and improving interaction efficiency.
  • Step S208 Generate a special effect image corresponding to the preview image based on the target visual special effect displayed by the second interface component.
  • Step S209 Based on the first interface component, special effect images corresponding to at least two frames of preview images are displayed within a first time period.
  • rendering is performed based on the target visual effects preview images, thereby generating preview images with visual effects, i.e., special effects images.
  • visual effects i.e., special effects images.
  • step S209 the method further includes:
  • Step S210 In response to a second trigger operation on the first interface component, generate output media data, 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.
  • Step S211 Display the output media data on the front page of the camera viewfinder page.
  • the preview image in the first interface component changes dynamically
  • the terminal device detects a second trigger operation on the first interface component at a first moment, such as a click operation on the first interface component
  • the preview image displayed in the first interface component at the first moment is the target preview image corresponding to the second trigger operation.
  • the target media data corresponding to the target preview image is obtained, such as a video or a photo, and the target media data is compressed, resized, and visual effects are added to the target media data to generate output media data; alternatively, the target media data is directly used as output media data.
  • the client running on the terminal device returns to the front page and displays the output media data on the front page, thereby completing the process of loading the output media data. Based on specific needs, the output media data can be further edited and uploaded, which will not be elaborated here.
  • FIG9 is a schematic diagram of a process of loading and outputting media data provided by an embodiment of the present disclosure.
  • the camera viewfinder page is entered.
  • the first interface component dynamically displays multiple frames of preview images. For example, at a first moment, the first interface component displays a preview image P1, at a second moment, the first interface component displays a preview image P2, and at a third moment, the first interface component displays a preview image P3.
  • the terminal device detects a third trigger operation on the first interface component, such as a click operation by a user, and then the terminal device automatically obtains the preview image P1.
  • the corresponding target media data data_1 is loaded, and visual effects rendering is performed on the target media data data_1 to generate media data with visual rendering effects, that is, output media data, which is loaded and displayed in the front page.
  • visual rendering effects that is, output media data, which is loaded and displayed in the front page.
  • the word "loaded” is displayed in the third interface component at the same time.
  • the preview image displayed by the first interface component in the steps of this embodiment is dynamically and automatically determined based on the scene information, and is not manually selected by the user, and when visual effects are added, it will be difficult or impossible for the user to accurately find the corresponding target media data through the media database page by observing the preview image alone, which will lead to additional time consumption in the process of loading the output media data based on the target media data, and reduce the efficiency of loading the output media data.
  • the target preview image is directly determined, and the corresponding output media data is loaded on the front page.
  • the user can complete the process of loading the output media data by observing the preview image displayed in the first interface component in combination with the second trigger operation, without having to start the media database page to manually search and select the target media data, thereby improving the efficiency of loading the output media data and reducing time consumption.
  • step S203 is similar to the implementation method of step S101 in the embodiment shown in FIG. 3 of the present disclosure.
  • the implementation method of step S203 is similar to the implementation method of step S101 in the embodiment shown in FIG. 3 of the present disclosure.
  • please refer to the corresponding introduction in the embodiment shown in FIG. 3 and no further details will be given here.
  • FIG10 is a structural block diagram of an image preview device provided by an embodiment of the present disclosure.
  • the image preview device 3 includes:
  • the starting module 31 is used to start the camera viewfinder page in response to the camera start instruction, and the camera viewfinder page includes the first interface component;
  • the display module 32 is used to display at least two frames of preview images within a first time period based on the first interface component, where the preview images are generated based on the media data in the media database.
  • the display module 32 before displaying at least two frames of preview images, is further used to: obtain target scene information, the target scene information represents the target content category of the media data; determine the target media data according to the target scene information; and generate at least two frames of preview images based on the target media data.
  • the startup module 31 before starting the camera viewfinder page, is also used to: obtain page information corresponding to the front page, the page information represents the page theme corresponding to the front page, the front page includes a third interface component, and the third interface component is used to generate user-made media corresponding to the page theme; in response to a first trigger operation on the third interface component, a camera startup instruction is generated, and the camera startup instruction includes the page information; when the display module 32 obtains the target scene information, it is specifically used to: generate the target scene information according to the page information in the camera startup instruction.
  • the target media data includes a target video stored in a media database.
  • the display module 32 When the display module 32 generates at least two preview images based on the target media data, it is specifically used to: obtain at least two key frames of the target video; and generate corresponding preview images based on the key frames.
  • the camera viewfinder page also includes a second interface component, which is used to display the target visual effects added to the preview image; the display module 32 is also used to: generate a special effects image corresponding to the preview image based on the target visual effects displayed by the second interface component; when the display module 32 displays at least two frames of preview images based on the first interface component within a first time period, it is specifically used to: display special effects images corresponding to at least two frames of preview images respectively based on the first interface component within the first time period.
  • the display module 32 is further used to: obtain a target visual effect based on target scene information, where the target scene information represents a target content category of the media data; and display the target visual effect in the second interface component.
  • the display module 32 is further used to: generate 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 the target media data corresponding to the target preview image; and display the output media data on a front page of the camera viewfinder page.
  • the start module 31 is connected to the display module 32.
  • the image preview device 3 provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
  • FIG11 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. As shown in FIG11 , the electronic device 4 includes:
  • the memory 42 stores computer executable instructions
  • the processor 41 executes the computer-executable instructions stored in the memory 42 to implement the image preview method in the embodiments shown in FIG. 3 to FIG. 9 .
  • processor 41 and the memory 42 are connected via a bus 43 .
  • FIG. 12 it shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure
  • the electronic device 900 may be a terminal device or a server.
  • the terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (Portable Media Players, PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital televisions (TVs), desktop computers, etc.
  • PDAs personal digital assistants
  • PADs Portable multimedia players
  • PMPs portable multimedia players
  • vehicle-mounted terminals such as vehicle-mounted navigation terminals
  • fixed terminals such as digital televisions (TVs), desktop computers, etc.
  • the electronic device shown in FIG. 12 is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present disclosure.
  • the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903.
  • a processing device e.g., a central processing unit, a graphics processing unit, etc.
  • RAM random access memory
  • Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903.
  • the processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904.
  • An input/output (I/O) interface 905 is also connected to the bus 904.
  • the following devices may be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909.
  • the communication device 909 may allow the electronic device 900 to communicate wirelessly or wired with other devices to exchange data.
  • FIG. 12 shows an electronic device 900 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
  • an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program can be downloaded and installed from the network through the communication device 909, or downloaded from the storage device 908. is installed, or is installed from the ROM 902.
  • the processing device 901 the above functions defined in the method of the embodiment of the present disclosure are executed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above.
  • Computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
  • a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code.
  • This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate or transmit programs for use by or in conjunction with instruction execution systems, devices or devices.
  • the program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, radio frequencies (RF), etc., or any suitable combination of the above.
  • the computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device executes the method shown in the above embodiment.
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages.
  • the program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server.
  • the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
  • LAN Local Area Network
  • WAN Wide Area Network
  • each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function.
  • the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.
  • each square box in the block diagram and/or flow chart, and the combination of the square boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or hardware.
  • the name of a unit does not limit the unit itself in some cases.
  • the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
  • exemplary types of hardware logic components include: Field-Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Application Specific Standard Parts (ASSP), System On Chip (SOC), Complex Programmable Logic Device (CPLD), etc.
  • FPGA Field-Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • ASSP Application Specific Standard Parts
  • SOC System On Chip
  • CPLD Complex Programmable Logic Device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing.
  • a more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or flash memory erasable programmable read-only memory
  • CD-ROM portable compact disk read-only memory
  • CD-ROM compact disk read-only memory
  • magnetic storage device or any suitable combination of the foregoing.
  • an image preview method comprising:
  • a camera viewfinder page is started, wherein the camera viewfinder page includes a first interface component; based on the first interface component, at least two frames of preview images are displayed within a first time period, wherein the preview images are generated based on media data in a media database.
  • the present disclosure before displaying at least two frames of preview images, it also includes: acquiring target scene information, wherein the target scene information represents a target content category of the media data; determining target media data according to the target scene information; and generating the at least two frames of preview images based on the target media data.
  • the camera viewfinder page before the camera viewfinder page is started, it also includes: obtaining page information corresponding to a front page, the page information represents a page theme corresponding to the front page, the front page includes a third interface component, and the third interface component is used to generate user-made media corresponding to the page theme; in response to a first trigger operation on the third interface component, generating the camera start instruction, the camera start instruction includes the page information; obtaining the target scene information, including: generating the target scene information according to the page information in the camera start instruction.
  • the target media data includes a target video stored in the media database
  • generating the at least two preview images based on the target media data includes: obtaining at least two key frames of the target video; and generating corresponding preview images based on the key frames.
  • the camera viewfinder page also includes a second interface component, and the second interface component is used to display the target visual effects added to the preview image; the method also includes: based on the target visual effects displayed by the second interface component, generating a special effects image corresponding to the preview image; based on the first interface component, displaying at least two frames of preview images within a first time period, including: based on the first interface component, displaying the special effects images corresponding to the at least two frames of preview images respectively within the first time period.
  • the method further includes: obtaining the target visual effect based on target scene information, wherein the target scene information represents a target content category of the media data; and displaying the target visual effect in the second interface component.
  • the method further includes: generating output media data in response to a second trigger operation for 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; and displaying the output media data on a front page of the camera viewfinder page.
  • an image preview device comprising:
  • a starting module configured to start a camera viewfinder page in response to a camera start instruction, wherein the camera viewfinder page includes a first interface component;
  • the display module is used to display at least two frames of preview images within a first time period based on the first interface component, where the preview images are generated based on the media data in the media database.
  • the display module before displaying at least two frames of preview images, is further used to: obtain target scene information, wherein the target scene information represents a target content category of the media data; determine target media data according to the target scene information; and generate the at least two frames of preview images based on the target media data.
  • the startup module before the camera viewfinder page is started, is further used to: obtain page information corresponding to a front page, the page information represents a page theme corresponding to the front page, the front page includes a third interface component, and the third interface component is used to generate user-made media corresponding to the page theme; in response to a first trigger operation on the third interface component, generate the camera startup instruction, the camera startup instruction includes the page information; when the display module obtains the target scene information, it is specifically used to: generate the target scene information according to the page information in the camera startup instruction.
  • the target media data includes a target video stored in the media database, and when the display module generates the at least two preview images based on the target media data, it is specifically used to: obtain at least two key frames of the target video; and generate corresponding preview images based on the key frames.
  • the camera viewfinder page also includes a second interface component, and the second interface component is used to display the target visual effects added to the preview image; the display module is also used to: generate a special effects image corresponding to the preview image based on the target visual effects displayed by the second interface component; when the display module displays at least two frames of preview images within a first time period based on the first interface component, it is specifically used to: display the special effects images corresponding to the at least two frames of preview images respectively within the first time period based on the first interface component.
  • the display module is further used to: obtain the target visual effect based on target scene information, wherein the target scene information represents a target content category of the media data; and display the target visual effect in the second interface component.
  • the display module is further used to: generate 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; and display the output media data on a front page of the camera viewfinder page.
  • an electronic device comprising: a processor, and a memory communicatively connected to the processor;
  • the memory stores computer-executable instructions
  • the processor executes the computer-executable instructions stored in the memory to implement the image preview method as described in the first aspect and various possible designs of the first aspect.
  • a computer-readable storage medium stores computer execution instructions.
  • the image preview method described in the first aspect and various possible designs of the first aspect is implemented.
  • an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the image preview method as described in the first aspect and various possible designs of the first aspect.
  • an embodiment of the present disclosure provides a computer program, which is used to implement the image preview method described in the first aspect and various possible designs of the first aspect.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开实施例提供一种图像预览方法、装置、电子设备及存储介质,通过响应于相机启动指令,启动相机取景框页面,相机取景框页面内包括第一界面组件;其中,第一界面组件提供媒体数据库的交互入口;基于第一界面组件,展示对应预览图像;其中,第一界面组件在第一时间段内,动态展示至少两帧预览图像,预览图像是基于媒体数据库内的媒体数据生成的。由于在相机取景框页面内设置了可以动态展示预览图像的第一界面组件,使相机取景框页面能够在实现相机取景的同时,动态展示媒体数据库中的内容,从而使用户通过观察相机取景框页面,即可同时预览到实时拍摄媒体数据的结果和加载已有媒体数据的结果。

Description

图像预览方法、装置、电子设备及存储介质
相关申请交叉引用
本申请要求于2022年10月10日提交中国专利局、申请号为202211236048.3、发明名称为“图像预览方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用并入本文。
技术领域
本公开实施例涉及互联网技术领域,尤其涉及一种图像预览方法、装置、电子设备及存储介质。
背景技术
当前,以短视频应用(Application)为例的内容创作类应用,凭借即丰富和多样化的内容,深受用户的喜爱。其中,以视频、图像等媒体数据为主要的内容展示形式。
现有技术中,在内容创作类应用对应的客户端,可以通过触发相机控件,调起相机取景框页面进行媒体数据拍摄,或者,通过触发媒体数据库控件,调起媒体数据库页面加载已存在媒体数据,最终得到用于编辑、上传至内容创作类应用的输出媒体数据。
发明内容
本公开实施例提供一种图像预览方法、装置、电子设备及存储介质。
第一方面,本公开实施例提供一种图像预览方法,包括:
响应于相机启动指令,启动相机取景框页面,所述相机取景框页面内包括第一界面组件;其中,所述第一界面组件提供媒体数据库的交互入口;基于所述第一界面组件,展示对应预览图像,以引导用户进入所述交互入口;其中,所述第一界面组件在第一时间段内,动态展示至少两帧预览图像,所述预览图像是基于媒体数据库内的媒体数据生成的。
第二方面,本公开实施例提供一种图像预览装置,包括:
启动模块,响应于相机启动指令,启动相机取景框页面,所述相机取景框页面内包括第一界面组件;其中,所述第一界面组件提供媒体数据库的交互入口;
显示模块,基于所述第一界面组件,展示对应预览图像,以引导用户进入所述交互入口;
其中,所述第一界面组件在第一时间段内,展示至少两帧预览图像,所述预览图像是基于媒体数据库内的媒体数据生成的。
第三方面,本公开实施例提供一种电子设备,包括:
处理器,以及与所述处理器通信连接的存储器;
所述存储器存储计算机执行指令;
所述处理器执行所述存储器存储的计算机执行指令,以实现如上第一方面以及第一方面各种可能的设计所述的图像预览方法。
第四方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的图像预览方法。
第五方面,本公开实施例提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的图像预览方法。
第六方面,本公开实施例提供一种计算机程序,所述计算机程序用于实现如上第一方面以及第一方面各种可能的设计所述的图像预览方法。
本公开实施例提供的图像预览方法、装置、电子设备及存储介质,通过响应于相机启动指令,启动相机取景框页面,所述相机取景框页面内包括第一界面组件;其中,所述第一界面组件提供媒体数据库的交互入口;基于所述第一界面组件,展示对应预览图像,以引导用户进入所述交互入口;其中,所述第一界面组件在第一时间段内,动态展示至少两帧预览图像,所述预览图像是基于媒体数据库内的媒体数据生成的。由于在相机取景框页面内设置了可以动态展示预览图像的第一界面组件,使相机取景框页面能够在实现相机取景的同时,动态展示媒体数据库中的内容,从而使用户通过观察相机取景框页面,即可同时预览到实时拍摄媒体数据的结果和加载已有媒体数据的结果。
附图说明
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例提供的图像预览方法的一种应用场景图;
图2为现有技术中的一种上传媒体数据的流程示意图;
图3为本公开实施例提供的图像预览方法的流程示意图一;
图4为本公开实施例提供的一种相机取景框页面的示意图;
图5为本公开实施例提供的一种在第一界面组件内动态展示预览图像的示意图;
图6为本公开实施例提供的另一种相机取景框页面的示意图;
图7为本公开实施例提供的一种生成特效图像的示意图;
图8为本公开实施例提供的图像预览方法的流程示意图二;
图9为本公开实施例提供的一种加载输出媒体数据的过程示意图;
图10为本公开实施例提供的图像预览装置的结构框图;
图11为本公开实施例提供的一种电子设备的结构示意图;
图12为本公开实施例提供的电子设备的硬件结构示意图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本 公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
下面对本公开实施例的应用场景进行解释:
图1为本公开实施例提供的图像预览方法的一种应用场景图,本公开实施例提供的图像预览方法,可以应用于基于终端设备向内容创作类应用上传媒体数据的场景中,更具体地,可以应用于加载输出媒体数据的应用场景下,输出媒体数据即用于后续编辑、上传至内容创作类应用的媒体数据。如图1所示,本公开实施例提供的方法,可以应用于终端设备,例如智能手机。示例性地,内容创作类应用是指用户能够上传自制的图像、视频、文字等媒体数据的应用平台,更具体地,例如短视频应用、视频网站应用等,同时,其他具有用户上传媒体数据功能的应用,也属于内容创作类应用的范畴,例如可以允许个人用户上传媒体数据的社交类应用、新闻类应用等。内容创作类应用包括服务端和客户端,其中,客户端运行在终端设备一侧,用户通过操作终端设备,利用客户端加载输出媒体数据,之后将该输出媒体数据进行编辑、上传至服务端,完成用户创造内容的上传。其他终端设备通过运行该内容创作类应用的客户端,可以看到该输出媒体数据,例如用户自制视频、图片等。
现有技术中,在内容创作类应用的客户端内,提供有上传自制内容对应的媒体数据的触发控件,用户在点击该触发控件,客户端会显示对应的上传流程页面,来引导用户进行媒体数据的上传。图2为现有技术中的一种上传媒体数据的流程示意图,如图2所示,示例性地,在用户点击客户端内的“上传我的作品”触发控件后,在新弹出的页面内,显示“拍摄视频/照片”和“加载视频/照片”两个控件来引导用户的后续操作,当用户点击“拍摄视频/照片”后,客户端启动相机取景框页面,进行拍摄取景,并基于用户的拍摄操作,进行视频或照片的拍摄,生成输出媒体数据;当用户点击“加载视频/照片”后,客户端启动媒体数据库页面,展示终端设备内的本地媒体数据库或云端媒体数据库内存储的视频和/或照片,并基于用户的点选操作,获得输出媒体数据。
然而,在实际应用过程中,在用户进行内容创造的应用场景下,用户进行内容创造的过程主观、复杂,一方面,在用户通过相机取景框页面,进行拍摄取景的过程中,用户需要观察在取景框中呈现的图像的视觉效果是否满足需要、光线是否充足、是否存在遮挡物等,再决定是否进行拍摄;另一方面,由于媒体数据库内存储的媒体数据不止一组,需要用户对媒体数据库内的内容进行观察后,才能够进行选取并加载。也即,用户需要基于具体的观察结果,来决定开启相机取景框页面,以“实时拍摄”的方式获得媒体数据,还是开启媒体数据库页面,以“加载现有媒体数据”的方式获得媒体数据。而现有技术中的方案,只能择一开启相机取景框页面或媒体数据库页面,而无法同时实现对相机取景效果和媒体数据库内容的同时预览,因此只能反复切换开启相机取景框页面和媒体数据库页面,来分别对相机取景效果和媒体数据库内容进行预览,造成了获取输出媒体数据的耗时增加,影响用户的创作效率的问题。本公开实施例提供一种图像预览方法以解决上述问题。
参考图3,图3为本公开实施例提供的图像预览方法的流程示意图一。本实施例的方法可以应用在终端设备中,该图像预览方法包括:
步骤S101:响应于相机启动指令,启动相机取景框页面,相机取景框页面内包括第一界面组件。
示例性地,本实施例方法的执行主体为终端设备,更具体地,例如为智能手机,终端设备内运行有内容创作类应用的客户端(以下简称客户端),在客户端中,设置有用于触发相机启动指令的相机控件,当用户通过操作终端设备,触发该相机控件后,生成对应的相机启动指令,之后,响应于该相机启动指令,在客户端内启动相机取景框页面。图4为本公开实施例提供的一种相机取景框页面的示意图,如图4所示,示例性地,在相机取景框页面内,包括位于相机取景框页面中部的相机取景框,以及位于相机取景框下部的拍摄触发控件,该拍摄触发控件用于控制终端设备拍摄视频或图片,上述相机取景框页面中的相机取景框和拍摄触发控件为现有技术中相机取景框页面内的常用功能单元,实现原理不再赘述。
进一步地,在相机取景框页面的第一目标位置,例如图4中拍摄触发控件右侧,还设置有第一界面组件,所述第一界面组件提供媒体数据库的交互入口,该第一界面组件用于以预览图像的形式,展示媒体数据库页面中的媒体数据。其中,除如图4中所示位置外,第一界面组件还可以设置于其他目标位置,此处不作限制,具体可根据需要设置。进一步地,第一界面组件可以为一个或多个组件,当第一界面组件为多个组件时,多个组件之间可设置在相邻位置,便于用户观察,具体位置不作限制,也不再赘述。
步骤S102:基于第一界面组件,在第一时间段内,展示至少两帧预览图像,预览图像是基于媒体数据库内的媒体数据生成的。
示例性地,在启动相机取景框页面,通过第一界面组件动态展示预览图像,其中,在第一界面组件动态展示预览图像,即在第一时间段内,以切换显示的方式,展示至少两帧预览图像。该预览图像是基于媒体数据库内的媒体数据生成的,例如,确定媒体数据库内的目标媒体数据后,对媒体数据库内的目标媒体数据进行采样后,将生成的缩略图作为预览图像。其中,目标媒体数据可以是随机确定的,也可以是基于某种规则确定的。
进一步地,媒体数据包括视频和图片,当媒体数据为视频时,可以从视频中选取出至少两个视频帧,例如两个相邻的关键帧,进行处理后作为对应的预览图像在第一界面组件内展示。图5为本公开实施例提供的一种在第一界面组件内动态展示预览图像的示意图,如图5所示,在启动相机取景框页面,终端设备在获取用户授权的情况下,读取媒体数据库内的媒体数据,其中,该媒体数据库可以是本地媒体数据库,也可以是云端媒体数据库。并从中选取出至少两个目标媒体数据,例如为三张照片(图中示为照片A、照片B和照片C);之后在第一时间段内,例如2秒内,将该三张照片分别切换显示在第一界面组件内,即第0秒时显示照片A、第1秒时显示照片B、第2秒时显示照片C。从而使用户在观察相机取景框页面的同时,可以在3秒钟内,观察到媒体数据库内三张照片的预览图像。其中,示例性地,该第一时间段由预览图像的数量确定,或者,预览图像的数量由预设的第一时间段确定。
之后,可选地,用户可以基于观察到的第一页面组件内的预览图像,决定使用预览图像对应的媒体数据库页面内的媒体数据作为输出媒体数据进行加载,还是直接通过相机取景框进行实时拍摄,直接生成输出媒体数据进行加载。从而实现方便、快捷的加载输出媒体数据,执行后续编辑、上传该输出媒体数据的步骤。
本实施例中,通过响应于相机启动指令,启动相机取景框页面,相机取景框页面内包括第一界面组件;基于第一界面组件,在第一时间段内,展示至少两帧预览图像,预览图 像是基于媒体数据库内的媒体数据生成的。由于在相机取景框页面内设置了可以动态展示预览图像的第一界面组件,使相机取景框页面能够在实现相机取景的同时,动态展示媒体数据库中的内容,从而使用户通过观察相机取景框页面,即可同时预览到实时拍摄媒体数据的结果和加载已有媒体数据的结果,进而帮助用户快速做出决策,而无需分别打开相机取景框页面和媒体数据库页面,分别进行尝试和查找,简化操作步骤,提高交互效率,提高最终用于上传至内容创作类应用的输出媒体数据的生成速度。
在图3所示实施例的基础上,进一步地,在一种可能的实现方式中,相机取景框页面还包括第二界面组件,第二界面组件用于展示针对预览图像添加的目标视觉特效,本实施例提供的方法中,还包括:基于第二界面组件所展示的目标视觉特效,生成预览图像对应的特效图像。
图6为本公开实施例提供的另一种相机取景框页面的示意图,如图6所示,在相机取景框页面的第二目标位置,设置有第二界面组件,第二界面组件用于展示针对预览图像添加的目标视觉特效,更具体地,例如美肤特效、贴纸特效等。一种可能的实现方式中,第二界面组件响应用户指令而改变其所显示的目标视觉特效,例如,用户点击该第二界面组件后,弹出显示多个备选视觉特效,之后基于用户对备选视觉特效的选择操作,将其中一个作为目标视觉特效。
进一步地,基于第二界面组件所展示的目标视觉特效,终端设备基于该目标视觉特效对第一界面组件所对应的预览图像进行渲染,从而生成带有该目标视觉特效的图像,即特效图像。图7为本公开实施例提供的一种生成特效图像的示意图,如图7所示,示例性地,第二界面组件所展示的目标视觉特效为为用户头像增加虚拟装饰物(例如图中所示的皇冠)的贴纸特效,而第一界面组件所对应的预览图像,也即,由媒体数据库内的目标媒体数据生成的预览图像,为包含用户头像的照片,则基于目标视觉特效对预览图像进行渲染后,生成的特效图像为:包含带有虚拟装饰物的用户头像的照片。
相应的,基于上述实现方式,步骤S102的具体实现方法包括:基于第一界面组件,在第一时间段内,展示至少两帧预览图像分别对应的特效图像。
本实施例中,在相机取景框页面内设置第一界面组件的基础上,进一步增加用于显示预览图像的视觉特效的第二界面组件,通过第二界面组件显示和设置目标视觉特效,使第一界面组件能够显示添加了相应的视觉特效的预览图像,从而使用户通过观察相机取景框页面,可以进一步观察到对媒体数据库内的媒体数据添加视觉特效后的效果,从而帮助用户决定是否采用媒体数据库页面内的媒体数据生成最终的输出媒体数据执行后续的编辑、上传等步骤。进一步地减少了用户操作步骤,提高了交互效率,缩短了生成输出媒体数据的耗时。
参考图8,图8为本公开实施例提供的图像预览方法的流程示意图二。本实施例在图3所示实施例的基础上,增加了确定媒体数据库页面内的目标媒体数据的步骤,以及生成输出媒体数据的步骤,该图像预览方法包括:
步骤S201:显示前置页面,并获取前置页面对应的页面信息,页面信息表征前置页面对应的页面主题,前置页面内包括第三界面组件,第三界面组件用于生成与页面主题对应的用户自制媒体。
步骤S202:响应于针对第三界面组件的第一触发操作,生成相机启动指令,相机启动指令中包括页面信息。
示例性地,前置页面即触发相机取景框页面的页面,前置页面内设置有第三界面组件,例如图2所示实施例中客户端内设置的名称为“上传我的作品”触发控件,当用户点击该触发控件后,生成相机启动指令,并直接启动相机取景框页面,而无需展示图2所示实施例中包含“拍摄视频/照片”和“加载视频/照片”两个控件的页面,从而简化操作流程。具体实现可参见图2及图4对应实施例中的介绍,此处不再赘述。
进一步地,前置页面配置有对应的页面信息,终端设备可以通过客户端程序,获得前置页面对应的页面信息。其中,示例性地,不同的前置页面可以对应不同的页面信息,页面信息表征前置页面对应的页面主题。例如,前置页面#1是应用中的汽车板块讨论区,对应的页面主题为“汽车主题”,前置页面#1对应的页面信息为info_1;前置页面#2是应用中的旅游板块讨论区,对应的页面主题为“旅游主题”,前置页面#2对应的页面信息为info_2。示例性地,页面信息与其所表征的页面主题具有固定的映射关系,该映射关系可以是预设的,因此,页面信息可以为上述示例中的抽象标识。进一步地,该页面信息可以通过前置页面的访问地址确定的。在响应于针对第三界面组件的第一触发操作时,基于该前置页面对应的页面信息,生成对应的相机启动指令,使相机启动指令中能够包含该前置页面的页面信息。
步骤S203:响应于相机启动指令,启动相机取景框页面,相机取景框页面内包括第一界面组件和第二界面组件。
步骤S204:根据相机启动指令中的页面信息,生成目标场景信息,目标场景信息表征媒体数据的目标内容类别。
步骤S205:根据目标场景信息,确定目标媒体数据,并基于目标媒体数据,生成至少两帧预览图像。
示例性地,在响应该相机启动指令后,调用相机取景框页面对应的启动方法,并进行初始化,加载该相机取景框页面,其中,在初始化阶段,相机取景框页面内的第一界面组件和第二界面组件可以不加载数据,在初始化阶段结束后,确定并加载第一界面组件和第二界面组件对应的数据,从而使第一界面组件和第二界面组件显示对应的内容。
其中,示例性地,相机启动指令中包含有页面信息,页面信息表征前置页面对应的页面主题,基于该页面信息以及预设的映射关系,得到对应的目标场景信息,目标场景信息表征媒体数据的目标内容类别,内容类别例如包括,车辆、房屋、风景、人像等。页面信息与场景信息之间的映射关系例如为,当页面信息表征的前置页面的页面主题为“汽车主题”,则其所映射的目标内容类别为“车辆”、“公路”。当页面信息表征的前置页面的页面主题为“旅游主题”,则其所映射的目标内容类别为“风景”、“人像”。其中,场景信息也可以基于抽象标识表征,具体可根据需要设置。由于场景信息所表征的媒体数据的内容类别,可以在对媒体数据进行识别的基础上,对媒体数据进行分类,例如识别出媒体数据中关于“人像”、“风景”的视频和照片,因此,基于目标场景信息所表征的目标内容类别,可以得到对应的、归属于该目标内容类别下的媒体数据,即目标媒体数据,进而,根据目标媒体数据得到至少两帧预览图像,具体实现方法在图3所示实施例中已进行介绍,此处不再赘述。
步骤S206:基于目标场景信息,获得目标视觉特效。
步骤S207:基于第二界面组件,展示针对预览图像添加的目标视觉特效。
示例性地,基于目标场景信息,可以进一步的确定与之匹配的视觉特效,即目标视觉特效,例如,当目标场景信息对应的目标内容类别为“风景”,则使用用于添加“光晕”特效的视觉特效A;当目标场景信息对应的目标内容类别为“人物”,则使用用于添加“美肤”特效的视觉特效B;即通过不同的目标场景信息和预设的映射关系,可以确定与之匹配的目标视觉特效,具体地映射关系实现可以基于具体需要设置,不再赘述。
进一步地,确定目标视觉特效后,在用于展示视觉特效的第二界面组件内,显示该目标视觉特效对应的标识,例如特效图标、特效文字等,从而实现对该目标视觉特效的展示和设置,实现与页面主题匹配的视觉特效的自动推荐,减少用户操作,提高交互效率。
步骤S208:基于第二界面组件所展示的目标视觉特效,生成预览图像对应的特效图像。
步骤S209:基于第一界面组件,在第一时间段内,展示至少两帧预览图像分别对应的特效图像。
进一步地,在确定目标视觉特效和预览图像后,基于目标视觉特效预览图像进行渲染,从而生成带有视觉特效的预览图像,即特效图像。其中,基于上述步骤,由于目标视觉特效和预览图像,是基于同一组目标场景信息确定的,因此,可以保证目标视觉特效和预览图像在主体场景维度的一致性,使生成的特效图像更加合理,与有经验用户手动设置和选取的结果也更加相似,因此,对于无经验用户更加友好,提高用户在使用现有媒体数据进行内容创造的情况下,提高产出的作品的质量和效率。
进一步地,可选地,在步骤S209之后,还包括:
步骤S210:响应于针对第一界面组件的第二触发操作,生成输出媒体数据,其中,第二触发操作指示第一界面组件内的目标预览图像,输出媒体数据是基于目标预览图像或目标预览图像对应的目标媒体数据生成的。
步骤S211:将输出媒体数据显示在相机取景框页面的前置页面。
示例性地,由于第一界面组件内的预览图像是动态变化的,当终端设备在第一时刻检测到针对第一界面组件的第二触发操作时,例如对第一界面组件的点击操作,则该第一时刻下,第一界面组件内显示的预览图像,即为第二触发操作对应的目标预览图像。之后,获取该目标预览图像对应的目标媒体数据,例如为视频或照片,将目标媒体数据进行压缩、尺寸调整、添加视觉特效等处理步骤后,生成输出媒体数据;或者,直接将该目标媒体数据作为输出媒体数据。再之后,终端设备运行的客户端返回前置页面,并将输出媒体数据显示在该前置页面内,从而完成加载输出媒体数据的过程。之后基于具体的需要,可以进一步对输出媒体数据进行编辑、上传,此处不再赘述。
图9为本公开实施例提供的一种加载输出媒体数据的过程示意图,如图9所示,示例性地,在前置页面点击“加载图片”按钮(第三界面组件)后,进入相机取景框页面,在相机取景框页面内,第一界面组件动态显示多帧预览图像,例如在第一时刻,第一界面组件内显示预览图像P1、在第二时刻,第一界面组件内显示预览图像P2、在第三时刻,第一界面组件内显示预览图像P3,其中,在第三时刻下,终端设备检测到针对第一界面组件的第三触发操作,例如用户的点击操作,之后,终端设备自动获取该预览图像P1对 应的目标媒体数据data_1,并对该目标媒体数据data_1进行视觉特效渲染,生成带有视觉渲染特效的媒体数据,即输出媒体数据,加载该输出媒体数据并显示在前置页面内,可选地,同时在第三界面组件显示“已加载”字样。
由于本实施例步骤中第一界面组件所显示的预览图像,是基于场景信息动态自动确定的,并非用户手动选择的,并且在添加有视觉特效的情况,会导致用户仅通过观察预览图像,很难或无法通过媒体数据库页面准确找到对应的目标媒体数据的问题,进而导致基于目标媒体数据加载输出媒体数据的过程中,增加额外的耗时,降低输出媒体数据的加载效率。本实施例步骤中,通过响应针对第一界面组件的第二触发操作,直接确定目标预览图像,并在前置页面加载对应的输出媒体数据。使用户通过观察第一界面组件内显示的预览图像,结合第二触发操作,即可完成加载输出媒体数据的过程,无需启动媒体数据库页面进行手动查找和选择目标媒体数据,提高了输出媒体数据的加载效率,减少耗时。
本实施例中,步骤S203的实现方式与本公开图3所示实施例中的步骤S101的实现方式类似,具体可参见图3所示实施例中的对应介绍,在此不再一一赘述。
对应于上文实施例的图像预览方法,图10为本公开实施例提供的图像预览装置的结构框图。为了便于说明,仅示出了与本公开实施例相关的部分。参照图10,图像预览装置3包括:
启动模块31,用于响应于相机启动指令,启动相机取景框页面,相机取景框页面内包括第一界面组件;
显示模块32,用于基于第一界面组件,在第一时间段内,展示至少两帧预览图像,预览图像是基于媒体数据库内的媒体数据生成的。
在本公开的一个实施例中,在展示至少两帧预览图像之前,显示模块32,还用于:获取目标场景信息,目标场景信息表征媒体数据的目标内容类别;根据目标场景信息,确定目标媒体数据;基于目标媒体数据,生成至少两帧预览图像。
在本公开的一个实施例中,在启动相机取景框页面之前,启动模块31,还用于:获取前置页面对应的页面信息,页面信息表征前置页面对应的页面主题,前置页面内包括第三界面组件,第三界面组件用于生成与页面主题对应的用户自制媒体;响应于针对第三界面组件的第一触发操作,生成相机启动指令,相机启动指令中包括页面信息;显示模块32在获取目标场景信息时,具体用于:根据相机启动指令中的页面信息,生成目标场景信息。
在本公开的一个实施例中,目标媒体数据包括存储于媒体数据库内的目标视频,显示模块32在基于目标媒体数据,生成至少两帧预览图像时,具体用于:获取目标视频的至少两个关键帧;基于关键帧,生成对应的预览图像。
在本公开的一个实施例中,相机取景框页面还包括第二界面组件,第二界面组件用于展示针对预览图像添加的目标视觉特效;显示模块32,还用于:基于第二界面组件所展示的目标视觉特效,生成预览图像对应的特效图像;显示模块32在基于第一界面组件,在第一时间段内,展示至少两帧预览图像时,具体用于:基于第一界面组件,在第一时间段内,展示至少两帧预览图像分别对应的特效图像。
在本公开的一个实施例中,显示模块32,还用于:基于目标场景信息,获得目标视觉特效,目标场景信息表征媒体数据的目标内容类别;在第二界面组件显示目标视觉特效。
在本公开的一个实施例中,显示模块32,还用于:响应于针对第一界面组件的第二触发操作,生成输出媒体数据,其中,第二触发操作指示第一界面组件内的目标预览图像,输出媒体数据是基于目标预览图像或目标预览图像对应的目标媒体数据生成的;将输出媒体数据显示在相机取景框页面的前置页面。
其中,启动模块31和显示模块32连接。本实施例提供的图像预览装置3可以执行上述方法实施例的技术方案,其实现原理和技术效果类似,本实施例此处不再赘述。
图11为本公开实施例提供的一种电子设备的结构示意图,如图11所示,该电子设备4包括:
处理器41,以及与处理器41通信连接的存储器42;
存储器42存储计算机执行指令;
处理器41执行存储器42存储的计算机执行指令,以实现如图3-图9所示实施例中的图像预览方法。
其中,可选地,处理器41和存储器42通过总线43连接。
相关说明可以对应参见图3-图9所对应的实施例中的步骤所对应的相关描述和效果进行理解,此处不做过多赘述。
参考图12,其示出了适于用来实现本公开实施例的电子设备900的结构示意图,该电子设备900可以为终端设备或服务器。其中,终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、平板电脑(Portable Android Device,PAD)、便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视(Television,TV)、台式计算机等等的固定终端。图12示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图12所示,电子设备900可以包括处理装置(例如中央处理器、图形处理器等)901,其可以根据存储在只读存储器(Read Only Memory,ROM)902中的程序或者从存储装置908加载到随机访问存储器(Random Access Memory,RAM)903中的程序而执行各种适当的动作和处理。在RAM 903中,还存储有电子设备900操作所需的各种程序和数据。处理装置901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(Input/Output,I/O)接口905也连接至总线904。
通常,以下装置可以连接至I/O接口905:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置906;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置907;包括例如磁带、硬盘等的存储装置908;以及通信装置909。通信装置909可以允许电子设备900与其他设备进行无线或有线通信以交换数据。虽然图12示出了具有各种装置的电子设备900,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置909从网络上被下载和安装,或者从存储装置908 被安装,或者从ROM 902被安装。在该计算机程序被处理装置901执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)或闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这以所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field-Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Parts,ASSP)、片上系统(System On Chip,SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例可以包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
第一方面,根据本公开的一个或多个实施例,提供了一种图像预览方法,包括:
响应于相机启动指令,启动相机取景框页面,所述相机取景框页面内包括第一界面组件;基于所述第一界面组件,在第一时间段内,展示至少两帧预览图像,所述预览图像是基于媒体数据库内的媒体数据生成的。
根据本公开的一个或多个实施例,在所述展示至少两帧预览图像之前,还包括:获取目标场景信息,所述目标场景信息表征所述媒体数据的目标内容类别;根据所述目标场景信息,确定目标媒体数据;基于所述目标媒体数据,生成所述至少两帧预览图像。
根据本公开的一个或多个实施例,在所述启动相机取景框页面之前,还包括:获取前置页面对应的页面信息,所述页面信息表征所述前置页面对应的页面主题,所述前置页面内包括第三界面组件,所述第三界面组件用于生成与所述页面主题对应的用户自制媒体;响应于针对所述第三界面组件的第一触发操作,生成所述相机启动指令,所述相机启动指令中包括所述页面信息;获取所述目标场景信息,包括:根据所述相机启动指令中的页面信息,生成目标场景信息。
根据本公开的一个或多个实施例,所述目标媒体数据包括存储于所述媒体数据库内的目标视频,所述基于所述目标媒体数据,生成所述至少两帧预览图像,包括:获取所述目标视频的至少两个关键帧;基于所述关键帧,生成对应的预览图像。
根据本公开的一个或多个实施例,所述相机取景框页面还包括第二界面组件,所述第二界面组件用于展示针对所述预览图像添加的目标视觉特效;所述方法还包括:基于所述第二界面组件所展示的目标视觉特效,生成所述预览图像对应的特效图像;所述基于所述第一界面组件,在第一时间段内,展示至少两帧预览图像,包括:基于所述第一界面组件,在所述第一时间段内,展示所述至少两帧预览图像分别对应的特效图像。
根据本公开的一个或多个实施例,所述方法还包括:基于目标场景信息,获得所述目标视觉特效,所述目标场景信息表征所述媒体数据的目标内容类别;在所述第二界面组件显示所述目标视觉特效。
根据本公开的一个或多个实施例,所述方法还包括:响应于针对所述第一界面组件的第二触发操作,生成输出媒体数据,其中,所述第二触发操作指示所述第一界面组件内的目标预览图像,所述输出媒体数据是基于所述目标预览图像或所述目标预览图像对应的目标媒体数据生成的;将所述输出媒体数据显示在所述相机取景框页面的前置页面。
第二方面,根据本公开的一个或多个实施例,提供了一种图像预览装置,包括:
启动模块,用于响应于相机启动指令,启动相机取景框页面,所述相机取景框页面内包括第一界面组件;
显示模块,用于基于所述第一界面组件,在第一时间段内,展示至少两帧预览图像,所述预览图像是基于媒体数据库内的媒体数据生成的。
根据本公开的一个或多个实施例,在所述展示至少两帧预览图像之前,所述显示模块,还用于:获取目标场景信息,所述目标场景信息表征所述媒体数据的目标内容类别;根据所述目标场景信息,确定目标媒体数据;基于所述目标媒体数据,生成所述至少两帧预览图像。
根据本公开的一个或多个实施例,在所述启动相机取景框页面之前,所述启动模块,还用于:获取前置页面对应的页面信息,所述页面信息表征所述前置页面对应的页面主题,所述前置页面内包括第三界面组件,所述第三界面组件用于生成与所述页面主题对应的用户自制媒体;响应于针对所述第三界面组件的第一触发操作,生成所述相机启动指令,所述相机启动指令中包括所述页面信息;显示模块在获取所述目标场景信息时,具体用于:根据所述相机启动指令中的页面信息,生成目标场景信息。
根据本公开的一个或多个实施例,所述目标媒体数据包括存储于所述媒体数据库内的目标视频,所述显示模块在基于所述目标媒体数据,生成所述至少两帧预览图像时,具体用于:获取所述目标视频的至少两个关键帧;基于所述关键帧,生成对应的预览图像。
根据本公开的一个或多个实施例,所述相机取景框页面还包括第二界面组件,所述第二界面组件用于展示针对所述预览图像添加的目标视觉特效;所述显示模块,还用于:基于所述第二界面组件所展示的目标视觉特效,生成所述预览图像对应的特效图像;所述显示模块在基于所述第一界面组件,在第一时间段内,展示至少两帧预览图像时,具体用于:基于所述第一界面组件,在所述第一时间段内,展示所述至少两帧预览图像分别对应的特效图像。
根据本公开的一个或多个实施例,所述显示模块,还用于:基于目标场景信息,获得所述目标视觉特效,所述目标场景信息表征所述媒体数据的目标内容类别;在所述第二界面组件显示所述目标视觉特效。
根据本公开的一个或多个实施例,所述显示模块,还用于:响应于针对所述第一界面组件的第二触发操作,生成输出媒体数据,其中,所述第二触发操作指示所述第一界面组件内的目标预览图像,所述输出媒体数据是基于所述目标预览图像或所述目标预览图像对应的目标媒体数据生成的;将所述输出媒体数据显示在所述相机取景框页面的前置页面。
第三方面,根据本公开的一个或多个实施例,提供了一种电子设备,包括:处理器,以及与所述处理器通信连接的存储器;
所述存储器存储计算机执行指令;
所述处理器执行所述存储器存储的计算机执行指令,以实现如上第一方面以及第一方面各种可能的设计所述的图像预览方法。
第四方面,根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的图像预览方法。
第五方面,本公开实施例提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的图像预览方法。
第六方面,本公开实施例提供一种计算机程序,所述计算机程序用于实现如上第一方面以及第一方面各种可能的设计所述的图像预览方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (12)

  1. 一种图像预览方法,包括:
    响应于相机启动指令,启动相机取景框页面,所述相机取景框页面内包括第一界面组件,所述第一界面组件提供媒体数据库的交互入口;
    基于所述第一界面组件,展示对应预览图像;
    其中,所述第一界面组件在第一时间段内,动态展示至少两帧预览图像,所述预览图像是基于媒体数据库内的媒体数据生成的。
  2. 根据权利要求1所述的方法,其中,在所述基于所述第一界面组件,展示对应预览图像之前,还包括:
    获取目标场景信息,所述目标场景信息表征所述媒体数据的目标内容类别;
    根据所述目标场景信息,确定目标媒体数据;
    基于所述目标媒体数据,生成所述至少两帧预览图像。
  3. 根据权利要求2所述的方法,其中,在所述启动相机取景框页面之前,还包括:
    获取前置页面对应的页面信息,所述页面信息表征所述前置页面对应的页面主题,所述前置页面内包括第三界面组件,所述第三界面组件用于生成与所述页面主题对应的用户自制媒体;
    响应于针对所述第三界面组件的第一触发操作,生成所述相机启动指令,所述相机启动指令中包括所述页面信息;
    获取所述目标场景信息,包括:
    根据所述相机启动指令中的页面信息,生成目标场景信息。
  4. 根据权利要求2或3所述的方法,其中,所述目标媒体数据包括存储于所述媒体数据库内的目标视频,所述基于所述目标媒体数据,生成所述至少两帧预览图像,包括:
    获取所述目标视频的至少两个关键帧;
    基于所述关键帧,生成对应的预览图像。
  5. 根据权利要求1至4中任一项所述的方法,其中,所述相机取景框页面还包括第二界面组件,所述第二界面组件用于展示针对所述预览图像添加的目标视觉特效;
    所述方法还包括:
    基于所述第二界面组件所展示的目标视觉特效,生成所述预览图像对应的特效图像;
    所述基于所述第一界面组件,在第一时间段内,展示至少两帧预览图像,包括:
    基于所述第一界面组件,在所述第一时间段内,展示所述至少两帧预览图像分别对应的特效图像。
  6. 根据权利要求5所述的方法,其中,所述方法还包括:
    基于目标场景信息,获得所述目标视觉特效,所述目标场景信息表征所述媒体数据的目标内容类别;
    在所述第二界面组件显示所述目标视觉特效。
  7. 根据权利要求1至6中任一项所述的方法,其中,所述方法还包括:
    响应于针对所述第一界面组件的第二触发操作,生成输出媒体数据,其中,所述第二触发操作指示所述第一界面组件内的目标预览图像,所述输出媒体数据是基于所述目标预览图像或所述目标预览图像对应的目标媒体数据生成的;
    将所述输出媒体数据显示在所述相机取景框页面的前置页面。
  8. 一种图像预览装置,包括:
    启动模块,用于响应于相机启动指令,启动相机取景框页面,所述相机取景框页面内包括第一界面组件,所述第一界面组件提供媒体数据库的交互入口;
    显示模块,用于基于所述第一界面组件,展示对应预览图像;
    其中,所述第一界面组件在第一时间段内,展示至少两帧预览图像,所述预览图像是基于媒体数据库内的媒体数据生成的。
  9. 一种电子设备,包括:处理器,以及与所述处理器通信连接的存储器;
    所述存储器存储计算机执行指令;
    所述处理器执行所述存储器存储的计算机执行指令,以实现如权利要求1至7中任一项所述的图像预览方法。
  10. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至7任一项所述的图像预览方法。
  11. 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的图像预览方法。
  12. 一种计算机程序,所述计算机程序用于实现如权利要求1至7中任一项所述的图像预览方法。
PCT/CN2023/123364 2022-10-10 2023-10-08 图像预览方法、装置、电子设备及存储介质 WO2024078409A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211236048.3A CN117939286A (zh) 2022-10-10 2022-10-10 图像预览方法、装置、电子设备及存储介质
CN202211236048.3 2022-10-10

Publications (1)

Publication Number Publication Date
WO2024078409A1 true WO2024078409A1 (zh) 2024-04-18

Family

ID=90573848

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/123364 WO2024078409A1 (zh) 2022-10-10 2023-10-08 图像预览方法、装置、电子设备及存储介质

Country Status (3)

Country Link
US (1) US20240121502A1 (zh)
CN (1) CN117939286A (zh)
WO (1) WO2024078409A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150138406A1 (en) * 2013-11-18 2015-05-21 Nokia Corporation Method, apparatus and computer program product for capturing images
CN110401766A (zh) * 2019-05-22 2019-11-01 华为技术有限公司 一种拍摄方法及终端
CN112434175A (zh) * 2020-12-10 2021-03-02 北京城市网邻信息技术有限公司 多媒体信息展示方法、装置、电子设备和计算机可读介质
CN114385299A (zh) * 2022-01-12 2022-04-22 北京字跳网络技术有限公司 页面显示控制方法、装置、移动终端及存储介质
CN114938427A (zh) * 2022-05-12 2022-08-23 北京字跳网络技术有限公司 媒体内容的拍摄方法、装置、设备、存储介质和程序产品

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150138406A1 (en) * 2013-11-18 2015-05-21 Nokia Corporation Method, apparatus and computer program product for capturing images
CN110401766A (zh) * 2019-05-22 2019-11-01 华为技术有限公司 一种拍摄方法及终端
CN112434175A (zh) * 2020-12-10 2021-03-02 北京城市网邻信息技术有限公司 多媒体信息展示方法、装置、电子设备和计算机可读介质
CN114385299A (zh) * 2022-01-12 2022-04-22 北京字跳网络技术有限公司 页面显示控制方法、装置、移动终端及存储介质
CN114938427A (zh) * 2022-05-12 2022-08-23 北京字跳网络技术有限公司 媒体内容的拍摄方法、装置、设备、存储介质和程序产品

Also Published As

Publication number Publication date
CN117939286A (zh) 2024-04-26
US20240121502A1 (en) 2024-04-11

Similar Documents

Publication Publication Date Title
CN112073649B (zh) 多媒体数据的处理方法、生成方法及相关设备
CN112259062B (zh) 特效展示方法、装置、电子设备及计算机可读介质
US20230300403A1 (en) Video processing method and apparatus, device, and storage medium
US20240062443A1 (en) Video sharing method and apparatus, device, and medium
CN110070496B (zh) 图像特效的生成方法、装置和硬件装置
US20240061560A1 (en) Audio sharing method and apparatus, device and medium
CN111970571B (zh) 视频制作方法、装置、设备及存储介质
WO2022048504A1 (zh) 视频处理方法、终端设备及存储介质
WO2020220773A1 (zh) 图片预览信息的显示方法、装置、电子设备及计算机可读存储介质
CN112653920B (zh) 视频处理方法、装置、设备及存储介质
CN113806306B (zh) 媒体文件处理方法、装置、设备、可读存储介质及产品
CN114598815B (zh) 一种拍摄方法、装置、电子设备和存储介质
US20220159197A1 (en) Image special effect processing method and apparatus, and electronic device and computer readable storage medium
WO2024104316A1 (zh) 多媒体数据的编辑方法、装置、电子设备及存储介质
US11893770B2 (en) Method for converting a picture into a video, device, and storage medium
US20240064367A1 (en) Video processing method and apparatus, electronic device, and storage medium
WO2024104333A1 (zh) 演播画面的处理方法、装置、电子设备及存储介质
WO2024046360A1 (zh) 媒体内容处理方法、装置、设备、可读存储介质及产品
WO2024078409A1 (zh) 图像预览方法、装置、电子设备及存储介质
CN111221444A (zh) 分屏特效处理方法、装置、电子设备和存储介质
CN116847147A (zh) 特效视频确定方法、装置、电子设备及存储介质
CN111199519B (zh) 特效包的生成方法和装置
WO2023185968A1 (zh) 相机功能页面切换方法、装置、电子设备及存储介质
US12003884B2 (en) Video processing method and apparatus, device, storage medium and computer program product
US20240163392A1 (en) Image special effect processing method and apparatus, and electronic device and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23876611

Country of ref document: EP

Kind code of ref document: A1