Special effect recommendation method and device, electronic equipment and storage medium

By obtaining environmental feature information and recommending special effects in camera preview mode, the problem of poor image special effects recommendations is solved, and more accurate special effects recommendations are achieved.

CN120640123APending Publication Date: 2025-09-12BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510944846.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-09
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

In the existing technology, the image special effects recommendation effect is poor and cannot meet user expectations. This is mainly because the differences between different image shooting scenes are not fully considered, resulting in the special effects not matching the images that users want to beautify.

Method used

In the preview mode of the camera application, the first preview image and its corresponding environmental feature information are obtained, and based on this information, identification information of the recommended special effects is determined and displayed, and special effects are recommended in the image preview page.

Benefits of technology

It achieves more accurate special effects recommendations that fit the actual shooting environment, improves the effectiveness and accuracy of special effects recommendations, and enhances the matching degree between special effects and images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120640123A_ABST
    Figure CN120640123A_ABST
Patent Text Reader

Abstract

The invention relates to a special effect recommendation method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a first preview image and environment feature information corresponding to the first preview image in response to a situation that a camera application is in a preview mode; displaying the first preview image on an image preview page; determining a first recommended special effect based on the environment feature information; and displaying the identification information of the first recommended special effect in the image preview page. According to the technical scheme provided by the invention, when the special effect recommendation is carried out, the influence of different shooting scenes on the visual performance effect of the image special effect is considered, so that the special effect recommendation which is more accurate and fits the actual shooting environment can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of special effect recommendation, and in particular to a special effect recommendation method, device, electronic device, and storage medium. Background Art

[0002] With the continuous development of mobile terminals and image processing technology, users' demand for image beautification and special effects is increasing. In related technologies, the recommendation and display of image special effects mainly occur in the image editing stage after the image is shot. Specifically, after the image is shot, the user can import the shot image into the editing page of the image editing application and browse the various special effects recommended by the system on this page. Users can choose the appropriate special effects from the various special effects recommended by the system to apply in order to enhance the visual effect of the image. However, in practice, it often happens that the improvement of the visual effect of the image by special effects is far from the user's expectations, resulting in poor special effects recommendation effect. Therefore, how to improve the effect of special effects recommendation is a problem that needs to be solved urgently. Summary of the Invention

[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a special effect recommendation method, device, electronic device and storage medium.

[0004] In a first aspect, the present disclosure provides a special effect recommendation method, comprising:

[0005] In response to the camera application being in a preview mode, acquiring a first preview image and environmental feature information corresponding to the first preview image;

[0006] Displaying the first preview image on the image preview page;

[0007] Determining a first recommended special effect based on the environmental feature information;

[0008] In the image preview page, identification information of the first recommended special effect is displayed.

[0009] In a second aspect, the present disclosure further provides a special effect recommendation device, comprising:

[0010] an acquisition module, configured to acquire, in response to the camera application being in a preview mode, a first preview image and environmental feature information corresponding to the first preview image;

[0011] A first display module, configured to display the first preview image on an image preview page;

[0012] A recommendation determination module, configured to determine a first recommended special effect based on the environmental feature information;

[0013] The second display module is used to display the identification information of the first recommended special effect in the image preview page.

[0014] In a third aspect, the present disclosure further provides an electronic device, comprising:

[0015] one or more processors;

[0016] a storage device for storing one or more programs;

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the special effect recommendation method as described above.

[0018] In a fourth aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which implements the special effects recommendation method as described above when executed by a processor.

[0019] The technical solution provided by the embodiments of the present disclosure has the following advantages over the prior art:

[0020] The technical solution provided by the disclosed embodiments involves obtaining a first preview image and environmental feature information corresponding to the first preview image in response to a camera application being in preview mode; displaying the first preview image on an image preview page; determining a first recommended special effect based on the environmental feature information; and displaying identification information of the first recommended special effect on the image preview page. Essentially, the technical solution pre-places the image special effect recommendation process during the image capture preview phase, specifically during the user's image preview process through the camera, and recommends special effects based on the environmental feature information corresponding to the first preview image. Because the technical solution provided by this application considers the impact of different shooting scenes on the visual performance of image special effects when recommending special effects, it can achieve more accurate and realistic special effect recommendations, thereby improving the effectiveness of special effect recommendations. Furthermore, when the camera application is in preview mode, the position and angle of the terminal device are often constantly changing. Pre-placement of the image special effect recommendation process during the image capture preview phase can obtain richer environmental feature information corresponding to the first preview image, thereby improving the accuracy of environmental feature recognition and, in turn, the effectiveness of special effect recommendations. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0022] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0023] Figure 1 A flowchart of a special effect recommendation method provided in an embodiment of the present disclosure;

[0024] Figure 2-Figure 3 Schematic diagrams of two image preview pages provided in an embodiment of the present disclosure;

[0025] Figure 4 Schematic diagram of the structure of a special effect recommendation device in an embodiment of the present disclosure;

[0026] Figure 5 Schematic diagram of the structure of an electronic device in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features therein can be combined with each other in the absence of conflict.

[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0029] As described in the background art, in related technologies, the improvement in the visual effects of special effects on images often falls far short of user expectations, resulting in poor special effects recommendation results. After an in-depth analysis of this phenomenon, the applicant believes that an important reason for this phenomenon is that the differences in different image shooting scenes were not fully considered during the design phase of the special effects, which results in the same special effects having significant differences in visual beautification effects when applied to different images. On this basis, if the differences in image shooting scenes are further ignored during the special effects recommendation process, the recommended special effects will not match the images that users wish to beautify, and therefore the use of special effects will not be of much help in improving the visual effects of images.

[0030] In view of this, the present disclosure provides a special effect recommendation method. Figure 1This is a flowchart of a special effects recommendation method provided in an embodiment of the present disclosure. This embodiment is applicable to situations where special effects recommendations are performed on a client. The method can be executed by a special effects recommendation device, which can be implemented using software and / or hardware. The device can be configured in an electronic device, such as a terminal, specifically including but not limited to smartphones, PDAs, tablets, wearable devices with displays, desktops, laptops, all-in-one computers, smart home devices, etc. Alternatively, this embodiment can be applicable to situations where special effects recommendations are performed on a server. The method can be executed by a special effects recommendation device, which can be implemented using software and / or hardware. The device can be configured in an electronic device, such as a server.

[0031] like Figure 1 As shown, the method may specifically include:

[0032] S110 : In response to the camera application being in a preview mode, obtain a first preview image and environmental feature information corresponding to the first preview image.

[0033] A camera application, for example, may be an application that has the function of capturing images or videos. In some scenarios, a camera application may have other functions in addition to capturing images or videos. This disclosure does not limit the specific functions that these "other functions" may be. For example, a camera application may have the function of editing images or videos in addition to capturing images or videos.

[0034] "Camera app in preview mode" means the camera app has activated image or video capture, and the screen of the electronic device running the camera app displays the camera's captured image in real time, but the user has not yet performed an image saving operation (such as clicking the "Capture" option). During this stage, the user can confirm the composition, lighting, and subject, and adjust shooting parameters.

[0035] The first preview image may be, for example, image data captured in real time by a camera when the camera application is in preview mode. The environmental feature information corresponding to the first preview image may, for example, refer to relevant information describing the characteristics of the external environment in which the camera is located during the process of capturing the first preview image. The environmental feature information corresponding to the first preview image may be acquired by processing data collected by an electronic device running the camera application through its internal sensors. Examples of such sensors include cameras, light sensors, time sensors, temperature sensors, humidity sensors, barometers, microphones, and the like.

[0036] In this step, the purpose of obtaining the environmental feature information corresponding to the first preview image is to recommend special effects based on the environmental feature information corresponding to the first preview image, so that the recommended special effects can better match the image.

[0037] S120: Display a first preview image on the image preview page.

[0038] The image preview page may be, for example, a page for displaying the first preview image in real time when the camera application is in a preview mode.

[0039] S130: Determine a first recommended special effect based on the environmental feature information.

[0040] Special effects can be, for example, image processing techniques used to alter the visual quality of an image or video. These can take the form of filters, beautification, lighting and shadow changes, style transfer, cartoonization, background blur, and more. Their purpose is to make an image appear more aesthetically pleasing, artistic, or more suitable for a specific expression.

[0041] Optionally, in practice, a correspondence between environmental feature information and special effects can be pre-established. During this step, the pre-established correspondence between environmental feature information and special effects is queried to determine which special effect(s) correspond to the environmental feature information obtained in S110. The special effect(s) found to correspond to the environmental feature information obtained in S110 is used as the first recommended special effect.

[0042] S140: Display identification information of the first recommended special effect on the image preview page.

[0043] The identification information of the first recommended special effect may be, for example, information used to distinguish different first recommended special effects. This disclosure does not limit the specific content of the identification information of the first recommended special effect. For example, the identification information of the first recommended special effect may include a thumbnail, name, number, etc. of the special effect.

[0044] For example, when the camera application is in preview mode, a first preview image is obtained and displayed on the image preview page. Figure 2 , the first preview image includes two buildings, and the environmental feature information corresponding to the first preview image includes "building" and "sunny day". Suppose that the first recommended special effects corresponding to "building" are determined to be special effect 2, special effect 5, special effect 6, special effect 7, and special effect 9, and the first recommended special effects corresponding to "sunny day" are determined to be special effect 1, special effect 3, special effect 4, special effect 8, special effect 10, and special effect 11. Sort all the determined first recommended special effects to obtain a first recommended special effect sequence. In the first recommended special effect sequence, the sorting results of each special effect are special effect 1, special effect 2, special effect 3, special effect 4, special effect 5, special effect 6, special effect 7, special effect 8, special effect 9, special effect 10, and special effect 11. Suppose that a total of 5 display positions for displaying identification information of the first recommended special effects are set on the image preview page, take the identification information of the first 5 first recommended special effects from the first recommended special effect sequence, and display them in order on the image preview page.

[0045] The above technical solution obtains a first preview image and environmental feature information corresponding to the first preview image by setting a response to the camera application being in preview mode; displays the first preview image on the image preview page; determines a first recommended special effect based on the environmental feature information; and displays identification information of the first recommended special effect on the image preview page. Its essence is to pre-place the image special effect recommendation process in the preview stage of image shooting, specifically, to complete it during the user's image preview through the camera, and to recommend special effects based on the environmental feature information corresponding to the first preview image. Since the technical solution provided by this application takes into account the impact of different shooting scenes on the visual performance of image special effects when recommending special effects, it can achieve more accurate special effects recommendations that fit the actual shooting environment, thereby improving the effect of special effects recommendations.

[0046] Furthermore, when the camera application is in preview mode, the position and angle of the terminal device are often constantly changing. By placing the image special effects recommendation process in the preview stage of image shooting, richer environmental feature information corresponding to the first preview image can be obtained, thereby improving the accuracy of environmental feature recognition and further improving the effect of special effects recommendation.

[0047] Based on the above technical solution, S110 may include: in response to the camera application being in preview mode, periodically acquiring a first preview image at a first time interval, and periodically acquiring environmental feature information corresponding to the first preview image at a second time interval. The first time interval and the second time interval may be the same or different. This disclosure does not limit the specific values ​​of the first time interval and the second time interval.

[0048] Furthermore, obtaining environmental feature information corresponding to the first preview image includes: identifying the image content of the first preview image to determine first reference environmental feature information corresponding to the first preview image; and determining the environmental feature information corresponding to the first preview image based on the first reference environmental feature information.

[0049] The first reference environment feature information may be, for example, a recognition result of the image content of the first preview image. For example, the first reference environment feature information may be a phrase used to describe the objects included in the first preview image. The objects included in the first preview image may be, for example, the image subject, objects in the image background, etc. Further, the first reference environment feature information may be the name of the object included in the first preview image. For example, Figure 2 Taking the first preview image shown in as an example, the first preview image is recognized, and it can be recognized that the first preview image includes a building (ie, two buildings), and the "building" is used as the first reference environment feature information.

[0050] In some scenarios, the first reference environmental feature information can be directly used as the environmental feature information corresponding to the first preview image. In other scenarios, the first reference environmental feature information and the second reference environmental feature information (i.e., environmental feature information obtained from channels other than the recognition of the first preview image) can also be processed to obtain environmental feature information corresponding to the first preview image. Processing the first reference environmental feature information and the second reference environmental feature information can, for example, include determining the environmental feature information with a higher confidence level from the first reference environmental feature information and the second reference environmental feature information, and using the environmental feature information with a higher confidence level as the environmental feature information corresponding to the first preview image. Alternatively, determining the usage priority of the first reference environmental feature information and the usage priority of the second reference environmental feature information, and using the first reference environmental feature information and / or the second reference environmental feature information with a usage priority higher than a set level as the environmental feature information corresponding to the first preview image. Alternatively, the first reference environmental feature information and the second reference environmental feature information are fused, and the fusion result is used as the environmental feature information corresponding to the first preview image.

[0051] By setting up recognition of the image content of the first preview image, first reference environmental feature information corresponding to the first preview image is determined; based on the first reference environmental feature information, determining the environmental feature information corresponding to the first preview image is essentially directly recognizing the first preview image to obtain the environmental feature information corresponding to the first preview image. In practice, by recognizing the first preview image, information about the image subject of the first preview image, the environment in which the subject is located, and the time can be obtained. This information can be used to determine the environmental feature information corresponding to the first preview image.

[0052] Furthermore, when the camera app is in preview mode, first preview images are captured periodically. These images, captured at different times, vary in content, brightness, subject composition, and other aspects, and exhibit temporal contextual relevance. Further enabling content recognition of multiple consecutively captured first preview images to determine first reference environmental feature information corresponding to the first preview images can improve the accuracy of environmental feature recognition.

[0053] Furthermore, determining the environmental characteristic information corresponding to the first preview image based on the first reference environmental characteristic information may also include: determining the time information and weather information of the capture moment of the first preview image; determining the shooting purpose information of the first preview image; determining the second reference environmental characteristic information corresponding to the first preview image based on at least one of the time information, weather information and shooting purpose information of the first preview image capture moment; and determining the environmental characteristic information corresponding to the first preview image based on the first reference environmental characteristic information and the second reference environmental characteristic information.

[0054] The second reference environment characteristic information refers to characteristic information related to the current shooting scene, not directly extracted from the first preview image, but rather derived through analysis based on non-image-related information such as the shooting time, weather conditions, and shooting purpose. The shooting time, weather conditions, and shooting purpose used to obtain the second reference environment characteristic information are also not derived from the first preview image. For example, the time information of the first preview image's capture moment can be obtained from the electronic device's system time. The weather information for the first preview image can, for example, be obtained by querying the internet. The shooting purpose information for the first preview image can, for example, be obtained by querying the user. Alternatively, in some scenarios, camera applications often include multiple pages with different functions, such as pages for participating in specific topics or selecting different shooting effects. These pages often include options for adjusting the camera application's entry into preview mode. Users can trigger the camera application to enter preview mode in a variety of ways by selecting different options. Because these options reside on different function pages and correspond to different operation paths, they constitute multiple different trigger chains. Therefore, the shooting purpose information for the first preview image can be determined based on the trigger chain that triggers the camera application to enter preview mode.

[0055] For example, if the system time of the electronic device at the moment of capturing the first preview image is December 25, it is determined that the second reference environment characteristic information includes "Christmas"; if the weather information on the Internet at the moment of capturing the first preview image indicates that it is currently sunny, it is determined that the second reference environment characteristic information includes "sunny"; if it is determined according to the trigger link that triggers the camera application to enter the preview mode that the shooting purpose information of the first preview image is travel photo sharing, it is determined that the second reference environment characteristic information includes "travel".

[0056] The following further explains the relationship between the first reference environmental feature information, the second reference environmental feature information, and the environmental feature information corresponding to the first preview image. The first reference environmental feature information is environmental feature information obtained through the channel of "identifying the image content of the first preview image." The second reference environmental feature information is environmental feature information obtained through channels other than the channel of "identifying the image content of the first preview image." In other words, the first reference environmental feature information and the second reference environmental feature information are obtained through different channels. The process of obtaining the first reference environmental feature information uses the first preview image, while the process of obtaining the second reference environmental feature information does not use the first preview image. The environmental feature information corresponding to the first preview image is determined from the first reference environmental feature information and the second reference environmental feature information, and is the result of screening or fusing the first reference environmental feature information and the second reference environmental feature information. The environmental feature information corresponding to the first preview image is used to determine which special effect or effects to use as the first recommended special effect or effects.

[0057] By setting at least one of the time information, weather information, and shooting purpose information of the first preview image based on the time of capturing the first preview image, the second reference environmental feature information corresponding to the first preview image is determined. In essence, the environmental feature information corresponding to the first preview image is determined through multiple channels, which can improve the accuracy and richness of the determined environmental feature information.

[0058] Furthermore, determining the environmental feature information corresponding to the first preview image based on the first reference environmental feature information and the second reference environmental feature information may include: in response to the number of the first reference environmental feature information being one, using the first reference environmental feature information and the second reference environmental feature information as the environmental feature information corresponding to the first preview image; the method also includes: in response to the number of the first reference environmental feature information being greater than or equal to two, using the first reference environmental feature information as the environmental feature information corresponding to the first preview image.

[0059] When the number of first reference environment feature information is one, if the first recommended special effect is determined based solely on the first reference environment feature information, the number of first recommended special effects that are ultimately obtained may be small, and may even be less than the number of display locations for displaying identification information for the first recommended special effects set in the image preview page, which will result in a lower richness of special effect recommendations. By setting the number of first reference environment feature information to one, the first reference environment feature information and the second reference environment feature information are used as the environment feature information corresponding to the first preview image. The purpose is to increase the number of first recommended special effects that are ultimately obtained by increasing the second reference environment feature information, thereby improving the richness of special effect recommendations.

[0060] If the number of first reference environmental feature information is greater than or equal to two, this means that the number of first recommended special effects determined based solely on this first reference environmental feature information is relatively large and rich. Because the number of display locations for identifying information for first recommended special effects on the image preview page is limited, the second reference environmental feature information is not used as the environmental feature information corresponding to the first preview image, thereby limiting the number of first recommended special effects ultimately obtained.

[0061] On the basis of the above-mentioned technical solutions, optionally, a first recommended special effect is determined based on the environmental feature information, including: in response to the number of environmental feature information being multiple, multiple environmental feature information is displayed on the image preview page; in response to a selection operation of target environmental feature information among the multiple environmental feature information, a first recommended special effect is determined based on the target environmental feature information.

[0062] The target environment characteristic information may be, for example, any one of a plurality of environment characteristic information, and is the environment characteristic information selected by the user from the plurality of environment characteristic information. The selection operation on the target environment characteristic information may be, for example, a click operation, a slide operation, or a drag operation on the target environment characteristic information.

[0063] For example, see Figure 3 , the environmental feature information corresponding to the first preview image includes "building" and "sunny". "Building" and "sunny" are displayed on the image preview page. Assume that the special effects corresponding to "building" include: special effect 2, special effect 5, special effect 6, special effect 7 and special effect 9, and the special effects corresponding to "sunny" include special effect 1, special effect 3, special effect 4, special effect 8, special effect 10 and special effect 11. If the user selects "sunny", the first recommended special effect is the special effect corresponding to "sunny". See Figure 3 ,On the image preview page, the identification information of the special effect corresponding to “Sunny Day” is displayed.

[0064] By setting a response to the selection operation of target environmental feature information among multiple environmental feature information, the first recommended special effect is determined based on the target environmental feature information. Its essence is to allow the user to select the environmental feature information, and based on the user's selection result of the environmental feature information, recommend special effects that better meet the user's needs, thereby improving the accuracy of special effect recommendations.

[0065] Based on the above technical solution, the method may optionally further include: in response to a selection operation on identification information of a target recommended special effect in the first recommended special effect, applying the target recommended special effect to the first preview image to obtain a second preview image; and displaying the second preview image on the image preview page. The target recommended special effect may, for example, be any special effect in the first recommended special effect, the first recommended special effect selected by the user. The selection operation on the target recommended special effect identification may, for example, be a click operation, a swipe operation, or a drag operation on the target recommended special effect identification.

[0066] For example, in Figure 3 On the basis of, if the user clicks the icon of special effect 1, special effect 1 is selected as the target recommended special effect and is applied to the first preview image. Then, on the image preview page, the first preview image (i.e., the second preview image) with special effect 1 added is displayed.

[0067] By setting a selection operation responsive to the identification information of a target recommended effect in the first recommended effect, the target recommended effect is applied to the first preview image to generate a second preview image; the second preview image is then displayed on the image preview page. Essentially, the target recommended effect is experienced directly on the first preview page. This allows users to more intuitively experience the enhanced visual quality of the first preview image from the target recommended effect.

[0068] In some scenarios, optionally, in response to a selection operation on the identification information of a target recommended special effect in the first recommended special effect, the target recommended special effect is applied to the first preview image to obtain a second preview image, including, in response to a selection operation on the identification information of the target recommended special effect in the first recommended special effect, removing the special effect already applied in the first preview image and applying the target recommended special effect to the first preview image after the special effect is removed to obtain the second preview image. This setting can avoid the undesirable situation in which multiple special effects are applied to the first preview image simultaneously, resulting in the user being unable to distinguish the improvement effect of the target recommended special effect on the visual effect of the first preview image.

[0069] It should be noted that, in practice, since the first preview image is collected periodically, applying the target recommendation special effect to the first preview image includes: applying the target recommendation special effect to one or more first preview images collected after detecting the selection operation of the target recommendation special effect identifier.

[0070] On the basis of the above technical solution, optionally, a step of determining a first recommended special effect based on environmental feature information and a step of displaying identification information of the first recommended special effect in the image preview page can be set, which are performed periodically; the step of displaying the identification information of the first recommended special effect in the image preview page is performed for the N+1th time, including: after displaying the identification information of the first recommended special effect for the Nth time, determining a second recommended special effect from the multiple first recommended special effects displayed in the image preview page, the second recommended special effect being the special effect remaining after removing the target recommended special effect from the multiple first recommended special effects displayed in the image preview page; and replacing the identification information of the second recommended special effect with the identification information of the first recommended special effect obtained for the N+1th time; wherein N is a positive integer.

[0071] Exemplarily, assume that the first recommended special effect is determined based on environmental feature information during the Nth execution; after the identification information of the first recommended special effect determined for the Nth time is displayed on the image preview page, identification information of special effect a, special effect b, special effect c, special effect d, and special effect e are displayed on the image preview page. Assume that the user selects special effect b. Special effect b is applied to the first preview image. When the step of displaying the identification information of the first recommended special effect on the image preview page is executed for the N+1th time, special effect a, special effect c, special effect d, and special effect e are all used as second recommended special effects. Assume that the first recommended special effects determined for the N+1th time include special effect f, special effect g, special effect h, special effect i, etc. The second recommended special effects (i.e., special effect a, special effect c, special effect d, and special effect e) are replaced with the first recommended special effects determined for the N+1th time (i.e., special effect f, special effect g, special effect h, special effect i). Finally, on the image preview page, the special effects displayed are special effect b, special effect f, special effect g, special effect h, and special effect i.

[0072] This setting is designed to update and recommend image effects in real time, ensuring a high degree of match between the first recommended effect and the currently displayed first preview image, thereby improving the accuracy of effect recommendations. Furthermore, when updating the first recommended effect, only the second recommended effect is updated, while the user-selected effect (and the target recommended effect) remains (i.e., not updated). This helps users understand which effect is currently being used.

[0073] On the basis of the above technical solution, optionally, when displaying the identification information of the first recommended special effect in the image preview page, the method also includes: displaying first prompt information corresponding to the identification information of the first recommended special effect in the image preview page; the first prompt information is used to prompt the corresponding relationship between the first recommended special effect and the environmental feature information.

[0074] For example, see Figure 3On the image preview page, a prompt corresponding to the identification information of special effect 1 is displayed. The prompt is used to indicate that special effect 1 corresponds to the environmental characteristic information of "sunny day", that is, special effect 1 is recommended because the environmental characteristic information of "sunny day" is detected.

[0075] By setting the first prompt information corresponding to the identification information of the first recommended special effect in the image preview page, the user can understand the correspondence between the first recommended special effect and the environmental feature information, and then understand the applicable scenarios of the first recommended special effect with the help of the prompt information.

[0076] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0077] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.

[0078] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0079] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0080] It should be noted that for the aforementioned method embodiments, for simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0081] Figure 4 This is a structural diagram of a special effect recommendation device in an embodiment of the present disclosure. The special effect recommendation device provided in the embodiment of the present disclosure can be configured in the client or in the server. Figure 4 , the special effect recommendation device specifically includes:

[0082] An acquisition module 310 is configured to acquire, in response to the camera application being in a preview mode, a first preview image and environmental feature information corresponding to the first preview image;

[0083] A first display module 320, configured to display the first preview image on an image preview page;

[0084] A recommendation determination module 330 is configured to determine a first recommended special effect based on the environmental feature information;

[0085] The second display module 340 is configured to display identification information of the first recommended special effect in the image preview page.

[0086] Furthermore, the acquisition module 310 is configured to:

[0087] recognizing image content of the first preview image and determining first reference environment feature information corresponding to the first preview image;

[0088] Based on the first reference environmental feature information, environmental feature information corresponding to the first preview image is determined.

[0089] Furthermore, the acquisition module 310 is configured to:

[0090] Determining time information and weather information of a capture moment of the first preview image;

[0091] determining shooting purpose information of the first preview image;

[0092] determining second reference environment feature information corresponding to the first preview image based on at least one of time information and weather information at a time when the first preview image was captured, and information about a shooting purpose of the first preview image;

[0093] Based on the first reference environmental feature information and the second reference environmental feature information, environmental feature information corresponding to the first preview image is determined.

[0094] Furthermore, the acquisition module 310 is configured to:

[0095] In response to the number of the first reference environmental feature information being one, using the first reference environmental feature information and the second reference environmental feature information as environmental feature information corresponding to the first preview image;

[0096] In response to the number of the first reference environmental feature information being greater than or equal to two, the first reference environmental feature information is used as the environmental feature information corresponding to the first preview image.

[0097] Furthermore, the recommendation determination module 330 is configured to:

[0098] In response to the number of the environmental feature information being multiple, displaying the multiple environmental feature information on the image preview page;

[0099] In response to a selection operation of target environmental feature information among the plurality of environmental feature information, a first recommended special effect is determined based on the target environmental feature information.

[0100] Furthermore, the device also includes a special effect application module, which is used to:

[0101] In response to a selection operation on identification information of a target recommended special effect in the first recommended special effects, applying the target recommended special effect to the first preview image to obtain a second preview image;

[0102] In the image preview page, the second preview image is displayed.

[0103] Furthermore, the recommendation determination module is used to periodically determine a first recommended special effect based on the environmental feature information.

[0104] A second display module, configured to periodically display identification information of the first recommended special effect on the image preview page;

[0105] The second display module executes the step of displaying the identification information of the first recommended special effect on the image preview page for the N+1th time, including: after displaying the identification information of the first recommended special effect for the Nth time, determining a second recommended special effect from the multiple first recommended special effects displayed on the image preview page, the second recommended special effect being the special effect remaining after removing the target recommended special effect from the multiple first recommended special effects displayed on the image preview page; and replacing the identification information of the second recommended special effect with the identification information of the first recommended special effect obtained for the N+1th time; wherein N is a positive integer.

[0106] Furthermore, the device also includes a prompt module for displaying first prompt information corresponding to the identification information of the first recommended special effect in the image preview page; the first prompt information is used to prompt the corresponding relationship between the first recommended special effect and the environmental feature information.

[0107] The special effects recommendation device provided in the embodiment of the present disclosure can execute the steps executed by the client or server in the special effects recommendation method provided in the embodiment of the method of the present disclosure, and has the execution steps and beneficial effects, which will not be repeated here.

[0108] The following specific reference Figure 5, which shows a schematic structural diagram of an electronic device 1000 suitable for implementing the embodiments of the present disclosure. The electronic device 1000 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), wearable electronic devices, and fixed terminals such as digital TVs, desktop computers, smart home devices, and the like. Figure 5 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0109] like Figure 5 As shown, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003 to implement the special effect recommendation method of the embodiment described in the present disclosure. Various programs and information required for the operation of the electronic device 1000 are also stored in the RAM 1003. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0110] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange information. Although Figure 5 The electronic device 1000 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0111] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart, thereby implementing the special effect recommendation method as described above. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1009, or installed from the storage device 1008, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0112] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include an information signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated information signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0113] In some embodiments, the client and server can communicate using any known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital information communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any known or future developed network.

[0114] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0115] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0116] In response to the camera application being in a preview mode, acquiring a first preview image and environmental feature information corresponding to the first preview image;

[0117] Displaying the first preview image on the image preview page;

[0118] Determining a first recommended special effect based on the environmental feature information;

[0119] In the image preview page, identification information of the first recommended special effect is displayed.

[0120] Optionally, when the above one or more programs are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.

[0121] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0122] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0123] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.

[0124] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0125] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0126] According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, including:

[0127] one or more processors;

[0128] a memory for storing one or more programs;

[0129] When the one or more programs are executed by the one or more processors, the one or more processors implement any special effect recommendation method provided in the present disclosure.

[0130] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the special effect recommendation methods provided in the present disclosure.

[0131] An embodiment of the present disclosure further provides a computer program product, which includes a computer program or instructions, and when the computer program or instructions are executed by a processor, implements the special effect recommendation method described above.

[0132] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0133] The foregoing description is intended only to provide specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments described herein, but rather to be construed in the broadest manner consistent with the principles and novel features disclosed herein.

Claims

1. A special effect recommendation method, characterized in that: include: In response to the camera application being in a preview mode, acquiring a first preview image and environmental feature information corresponding to the first preview image; Displaying the first preview image on the image preview page; Determining a first recommended special effect based on the environmental feature information; In the image preview page, identification information of the first recommended special effect is displayed.

2. The method according to claim 1, characterized in that The acquiring of environmental feature information corresponding to the first preview image includes: recognizing image content of the first preview image and determining first reference environment feature information corresponding to the first preview image; Based on the first reference environmental feature information, environmental feature information corresponding to the first preview image is determined.

3. The method according to claim 2, characterized in that The determining, based on the first reference environmental feature information, environmental feature information corresponding to the first preview image includes: Determining time information and weather information of a capture moment of the first preview image; determining shooting purpose information of the first preview image; determining second reference environment feature information corresponding to the first preview image based on at least one of time information and weather information at a time when the first preview image was captured, and information about a shooting purpose of the first preview image; Based on the first reference environmental feature information and the second reference environmental feature information, environmental feature information corresponding to the first preview image is determined.

4. The method according to claim 3, characterized in that The determining, based on the first reference environment feature information and the second reference environment feature information, the environment feature information corresponding to the first preview image includes: In response to the number of the first reference environmental feature information being one, using the first reference environmental feature information and the second reference environmental feature information as environmental feature information corresponding to the first preview image; In response to the number of the first reference environmental feature information being greater than or equal to two, the first reference environmental feature information is used as the environmental feature information corresponding to the first preview image.

5. The method according to claim 1, wherein The determining a first recommended special effect based on the environmental feature information includes: In response to the number of the environmental feature information being multiple, displaying the multiple environmental feature information on the image preview page; In response to a selection operation of target environmental feature information among the plurality of environmental feature information, a first recommended special effect is determined based on the target environmental feature information.

6. The method according to claim 1, characterized in that The method further comprises: In response to a selection operation on identification information of a target recommended special effect in the first recommended special effects, applying the target recommended special effect to the first preview image to obtain a second preview image; In the image preview page, the second preview image is displayed.

7. The method according to claim 6, characterized in that The step of determining a first recommended special effect based on the environmental feature information and the step of displaying identification information of the first recommended special effect on the image preview page are performed periodically; The step of displaying the identification information of the first recommended special effect on the image preview page for the N+1th time includes: After displaying the identification information of the first recommended special effect for the Nth time, determining a second recommended special effect from the plurality of first recommended special effects displayed on the image preview page, where the second recommended special effect is the special effect remaining after removing the target recommended special effect from the plurality of first recommended special effects displayed on the image preview page; Replacing the identification information of the second recommended special effect with the identification information of the first recommended special effect obtained for the N+1th time; Wherein, N is a positive integer.

8. The method according to claim 1, characterized in that The method further comprises: In the image preview page, first prompt information corresponding to the identification information of the first recommended special effect is displayed; the first prompt information is used to prompt the corresponding relationship between the first recommended special effect and the environmental feature information.

9. A special effect recommendation device, characterized in that: include: an acquisition module, configured to acquire, in response to the camera application being in a preview mode, a first preview image and environmental feature information corresponding to the first preview image; A first display module, configured to display the first preview image on an image preview page; A recommendation determination module, configured to determine a first recommended special effect based on the environmental feature information; The second display module is used to display the identification information of the first recommended special effect in the image preview page.

10. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Scene recognition method, scene recognition device and electronic equipment

    CN110348291A

  • Video shooting method, device, equipment and medium

    CN112511750A

  • Visual element recommendation method and device, electronic equipment and storage medium

    CN116089634A