Photographing method, electronic device, storage medium and chip system

CN123020967APending Publication Date: 2026-10-30HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510574549.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0004]然而,由于风格化模版的数量有限,难以覆盖所有拍摄场景,且每个风格化模版对应的一组风格化参数固定,无法根据不同的拍摄场景进行动态调整,难以满足用户多样化的拍摄需求

Benefits of technology

[0048]应当理解的是,本申请的第三方面至第六方面与本申请的第一方面的技术方案相对应,或者与本申请的第二方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123020967A_ABST
    Figure CN123020967A_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a photographing method, an electronic device, a storage medium and a chip system, and relate to the technical field of terminals. The method comprises: at a first time, the electronic device receives voice data, the voice data comprising a photographing keyword, the photographing keyword being used to indicate image stylization information expected by a user; before the first time, the electronic device displays a plurality of first images, the plurality of first images being original images captured by a camera of the electronic device or images processed by the electronic device using a first stylization template; at a second time, the electronic device displays a plurality of second images, the second time being later than the first time, and the plurality of second images being images processed by the electronic device using a second stylization template, the second stylization template being determined based on the photographing keyword. In this way, the user does not need to manually switch the stylization template or adjust the stylization parameters, and the stylization effect of the second image is more in line with the expected effect of the user, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a shooting method, electronic device, storage medium and chip system. Background Technology

[0002] As electronic devices become increasingly powerful in their camera functions, users are becoming more accustomed to using photos to record their lives. However, due to limitations such as ambient lighting, the hardware performance of electronic devices, and the user's shooting skills, raw images taken by electronic devices often suffer from problems such as dull colors or insufficient contrast.

[0003] Currently, electronic devices can be equipped with stylized template libraries, which can include a variety of stylized templates. These stylized templates, through preset stylized parameters, can quickly process the original image.

[0004] However, due to the limited number of stylized templates, it is difficult to cover all shooting scenarios, and each stylized template corresponds to a fixed set of stylized parameters, which cannot be dynamically adjusted according to different shooting scenarios, making it difficult to meet the diverse shooting needs of users. Summary of the Invention

[0005] This application provides a shooting method, electronic device, storage medium, and chip system, which are applied in the field of terminal technology. They can avoid users manually selecting stylized templates and meet users' diverse shooting needs.

[0006] In a first aspect, embodiments of this application propose a shooting method. The subject executing this method can be an electronic device or a chip within the electronic device. The following description uses an electronic device as an example. The method may include: a first moment, where the electronic device receives voice data, which may include shooting keywords. These shooting keywords are used to indicate the user's desired image stylization information. Before the first moment, the electronic device displays multiple first images, which are either original images captured by the electronic device's camera or images processed by the electronic device using a first stylization template. A second moment, where the electronic device displays multiple second images, which are images processed using a second stylization template. The second stylization template is a stylization template determined based on the shooting keywords.

[0007] The first stylized template can be the default stylized template of the electronic device, or the stylized template selected by the user before inputting voice data.

[0008] In this embodiment, since the second image is an image processed by the second stylized template determined based on the shooting keywords, and the shooting keywords are derived from voice data, the second image meets the user's expected processing effect. Furthermore, since the user does not need to manually select and adjust stylized parameters or select a stylized template, the user experience can be improved.

[0009] In one possible implementation, the electronic device can select a first target stylized template from a first stylized template library based on the captured keywords, with a similarity greater than a preset threshold. The first stylized template library may include multiple pre-stored stylized templates, each corresponding to a set of stylized parameters. The electronic device can then determine a second stylized template based on the first target stylized template.

[0010] In this implementation, since the electronic device can determine the first target stylized template based on the shooting keywords, the first target stylized template can better meet the user's needs. Moreover, the electronic device can automatically filter out the first target stylized template without the user having to manually select it, which can improve shooting efficiency.

[0011] In one possible implementation, the electronic device determines a second stylization template based on a first target stylization template, including: using the first target stylization template as the second stylization template, wherein the second stylization template includes a first set of stylization parameters corresponding to the first target stylization template.

[0012] In this implementation, the electronic device uses the first target stylization template as the second stylization template. Since the second stylization template is determined based on the shooting keywords in the user's voice data, if the electronic device uses the second stylization template to process the captured image, the processed image can better meet the user's expected effect.

[0013] In one possible implementation, the electronic device can acquire environmental information to determine a second set of stylized parameters, or the electronic device can acquire a third set of stylized parameters corresponding to a third stylized template. The third stylized template is a stylized template that the user has used more than a preset number of times within a preset time period. Determining the second stylized template based on the first target stylized template may include: the electronic device determining a fourth set of stylized parameters based on at least one of the second and third set of stylized parameters, and the first set of stylized parameters corresponding to the first target stylized template; the electronic device may use the fourth set of stylized parameters as a set of stylized parameters corresponding to the second stylized template.

[0014] Among them, the fourth stylization parameter set is a set of stylization parameters corresponding to the second stylization template determined by the electronic device in combination with multi-dimensional information.

[0015] In this implementation, the electronic device can determine a set of stylization parameters corresponding to the second stylization template based on at least one of the stylization parameter sets of different dimensions, such as the second stylization parameter set and the third stylization parameter set, as well as the first stylization parameter set corresponding to the first target stylization template. This can provide users with a more accurate and tailored stylization generation effect.

[0016] In one possible implementation, if the electronic device does not match the first target stylized template, the electronic device can send a first request to the cloud server, the first request may include at least the shooting keywords. The electronic device can receive a first response from the cloud server, the first response including a second stylized template.

[0017] The statement that the electronic device did not match the first target stylized template can be understood as: there is no first target stylized template in the first stylized template library with a similarity greater than a preset threshold to the shooting keywords. In other words, the stylized templates in the first stylized template library all have a similarity to the shooting keywords that is less than or equal to the preset threshold.

[0018] In this implementation, if the electronic device does not match the first target stylized template, it can obtain a second stylized template from the cloud. During subsequent shooting, the electronic device can use the second stylized template sent from the cloud to process the image, which can solve the problem of limited stylized templates in the electronic device's first stylized template library.

[0019] In one possible implementation, the first request further includes at least one of the following: environmental information of the electronic device, or first indication information; wherein the first indication information is used to indicate the third stylized template. For example, the first indication information may be a tag corresponding to the third stylized template, or a search keyword corresponding to the third stylized template, or a set of stylized parameters corresponding to the third stylized template.

[0020] In this implementation, since the first request may include environmental information or first instruction information, the cloud server can combine this multi-dimensional information to determine the second stylized template, which can make the second stylized template meet the user's personalized shooting needs.

[0021] In one possible implementation, in response to a shooting operation, and if the electronic device does not receive a second response from the cloud server, the electronic device may send a second request to the cloud server; the second request includes at least one third image; the electronic device may receive a second response from the cloud server, the second response including a fourth image, the fourth image being an image processed by the cloud server using a second stylized template on at least one third image; the electronic device may display the fourth image.

[0022] In some embodiments, if the electronic device detects a shooting operation upon receiving a first response, it can acquire at least one third image through a camera. The electronic device can then process the at least one second image using the second stylized template from the first response to obtain a fourth image.

[0023] In this implementation, before the electronic device receives the first response, since the electronic device does not have a second stylized template but the cloud server does, the electronic device needs to send at least one captured third image to the cloud server. After processing by the second stylized template on the cloud server, a fourth image is obtained.

[0024] In one possible implementation, the electronic device can display a first window on the shooting interface; the first window displays a fourth image. In response to the operation of storing the fourth image in the first window, the electronic device stores the fourth image to a gallery.

[0025] For example, refer to the following embodiments. Figure 7 The first window can be window 701, and the fourth image can be a stylized man. The operation of storing the fourth image in the first window can be: the user clicks the save control 702 in window 701.

[0026] In this implementation, since the shooting interface can display a first window with a fourth image, the user can easily view the shooting effect (fourth image) in real time. If the user confirms that the fourth image meets the user's expected processing effect, in response to the operation of storing the fourth image in the first window, the electronic device can store the fourth image in the gallery. In subsequent processing, the user can view the fourth image from the gallery.

[0027] In one possible implementation, when storing the fourth image to a gallery, the electronic device can display a second window above the shooting interface. This second window indicates whether to download a second stylized template. In response to the operation of downloading the second stylized template in the second window, the electronic device can retrieve the second stylized template from a cloud server. The electronic device can store the second stylized template in a first stylized template library, and when the second stylized template is stored in the first stylized template library, the electronic device can display a first icon on the shooting interface, which is the icon of the second stylized template.

[0028] For example, refer to Figure 8 In the context of 'a', the second window can be window 801, and the operation of downloading the second stylized template in the second window can be the operation of the user clicking the download control 802.

[0029] For example, refer to Figure 8 In the 'b', the first icon can be 804, and Figure 8 In the text, 'b' indicates the tag corresponding to the second stylized template, which is labeled "custom".

[0030] In this implementation, the electronic device can choose to store the second stylized template into the first stylized template library. During subsequent shooting, the electronic device can directly use the second stylized template. Additionally, displaying the first icon on the electronic device intuitively shows the user that the second stylized template has been added, resulting in a better user experience.

[0031] Secondly, embodiments of this application provide a shooting method, wherein the subject executing the method can be a cloud server. The method may include: the cloud server receiving a first request from an electronic device, the first request including at least shooting keywords; the cloud server selecting a second target stylized template from a second stylized template library based on the shooting keywords, the second target stylized template having a similarity greater than a preset threshold to the shooting keywords; the cloud server determining the second stylized template based on the second target stylized template; and after determining the second stylized template, the cloud server sending a first response to the electronic device, the first response including the second stylized template.

[0032] In this embodiment of the application, the cloud server can determine a second target stylized template based on shooting keywords, and then send a first response to the electronic device, so that the electronic device can process the image based on the second stylized template in the first response, thereby providing users with diverse stylized effects.

[0033] In one possible implementation, the cloud server determines the second stylization template based on the second target stylization template, including: the cloud server uses the second target stylization template as the second stylization template, and the second stylization template includes the fifth stylization parameter set corresponding to the second target stylization template.

[0034] In this implementation, the cloud server uses the second target stylization template as the second stylization template. Since the second stylization template is determined based on the shooting keywords in the user's voice data, if the image is processed using the second stylization template, the processed image can better meet the user's expected effect.

[0035] In one possible implementation, the first request further includes at least one of the following: environmental information of the electronic device, or, first indication information. The first indication information is used to indicate a third stylized template, which is a stylized template that has been used by the user more than a preset number of times within a preset time period.

[0036] In this implementation, since the first request includes multi-dimensional information, which may be environmental information of the electronic device or first indication information, when the cloud server receives the first request, the cloud server can determine the second stylized template based on the multi-dimensional information in the first request.

[0037] In one possible implementation, the cloud server may obtain at least one of the following: obtain a second set of stylized parameters corresponding to the environmental information of the electronic device; or, obtain a third set of stylized parameters corresponding to a third stylized template; the cloud server determines a second stylized template based on a second target stylized template, including: determining a sixth set of stylized parameters based on at least one of the second set of stylized parameters, the third set of stylized parameters, and a fifth set of stylized parameters corresponding to the second target stylized template; the cloud server may use the sixth set of stylized parameters as a set of stylized parameters corresponding to the second stylized template.

[0038] In this implementation, the cloud server combines at least one of the second stylization parameter set and the third stylization parameter set with the second target stylization parameter set to determine the sixth stylization parameter set, which can provide users with more accurate and tailored stylization generation effects.

[0039] In one possible implementation, the cloud server can receive a second request from an electronic device, the second request including at least one third image; the cloud server can process the at least one third image according to a second stylized template to obtain a fourth image; after obtaining the fourth image, the cloud server can send a second response to the electronic device, the second response including the fourth image.

[0040] In this implementation, since the cloud server has a second stylized template, the cloud server can use the second stylized template to process at least one third image to obtain a fourth image, and the cloud server can send the fourth image to the electronic device, which makes it convenient for the user to view the fourth image on the electronic device.

[0041] Thirdly, embodiments of this application provide an electronic device, including a processor and a memory, wherein the memory is used to store code instructions, and the processor is used to run the code instructions to perform the method described in the first aspect or any possible implementation of the first aspect, or to perform the method described in the second aspect or any possible implementation of the second aspect.

[0042] The electronic device can be a mobile terminal device or a server (such as a cloud server).

[0043] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed on a computer, cause the computer to perform the method described in the first aspect or any possible implementation thereof, or to perform the method described in the second aspect or any possible implementation thereof.

[0044] Fifthly, embodiments of this application provide a computer program product including a computer program, which, when run on a computer, causes the computer to perform the method described in the first aspect or any possible implementation of the first aspect, or to perform the method described in the second aspect or any possible implementation of the second aspect.

[0045] Sixthly, this application provides a chip or chip system including at least one processor and a communication interface, the communication interface and at least one processor being interconnected via a line, the at least one processor being used to run a computer program or instructions to perform the method described in the first aspect or any possible implementation of the first aspect, or to perform the method described in the second aspect or any possible implementation of the second aspect.

[0046] The communication interface in the chip can be an input / output interface, pins, or circuits.

[0047] In one possible implementation, the chip or chip system described above in this application further includes at least one memory storing instructions. The memory can be an internal storage unit of the chip, such as a register or cache, or it can be a storage unit of the chip itself (e.g., read-only memory, random access memory, etc.).

[0048] It should be understood that the third to sixth aspects of this application correspond to the technical solutions of the first aspect of this application or the technical solutions of the second aspect of this application. The beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description

[0049] Figure 1 A schematic diagram illustrating a change in a mobile phone interface as provided in an embodiment of this application;

[0050] Figure 2 A schematic diagram illustrating another change in the mobile phone interface provided in an embodiment of this application;

[0051] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0052] Figure 4A schematic flowchart illustrating a shooting method provided in an embodiment of this application;

[0053] Figure 5 A flowchart illustrating another shooting method provided in an embodiment of this application;

[0054] Figure 6 A flowchart illustrating another shooting method provided in an embodiment of this application;

[0055] Figure 7 A schematic diagram of a mobile phone interface provided in an embodiment of this application;

[0056] Figure 8 A schematic diagram illustrating another change in the mobile phone interface provided in an embodiment of this application;

[0057] Figure 9 This is a flowchart illustrating another shooting method provided in an embodiment of this application. Detailed Implementation

[0058] To facilitate a clear description of the technical solutions in the embodiments of this application, some terms and technologies involved in the embodiments of this application will be briefly introduced below:

[0059] 1. Stylization: This refers to adjusting or reconstructing the visual features of an image using digital image processing techniques. These visual features may include, but are not limited to, at least one of the following: saturation, brightness, contrast, color temperature, and hue.

[0060] Stylization is widely used in various scenarios, such as social media scenarios, shooting scenarios, and game scenarios.

[0061] For example, taking a shooting scene as an example, users can select different stylized templates, such as retro film or Japanese fresh style, to achieve different stylization of the image.

[0062] In some embodiments, taking a mobile phone as an example, a stylized template library can be pre-set in the mobile phone. The stylized template library can contain a variety of stylized templates. In order to support users to use the various stylized templates, the mobile phone can pre-set a stylization function. Users can enable the stylization function and use the various stylized templates.

[0063] In some embodiments, the stylization features in a mobile phone may be referred to as filter features.

[0064] 2. Cloud server: This refers to a server built on cloud computing technology. Cloud servers can provide remote computing and storage services. When electronic devices are connected to the Internet, they can access cloud servers to perform remote computing and storage.

[0065] 3. Image format: refers to the data encoding method used when storing and transmitting images.

[0066] Image formats may include, but are not limited to, any of the following: raw archival workflow format (RAW), joint photographic experts group format (JPEG), and luminance-chrominance color encoding (YUV).

[0067] Among them, complementary metal oxide semiconductor (CMOS) sensors or charge coupled device (CCD) image sensors convert the captured light source signals into digital signals, which can obtain the raw data of RAW format images.

[0068] In the YUV format, "Y" represents luminance (or luma), which describes the brightness and darkness of an image and determines its sharpness; "U" and "V" represent chrominance (or chroma), which describe the hue and saturation of an image. For example, "U" can represent the difference between blue and luminance, and "V" can represent the difference between red and luminance. Green can be derived from "Y", "U", and "V".

[0069] 4. Preview Stage: This refers to the stage where the shooting scene is displayed in real-time on the screen of an electronic device before the actual shooting. "Before the actual shooting" can be understood as before the user clicks or presses the shooting control.

[0070] During the preview stage, users can view the shooting scene, the composition of the shot, and the colors of the shot in real time.

[0071] In some embodiments, the screen displayed by the electronic device during the preview stage may be referred to as a preview screen.

[0072] 5. Other terms

[0073] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and purpose. For example, "first chip" and "second chip" are used only to distinguish different chips and do not limit their order of execution. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.

[0074] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0075] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.

[0076] 6. Electronic equipment

[0077] The electronic devices in this application embodiment may include handheld devices with shooting functions, vehicle-mounted devices, etc. For example, some electronic devices include: mobile phones, tablets, PDAs, laptops, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, terminal devices in 5G networks, or future evolution of public land mobile communication networks. Terminal devices in a network (PLMN), etc., are not limited to this in the embodiments of this application.

[0078] By way of example and not limitation, in this embodiment, the electronic device can also be a wearable device. Wearable devices, also known as wearable smart devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on a specific type of application function and require the use of other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0079] Furthermore, in this embodiment of the application, the electronic device can also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.

[0080] The electronic devices in the embodiments of this application may also be referred to as: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, or user device, etc.

[0081] In this embodiment, the electronic device or various network devices include a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0082] In one possible scenario, a user takes a photo using an electronic device. For example, taking a mobile phone as an example, and assuming the phone's camera app has a stylized template library deployed within it, this library could include various stylized templates. Figure 1 This is a schematic diagram illustrating the changes in the mobile phone interface provided in an embodiment of this application.

[0083] Reference Figure 1 In the diagram, 'a' responds to the user's tapping of the camera app icon 100 on the phone's interface 10, opening the camera app (represented as 'camera' in the diagram). After the camera app is opened, the phone can display interface 11, as shown below. Figure 1 In b, the interface 11 may include a stylization function (filter function) icon 110, a preview window 111, a stylization template window 112, and a shooting mode.

[0084] The stylization feature can include two states: on and off. (See reference...) Figure 1 In the context of b, when the camera application is open, the stylization function is in its default state, which is off. Correspondingly, the icon 110 of the stylization function in interface 11 is the icon for the off state.

[0085] Preview window 111 is used to display a preview image. For example, the preview image in interface 11 is "Men".

[0086] The stylized template window 112 is used to display various stylized templates. For example, stylized templates may include: Unused Template, Template 1, Template 2, ... etc.

[0087] Different stylized templates can correspond to different tags. For example, the tag for the unused template is "original image", the tag for template 1 is "naive", and the tag for template 2 is "retro".

[0088] In some embodiments, when the camera application is enabled, the stylized template of the camera application is the default template, which is an unused template. The interface 11 can display the icon 113 of the default template and the label 114 corresponding to the default template. The label 114 can be "Original Image".

[0089] In interface 11, users can select different shooting modes, such as aperture mode, night scene mode, portrait mode, photo mode, video mode, and more. Interface 11 uses "aperture" to represent aperture mode, "night scene" to represent night scene mode, "portrait" to represent portrait mode, "photo" to represent photo mode, and "video" to represent video mode.

[0090] In some embodiments, refer to Figure 1 In the b part, when the camera app is open, the camera app's shooting mode is the default mode, which is the photo mode.

[0091] In response to the user clicking on template 1 in the stylized template window 112, refer to Figure 1 In c, the phone can display interface 13, which can include icon 121 with the stylization function enabled.

[0092] It should be understood that when a user clicks on template 1 in the stylized template window 112, the preview screen displayed on the mobile phone interface 13 is different from the preview screen displayed on the mobile phone interface 12. For example, the "man" in interface 13 is the "man" processed using template 1, while the "man" in interface 12 is the "man" without any template processing. The stylization parameters of the "man" in interface 13 and the "man" in interface 12 are different.

[0093] The stylization parameters are used to represent the color style of the image. The stylization parameters may include, but are limited to, at least one of the following: brightness, contrast, saturation, color temperature, hue, gamma value, vignette intensity, graininess, and highlights.

[0094] In one possible scenario, users may post-process images in a photo gallery app. This post-processing could include image color correction, image cropping, and adding styles (or stylizing). For example, a third-party photo editing app pre-downloaded on a phone can be used for post-processing images. Figure 2 This is a schematic diagram illustrating another variation of the mobile phone interface provided in an embodiment of this application.

[0095] Reference Figure 2 In section 'a', interface 20 may include an icon 200 for a photo editing application (or a third-party photo editing application). In response to the user clicking the icon 200, the phone opens the photo editing application. With the photo editing application open, the phone can display interface 21, as shown below. Figure 2 In section b, interface 21 can display the import image function icon 210. When the user clicks the import image function icon 210, and the photo editing application has permission to access the gallery application, the phone can display interface 22, as shown below. Figure 2 In c, the phone can display the interface of the photo editing application to access the gallery application. The interface 22 can include multiple images, such as image 1, image 2, image 3, ...

[0096] In response to the user clicking on image 1, the phone can display interface 23, as shown below. Figure 2 In the context of interface 23, editing functions, color adjustment functions, stylization functions, sticker functions, text addition functions, and special effects addition functions can be included. In response to a user clicking the stylization function, interface 23 can display various stylization templates, such as Template 1, Template 2, Template 3, and so on.

[0097] In this scenario, the user can select different stylization templates to stylize image 1. For example, Figure 1 Taking the user clicking template 1 as an example, the image editing application can use template 1 to stylize image 1, and after the processing is complete, the image editing application can display the stylized image 1. Figure 2 (not shown in the image), and the user can save image 1 to the gallery application.

[0098] In both scenarios shown above, the mobile phone relies on preset stylization templates to stylize images. The types and number of these stylization templates are limited, making it difficult to cover all shooting scenarios and thus failing to meet the diverse shooting needs of users.

[0099] Furthermore, the stylization parameters or models corresponding to these stylization templates are pre-set by the developers and cannot be adjusted for different scenarios. This means that the same stylization template may produce different effects in different scenarios. The stylization parameters or models are used to change the style of an image. For example, a stylization model can be a generative adversarial network (GAN) model. A mobile phone can input RAW format images captured by its camera into a GAN model, which then processes the image to obtain a stylized image.

[0100] For example, taking the "Retro Film" stylization template as an example, when a user selects the "Retro Film" template, they expect the stylized image to have warm tones, high contrast, and graininess. However, in daytime outdoor environments, the warm tones in the stylized image are excessively enhanced, such as the "man's" skin tone appearing orange; in nighttime outdoor scenes, the stylized image exhibits high contrast, causing the loss of details in the darker areas of the image, such as the loss of texture in the "man's" hair.

[0101] For example, taking the "Cool-toned Comic" template as an example, when a user selects the "Cool-toned Comic" template, the user expects the stylized image to have characteristics such as low contrast. However, in a cloudy environment, the stylized image exhibits low saturation, a dark and grayish appearance, and a lack of depth. In a sunset environment, due to the diverse outlines of the clouds, the stylized image displays messy lines.

[0102] In some embodiments, if the stylized image does not meet the user's expectations after the user selects a stylization template, the user can manually adjust the stylization parameters in the stylization template to make the stylized image meet the user's expectations.

[0103] However, due to the complexity of these stylization parameters and the interrelationship between different stylization parameters, such as adjusting the color temperature affecting stylization parameters such as saturation and contrast, users need to have professional photography knowledge or make multiple adjustments to achieve the desired effect, which is inefficient.

[0104] Accordingly, this application provides a shooting method in which an electronic device can acquire voice data. The voice data may include shooting keywords, which are used to indicate the user's desired image stylization information. The electronic device can match the shooting keywords in its stylization database. If a first target stylization template is matched, the electronic device can determine a set of stylization parameters corresponding to a second stylization template based on a set of stylization parameters corresponding to the first target stylization template. If no first target stylization template is matched, the electronic device can obtain and determine a set of stylization parameters corresponding to the second stylization template from a cloud server. In this way, the electronic device can directly use the second stylization template in subsequent shooting, improving the user's shooting efficiency.

[0105] In addition, since electronic devices can use cloud servers to determine the second stylization template, the limitation of the number of preset stylization templates in electronic devices can be avoided. Furthermore, since the second stylization template is determined based on shooting keywords, the image processed by the second stylization template can better meet the user's expected effect, and the user does not need to manually adjust the stylization parameters, which can improve the user experience.

[0106] Before introducing the shooting method provided in the embodiments of this application, the structure of the electronic device provided in the embodiments of this application will be first introduced:

[0107] Figure 3 A schematic diagram of the structure of an electronic device provided in this application. (Refer to...) Figure 3 The electronic device 300 may include: a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, antenna 1, antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, a headphone jack 370D, a sensor module 380, buttons 390, a motor 391, an indicator 392, a camera 393, a display screen 394, and a subscriber identification module (SIM) card interface 395, etc. It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 300.

[0108] In some embodiments, the processor 310 can be used to execute the shooting method provided in the embodiments of this application, and the specific process can be referred to the description in the following embodiments. The steps executed by the electronic device in the following embodiments can be regarded as steps executed by the processor 310.

[0109] The internal memory 211 can be used to store relevant instructions so that when the processor 310 calls the relevant instructions, the shooting method provided in the embodiments of this application can be implemented.

[0110] The microphone 370C can be used to collect users' voice data.

[0111] The camera 393 can be used to capture images. The camera 393 may include a lens and an image sensor. The image sensor may be a CMOS image sensor or a CCD image sensor. This embodiment uses a CMOS image sensor as an example.

[0112] The display screen 394 can be used to display images. For example, in a shooting scenario, the display screen 394 can be used to display a preview image, or the display screen 394 can be used to display the image after the user clicks the shooting control, or the display screen 394 can be used to display the captured image.

[0113] In other embodiments of this application, the electronic device 300 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0114] The imaging method provided in this application will be described below with reference to specific embodiments. These embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0115] The following describes the shooting method provided in the embodiments of this application. Figure 4 This is a schematic flowchart illustrating a shooting method provided in an embodiment of this application. (Refer to...) Figure 4 The shooting method may include:

[0116] S401, Electronic devices acquire user's voice data.

[0117] The voice data may include shooting keywords. For example, the voice data could be "I want it to be fresher and the colors brighter," and the shooting keywords in the voice data could be "fresher" and "brighter colors."

[0118] In some embodiments, taking a mobile phone as an example, in response to a user opening the camera application on the phone, the electronic device can control the microphone to collect the user's voice data.

[0119] In some embodiments, before the electronic device acquires the user's voice data, the electronic device may control the camera to capture multiple images, and the electronic device may display multiple images, which may be original images or images processed by the electronic device using a first stylized template.

[0120] The first stylized template can be the default stylized template of the electronic device, or the stylized template selected by the user before inputting voice data.

[0121] S402, the electronic device inputs voice data into the voice model, and after processing by the voice model, it obtains the keywords for shooting.

[0122] Speech models can include automatic speech recognition (ASR) models and natural language understanding (NLU) models. Speech recognition is used to convert speech data into text, while the intention understanding model is used to determine the keywords to be captured in the text.

[0123] In some embodiments, the electronic device can input user voice data into a speech recognition model, and after processing by the speech recognition model, obtain the text corresponding to the voice data. The electronic device can then input the text into an intent understanding model, and after processing by the intent understanding model, obtain the captured keywords.

[0124] For example, if the user inputs the voice data as "I want a youthful feeling", after processing by the voice recognition model, the corresponding text obtained is "I want a youthful feeling", and after processing by the intent understanding model, the shooting keyword obtained is "youthful feeling".

[0125] It should be understood that the embodiments of this application do not elaborate on the processing of the speech recognition model and the intent understanding model, but can refer to the description in the existing technology.

[0126] S403, the electronic device determines from the first stylized template library whether there is a first target stylized template with a similarity greater than a preset threshold to the shooting keywords, based on the shooting keywords.

[0127] In some embodiments, multiple stylized templates are stored in JSON format in the first stylized template library. Each stylized template can correspond to different tags, search keywords, and a set of stylized parameters. The set of stylized parameters includes a set of stylized parameters.

[0128] For example, taking the stylized template 1 as an example, the tag corresponding to template 1 is "youthful", the corresponding search keywords are "youthful", "youthful feeling", and "campus memories", etc., and the corresponding set of stylized parameters can be: {"contrast": -0.25; "saturation": +0.1}.

[0129] In some embodiments, after obtaining the shooting keywords, the electronic device can calculate the similarity between the shooting keywords and the search keywords corresponding to the stylized template.

[0130] In this example, the electronic device can traverse the first stylization database, calculate the similarity between the search keywords and the shooting keywords corresponding to each stylization template in the first stylization template library, obtain multiple similarities, and the electronic device can take the stylization template with the highest similarity to the shooting keywords as the first target stylization template.

[0131] It is understood that the process of calculating the similarity of electronic devices in this application embodiment will not be described in detail, but can be referred to the description in the existing technology.

[0132] In some embodiments, if there is a first target stylized template in the first stylized template library that has a similarity to the shooting keywords greater than a preset threshold, the electronic device may execute S404 to S405.

[0133] S404, the electronic device obtains the first set of stylized parameters corresponding to the first target stylized template and determines the second stylized template.

[0134] For example, taking the first target stylization template as template 1, the first stylization parameter set corresponding to the first target stylization template can be {"contrast": -0.25; "saturation": +0.1}.

[0135] In some embodiments, an electronic device may use a first target stylization template as a second stylization template, and the first set of stylization parameters corresponding to the first target stylization template may be used as the set of stylization parameters for the second stylization template.

[0136] S405, the electronic device processes the captured image according to the second stylized template and displays the processed image.

[0137] In some embodiments, if there is no first target stylized template in the first stylized template library that has a similarity greater than a preset threshold with the shooting keywords, the electronic device may execute S406.

[0138] S406, the electronic device sends a first request to the cloud server, the first request including at least the shooting keywords.

[0139] Correspondingly, the cloud server can receive the first request from the electronic device.

[0140] Following S406, the following is also executed:

[0141] S407, the cloud server determines the second stylized template based on the shooting keywords in the first request.

[0142] In some embodiments, a second stylized template library may also be deployed on a cloud server. Since the storage space and processor performance of the cloud server are far greater than those of the electronic device, the number of stylized templates in the cloud server is significantly greater than the number of stylized templates in the electronic device. For example, the first stylized template library of the electronic device contains 50 stylized templates, while the second stylized template library of the cloud server contains 1000 stylized templates.

[0143] In some embodiments, the cloud server can traverse the second stylized template library and calculate the similarity between the search keywords and the shooting keywords corresponding to each stylized template in the second stylized template library to obtain multiple similarities. The cloud server can then use the stylized template with the highest similarity to the shooting keywords as the second target stylized template.

[0144] In some embodiments, the cloud server may use the second target stylization template as the second stylization template, and the fifth stylization parameter set corresponding to the second target stylization template may be the stylization parameter set corresponding to the second stylization template.

[0145] In some embodiments, S408-S409 are also executed after S407.

[0146] S408, the cloud server sends a first response to the electronic device, which includes a second stylized template.

[0147] Correspondingly, electronic devices can receive the first response from the cloud server.

[0148] S409, the electronic device stylizes the captured image according to the second stylization template and displays the processed image.

[0149] In some embodiments, taking a mobile phone as an example, when the user opens the camera application and before the user clicks the shooting control on the shooting interface, the electronic device displays a preview screen. The preview screen may include multiple images. When the electronic device receives a first response, the electronic device can stylize at least one image of the preview screen according to a second stylization template and display the at least one processed image.

[0150] In addition, in this example, in response to the user clicking the shooting control on the shooting interface, the electronic device can stylize a certain image captured after the user clicks the shooting control according to the second stylization template, and store the stylized image in the gallery.

[0151] In this embodiment, the electronic device can acquire user voice data and identify shooting keywords in the voice data. The electronic device can match these shooting keywords with stylized templates in a preset first stylized template library. If the match is successful (e.g., the similarity is greater than a preset threshold), the electronic device can determine a second stylized template based on the matched first target stylized template. If the match fails, the electronic device can send the shooting keywords to a cloud server. The cloud server can determine the second stylized template based on the shooting keywords and send the second stylized template to the electronic device. In this way, the electronic device can directly use the second stylized template in subsequent shooting, improving the user's shooting efficiency. Furthermore, since the set of stylized parameters corresponding to the second stylized template is determined based on the shooting keywords, the processed stylized image can better meet the user's expected effect.

[0152] The above Figure 4 The embodiments illustrate the shooting method provided in this application. Figure 5 A flowchart illustrating another shooting method provided in this application embodiment, and... Figure 4 The difference is that, in some embodiments, after S401 to S403, if the electronic device's first stylized template library contains a first target stylized template with a similarity greater than a preset threshold to the shooting keywords, the following can be executed:

[0153] S501, the electronic device obtains the first set of stylized parameters corresponding to the first target stylized template.

[0154] For example, the first target stylization template can be template 1, and the first stylization parameter set corresponding to the first target stylization template can be {"contrast": -0.25; "saturation": +0.1}.

[0155] S502, the electronic device acquires the second stylized parameter set corresponding to the current environmental information of the electronic device.

[0156] The current environmental information of an electronic device may include at least one of the following: geographical location, light intensity, temperature, and weather.

[0157] In some embodiments, an electronic device can determine its geographical location using a Global Navigation Satellite System (GNSS). This GNSS can include systems such as GPS and the BeiDou Navigation Satellite System (BDS). Alternatively, if the electronic device is connected to the internet, it can determine its geographical location by scanning for nearby base stations. Or, if a travel application is downloaded to the electronic device, it can determine its geographical location using that application.

[0158] In some embodiments, various types of sensors are pre-installed in the electronic device, such as ambient light sensors and temperature sensors. The electronic device can obtain illumination through the ambient light sensor; the electronic device can obtain temperature through the temperature sensor.

[0159] In some embodiments, during the electronic device preview stage, the electronic device can also determine the brightness of the preview image captured by the camera, and thus determine the illumination.

[0160] For example, an electronic device can perform brightness calculations on a preview image to determine the brightness of the preview image.

[0161] In some embodiments, the electronic device may determine the second set of stylized parameters corresponding to the current environmental information based on the current environmental information of the electronic device.

[0162] For example, taking the current environmental information as weather, when the weather is sunny, the set of second stylization parameters corresponding to the environmental information is {"contrast": +0.3; "saturation": +0.5}; when the weather is cloudy, the set of second stylization parameters corresponding to the environmental information is {"contrast": -0.2; "saturation": -0.1}; when the weather is rainy, the set of second stylization parameters corresponding to the environmental information is {"contrast": -0.3; "saturation": -0.4}.

[0163] It should be understood that the following embodiments are described using a sunny day as an example.

[0164] S503, the electronic device obtains the set of third stylization parameters corresponding to the third stylization template. The third stylization template is a stylization template that the user has used more than a preset number of times within a preset time period.

[0165] In some embodiments, a stylized template that is used more than a preset number of times by a user within a preset time period can be referred to as a stylized template that is frequently used by a user within a preset time period.

[0166] In some embodiments, an electronic device is pre-set with a recording table to record the usage of various stylized templates within a preset time period. Usage information may include: number of uses, most recent use time, etc. The most recent use time is the time when the electronic device last used the stylized template.

[0167] In this example, the electronic device can determine, based on a record table, the stylized templates that the user has used more than a preset number of times within a preset time period. When there are at least two stylized templates that the user has used more than a preset number of times, the electronic device can search the record table for the most recent usage time of the at least two stylized templates and determine the stylized template whose most recent usage time is closest to the current time as the stylized template whose usage time is more than a preset number of times.

[0168] For example, taking the third stylized template as template 1, the set of third stylized parameters corresponding to the third stylized template is {"contrast": -0.25; "saturation": +0.1}.

[0169] S504, the electronic device determines a fourth set of stylization parameters based on the first set of stylization parameters, the second set of stylization parameters, and the third set of stylization parameters.

[0170] The fourth stylization parameter set is the set of stylization parameters corresponding to the second stylization template determined by the electronic device based on multi-dimensional information.

[0171] In some embodiments, the electronic device may pre-store multiple sets of weight data for calculating the second stylized template.

[0172] For example, taking multiple sets of weighted data as three sets of weighted data, the electronic device can determine the fourth set of stylization parameters corresponding to the second style template based on the first set of stylization parameters, the second set of stylization parameters, and the third set of stylization parameters.

[0173] In this example, the weights of the second and third stylization parameter sets are 0.2, and the first stylization parameter set is 0.6. The fourth stylization parameter set corresponding to the second stylized template is the weighted sum of the first, second, and third stylization parameter sets.

[0174] In this example, taking the first target stylized template as template 1, the environmental information as sunny, and the third stylized template as template 1, the contrast in the fourth stylized parameter set corresponding to the second stylized template is equal to 0.2×0.3+0.2×(-0.25)+0.6×(-0.25), and the saturation in the fourth stylized parameter set corresponding to the second stylized template is equal to 0.2×0.5+0.2×0.1+0.6×0.1. That is, the fourth stylized parameter set corresponding to the second stylized template is {"contrast": -0.4; "saturation": +0.18}.

[0175] In some embodiments, the electronic device may determine a fourth set of stylization parameters based on a first set of stylization parameters and a third set of stylization parameters.

[0176] For example, taking two sets of weighted data as two separate sets, with the weight of the third stylization parameter set being 0.3 and the weight of the first stylization parameter set being 0.7, the fourth stylization parameter set corresponding to the second stylization template is equal to the weighted sum of the first and third stylization parameter sets.

[0177] In this example, taking the first target stylized template as template 1 and the third stylized template as template 1, the contrast in the fourth stylized parameter set corresponding to the second stylized template is 0.3×(-0.25)+0.7×(-0.25), and the saturation in the fourth stylized parameter set corresponding to the second stylized template is 0.3×0.1+0.7×0.1. That is, the fourth stylized parameter set corresponding to the second stylized template is {"contrast": -0.25; "saturation": +0.1}.

[0178] In some embodiments, the electronic device may also determine a fourth set of stylization parameters based on a first set of stylization parameters and a second set of stylization parameters.

[0179] S505, the electronic device uses the set of fourth stylization parameters as a set of stylization parameters corresponding to the second stylization template to determine the second stylization template.

[0180] S506, the electronic device processes the captured image according to the second stylized template and displays the processed image.

[0181] In this embodiment, when the electronic device obtains the first set of stylized parameters corresponding to the first target stylized template, the second set of stylized parameters corresponding to the current environment information of the electronic device, and the third set of stylized parameters corresponding to the third stylized template, the electronic device can combine the set of stylized parameters corresponding to the multi-dimensional information to determine the fourth set of stylized parameters. The stylized image processed by the fourth set of stylized parameters can better meet the user's shooting needs.

[0182] In some embodiments, if there is no first target stylized template in the first stylized template library that has a similarity greater than a preset threshold with the shooting keyword, the electronic device can send at least one of the following to the cloud server: the current environmental information of the electronic device or the first instruction information, as well as the shooting keyword. The first instruction information is used to indicate a third stylized template. The cloud server can select a second target stylized template from the second stylized template library that has a similarity greater than a preset threshold with the shooting keyword, and determine a sixth stylized parameter set based on the fifth stylized parameter set, the second stylized parameter set, and the third stylized parameter set corresponding to the second target stylized template. The cloud server can use the sixth stylized parameter set as a set of stylized parameters corresponding to the second stylized template.

[0183] The determination of the sixth stylization parameter set by the cloud server can be referenced from the description of the determination of the fourth stylization parameter set by S504 electronic devices.

[0184] In this embodiment, the cloud server can combine the fifth stylization parameter set, the second stylization parameter set, and the third stylization parameter set corresponding to the second target stylization template to determine the sixth stylization parameter set, and use the sixth stylization parameter set as a set of stylization parameters corresponding to the second stylization template. Since the sixth stylization parameter set corresponding to the second stylization template is determined based on a multi-dimensional parameter set, the image processed by the second stylization template can better meet the user's expected effect.

[0185] Figure 6 This is a flowchart illustrating another shooting method provided in an embodiment of this application, based on... Figure 4 In this embodiment, if the electronic device receives a shooting operation, and if the electronic device does not receive a second stylized template from the cloud server, the following steps can be performed:

[0186] S601, in response to a shooting operation, the electronic device controls the camera to capture multiple images in succession.

[0187] The shooting operation can be performed through air gestures, voice control, or touch screen.

[0188] Taking a touchscreen as an example of a shooting operation, in response to a user clicking the shooting control, the electronic device controls the camera to capture multiple images in succession. For instance, the camera may include a CMOS sensor, and the multiple images captured in succession may be in RAW format.

[0189] In some embodiments, the electronic device may not receive the second stylized template from the cloud server because the communication between the electronic device and the cloud server is susceptible to network bandwidth and network transmission rate.

[0190] S602, an electronic device sends multiple consecutive images to a cloud server.

[0191] Correspondingly, cloud servers can receive multiple images from electronic devices.

[0192] In some embodiments, the electronic device may process multiple consecutive images before sending them to a cloud server.

[0193] For example, taking a mobile phone as an electronic device, a mobile phone can be configured with an image signal processor (ISP) module. The image signal processor module can convert the raw data acquired by the image sensor (such as a CMOS sensor) from RAW format to YUV format or JPEG format.

[0194] In this example, an image synthesis model can be configured in the image signal processing module. The image synthesis model is used to synthesize multiple consecutive images. The mobile phone can use the image synthesis model to synthesize multiple consecutive images into one image, i.e., a synthesized image. The electronic device can send the synthesized image to the cloud server.

[0195] In some embodiments, taking a night scene as an example, the electronic device can directly send multiple consecutive images to a cloud server. These multiple consecutive images are raw images captured by a camera. The raw images can be in RAW format.

[0196] In some embodiments, in response to a shooting operation, the image captured by the camera controlled by the electronic device can be referred to as a third image.

[0197] In some embodiments, sending multiple consecutive images to a cloud server by an electronic device can be referred to as: the electronic device sending a second request to the cloud server, the second request including at least one third image.

[0198] For example, at least one third image may be multiple RAW format images captured by a camera controlled by an electronic device, or at least one third image may be a composite image.

[0199] In S603, the cloud server inputs multiple consecutive images into the image synthesis model, which then processes them to obtain a synthesized image.

[0200] The image synthesis model is used to synthesize multiple images. For example, the image synthesis model can be a convolutional neural network model, a recurrent neural network model, etc.

[0201] In some embodiments, the cloud server can perform image format conversion on multiple consecutive images. For example, the cloud server can convert each frame of multiple images from RAW format to YUV or JPEG format. After the format conversion, the cloud server can input the multiple YUV or JPEG format images into an image compositing model, and after processing by the image compositing model, a composite image in YUV or JPEG format is obtained.

[0202] In some embodiments, the electronic device can first input multiple RAW format images into the image compositing model. After processing by the image compositing model, a composite image in RAW format is obtained. The electronic device can then perform image format conversion on the composite image in RAW format, such as converting the composite image in RAW format to a composite image in YUV format or a composite image in JPEG format.

[0203] S604: The cloud server processes the composite image according to the second stylized template to obtain a stylized image.

[0204] In some embodiments, the cloud server can select different methods to process the composite image based on the type of a set of stylization parameters corresponding to the second stylization template. The type of the set of stylization parameters may include color adjustment type, texture overlay type, and artistic type, etc.

[0205] For example, stylization parameters for color adjustment types may include contrast, saturation, and brightness; stylization parameters for texture overlay types may include graininess; and stylization parameters for art types may include oil painting brushstroke intensity, watercolor diffusion, and sketch line density.

[0206] In this example, when the set of stylization parameters corresponding to the second stylization template is of the color adjustment type and the texture overlay type, the cloud server can use the set of stylization parameters corresponding to the second stylization template to construct the corresponding transformation matrix and represent the pixel values ​​of the synthesized image in matrix form (such as matrix 1). By multiplying the transformation matrix and matrix 1, the stylized image is obtained.

[0207] In this example, when the type of the set of stylization parameters corresponding to the second stylization template is "Art," the cloud server can call a pre-trained style transfer model and the set of stylization parameters corresponding to the second stylization template to process the synthesized image and obtain a stylized image. The input to the style transfer model is the set of stylization parameters corresponding to the second stylization template, and the synthesized image; the output is the stylized image.

[0208] In some embodiments, the stylized image may be referred to as the fourth image, which is an image processed by a cloud server from at least one third image.

[0209] S605: The cloud server sends stylized images to electronic devices.

[0210] Correspondingly, electronic devices can receive stylized images from cloud servers.

[0211] In some embodiments, sending a stylized image from a cloud server to an electronic device can be referred to as: the cloud server sending a second response to the electronic device, the second response including the stylized image.

[0212] S606: When the electronic device receives a stylized image, the electronic device displays a first window on the shooting interface. The first window is used to prompt the user whether to save the stylized image.

[0213] The first window may include: a save control, a cancel save control, and stylized images, etc.

[0214] For example, taking a mobile phone as an electronic device, Figure 7 This is a schematic diagram of a mobile phone interface provided in an embodiment of this application, with reference to... Figure 7 , Figure 7 The displayed interface is a shooting interface, which may include window 701. Window 701 may include a save control 702, a cancel save control 703, and a stylized image. In this example, window 701 may be the first window.

[0215] S607, in response to a user's operation of saving a stylized image, the electronic device stores the stylized image to the gallery.

[0216] The user's operation, including the stylized image, can be: the user clicking the save control in the first window.

[0217] For example, refer to Figure 7 In response to the user clicking the save control 702 in window 701, the electronic device can save the stylized image to the gallery.

[0218] In some embodiments, after S607, the method further includes:

[0219] S608: When the electronic device stores the stylized image to the gallery, the electronic device displays a second window on the shooting interface to prompt the user whether to download the second stylized template.

[0220] The second window may include: a prompt message, a download control, and a cancel download control.

[0221] For example, taking a mobile phone as an electronic device, Figure 8 This is a schematic diagram illustrating another change in the mobile phone interface provided in an embodiment of this application, referred to... Figure 8 In the example 'a', the shooting interface may include window 801, which may include a download control 802, a prompt message, and a cancel download control 803. In this example, the prompt message is "Download the second stylized template?", and window 801 can be a second window.

[0222] S609, in response to the operation of downloading a second stylized template, the electronic device sends a download request to the cloud server, the download request being used to instruct the cloud server to send the second stylized template.

[0223] The user's action to download the second stylized template can be: the user clicking the download control in the second window.

[0224] For example, refer to Figure 8 In response to the user clicking the download control 802 in window 801, the electronic device sends a download request to the cloud server. The download request is used to instruct the cloud server to send a second stylized template.

[0225] Correspondingly, cloud servers can receive download requests from electronic devices.

[0226] S610: The cloud server sends a second stylized template to the electronic device.

[0227] Correspondingly, electronic devices can receive a second stylized template from a cloud server and store the stylized template in a first stylized template library.

[0228] In this example, refer to Figure 8 b in Figure 8 The 'b' in the second stylized template can include the first icon 804 corresponding to the second stylized template, and the label corresponding to the second stylized template is "custom".

[0229] In this embodiment, if the electronic device does not receive the first response, but responds to the user's shooting operation, the electronic device can send multiple images captured by the camera at the current moment to a cloud server. The cloud server can process these multiple images using a synthesis model to obtain a synthesized image. Since the cloud server has a second stylized template, it can process the synthesized image according to the second stylized template to obtain a stylized image. The cloud server can send this stylized image to the electronic device. In response to the user downloading the image of the second stylized template, the electronic device can obtain the second stylized template from the cloud. Thus, the user can view the stylized image on the electronic device, and can use the second stylized template during subsequent shooting processes.

[0230] The above example illustrates the shooting method provided by this application embodiment from the perspective of interaction between electronic devices and the cloud. The following description, from the perspective of electronic devices, illustrates the shooting method provided by this application embodiment. Figure 9 This is a flowchart illustrating another shooting method provided in an embodiment of this application.

[0231] Reference Figure 9 The shooting method provided in this application embodiment may include:

[0232] S901, at the first moment, the electronic device receives voice data.

[0233] The voice data may include shooting keywords, which are used to indicate the image stylization information desired by the user. The first moment can be the moment when the electronic device receives the voice data through the microphone.

[0234] In some embodiments, the electronic device can process the voice data based on a preset voice recognition model and an intent understanding model to obtain the shooting keywords, as described in S402 above.

[0235] S902, prior to the first moment, the electronic device displays multiple first images, which are either raw images captured by the camera of the electronic device or images processed using a first stylized template.

[0236] The first stylized template can be the default stylized template of the electronic device, or the stylized template selected by the user before inputting voice data.

[0237] S903, at the second moment, displays multiple second images.

[0238] The second moment is later than the first moment. Multiple second images are images processed by the electronic device using a second stylized template. The second stylized template is a stylized template determined based on the shooting keywords.

[0239] In this embodiment, since the second image of the electronic device is an image processed by a second stylized template determined based on the shooting keywords, and the shooting keywords are derived from voice data, the second image meets the user's expected processing effect. Furthermore, since the user does not need to manually select and adjust stylized parameters or select a stylized template, the user experience can be improved.

[0240] It should be noted that the module names involved in the embodiments of this application can all be defined as other names, as long as they can achieve the function of each module, and no specific restrictions are placed on the module names.

[0241] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0242] The imaging method of the embodiments of this application has been described above. The apparatus for performing the above method provided in the embodiments of this application is described below. Those skilled in the art will understand that the methods and apparatus can be combined and referenced with each other, and the related apparatus provided in the embodiments of this application can perform the steps in the above list sorting method.

[0243] The shooting method provided in this application can be applied to electronic devices with shooting functions. Electronic devices include terminal devices, and the specific device form of the terminal device can be referred to the above-mentioned descriptions, which will not be repeated here.

[0244] This application provides an electronic device, which includes one or more processors and a memory; the memory is used to store computer program code, the computer program code including computer instructions; one or more processors invoke the computer instructions to cause the electronic device to perform the above-described method.

[0245] Among them, electronic devices can be mobile devices or servers (such as cloud servers).

[0246] This application provides a chip system. The chip system is applied to an electronic device and includes one or more processors. These processors invoke computer instructions to cause the electronic device to execute the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar to the related embodiments described above, and will not be repeated here.

[0247] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, it implements the methods described above. The methods described in the above embodiments can be implemented wholly or partially by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted over the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0248] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, Digital Versatile Discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0249] This application provides a computer program product, which includes a computer program that, when run, causes a computer to perform the above-described method.

[0250] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, generate instructions for implementing the flowchart illustrations. Figure 1One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0251] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.

Claims

1. A shooting method, characterized in that, Applied to electronic devices, the method includes: At the first moment, voice data is received, which includes shooting keywords, and the shooting keywords are used to indicate the image stylization information desired by the user; Before the first moment, multiple first images are displayed; the multiple first images are original images captured by the camera of the electronic device or images processed by the electronic device using a first stylized template; At the second moment, multiple second images are displayed; The second moment is later than the first moment, and the multiple second images are images processed by the electronic device using a second stylized template. The second stylized template is a stylized template determined based on the shooting keywords.

2. The method according to claim 1, characterized in that, The method further includes: Based on the shooting keywords, a first target stylized template with a similarity greater than a preset threshold to the shooting keywords is selected from the first stylized template library; the first stylized template library includes multiple pre-stored stylized templates, and each stylized template corresponds to a set of stylized parameters; Based on the first target stylized template, determine the second stylized template.

3. The method according to claim 2, characterized in that, The step of determining the second stylized template based on the first target stylized template includes: The first target stylization template is used as the second stylization template, and the second stylization template includes the first set of stylization parameters corresponding to the first target stylization template.

4. The method according to claim 2, characterized in that, The method further includes at least one of the following: Obtain the second stylization parameter set corresponding to the environmental information of the electronic device; or, Obtain the set of third stylized parameters corresponding to the third stylized template; the third stylized template is a stylized template that has been used by the user more than a preset number of times within a preset time period; The step of determining the second stylized template based on the first target stylized template includes: A fourth set of stylization parameters is determined based on at least one of the second set of stylization parameters, the third set of stylization parameters, and the first set of stylization parameters corresponding to the first target stylization template. The fourth set of stylization parameters is used as a set of stylization parameters corresponding to the second stylization template.

5. The method according to any one of claims 2 to 4, characterized in that, The method further includes: If the first target stylized template is not matched, a first request is sent to the cloud server. The first request includes at least the shooting keywords. Receive a first response from the cloud server, the first response including the second stylized template.

6. The method according to claim 5, characterized in that, The first request further includes at least one of the following: environmental information of the electronic device, or first indication information; the first indication information is used to indicate a third stylized template.

7. The method according to claim 5, characterized in that, The method further includes: In response to the shooting operation, and if no second response is received from the cloud server, a second request is sent to the cloud server; the second request includes at least one third image; Receive a second response from the cloud server; the second response includes a fourth image; the fourth image is an image processed by the cloud server after processing the at least one third image; The fourth image is displayed.

8. The method according to claim 7, characterized in that, The display of the fourth image includes: A first window is displayed at the top of the shooting interface, and the first window displays the fourth image; The method further includes: In response to the operation of storing the fourth image in the first window, the fourth image is stored in the gallery.

9. The method according to claim 7 or 8, characterized in that, The method further includes: When the fourth image is stored in the gallery, a second window is displayed above the shooting interface, which indicates whether the second stylized template should be downloaded. In response to the operation of downloading the second stylized template in the second window, the second stylized template is obtained from the cloud server; Store the second stylized template to the first stylized template library; When the second stylized template is stored in the first stylized template library, a first icon is displayed on the shooting interface, and the first icon is the icon of the second stylized template.

10. A shooting method, characterized in that, Applied to a cloud server, the method includes: Receive a first request from an electronic device, the first request including at least a keyword for shooting; Based on the shooting keywords, a second target stylized template with a similarity greater than a preset threshold is selected from the second stylized template library; Based on the second target stylized template, determine the second stylized template; Send a first response to the electronic device, the first response including the second stylized template.

11. The method according to claim 10, characterized in that, The step of determining the second stylized template based on the second target stylized template includes: The second target stylization template is used as the second stylization template, and the second stylization template includes the fifth stylization parameter set corresponding to the second target stylization template.

12. The method according to claim 10, characterized in that, The first request further includes at least one of the following: environmental information of the electronic device, or, first indication information; the first indication information is used to indicate a third stylized template, wherein the third stylized template is a stylized template that has been used by the user more than a preset number of times within a preset time period.

13. The method according to claim 12, characterized in that, The method further includes at least one of the following: Obtain the second stylization parameter set corresponding to the environmental information of the electronic device; or, Obtain the set of third stylization parameters corresponding to the third stylization template; The step of determining the second stylized template based on the second target stylized template includes: A sixth set of stylization parameters is determined based on at least one of the second set of stylization parameters, the third set of stylization parameters, and the fifth set of stylization parameters corresponding to the second target stylization template. The sixth set of stylization parameters is used as a set of stylization parameters corresponding to the second stylization template.

14. The method according to any one of claims 10 to 13, characterized in that, The method further includes: Receive a second request from the electronic device, the second request including at least one third image; Based on the second stylized template, the at least one third image is processed to obtain a fourth image; A second response is sent to the electronic device, the second response including the fourth image.

15. An electronic device, characterized in that, The electronic device includes: one or more processors and memory; The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as claimed in any one of claims 1 to 9, or the method as claimed in any one of claims 10 to 14.

16. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the one or more processors being configured to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 9, or the method as described in any one of claims 10 to 14.

17. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as claimed in any one of claims 1 to 9, or the method as claimed in any one of claims 10 to 14.

18. A computer program product, characterized in that, The computer program product includes computer program code that, when run on an electronic device, causes the electronic device to perform the method as claimed in any one of claims 1 to 9, or the method as claimed in any one of claims 10 to 14.