Image shooting method and device
By dividing the shooting area into two display areas and synthesizing it, the problem that electronic devices are difficult to take full-body images in multi-person co-shooting scenes is solved, and multi-person co-shooting without the help of others is achieved, improving the simplicity of operation and the quality of co-shooting images.
Patent Information
- Application Number
- CN202411917797.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-12-24
AI Technical Summary
In multiplayer co-production scenarios, it is difficult for electronic devices to take full-body images in a large-view range, and the operation is cumbersome, requiring the help of others or auxiliary equipment.
By dividing the shooting area into two display areas, the images of each area are processed and displayed separately, and the synthesis process is performed, a combined image of the first character object and the second character object are realized.
Multiple-person co-shooting can be completed without the help of others, which improves the convenience of shooting and simplicity of operation, while ensuring the fit of the co-shooting images and the unity of the background.
Smart Images

Figure CN119697482A_ABST
Abstract
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] At present, it is a common high-frequency shooting scene for multiple people to travel together and take group photos at various scenic spots. However, electronic devices have many inconveniences in group photo shooting scenes. For example, although the front camera of electronic devices can take selfies of multiple people, it is limited by the distance of the lens and cannot take full-body photos with a wide viewing angle; the rear camera of electronic devices can take group photos with a wide viewing angle, but usually requires help from passers-by or the use of auxiliary equipment to complete the shooting, 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, which 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 picture acquired 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 picture 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 to 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 person object in the first image;
[0013] A first display module, configured to display a first shooting preview picture acquired 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 picture in the first display area;
[0014] a shooting module, configured to shoot based on the first shooting preview picture 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 picture 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, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program 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, and 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, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction 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 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 a first character object in the first image is cut out to separate the first character object from the background; then, a first shooting preview screen acquired based on the current environment is displayed in the entire shooting area, and the first character object obtained by the cutout processing 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 to ensure the unity and coherence of the backgrounds of the two areas. 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 combined shooting of the first character object and the second character object can be completed without the help of others. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flowchart of an image capturing method provided in an embodiment of the present application;
[0022] Figure 2 It is one of the schematic diagrams for dividing the shooting area provided in the embodiment of the present application;
[0023] Figure 3 This is the second schematic diagram of the division of the shooting area provided in the embodiment of the present application;
[0024] Figure 4 is a schematic diagram of selecting the first display area provided in an embodiment of the present application;
[0025] Figure 5 is a schematic diagram of importing album images into the first display area provided in an embodiment of the present application;
[0026] Figure 6 is a schematic diagram of selecting an album image in the first display area provided in an embodiment of the present application;
[0027] Figure 7 is a schematic diagram of selecting a first image provided in an embodiment of the present application;
[0028] Figure 8 It is one of the display schematic diagrams of the third display area provided in the embodiment of the present application;
[0029] Fig. 9 This is the second display schematic diagram of the third display area provided in the embodiment of the present application;
[0030] Fig.10 is one of the display schematic diagrams of the second display area provided in the embodiment of the present application;
[0031] Fig.11 It is the display intention of the first character object and the second character object provided in the embodiment of the present application;
[0032] Fig.12 This is the second display schematic diagram of the second display area provided in the embodiment of the present application;
[0033] Fig.13 This is the third display schematic diagram of the second display area provided in the embodiment of the present application;
[0034] Fig.14 is a schematic diagram of a specific process of the image capturing method provided in an embodiment of the present application;
[0035] Fig.15 is a schematic diagram of the structure of an image capturing device provided in an embodiment of the present application;
[0036] Fig.16 is a structural block diagram of an electronic device provided in an embodiment of the present application;
[0037] Fig.17 It 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 drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0039] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "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: receiving a first input of a shooting area, wherein the shooting area includes a first display area and a second display area.
[0043] The user turns on the camera in the electronic device, and the screen displays the shooting area. When the user switches to the combined shooting mode, the user can divide the currently displayed shooting area into two areas, or into three areas or more, without specific limitation. The following takes dividing the shooting area into two areas as an example for explanation.
[0044] The shooting area is divided into two areas, a first display area and a second display area. The division can be automatic, manual, or after the automatic division, the user can adjust it. The division method can be as follows: Figure 2 The left and right division shown in the figure 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 division shown in the figure obtains the first display area and the second display area arranged in upper and lower order. Figure 2 and Figure 3 The segmentation 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 on the shooting area from the user, and specifically may be a click operation or the like.
[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 a 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: display a first shooting preview picture acquired based on the current environment in the shooting area, and display the first person object obtained by the cutout process in the first shooting preview picture 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, so that 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 screen is used as the dynamic preview background, and the first person object obtained by cutting out is used as the static preview foreground, thereby obtaining a new first shot preview screen, that is, the first shot preview screen displayed in the first display area is a dynamic preview screen composed of the first person object obtained by cutting out as the static preview background and the dynamic preview background obtained by previewing the actual environment currently in place. The position and action of the first person object in the first display area remain unchanged, and the background in the first display area is a dynamic background that changes with the changes in the environment captured by the camera. In the second display area, the second person object is in the current environment, and the dynamic image obtained by previewing the actual environment currently in place 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 the dynamic preview foreground constitute the dynamic first shot preview screen.
[0052] Step 104 , 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.
[0053] Since the first shooting preview screen displayed in the first display area includes a static first person object and a dynamic preview background, a second image including the first person object can be obtained by shooting based on the first shooting preview screen displayed in the first display area. The first person object in the second image is the same person object as the first person object in the first image, that is, the position, size, posture, etc. of the first person object in the second image are the same as the position, size, and posture of the first person object 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 performed. Since the first shooting preview screen displayed in the second display area includes a dynamic second person object and a dynamic preview background, a third image including the second person object can be obtained by shooting based on the first shooting preview screen displayed in the second display area.
[0054] Step 105 , 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 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 coordination effect of the first character object and the second character object can be seen in real time in the preview, and 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 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.
[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 a first character object in the first image is cut out to separate the first character object from the background; then, a first shooting preview screen acquired based on the current environment is displayed in the entire shooting area, and the first character object obtained by the cutout processing 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 to ensure the unity and coherence of the backgrounds of the two areas. 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 combined shooting 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 the 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. When 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 photographing, or by selecting an existing image in an album.
[0062] If the first candidate image includes a captured image, after the user selects the first display area, in the first display area, the first person object is in the current environment, and the dynamic image obtained by previewing 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 the dynamic preview foreground constitute a dynamic second shooting preview screen. The user can capture at least one first candidate image including the first person object as needed.
[0063] If the first candidate images include images 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 of the first display area, and images 1 to 6 are displayed. The user selects image 2 and image 4, and ticks the corresponding boxes under image 2 and image 4 to indicate selection, thereby automatically importing image 2 and image 4 into the first candidate image list of 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] When multiple first candidate images are obtained, 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, the step 1021 performs shooting based on the second shooting preview picture 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] Taking a picture 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 enlarged 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. Fig. 9 As shown, after the user shoots 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 shooting in 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 picture 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 picture 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 reference by the second person object, or the user can pose 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, Fig.10 As shown, according to 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 pose for a corresponding action according to the third posture information 11 according to the harmony of the real-time image posture and obtain a third image of the second person object "B", as shown in FIG. Fig.11 shown.
[0074] As an optional specific embodiment, before the step 104 performs 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 performs 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 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 of the two areas are shot separately, there may be a gap between the human objects in the two areas. In order to eliminate the gap between the human objects in the two areas and achieve a sense of splicing with partial limb overlap between the human objects, 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: the user moves the dividing line to the left, that is, the range position of the second human object in the second display area can be adjusted without affecting the position of the first human object in the first display area, thereby the first human object in the first display area and the second human object in the second display area have partially overlapping limbs, rather than just simple splicing, which increases the realism of the combined image.
[0077] As an optional specific embodiment, after the step 104 performs 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 performs 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 method may further include:
[0078] Identify first posture information of the second person object in the third image;
[0079] Determine, according to 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;
[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 composite 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 coordination effect 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, and 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: Fig.12 As shown in FIG. 1 , 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 “Automatic Portrait Matching” selection control, a fourth image that best matches “B” is automatically matched and the fourth image is Fig.12 The second image of "A" in the first display area is updated to Fig.13 The fourth image of "A" in the first display area.
[0084] like Fig.14 As shown, the above image capturing process is described in detail below through a specific embodiment:
[0085] Step 1401, entering the 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 screen 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 , determining a first image to be displayed in a first display area from a plurality of first candidate images, and performing a cutout process on a first person object in the first image.
[0088] Step 1404 , identifying second posture information of the first person object in the first image, and displaying third posture information matching the second posture information in the second display area.
[0089] Step 1405: Obtain 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 turned on; if yes, execute step 1407, if no, execute step 1408.
[0091] Step 1407 , identifying first posture information of the second person object in the third image, determining a fourth image matching the first posture information from a plurality of first candidate images, and displaying 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 character objects are photographed in different areas through the rear camera and then merged, so as to achieve the effect of multi-person co-shooting under a wide viewing angle without the help of others. In addition, the first character object in the first image in the first display area is cut out to separate the first character 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 character 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 to ensure the unity and coherence of the background of the two areas. In addition, during the shooting process, a real-time preview of the co-shooting posture is realized, and the user can construct a variety of co-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 co-shooting are expanded.
[0094] The image capturing method provided in the embodiment of the present application may be executed by an image capturing device. In the embodiment of the present application, an image capturing device executing the image capturing method is taken as an example to illustrate the image capturing device provided in the embodiment of the present application.
[0095] like Fig.15 As shown, the embodiment of the present application further provides an image capturing device 1500, which specifically includes:
[0096] The receiving module 1501 is used to receive a first input of a shooting area, wherein the shooting area includes a first display area and a second display area;
[0097] A first processing module 1502 is used 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 used to display a first shooting preview picture obtained based on the current environment in the shooting area, and display the first person object obtained by the cutout process in the first shooting preview picture of the first display area;
[0099] The shooting module 1504 is used 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 used to synthesize 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 character object and the second character 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 pictures based on the second shooting preview picture 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 among the at least one first candidate image.
[0104] Optionally, the device further comprises:
[0105] A recognition module, used for recognizing first posture information of the second person object in the third image;
[0106] A second processing module, configured to determine, according to 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 picture 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] Taking a picture 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 used for moving the position of the dividing line between the first display area and the second display area in response to a moving 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 embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[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 by the method embodiment are not described here.
[0117] Alternatively, if Fig.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 executed on the processor 1601, and when the program or instruction is executed by the processor 1601, each step of the above-mentioned image capture method embodiment is 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] Fig.17A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0120] The electronic device 1000 includes but is not limited to: 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 and other components.
[0121] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.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 described in detail 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 used to display a first shooting preview picture acquired based on the current environment in the shooting area, and display the first person object obtained by the cutout process in the first shooting preview picture of 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] Taking pictures based on the second shooting preview picture 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;
[0129] 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 among the at least one first candidate image.
[0130] Optionally, after 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:
[0131] Identify first posture information of the second person object in the third image;
[0132] Determine, according to 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;
[0133] The fourth image displayed in the first display area and the third image displayed in the second display area are synthesized to obtain a composite 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 performs shooting based on the second shooting preview picture 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:
[0135] 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;
[0136] Taking a picture 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;
[0137] 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.
[0138] Optionally, before the processor 1010 performs 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 performs shooting based on the first shooting preview screen displayed in the second display area to obtain the third image of the second person object, it 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 the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the 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 a joystick, 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, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), 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] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the 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, each process of the above-mentioned image capture method embodiment is 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 can 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 capture 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 variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may 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 a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, 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, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a 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 the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present 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 picture acquired 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 picture 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; 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.
2. The method according to claim 1, characterized in that The determining a first image of the first display area in the shooting area includes: Taking pictures 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; 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 among the at least one first candidate image.
3. The method according to claim 2, characterized in that 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: Identify first posture information of the second person object in the third image; Determine, according to 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 fourth image displayed in the first display area and the third image displayed in the second display area are synthesized to obtain a composite image of the first person object in the fourth image and the second person object in the third image.
4. The method according to claim 2, characterized in that: The step of shooting based on the second shooting preview picture 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; Taking a picture 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.
5. The method according to claim 1, characterized in that Before 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: 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.
6. An image capturing device, characterized in that: include: A receiving module, configured to receive a first input to 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 person object in the first image; A first display module, configured to display a first shooting preview picture acquired 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 picture in the first display area; a shooting module, configured to shoot based on the first shooting preview picture 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 picture displayed in the second display area to obtain a third image of the second person object; The first synthesis module is used to synthesize 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 character object and the second character object.
7. The device according to claim 6, characterized in that When determining the first image of the first display area in the shooting area, the first processing module is specifically used to: Taking pictures 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; 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 among the at least one first candidate image.
8. The device according to claim 7, characterized in that The device also includes: A recognition module, used for recognizing first posture information of the second person object in the third image; A second processing module, configured to determine, according to 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.
9. The device according to claim 7, characterized in that When the first processing module 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 used 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; Taking a picture 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.
10. The device according to claim 6, characterized in that The device also includes: The updating module is used for moving the position of the dividing line between the first display area and the second display area in response to a moving 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
Portable terminal
JP2011217121A