Shooting Method, Device, Electronic Device and Storage Medium
By receiving user input in the shooting preview interface of the electronic device and setting the target display style, the problem of single effect when the electronic device is shooting images is solved, achieving higher flexibility and personalized effects.
Patent Information
- Application Number
- CN202211028584.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-25
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2042-08-25
AI Technical Summary
When electronic devices take images, the fixed display style of the shooting template leads to a relatively single image effect, lack of flexibility, and cannot meet the personalized needs of users.
When displaying the shooting preview interface, a first input from the user is received to determine the first image, and the first image is displayed in a target display style according to the user's selection, thereby shooting, and a second image is obtained.
It realizes setting the target display style according to the user's choice when shooting images, improving the flexibility of electronic devices to capture images, and avoiding the single image effect caused by fixed templates.
Smart Images

Figure CN115988312B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of imaging technology, and particularly relates to a shooting method, device, electronic device, and storage medium. Background Art
[0002] Currently, when a user takes a photo through an electronic device, the user can select a shooting template provided by the electronic device to take a photo, so as to obtain an image corresponding to the shooting template.
[0003] However, the above shooting template usually has a fixed display style. As a result, the image effects obtained by the electronic device are relatively single and cannot meet the needs of users. Thus, the flexibility of the electronic device for taking pictures is relatively low. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a shooting method, device, electronic device, and storage medium, which can solve the problem of relatively low flexibility of the electronic device for taking pictures.
[0005] In a first aspect, the embodiments of this application provide a shooting method, which includes: when a shooting preview interface is displayed, receiving a first input from the user on the shooting preview interface, where the first input is used to determine a first image; in response to the first input, displaying the first image in the shooting preview interface in a target display style; receiving a shooting input from the user; in response to the shooting input, taking a photo based on the first image displayed in the target display style to obtain a second image.
[0006] In a second aspect, the embodiments of this application provide a shooting device, which includes: a receiving module, a display module, and a shooting module. The receiving module is configured to receive a first input on the shooting preview interface when the shooting preview interface is displayed, where the first input is used to determine a first image. The display module is configured to, in response to the first input received by the receiving module, display the first image in the shooting preview interface in a target display style. The receiving module is further configured to receive a shooting input from the user. The shooting module is configured to, in response to the shooting input received by the receiving module, take a photo based on the first image displayed in the target display style to obtain a second image.
[0007] In a third aspect, the embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.
[0008] In a fourth aspect, the embodiments of this application provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0009] Fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run programs or instructions to implement the method described in the first aspect.
[0010] Sixth aspect, an embodiment of the present application provides a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0011] In an embodiment of the present application, when the shooting preview interface is displayed, the electronic device can, according to the user's first input on the first image, display the first image in a target display style on the shooting preview interface. Thus, the electronic device can perform shooting based on the first image displayed in the target display style to obtain a second image. In this solution, since the electronic device can set the first image selected by the user to the target display style and obtain the second image based on the first image displayed in the target display style, that is, when the electronic device shoots an image, the electronic device can set the first image selected by the user to the target display style and obtain the second image through the first image displayed in the target display style, avoiding the problem that the shooting template is usually a fixed display style, resulting in a relatively single image effect obtained by the electronic device. In this way, the flexibility of the electronic device in shooting images is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a flowchart of a shooting method provided by an embodiment of the present application;
[0013] Figure 2 is one of the schematic diagrams of an interface of a shooting method provided by an embodiment of the present application;
[0014] Figure 3 is another schematic diagram of an interface of a shooting method provided by an embodiment of the present application;
[0015] Figure 4 is yet another schematic diagram of an interface of a shooting method provided by an embodiment of the present application;
[0016] Figure 5 is still another schematic diagram of an interface of a shooting method provided by an embodiment of the present application;
[0017] Figure 6 is another schematic diagram of an interface of a shooting method provided by an embodiment of the present application;
[0018] Figure 7 is another schematic diagram of an interface of a shooting method provided by an embodiment of the present application;
[0019] Figure 8It is the seventh example schematic diagram of the interface of a shooting method provided by an embodiment of the present application;
[0020] Figure 9 It is the eighth example schematic diagram of the interface of a shooting method provided by an embodiment of the present application;
[0021] Figure 10 It is the structural schematic diagram of a shooting device provided by an embodiment of the present application;
[0022] Figure 11 It is one of the hardware structural schematic diagrams of an electronic device provided by an embodiment of the present application;
[0023] Figure 12 It is the second of the hardware structural schematic diagrams of an electronic device provided by an embodiment of the present application. Specific Embodiments
[0024] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally represents an "or" relationship between the associated objects before and after.
[0026] Next, in conjunction with the accompanying drawings, the shooting method provided by the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.
[0027] Currently, with the development of communication technology, there are more and more shooting functions in electronic devices. For example, users can select a shooting template in the electronic device to shoot an object, so as to obtain an image with the shooting effect corresponding to the shooting template. Specifically, when the user uses the electronic device to shoot, the shooting background, foreground, border and other elements of the image captured by the electronic device can only be selected from the elements provided by the shooting template. However, these elements provided by the shooting template are often not what the user needs, or the shooting templates used by different users are the same, resulting in the same display effect of the images captured by different users, which cannot meet the needs of users with personalized and customized requirements. Thus, the flexibility of the electronic device to capture images is relatively low.
[0028] In the embodiment of the present application, when the shooting preview interface is displayed, the electronic device can, according to the first input of the user for the first image, display the first image in the target display style on the shooting preview interface, so that the electronic device can shoot based on the first image to obtain a second image. In this solution, since the electronic device can set the first image selected by the user to the target display style and obtain the second image according to the first image displayed in the target display style, that is, when the electronic device captures an image, the electronic device can set the first image selected by the user to the target display style and obtain the second image through the first image displayed in the target display style, avoiding the relatively single image effect obtained by the electronic device due to the usually fixed display style of the shooting template. Thus, the flexibility of the electronic device to capture images is improved.
[0029] The embodiment of the present application provides a shooting method. Figure 1 The flowchart of a shooting method provided by the embodiment of the present application is shown. As Figure 1 shown, the shooting method provided by the embodiment of the present application may include the following steps 201 to 204.
[0030] Step 201: When the shooting preview interface is displayed, the electronic device receives a first input for the shooting preview interface.
[0031] In the embodiment of the present application, the above first input is used to determine the first image.
[0032] In the embodiment of the present application, the user can perform a first input on the first image so that the electronic device can display the first image in the target display style on the shooting preview interface, so as to display both the first image displayed in the target display style and the shooting object captured by the electronic device to the user, and then the user can perform a shooting input to obtain an image that meets the user's needs.
[0033] Optionally, in the embodiments of the present application, the above first input may be a click input, a long - press input, a swipe input, a preset trajectory input by the user on the first image; or an input of a physical key combination (such as the power key and the volume key). Specifically, it can be determined according to actual usage requirements, and the embodiments of the present application do not make any restrictions.
[0034] Optionally, in the embodiments of the present application, the above shooting object may be at least one of the following: a person, an object, a landscape, an animal, etc.
[0035] Optionally, in the embodiments of the present application, the above first image may be an image selected by the user in a first application (such as an album application), or an image downloaded by the electronic device through a second application (such as a browser application).
[0036] Optionally, in the embodiments of the present application, when the electronic device is displaying the system desktop, the user can input on the icon of the third application icon (i.e., the camera application) displayed on the system desktop, so that the electronic device can start the application corresponding to the third application icon and display a shooting preview interface.
[0037] Step 202: The electronic device responds to the first input and displays the first image in the shooting preview interface in a target display style.
[0038] Optionally, the above target display style may include at least one of the following: a shooting foreground style, a shooting background style, and a shooting border style.
[0039] Specifically, the above step 202 can be specifically implemented through the following embodiments.
[0040] The electronic device can, according to the user's first input, set the first image as the shooting foreground of the shooting preview interface and display it in the shooting preview interface in the shooting foreground style; or, the electronic device can, according to the user's first input, set the first image as the shooting background of the shooting preview interface and display it in the shooting preview interface in the shooting background style; or, the electronic device can, according to the user's first input, set the first image as the shooting border of the shooting preview interface and display it in the shooting preview interface in the shooting border style.
[0041] It can be understood that if the electronic device sets the first image as the shooting foreground style, then the first image covers the shooting object; if the electronic device sets the first image as the shooting background style, then the first image covers the original background of the shooting object and will not have any impact on the shooting object collected by the electronic device (i.e., there is no phenomenon of blocking the shooting object); if the electronic device sets the first image as the shooting border style, then the first image covers the shooting image, but will not block the shooting object.
[0042] Optionally, in the embodiments of the present application, when the electronic device sets the first image as the shooting border style, the electronic device may display a hollow style selection control (the hollow style selection control is used to select the hollow style of the shooting border), so that the user can input to the hollow style selection control, so that the electronic device can overlay the first image according to the hollow style selected by the user.
[0043] Optionally, in the embodiments of the present application, the hollow style may be pre-stored in the electronic device or user-defined.
[0044] Specifically, the above user-defined hollow style may be that the user can input to the second control (such as a custom control) in the shooting preview interface, and then the user can perform a sliding input in the shooting preview interface to draw the hollow style.
[0045] Exemplarily, the closed area formed by the trajectory of the user's sliding input is the hollow style drawn by the user.
[0046] Optionally, the closed area formed by the above sliding input may be the closed area formed by the user's sliding input; or, the closed area formed by the user's sliding input and the edge line of the electronic device.
[0047] Exemplarily, taking the electronic device as a mobile phone as an example, as Figure 2 shown in (A) of, when the mobile phone displays the shooting preview interface 10, the user can click the border button 11, so that the mobile phone can display at least one border style. At this time, the mobile phone defaults to select the first square border style and displays the default selected square border style in the shooting preview interface 10. As Figure 2 shown in (B) of, then the user can click on other border styles (such as a circular border style) in the at least one border style, so that the mobile phone can change the border style displayed in the shooting preview interface 10 according to the user's needs.
[0048] Another exemplarily, as Figure 3 shown in (A) of, when the mobile phone displays the shooting preview interface 10, the user can click the border button 11, so that the mobile phone can display 4 border styles. At this time, the mobile phone defaults to select the first border style ( Figure 3 represented by a square border style in), and displays the default selected border style in the shooting preview interface 10. As Figure 3 shown in (B) of, then the user can click the custom control 12. As Figure 3 shown in (C) of, the mobile phone can determine the user-defined border style according to the sliding trajectory of the user on the first image ( Figure 3represented by a heart shape in the middle), and display the user-defined border style in the shooting preview interface 10.
[0049] Optionally, in the embodiments of the present application, after the user selects the hollowed-out style, the user can input the pattern corresponding to the hollowed-out style displayed in the shooting preview interface to adjust the size or display position of the pattern corresponding to the hollowed-out style in the shooting preview interface.
[0050] Optionally, in the embodiments of the present application, the above first image may be one or more. Specifically, when the first image is one image, the display style corresponding to the first image is the shooting foreground style, the shooting background style, or the shooting border style; when the first image is multiple images, each image in the multiple images corresponds to a display style.
[0051] Exemplarily, when the first image is three images, the first image among the three images may correspond to the shooting foreground style, the second image among the three images may correspond to the shooting background style, and the third image among the three images may correspond to the shooting border style.
[0052] Step 203: The electronic device receives the shooting input of the user.
[0053] In the embodiments of the present application, the electronic device may perform shooting according to the shooting input of the user to obtain a second image.
[0054] Optionally, in the embodiments of the present application, the above shooting input may be the input of the user to the shooting control; or the input of the user to the physical button (such as the volume button); or the combined input of the user to the physical buttons (such as the volume button and the power button); or the voice input of the user, etc. Specifically, it can be determined according to the actual usage requirements, and the embodiments of the present application do not make any restrictions.
[0055] Optionally, in the embodiments of the present application, the above shooting input may include any one of the following: click input, long press input, slide input, preset trajectory input; or the input of the physical button combination (such as the power button and the volume button). Specifically, it can be determined according to the actual usage requirements, and the embodiments of the present application do not make any restrictions.
[0056] Step 204: The electronic device responds to the shooting input and performs shooting based on the first image displayed in the target display style to obtain a second image.
[0057] It can be understood that the second image obtained based on the user's shooting not only includes the image collected by the user, but also includes the first image displayed in the target display style. Thus, the second image obtained by shooting is an image with the shooting effect required by the user.
[0058] Optionally, in the embodiments of the present application, step 204 may be specifically implemented by the following step 204a.
[0059] Step 204a: The electronic device performs a fusion operation on the first image and the image collected from the shooting preview interface to obtain a second image.
[0060] In the embodiments of the present application, the electronic device may synthesize the first image and the image collected from the shooting preview interface into one image according to the user's shooting input to obtain a second image.
[0061] Optionally, in the embodiments of the present application, step 204a may be specifically implemented by the following step 204a1 or step 204a2.
[0062] Step 204a1: When the target display style is the background style, the electronic device covers the first image on the background image area in the image collected from the shooting preview interface to obtain a second image.
[0063] In the embodiments of the present application, when the target display style is the background style, the electronic device may identify the shooting area (i.e., the background image area) in the shooting scene except for the shooting object, extract the background image area, perform a fusion process with the first image to obtain the shooting background of the second image, and then set the shooting object at the corresponding position of the shooting background to obtain a second image.
[0064] It can be understood that the above background image area is determined according to the shooting object. For example, the area in the second image except for the area where the shooting object is located is the background image area.
[0065] Step 204a2: When the target display style is the foreground style or the border style, the electronic device covers the first image on the image collected from the shooting preview interface to obtain a second image.
[0066] In the embodiments of the present application, when the target display style is the foreground style or the border style, the electronic device may directly cover the first image on the image collected from the shooting preview interface to obtain a second image.
[0067] It should be noted that when the target display style is the border style, since the user has set a hollowed-out area, when the first image is directly covered on the image collected from the shooting preview interface, it will not block the shooting object in the image collected from the shooting preview interface.
[0068] In the embodiments of the present application, the electronic device may adopt different synthesis methods according to different display styles of the first image in the shooting preview interface to obtain a second image. In this way, the flexibility of the electronic device to obtain shooting images is improved.
[0069] An embodiment of the present application provides a shooting method. When a shooting preview interface is displayed, an electronic device can, according to a first input of a user on a first image, display the first image in a target display style on the shooting preview interface, so that the electronic device can perform shooting based on the first image to obtain a second image. In this solution, since the electronic device can set the first image selected by the user to a target display style and obtain the second image according to the first image displayed in the target display style, that is, when the electronic device shoots an image, the electronic device can set the first image selected by the user to a target display style and obtain the second image through the first image displayed in the target display style, avoiding the problem that the shooting template is usually a fixed display style, resulting in a relatively single image effect obtained by the electronic device. Thus, the flexibility of the electronic device in shooting images is improved.
[0070] Optionally, in the embodiment of the present application, before "receiving the first input of the user on the first image" in step 201 above, the method provided by the embodiment of the present application further includes the following steps 301 and 305.
[0071] Step 301: The electronic device receives a second input of the user on the shooting preview interface.
[0072] In the embodiment of the present application, the electronic device can, according to the second input of the user in the shooting preview interface, select a target frame structure required by the user, and thus determine the splicing method of M images according to the target frame structure, and thus obtain the first image according to the splicing method of the M images.
[0073] Optionally, in the embodiment of the present application, the above shooting preview interface includes a first control, and the first control is used to instruct the electronic device to display at least one frame structure; when the electronic device displays the shooting preview interface, the user can input on the first control to enable the electronic device to enter a custom shooting template mode, and the custom shooting template mode includes at least one frame structure, so that the user can perform a second input on the at least one frame structure to determine the target frame structure required by the user.
[0074] Optionally, in the embodiment of the present application, the electronic device can display at least one frame structure in the upper bar (for example, the upper half of the shooting preview interface) or the lower bar (for example, the lower half of the shooting preview interface) of the shooting preview interface; or, the electronic device can display a first window in the shooting preview interface, and the first window includes at least one frame structure, so that the user can view the at least one frame structure and select the target frame structure required by himself from them.
[0075] Exemplarily, assume that there are at least six frame structures. The user can click on the shooting mode control so that the electronic device can display three frame structures in the chin bar in the shooting preview interface. Then, the user can slide the chin bar so that the electronic device displays the hidden three frame structures, and at the same time, the electronic device can hide the initially displayed three frame structures.
[0076] Optionally, in the embodiments of the present application, the user can input to the first window to update the display position of the first window in the shooting preview interface or update the display size of the first window in the shooting preview interface.
[0077] Optionally, in the embodiments of the present application, the electronic device can display at least one frame structure in the first window in the form of a thumbnail.
[0078] Optionally, in the embodiments of the present application, the user can customize the frame structure and add the customized frame structure to at least one frame structure, so as to facilitate the user's subsequent use and meet the user's personalized needs.
[0079] Optionally, in the embodiments of the present application, the electronic device can upload the frame structure customized by the user (hereinafter referred to as the first user) (hereinafter referred to as the first frame structure) to the server, so that other users (hereinafter referred to as the second users) can use the first frame structure.
[0080] Optionally, in the embodiments of the present application, the electronic device can upload the user information and the first frame structure to the server together, so that when the second user uses the first frame structure, the second user can communicate with the first user to achieve the effect of making friends through shooting.
[0081] Optionally, in the embodiments of the present application, the above user information may include at least one of the following: username, gender, age, and time information of the user's customized frame structure.
[0082] Step 302: The electronic device responds to the second input and displays the target frame structure in the shooting preview interface.
[0083] In the embodiments of the present application, the above target frame structure includes N frame structure areas, where N is a positive integer.
[0084] In the embodiments of the present application, the electronic device can determine the target frame structure in the shooting preview interface according to the second input of the user, and obtain the first image through the target frame structure.
[0085] Step 303: The electronic device receives the third input of the user.
[0086] In an embodiment of the present application, the above third input is an input for N frame structure areas among N frame structure areas and N images.
[0087] In an embodiment of the present application, the user can perform the third input on M frame structure areas among N frame structure areas, so that the electronic device can add M images to M frame structure areas and display them in the shooting preview interface.
[0088] Optionally, in an embodiment of the present application, each frame structure among the above N frame structure areas can correspond to a different display style, that is, the electronic device can preset the display styles corresponding to the N frame structure areas, so that after the user adds N images to N frame structure areas among the N frame structure areas, the electronic device can determine the display styles of the N images in the shooting preview interface.
[0089] Optionally, in an embodiment of the present application, when each frame structure among the N frame structure areas can correspond to a different display style, after the user adds M images to the N frame structure areas, the electronic device can display the display styles of the M images in the shooting preview interface, that is, the electronic device can display the display styles of the M images in the shooting preview interface in real time.
[0090] Optionally, the above M images can be selected by the user in the first application (photo album application); or, the above M images can be selected by the user in the second application (browser application), or a part of the above M images can be selected in the first application, and another part of the M images can be selected in the second application.
[0091] Exemplarily, as Figure 4 shown in (A) of, when the mobile phone displays the shooting preview interface 10, the user can click on the template control 13. As Figure 4 shown in (B) of, so that the mobile phone displays the frame structure selection bar 14. Four frame structures are displayed in the frame structure selection bar 14, and then the user can perform a click input on the second frame structure among the four frame structures. As Figure 4 shown in (C) of, the mobile phone can divide the shooting preview interface 10 into two image addition areas ( Figure 4 represented by 15 and 16 in), and each image addition area includes an addition control 17. As Figure 4 shown in (D) of, the user can perform a click input on the addition control 17 in the image addition area 15. As Figure 4 shown in (E) of, so that the mobile phone can jump to the first interface 18 in the photo album application, and nine pictures are displayed in the first interface 18Figure 4 (represented by Pictures 1 to 9), the user can click on Picture 1 for input. For example, Figure 4 as shown in (F) in, the mobile phone can display the selected Picture 1 by the user in the image addition area 15.
[0092] Optionally, in the embodiments of the present application, the user can input to the shooting preview interface so that the electronic device can cancel the display of the N frame structure selection bars in the shooting preview interface.
[0093] Optionally, in the embodiments of the present application, after the electronic device adds M images to M frame structure areas, the electronic device can synthesize the M images into a first image; alternatively, after the electronic device adds M images to M frame structure areas, the user can click on a third control so that the electronic device can synthesize the M images into a first image.
[0094] Step 304: The electronic device, in response to a third input, displays N images in N frame structure areas.
[0095] Optionally, in the embodiments of the present application, the electronic device can display N images in N frame structure areas, so that the user can adjust the N images, and then the electronic device can obtain a first image according to the adjusted N images.
[0096] Step 305: The electronic device obtains a first image according to the N images.
[0097] In the embodiments of the present application, the above N frame structure areas correspond to the N images one by one.
[0098] In the embodiments of the present application, after displaying N images in N frame structure areas, the electronic device can perform a synthesis process on the N images to obtain a first image.
[0099] Specifically, the electronic device can perform a splicing process on the N images to obtain a first image.
[0100] In the embodiments of the present application, the electronic device can display the selected target frame structure by the user in the shooting preview interface, so that the electronic device synthesizes the N images according to the selected target frame structure by the user to obtain a first image. In this way, the display effect of the images captured by the electronic device is improved.
[0101] Optionally, in the embodiments of the present application, after the above step 304, the shooting method provided by the embodiments of the present application further includes the following step 401 and step 402, and the above step 305 can specifically be through the following step 305a.
[0102] Step 401: The electronic device receives a fourth input from the user for a target image.
[0103] In the embodiments of the present application, the above-mentioned target image is one of the N images displayed in the N frame structure areas.
[0104] Optionally, in the embodiments of the present application, after the electronic device displays N images in the N frame structure areas, the electronic device may receive an input from the user for the N images to adjust the display positions of the N images in the N frame structures, or adjust the display sizes of the N images, or perform a cropping operation on the N images.
[0105] Specifically, taking one image as an example, the above-mentioned cropping operation on the M images means that the user can drag the one image to the edge area of the target frame structure area so that the electronic device can perform a cropping operation on the one image.
[0106] Step 402: In response to the fourth input, the electronic device performs a first editing operation on the target image to obtain an edited target image.
[0107] In the embodiments of the present application, the above-mentioned first editing operation includes any one of the following: adjusting the display parameters of the N images, adjusting the layer relationship between the N images and the video captured by the shooting preview interface, and performing a cropping operation on the N images.
[0108] Step 305a: The electronic device performs a synthesis process on the edited target image to obtain a first image.
[0109] In the embodiments of the present application, the electronic device may perform a splicing process on the edited target image to obtain a first image.
[0110] In the embodiments of the present application, the electronic device may perform an editing process on the target image among the N images to obtain a first image. In this way, the diversity and flexibility of the first image displayed by the electronic device are improved.
[0111] Optionally, in the embodiments of the present application, after the above-mentioned step 202, the shooting method provided by the embodiments of the present application further includes the following step 501, and the "shooting the first image displayed in the target display style to obtain a second image" in the above-mentioned step 203 may be specifically implemented by the following step 203b.
[0112] Step 501: The electronic device determines the target display style of the N images.
[0113] In the embodiments of the present application, the above-mentioned target display style of the N images corresponds one-to-one with the N frame structure areas.
[0114] In the embodiments of the present application, each of the N frame structure regions corresponds to a target display style. After the electronic device adds N images to the N frame structure regions, the electronic device can determine the target display styles of the N images according to the target display style corresponding to each frame structure region, and then obtain a second image through the N images displayed in the target display styles.
[0115] Optionally, in the embodiments of the present application, the target display style corresponding to each of the N frame structure regions may be preset by the electronic device or user-defined.
[0116] Step 203b: The electronic device obtains a second image according to the N images displayed in the target display styles.
[0117] In the embodiments of the present application, the target display styles corresponding to each of the N images are different.
[0118] It can be understood that the electronic device can obtain a second image according to the N images in different target display styles.
[0119] In the embodiments of the present application, the electronic device can display the N images and the target display styles corresponding to the N images in the shooting preview interface, so that the user takes a photo, enabling the electronic device to obtain a second image including different target display styles. In this way, the diversity of the second image captured by the electronic device is improved.
[0120] Optionally, in the embodiments of the present application, after the above step 202, the shooting method provided in the embodiments of the present application further includes the following steps 501 to 503, and the above step 204 can be specifically implemented by the following step 204b.
[0121] Step 501: The electronic device receives a fifth input from the user for the first image.
[0122] In the embodiments of the present application, the electronic device can display a style selection interface according to the fifth input from the user for the first image, so that the electronic device can perform an editing operation on the first image in the style selection interface, thereby obtaining the first image after the editing operation (i.e., the following third image).
[0123] Step 502: The electronic device performs a second editing operation on the first image in response to the fifth input, obtaining a third image.
[0124] In the embodiments of the present application, the above second editing operation includes at least one of the following: adjusting the display parameters of the first image, adjusting the layer relationship between the first image and the image collected by the shooting preview interface, and cropping the first image.
[0125] Optionally, in the embodiments of the present application, the above display parameters include at least one of the following: transparency, brightness, contrast, grayscale, and resolution.
[0126] Optionally, in the embodiments of the present application, the user can input to the fourth control (such as an editing control) to trigger the electronic device to perform an editing operation on the first image.
[0127] Exemplarily, as Figure 5 shown in (A) of [], when the mobile phone displays the shooting preview interface 10, the mobile phone can default the first picture to the shooting background style, set the transparency of the first picture to 0, and display the transparency adjustment control 20. As Figure 5 shown in (B) and (C) of [], the user can perform a drag input on the transparency adjustment control 20 to increase the transparency of the first image and display the first image with the adjusted transparency on the shooting preview interface 10.
[0128] Another exemplarily, as Figure 6 shown in (A) of [], when the mobile phone displays the shooting preview interface 10, the mobile phone can default the first picture to the shooting foreground style, set the transparency of the first picture to 0.5, and display the transparency adjustment control 20. As Figure 6 shown in (B) and (C) of [], the user can perform a drag input on the transparency adjustment control 20 to adjust the transparency of the first image and display the first image with the adjusted transparency on the shooting preview interface 10.
[0129] Step 503: The electronic device updates the first image displayed in the shooting preview interface to a third image displayed in a target display style.
[0130] Optionally, in the embodiments of the present application, after obtaining the third image, the electronic device can display the third image in the shooting preview interface according to the default display style; or, the user can input to the fourth control to trigger the electronic device to display the third image in the shooting preview interface in the target display style.
[0131] Optionally, in the embodiments of the present application, the user can input to the fourth control again so that the electronic device can change the display style of the third image in the shooting preview interface.
[0132] Step 204b: The electronic device takes a picture based on the third image to obtain a second image.
[0133] In the embodiments of the present application, the electronic device can synthesize the third image and the image collected by the shooting preview interface into one image to obtain the second image.
[0134] It should be noted that for the above process of synthesizing the third image and the image captured in the shooting preview interface into one image to obtain the second image, the specific implementation process can refer to step 204a1 or 204a2 above. To avoid repetition, it will not be elaborated here.
[0135] In the embodiment of the present application, the electronic device can perform an editing operation on the first image according to the user's input to obtain the third image, and then obtain the second image according to the third image, avoiding the single image effect obtained by the electronic device shooting and not meeting the user's needs, and improving the flexibility of the captured image.
[0136] Optionally, in the embodiment of the present application, step 502 can be specifically implemented through the following step 502a.
[0137] Step 502a: The electronic device responds to the fifth input and performs a cropping operation on the first image according to the input trajectory of the fifth input to obtain the third image.
[0138] In the embodiment of the present application, when the target display style is the foreground style or the background style, the above third image is the image included in the input trajectory of the fifth input; when the target display style is the border style, the third image is the image in the first image except for the image included in the input trajectory of the fifth input.
[0139] Optionally, in the embodiment of the present application, the electronic device can perform a cropping operation on the complete closed area formed by the user's input trajectory to obtain the third image; or, the electronic device can perform a cropping operation on the complete closed area formed by the user's input trajectory and the edge line of the electronic device to obtain the third image.
[0140] In the embodiment of the present application, the electronic device can perform a cropping operation on the first image according to the user's input trajectory, that is, the user can customize the area according to their own needs. In this way, the flexibility of the electronic device for editing images is improved.
[0141] Optionally, in the embodiment of the present application, the above target display style is the foreground style or the background style; step 502 can be specifically implemented through the following steps 502b to 502d.
[0142] Step 502b: The electronic device responds to the fifth input and performs a segmentation operation on the first image to obtain at least two image elements.
[0143] In the embodiment of the present application, the electronic device can process the first image through image segmentation to obtain at least two image elements in the first image.
[0144] It can be understood that the above image elements are each shooting object that makes up the first image.
[0145] Exemplarily, assume that the first image consists of a blue sky, white clouds, and grassland, then the image elements are the blue sky, white clouds, and grassland.
[0146] Optionally, in the embodiments of the present application, the electronic device may perform image segmentation processing on the first image according to the user's input to the fifth control, so as to obtain at least two image elements in the first image.
[0147] Optionally, in the embodiments of the present application, after obtaining at least two image elements in the first image, the electronic device may default the at least two image elements to the shooting foreground style and set the transparency of the at least two image elements to 0.
[0148] Optionally, in the embodiments of the present application, after obtaining at least two image elements in the first image, the electronic device may perform marking processing on the at least two image elements through a first mark.
[0149] Optionally, in the embodiments of the present application, the above first mark may include at least one of the following: color mark, line mark (such as a dotted line), and label mark.
[0150] Exemplarily, as shown in (A) of Figure 7 , when the shooting preview interface 10 is displayed, the user may input to the image segmentation control 21. As shown in (B) of Figure 7 , the mobile phone may perform image segmentation on the first image to obtain 5 image elements ( Figure 7 represented by 22-26 in ), and then use a dotted line to mark the boundaries of each of the 5 image elements, and distinguish different independent elements with different colors.
[0151] Step 502c: The electronic device receives a sixth input from the user for a target image element among at least two image elements.
[0152] In the embodiments of the present application, the electronic device may select a target image element among at least two image elements according to the user's fifth input, and then perform an editing operation on the target image element.
[0153] Step 502d: The electronic device responds to the sixth input and performs a third editing operation on the target image element to obtain a fourth image.
[0154] In the embodiments of the present application, the above third editing operation includes at least one of the following: a deletion operation on the target image element, a repositioning operation on the target image element, adjusting the display parameters of the target image element, and adjusting the layer relationship between the target image element and the image collected by the shooting preview interface.
[0155] It should be noted that the layers can distinguish the occlusion relationships of all elements in the foreground of the captured image or all elements in the background of the captured image, that is, the elements of the upper layer can occlude the elements of the lower layer, and the layer of foreground elements is always above the layer of background elements. Finally, the layer relationship of the second image is that the foreground of the captured image is above the image captured in the capture preview interface, and the image captured in the capture preview interface is above the captured background.
[0156] Optionally, in the embodiments of the present application, the above-mentioned deletion operation on the target image element can specifically be that the user can drag the target image element to the edge area of the electronic device so that the electronic device can perform a deletion operation on the target image element; or, the user can perform a long-press input on the target image element so that the electronic device displays a deletion prompt box, and thus the user can input to the deletion prompt box so that the electronic device deletes the target image element.
[0157] Exemplarily, as Figure 7 shown in (C) of, the user can drag each independent image element (such as the sun image element 22) to the image element deletion area 27. Then, the user can also move the independent image element 26 (i.e., Figure 7 the tree in ) to the right to change the display position of the independent image element 26 in the capture preview interface 10. As Figure 7 shown in (D) of, so that the mobile phone can delete the sun image element 22 and adjust the display position of the tree image element 26.
[0158] Optionally, in the implementation of the present application, when the electronic device performs a deletion operation on the target image element, it can control the target image element to be displayed on the top layer of the layer to avoid misoperation by the user.
[0159] Optionally, in the embodiments of the present application, the above-mentioned repositioning operation on the target image element can specifically be that the user can perform a drag input on the target image element so that the electronic device can change the display position of the target image element in the capture preview interface.
[0160] Optionally, in the embodiments of the present application, the above-mentioned adjustment of the display parameters of the target image element can specifically be that the user can input to the fourth control so that the electronic device can adjust the display parameters of the target image element.
[0161] Optionally, in the embodiments of the present application, the above-mentioned adjustment of the layer relationship between the target image element and the image captured in the capture preview interface can specifically be that the user can input to the sixth control so that the electronic device can adjust the layer relationship between the target image element and the image captured in the capture preview interface.
[0162] Exemplarily, as Figure 8 shown in (A) of, when the user selects the target image element 24 (such asFigure 8 After the castle in Figure 8 As shown in (B) of
[0163] Optionally, in the embodiment of the present application, after the electronic device edits the first image, the user can input to the fifth control again, so that the electronic device exits the second editing operation to obtain a third image.
[0164] Exemplarily, as Figure 9 shown in (A) of Figure 9 The user can click on the split control 21. As shown in (B) of
[0165] In the embodiment of the present application, the electronic device can obtain at least two image elements in the first image according to the user's input, and then the electronic device can edit the target image element according to the user's input to the target image element. In this way, the flexibility of the electronic device to edit images is improved.
[0166] It should be noted that for the shooting method provided in the embodiment of the present application, the execution subject can be a shooting device. In the embodiment of the present application, taking the shooting device executing the shooting method as an example, the shooting device provided in the embodiment of the present application is described.
[0167] Figure 10 shows a possible structural schematic diagram of the shooting device involved in the embodiment of the present application. As Figure 10 shown, the shooting device 70 may include: a receiving module 71, a display module 72, and a shooting module 73.
[0168] Among them, the above-mentioned receiving module 71 is used to receive the first input of the user to the shooting preview interface when the shooting preview interface is displayed, and the first input is used to determine the first image. The above-mentioned display module 72 is used to display the first image in the shooting preview interface in a target display style in response to the first input received by the receiving module 71. The receiving module 71 is further used to receive the shooting input of the user. The above-mentioned shooting module 73 is used to perform shooting based on the first image displayed in the target display style in response to the shooting input received by the receiving module to obtain a second image.
[0169] In a possible implementation, before the receiving module 71 receives the first input of the user for the first image, it is further configured to receive the second input of the user for the shooting preview interface. The display module 72 is further configured to, in response to the second input received by the receiving module 71, display a target frame structure in the shooting preview interface, where the shooting preview interface includes N frame structure areas, and N is a positive integer. The receiving module 71 is further configured to receive the third input of the user, where the third input is an input for N frame structure areas and N images among the N frame structure areas. The display module 72 is further configured to, in response to the third input received by the receiving module 71, display N images in the N frame structure areas to obtain the first image, and the N frame structure areas correspond to the N images one by one.
[0170] In a possible implementation, the shooting device provided by the embodiment of the present application further includes: an editing module and an updating module. The receiving module is further configured to receive the fourth input of the user for the target image, where the target image is one of the N images displayed in the N frame structure areas. The editing module is configured to, in response to the fourth input, perform a first editing operation on the target image to obtain an edited target image. The updating module is configured to perform a synthesis process on the edited target image to obtain the first image, where the first editing operation includes any one of the following: adjusting the display parameters of the N images, adjusting the layer relationship between the N images and the video collected by the shooting preview interface, and cropping the N images.
[0171] In a possible implementation, the first image includes N images; the shooting device provided by the embodiment of the present application further includes: a determining module. The determining module is configured to determine the target display style of the N images after the first image is displayed in the shooting preview interface in the target display style, and the target display style of the N images corresponds to the N frame structure areas one by one. The updating module is further configured to obtain the second image according to the N images displayed in the target display style.
[0172] In a possible implementation, the shooting device provided by the embodiment of the present application further includes: an editing module and an updating module. After the display module 72 displays the first image in the shooting preview interface in the target display style, the receiving module 71 is further configured to receive the fifth input of the user for the first image. The editing module is configured to, in response to the fifth input received by the receiving module 71, perform a second editing operation on the first image to obtain the third image, where the second editing operation includes at least one of the following: adjusting the display parameters of the first image, adjusting the layer relationship between the first image and the image collected by the shooting preview interface, and cropping the first image. The updating module is configured to update the first image displayed in the shooting preview interface to the third image displayed in the target display style. The shooting module 73 is specifically configured to perform shooting based on the third image to obtain the second image.
[0173] In a possible implementation, the above editing module is specifically configured to crop the first image according to the input trajectory of the fifth input to obtain a third image. Wherein, when the target display style is the foreground style or the background style, the third image is the image included in the input trajectory of the fifth input; when the target display style is the border style, the third image is the image in the first image except for the image included in the input trajectory of the fifth input.
[0174] In a possible implementation, the above target display style is the foreground style or the background style; the above editing module is specifically configured to perform a segmentation operation on the first image to obtain at least two image elements; the above receiving module 71 is further configured to receive a sixth input from the user for a target image element among the at least two image elements. The above editing module is further configured to, in response to the sixth input received by the receiving module 71, perform a third editing operation on the target image element to obtain a third image, and the third editing operation includes at least one of the following: a deletion operation on the target image element, a relocation operation on the target image element, adjustment of the display parameters of the target image element, and adjustment of the layer relationship between the target image element and the image collected by the shooting preview interface.
[0175] In a possible implementation, the above shooting module 73 is specifically configured to perform a fusion operation on the first image and the image collected by the shooting preview interface to obtain a second image.
[0176] In a possible implementation, the above shooting module 73 is specifically configured to, when the target display style is the background style, cover the first image on the background image area in the image collected by the shooting preview interface to obtain a second image; when the target display style is the foreground style or the border style, cover the first image on the image collected by the shooting preview interface to obtain a second image.
[0177] An embodiment of the present application provides a shooting device. Since the shooting device can set the first image selected by the user as the target display style and obtain a second image based on the first image displayed according to the target display style, that is, when the shooting device takes a picture, the shooting device can set the first image selected by the user as the target display style and obtain a second image through the first image displayed in the target display style, avoiding the problem that the shooting template usually has a fixed display style, resulting in a relatively single image effect obtained by the shooting device. In this way, the flexibility of the shooting device for taking pictures is improved.
[0178] The photographing device in the embodiments of the present application may be a device, or a component, an integrated circuit, or a chip in an electronic device. The device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.
[0179] The photographing device in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0180] The photographing device provided in the embodiments of the present application can implement Figures 1 to 9 each process implemented by the method embodiments. To avoid repetition, it will not be elaborated here.
[0181] Optionally, as Figure 11 shown, the embodiments of the present application further provide an electronic device 90, including a processor 91 and a memory 92. A program or instruction that can run on the processor 91 is stored on the memory 92. When the program or instruction is executed by the processor 91, it implements each step of the above-mentioned photographing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0182] It should be noted that the electronic device in the embodiments of the present application includes the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0183] Figure 12 The schematic diagram of the hardware structure of an electronic device for implementing the embodiments of the present application.
[0184] The electronic device 100 includes, but is not limited to, components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0185] Those skilled in the art can understand that the electronic device 100 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 110 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 12 The structure of the electronic device shown does not limit the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0186] Among them, the above-mentioned user input unit 107 is used to receive a first input from the user to the shooting preview interface when the shooting preview interface is displayed, and the first input is used to determine a first image. The above-mentioned display unit 106 is used to display the first image in the shooting preview interface in a target display style in response to the first input. The above-mentioned user input unit 107 is further used to receive a shooting input from the user. The above-mentioned processor 110 is used to perform shooting based on the first image displayed in the target display style in response to the shooting input, so as to obtain a second image.
[0187] An embodiment of the present application provides an electronic device. Since the electronic device can set the first image selected by the user to a target display style and obtain a second image according to the first image displayed in the target display style, that is, when the electronic device shoots an image, the electronic device can set the first image selected by the user to a target display style and obtain a second image through the first image displayed in the target display style, avoiding the relatively single image effect obtained by the electronic device due to the usually fixed display style of the shooting template. In this way, the flexibility of the electronic device for shooting images is improved.
[0188] Optionally, in an embodiment of the present application, the above-mentioned user input unit 107 is further used to receive a second input from the user to the shooting preview interface before receiving the first input from the user to the first image. The above-mentioned display unit 106 is further used to display a target frame structure in the shooting preview interface in response to the second input. The shooting preview interface includes N frame structure areas, and N is a positive integer. The above-mentioned user input unit 107 is further used to receive a third input, and the third input is an input to N frame structure areas and N images among the N frame structure areas. The above-mentioned display unit 106 is further used to display N images in the N frame structure areas in response to the third input, so as to obtain a first image, and the N frame structure areas correspond to the N images one by one.
[0189] Optionally, in the embodiments of the present application, the above user input unit 107 is further configured to, after displaying N images in N frame structure areas in response to a third input, receive a fourth input from the user for a target image, where the target image is one of the N images displayed in the N frame structure areas. The above processor 110 is further configured to perform a first editing operation on the target image in response to the fourth input to obtain an edited target image. Specifically, the processor 110 is configured to perform a synthesis process on the edited target image to obtain a first image, where the first editing operation includes any one of the following: adjusting the display parameters of the N images, adjusting the layer relationship between the N images and the video captured by the shooting preview interface, and cropping the N images.
[0190] Optionally, in the embodiments of the present application, the above first image includes N images; the above processor 110 is further configured to determine a target display style of the N images after the target display style displays the first image in the shooting preview interface, and the target display style of the N images corresponds one-to-one with the N frame structure areas. Specifically, the processor 110 is configured to obtain a second image according to the N images displayed in the target display style.
[0191] Optionally, in the embodiments of the present application, the above user input unit 107 is further configured to receive a fifth input from the user for the first image after the first image is displayed in the shooting preview interface in the target display style.
[0192] The above processor 110 is further configured to perform a first editing operation on the first image in response to the fifth input to obtain a third image, where the first editing operation includes at least one of the following: adjusting the display parameters of the first image, adjusting the layer relationship between the first image and the image captured by the shooting preview interface, and cropping the first image; and updating the first image displayed in the shooting preview interface to the third image displayed in the target display style. Specifically, the processor 110 is configured to perform shooting based on the third image to obtain a second image.
[0193] Optionally, in the embodiments of the present application, the processor 110 is specifically configured to crop the first image according to the input trajectory of the fifth input to obtain a third image; where, when the target display style is a foreground style or a background style, the third image is the image included in the input trajectory of the fourth input; when the target display style is a border style, the third image is the image in the first image except for the image included in the input trajectory of the fourth input.
[0194] Optionally, in the embodiments of the present application, the above target display style is a foreground style or a background style;
[0195] The above-mentioned processor 110 is specifically configured to perform a segmentation operation on the first image to obtain at least two image elements. The above-mentioned user input unit 107 is specifically configured to receive a sixth input from the user for a target image element among the at least two image elements. The above-mentioned processor 110 is further configured to, in response to the sixth input, perform a third editing operation on the target image element to obtain a third image, and the second editing operation includes at least one of the following: a deletion operation on the target image element, a relocation operation on the target image element, adjustment of display parameters of the target image element, and adjustment of the layer relationship between the target image element and the image collected by the shooting preview interface.
[0196] Optionally, in the embodiment of the present application, the above-mentioned processor 110 is specifically configured to perform a fusion operation on the first image and the image collected by the shooting preview interface to obtain a second image.
[0197] Optionally, in the embodiment of the present application, the above-mentioned processor 110 is specifically configured to, when the target display style is the background style, cover the first image on the background image area in the image collected by the shooting preview interface to obtain a second image;
[0198] When the target display style is the foreground style or the border style, cover the first image on the image collected by the shooting preview interface to obtain a second image.
[0199] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0200] The beneficial effects of various implementation manners in this embodiment can be specifically referred to the beneficial effects of the corresponding implementation manners in the above method embodiment. To avoid repetition, it will not be elaborated here.
[0201] It should be understood that, in the embodiment of the present application, the input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042. The graphics processor 1041 processes the image data of static pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. The other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be elaborated here.
[0202] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 109 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.
[0203] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 110 either.
[0204] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above method embodiments and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0205] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.
[0206] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above method embodiments, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0207] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0208] The embodiments of the present application provide a computer program product. The program product is stored in a storage medium and is executed by at least one processor to implement each process of the above shooting method embodiments, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0209] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without further limitation, the element defined by the statement "including one..." does not exclude the existence of other identical elements in the process, method, article, or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0210] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
[0211] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative rather than restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
Claims
1. A shooting method, characterized in that, The method includes: When a shooting preview interface is being displayed, receiving a first input to the shooting preview interface, where the first input is used to determine a first image; In response to the first input, displaying the first image in the shooting preview interface in a target display style; Receiving a shooting input from the user; In response to the shooting input, performing shooting based on the first image displayed in the target display style to obtain a second image; Wherein, the first image includes multiple images, and each of the multiple images corresponds to a display style; After displaying the first image in the shooting preview interface in the target display style, the method further includes: Receiving a fifth input from the user to the first image; In response to the fifth input, performing a second editing operation on the first image to obtain a third image, where the second editing operation includes at least one of the following: adjusting display parameters of the first image, adjusting a layer relationship between the first image and an image captured by the shooting preview interface, and performing a cropping operation on the first image; Updating the first image displayed in the shooting preview interface to the third image displayed in the edited target display style; Performing the second editing operation on the first image to obtain a third image includes: Performing a cropping operation on the first image according to an input trajectory of the fifth input to obtain the third image; Wherein, when the target display style is a foreground style or a background style, the third image is an image included in the input trajectory of the fifth input; when the target display style is a border style, the third image is an image in the first image other than the image included in the input trajectory of the fifth input.
2. The method according to claim 1, characterized in that, Before receiving the first input from the user to the first image, the method further includes: Receiving a second input to the shooting preview interface; In response to the second input, displaying a target frame structure in the shooting preview interface, where the target frame structure includes N frame structure regions, and N is a positive integer; Receiving a third input from the user, where the third input is an input to N frame structure regions and N images among the N frame structure regions; In response to the third input, displaying the N images in the N frame structure regions; Obtaining the first image according to the N images, where the N frame structure regions and the N images correspond one by one.
3. The method according to claim 2, wherein After displaying the N images in the N frame structure regions in response to the third input, the method further includes: Receiving a fourth input from the user to a target image, where the target image is one of the N images displayed in the N frame structure regions; In response to the fourth input, performing a first editing operation on the target image to obtain an edited target image; Obtaining the first image according to the N images includes: Performing a synthesis process on the edited target image to obtain the first image; Wherein, the first editing operation includes any one of the following: adjusting the display parameters of the N images, adjusting the layer relationship between the N images and the video captured by the shooting preview interface, and cropping the N images.
4. The method according to claim 1 or 3, characterized in that, The first image includes N images; after the first image is displayed in the shooting preview interface in the target display style, the method further includes: Determining the target display style of the N images, where the target display style of the N images corresponds one-to-one with N frame structure regions, and the N frame structure regions are the frame structure regions included in the target frame structure displayed in the shooting preview interface, and N is a positive integer; Shooting based on the first image displayed in the target display style to obtain a second image, including: Obtaining the second image according to the N images displayed in the target display style.
5. The method according to claim 1, characterized in that, After the first image is displayed in the shooting preview interface in the target display style, the method further includes: Shooting based on the first image displayed in the target display style to obtain a second image, including: Shooting based on the third image to obtain the second image.
6. The method according to claim 1, wherein The target display style is a foreground style or a background style; Performing a second editing operation on the first image to obtain a third image, including: Performing a segmentation operation on the first image to obtain at least two image elements; Receiving a sixth input from the user for a target image element among the at least two image elements; In response to the sixth input, performing a third editing operation on the target image element to obtain the third image, where the third editing operation includes at least one of the following: deleting the target image element, relocating the target image element, adjusting the display parameters of the target image element, and adjusting the layer relationship between the target image element and the image captured by the shooting preview interface.
7. The method according to claim 1, wherein Shooting based on the first image to obtain a second image, including: Performing a fusion operation on the first image and the image captured by the shooting preview interface to obtain the second image.
8. The method according to claim 7, wherein The performing a fusion operation on the first image and the image captured by the shooting preview interface to obtain the second image includes: In the case where the target display style is a background style, covering the first image on the background image area in the image captured by the shooting preview interface to obtain the second image; In the case where the target display style is a foreground style or a border style, covering the first image on the image captured by the shooting preview interface to obtain the second image.
9. A photographing device, characterized in that, The shooting device includes: a receiving module, a display module, and a shooting module; The receiving module is configured to receive a first input of the shooting preview interface when the shooting preview interface is displayed, where the first input is used to determine a first image; The display module is configured to display the first image in the shooting preview interface in the target display style in response to the first input received by the receiving module; The receiving module is further configured to receive a shooting input from the user; The shooting module is configured to respond to the shooting input received by the receiving module and perform shooting based on the first image displayed in the target display style to obtain a second image; Wherein, the first image includes multiple images, and each image in the multiple images corresponds to a display style; The shooting device further includes: an editing module and an updating module; The receiving module is further configured to receive a fifth input from the user on the first image after the display module displays the first image in the target display style in the shooting preview interface; The editing module is configured to respond to the fifth input received by the receiving module and perform a second editing operation on the first image to obtain a third image. The second editing operation includes at least one of the following: adjusting the display parameters of the first image, adjusting the layer relationship between the first image and the image collected by the shooting preview interface, and cropping the first image; The updating module is configured to update the first image displayed in the shooting preview interface to the third image displayed in the edited target display style; Specifically, the editing module is configured to crop the first image according to the input trajectory of the fifth input to obtain the third image; Wherein, when the target display style is a foreground style or a background style, the third image is the image included in the input trajectory of the fifth input; when the target display style is a border style, the third image is the image in the first image other than the image included in the input trajectory of the fifth input.
10. An electronic device, characterized in that, It includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 8 are implemented.
11. A readable storage medium, characterized in that, A program or instruction is stored on the readable storage medium. When the program or instruction is executed by the processor, the steps of the shooting method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Photographing method and mobile terminal
CN108174109A
Image processing method and terminal
WO2015032099A1
Sticker setting method and apparatus
WO2019237982A1