Shooting method and electronic equipment
By displaying the outline of the subject in the reference image on an electronic device and adjusting the filter style, the problem of users' difficulty in achieving the expected photo effect is solved, and the shooting interest and success rate are improved.
Patent Information
- Application Number
- CN202311063334.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-22
- Publication Date
- 2025-02-25
AI Technical Summary
It is difficult for users to achieve the expected ideal photo effect when shooting, and they need to take it repeatedly, which reduces the user's interest and success rate of shooting.
A shooting method is provided to make the photographed image closer to the reference image by displaying the outline of the photographed subject in the reference image on an electronic device and adjusting the filter style of the photographed image according to the filter style of the reference image.
It improves users' shooting interest and success rate, makes the captured images closer to the reference images, and simplifies the user's operation process.
Smart Images

Figure CN119520972A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of image processing technology, and in particular to a shooting method and electronic equipment. Background Art
[0002] With the development of electronic technology, the camera functions of electronic devices such as mobile phones or tablet computers are becoming more and more powerful, and can be used to realize functions such as taking pictures and recording videos. For example, after the user turns on the camera, the mobile phone can display the shooting pictures captured by the camera in real time in the user interface. As a result, the user can obtain images with different effects.
[0003] Usually, users will take target photos shared by others as references to take ideal photos with high similarity to the target photos. However, if users only take photos after viewing the target photos, they may not achieve the expected ideal photo effect, and users sometimes need to take photos repeatedly, which reduces users' interest in taking photos and the success rate of taking photos. Summary of the invention
[0004] The embodiment of the present application provides a shooting method and electronic device, which can display the outline of the shooting subject in the reference image selected by the user on the shooting preview screen, and after detecting the shooting operation, adjust the filter style of the shot image to be consistent with the filter style of the reference image, so that the shot image is closer to the reference image, and improve the user's shooting interest and shooting success rate.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, a shooting method is provided, which is applied to an electronic device, and the method includes: after the electronic device starts the camera shooting function, the electronic device displays a first shooting preview screen. When the user selects at least one reference image, the electronic device displays a second shooting preview screen. The second shooting preview screen includes the outline of the shooting subject in the target image, and the target image is an image in at least one reference image. After detecting the shooting operation, the electronic device generates an original shot image. And according to the image parameters of the target image, the image parameters of the original shot image are adjusted to obtain the shot image; the filter style of the shot image is consistent with the filter style of the reference image. The electronic device can display a third shooting preview screen, and the third shooting preview screen includes the shot image.
[0007] That is to say, the electronic device provided in the embodiment of the present application can display a first shooting preview screen after starting the camera shooting function. And support the user to select one or more reference images, the reference image is the image that the user wants to shoot for reference. And the outline of the shooting subject of the target image in the reference image can be displayed on the second shooting preview screen. The electronic device can also detect the user's shooting operation, generate an original shot image, and adjust the image parameters of the original shot image. Then, the electronic device can display the adjusted shot image in the third shooting preview screen, and the filter style of the shot image is consistent with the filter style of the reference image.
[0008] It can be seen that the embodiments of the present application can guide users on how to compose during shooting and how to process the captured images later, so that the captured images are closer to the reference images. Users only need to select the reference image and perform the shooting operation, and can obtain the expected image without performing a series of tedious operations. In turn, the user's shooting interest and shooting success rate are improved.
[0009] In some embodiments of the first aspect, before the user selects at least one reference image, the method also includes: the electronic device can detect a selection operation of a target function in the first shooting preview screen, and jump to an application interface corresponding to the gallery application; the target function is used to obtain a reference image.
[0010] And when the user selects at least one reference image, during the process of displaying the second shooting preview screen, when the user selects at least one reference image in the application interface, it jumps back to the second shooting preview screen.
[0011] That is, after the electronic device starts the camera shooting function, when the user selects the target function, the electronic device can directly jump to the application interface corresponding to the gallery application. The user is supported to select at least one reference image in the application interface corresponding to the gallery application and jump back to the second shooting preview screen.
[0012] It can be seen that users do not need to frequently switch between third-party applications and camera applications in the process of searching for reference images. The embodiment of the present application supports adding a target function in the native camera application, and the target function is used to obtain reference images. It can also support adding an image library corresponding to the target function in the gallery application, so that users can directly select reference images and perform subsequent shooting. It can efficiently and conveniently provide users with reference image materials, simplify user operations, and provide users with more user-friendly functions.
[0013] In some embodiments of the first aspect, the application interface corresponding to the gallery application includes an image control of the target function. When the user selects at least one reference image in the application interface, before jumping back to the second shooting preview screen, the method further includes:
[0014] When the user selects the image control of the target function, the electronic device can display the image interface corresponding to the target function. The image interface includes multiple image directories; the multiple image directories are obtained by classifying multiple images corresponding to the target function according to the image content, and the classification type includes one or more of the character type, food type or landscape type.
[0015] And when the user selects at least one reference image in the application interface, the screen jumps back to the second shooting preview screen. When the user selects at least one reference image in a plurality of image directories, the screen jumps back to the second shooting preview screen.
[0016] That is to say, the embodiment of the present application can support adding an image library corresponding to a target function in a gallery application, and the application interface corresponding to the gallery application includes an image control of the target function. The user can select the image control to enter the image interface of the target function in the gallery application. The electronic device can also support secondary classification of multiple images corresponding to the target function according to the image content, and display the image directory corresponding to each classification result.
[0017] It can be seen that the embodiments of the present application can not only support the addition of an image library corresponding to a target function in a gallery application, but also support the display of different image directories corresponding to different types. Users can select reference images in the corresponding image directory according to a certain type. For example, users can select food reference images in the image directory corresponding to the food type. For another example, users can select landscape reference images in the image directory corresponding to the landscape type. In this way, users can select the reference images they need more quickly and conveniently, simplify user operations, and provide users with more user-friendly functions. In turn, it provides users with a sense of user experience.
[0018] In some embodiments of the first aspect, the application interface corresponding to the gallery application includes an image control of the target function. When the user selects at least one reference image in the application interface, before jumping back to the second shooting preview screen, the method further includes:
[0019] When the user selects the image control of the target function, the electronic device can display the image interface corresponding to the target function. When the user searches for keywords in real time in the image interface, the electronic device can search for associated images associated with the keywords in multiple images corresponding to the target function.
[0020] Furthermore, when the user selects at least one reference image in the application interface and jumps back to the second shooting preview screen, when the user selects at least one reference image in the associated images, the electronic device can jump back to the second shooting preview screen.
[0021] That is, the embodiment of the present application can support adding an image library corresponding to a target function in a gallery application, and the application interface corresponding to the gallery application includes an image control of the target function. The user can select the image control to enter the image interface of the target function in the gallery application. The electronic device can also support real-time search for reference images based on keywords, and display the searched associated images associated with the keywords.
[0022] It can be seen that the embodiment of the present application can not only support the addition of an image library corresponding to a target function in a gallery application, but also support real-time search for keywords in the image library corresponding to the target function and display associated images associated with the keywords.
[0023] Specifically, after the user inputs a keyword, the electronic device can search for an associated image associated with the keyword in the image library corresponding to the local target function, and display the associated image. The electronic device can also obtain an associated image associated with the keyword from the server side, and display the associated image. This enables the user to select the reference image they need more quickly and conveniently by using a keyword search, simplifies user operations, and provides the user with a more user-friendly function. In turn, it provides the user with a sense of user experience.
[0024] In some embodiments of the first aspect, when the electronic device displays the second shooting preview screen, the second shooting preview screen includes the outline of the shooting subject in the target image, and the target image is an image in the at least one reference image. The electronic device can perform foreground and background segmentation on each reference image in the at least one reference image to obtain a first outline of the shooting subject in each reference image.
[0025] The electronic device may display a second shooting preview screen, the second shooting preview screen including at least one reference image. The electronic device may also determine a target image in the at least one reference image, and display a first outline of a subject in the target image in the second shooting preview screen.
[0026] That is, after the user selects at least one reference image, the electronic device can systematically traverse and analyze the at least one reference image, and automatically identify the background and foreground in the at least one reference image using an image processing algorithm, and perform foreground and background segmentation on the at least one reference image.
[0027] In this way, after performing foreground and background segmentation, the electronic device generates a first outline of the subject in at least one reference image. The electronic device can display a second shooting preview screen, and display at least one reference image in a thumbnail format in the second shooting preview screen. Then, the electronic device can determine a target image in the at least one reference image, and display the first outline of the subject in the target image in the second shooting preview screen.
[0028] It can be seen that the embodiment of the present application can guide the user to compose the picture by displaying the first outline of the subject in the target image during the shooting process, and can automatically display the outline of the subject in the reference image to complete the automatic cutout, so as to guide the user to shoot later and improve the user experience.
[0029] At the same time, the electronic device traverses at least one reference image to generate a first outline of the subject in at least one reference image. This facilitates the user to switch between multiple reference images at any time to view the corresponding first outline. This avoids the user from performing tedious operations to search for a reference image. Furthermore, the user's response speed in using other images is improved.
[0030] In some embodiments of the first aspect, when the electronic device displays the second shooting preview screen, the second shooting preview screen includes the outline of the shooting subject in the target image, and the target image is an image in the at least one reference image. The electronic device can display the second shooting preview screen, the second shooting preview screen includes at least one reference image, and determine the target image in the at least one reference image.
[0031] When the user marks the subject in the target image with an outline, the electronic device can determine a second outline of the subject in the target image and display the second outline of the subject in the target image in a second shooting preview screen.
[0032] That is, after the user selects at least one reference image, the electronic device can display the target image in the second shooting preview screen. The user can hand-draw the desired outline in the target image. In this way, when the user outlines the shooting subject in the target image, the electronic device can determine the second outline of the shooting subject in the target image and display the second outline of the shooting subject in the target image in the second shooting preview screen.
[0033] It can be seen that the embodiment of the present application adds a user-defined contour function, and the user can select the contour of the subject in the reference image by himself. On the basis of providing the user with the composition of the photo, it can add a certain fun, and improve the interactivity between the user and the electronic device and the flexibility of contour generation. In turn, the user's experience is improved.
[0034] In some embodiments of the first aspect, before the electronic device displays the second outline of the subject in the target image in the second shooting preview screen, the electronic device further includes:
[0035] The electronic device may perform foreground and background segmentation on each reference image in at least one reference image to obtain a first outline of a photographed subject in the at least one reference image.
[0036] Furthermore, in the process of displaying the second outline of the subject in the target image in the second shooting preview screen, if it is determined that the degree of overlap between the first outline and the second outline of the subject in the target image is less than or equal to a first threshold, the second outline of the subject in the target image is displayed in the second shooting preview screen.
[0037] When the electronic device displays the second shooting preview screen, the electronic device further includes: if it is determined that the overlap between the first outline and the second outline of the shooting subject in the target image is greater than a first threshold, displaying the first outline of the shooting subject in the target image in the second shooting preview screen.
[0038] That is to say, in the scenario where the user draws the outline by hand, after the user selects at least one reference image, the electronic device can also systematically traverse and analyze the at least one reference image. And use the image processing algorithm to automatically identify the background and foreground in the at least one reference image, perform foreground and background segmentation on the at least one reference image, and generate the first outline of the subject in the at least one reference image. It is convenient for the user to switch between multiple reference images at any time and view the corresponding first outline. It avoids the tedious operation of the user to search for a reference image. In addition, it improves the response speed of the user to use other images.
[0039] At the same time, in order to avoid a large difference between the outline hand-drawn by the user and the outline in the reference image, during the process of displaying the second outline in the second shooting preview screen, if the electronic device determines that the degree of overlap between the first outline and the second outline of the subject in the target image is less than or equal to the first threshold, the second outline of the subject in the target image can be displayed in the second shooting preview screen.
[0040] If the electronic device determines that the overlap between the first outline and the second outline of the subject in the target image is greater than a first threshold, the first outline of the subject in the target image is displayed in the second shooting preview screen.
[0041] It can be seen that the electronic device in the embodiment of the present application can not only support the user to hand-draw the outline, but also display the second outline drawn by the user. The electronic device can also detect the second outline drawn by the user and the second outline in the reference image. If the second outline drawn by the user is significantly different from the second outline in the reference image, the first outline of the subject in the target image is displayed. The user is guided to shoot accurately in the future, which improves the user experience.
[0042] In some embodiments of the first aspect, at least one reference image may be displayed in a preset area of the second shooting preview screen in the form of a thumbnail.
[0043] It can be seen that in the embodiment of the present application, at least one reference image can be displayed in the preset area of the second shooting preview screen in the form of a thumbnail. The user can select a thumbnail corresponding to at least one reference image in the preset area of the second shooting preview screen to view the first outline of the subject in the reference image. Thus, a more convenient and user-friendly function is provided to the user.
[0044] In some embodiments of the first aspect, the method further includes: when the user moves the outline of the subject in the target image, the electronic device may move the outline of the subject in the target image from a current position in the second shooting preview screen to a target position.
[0045] That is to say, the electronic device can support the user to drag the first outline in the second shooting preview screen or the second outline marked by the user. The user can drag the first outline or the second outline to any position in the second shooting preview screen.
[0046] It can be seen that the electronic device provided in the embodiment of the present application can also support user-defined composition on the basis of guiding the user to compose, thereby providing the user with more convenient and humanized functions and increasing the user's interest in shooting.
[0047] In some embodiments of the first aspect, the method further includes: after the electronic device detects the shooting operation, it may cancel displaying the outline of the shooting subject in the target image.
[0048] That is, each time the user takes a photo, the first outline or the second outline may be generated before taking the photo, and the first outline or the second outline may not be displayed in the second shooting preview screen after taking the photo.
[0049] It can be seen that the electronic device can also cancel the outline of the subject in the target image, so that the user can shoot other scenes without using the first outline or the second outline.
[0050] In some embodiments of the first aspect, the electronic device may determine the same image parameters among the image parameters of the target image and the image parameters of the original captured image, and determine the reference parameters among the same image parameters, during the process of adjusting the image parameters of the original captured image according to the image parameters of the target image. The electronic device may also calculate a target ratio between the reference parameters of the original captured image and the reference parameters of the target image, and adjust the image parameters other than the reference parameters among the image parameters of the original captured image according to the target ratio.
[0051] Among them, the image parameters of the target image and the image parameters of the original captured image include at least two of brightness parameters, grayscale parameters, contrast parameters, saturation parameters, background blur degree parameters, color parameters, dark corner parameters, color temperature parameters or noise parameters.
[0052] That is to say, since the shooting parameters corresponding to different times and different environments are different, the image parameters of the captured images are also different. Therefore, if all images captured by the user are adjusted to have image parameters consistent with the reference image, inconsistent image effects may occur. In this way, the electronic device can make adaptive adjustments according to the image parameters corresponding to the original captured image itself during the process of adjusting the original captured image.
[0053] It can be seen that the electronic device can use one of the same image parameters in the image parameters of the target image and the image parameters of the original captured image as the reference parameter. And subsequently, the image parameters other than the reference parameter in the image parameters of the original captured image can be adjusted based on the target ratio corresponding to the reference parameter. The corresponding data processing amount in the adjustment process is reduced, and the adjustment efficiency in the adjustment process is improved.
[0054] In some embodiments of the first aspect, the electronic device may determine the same image parameters of the image parameters of the target image and the image parameters of the original captured image during the process of adjusting the image parameters of the original captured image according to the image parameters of the target image, and adjust the same image parameters of the original captured image according to the preset ratio and the same image parameters of the target image.
[0055] Among them, the image parameters of the target image and the image parameters of the original captured image include at least two of brightness parameters, grayscale parameters, contrast parameters, saturation parameters, background blur degree parameters, color parameters, dark corner parameters, color temperature parameters or noise parameters.
[0056] It can be seen that when the electronic device adjusts the image parameters of the original captured image, it can also adjust all the same image parameters corresponding to the original captured image based on the preset ratio, so that the image effect of the original captured image is consistent with the image effect of the reference image. This simplifies the user's operation of processing the captured image, provides the user with an ideal captured image that is highly similar to the reference image, and improves the user's shooting interest and shooting success rate.
[0057] In some embodiments of the first aspect, the method also includes: when the degree of overlap between the current shooting target in the second shooting preview screen and the outline of the shooting subject in the target image is greater than or equal to a second threshold, the electronic device can output a first prompt information, and the first prompt information is used to prompt to shoot the current shooting target.
[0058] When the overlap between the current shooting target in the second shooting preview screen and the outline of the shooting subject in the target image is less than the second threshold, the electronic device can output second prompt information, and the second prompt information is used to prompt the photographer to adjust the shooting angle or adjust the posture of the photographer.
[0059] That is, when the electronic device displays an outline that matches the user's composition expectation in the second shooting preview screen, it can also detect in real time the positional relationship and overlap between the current shooting target and the outline in the second shooting preview screen.
[0060] It can be seen that if the current shooting target in the second shooting preview screen deviates from the outline, the electronic device can prompt the photographer to adjust the shooting angle of the mobile phone accordingly. If the current shooting target in the second shooting preview screen meets the outline, the electronic device can prompt the photographer to take subsequent shots. In turn, the interactivity between the user and the electronic device and the flexibility of the shooting process are improved.
[0061] In a second aspect, an electronic device is provided, the electronic device comprising: a preprocessing module, a synthesis processing module, a data storage module and a display module.
[0062] Wherein, the data storage module is configured to store at least one reference image.
[0063] The display module is configured to display a first shooting preview image after starting the camera shooting function.
[0064] The preprocessing module is configured to extract the outline of the subject in the target image when the user selects the at least one reference image, and send the outline of the subject in the target image to the display module; wherein the target image is an image in the at least one reference image.
[0065] The display module is further configured to display a second shooting preview picture, wherein the second shooting preview picture includes the outline of the shooting subject in the target image.
[0066] The pre-processing module is further configured to generate an original captured image after detecting a shooting operation, and send the original captured image to the synthesis processing module.
[0067] The synthesis processing module is configured to adjust the image parameters of the original captured image according to the image parameters of the target image to obtain a captured image; and send the captured image to the display module; wherein the filter style of the captured image is consistent with the filter style of the reference image.
[0068] The display module is further configured to display a third shooting preview screen, where the third shooting preview screen includes the shooting image.
[0069] It can be seen that the electronic device of the embodiment of the present application can guide the user on how to compose the image during shooting and how to process the captured image later, so that the captured image is closer to the reference image. The user only needs to select the reference image and perform the shooting operation, and can obtain the expected image without performing a series of tedious operations. In turn, the user's shooting interest and shooting success rate are improved.
[0070] In a third aspect, an electronic device is provided, comprising: a memory, a processor and a display screen, wherein the memory and the display screen are coupled to the processor, the display screen is used to display a shooting preview screen, and the memory is used to store computer-readable instructions. When the processor reads the computer-readable instructions from the memory, the electronic device executes the shooting method described in the first aspect above.
[0071] In a fourth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising a computer program, and when the computer program is executed on an electronic device, the electronic device executes the shooting method as described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 A schematic diagram of a shooting interface of a related technology provided by an embodiment of the present application;
[0073] Figure 2 A schematic diagram of the hardware structure of a mobile phone 100 provided in an embodiment of the present application;
[0074] Figure 3 A schematic diagram of the software structure of a mobile phone 100 provided in an embodiment of the present application;
[0075] Figure 4 A schematic diagram of a process of a photographing method provided in an embodiment of the present application;
[0076] Figure 5 A schematic diagram of an interface of a first shooting preview screen provided in an embodiment of the present application;
[0077] Figure 6 A schematic diagram of an interface corresponding to an application interface of a gallery application provided in an embodiment of the present application;
[0078] Figure 7 An interactive schematic diagram of obtaining associated images provided in an embodiment of the present application;
[0079] Figure 8 A schematic diagram of an interface corresponding to an image interface of an intelligent and simple function provided in an embodiment of the present application;
[0080] Fig. 9 A schematic diagram of an interface of a second shooting preview screen provided in an embodiment of the present application;
[0081] Fig.10 A schematic diagram of an interface of a second profile provided in an embodiment of the present application;
[0082] Fig.11 A schematic diagram of a switching mode interface provided in an embodiment of the present application;
[0083] Fig.12 A schematic diagram of a mobile profile interface provided in an embodiment of the present application;
[0084] Fig.13 A schematic diagram of an interface of first prompt information and second prompt information provided in an embodiment of the present application;
[0085] Fig.14 A schematic diagram of the structure of an interactive system provided in an embodiment of the present application;
[0086] Fig.15 A schematic diagram of an interface of a third shooting preview screen provided in an embodiment of the present application;
[0087] Fig.16 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0088] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or its similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.
[0089] In addition, the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
[0090] With the development of electronic technology, the camera functions of electronic devices such as mobile phones or tablet computers are becoming more and more powerful, and can be used to realize functions such as taking pictures and recording videos. For example, after the user turns on the camera, the mobile phone can display the shooting pictures captured by the camera in real time in the user interface. As a result, the user can obtain images with different effects.
[0091] With the development of self-media and third-party applications, some photography bloggers and video editing bloggers will share their daily lives. In this way, the exquisite and beautiful photos shared will become templates for users to imitate. In this way, users will take pictures by watching the target photos shared by others as a reference, so as to achieve ideal photos with a high degree of similarity to the target photos. However, if users only shoot through the native camera after watching the target photos, users do not have the basic photography and systematic photography knowledge, and may not achieve the expected ideal photo effect, and users sometimes need to shoot repeatedly. Reduce the user's interest in shooting and the success rate of shooting.
[0092] In addition, see Figure 1 , a shooting method is also provided in the related technology. This method can select an image shooting template according to user instructions. The image shooting template can be a default template preloaded in the photo client, or a template loaded by the user. After that, the photo client software performs contour processing on the template, and then superimposes the processed contour on the viewfinder screen, so that the user can guide the subject to align the posture according to the contour when taking pictures. It can be understood that the related technology is to draw a template for human body posture, which uses the comparison between posture similarity and threshold, and can only provide users with shooting posture templates. In this way, it can only guide the user's shooting posture, and cannot provide the user with the style and effect of the reference image, and it may still fail to achieve the expected ideal photo effect. In turn, the user's shooting success rate is reduced.
[0093] In addition, a shooting method is also provided in the related art. The method can freely define a mask area for a saved photo or a blank background through a built-in program or application software. Then, the prepared mask is referenced, and the mask area is transparent and used for framing. After pressing the shutter, the scene obtained in the transparent area is combined with the original image outside the mask to form a special effect work.
[0094] It is understandable that the relevant technology uses a method similar to partial cutout implementation. After the mask is selected, it will be spliced with the original image to form a special effect work. This custom mask cannot provide users with the function of guiding composition, nor can it provide users with the style and effect of reference images. By splicing special effect works after cutout, the effect of the work may also be unnatural. In turn, it reduces the user's interest in shooting and the success rate of shooting.
[0095] In addition, a shooting method is also provided in the related art. The method can adjust the size and position of the scene and the character in the current framing interface according to the background and the character outline set in the custom template. Then, the adjusted framing interface is compared with the custom template. If the size and position of the scene and the character in the adjusted framing interface coincide with those in the custom template, the user is prompted to press the shutter to take a photo.
[0096] It is understandable that the related technology can only provide users with customized templates and guide the user to adjust the position of the subject during the shooting process. It also cannot provide the subject with the style and effect of the reference image, and may still fail to achieve the expected ideal photo effect. In turn, the user's shooting success rate is reduced.
[0097] From the above content, it can be seen that none of the currently provided shooting methods can provide users with the style and effect corresponding to the reference image, thereby making the images shot by users fail to achieve the ideal photo effect, reducing the user's shooting interest and shooting success rate.
[0098] The embodiment of the present application provides a shooting method and an electronic device. The shooting method can be applied to an electronic device. The electronic device can display a first shooting preview screen after starting the camera shooting function. And detect the user's selection operation on at least one reference image, and display a second shooting preview screen. Among them, the second shooting preview screen includes the outline of the shooting subject in the target image. The target image is an image in at least one reference image. After detecting the shooting operation, the electronic device can generate an original shot image, and adjust the image parameters of the original shot image according to the image parameters of the target image to obtain a shot image; the filter style of the shot image is consistent with the filter style of the reference image. Finally, the electronic device can display a third shooting preview screen, and the third shooting preview screen includes the shot image.
[0099] It is understandable that the electronic device provided in the embodiment of the present application can support the user to select one or more reference images after starting the camera shooting function, and the reference image is the image that the user wants to shoot for reference. And the outline of the shooting subject of the target image in the reference image can be displayed on the shooting preview screen. The electronic device can also detect the user's shooting operation, generate an original shot image, and adjust the image parameters of the original shot image. Finally, the adjusted shot image is displayed, and the filter style of the shot image is consistent with the filter style of the reference image.
[0100] It should be noted that the filter style can determine the overall look and feel of the image, and different filter styles will bring different visual experiences. The filter style of the captured image is consistent with the filter style of the reference image, which can also be understood as the image effect of the captured image is the same as the image effect of the reference image. For example, if the filter style of the reference image is background blur, then the filter style of the captured image is also background blur. For another example, if the filter style of the reference image is warm tone, then the filter style of the captured image is also warm tone.
[0101] It can be seen that the embodiments of the present application can provide users with how to compose and process the captured images in the later stage, so that the captured images are closer to the reference images. Users only need to perform the shooting operation, and do not need to perform a series of tedious operations to obtain the expected images, which can improve the user's shooting interest and shooting success rate.
[0102] In the embodiments of the present application, the electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA) and other mobile terminals, or may be a professional camera and other equipment. The embodiments of the present application do not impose any restrictions on the specific type of the electronic device.
[0103] The operating system installed on the electronic device includes but is not limited to Or other operating systems. This application does not limit the specific type of electronic equipment and the type of operating system when an operating system is installed.
[0104] For example, taking the electronic device as a mobile phone, Figure 2 A schematic structural diagram of the mobile phone 100 is shown.
[0105] The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L and a bone conduction sensor 180M, etc.
[0106] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0107] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0108] The controller may be the nerve center and command center of the mobile phone 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0109] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0110] The wireless communication function of the mobile phone 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0111] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied on the mobile phone 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0112] In some embodiments, the antenna 1 of the mobile phone 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include Global System For Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a Global Positioning System (GPS), a Global Navigation Satellite System (GLONASS), a Beidou Navigation Satellite System (BDS), a Quasi-Zenith Satellite System (QZSS) and / or a Satellite Based Augmentation System (SBAS).
[0113] The mobile phone 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0114] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0115] The mobile phone 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
[0116] ISP is used to process the data fed back by camera 193. For example, when shooting, the shutter is opened, and light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0117] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the mobile phone 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0118] Here, the camera 193 can be set in the mobile phone 100. Of course, it can also be a part of the electronic device. In some implementations, the camera can also be set outside the electronic device and connected to the electronic device by wired or wireless means. For example, the camera and the electronic device can be connected to the electronic device via Bluetooth or a mobile hotspot. The electronic device can control the camera by sending or receiving instructions to the camera.
[0119] The mobile phone 100 may also include a camera module, which may be disposed in the camera head, or may be disposed at other locations inside the mobile phone 100. The camera module includes a lens, a focus motor, a base, a circuit board, and a photosensitive element.
[0120] The base is fixedly connected to one side of the circuit board. The focus motor is located on the side of the base away from the circuit board and is fixedly connected to the periphery of the base. The lens is installed in the middle of the focus motor. The photosensitive element is fixed to the side of the circuit board facing the lens.
[0121] The lens is used to collect the light signal reflected by the photographed target. The focus motor is used to drive the lens to move in a direction parallel to the optical axis. The optical axis refers to a line passing through the center of the lens. In some embodiments, the mobile phone 100 can control the focus motor to move the lens to a focus position, thereby completing the focusing process.
[0122] In some embodiments, the focus motor may be a voice coil motor (VCM), a shape memory alloy (SMA), a ceramic motor (PM), a stepper motor (STM), etc.
[0123] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0124] The internal memory 121 may be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area.
[0125] In some embodiments of the present application, the internal memory 121 may store a plurality of reference images that the user wants to shoot, and the outline corresponding to the subject in each reference image.
[0126] Figure 3 It is a software structure block diagram of the mobile phone 100 according to an embodiment of the present application.
[0127] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. The system is divided into four layers, from top to bottom: application layer, application framework layer, Runtime( Runtime), system libraries, and kernel layer.
[0128] The application layer can include a series of application packages.
[0129] like Figure 3 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0130] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0131] like Figure 3As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a preprocessing module, and a synthesis processing module, etc.
[0132] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0133] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0134] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0135] The phone manager is used to provide communication functions of the mobile phone 100, such as management of call status (including answering, hanging up, etc.).
[0136] The resource manager provides various resources for the application, such as localized strings, icons, images, layout files, video files, and so on.
[0137] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0138] In some embodiments of the present application, the preprocessing module is used to segment the foreground and background of the reference image selected by the user to obtain the outline of the subject in the reference image. The preprocessing module is also used to detect the user's outline marking operation on the subject in the reference image and determine the outline of the subject in the reference image.
[0139] The synthesis processing module is used to adjust the image parameters of the original captured image according to the image parameters of the reference image, wherein the original captured image is an image captured by the user according to the outline of the subject in the reference image.
[0140] Runtime includes core libraries and virtual machines. Runtime is responsible for the scheduling and management of the Android system.
[0141] The core library consists of two parts: one is the function that the Java language needs to call, and the other is The core library.
[0142] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0143] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), data storage module and display module.
[0144] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0145] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0146] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc.
[0147] A 2D graphics engine is a drawing engine for 2D drawings.
[0148] In some embodiments of the present application, the data storage module is used to store multiple reference images that users save daily by browsing social applications, browser applications, etc., and the multiple reference images support user-defined division of different types.
[0149] The display module is used to display the outline of the shooting subject in the reference image; and the display module is also used to display the shooting preview screen of the user during the shooting process and the final shot image.
[0150] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, image sensor driver and motion sensor driver.
[0151] The following is an illustrative description of the workflow of the software and hardware of the mobile phone 100 in conjunction with the shooting scenario.
[0152] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into raw input events (including touch coordinates, timestamp of the touch operation, and other information). The raw input events are stored in the kernel layer. The application framework layer obtains the raw input events from the kernel layer and identifies the controls corresponding to the input events. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application can call the interface of the application framework layer to start the camera application, and then start the camera driver by calling the kernel layer, capture each frame of the shooting picture through the camera, and display the captured shooting picture in real time in the viewfinder window of the application interface of the camera application.
[0153] Subsequently, when the touch sensor 180K detects a touch operation in which the user clicks the shutter button in the application interface of the camera application, the corresponding hardware interrupt is also sent to the kernel layer, and the kernel layer generates an original input event of the click operation. Then, the application framework layer obtains the original input event from the kernel layer and identifies that the control corresponding to the click operation is the shutter button. Then, the camera application can store the captured screen in the application interface at this time as a captured image in the internal memory 121.
[0154] The following embodiments will be combined with the accompanying drawings and continue to use electronic devices as Figure 2 Taking the mobile phone with the structure shown in the figure as an example, the camera method provided by the embodiment of the present application is described. Figure 4 , the method may include:
[0155] S401: After the mobile phone starts the camera shooting function, a first shooting preview screen is displayed.
[0156] In some embodiments of the present application, when a user uses an image shared by others as a reference for shooting, the user usually pre-selects the image. That is, the user can pre-select the desired reference image in an application installed on the mobile phone. Then, the user shoots based on the reference image. The reference image is a photo that the user wants to shoot as a reference. The photo can be a photo saved by the user from a third-party application, or a photo that the user has searched locally.
[0157] Thus, in the embodiment of the present application, before the user selects the image to be referenced, the user can enter the first application with a shooting function in advance. The first application can be a system application or a third-party application. For example, a camera application, a short video application, and an instant messaging application, etc. Then, after entering the first application with a shooting function, the user selects a reference image to facilitate subsequent reference shooting.
[0158] Specifically, the mobile phone can receive a user's start-up operation for the camera shooting function, respond to the start-up operation, start the camera shooting function, and display the first shooting preview screen. The mobile phone can also detect a selection operation of a target function in the first shooting preview screen, and jump to the application interface corresponding to the gallery application; the target function is used to obtain a reference image. And, when the user selects at least one reference image in the application interface, the mobile phone jumps back to the second shooting preview screen.
[0159] In some examples, the user's start-up operation for the camera shooting function may include a click operation in the user-triggered shooting state. For example, the user clicks the camera application icon. After that, the mobile phone enters the first shooting preview screen corresponding to the camera application, and the shooting screen captured by the camera is displayed in the viewfinder window of the first shooting preview screen.
[0160] Exemplarily, the following will take the case where a mobile phone enters a shooting preview state, the first application is a camera application, and the target function is a smart simple function as an example to specifically explain the shooting method provided in the embodiment of the present application.
[0161] In some embodiments, after the mobile phone detects a user's touch operation (such as a click operation) on the camera application icon, the camera application can be started. After starting the camera application, the mobile phone can enter the shooting mode and display the first shooting preview screen. Figure 5 In (A), after the mobile phone detects that the user clicks the camera icon 501, the camera application is started and displayed as follows Figure 5 The first shooting preview screen shown in (B) of FIG. The first shooting preview screen includes a viewfinder 502, a shooting control 503, and a first function menu 504. The viewfinder 502 is used to display the shooting screen captured by the camera, and the shooting control 503 is used to shoot the content in the viewfinder 502. The first function menu 504 may include at least one application function in the camera application. For example, photo, portrait, video and more. The user can click the control corresponding to "more" to enter the second function menu 505, which displays Figure 5 As shown in (C). The second function menu 505 may include more functions in the camera application in addition to the multiple functions in the first function menu. For example, professional, slow motion, panorama, time-lapse photography, watermark, high pixel, multi-camera, dual-view recording, and smart simple functions. The user can click on the control corresponding to the smart simple function to trigger the subsequent selection of at least one reference image that needs to be referenced. In this way, the mobile phone can detect the selection operation of the smart simple function in the first shooting preview screen, and jump to the application interface corresponding to the gallery application, which includes multiple images. The user can subsequently select at least one reference image from multiple images.
[0162] In some embodiments, see Figure 5 In (D), the first function menu 504 in the first shooting preview screen may include photos, portraits, videos, smart simple functions, and more. The user can directly click on the control corresponding to the smart simple function in the first shooting preview screen to trigger a subsequent jump to the application interface corresponding to the gallery application. The mobile phone can directly jump to the application interface corresponding to the gallery application, so that the user can select at least one reference image in the application interface later.
[0163] In some embodiments, see Figure 6 In (A), the application interface corresponding to the gallery application may be an image interface corresponding to the smart simple function, and the image interface may include one or more images. The user may select one or more reference images to be referenced in the image interface.
[0164] In some embodiments, see Figure 6 In (B), the application interface corresponding to the gallery application may include a first control corresponding to the camera, a second control corresponding to all photos, and a third control corresponding to the smart and simple function. The mobile phone can detect the trigger operation for the first control and display the image interface taken by the camera. The mobile phone can also detect the trigger operation for the second control and display the image interface corresponding to all photos. Of course, the mobile phone can also detect the trigger operation for the third control and display the image interface corresponding to the smart and simple function. In this way, the user can trigger the third control to trigger the entry into Figure 6 Then, the user can select one or more reference images in the image interface corresponding to the smart simple function.
[0165] It should be noted that the one or more images corresponding to the smart simple function may include images saved by the user using a third-party application, and may also include images taken by the user using a camera application.
[0166] In some embodiments of the present application, when a smart and simple function corresponds to multiple images, the mobile phone may classify the multiple images corresponding to the smart and simple function.
[0167] Specifically, when the user selects the image control of the target function, the mobile phone displays the image interface corresponding to the target function. The image interface includes multiple image directories; the multiple image directories are obtained by classifying multiple images corresponding to the target function according to the image content, and the classification types include one or more of the character type, food type or landscape type.
[0168] In some examples, after the user saves multiple images, the user can classify the multiple images according to the image content in the image interface corresponding to the smart simple function to obtain multiple image directories corresponding to the multiple images. For example, a food directory includes one or more food images. For another example, a travel directory includes one or more landscape images.
[0169] In some examples, after the user saves multiple images, the mobile phone can also directly classify the multiple images corresponding to the intelligent simple function according to the image content to obtain multiple image directories corresponding to the multiple images.
[0170] For example, see Figure 6 In (C), the image interface corresponding to the smart and simple function may include a search bar, a food catalog, a travel catalog, a character catalog, other catalogs, and a real-time search bar. The user may trigger an operation on the food catalog, the travel catalog, the character catalog, or other catalogs to view one or more images corresponding to the corresponding catalog.
[0171] In some embodiments of the present application, when a user performs a real-time search for a keyword in an image interface, a search is performed for an associated image associated with the keyword in a plurality of images corresponding to a target function.
[0172] That is to say, the user can input keywords in the search bar, and the mobile phone can search for related images associated with the keywords among multiple images corresponding to the local intelligent simple function, so that the user can subsequently select at least one reference image from the related images.
[0173] In addition, users can also use the real-time search function in the smart and simple function, that is, users can also enter keywords in the real-time search bar to search for one or more related images according to their preferences.
[0174] In some embodiments of the present application, when a user performs a real-time search for a keyword in the image interface, the mobile phone can also obtain associated images associated with the keyword from the server side.
[0175] That is, the user can input keywords in the real-time search bar, and the mobile phone can obtain associated images associated with the keywords from the server side, so that the user can subsequently select at least one reference image from the associated images.
[0176] For example, see Figure 7 In (A), the mobile phone can detect the user's keyword input operation and send a keyword and image acquisition request to the server. The image acquisition request is used to obtain an image set associated with the keyword. The server sends the image set associated with the keyword to the mobile phone based on the received keyword and image acquisition request.
[0177] The image set includes a plurality of associated images associated with the keyword. Then, the mobile phone can display the plurality of associated images associated with the keyword. The user can subsequently select at least one reference image from the plurality of associated images associated with the keyword.
[0178] For example, see Figure 7 In (B), users can perform real-time dynamic searches based on current landmarks or keywords. For example, search for: first floor. The mobile phone detects that the user enters "first floor" in the real-time search bar and sends a request for "first floor" and image acquisition to the server.
[0179] Then, see Figure 7 In (C), the mobile phone may display multiple associated images associated with the "first floor". The user may subsequently select at least one reference image from the multiple associated images associated with the "first floor".
[0180] It is understandable that the user can select the smart and simple function in the native camera application, and after selecting the smart and simple function, jump to the gallery application to select at least one reference image to refer to. The gallery application can be used as an application for users to store images from third-party applications on a daily basis. Users can directly select daily saved images in the gallery application. In addition, users can not only select locally saved images, but also conduct real-time searches directly in the gallery application and select reference images from the search results.
[0181] It can be seen that the embodiment of the present application can support the addition of smart and simple functions in the native camera application, and jump to the gallery application after the user selects the smart and simple function. In addition, it can also support the addition of an image library corresponding to the smart and simple function in the gallery application, so that the user can directly select a reference image. In this way, the user can subsequently directly enter the shooting process after selecting the reference image, avoiding the need to frequently switch between third-party applications and camera applications in the process of searching for reference images. At the same time, the local gallery is used as an image storage database and a real-time search function is provided to provide users with reference image materials efficiently and conveniently. It simplifies user operations and provides users with more user-friendly functions. In turn, it improves the user experience.
[0182] S402: When the user selects at least one reference image, the mobile phone displays a second shooting preview screen.
[0183] The second shooting preview picture includes the outline of the shooting subject in the target image, and the target image is an image in at least one reference image.
[0184] In some embodiments of the present application, when the user selects at least one reference image, the mobile phone displays a second shooting preview screen. That is, the mobile phone can detect the user's selection operation of at least one reference image among multiple images in the gallery application and display the second shooting preview screen. Among them, the at least one reference image can be displayed in a preset area of the second shooting preview screen in the form of a thumbnail.
[0185] In some embodiments, when the user selects at least one reference image in the application interface, the mobile phone can jump back to the second shooting preview screen. In other words, the mobile phone can support the user to select at least one reference image in the application interface corresponding to the gallery application, and jump back to the second shooting preview screen corresponding to the camera application.
[0186] In some embodiments, when the user selects at least one reference image in the image interface, the mobile phone can jump back to the second shooting preview screen. In other words, the mobile phone can support the user to select at least one reference image in the image interface corresponding to the smart simple function. And jump back to the second shooting preview screen corresponding to the camera application.
[0187] In some embodiments, when the user selects at least one reference image from the multiple image directories, the mobile phone can jump back to the second shooting preview screen. In other words, the mobile phone can support the user to select at least one reference image from the multiple image directories and jump back to the second shooting preview screen corresponding to the camera application.
[0188] In some embodiments, when the user selects at least one reference image in the associated images, the mobile phone can jump back to the second shooting preview screen. In other words, the mobile phone can also support detecting the user's selection operation on at least one reference image in the associated images and jumping back to the second shooting preview screen of the camera application.
[0189] For example, Figure 8 (A) in the figure is the image interface corresponding to the intelligent simple function. Figure 8 In (A), the user can select at least one reference image from the multiple images. For example, the user can select 6 images from the multiple images, namely image A, image B, image C, image D, image E, and image F. And, after selecting 6 images, the user can click the confirmation control in the image interface to trigger jumping back to the second shooting preview screen corresponding to the camera application.
[0190] Thus, see Figure 8In (B), after the mobile phone detects the user's click operation on the above six images and the click operation on the confirmation control, the above six images can be displayed in a preset area in the second shooting preview screen in the form of thumbnails. And a target image such as image C is determined from the above six images, and the outline of at least one shooting subject in image C is displayed in the second shooting preview screen.
[0191] In some embodiments, Figure 8 (C) in the figure is the interface corresponding to the real-time search function in the intelligent and simple function. The user can also select at least one reference image from the associated images corresponding to the search results.
[0192] For example, after the user enters the keyword "first floor", the user selects three images in the image interface, namely, first floor A, first floor B, and first floor C. And after selecting the three images, the user can click the confirmation control in the image interface to trigger the jump back to the corresponding second shooting preview screen of the camera application. Figure 8 In (D), the mobile phone can also display the above three images in a preset area in the second shooting preview screen in the form of thumbnails. And determine a target image such as the first floor C from the above three images, and display the outline of at least one shooting subject in the first floor C in the second shooting preview screen.
[0193] In some embodiments of the present application, the mobile phone can determine the target image in at least one reference image according to a preset rule, and display the outline of the subject in the target image in the second shooting preview screen.
[0194] The preset rule may include determining the image with the first image sequence in at least one reference image as the target image.
[0195] Alternatively, the preset rule may further include determining the image with the last image sequence in the at least one reference image as the target image.
[0196] For example, if the user selects 6 images from multiple images, namely image A, image B, image C, image D, image E and image F, and image A is the image with the first image order, the mobile phone determines image A as the target image. And subsequently, the outline of the subject in image A can be displayed in the second shooting preview screen.
[0197] For example, if the user selects 6 images from multiple images, namely image A, image B, image C, image D, image E and image F, and image F is the last image in the image sequence, the mobile phone determines image F as the target image. The outline of the subject in image F can be displayed in the second shooting preview screen later.
[0198] It should be noted that the embodiments of the present application do not specifically limit the implementation form of the preset rules.
[0199] In some embodiments of the present application, when the mobile phone displays the second shooting preview screen, it can detect the user's selection operation on a thumbnail corresponding to any image in at least one reference image, and determine the reference image corresponding to the thumbnail as the target image.
[0200] For example, if the user selects the thumbnail corresponding to image E from among images A, B, C, D, E, and F, the mobile phone determines image E as the target image. The outline of the subject in image E can be subsequently displayed in the second shooting preview screen.
[0201] In some embodiments of the present application, the subject in the target image may include one or more photographed objects. For example, the subject in the target image may include user A and user B. For another example, the subject in the target image may include bread, milk, and a plate.
[0202] It should be noted that the subject of the shooting involved in the embodiments of the present application may be a person, animal, landscape, object, doll, etc. that the user is interested in. The area other than the subject of the shooting in the image may be referred to as the background in the image.
[0203] It can be seen that the embodiment of the present application supports users to select multiple reference images in the gallery application and jump back to the camera application, so that subsequent users can directly shoot according to the reference images. In the case where the user selects multiple reference images, the embodiment of the present application can also determine the target image from the multiple reference images and display the outline of the subject in the target image in the shooting preview screen.
[0204] In this way, it is avoided that the user needs to search for an image in a third-party application in advance and then frequently switch between the camera application and the third-party application in the related art. In an embodiment of the present application, the user can directly jump from the camera application to the gallery application to select a reference image, and automatically jump back to the camera application after the selection is completed. At the same time, the outline of the subject in the reference image can also be seen in the viewfinder of the camera application, so as to assist the user in shooting later. More humanized functions are added to the native camera application, which simplifies the user's operation process and provides a more convenient and intelligent shooting process.
[0205] In order to provide users with personalized shooting compositions, the embodiment of the present application may display the outline of the shooting subject in the reference image in the second shooting preview screen to facilitate subsequent guidance of the user's shooting.
[0206] Specifically, the mobile phone can provide the user with two modes for generating the outline of the subject in the reference image. Exemplarily, the first mode can be an automatic generation mode, and the second mode can be a user hand-drawn mode. After the user selects the first mode, the mobile phone can automatically generate the outline of the subject in the reference image and display it in the second shooting preview screen.
[0207] Of course, after selecting the second mode, the user can also hand-draw the outline of the subject in the selected reference image, and then the mobile phone will display the outline drawn by the user in the second shooting preview screen. In this way, the user can adjust the current shooting target such as a real object or a person to the outline for shooting.
[0208] The automatic generation mode provided by the mobile phone will be described in detail below with reference to the accompanying drawings.
[0209] In some embodiments of the present application, the mobile phone can perform foreground and background segmentation on each reference image in at least one reference image to obtain a first outline of a subject in each reference image. The second shooting preview screen is displayed, and the second shooting preview screen includes at least one reference image. The mobile phone determines a target image in at least one reference image, and displays the first outline of the subject in the target image in the second shooting preview screen.
[0210] That is to say, in the automatic generation mode, after the user selects at least one reference image, the mobile phone can systematically traverse and analyze the at least one reference image. And use the image processing algorithm to automatically identify the background and foreground in the at least one reference image, and perform foreground and background segmentation on the at least one reference image. It can be understood that the foreground in the at least one reference image is the subject of the shooting. In this way, after performing the foreground and background segmentation, the mobile phone generates a first outline of the subject of the shooting in the at least one reference image. The mobile phone can display a second shooting preview screen, and display at least one reference image in a thumbnail format in the second shooting preview screen. Then, the mobile phone can determine the target image in the at least one reference image, and display the first outline of the subject of the shooting in the target image in the second shooting preview screen.
[0211] For example, the user selects 6 images, namely image A, image B, image C, image D, image E and image F. The mobile phone can pre-segment the foreground and background of image A, image B, image C, image D, image E and image F in sequence to obtain the first outline corresponding to each image. And if the target image determined among the above 6 images is image C, the first outline of the subject in image C is displayed in the second shooting preview screen.
[0212] In some embodiments, the user can switch between the selected six images at will. For example, the user can click on the thumbnails corresponding to the six images in the preset area in the second shooting preview screen to view the first outlines corresponding to the other images except image C. When the user clicks on the thumbnail corresponding to image B, the mobile phone detects the user's click operation on the thumbnail corresponding to image B, and displays the first outline of the subject in image B in the second shooting preview screen.
[0213] For further example, see Fig. 9 In (A), the user selects four images, namely food image A, food image B, food image C, and food image D. The mobile phone can pre-segment food image A, food image B, food image C, and food image D into foreground and background in sequence to obtain the first outline corresponding to each image. The mobile phone can also determine that the target image is food image D among the above four images, and display the first outline of the subject in food image D in the second shooting preview screen, such as Fig. 9 (B) in.
[0214] In this way, after the user selects a reference image that suits their preferences, the phone can automatically generate outlines of the subject and the subject's position in the reference image, and these outlines can be directly displayed in the second shooting preview screen. The user can follow the guidance of these outlines to arrange the current shooting target in the first outline, so as to shoot an image that meets the composition expectations.
[0215] At the same time, the mobile phone can also pre-traverse and cache the first contours corresponding to multiple reference images selected by the user, so that the user can switch between multiple images at any time, avoiding the tedious operation of searching for a reference image. In addition, the response speed of the user to use other images is improved, and the user's experience is improved.
[0216] It can be seen that the embodiment of the present application can guide the user to compose the picture during the shooting process, and can automatically display the outline of the shooting subject in the reference image to complete the automatic cutout, so as to guide the user to shoot later and improve the user experience.
[0217] The user hand-drawing mode provided by the mobile phone will be described in detail below with reference to the accompanying drawings.
[0218] In some embodiments of the present application, the mobile phone may also perform foreground and background segmentation on each reference image in at least one reference image in advance to obtain a first outline of the subject in each reference image. And display a second shooting preview screen, which includes at least one reference image. The mobile phone determines the target image in at least one reference image, and after detecting the user's trigger operation, directly zooms in and displays the target image. Then, when the user marks the subject in the target image with an outline, the mobile phone determines the second outline of the subject in the target image. And displays the second outline of the subject in the target image in the second shooting preview screen.
[0219] That is, after the user selects at least one reference image, the mobile phone can display the target image in the second shooting preview screen. The user can hand-draw the desired outline in the target image. In this way, the mobile phone can detect the user's outline marking operation on the shooting subject in the target image, determine the second outline of the shooting subject in the target image, and display the second outline of the shooting subject in the target image in the second shooting preview screen.
[0220] The contour marking operation may include a smearing operation of the user on the contour of the photographed subject in the target image or a clicking operation of the user on the contour of the photographed subject in the target image.
[0221] For example, see Fig.10 In (A), the user can select five images, namely person A, person B, person C, person D and person E. The mobile phone can determine that the target image is person E among the five images, and display person E in the second shooting preview screen, such as Fig.10 The user can manually mark the outline of the person in person E in the second shooting preview screen by smearing or clicking.
[0222] Taking the smearing operation as an example, after the mobile phone detects the smearing operation of the user in the second shooting preview screen, it can record the coordinates of the contour line of the area smeared by the user. Thus, the area within the contour line is determined as the position of the shooting subject, and the coordinates of the contour line are determined as the second contour corresponding to the person E. Fig.10 As shown in (C) in the figure, the photographer is guided to compose and shoot according to the second outline.
[0223] In some embodiments of the present application, see Fig.10 In (D), the above-mentioned contour marking operation may also include a circle operation of the user on the subject in the target image. Exemplarily, the user may also circle the area corresponding to the subject in the target image. Similarly, the mobile phone may detect the contour marking operation of the user on the subject in the target image and determine the second contour of the subject in the target image.
[0224] In order to avoid a large difference between the outline hand-drawn by the user and the outline in the reference image, during the process of displaying the second outline in the second shooting preview screen, if the mobile phone determines that the degree of overlap between the first outline and the second outline of the subject in the target image is less than or equal to a first threshold, the second outline of the subject in the target image can be displayed in the second shooting preview screen.
[0225] If it is determined that the degree of overlap between the first outline and the second outline of the subject in the target image is greater than a first threshold, the first outline of the subject in the target image is displayed in the second shooting preview screen.
[0226] That is to say, in the user hand-drawing mode, after the user has selected at least one reference image, the mobile phone can also systematically traverse and analyze the at least one reference image, and automatically identify the background and foreground in the at least one reference image using an image processing algorithm, perform foreground and background segmentation on the at least one reference image, and generate a first outline of the subject in the at least one reference image.
[0227] If the outline drawn by the user is slightly different from the outline in the reference image, that is, the degree of overlap between the first outline and the second outline of the subject in the target image is less than or equal to the first threshold, the mobile phone can display the outline drawn by the user, that is, the second outline of the subject in the target image.
[0228] If the outline drawn by the user differs greatly from the outline in the reference image, that is, the overlap between the first outline and the second outline of the subject in the target image is greater than the first threshold, the mobile phone can display the automatically parsed reference image outline, that is, the first outline of the subject in the target image. It should be noted that the first threshold can be 0.6, 0.7, 0.8 or 0.9, etc., and this embodiment of the application does not specifically limit this.
[0229] Specifically, the mobile phone may calculate the degree of overlap between the first outline and the second outline of the subject in the target image.
[0230] For example, when the overlap degree between the first contour and the second contour is greater than a first threshold value (e.g., 0.8), the mobile phone may determine that the first contour and the second contour overlap. When the overlap degree between the first contour and the second contour is less than or equal to the first threshold value (e.g., 0.8), the mobile phone may determine that the first contour and the second contour do not overlap.
[0231] The above-mentioned overlap may refer to the degree of overlap between the areas where the first contour and the second contour are located. For example, the ratio of the area of the area within the first contour to the area of the area within the second contour may be determined as the overlap between the first contour and the second contour. When the overlap is higher, it means that the contour drawn by the user is less different from the contour in the reference image, which facilitates the subsequent provision of a contour that meets the user's composition expectations.
[0232] It can be understood that when the mobile phone displays the above-mentioned first outline, the position of the first outline in the second shooting preview image is the same as the position of the first outline in the reference image.
[0233] In some embodiments of the present application, the position of the subject in the reference image is usually fixed and may include multiple subjects. Therefore, the mobile phone can support the user to use different identifiers to record multiple subjects in the subject.
[0234] For example, the mobile phone may mark the first photographed object with a red line, the second photographed object with a blue line, and the third photographed object with a green line.
[0235] For another example, the mobile phone may mark the first photographed object with a straight line, mark the second photographed object with a first dotted line, and mark the third photographed object with a second dotted line.
[0236] Furthermore, the mobile phone can also support the user to switch from marking the first photographed object to marking the second photographed object at any time. The embodiment of the present application does not specifically limit the specific implementation method of the user identification.
[0237] It should be noted that the image processing algorithm used by the mobile phone when extracting the above-mentioned first contour may specifically include an image segmentation algorithm, an edge detection algorithm, a convolutional neural network algorithm, etc., and the embodiments of the present application do not impose any restrictions on this.
[0238] In some embodiments of the present application, the mobile phone can detect a mode switching operation by a user, and when the current mode is the first mode, the first mode is switched to the second mode. Alternatively, the mobile phone can detect a mode switching operation by a user, and when the current mode is the second mode, the second mode is switched to the first mode.
[0239] For example, the mobile phone may default to the first mode corresponding to the smart simple function. Fig.11 In (A), the user can click the setting control 1101 in the second shooting preview screen to trigger the subsequent switching operation. Fig.11 In (B), the mobile phone detects a user's click operation on the setting control and displays a setting menu 1102, which displays a mode 1 control corresponding to the first mode and a mode 2 control corresponding to the second mode. The user can click the mode 2 control in the setting menu 1102 to switch the mode corresponding to the smart simple function from the first mode to the second mode. The mobile phone detects a user's click operation on the mode 2 control and switches the mode corresponding to the smart simple function from the first mode to the second mode.
[0240] Similarly, the mode corresponding to the current smart simple function of the mobile phone may be the second mode. The mobile phone detects a click operation of the user on the mode one control, and switches the mode corresponding to the smart simple function from the second mode to the first mode.
[0241] In some embodiments of the present application, the switching operation may also include an operation by the user on a thumbnail corresponding to the target image. For example, the user may long press the thumbnail corresponding to the target image to select the first mode or the second mode, or switch to the first mode or the second mode.
[0242] It should be noted that the embodiment of the present application does not specifically limit the switching method between the first mode and the second mode.
[0243] In some embodiments of the present application, when the user moves the outline of the subject in the target image, the mobile phone can move the outline of the subject in the target image from the current position in the second shooting preview screen to the target position.
[0244] That is to say, the mobile phone can support the user to drag the first outline in the second shooting preview screen or the second outline marked by the user. The user can drag the first outline or the second outline to any position in the second shooting preview screen.
[0245] For example, see Fig.12 In (A), the second outline is currently at the first position of the second shooting preview screen. The user can drag the second outline from the first position in the second shooting preview screen to the second position in the second shooting preview screen. Fig.12 As shown in (B) in FIG. That is, in a scene where the user wants to change the composition in the reference image, the user can move the outline of the subject to the desired position. This provides the user with more humanized functions and increases the user's interest in shooting.
[0246] It can be seen that through the solution of the above embodiment, the mobile phone can automatically provide the user with personalized photo composition according to the user's needs, so as to guide the subsequent photo taking. At the same time, the mobile phone also adds user-defined contours, and the user can select the contour of the subject in the reference image by himself. On the basis of providing the user with photo composition, it can add a certain fun, and improve the interactivity between the user and the electronic device and the flexibility of contour generation. In turn, the user's use experience is enhanced.
[0247] S403: After the mobile phone detects the shooting operation, it generates an original shot image.
[0248] In some embodiments of the present application, the mobile phone can display the outline of the subject in the reference image selected by the user in the second shooting preview screen, so that the user can adjust the posture to shoot according to the outline of the subject in the reference image. Usually, the user can click the shutter button in the second shooting preview screen to start the shooting process. In this way, the mobile phone can detect the shooting operation for the second shooting preview screen, execute the shooting process, and generate the original shooting image corresponding to the second shooting preview screen.
[0249] The shooting operation may be a photo operation or the like. The shooting operation may be manually triggered by a user, such as clicking a shooting control in the second shooting preview screen, or may be automatically performed by the mobile phone. In addition, the original shot image is an image generated by the user shooting the outline of the subject in the reference image.
[0250] In some embodiments of the present application, see Fig.13 In (A), when the current shooting target in the second shooting preview screen coincides with the outline of the shooting subject in the target image, a first prompt message is output, and the first prompt message is used to prompt the photographer to shoot. For example, the first prompt message can be implemented as a text of "Please shoot".
[0251] Specifically, when the overlap between the current shooting target in the second shooting preview screen and the outline of the shooting subject in the target image is greater than or equal to the second threshold, it indicates that the composition of the current shooting target in the second shooting preview screen has met the user's expectations. Then, the mobile phone can output the first prompt information. The first prompt information can include one or more of pop-up prompt information, flash prompt information, text prompt information, voice prompt information or video prompt information.
[0252] The mobile phone can detect in real time the position and area of the second shooting preview screen where the current shooting target is located. In addition, the mobile phone can also detect in real time the degree of overlap between the area of the second shooting preview screen where the current shooting target is located and the area where the outline of the shooting subject in the target image is located. For example, the ratio of the area of the second shooting preview screen where the current shooting target is located to the area of the area where the outline of the shooting subject in the target image is located can be determined as the degree of overlap between the current shooting target and the outline of the shooting subject in the target image. The higher the degree of overlap, the smaller the difference between the current shooting target and the outline in the shooting preview screen, which is convenient for subsequent users to trigger the shooting process.
[0253] Among them, the second threshold can be 0.9, 0.95, 0.95 or 0.95, etc. The embodiment of the present application does not limit the specific value of the second threshold.
[0254] For example, when the mobile phone detects that the outline of the current shooting target in the second shooting preview screen and the shooting subject in the target image overlap to a high degree, the mobile phone can control the flash to flash once to prompt the user to take a picture.
[0255] In some embodiments of the present application, when the overlap between the current shooting target in the second shooting preview screen and the outline of the shooting subject in the target image is less than a second threshold, the mobile phone may further output a second prompt message. The second prompt message is used to prompt the user to adjust the shooting angle of the mobile phone or the posture of the shooter.
[0256] That is to say, when the mobile phone displays an outline that matches the user's composition expectation in the second shooting preview screen, the mobile phone can also detect in real time the positional relationship and the degree of overlap between the current shooting target and the outline in the second shooting preview screen.
[0257] In this way, if the current shooting target in the second shooting preview screen deviates from the outline, the mobile phone can prompt the photographer to adjust the shooting angle of the mobile phone accordingly. Fig.13 As shown in (B) in FIG. 1 , if the current shooting target in the second shooting preview screen is biased to the left side of the outline, the mobile phone can prompt the photographer to move the mobile phone to the left or prompt the photographer to move it to the right. For example, the second prompt information can be implemented as a text of "Please move the device to the left or ask the user to move it to the right".
[0258] For example, in the process of prompting to adjust the shooting angle of the mobile phone, the second prompt information can be implemented in the form of a pop-up prompt, and the pop-up window displays "Please move the device to the left".
[0259] For another example, in the process of prompting the user to adjust his / her posture, the second prompt information may be implemented in the form of a pop-up window prompt, in which the pop-up window is displayed “Please move right, photographer”.
[0260] For example, when prompted to adjust the shooting angle of the mobile phone, Fig.13 As shown in (C), the second prompt information can also be implemented in the form of an image prompt, and a moving arrow corresponding to the device can be displayed in the second shooting preview screen to prompt the user to move the phone to the left.
[0261] For another example, in the process of prompting the user to adjust the posture, such as Fig.13 As shown in (D) in FIG. 8 , the second prompt information may be implemented in the form of an image prompt, and a moving arrow corresponding to the user may be displayed in the second shooting preview screen to prompt the user to move to the right.
[0262] The shooting method provided in the embodiment of the present application can be applied to the interactive system. Fig.14 An interactive system provided in an embodiment of the present application includes a first device 1401 (eg, a user's mobile phone) and a second device 1402 (eg, a user's smart watch).
[0263] In some embodiments, a communication connection may be established between the first device 1401 and the second device 1402. The communication connection may include a wireless communication connection. For example, the wireless communication connection may include a short-range wireless communication connection such as a Bluetooth communication connection, a near-field communication connection, and a wireless local area network communication connection.
[0264] In some embodiments, the interactive system provided by the embodiment of the present application may further include a third device 1403 (a wireless headset of the user). A communication connection is established between the third device 1403 and the first device 1401 and the second device 1402. The communication connection may be a wireless communication connection.
[0265] Among them, the wireless communication technology for establishing a wireless communication connection includes but is not limited to at least one of the following: wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT) (for example, traditional Bluetooth or bluetooth low energy (BLE) Bluetooth), near field communication (NFC), Zigbee, frequency modulation (FM), infrared (IR), etc.
[0266] In some implementations of the present application, the mobile phone can establish connections with multiple devices to achieve information interaction.
[0267] Exemplarily, the mobile phone can exchange information with a smart watch and a wireless headset. The mobile phone can send the preview result corresponding to the second shooting preview screen to the smart watch or the wireless headset, and the smart watch and / or the wireless headset can control the mobile phone to perform subsequent shooting according to the preview result. That is to say, in the process of the user shooting according to the reference image, the user can control the mobile phone to shoot by wearing a smart watch or wireless headset without holding the mobile phone. For example, when the user needs to be at a certain distance from the mobile phone to shoot, the user can perceive the preview result and control the mobile phone to perform subsequent shooting by wearing a smart watch or wireless headset. In this way, more user-friendly functions can be provided in various usage scenarios, and the shooting process can be completed conveniently and effectively.
[0268] The interactive system provided in the embodiment of the present application may also include other electronic devices in addition to the first device 1401, the second device 1402 and the third device 1403. The interactive system provided in the embodiment of the present application includes but is not limited to the interaction between three devices, and may also be an interaction between one device and multiple devices. Those skilled in the art can determine the type and quantity of electronic devices according to actual needs, and these implementations do not exceed the protection scope of the embodiments of the present application.
[0269] In one achievable manner, the mobile phone may send a first preview result to the wearable device (e.g., a smart watch) of the user. The first preview result may be specific picture content in a preset shooting picture. For example, the first preview result includes the picture content captured in real time by the mobile phone camera and the first outline of the shooting subject in the above reference image.
[0270] After receiving the first preview result, the smart watch can display the first preview result on the display screen of the smart watch. When the user moves, the picture content in the second shooting preview picture captured by the mobile phone camera changes accordingly. Correspondingly, the picture content displayed by the smart watch also changes accordingly. In this way, the user can adjust his specific position in the second shooting preview picture according to the picture content displayed by the smart watch until the user overlaps with the first outline in the second shooting preview picture.
[0271] Next, the smart watch detects a trigger operation for the first preview result, and sends a trigger instruction to the mobile phone, where the trigger instruction is used to instruct to shoot the screen content in the second shooting preview screen.
[0272] Then, the mobile phone can generate an original captured image corresponding to the second capture preview screen according to the trigger instruction.
[0273] Furthermore, during the process of real-time detection of the current shooting target in the second shooting preview screen, if the mobile phone detects that the outline coincidence degree between the current shooting target in the second shooting preview screen and the shooting subject in the target image is greater than or equal to the second threshold, the first prompt information may be sent to the smart watch, and the first prompt information is used to prompt the shooting of the current shooting target. After the smart watch receives the first prompt information sent by the mobile phone, the first prompt information may also be displayed on the display screen. In this way, the user can trigger the operation for the first preview result on the display screen after seeing the first prompt information.
[0274] Similarly, when the mobile phone detects that the overlap between the current shooting target in the second shooting preview screen and the outline of the shooting subject in the target image is less than the second threshold, the mobile phone can also send a second prompt message to the smart watch, and the second prompt message is used to prompt the user to adjust the shooting angle of the mobile phone or the posture of the shooter. After the smart watch receives the second prompt message sent by the mobile phone, it can also display the second prompt message on the display screen. In this way, the user can adjust the posture or the shooting angle of the mobile phone after seeing the second prompt message.
[0275] In one achievable manner, the wearable device is a wireless headset, and the mobile phone can send a second preview result to the wireless headset of the user. The second preview result can be the first prompt information generated by the mobile phone. For example, the first prompt information sent by the mobile phone to the wireless headset can be an audio message prompting the user to take a photo.
[0276] After receiving the first prompt information sent by the mobile phone, the wireless headset can play the first prompt information, so that the user can trigger the subsequent mobile phone to perform a shooting task according to the first prompt information. The wireless headset can detect the user's trigger operation for the first prompt information and send a trigger instruction to the mobile phone. Among them, the user's trigger operation for the first prompt information may include the user's voice reply operation for the first prompt information, such as "you can shoot". In this way, after the mobile phone receives the trigger instruction sent by the wireless headset, it generates an original shot image corresponding to the second shooting preview screen according to the trigger instruction.
[0277] Similarly, the mobile phone can also send a second prompt message to the user's wireless headset. The second prompt message is used to prompt the user to adjust the shooting angle of the mobile phone or adjust the posture of the photographer. The second prompt message is still audio information. After receiving the second prompt message sent by the mobile phone, the wireless headset can play the second prompt message, so that the user can adjust his posture or adjust the shooting angle of the mobile phone according to the second prompt message.
[0278] It can be seen that the embodiments of the present application can not only provide users with certain composition suggestions, but also provide users with prompts when they are shooting. When the user is shooting, if the current shooting target meets the outline of the reference image, the mobile phone prompts the user that the shooting can be carried out at the current moment. If the current shooting target does not meet the outline of the reference image, the mobile phone can also prompt the user that the posture needs to be adjusted or the shooting angle of the mobile phone needs to be adjusted at the current moment. In this way, more humanized functions can be provided to users, the shooting success rate can be improved, and the user's shooting interest can be enhanced.
[0279] In some embodiments of the present application, in addition to displaying the first outline or the second outline in the second shooting preview screen, the mobile phone may not display the shooting controls first. The mobile phone may detect in real time the first position relationship between the current shooting target and the first outline, or the second position relationship between the current shooting target and the second outline in the second shooting preview screen. When it is determined that the current shooting target in the second shooting preview screen coincides with the first outline, or the current shooting target coincides with the second outline, the mobile phone may display the shooting controls in the second shooting preview screen.
[0280] That is, when the composition mode of the current shooting target in the second shooting preview screen is different from the composition mode set by the user in the reference image, the mobile phone will not display the shooting control, so that the user cannot shoot when the second shooting preview screen does not match the user's expectations. Only when the composition mode of the current shooting target in the shooting screen is the same as the composition mode set by the user in the reference image, the shooting control is displayed, so that the user can take photos that meet the user's personalized needs.
[0281] In some embodiments of the present application, the mobile phone may also gradually display the shooting control in the second shooting preview screen during the process of detecting that the current shooting target in the second shooting preview screen coincides with the first outline or the second outline. For example, the mobile phone may change the display state of the shooting control from a transparent state to a fully visible state until the shooting control is fully displayed after the current shooting target in the second shooting preview screen coincides with the first outline or the second outline.
[0282] In some embodiments of the present application, the mobile phone may also display a shooting control in the second shooting preview screen while displaying the second shooting preview screen. However, when it is determined that the current shooting target in the second shooting preview screen does not coincide with the first outline, or the current shooting target does not coincide with the second outline, the shooting control cannot respond to the shooting operation input by the user. When it is determined that the current shooting target in the second shooting preview screen coincides with the first outline, or the current shooting target coincides with the second outline, if it is detected that the user has input a shooting operation to the shooting control, the mobile phone can respond to the shooting operation to shoot the current shooting target in the second shooting preview screen. This avoids the operation of erroneously performing a shooting operation because the user's composition expectations are not met.
[0283] Based on the above description, the shooting method of the embodiment of the present application can be applied to the scenario of user self-portraits, and of course can also be applied to the application scenarios of group photos and the shooting user and the photographed user.
[0284] In a group photo scene, the phone can display multiple outlines in the second shooting preview screen, detect the degree of overlap between each current shooting target and the corresponding outline in real time, and output corresponding prompt information. In this way, multiple users can shoot according to the outline corresponding to the reference image in the second shooting preview screen, and perceive when to shoot accurately, how to adjust the shooting angle, and how to adjust their own posture according to the prompt information. In turn, images that meet the personalized needs of each subject can be captured, improving shooting efficiency.
[0285] In a scenario where there are a photographing user and a photographed user, usually, the photographed user will instruct the photographing user on how to take an image, but this will waste a lot of precious time of both parties and require a series of operations.
[0286] In the implementation of this application, the user being photographed does not need to instruct the shooting user how to take the image. Since the shooting preview screen displays the outline that matches the user's composition expectations, the shooting user only needs to shoot according to the multiple outlines displayed in the shooting preview screen. The mobile phone can prompt the person being photographed in real time when to shoot accurately, how to adjust the shooting angle, and how to adjust the shooting user's posture. The shooting user can adjust the shooting screen according to the guidance of the outline and prompt information, which not only saves the precious time of both the shooting user and the user being photographed, but also achieves the expected shooting effect. In turn, the user's user experience is enhanced.
[0287] S404: The mobile phone adjusts the image parameters of the original captured image according to the image parameters of the target image to obtain a captured image; the filter style of the captured image is consistent with the filter style of the reference image.
[0288] S405: The mobile phone displays a third shooting preview screen, where the third shooting preview screen includes a shot image.
[0289] In some embodiments of the present application, in order to make the image effect of the image taken by the user consistent with the image effect of the reference image, the camera application in the mobile phone not only has a shooting function, but also has an image processing function. Specifically, the camera application can adjust the image parameters of the original captured image according to the image parameters of the target image to obtain the captured image.
[0290] In some examples, the mobile phone may compare image parameters of the target image with image parameters of the original captured image, and adjust the image parameters of the original captured image according to the comparison result to obtain the captured image.
[0291] The image parameters of the target image and the image parameters of the original captured image include at least two of a brightness parameter, a grayscale parameter, a contrast parameter, a saturation parameter, a background blur degree parameter, a color parameter, a vignetting parameter, a color temperature parameter or a noise parameter.
[0292] In some embodiments, the camera application may determine the same image parameters among the image parameters of the target image and the image parameters of the original captured image. Then, the mobile phone may determine the reference parameters among the same image parameters, and calculate the target ratio of the reference parameters of the original captured image and the reference parameters of the target image. The image parameters other than the reference parameters among the image parameters of the original captured image may be adjusted according to the target ratio.
[0293] It is understandable that the original captured image is an image generated after the user takes the photo. The target image is a reference image pre-selected by the user. The captured image is an image processed from the original captured image.
[0294] That is to say, in the embodiment of the present application, the original captured image generated by the user is not directly displayed, but the image effect of the original captured image is adjusted to be consistent with the image effect of the reference image, and then the captured image is obtained and displayed.
[0295] Furthermore, since the shooting parameters corresponding to different times and environments are different, the image parameters of the captured images are also different. Therefore, if all images captured by the user are adjusted to have the same image parameters as the reference image, inconsistent image effects may occur.
[0296] In this way, the camera application can adjust the image parameters of the original captured image to the image parameters of the target image during the process of adjusting the original captured image. At the same time, adaptive adjustment can also be performed according to the image parameters corresponding to the original captured image itself. Specifically, the camera application can compare the image parameters of the original captured image with the image parameters of the target image, and adaptively adjust the image parameters of the original captured image. And the degree of adjustment of each original captured image is different.
[0297] Exemplarily, the camera application can sequentially traverse and analyze the original captured image and the target image to obtain image parameters of the original captured image and image parameters of the target image. The image parameters of the original captured image include brightness parameters, color parameters, and background blur degree parameters, and the image parameters of the target image include brightness parameters, color parameters, dark corner parameters, and background blur degree parameters. The same image parameters in the image parameters of the target image and the image parameters of the original captured image are brightness parameters, color parameters, and background blur degree parameters.
[0298] The camera application may determine that the reference parameter is the brightness parameter among the brightness parameter, the color parameter, and the background blur degree parameter. A target ratio of the brightness parameter in the original captured image and the brightness parameter in the target image is calculated. For example, the image parameters of the target image are a brightness parameter of 20, a color parameter of 80, and a background blur degree parameter of 40. The image parameters of the original captured image are a brightness parameter of 10, a color parameter of 50, and a background blur degree parameter of 10.
[0299] Among them, the target ratio can be 0.5, that is, the comparison result is 0.5. Then, the camera application adjusts the image parameters of the original captured image except the brightness parameter according to the comparison result and the image parameters of the target image. That is, the color parameter of the original captured image needs to be 80×0.5=40, and the background blur degree parameter of the original captured image needs to be 40×0.5=20. In this way, the camera application can adjust the color parameter of the original captured image from 50 to 40, and adjust the background blur degree parameter from 10 to 20.
[0300] In the process of determining the reference parameter among multiple image parameters of the same type, the camera application may randomly determine a reference parameter among multiple image parameters of the same type. The camera application may also determine the image parameter with the smallest absolute difference as the reference parameter after comparing multiple image parameters of the same type. Of course, the reference parameter may also be preset in the camera application. Similarly, the reference parameter may also be a reference parameter set by the user. The embodiments of the present application do not limit the specific implementation method for determining the reference parameter.
[0301] It is understandable that the camera application can use one of the same image parameters among the image parameters of the target image and the image parameters of the original captured image as the reference parameter. And subsequently, the image parameters other than the reference parameter among the image parameters of the original captured image can be adjusted based on the target ratio corresponding to the reference parameter. This reduces the amount of data processing corresponding to the adjustment process and improves the adjustment efficiency during the adjustment process.
[0302] In one achievable manner, the camera application may also determine the same image parameters in the image parameters of the target image and the image parameters of the original captured image, and adjust the same image parameters of the original captured image according to the preset ratio and the same image parameters of the target image.
[0303] Exemplarily, the camera application can sequentially traverse and analyze the original captured image and the target image to obtain image parameters of the original captured image and image parameters of the target image. The same image parameters in the image parameters of the target image and the image parameters of the original captured image are brightness parameters, color parameters, and background blur degree parameters.
[0304] The camera application can adjust the brightness parameter, color parameter and background blur degree parameter of the original captured image according to the preset ratio and the brightness parameter, color parameter and background blur degree parameter of the target image. For example, the image parameters of the target image are brightness parameter 20, color parameter 80 and background blur degree parameter 40. The image parameters of the original captured image are brightness parameter 10, color parameter 50 and background blur degree parameter 20. The preset ratio is 0.25.
[0305] Then, the camera application adjusts the brightness parameter, color parameter, and background blur degree parameter of the original captured image according to 0.25 and the brightness parameter, color parameter, and background blur degree parameter of the target image. That is, the brightness parameter of the original captured image needs to be 20×0.25=5, the color parameter of the original captured image needs to be 80×0.25=20, and the background blur degree parameter of the original captured image needs to be 40×0.25=10. In this way, the camera application can adjust the brightness parameter of the original captured image from 10 to 5, the color parameter from 50 to 20, and the background blur degree parameter from 20 to 10.
[0306] It should be noted that the embodiments of the present application do not impose specific restrictions on the preset ratio, and those skilled in the art can determine the preset ratio according to actual needs. These implementation methods do not exceed the protection scope of the embodiments of the present application.
[0307] It is understandable that, when adjusting the image parameters of the original captured image, the camera application may also adjust all the same image parameters corresponding to the original captured image based on a preset ratio so that the image effect of the original captured image is consistent with that of the reference image.
[0308] It can be seen that the embodiments of the present application can not only provide users with certain composition suggestions, but also process the images taken by the users, and finally present a captured image with the same image effect as the reference image. Moreover, in the process of image processing, the image parameters of the original captured image can be directly adjusted to the image parameters of the reference image. At the same time, dynamic adjustment can also be made according to the image of the original captured image taken by the user. It avoids the situation where the original captured images with different image parameters are adjusted to the image parameters of the reference image, resulting in inconsistent image effects. It simplifies the operation of the user to process the captured image, provides the user with an ideal captured image with a high degree of similarity to the reference image, and improves the user's shooting interest and shooting success rate.
[0309] In some embodiments of the present application, after detecting a shooting operation, the mobile phone may cancel displaying the outline of the shooting subject in the target image.
[0310] In some examples, the mobile phone can cancel the display of the first outline or the second outline extracted from the reference image or the second outline marked by the user each time the mobile phone takes a photo. That is, each time the user takes a photo using the shooting method provided in this embodiment, the first outline or the second outline can be generated before shooting, and the first outline or the second outline is not displayed in the second shooting preview screen after shooting.
[0311] Alternatively, the mobile phone may store the first outline in the reference image or the second outline marked by the user locally in the mobile phone or in a server. In this way, when the mobile phone subsequently takes a photo similar to or the same as the reference image, the first outline in the reference image or the second outline marked by the user may be used again for shooting, thereby saving the user's shooting time when shooting photos of the same scene and improving shooting efficiency.
[0312] In some embodiments of the present application, see Fig.15 In (A), after generating the captured image, the mobile phone may display a third capture preview screen, which includes the captured image. In some examples, the captured image may be displayed as a thumbnail in the capture completion area 1501 in the lower left corner of the third capture preview screen. And the mobile phone may also output a third prompt message during the process of displaying the third capture preview screen. The third prompt message is used to prompt that the original captured image has been adjusted. Exemplarily, the third prompt message may be implemented in the form of a text prompt, such as "processed to the same filter style as the reference image".
[0313] In some embodiments of the present application, see Fig.15 In (B), after detecting the shooting operation, the mobile phone may also output a fourth prompt message. The fourth prompt message is used to authorize the adjustment of the original shot image. Exemplarily, the fourth prompt message may be implemented in the form of a text prompt, such as "Do you need to process it into the same filter style as the reference image?"
[0314] It should be noted that the above embodiment is only exemplified by the process of taking pictures during the shooting process. The shooting method provided in the embodiment of the present application can also be applied to the process of recording a video, which will not be described in detail here.
[0315] It is to be understood that, in order to implement the above functions, the electronic device provided in the embodiment of the present application includes hardware and / or software modules corresponding to the execution of each function. In conjunction with the algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiment, but such implementation should not be considered to exceed the scope of the present application.
[0316] This embodiment can divide the electronic device into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0317] Illustratively, an embodiment of the present application further provides an electronic device, which includes a preprocessing module, a synthesis processing module, a data storage module, and a display module.
[0318] The data storage module is configured to store at least one reference image.
[0319] The display module is configured to display a first shooting preview image after starting the camera shooting function.
[0320] The preprocessing module is configured to extract the outline of the subject in the target image when the user selects at least one reference image, and send the outline of the subject in the target image to the display module. The target image is an image in at least one reference image.
[0321] The display module is configured to display a second shooting preview picture, wherein the second shooting preview picture includes an outline of a shooting subject in a target image.
[0322] The pre-processing module is further configured to generate an original captured image after detecting a shooting operation, and send the original captured image to the synthesis processing module.
[0323] The synthesis processing module is configured to adjust the image parameters of the original captured image according to the image parameters of the target image to obtain the captured image, and send the captured image to the display module. The filter style of the captured image is consistent with the filter style of the reference image.
[0324] The display module is further configured to display a third shooting preview screen, where the third shooting preview screen includes a shot image.
[0325] In some schemes, multiple embodiments of the present application may be combined, and the combined scheme may be implemented. Optionally, some operations in the process of each method embodiment may be optionally combined, and / or the order of some operations may be optionally changed. Furthermore, the execution order between the steps of each process is only exemplary and does not constitute a limitation on the execution order between the steps, and other execution orders may be used between the steps. It is not intended to indicate that the execution order is the only order in which these operations can be performed.
[0326] A person skilled in the art will be able to think of many ways to reorder the operations described in the embodiments of the present application. In addition, it should be noted that the process details involved in a certain embodiment of the present application are also applicable to other embodiments in a similar manner, or different embodiments can be used in combination.
[0327] In addition, some steps in the method embodiment may be equivalently replaced by other possible steps. Alternatively, some steps in the method embodiment may be optional and may be deleted in certain usage scenarios. Alternatively, other possible steps may be added to the method embodiment.
[0328] Furthermore, the various method embodiments may be implemented separately or in combination.
[0329] The present application also provides an electronic device, such as the mobile phone described above. Fig.16 As shown, the electronic device may include one or more processors 1910 , a memory 1920 , and a communication interface 1930 .
[0330] The memory 1920 , the communication interface 1930 , and the processor 1910 are coupled together. For example, the memory 1920 , the communication interface 1930 , and the processor 1910 may be coupled together via a bus 1940 .
[0331] The communication interface 1930 is used for data transmission with other devices. The memory 1920 stores computer program codes. The computer program codes include computer instructions. When the computer instructions are executed by the processor 1910, the electronic device executes the posture detection method in the embodiment of the present application.
[0332] Among them, the processor 1910 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the present disclosure. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, and the like.
[0333] The bus 1940 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 1940 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.16 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0334] An embodiment of the present application also provides an electronic device, which includes: a memory, a camera and a display screen, wherein the camera includes a processor, the memory and the display screen are coupled to the processor, the display screen is used to display a first static image, and the memory is used to store computer-readable instructions. When the processor reads the computer-readable instructions from the memory, the electronic device executes the relevant method steps in the above method embodiment.
[0335] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program code is stored. When the processor executes the computer program code, the electronic device executes the relevant method steps in the method embodiment.
[0336] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the relevant method steps in the above method embodiment.
[0337] An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.
[0338] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0339] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
[0340] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0341] Among them, the electronic device, computer storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0342] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0343] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0344] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, which may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0345] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0346] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0347] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A shooting method, characterized in that: Applied to electronic equipment, the method comprises: After starting the camera shooting function, the first shooting preview screen is displayed; When the user selects at least one reference image, a second shooting preview screen is displayed; the second shooting preview screen includes the outline of the subject in the target image, and the target image is an image in the at least one reference image; After detecting the shooting operation, generating an original shooting image; According to the image parameters of the target image, the image parameters of the original captured image are adjusted to obtain a captured image; the filter style of the captured image is consistent with the filter style of the reference image; A third shooting preview screen is displayed, wherein the third shooting preview screen includes the shooting image.
2. The method according to claim 1, characterized in that Before the user selects at least one reference image, the method further includes: Detecting a selection operation of a target function in the first shooting preview screen, jumping to an application interface corresponding to the gallery application; the target function is used to obtain a reference image; When the user selects at least one reference image, displaying a second shooting preview screen includes: When the user selects at least one reference image in the application interface, the interface jumps back to the second shooting preview screen.
3. The method according to claim 2, characterized in that The application interface corresponding to the gallery application includes an image control of the target function; the user selects at least one reference image in the application interface, and before jumping back to the second shooting preview screen, the method further includes: When the user selects the image control of the target function, the image interface corresponding to the target function is displayed; The image interface includes a plurality of image directories; the plurality of image directories are obtained by classifying a plurality of images corresponding to the target function according to image contents, and the classification types include one or more of person types, food types or landscape types; The user selects at least one reference image in the application interface to jump back to the second shooting preview screen, including: When the user selects at least one reference image in the plurality of image directories, the screen jumps back to the second shooting preview screen.
4. The method according to claim 2, characterized in that: The application interface corresponding to the gallery application includes an image control of the target function; the user selects at least one reference image in the application interface, and before jumping back to the second shooting preview screen, the method further includes: When the user selects the image control of the target function, the image interface corresponding to the target function is displayed; When the user performs a real-time search for a keyword in the image interface, a related image associated with the keyword is searched among the multiple images corresponding to the target function; The user selects at least one reference image in the application interface to jump back to the second shooting preview screen, including: When the user selects at least one reference image in the associated images, the screen jumps back to the second shooting preview screen.
5. The method according to any one of claims 1 to 4, characterized in that: The displaying of a second shooting preview picture, wherein the second shooting preview picture includes an outline of a shooting subject in a target image, wherein the target image is an image in the at least one reference image, comprises: Performing foreground and background segmentation on each reference image in the at least one reference image to obtain a first outline of a photographed subject in each reference image; displaying the second shooting preview picture, wherein the second shooting preview picture includes the at least one reference image; determining the target image in the at least one reference image; A first outline of a photographing subject in the target image is displayed in the second photographing preview picture.
6. The method according to any one of claims 1 to 4, characterized in that: The displaying of a second shooting preview picture, wherein the second shooting preview picture includes an outline of a shooting subject in a target image, wherein the target image is an image in the at least one reference image, comprises: displaying the second shooting preview picture, wherein the second shooting preview picture includes the at least one reference image; determining the target image in the at least one reference image; When the user outline marks the subject in the target image, determining a second outline of the subject in the target image; A second outline of the photographing subject in the target image is displayed in the second photographing preview picture.
7. The method according to claim 6, characterized in that Before displaying the second outline of the photographing subject in the target image in the second shooting preview picture, the method further includes: Performing foreground and background segmentation on each reference image in the at least one reference image to obtain a first outline of a photographed subject in the at least one reference image; The step of displaying a second outline of the subject in the target image in the second shooting preview screen includes: If it is determined that the degree of overlap between the first outline and the second outline of the subject in the target image is less than or equal to a first threshold, displaying the second outline of the subject in the target image in the second shooting preview screen; The displaying of the second shooting preview screen also includes: If it is determined that the degree of overlap between the first outline and the second outline of the subject in the target image is greater than the first threshold, the first outline of the subject in the target image is displayed in the second shooting preview screen.
8. The method according to any one of claims 5 to 7, characterized in that: The at least one reference image is displayed in a preset area of the second shooting preview screen in a thumbnail manner.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: When the user moves the outline of the photographing subject in the target image, the outline of the photographing subject in the target image is moved from a current position in the second photographing preview picture to a target position.
10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: After the photographing operation is detected, the outline of the photographing subject in the target image is cancelled.
11. The method according to any one of claims 1 to 10, characterized in that: The step of adjusting the image parameters of the original captured image according to the image parameters of the target image includes: Determine the same image parameters among the image parameters of the target image and the image parameters of the original captured image; Determining a reference parameter among the same type of image parameters; Calculating a target ratio of the reference parameter of the original captured image to the reference parameter of the target image; According to the target ratio, image parameters of the original captured image other than the reference parameters are adjusted.
12. The method according to any one of claims 1 to 10, characterized in that: The step of adjusting the image parameters of the original captured image according to the image parameters of the target image includes: Determine the same image parameters among the image parameters of the target image and the image parameters of the original captured image; The same image parameters of the original captured image are adjusted according to the preset ratio and the same image parameters of the target image.
13. The method according to any one of claims 1 to 12, characterized in that: The image parameters of the target image and the image parameters of the original captured image include at least two of a brightness parameter, a grayscale parameter, a contrast parameter, a saturation parameter, a background blur degree parameter, a color parameter, a vignetting parameter, a color temperature parameter or a noise parameter.
14. The method according to any one of claims 1 to 13, characterized in that: The method further comprises: When the overlap degree between the current shooting target in the second shooting preview screen and the outline of the shooting subject in the target image is greater than or equal to a second threshold, outputting first prompt information, wherein the first prompt information is used to prompt shooting of the current shooting target; When the overlap between the current shooting target in the second shooting preview screen and the outline of the shooting subject in the target image is less than the second threshold, a second prompt information is output, and the second prompt information is used to prompt the photographer to adjust the shooting angle or adjust the posture of the photographer.
15. An electronic device, characterized in that: The electronic device comprises: a preprocessing module, a synthesis processing module, a data storage module and a display module; The data storage module is configured to store at least one reference image; The display module is configured to display a first shooting preview picture after starting the camera shooting function; The preprocessing module is configured to extract the outline of the subject in the target image when the user selects the at least one reference image, and send the outline of the subject in the target image to the display module; wherein the target image is an image in the at least one reference image; The display module is further configured to display a second shooting preview picture, wherein the second shooting preview picture includes an outline of the shooting subject in the target image; The pre-processing module is further configured to generate an original captured image after detecting a shooting operation, and send the original captured image to the synthesis processing module; The synthesis processing module is configured to adjust the image parameters of the original captured image according to the image parameters of the target image to obtain a captured image; and send the captured image to the display module; wherein the filter style of the captured image is consistent with the filter style of the reference image; The display module is further configured to display a third shooting preview screen, where the third shooting preview screen includes the shooting image.
16. An electronic device, characterized in that: The electronic device includes: a memory, a processor and a display screen, wherein the memory and the display screen are coupled to the processor, the display screen is used to display a shooting preview screen, and the memory is used to store computer-readable instructions. When the processor reads the computer-readable instructions from the memory, the electronic device executes the shooting method as described in any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a computer program, and when the computer program is executed on an electronic device, the electronic device executes the photographing method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Shooting method and mobile terminal
CN108540724A
Multi-style photographing method and electronic terminal equipment
CN110933310A
Shooting prompt processing method and device based on image analysis, equipment and medium
CN113038000A
Image content removal method and related device
CN113747048A
Shooting method, electronic equipment and readable storage medium
CN114422682A
Cited By
Capturing assistance method and electronic device
WO2026179795A1