CN112995500B - Shooting method, shooting device, electronic equipment and medium - Google Patents

Shooting method, shooting device, electronic equipment and medium Download PDF

Info

Publication number
CN112995500B
CN112995500B CN202011603696.9A CN202011603696A CN112995500B CN 112995500 B CN112995500 B CN 112995500B CN 202011603696 A CN202011603696 A CN 202011603696A CN 112995500 B CN112995500 B CN 112995500B
Authority
CN
China
Prior art keywords
image
camera
preview image
preview
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011603696.9A
Other languages
Chinese (zh)
Other versions
CN112995500A (en
Inventor
陈喆
杨其豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202011603696.9A priority Critical patent/CN112995500B/en
Publication of CN112995500A publication Critical patent/CN112995500A/en
Application granted granted Critical
Publication of CN112995500B publication Critical patent/CN112995500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a medium, and belongs to the technical field of shooting. The shooting method comprises the following steps: receiving a first input of a user to a first object in a first preview image under the condition that a shooting preview interface comprises the first preview image acquired by a main camera; responding to the first input, and displaying a second preview image in a first area associated with the first object, wherein the second preview image is acquired by a first auxiliary camera and is acquired by the first auxiliary camera; respectively controlling the main camera and the first auxiliary camera to take frames to obtain a first image and a second image; and synthesizing the image of the first object in the second image to the first image according to the first superposition display effect of the first preview image and the second preview image, so as to obtain a first target image. This can simplify the process of capturing an image with special effects.

Description

Shooting method, shooting device, electronic equipment and medium
Technical Field
The application belongs to the technical field of photography, and particularly relates to a photographing method, a photographing device, electronic equipment and a medium.
Background
With the development of electronic devices, a photographing function becomes a function commonly used for the electronic devices. Due to the improvement of shooting technology and the convenience of carrying of the electronic equipment, in daily life, a user can shoot images anytime and anywhere by using the electronic equipment.
Currently, in the case of capturing an image with a special effect, a post-synthesis processing mode is generally adopted; however, since the process of post-synthesis is complicated in operation, and a professional image processing worker is generally required to complete the image synthesis process.
As can be seen, in the related art, shooting of an image with a special effect has a problem that the operation is difficult and cumbersome.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method, a shooting device, electronic equipment and a medium, which can solve the problems of high operation difficulty and complexity in shooting images with special effects in the related technology.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a photographing method, including:
receiving a first input of a user to a first object in a first preview image under the condition that a shooting preview interface comprises the first preview image acquired by a main camera;
Responding to the first input, and displaying a second preview image in a first area associated with the first object, wherein the second preview image is acquired by a first auxiliary camera and is acquired by the first auxiliary camera;
respectively controlling the main camera and the first auxiliary camera to take frames to obtain a first image and a second image;
and synthesizing the image of the first object in the second image to the first image according to the first superposition display effect of the first preview image and the second preview image, so as to obtain a first target image.
In a second aspect, an embodiment of the present application provides a photographing apparatus, including:
the first receiving module is used for receiving a first input of a user on a first object in the first preview image under the condition that the shooting preview interface comprises the first preview image acquired by the main camera;
the first display module is used for responding to the first input, displaying a second preview image in a first area related to the first object, wherein the second preview image is acquired by a first auxiliary camera and is acquired by the first auxiliary camera;
the first frame taking module is used for respectively controlling the main camera and the first auxiliary camera to take frames to obtain a first image and a second image;
And the first synthesizing module is used for synthesizing the image of the first object in the second image to the first image according to the first superposition display effect of the first preview image and the second preview image to obtain a first target image.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, the second preview image of the first object in the first preview image, that is, the second preview image of the first object with the special effect is acquired, and the image of the first object in the second image is synthesized into the first image based on the first superposition display effect of the first preview image and the second preview image, so as to obtain the first target image, that is, the image with the first superposition display effect can be obtained in the shooting process of the image, and the first target image corresponding to the image with the first superposition display effect can be output, so that the shooting process of the image with the special effect can be simplified without later image processing.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a flowchart of a photographing method provided in an embodiment of the present application;
fig. 3a is one of operation schematic diagrams of a photographing method provided in an embodiment of the present application;
FIG. 3b is a second schematic diagram illustrating an embodiment of a photographing method;
FIG. 3c is a third schematic diagram illustrating an operation of the photographing method according to the embodiment of the present application;
FIG. 3d is a schematic diagram illustrating the operation of the photographing method according to the embodiment of the present application;
FIG. 3e is a fifth schematic diagram illustrating the operation of the photographing method according to the embodiment of the present application;
FIG. 3f is a sixth schematic operation diagram of the photographing method according to the embodiment of the present application;
FIG. 3g is a seventh schematic operation diagram of the photographing method according to the embodiment of the present application;
fig. 3h is an eighth schematic operation diagram of the photographing method according to the embodiment of the present application;
fig. 3i is a ninth operation schematic diagram of the photographing method provided in the embodiment of the present application;
fig. 3j is a schematic diagram illustrating the operation of the photographing method according to the embodiment of the present application;
FIG. 3k is a schematic diagram of a forward frame grabber provided by an embodiment of the present application;
FIG. 3l is a schematic diagram of a backward grabbing frame provided in an embodiment of the present application;
Fig. 4 is a block diagram of a photographing apparatus provided in an embodiment of the present application;
FIG. 5 is one of the block diagrams of the electronic device provided in the embodiments of the present application;
fig. 6 is a second block diagram of the electronic device according to the embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, where appropriate, such that embodiments of the present application may be practiced in orders other than those illustrated and described herein, and that the objects identified by "first," "second," etc. are generally of a type not limited to the number of objects, e.g., the first object may be one or more, and that the plurality in the present application means at least two. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The shooting method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
For convenience of understanding, the photographing method provided in the embodiments of the present application may be applied to an electronic device, which may include at least two cameras, and different cameras have different focuses Duan Canshu. As shown in fig. 1, the electronic device includes 3 cameras, specifically, a first camera 10, a second camera 20, and a third camera 30.
In one embodiment, the focal segment parameters may be used to represent a zoom factor corresponding to the camera.
For example, the focal length parameter of the first camera 10 may be 0.5 to 1 times, that is, when the first camera 10 is used for shooting, the shooting object may be scaled by 0.5 to 1 times; the focal length parameter of the second camera 20 can be 1-2 times, namely when the second camera 20 is used for shooting, the shooting object can be zoomed by 1-2 times; the focal length parameter of the third camera 30 may be 2-10 times, that is, when the third camera 30 is used for shooting, the shooting object may be scaled by 2-10 times.
The shooting method provided by the embodiment of the invention can be applied to shooting scenes of images with special effects, for example, different shooting effects of the same object are shown in the images; or different shooting effects of different objects are shown in the image, etc.
In one embodiment, different shooting effects of the same object are shown in the image, and the shooting effects can be that an enlarged image of the target object is included in the image, and a reduced image of the target object is also included in the image, namely, the enlarged image and the thumbnail of the target object are combined in the image.
Referring to fig. 2, fig. 2 is a flowchart of a photographing method according to an embodiment of the present invention, as shown in fig. 2, including the following steps:
step 201, receiving a first input of a user to a first object in a first preview image when the shooting preview interface comprises the first preview image acquired by a main camera.
In this step, the primary camera may be a camera having a first focal segment parameter; the camera can also be a standard camera of the electronic device, namely a conventional camera, and can be used for shooting conventional images, such as conventional face shooting, landscape shooting and the like.
In this embodiment, the first object is a shooting object that needs to be specially processed in the first preview image, and may be one or at least two.
The first input may be a user selection input, a press input, a long press input, etc. of the first object in the first preview image.
As shown in fig. 3a, in the case where the special effect image of the first object 311 in the first preview image 31 needs to be acquired, the acquisition of the special effect image of the first object 311 may be triggered by receiving a selection operation of the first object 311 in the first preview image 31 by the user.
In one embodiment, the special effect image may be an enlarged image, a reduced image, an offset image, or an image in which the first object appears multiple times, that is, the special effect image includes both the enlarged image and the reduced image of the first object, and the number of the enlarged image and the reduced image may be one or multiple.
Step 202, in response to the first input, displaying a second preview image in a first area associated with the first object.
In this step, the second preview image may be a preview image of the first object acquired by the first auxiliary camera of the electronic device, that is, an image with a special effect of the first object that the user wants to acquire. The first auxiliary camera may be a camera with a second focal point Duan Canshu, and the second focal point Duan Canshu is different from the first focal segment parameters.
The second preview image is displayed in the first area associated with the first object, which may be displayed in a superimposed manner in the first area associated with the first object, and the first area may be a peripheral area of the first object in the first preview image, such as a left area, a right area, and the like of the first object.
As shown in fig. 3c, the second preview image 33 is displayed at the photographing interface, and the second preview image 33 includes only the image of the first object.
In addition, the second preview image may also cover the first object setting in the first preview image. Moreover, the user can also adjust the information such as the display size, the display position, the transparency and the like of the second preview image so as to adjust the display effect of the second preview image.
And 203, respectively controlling the main camera and the first auxiliary camera to take frames to obtain a first image and a second image.
In this step, a first image may be selected from a first image buffer queue corresponding to the primary camera, and a second image may be selected from a second image buffer queue corresponding to the first secondary camera.
The selection rules of the first image and the second image can be determined based on a shooting algorithm of the electronic device or a setting of a user. For example, the last frame image in the buffer queue may be used as the first image, or the frame image with the highest definition in the buffer queue may be used as the first image.
And 204, synthesizing the image of the first object in the second image to the first image according to the first superposition display effect of the first preview image and the second preview image, so as to obtain a first target image.
In this step, the first target image has the same display effect as the first superimposed display effect; moreover, by synthesizing the image of the first object in the second image into the first image, that is, synthesizing the image with the special effect of the first object into the first image, shooting of the image with the special effect is realized, post image processing is not required, and the shooting process of the image with the special effect can be simplified.
In addition, for the image content of the first preview image and the second preview image displayed on the shooting preview interface, the first superposition display effect displayed on the shooting preview interface can be adjusted by adjusting the information such as the display size, the display position and the transparency of the second preview image, so that the display effect of the first target image can be flexibly adjusted in the shooting process.
In this way, by acquiring the second preview image of the first object in the first preview image, that is, acquiring the second preview image of the first object with the special effect, and synthesizing the image of the first object in the second image into the first image based on the first superposition display effect of the first preview image and the second preview image, the first target image is obtained, that is, in the shooting process of the image, the image with the first superposition display effect can be obtained, and the first target image corresponding to the image with the first superposition display effect can be output, so that the shooting process of the image with the special effect can be simplified without post image processing.
It can be understood that, in the case where the first superimposed display effect of the first preview image and the second preview image displayed on the photographing preview interface meets the user requirement, the clicking operation of the photographing control by the user may be received, so as to output the first target image corresponding to the first superimposed display effect, which meets the user requirement.
Optionally, step 203 includes: the main camera is controlled to capture a first image from the tail of a first image cache queue, and the first auxiliary camera is controlled to capture a second image from the tail of a second image cache queue; or controlling the sensor of the main camera to output a first image after sensitization, and controlling the sensor of the first auxiliary camera to output a second image after sensitization.
Optionally, step 204 includes: the image of the first object is scratched from the second image, and an intermediate image is obtained; and synthesizing the intermediate image to the first image according to the first superposition display effect of the first preview image and the second preview image to obtain a first target image.
In this embodiment, the image of the first object may be extracted from the second image by means of image extraction, so as to obtain an intermediate image, and the intermediate image is synthesized into the first image, so as to obtain the first target image.
Wherein the intermediate image only includes the image content of the first object and does not include other content than the image content of the first image in the second image.
Optionally, the displaying, in response to the first input, a second preview image in a first area associated with the first object, including:
in response to the first input, displaying N camera identifications in a second area associated with the first object, wherein each camera identification indicates an auxiliary camera, and N is an integer greater than 1;
receiving a second input of a user to a first camera identifier in the N camera identifiers;
and responding to the second input, and displaying a second preview image in a first area associated with the first object, wherein the second preview image is a preview image of the first object acquired by a first auxiliary camera corresponding to the first camera identification.
In this embodiment, the first input may be a selection input or a pressing input applied to the first object by the user, and N camera identifications are displayed in the second area associated with the first object by responding to the first input; so as to select the camera identification corresponding to the auxiliary camera for collecting the second preview image from the N camera identifications. Therefore, by providing a plurality of selectable auxiliary cameras, the user can conveniently select cameras with different focuses Duan Canshu to collect images of the first object, so that the user can collect second preview images with different multiples, and the selection of special effects of the first object is enriched.
For example, in the case where the special effect image of the first object to be acquired is a 5-fold magnified image, the selection input to the third camera 30 in fig. 1 may be received, and the second preview image of the first object may be acquired by the third camera 30.
The identification in the invention is used for indicating characters, symbols, images and the like of information, and controls or other containers can be used as carriers for displaying the information, including but not limited to character identification, symbol identification and image identification.
The second area may be an upper area or a lower area of the first object, and the camera identifier may be displayed in the form of a digital icon, such as # 1, # 2, # 3, or (1), (2), or (3).
The association relationship between the camera identifier and the camera may be preset, for example, the focal Duan Canshu of the camera corresponding to the camera identifier "1#" or "(1)" is set to 0.5-1 times, the focal Duan Canshu of the camera corresponding to the camera identifier "2#" or "(2)" is set to 1-2 times, and the focal Duan Canshu of the camera corresponding to the camera identifier "3#" or "(3)" is set to 2-10 times.
In addition, when the user selects the corresponding camera identifier, the focus Duan Canshu of the camera corresponding to the camera identifier may be displayed in a preset area of the camera identifier, for example, directly above the preset area. For example, when the camera mark "1#" or "(1)" is selected, the "focus Duan Canshu" may be displayed as 0.5 to 1 times "right above the camera mark" 1# "or" (1) "; when the camera mark '2#' or '2' is selected, the 'coke Duan Canshu' can be displayed right above the camera mark '2#' or '2'; when the camera mark "3#" or "(3)" is selected, the "focus Duan Canshu" may be displayed 2 to 10 times directly above the camera mark "3#" or "(3)".
Specifically, as shown in fig. 3b, in the case of receiving the selection input of the first object 311, N camera identifications may be displayed in the second area 32 associated with the first object 311.
Optionally, in response to the second input, after displaying a second preview image in the first region associated with the first object, the method further comprises:
receiving a third input of a user to a second camera identifier in the N camera identifiers;
responding to the third input, and displaying a third preview image in a third area associated with the first object, wherein the third preview image is a preview image of the first object acquired by a second auxiliary camera corresponding to the second camera identifier;
respectively controlling the main camera, the first auxiliary camera and the second auxiliary camera to take frames to obtain a third image, a fourth image and a fifth image;
synthesizing the image of the first object in the fourth image and the fifth image to the third image according to the second superposition display effect of the first preview image, the second preview image and the third preview image to obtain a second target image;
the second auxiliary camera is a camera with a third focal length parameter, and the third focal length parameter is different from the second focal Duan Canshu.
In this embodiment, a second camera identifier may be selected to collect a third preview image of the first object by using a second auxiliary camera corresponding to the second camera identifier; therefore, the preview images with the second superposition display effect of the first preview image, the second preview image and the third preview image can be obtained, the image effect of the preview images is effectively enriched, the user can obtain the preview images with different image effects by selecting different auxiliary cameras, the degree of freedom of obtaining special image effects is improved, and the interactivity of the user and the equipment in the shooting process is increased.
Further optionally, the controlling the primary camera, the first secondary camera, and the second secondary camera to take frames respectively, to obtain a third image, a fourth image, and a fifth image includes:
the method comprises the steps of controlling the main camera to capture a third image from the tail of a third image cache queue, controlling the first auxiliary camera to capture a fourth image from the tail of a fourth image cache queue, and controlling the second auxiliary camera to capture a fifth image from the tail of a fifth image cache queue, wherein the third image cache queue is a queue for caching images captured by the main camera, the fourth image cache queue is a queue for caching images captured by the first auxiliary camera, and the fifth image cache queue is a queue for caching images captured by the second auxiliary camera;
Or, controlling the sensor of the main camera to output a third image after being sensitized, controlling the sensor of the first auxiliary camera to output a fourth image after being sensitized, and controlling the sensor of the second auxiliary camera to output a fifth image after being sensitized.
Further optionally, the synthesizing the image of the first object in the fourth image and the fifth image to the third image according to the second superposition display effect of the first preview image, the second preview image and the third preview image to obtain a second target image includes:
the image of the first object is scratched from the fourth image, and a first intermediate image is obtained;
the image of the first object is scratched from the fifth image, and a second intermediate image is obtained;
and synthesizing the first intermediate image and the second intermediate image into the third image according to the second superposition display effect of the first preview image, the second preview image and the third preview image to obtain a second target image.
In this embodiment, the image of the first object may be scratched from the fourth image by means of image scratching, so as to obtain a first intermediate image; and extracting the image of the first object from the fifth image to obtain a second intermediate image, and combining the first intermediate image and the second intermediate image into a third image to obtain a second target image.
Wherein the first intermediate image includes only the image content of the first object in the fourth image and does not include other content than the image content of the first image in the fourth image; the second intermediate image includes only the image content of the first object in the fifth image and does not include other content than the image content of the first image in the fifth image.
In addition, for the image content of the first preview image, the second preview image and the third preview image displayed on the shooting preview interface, the display effect of the second target image can be flexibly adjusted in the shooting process by adjusting the information of the display size, the display position, the transparency and the like of the second preview image and the information of the display size, the display position, the transparency and the like of the third preview image.
In this example, since the third focal length parameter of the second auxiliary camera is different from the second focal length Duan Canshu of the first auxiliary camera, the second preview image and the third preview image with different scaling ratios can be acquired, that is, the second preview image with the first scaling multiple can be acquired through the first auxiliary camera, and the second preview image with the second scaling multiple can be acquired through the second auxiliary camera.
As shown in fig. 3c, the second superimposed display effect of the image of the first object in the first preview image 31, the second preview image 33, and the third preview image 34 displayed on the photographing preview interface, that is, the image of the first object in the first preview image 31, the second preview image 33, and the third preview image 34 displayed on the photographing preview interface can achieve the display effect of gradually enlarging.
Further optionally, the method further includes, before synthesizing the image of the first object in the fourth image and the fifth image to the third image according to the second overlapping display effect of the first preview image, the second preview image and the third preview image to obtain a second target image:
and displaying the second preview image and the third preview image in a superposition manner on the first preview image according to a preset superposition order.
In this embodiment, the image contents of the second preview image and the third preview image may be displayed in a superimposed manner on the first preview image line according to a preset superimposing order, so as to flexibly adjust the superimposed display effect of the preview images displayed on the photographing preview interface.
If the overlapping sequence is the first preview image, the second preview image and the third preview image in sequence, and there is a portion where the image content of the second preview image and the image content of the third preview image overlap, the display effect of the overlapping portion may be changed by adjusting the transparency of the overlapping portion of the second preview image and the third preview image.
Moreover, a filter effect may also be provided to add a filter effect to the corresponding image content. And because the second preview image and the third preview image are preview images of the first object acquired by different focuses Duan Canshu, different transparency and filter effects can be set, so that different image effects are overlapped to enrich the image effects.
Optionally, in response to the first input, after displaying the second preview image in the first area associated with the first object, the method further includes, before controlling the primary camera and the first secondary camera to take frames to obtain the first image and the second image, respectively:
receiving a fourth input to the second preview image;
in response to the fourth input, display parameters of the second preview image are updated, the display parameters including at least one of display size, display position, transparency.
In this embodiment, the display parameters of the second preview image may be updated to enrich the display effect of the second preview image, and further enrich the superimposed display effect of the first preview image and the second preview image. Compared with the later synthesis processing, the image scaling offset operation is performed on the image, so that the definition of the image can be improved, particularly the definition of the amplified image can be improved, and the shooting operation can be simplified.
The fourth input may be an enlargement input, a reduction input, an offset input, a transparency setting input, or an operation, among others.
As shown in fig. 3d, a user's zoom-in input to the second preview image 33 may be received, such as a double-click operation or a double-finger zoom-in operation of the second preview image 33 by the user, to obtain a zoomed-in second preview image 33, as shown in fig. 3 e.
As shown in fig. 3f, a user's zoom-out input to the second preview image 33 may be received, such as a double-click operation or a double-finger zoom-out operation of the second preview image 33 by the user, to obtain a zoomed-out second preview image 33, as shown in fig. 3 g.
As shown in fig. 3h, an offset input of the user to the second preview image 33 may be received, such as a movement operation or a drag operation of the second preview image 33 by the user, to obtain the offset second preview image 33, as shown in fig. 3 i.
Optionally, displaying a second preview image in the first area associated with the first object includes:
acquiring a first target preview image acquired by the first auxiliary camera, wherein the first target preview image comprises the first object;
the image of the first object is scratched from the first target preview image, and a second preview image is obtained;
And displaying the second preview image in a first area associated with the first object.
In this embodiment, the second preview image may be obtained from the collected first target preview image by means of image matting, and the image of the first object in the first target preview image may be scratched by removing redundant image content in the first target preview image.
In the process of picking up the image of the first object, the image data of the pixel area of the first object in the first target preview image can be acquired, the acquired image data corresponding to the first object is used as the image data of the second preview image, and the image data is superimposed and displayed in the first area associated with the first object.
Optionally, the first object includes a first sub-object and a second sub-object;
the displaying, in response to the first input, a second preview image in a first area associated with the first object, comprising:
acquiring a second target preview image acquired by a first auxiliary camera, wherein the second target preview image comprises the first sub-object and the second sub-object;
from the second target preview image, the first sub-preview image of the first sub-object and the second sub-preview image of the second sub-object are scratched;
Displaying the first sub-preview image in a first sub-region associated with the first sub-object, and displaying the second sub-preview image in a second sub-region associated with the second sub-object;
the method further includes, in response to the first input, after displaying a second preview image in a first region associated with the first object:
respectively controlling the main camera and the first auxiliary camera to take frames to obtain a sixth image and a seventh image;
synthesizing the images of the first sub-object and the second sub-object in the seventh image to the sixth image according to the third superposition display effect of the first preview image, the first sub-preview image and the second sub-preview image to obtain a third target image;
wherein the first region includes the first sub-region and a second sub-region.
In this embodiment, when the auxiliary camera with the target focus Duan Canshu is required to be used for at least two objects in the first preview image, the second target preview images of the at least two objects can be collected simultaneously by the auxiliary camera with the target focus Duan Canshu, and the corresponding images are respectively scratched from the second target preview images, so that the acquisition of the preview images of the at least two objects is realized, and compared with the case that the preview images of each object are respectively collected by the camera with the target focus Duan Canshu, the shooting times can be effectively reduced.
Further optionally, the controlling the primary camera and the first secondary camera to take frames respectively, to obtain a sixth image and a seventh image includes:
the main camera is controlled to capture a left image from the tail of a sixth image cache queue, and the first auxiliary camera is controlled to capture a seventh image from the tail of a seventh image cache queue, wherein the sixth image cache queue is a queue for caching the images captured by the main camera, and the seventh image cache queue is a queue for caching the images captured by the first auxiliary camera;
or controlling the sensor of the main camera to output a sixth image after being sensitized, and controlling the sensor of the first auxiliary camera to output a seventh image after being sensitized.
Further optionally, the synthesizing the images of the first sub-object and the second sub-object in the seventh image to the sixth image according to the third superposition display effect of the first preview image, the first sub-preview image and the second sub-preview image to obtain a third target image includes:
the image of the first sub-object is scratched from the seventh image, and a third intermediate image is obtained;
The image of the second sub-object is scratched from the seventh image, and a fourth intermediate image is obtained;
and combining the third intermediate image and the fourth intermediate image to the sixth image according to the third superposition display effect of the first preview image, the first sub-preview image and the second sub-preview image to obtain a third target image.
In this embodiment, the image of the first sub-object may be scratched from the seventh image by means of image scratching, so as to obtain a third intermediate image; and extracting the image of the second sub-object from the seventh image to obtain a fourth intermediate image, and combining the third intermediate image and the fourth intermediate image into the sixth image to obtain a second target image.
As shown in fig. 3j, the shooting preview interface displays a first preview image 31, where the first preview image 31 includes a first object 311 and a second object 312, and in a case where the first object 311 and the second object 312 need to acquire preview images acquired by a No. 3 auxiliary camera, a second target preview image of the first object 311 and the second object 312 may be acquired simultaneously by the No. 3 auxiliary camera, and based on an image data separation technique, a third intermediate image 35 of the first object 311 and a fourth intermediate image 36 of the second object 312 are extracted from the second target preview image, and the third intermediate image 35 and the fourth intermediate image 36 are displayed superimposed on the first preview image 31.
In addition, in a case where at least two objects in the first preview image need to acquire an image captured by the auxiliary camera having the focus Duan Canshu, that is, in a case where at least two objects in the first preview image need to configure the auxiliary camera having the focus Duan Canshu, different auxiliary cameras may be configured for each object. Under the condition that a plurality of auxiliary cameras are distributed to an object, after a first auxiliary camera of the object is set, a first preview image acquired by the first auxiliary camera is moved; and re-selecting the object, and setting a second auxiliary camera of the object to acquire a second preview image acquired by the second auxiliary camera.
It should be noted that, in the present application, the control camera captures a frame, mainly capturing a corresponding image frame from a corresponding image buffer queue, and the capturing of the image frame includes capturing a frame forward and capturing a frame backward.
The forward frame capturing means that after receiving shooting input, the buffered image frames are taken out from the tail of the image buffer queue and are processed by hardware and algorithm to generate corresponding pictures; the frame grabbing step comprises the steps of receiving shooting input, setting parameters such as exposure of a camera, outputting a last frame of image after the camera sensor senses the light, and generating a corresponding picture after hardware and algorithm processing.
As shown in fig. 3k, the electronic device includes a first camera 371, a second camera 372, and a third camera 373, in the process of using the three cameras to capture, a first image buffer queue 374 is used for buffering images captured by the first camera 371, a second image buffer queue 375 is used for buffering images captured by the second camera 372, and a third image buffer queue 376 is used for buffering images captured by the third camera 373. In the shooting process of grabbing frames forwards, the cached image frames can be taken out from the tail part of each image cache queue, and after hardware and algorithm processing, corresponding pictures are generated. And the three frames of images output by the three cameras are overlapped and synthesized during preview processing, and preview images with special overlapping effects are displayed on a preview interface.
As shown in fig. 3l, the electronic device includes a first camera 381, a second camera 382, and a third camera 383, in a process of using the three cameras to capture, a first image buffer queue 384 is used for buffering images captured by the first camera 381, a second image buffer queue 385 is used for buffering images captured by the second camera 382, and a third image buffer queue 386 is used for buffering images captured by the third camera 383. In the shooting process of backwards grabbing frames, parameters such as exposure of each camera can be set, each camera sensor outputs the last frame of image after sensitization, and corresponding pictures are generated after hardware and algorithm processing. And the three frames of images output by the three cameras are overlapped and synthesized during preview processing, and preview images with special overlapping effects are displayed on a preview interface.
According to the shooting method, when a first preview image is displayed on a shooting preview interface, a first input of a user to a first object in the first preview image is received; responding to the first input, and displaying a second preview image in a first area associated with the first object, wherein the second preview image is a preview image of the first object acquired by a first camera; outputting a target image based on image content of the first preview image and the second preview image; the first camera is a camera with first focal segment parameters. Thus, the shooting effect of the target image can be flexibly adjusted.
It should be noted that, in the photographing method provided in the embodiment of the present application, the execution subject may be a photographing device, or a control module in the photographing device for executing the photographing method. In the embodiment of the present application, taking an example of a photographing method performed by a photographing device, the photographing device provided in the embodiment of the present application is described.
Referring to fig. 4, fig. 4 is a block diagram of a photographing apparatus according to an embodiment of the present application, and as shown in fig. 4, the photographing apparatus 400 includes:
a first receiving module 401, configured to receive a first input of a user to a first object in a first preview image when a capturing preview interface includes the first preview image acquired by a main camera;
A first display module 402, configured to display, in response to the first input, a second preview image in a first area associated with the first object, where the second preview image is a preview image of the first object acquired by a first auxiliary camera;
a first frame taking module 403, configured to control the primary camera and the first secondary camera to take frames respectively, so as to obtain a first image and a second image;
and a first synthesizing module 404, configured to synthesize the image of the first object in the second image to the first image according to the first overlapping display effect of the first preview image and the second preview image, so as to obtain a first target image.
Optionally, the first frame taking module 403 is specifically configured to control the primary camera to capture a first image from a tail of a first image cache queue, and control the first secondary camera to capture a second image from a tail of a second image cache queue, where the first image cache queue is a queue for caching images captured by the primary camera, and the second image cache queue is a queue for caching images captured by the first secondary camera;
or the method is specifically used for controlling the sensor of the main camera to output a first image after being sensitized, and controlling the sensor of the first auxiliary camera to output a second image after being sensitized;
The first synthesis module 404 includes:
a first extracting unit, configured to extract an image of the first object from the second image, to obtain an intermediate image;
and the synthesis output unit is used for synthesizing the intermediate image into the first image according to the first superposition display effect of the first preview image and the second preview image to obtain a first target image.
Optionally, the primary camera is a camera with a first focal segment parameter, the first secondary camera is a camera with a second focal Duan Canshu, and the first focal segment parameter and the second focal Duan Canshu are different.
Optionally, the first display module 402 includes:
the first display unit is used for responding to the first input, displaying N camera identifications in a second area associated with the first object, wherein each camera identification indicates one auxiliary camera, and N is an integer greater than 1;
the receiving unit is used for receiving second input of a user to a first camera identifier in the N camera identifiers;
and the second display unit is used for responding to the second input, displaying a second preview image in a first area associated with the first object, wherein the second preview image is acquired by a first auxiliary camera corresponding to the first camera identification.
Optionally, the photographing device 400 further includes:
the second receiving module is used for receiving third input of a user to a second camera identifier in the N camera identifiers;
the second display module is used for responding to the third input, displaying a third preview image in a third area related to the first object, wherein the third preview image is a preview image of the first object acquired by a second auxiliary camera corresponding to the second camera identifier;
the second frame taking module is used for respectively controlling the main camera, the first auxiliary camera and the second auxiliary camera to take frames to obtain a third image, a fourth image and a fifth image;
the second synthesizing module is used for synthesizing the image of the first object in the fourth image and the fifth image to the third image according to the second superposition display effect of the first preview image, the second preview image and the third preview image to obtain a second target image;
the second auxiliary camera is a camera with a third focal length parameter, and the third focal length parameter is different from the second focal Duan Canshu.
Optionally, the photographing device 400 further includes:
And the third display module is used for displaying the second preview image and the third preview image in a superposition manner on the first preview image according to a preset superposition order.
Optionally, the photographing device 400 further includes:
a third receiving module for receiving a fourth input to the second preview image;
and the updating module is used for responding to the fourth input and updating the display parameters of the second preview image, wherein the display parameters comprise at least one of display size, display position and transparency.
Optionally, the first display module 402 includes:
the first acquisition unit is used for acquiring a first target preview image acquired by the first auxiliary camera, wherein the first target preview image comprises the first object;
a second picking unit, configured to pick the image of the first object from the first target preview image, to obtain a second preview image;
and the third display unit is used for displaying the second preview image in the first area associated with the first object.
Optionally, the first object includes a first sub-object and a second sub-object;
the first display module 402 includes:
the second acquisition unit is used for acquiring a second target preview image acquired by the first auxiliary camera, wherein the second target preview image comprises the first sub-object and the second sub-object;
A third extracting unit, configured to extract, from the second target preview image, a first sub-preview image of the first sub-object and a second sub-preview image of the second sub-object;
a fourth display unit, configured to display, in a first sub-region associated with the first sub-object, the first sub-preview image, and display, in a second sub-region associated with the second sub-object, the second sub-preview image;
the photographing apparatus 400 further includes:
the third frame taking module is used for respectively controlling the main camera and the first auxiliary camera to take frames to obtain a sixth image and a seventh image;
the third synthesizing processing module is used for synthesizing the images of the first sub-object and the second sub-object in the seventh image to the sixth image according to a third superposition display effect of the first preview image, the first sub-preview image and the second sub-preview image to obtain a third target image;
wherein the first region includes the first sub-region and a second sub-region.
The photographing device in the embodiment of the application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The photographing device in the embodiment of the 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 embodiments of the present application.
The photographing device provided in this embodiment of the present application can implement each process implemented by the method embodiment of fig. 2, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 5, the embodiment of the present application further provides an electronic device 500, including a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and capable of running on the processor 501, where the program or the instruction implements each process of the above-mentioned shooting method embodiment when executed by the processor 501, and the process can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Referring to fig. 6, fig. 6 is a block diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 6, the electronic device 600 includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
Those skilled in the art will appreciate that the electronic device 600 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 610 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The user input unit 607 is configured to receive, when the capturing preview interface includes a first preview image acquired by the main camera, a first input of a first object in the first preview image by a user;
a display unit 606, configured to display, in response to the first input, a second preview image in a first area associated with the first object, where the second preview image is a preview image of the first object acquired by the first auxiliary camera;
a processor 610, configured to control the primary camera and the first secondary camera to take frames, respectively, to obtain a first image and a second image;
and a processor 610, configured to synthesize an image of the first object in the second image to the first image according to a first overlapping display effect of the first preview image and the second preview image, so as to obtain a first target image.
Optionally, the processor 610 is configured to control the primary camera to capture a first image from a tail of a first image buffer queue, and control the first secondary camera to capture a second image from a tail of a second image buffer queue, where the first image buffer queue is a queue for buffering the images captured by the primary camera, and the second image buffer queue is a queue for buffering the images captured by the first secondary camera;
or the sensor used for controlling the main camera outputs a first image after sensitization, and controls the sensor of the first auxiliary camera outputs a second image after sensitization;
a processor 610, configured to extract an image of the first object from the second image, to obtain an intermediate image;
and a processor 610, configured to synthesize the intermediate image to the first image according to a first overlapping display effect of the first preview image and the second preview image, so as to obtain a first target image.
Optionally, the primary camera is a camera with a first focal segment parameter, the first secondary camera is a camera with a second focal Duan Canshu, and the first focal segment parameter and the second focal Duan Canshu are different.
Optionally, a display unit 606 is configured to display N camera identifications in response to the first input in a second area associated with the first object, where each camera identification indicates one auxiliary camera and N is an integer greater than 1;
a user input unit 607, configured to receive a second input of a first camera identifier from the N camera identifiers by a user;
the display unit 606 is configured to display, in response to the second input, a second preview image in a first area associated with the first object, where the second preview image is a preview image of the first object acquired by a first auxiliary camera corresponding to the first camera identifier.
Optionally, a user input unit 607 is configured to receive a third input of a second camera identifier from the N camera identifiers by a user;
a display unit 606, configured to respond to the third input, and display a third preview image in a third area associated with the first object, where the third preview image is a preview image of the first object acquired by a second auxiliary camera corresponding to the second camera identifier;
a processor 610, configured to control the primary camera, the first auxiliary camera, and the second auxiliary camera to take frames, respectively, to obtain a third image, a fourth image, and a fifth image;
A processor 610, configured to synthesize an image of the first object in the fourth image and the fifth image to the third image according to a second overlapping display effect of the first preview image, the second preview image, and the third preview image, so as to obtain a second target image;
the second auxiliary camera is a camera with a third focal length parameter, and the third focal length parameter is different from the second focal Duan Canshu.
Optionally, the display unit 606 is configured to display the second preview image and the third preview image in a superimposed manner on the first preview image according to a preset superimposing order.
Optionally, a user input unit 607 for receiving a fourth input for said second preview image;
a processor 610 for updating display parameters of the second preview image in response to the fourth input, the display parameters including at least one of display size, display position, transparency.
Optionally, the processor 610 is configured to acquire a first target preview image acquired by the first auxiliary camera, where the first target preview image includes the first object;
a processor 610, configured to extract an image of the first object from the first target preview image, to obtain a second preview image;
And a display unit 606, configured to display the second preview image in a first area associated with the first object.
Optionally, the first object includes a first sub-object and a second sub-object;
a processor 610, configured to obtain a second target preview image acquired by the first auxiliary camera, where the second target preview image includes the first sub-object and the second sub-object;
a processor 610 configured to extract, from the second target preview image, a first sub-preview image of the first sub-object and a second sub-preview image of the second sub-object;
a display unit 606, configured to display the first sub-preview image in a first sub-region associated with the first sub-object, and display the second sub-preview image in a second sub-region associated with the second sub-object;
a processor 610, configured to control the primary camera and the first secondary camera to take frames, respectively, to obtain a sixth image and a seventh image;
a processor 610, configured to synthesize, according to a third overlapping display effect of the first preview image, the first sub-preview image, and the second sub-preview image, the images of the first sub-object and the second sub-object in the seventh image to the sixth image, so as to obtain a third target image;
Wherein the first region includes the first sub-region and a second sub-region.
It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes image data of still pictures or videos obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. The memory 609 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 610 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction realizes each process of the above-mentioned shooting method embodiment, and the same technical effect can be achieved, so that repetition is avoided, and no redundant description is provided herein.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, implementing each process of the shooting method embodiment, and achieving the same technical effect, so as to avoid repetition, and no redundant description is provided herein.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (18)

1. A photographing method, comprising:
receiving a first input of a user to a first object in a first preview image under the condition that a shooting preview interface comprises the first preview image acquired by a main camera;
responding to the first input, and displaying a second preview image in a first area associated with the first object, wherein the second preview image is acquired by a first auxiliary camera and is acquired by the first auxiliary camera;
respectively controlling the main camera and the first auxiliary camera to take frames to obtain a first image and a second image;
synthesizing the image of the first object in the second image to the first image according to the first superposition display effect of the first preview image and the second preview image to obtain a first target image;
wherein said displaying, in response to said first input, a second preview image in a first region associated with said first object, comprises:
in response to the first input, displaying N camera identifications in a second area associated with the first object, wherein each camera identification indicates an auxiliary camera, and N is an integer greater than 1;
receiving a second input of a user to a first camera identifier in the N camera identifiers;
And responding to the second input, and displaying a second preview image in a first area associated with the first object, wherein the second preview image is a preview image of the first object acquired by a first auxiliary camera corresponding to the first camera identification.
2. The method of claim 1, wherein the controlling the primary camera and the first secondary camera to take frames, respectively, to obtain a first image and a second image comprises:
the method comprises the steps of controlling a main camera to capture a first image from the tail of a first image cache queue, and controlling a first auxiliary camera to capture a second image from the tail of a second image cache queue, wherein the first image cache queue is a queue for caching the images captured by the main camera, and the second image cache queue is a queue for caching the images captured by the first auxiliary camera;
or controlling the sensor of the main camera to output a first image after being sensitized, and controlling the sensor of the first auxiliary camera to output a second image after being sensitized;
the synthesizing the image of the first object in the second image to the first image according to the first superposition display effect of the first preview image and the second preview image to obtain a first target image includes:
The image of the first object is scratched from the second image, and an intermediate image is obtained;
and synthesizing the intermediate image to the first image according to the first superposition display effect of the first preview image and the second preview image to obtain a first target image.
3. The method of claim 1, wherein the primary camera is a camera having a first focal segment parameter, the first secondary camera is a camera having a second focal Duan Canshu, and the first focal segment parameter and the second focal Duan Canshu are different.
4. The method of claim 1, wherein in response to the second input, after displaying a second preview image in a first region associated with the first object, the method further comprises:
receiving a third input of a user to a second camera identifier in the N camera identifiers;
responding to the third input, and displaying a third preview image in a third area associated with the first object, wherein the third preview image is a preview image of the first object acquired by a second auxiliary camera corresponding to the second camera identifier;
respectively controlling the main camera, the first auxiliary camera and the second auxiliary camera to take frames to obtain a third image, a fourth image and a fifth image;
Synthesizing the image of the first object in the fourth image and the fifth image to the third image according to the second superposition display effect of the first preview image, the second preview image and the third preview image to obtain a second target image;
the second auxiliary camera is a camera with a third focal length parameter, and the third focal length parameter is different from the second focal Duan Canshu.
5. The method of claim 4, wherein the compositing the image of the first object in the fourth image and the fifth image to the third image according to the second overlay display effect of the first preview image, the second preview image, and the third preview image, before obtaining the second target image, further comprises:
and displaying the second preview image and the third preview image in a superposition manner on the first preview image according to a preset superposition order.
6. The method of claim 1, wherein in response to the first input, after displaying a second preview image in a first region associated with the first object, the method further comprises, before controlling the primary camera and the first secondary camera to frame, respectively, to obtain a first image and a second image:
Receiving a fourth input to the second preview image;
in response to the fourth input, display parameters of the second preview image are updated, the display parameters including at least one of display size, display position, transparency.
7. The method of claim 1, wherein displaying the second preview image in the first area associated with the first object comprises:
acquiring a first target preview image acquired by the first auxiliary camera, wherein the first target preview image comprises the first object;
the image of the first object is scratched from the first target preview image, and a second preview image is obtained;
and displaying the second preview image in a first area associated with the first object.
8. The method of claim 1, wherein the first object comprises a first sub-object and a second sub-object;
the displaying, in response to the first input, a second preview image in a first area associated with the first object, comprising:
acquiring a second target preview image acquired by a first auxiliary camera, wherein the second target preview image comprises the first sub-object and the second sub-object;
From the second target preview image, the first sub-preview image of the first sub-object and the second sub-preview image of the second sub-object are scratched;
displaying the first sub-preview image in a first sub-region associated with the first sub-object, and displaying the second sub-preview image in a second sub-region associated with the second sub-object;
the method further includes, in response to the first input, after displaying a second preview image in a first region associated with the first object:
respectively controlling the main camera and the first auxiliary camera to take frames to obtain a sixth image and a seventh image;
synthesizing the images of the first sub-object and the second sub-object in the seventh image to the sixth image according to the third superposition display effect of the first preview image, the first sub-preview image and the second sub-preview image to obtain a third target image;
wherein the first region includes the first sub-region and a second sub-region.
9. A photographing apparatus, comprising:
the first receiving module is used for receiving a first input of a user on a first object in the first preview image under the condition that the shooting preview interface comprises the first preview image acquired by the main camera;
The first display module is used for responding to the first input, displaying a second preview image in a first area related to the first object, wherein the second preview image is acquired by a first auxiliary camera and is acquired by the first auxiliary camera;
the first frame taking module is used for respectively controlling the main camera and the first auxiliary camera to take frames to obtain a first image and a second image;
the first synthesizing module is used for synthesizing the image of the first object in the second image to the first image according to the first superposition display effect of the first preview image and the second preview image to obtain a first target image;
wherein, the first display module includes:
the first display unit is used for responding to the first input, displaying N camera identifications in a second area associated with the first object, wherein each camera identification indicates one auxiliary camera, and N is an integer greater than 1;
the receiving unit is used for receiving second input of a user to a first camera identifier in the N camera identifiers;
and the second display unit is used for responding to the second input, displaying a second preview image in a first area associated with the first object, wherein the second preview image is acquired by a first auxiliary camera corresponding to the first camera identification.
10. The shooting device of claim 9, wherein the first frame taking module is specifically configured to control the primary camera to capture a first image from a tail of a first image buffer queue, and control the first secondary camera to capture a second image from a tail of a second image buffer queue, where the first image buffer queue is a queue for buffering images captured by the primary camera, and the second image buffer queue is a queue for buffering images captured by the first secondary camera;
or the method is specifically used for controlling the sensor of the main camera to output a first image after being sensitized, and controlling the sensor of the first auxiliary camera to output a second image after being sensitized;
the first synthesis module includes:
a first extracting unit, configured to extract an image of the first object from the second image, to obtain an intermediate image;
and the synthesis output unit is used for synthesizing the intermediate image into the first image according to the first superposition display effect of the first preview image and the second preview image to obtain a first target image.
11. The camera of claim 9, wherein the primary camera is a camera having a first focal length parameter, the first secondary camera is a camera having a second focal length Duan Canshu, and the first focal length parameter and the second focal length Duan Canshu are different.
12. The photographing device of claim 9, wherein said photographing device further comprises:
the second receiving module is used for receiving third input of a user to a second camera identifier in the N camera identifiers;
the second display module is used for responding to the third input, displaying a third preview image in a third area related to the first object, wherein the third preview image is a preview image of the first object acquired by a second auxiliary camera corresponding to the second camera identifier;
the second frame taking module is used for respectively controlling the main camera, the first auxiliary camera and the second auxiliary camera to take frames to obtain a third image, a fourth image and a fifth image;
the second synthesizing module is used for synthesizing the image of the first object in the fourth image and the fifth image to the third image according to the second superposition display effect of the first preview image, the second preview image and the third preview image to obtain a second target image;
the second auxiliary camera is a camera with a third focal length parameter, and the third focal length parameter is different from the second focal Duan Canshu.
13. The photographing device of claim 12, wherein said photographing device further comprises:
and the third display module is used for displaying the second preview image and the third preview image in a superposition manner on the first preview image according to a preset superposition order.
14. The photographing device of claim 9, wherein said photographing device further comprises:
a third receiving module for receiving a fourth input to the second preview image;
and the updating module is used for responding to the fourth input and updating the display parameters of the second preview image, wherein the display parameters comprise at least one of display size, display position and transparency.
15. The photographing device of claim 9, wherein the first display module comprises:
the first acquisition unit is used for acquiring a first target preview image acquired by the first auxiliary camera, wherein the first target preview image comprises the first object;
a second picking unit, configured to pick the image of the first object from the first target preview image, to obtain a second preview image;
and the third display unit is used for displaying the second preview image in the first area associated with the first object.
16. The photographing device of claim 9, wherein said first object comprises a first sub-object and a second sub-object;
the first display module includes:
the second acquisition unit is used for acquiring a second target preview image acquired by the first auxiliary camera, wherein the second target preview image comprises the first sub-object and the second sub-object;
a third extracting unit, configured to extract, from the second target preview image, a first sub-preview image of the first sub-object and a second sub-preview image of the second sub-object;
a fourth display unit, configured to display, in a first sub-region associated with the first sub-object, the first sub-preview image, and display, in a second sub-region associated with the second sub-object, the second sub-preview image;
the photographing apparatus further includes:
the third frame taking module is used for respectively controlling the main camera and the first auxiliary camera to take frames to obtain a sixth image and a seventh image;
the third synthesizing processing module is used for synthesizing the images of the first sub-object and the second sub-object in the seventh image to the sixth image according to a third superposition display effect of the first preview image, the first sub-preview image and the second sub-preview image to obtain a third target image;
Wherein the first region includes the first sub-region and a second sub-region.
17. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the shooting method of any one of claims 1 to 8.
18. A readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implements the steps of the shooting method according to any one of claims 1 to 8.
CN202011603696.9A 2020-12-30 2020-12-30 Shooting method, shooting device, electronic equipment and medium Active CN112995500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011603696.9A CN112995500B (en) 2020-12-30 2020-12-30 Shooting method, shooting device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011603696.9A CN112995500B (en) 2020-12-30 2020-12-30 Shooting method, shooting device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN112995500A CN112995500A (en) 2021-06-18
CN112995500B true CN112995500B (en) 2023-08-08

Family

ID=76345145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011603696.9A Active CN112995500B (en) 2020-12-30 2020-12-30 Shooting method, shooting device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN112995500B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794831B (en) * 2021-08-13 2023-08-25 维沃移动通信(杭州)有限公司 Video shooting method, device, electronic equipment and medium
CN113766129B (en) * 2021-09-13 2023-12-05 维沃移动通信(杭州)有限公司 Video recording method, video recording device, electronic equipment and medium
CN113905175A (en) * 2021-09-27 2022-01-07 维沃移动通信有限公司 Video generation method and device, electronic equipment and readable storage medium
CN114143455A (en) * 2021-11-25 2022-03-04 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN114520875B (en) * 2022-01-28 2024-04-02 西安维沃软件技术有限公司 Video processing method and device and electronic equipment
CN114598819A (en) * 2022-03-16 2022-06-07 维沃移动通信有限公司 Video recording method and device and electronic equipment
CN114979487A (en) * 2022-05-27 2022-08-30 联想(北京)有限公司 Image processing method, image processing device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108495029A (en) * 2018-03-15 2018-09-04 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN111541845A (en) * 2020-04-30 2020-08-14 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN112135049A (en) * 2020-09-24 2020-12-25 维沃移动通信有限公司 Image processing method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20200101207A (en) * 2019-02-19 2020-08-27 삼성전자주식회사 Electronic device and method for modifying magnification of image using multiple cameras

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108495029A (en) * 2018-03-15 2018-09-04 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN111541845A (en) * 2020-04-30 2020-08-14 维沃移动通信(杭州)有限公司 Image processing method and device and electronic equipment
CN112135049A (en) * 2020-09-24 2020-12-25 维沃移动通信有限公司 Image processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN112995500A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN112995500B (en) Shooting method, shooting device, electronic equipment and medium
US11758265B2 (en) Image processing method and mobile terminal
CN112492209B (en) Shooting method, shooting device and electronic equipment
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
CN113141450B (en) Shooting method, shooting device, electronic equipment and medium
JP2007174589A (en) Thumbnail creation program
CN112135046A (en) Video shooting method, video shooting device and electronic equipment
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
CN113794829B (en) Shooting method and device and electronic equipment
CN112637500B (en) Image processing method and device
CN112954193B (en) Shooting method, shooting device, electronic equipment and medium
CN112532808A (en) Image processing method and device and electronic equipment
CN113923350A (en) Video shooting method and device, electronic equipment and readable storage medium
CN112822394B (en) Display control method, display control device, electronic equipment and readable storage medium
CN113207038B (en) Video processing method, video processing device and electronic equipment
CN114449174A (en) Shooting method and device and electronic equipment
CN113727001A (en) Shooting method and device and electronic equipment
CN112437232A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN113852757B (en) Video processing method, device, equipment and storage medium
CN113852756B (en) Image acquisition method, device, equipment and storage medium
CN112887603B (en) Shooting preview method and device and electronic equipment
CN114025100A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112584040A (en) Image display method and device and electronic equipment
RU2792413C1 (en) Image processing method and mobile terminal
CN112333388B (en) Image display method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant