Image capturing method and apparatus

By dividing the shooting area into two display areas and performing cutout and synthesis processing, the problem of cumbersome equipment operation in multi-person co-shooting is solved, and a highly consistent co-shooting effect is achieved.

CN119697482BActive Publication Date: 2025-10-10VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411917797.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-24
Publication Date
2025-10-10
Estimated Expiration
2044-12-24

AI Technical Summary

Technical Problem

In group photo shooting scenarios, the front camera of the electronic device cannot capture full-body images with a wide viewing angle, while the rear camera requires the help of other people or auxiliary equipment to complete the cumbersome group photo operation.

Method used

The shooting area is divided into a first display area and a second display area, and the human object and the background are separated by cutout processing. The dynamic preview screen is shared by the two areas for shooting, and the combined image is formed by synthesis processing.

Benefits of technology

It enables highly coordinated multi-person group shots without the help of others, with a unified and coherent background and easy operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697482B_ABST
    Figure CN119697482B_ABST
Patent Text Reader

Abstract

The application discloses an image shooting method and device, and belongs to the technical field of image processing. The method comprises the following steps: receiving a first input of a shooting area, wherein the shooting area comprises a first display area and a second display area; in response to the first input, determining a first image of the first display area in the shooting area, and performing cutout processing on a first character object in the first image; displaying a first shooting preview picture obtained based on a current environment in the shooting area, and displaying the first character object obtained through the cutout processing in the first shooting preview picture of the first display area; shooting based on the first shooting preview picture displayed by the first display area to obtain a second image of the first character object, and shooting based on the first shooting preview picture displayed by the second display area to obtain a third image of a second character object; and performing synthesis processing on the second image and the third image to obtain a joint image of the first character object and the second character object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing technology, and specifically relates to an image shooting method and device. Background Art

[0002] Nowadays, group photos taken at various scenic spots and on trips together are a common and frequently used photography scenario. However, electronic devices present many inconveniences in group photography. For example, while the front-facing cameras of electronic devices can capture group selfies, they are limited by the lens distance and cannot capture full-body photos with a wide viewing angle. The rear-facing cameras of electronic devices can capture group photos with a wide viewing angle, but often require the help of passersby or the use of auxiliary equipment, which is cumbersome. Summary of the Invention

[0003] The purpose of the embodiments of the present application is to provide an image shooting method and device that can solve the problem of needing the help of others to shoot multi-person group images with a wide viewing angle range.

[0004] In a first aspect, an embodiment of the present application provides an image capturing method, comprising:

[0005] receiving a first input on a shooting area, wherein the shooting area includes a first display area and a second display area;

[0006] In response to the first input, determining a first image of the first display area in the shooting area, and performing a cutout process on a first person object in the first image;

[0007] Displaying a first shooting preview image obtained based on the current environment in the shooting area, and displaying the first person object obtained by the cutout process in the first shooting preview image in the first display area;

[0008] Shooting based on the first shooting preview screen displayed in the first display area to obtain a second image of the first person object, and shooting based on the first shooting preview screen displayed in the second display area to obtain a third image of the second person object;

[0009] The second image displayed in the first display area is synthesized with the third image displayed in the second display area to obtain a combined image of the first person object and the second person object.

[0010] In a second aspect, an embodiment of the present application provides an image capturing device, including:

[0011] a receiving module, configured to receive a first input on a shooting area, wherein the shooting area includes a first display area and a second display area;

[0012] a first processing module, configured to determine, in response to the first input, a first image of the first display area in the shooting area, and perform a cutout process on a first human object in the first image;

[0013] A first display module is configured to display a first shooting preview image obtained based on the current environment in the shooting area, and to display the first person object obtained by the cutout processing in the first shooting preview image in the first display area;

[0014] a shooting module, configured to shoot based on the first shooting preview screen displayed in the first display area to obtain a second image of the first person object, and to shoot based on the first shooting preview screen displayed in the second display area to obtain a third image of the second person object;

[0015] The first synthesis module is used to synthesize the second image displayed in the first display area with the third image displayed in the second display area to obtain a combined image of the first person object and the second person object.

[0016] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0018] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described in the first aspect.

[0019] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0020] In the embodiment of the present application, the shooting area is divided into a first display area and a second display area, a first input to the shooting area is first received, in response to the first input, a first image of the first display area in the shooting area is determined, and a first character object in the first image is subjected to a matting processing to separate the first character object from the background; then a first shooting preview picture based on the current environment is displayed in the whole shooting area, and the first character object obtained by the matting processing is displayed in the first shooting preview picture of the first display area, so that the two areas share one dynamic first shooting preview picture, and the backgrounds of the two areas are uniform and coherent. A shooting is performed based on the first shooting preview picture displayed by the first display area to obtain a second image of the first character object, and a shooting is performed based on the first shooting preview picture displayed by the second display area to obtain a third image of a second character object, so that the second image obtained by the matting processing includes the first character object, the third image includes the second character object, and the backgrounds of the second image and the third image are uniform and coherent, so that the second image displayed by the first display area and the third image displayed by the second display area are subjected to a synthesis processing, and the first character object in the second image and the second character object in the third image are more consistent, and the first character object and the second character object can be combined without the help of others. BRIEF DESCRIPTION OF DRAWINGS

[0021] Figure 1 is a flowchart of an image shooting method provided by the embodiment of the present application;

[0022] Figure 2 is one of the division diagrams of the shooting area provided by the embodiment of the present application;

[0023] Figure 3 is another of the division diagrams of the shooting area provided by the embodiment of the present application;

[0024] Figure 4 is a selection diagram of the first display area provided by the embodiment of the present application;

[0025] Figure 5 is a photo album image import diagram of the first display area provided by the embodiment of the present application;

[0026] Figure 6 is a photo album image selection diagram of the first display area provided by the embodiment of the present application;

[0027] Figure 7 is a selection diagram of the first image provided by the embodiment of the present application;

[0028] Figure 8 is one of the display diagrams of the third display area provided by the embodiment of the present application;

[0029] Figure 9 This is the second display schematic diagram of the third display area provided in the embodiment of the present application;

[0030] Figure 10 This is one of the display schematic diagrams of the second display area provided in the embodiment of the present application;

[0031] Figure 11 This is the display intention of the first character object and the second character object provided in the embodiment of the present application;

[0032] Figure 12 This is the second display schematic diagram of the second display area provided in the embodiment of the present application;

[0033] Figure 13 This is the third display diagram of the second display area provided in the embodiment of the present application;

[0034] Figure 14 This is a schematic diagram of a specific process of the image capturing method provided in an embodiment of the present application;

[0035] Figure 15 is a structural diagram of an image capture device provided in an embodiment of the present application;

[0036] Figure 16 This is a structural block diagram of an electronic device provided in an embodiment of the present application;

[0037] Figure 17 This is a structural block diagram of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0039] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0040] The image capturing method provided by the embodiment of the present application is described below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0041] like Figure 1 As shown, an embodiment of the present application provides an image capturing method, which can be applied to an electronic device and may specifically include the following steps:

[0042] Step 101: Receive a first input of a shooting area, wherein the shooting area includes a first display area and a second display area.

[0043] When a user opens the camera on an electronic device and the screen displays a shooting area, the user can switch to combined shooting mode and then split the currently displayed shooting area into two, three, or more areas, without any specific limitation. The following uses splitting the shooting area into two areas as an example for explanation.

[0044] The shooting area is divided into two areas, the first display area and the second display area. The division can be automatic, manual, or user-adjusted after the automatic division. The division method can be as follows: Figure 2 The left and right division shown in FIG. 1 can obtain the first display area and the second display area arranged left and right, or it can be as follows Figure 3 The upper and lower divisions shown above are used to obtain the first display area and the second display area arranged in an upper and lower manner. Figure 2 and Figure 3 The division method is only an example and can be adjusted as needed to adjust the size and position of the first display area and the second display area.

[0045] The user performs a first input on the shooting area, and the electronic device receives the first input on the shooting area from the user. The first input is the shooting input of the shooting area by the user, and specifically can be a click operation, etc.

[0046] Step 102 : In response to the first input, determine a first image of the first display area in the shooting area, and perform a cutout process on a first person object in the first image.

[0047] Since the shooting area is divided into the first display area and the second display area, it is necessary to shoot in steps, that is, first shoot the image in one of the display areas, and then shoot the image in the other display area. Figure 4 As shown, if the user's first input is an input to the first display area, it is necessary to determine the first image displayed in the first display area in the shooting area, and the first image includes a first person object.

[0048] After obtaining the first image displayed in the first display area, the first image is cut out to separate the first person object from the background, and the background is removed to retain the first person object.

[0049] Step 103 : Displaying a first shooting preview image obtained based on the current environment in the shooting area, and displaying the first person object obtained by the cutout process in the first shooting preview image in the first display area.

[0050] The first shooting preview screen of the current environment is displayed in the entire shooting area. Since the shooting area includes the first display area and the second display area, the first display area and the second display area synchronously display the dynamic first shooting preview screen. Therefore, the two areas share a dynamic first shooting preview screen, ensuring the unity and coherence of the background of the two areas.

[0051] In the first display area, the first shot preview image is used as the dynamic preview background, and the first person object obtained by cutting out the image is used as the static preview foreground. This results in a new first shot preview image. Specifically, the first shot preview image displayed in the first display area is a dynamic preview image composed of the first person object obtained by cutting out the image as the static preview background and the dynamic preview background obtained by previewing the current actual environment. The position and movement of the first person object in the first display area remain unchanged, while the background in the first display area is a dynamic background that changes with the environmental changes captured by the camera. In the second display area, the second person object is in the current environment. The dynamic image obtained by previewing the current actual environment is used as the dynamic preview background, and the dynamic second person object is used as the dynamic preview foreground. The dynamic preview background and dynamic preview foreground together form the dynamic first shot preview image.

[0052] Step 104 : shoot based on the first shooting preview screen displayed in the first display area to obtain a second image of the first person object, and shoot based on the first shooting preview screen displayed in the second display area to obtain a third image of the second person object.

[0053] Because the first shooting preview screen displayed in the first display area includes a static first human subject and a dynamic preview background, shooting based on the first shooting preview screen displayed in the first display area can produce a second image including the first human subject. The first human subject in the second image is the same human subject as the first human subject in the first image, that is, the position, size, posture, etc. of the first human subject in the second image are the same as the position, size, and posture of the first human subject in the first image. While shooting based on the first shooting preview screen in the first display area, shooting based on the first shooting preview screen displayed in the second display area is also being performed. Because the first shooting preview screen displayed in the second display area includes a dynamic second human subject and a dynamic preview background, shooting based on the first shooting preview screen displayed in the second display area can produce a third image including the second human subject.

[0054] Step 105 : Combining the second image displayed in the first display area with the third image displayed in the second display area to obtain a combined image of the first human object and the second human object.

[0055] After determining the second image in the first display area and the third image in the second display area, the effect of the first character object and the second character object being photographed together can be seen in real time in the preview. The first character object in the second image and the second character object in the third image can be synthesized without modification to generate a photographed image of the first character object and the second character object. The photographed image has a high degree of fit, and the photographing of the first character object and the second character object can be completed without the help of others.

[0056] In an embodiment of the present application, the shooting area is divided into a first display area and a second display area. First, a first input to the shooting area is received. In response to the first input, a first image of the first display area in the shooting color number area is determined, and the first person object in the first image is cut out to separate the first person object from the background; then, a first shooting preview screen obtained based on the current environment is displayed in the entire shooting area, and the first person object obtained by the cutout processing is displayed in the first shooting preview screen of the first display area. In this way, the two areas share a dynamic first shooting preview screen, ensuring that the background of the two areas is unified and coherent. Based on the first shooting preview screen displayed in the first display area, shooting is performed to obtain a second image of the first character object, and based on the first shooting preview screen displayed in the second display area, shooting is performed to obtain a third image of the second character object. The second image thus obtained includes the first character object obtained by cutting out, and the third image includes the second character object, and the backgrounds of the second image and the third image are unified and coherent. Therefore, the second image displayed in the first display area and the third image displayed in the second display area are synthesized, and the combined image of the first character object in the second image and the second character object in the third image has a higher degree of fit, and the combination of the first character object and the second character object can be completed without the help of others.

[0057] As an optional specific embodiment, the step 102 of determining the first image of the first display area in the shooting area specifically includes:

[0058] Step 1021: shooting based on the second shooting preview screen displayed in the first display area to obtain at least one first candidate image based on the first person object, and / or determining at least one first candidate image based on the first person object from multiple images in an album;

[0059] Step 1022 : In response to a selection input of the at least one first candidate image, determine a first image of the first display area from the at least one first candidate image.

[0060] The first display area includes at least one first candidate image, and the first image is one of the at least one first candidate image. In the case where there are multiple first candidate images, the user can freely select the first image currently displayed in the first display area from the multiple first candidate images by sliding.

[0061] The at least one first candidate image in the first display area may be obtained by shooting, or by selecting an existing image from an album.

[0062] If the first candidate images include a captured image, after the user selects the first display area, the first person object is in the current environment in the first display area. The dynamic image previewed in the current actual environment is used as the dynamic preview background, and the dynamic first person object is used as the dynamic preview foreground. The dynamic preview background and dynamic preview foreground form a dynamic second shooting preview screen. The user can capture at least one first candidate image that includes the first person object as needed.

[0063] If the first candidate image includes an image in the album, then Figure 5 As shown, an “Import Portrait” selection control is displayed above the first display area. The user clicks the “Import Portrait” selection control to jump to the album, where multiple portrait images are displayed. The user can select at least one of the portrait images as the first candidate image for the first display area as needed, for example: Figure 6 As shown, a prompt message "Select image and import into the first display area" is displayed in the album to prompt the user to select the image as the first candidate image in the first display area, and images 1 to 6 are displayed. The user selects image 2 and image 4, and ticks the corresponding boxes below image 2 and image 4 to indicate selection. As a result, image 2 and image 4 are automatically imported into the first candidate image list in the first display area, thereby achieving the effect of combining old photos with the currently taken image in different shooting postures, thereby expanding the playability and fun of the combination shooting function.

[0064] In addition, the last image imported into the first candidate image list may be set as the first image displayed in the first display area, and the setting may be adjusted as needed.

[0065] In the case of obtaining multiple first candidate images, such as Figure 7 As shown, arrows are displayed above and below the first display area. The user can select and update the first image displayed in the first display area by clicking the up and down arrows. The selection input is the input of the user clicking the up and down arrows. Other methods can be set as needed to select and determine the first image displayed in the first display area from multiple first candidate images.

[0066] As another optional specific embodiment, step 1021 performs shooting based on the second shooting preview screen displayed in the first display area to obtain at least one first candidate image based on the first person object, specifically including:

[0067] Enlarging the first display area according to a first ratio to obtain a third display area, and displaying position information of the first display area in the shooting area in the third display area;

[0068] shooting based on the second shooting preview picture displayed in the third display area to obtain at least one second candidate image based on the first person object;

[0069] The third display area and the at least one second candidate image are reduced according to the first ratio to obtain the first display area and the at least one first candidate image.

[0070] After the user selects the first display area, the first display area is magnified to obtain a third display area. The third display area may be an area larger than the first display area and smaller than or equal to the shooting area. For example: Figure 8 As shown, the size of the third display area is the size of the shooting area, that is, the size of the third display area is twice that of the first display area. Since the first display area is enlarged into the third display area, in order to prompt the user in which part of the combined image the image shot by the third display area will eventually be displayed, prompt information is displayed in the third display area, such as "the image of this area is displayed on the left side of the combined image". After the user shoots the second candidate image of the third display area, the "A" displayed in the second candidate image is the first person object in the second candidate image. Figure 9 As shown, after the user takes the second candidate image of the third image, the user clicks the return arrow above the third display area, whereby the third display area is reduced to the first display area, that is, the third display area is reduced to one half, and the second candidate image obtained by taking the third display area is also reduced to one half in the same proportion to obtain the first candidate image, thereby ensuring that the sizes of the human objects in the first display area and the second display area match.

[0071] As an optional specific embodiment, before step 103 displays the first shooting preview screen acquired based on the current environment in the shooting area and displays the first person object obtained by the cutout processing in the first shooting preview screen of the first display area, the method may further include:

[0072] Second posture information of a first person object in the first image is recognized, and third posture information matching the second posture information is displayed in the second display area.

[0073] After the first image is cut out to separate the first person object, the second posture information of the first person object is identified by the portrait detection algorithm, and the third posture information matching the second posture information is matched in the image library, and the third posture information is displayed in the second display area for the second person object to refer to, or the user can strike the desired posture by himself without referring to the third posture information. The third posture information can be displayed in the second display area through the outline of the person object so that the second person object can intuitively see the corresponding posture, which is convenient for learning. For example, Figure 10 As shown, based on the second posture information of the first person object "A" in the first display area, the third posture information 11 that best matches the second posture information is determined and displayed in the second display area. The second person object can perform corresponding actions according to the third posture information 11 based on the harmony of the real-time image posture and be photographed, thereby obtaining a third image of the second person object "B", as shown in FIG. Figure 11 shown.

[0074] As an optional specific embodiment, before step 104 performs shooting based on the first shooting preview screen displayed in the first display area to obtain a second image of the first person object, and performs shooting based on the first shooting preview screen displayed in the second display area to obtain a third image of the second person object, the method may further include:

[0075] In response to a movement input of a dividing line between the first display area and the second display area, a position of the dividing line is moved to update the first display area and the second display area.

[0076] Since the images in the two areas were shot separately, there may be a gap between the human subjects in the two areas. To eliminate the gap between the human subjects in the two areas and achieve a sense of splicing with some overlapping limbs between the human subjects, the user can move the dividing line between the first display area and the second display area, thereby updating the first display area and the second display area to adjust the preview range of each area. For example, if the user moves the dividing line to the left, the range position of the second human subject in the second display area can be adjusted without affecting the position of the first human subject in the first display area. As a result, the first human subject in the first display area and the second human subject in the second display area have partially overlapping limbs, rather than just a simple splicing, which increases the realism of the combined image.

[0077] As an optional specific embodiment, after step 104 performs shooting based on the first shooting preview screen displayed in the first display area to obtain a second image of the first person object, and performs shooting based on the first shooting preview screen displayed in the second display area to obtain a third image of the second person object, the method may further include:

[0078] Recognizing first posture information of the second person object in the third image;

[0079] determining, according to the first posture information, a fourth image matching the first posture information from the at least one first candidate image, and displaying the fourth image in the first display area;

[0080] The fourth image displayed in the first display area and the third image displayed in the second display area are synthesized to obtain a combined image of the first person object in the fourth image and the second person object in the third image.

[0081] After obtaining the third image in the second display area, if the user is satisfied with the first posture information of the second person object in the third image, and believes that the second posture information of the first person object in the second image does not match the first posture information, the user can click the "Automatic Portrait Matching" selection control in the second display area, and automatically detect the fourth image that best matches the first posture information in at least one first candidate image in the first display area through the portrait detection algorithm, and display the fourth image in the first display area, thereby updating the second image displayed in the first display area to the fourth image.

[0082] After determining the fourth image in the first display area and the third image in the second display area, the effect of the coordination of the first character object in the fourth image and the second character object in the third image can be seen in real time in the preview. The first character object in the fourth image and the second character object in the third image can be synthesized without modification to generate a coordinated image of the first character object and the second character object. The coordinated image has a high degree of fit, and the coordination of the first character object and the second character object can be completed without the help of others.

[0083] For example: Figure 12 As shown, the second person object "B" in the second display area has been photographed, and a third image including "B" is obtained. If the user clicks the "Auto Portrait Match" selection control, a fourth image that best matches "B" is automatically matched and Figure 12 The second image of "A" in the first display area is updated to Figure 13 The fourth image of "A" in the first display area.

[0084] like Figure 14 As shown, the above image capturing process is described in detail below through a specific embodiment:

[0085] Step 1401: Entering a combined shooting mode, dividing the shooting area into a first display area and a second display area.

[0086] Step 1402 : Select a first display area, shoot based on a second shooting preview image displayed in the first display area, and select at least one first candidate image of a first person object from a plurality of images in an album.

[0087] Step 1403 : Determine a first image to be displayed in the first display area from a plurality of first candidate images, and perform a cutout process on the first person object in the first image.

[0088] Step 1404 : Identify second posture information of the first person object in the first image, and display third posture information matching the second posture information in the second display area.

[0089] Step 1405: Acquire a third image of the second person object captured according to third posture information.

[0090] Step 1406 , determine whether the “automatic portrait matching” function is enabled; if so, execute step 1407 ; if not, execute step 1408 .

[0091] Step 1407 : Identify first posture information of the second person object in the third image, determine a fourth image matching the first posture information from the plurality of first candidate images, and display the fourth image in the first display area.

[0092] Step 1408 : synthesize the first person object and the second person object to obtain a combined image.

[0093] In summary, in an embodiment of the present application, the shooting area is divided into a first display area and a second display area, and different human objects are photographed in different areas through the rear camera and then merged, so as to achieve the effect of multi-person group shooting under a wide viewing angle without the help of others. In addition, the first human object in the first image in the first display area is cut out to separate the first human object from the background, and then the first shooting preview screen of the current environment is displayed in the entire shooting area, and the first human object obtained by the cutout is displayed in the first shooting preview screen of the first display area, so that the two areas share a dynamic first shooting preview screen, ensuring the unity and coherence of the background of the two areas. In addition, a real-time preview of the group shooting posture is realized during the shooting process, and the user can construct a variety of group shooting effects with different postures through posture recommendation, self-adjustment of posture, automatic matching of posture, etc. In addition, by importing portrait materials from the album, the playability and fun of group shooting are expanded.

[0094] The image capturing method provided in the embodiment of the present application can be executed by an image capturing device. In the embodiment of the present application, the image capturing device provided in the embodiment of the present application is described by taking the image capturing method executed by the image capturing device as an example.

[0095] like Figure 15 As shown, the embodiment of the present application further provides an image capturing device 1500, specifically comprising:

[0096] The receiving module 1501 is configured to receive a first input on a shooting area, wherein the shooting area includes a first display area and a second display area;

[0097] A first processing module 1502 is configured to determine, in response to the first input, a first image of the first display area in the shooting area, and perform a cutout process on a first person object in the first image;

[0098] A first display module 1503 is configured to display a first shooting preview image obtained based on the current environment in the shooting area, and to display the first person object obtained by the cutout process in the first shooting preview image in the first display area;

[0099] a shooting module 1504 configured to shoot based on the first shooting preview screen displayed in the first display area to obtain a second image of the first person object, and to shoot based on the first shooting preview screen displayed in the second display area to obtain a third image of the second person object;

[0100] The first synthesis module 1505 is configured to synthesize the second image displayed in the first display area with the third image displayed in the second display area to obtain a combined image of the first human object and the second human object.

[0101] Optionally, when determining the first image of the first display area in the shooting area, the first processing module 1502 is specifically configured to:

[0102] Taking a picture based on the second shooting preview screen displayed in the first display area to obtain at least one first candidate image based on the first person object, and / or determining at least one first candidate image based on the first person object from a plurality of images in an album;

[0103] In response to a selection input of the at least one first candidate image, a first image of the first display area is determined from the at least one first candidate image.

[0104] Optionally, the device further comprises:

[0105] a recognition module, configured to recognize first posture information of the second person object in the third image;

[0106] a second processing module, configured to determine, based on the first posture information, a fourth image matching the first posture information from the at least one first candidate image, and display the fourth image in the first display area;

[0107] The second synthesis module is used to synthesize the fourth image displayed in the first display area and the third image displayed in the second display area to obtain a combined image of the first character object in the fourth image and the second character object in the third image.

[0108] Optionally, when the first processing module 1502 performs shooting based on the second shooting preview screen displayed in the first display area to obtain at least one first candidate image based on the first person object, it is specifically configured to:

[0109] Enlarging the first display area according to a first ratio to obtain a third display area, and displaying position information of the first display area in the shooting area in the third display area;

[0110] shooting based on the second shooting preview picture displayed in the third display area to obtain at least one second candidate image based on the first person object;

[0111] The third display area and the at least one second candidate image are reduced according to the first ratio to obtain the first display area and the at least one first candidate image.

[0112] Optionally, the device further comprises:

[0113] The updating module is configured to move the position of the dividing line between the first display area and the second display area in response to a movement input of the dividing line between the first display area and the second display area, so as to update the first display area and the second display area.

[0114] The image capture device in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or a device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiments of the present application do not specifically limit this.

[0115] The image capture device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0116] The image capture device provided in the embodiment of the present application can achieve Figures 1 to 14 To avoid repetition, the various processes implemented in the method embodiment are not described here.

[0117] Alternatively, as Figure 16 As shown, an embodiment of the present application further provides an electronic device 1600, including a processor 1601 and a memory 1602, wherein the memory 1602 stores a program or instruction that can be run on the processor 1601, and when the program or instruction is executed by the processor 1601, the various steps of the above-mentioned image shooting method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0118] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0119] Figure 17A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0120] The electronic device 1000 includes but is not limited to components such as a radio frequency unit 1001 , a network module 1002 , an audio output unit 1003 , an input unit 1004 , a sensor 1005 , a display unit 1006 , a user input unit 1007 , an interface unit 1008 , a memory 1009 , and a processor 1010 .

[0121] Those skilled in the art will understand that the electronic device 1000 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 17 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.

[0122] The processor 1010 is configured to receive a first input on a shooting area, wherein the shooting area includes a first display area and a second display area;

[0123] In response to the first input, determining a first image of the first display area in the shooting area, and performing a cutout process on a first person object in the first image;

[0124] The display unit 1006 is configured to display a first shooting preview image obtained based on the current environment in the shooting area, and to display the first person object obtained by the cutout process in the first shooting preview image in the first display area;

[0125] The processor 1010 is further configured to shoot based on the first shooting preview screen displayed in the first display area to obtain a second image of the first person object, and shoot based on the first shooting preview screen displayed in the second display area to obtain a third image of the second person object;

[0126] The second image displayed in the first display area and the third image displayed in the second display area are synthesized to obtain a combined image of the first human object and the second human object.

[0127] Optionally, when determining the first image of the first display area in the shooting area, the processor 1010 is specifically configured to:

[0128] capture based on the second photograph preview picture displayed by the first display area to obtain at least one first candidate image based on the first person object, and / or determine at least one first candidate image based on the first person object from a plurality of images of an album;

[0129] In response to a selection input of the at least one first candidate image, determine a first image of the first display area from the at least one first candidate image.

[0130] Optionally, the processor 1010 is further configured to, after capturing based on the first photograph preview picture displayed by the first display area to obtain a second image of the first person object, and capturing based on the first photograph preview picture displayed by the second display area to obtain a third image of a second person object, perform the following operations:

[0131] identify first pose information of the second person object in the third image;

[0132] According to the first pose information, determine a fourth image matching the first pose information from the at least one first candidate image, and display the fourth image in the first display area;

[0133] perform a synthesis process on the fourth image displayed by the first display area and the third image displayed by the second display area to obtain a combined image of the first person object in the fourth image and the second person object in the third image.

[0134] Optionally, when the processor 1010 captures based on the second photograph preview picture displayed by the first display area to obtain at least one first candidate image based on the first person object, the processor 1010 is specifically configured to:

[0135] enlarge the first display area according to a first ratio to obtain a third display area, and display position information of the first display area in the photographing area in the third display area;

[0136] capture based on the second photograph preview picture displayed by the third display area to obtain at least one second candidate image based on the first person object;

[0137] reduce the third display area and the at least one second candidate image according to the first ratio to obtain the first display area and the at least one first candidate image.

[0138] Optionally, before shooting based on the first shooting preview screen displayed in the first display area to obtain the second image of the first person object, and shooting based on the first shooting preview screen displayed in the second display area to obtain the third image of the second person object, the processor 1010 is further configured to:

[0139] In response to a movement input of a dividing line between the first display area and the second display area, a position of the dividing line is moved to update the first display area and the second display area.

[0140] It should be understood that in an embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.

[0141] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0142] Processor 1010 may include one or more processing units. Optionally, processor 1010 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 1010.

[0143] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image capture method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0144] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0145] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned image capture method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0146] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0147] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned image shooting method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0148] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0150] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. An image capturing method, characterized in that: include: receiving a first input on a shooting area, wherein the shooting area includes a first display area and a second display area; In response to the first input, determining a first image of the first display area in the shooting area, and performing a cutout process on a first person object in the first image; Displaying a first shooting preview image obtained based on the current environment in the shooting area, and displaying the first person object obtained by the cutout process in the first shooting preview image in the first display area; shooting based on the first shooting preview screen displayed in the first display area to obtain a second image of the first person object, and shooting based on the first shooting preview screen displayed in the second display area to obtain a third image of the second person object; synthesizing the second image displayed in the first display area and the third image displayed in the second display area to obtain a combined image of the first person object and the second person object; The determining the first image of the first display area in the shooting area includes: Acquire at least one first candidate image based on the first person object, where the at least one first candidate image is captured based on the second shooting preview screen displayed in the first display area and / or determined from multiple images in an album; In response to a selection input of the at least one first candidate image, determining a first image of the first display area from the at least one first candidate image; After shooting based on the first shooting preview screen displayed in the first display area to obtain a second image of the first person object, and shooting based on the first shooting preview screen displayed in the second display area to obtain a third image of the second person object, the method further includes: Recognizing first posture information of the second person object in the third image; determining, according to the first posture information, a fourth image matching the first posture information from the at least one first candidate image, and displaying the fourth image in the first display area; The fourth image displayed in the first display area and the third image displayed in the second display area are synthesized to obtain a combined image of the first person object in the fourth image and the second person object in the third image.

2. The method according to claim 1, characterized in that The step of shooting based on the second shooting preview screen displayed in the first display area to obtain at least one first candidate image based on the first person object includes: Enlarging the first display area according to a first ratio to obtain a third display area, and displaying position information of the first display area in the shooting area in the third display area; shooting based on the second shooting preview picture displayed in the third display area to obtain at least one second candidate image based on the first person object; The third display area and the at least one second candidate image are reduced according to the first ratio to obtain the first display area and the at least one first candidate image.

3. The method according to claim 1, characterized in that Before capturing based on the first shooting preview screen displayed in the first display area to obtain a second image of the first person object, and capturing based on the first shooting preview screen displayed in the second display area to obtain a third image of the second person object, the method further includes: In response to a movement input of a dividing line between the first display area and the second display area, a position of the dividing line is moved to update the first display area and the second display area.

4. An image capturing device, characterized in that: include: a receiving module, configured to receive a first input on a shooting area, wherein the shooting area includes a first display area and a second display area; a first processing module, configured to determine, in response to the first input, a first image of the first display area in the shooting area, and perform a cutout process on a first human object in the first image; A first display module is configured to display a first shooting preview image obtained based on the current environment in the shooting area, and to display the first person object obtained by the cutout processing in the first shooting preview image in the first display area; a shooting module, configured to shoot based on the first shooting preview screen displayed in the first display area to obtain a second image of the first person object, and to shoot based on the first shooting preview screen displayed in the second display area to obtain a third image of the second person object; a first synthesis module, configured to synthesize the second image displayed in the first display area and the third image displayed in the second display area to obtain a synthesized image of the first human object and the second human object; When determining the first image of the first display area in the shooting area, the first processing module is specifically configured to: Acquire at least one first candidate image based on the first person object, where the at least one first candidate image is captured based on the second shooting preview screen displayed in the first display area and / or determined from multiple images in an album; In response to a selection input of the at least one first candidate image, determining a first image of the first display area from the at least one first candidate image; The device further comprises: a recognition module, configured to recognize first posture information of the second person object in the third image; a second processing module, configured to determine, based on the first posture information, a fourth image matching the first posture information from the at least one first candidate image, and display the fourth image in the first display area; The second synthesis module is used to synthesize the fourth image displayed in the first display area and the third image displayed in the second display area to obtain a combined image of the first character object in the fourth image and the second character object in the third image.

5. The device according to claim 4, characterized in that When the first processing module shoots based on the second shooting preview screen displayed in the first display area to obtain at least one first candidate image based on the first person object, it is specifically configured to: Enlarging the first display area according to a first ratio to obtain a third display area, and displaying position information of the first display area in the shooting area in the third display area; shooting based on the second shooting preview picture displayed in the third display area to obtain at least one second candidate image based on the first person object; The third display area and the at least one second candidate image are reduced according to the first ratio to obtain the first display area and the at least one first candidate image.

6. The device according to claim 4, characterized in that The device further comprises: The updating module is configured to move the position of the dividing line between the first display area and the second display area in response to a movement input of the dividing line between the first display area and the second display area, so as to update the first display area and the second display area.

Citation Information

Patent Citations

  • Photograph processing method and image photograph equipment

    CN106331528A

  • Photographing method, photographing device, electronic device and storage medium

    CN107666572A