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

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

Info

Publication number
CN114157810B
CN114157810B CN202111577115.3A CN202111577115A CN114157810B CN 114157810 B CN114157810 B CN 114157810B CN 202111577115 A CN202111577115 A CN 202111577115A CN 114157810 B CN114157810 B CN 114157810B
Authority
CN
China
Prior art keywords
image
camera
focus
controlling
shooting
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
CN202111577115.3A
Other languages
Chinese (zh)
Other versions
CN114157810A (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.)
Xi'an Weiwo Software Technology Co ltd
Original Assignee
Xi'an Weiwo Software Technology 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 Xi'an Weiwo Software Technology Co ltd filed Critical Xi'an Weiwo Software Technology Co ltd
Priority to CN202111577115.3A priority Critical patent/CN114157810B/en
Publication of CN114157810A publication Critical patent/CN114157810A/en
Application granted granted Critical
Publication of CN114157810B publication Critical patent/CN114157810B/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/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Abstract

The application discloses a shooting method, a shooting device, electronic equipment and a medium, and belongs to the technical field of shooting. The method comprises the following steps: controlling a first camera to focus a first object to obtain a first image of a first field angle; controlling a second camera to focus a second object to obtain a second image of a second field angle; and carrying out image synthesis processing on the first image and the second image, and outputting a third image, wherein the third image comprises the first object and the second object.

Description

Shooting method, shooting device, electronic equipment and medium
Technical Field
The application belongs to the technical field of shooting, and particularly relates to a shooting method, a shooting device, electronic equipment and a medium.
Background
Along with the continuous development of science and technology and the improvement of economic level, the degree of dependence of users on electronic equipment (such as mobile phones, tablet computers and the like) is higher and higher, the requirements of users on shooting effects of the electronic equipment are also higher and higher, the users are not satisfied with simple daily shooting, and the interest and originality of pictures or videos are pursued more and more.
The existing interesting shooting or video recording mode has high shooting requirements on users, and the users are required to strictly re-etch shooting scenes and find proper shooting angles so as to realize interesting effects. The shooting process can be moderately simplified by part of application software, a series of subsequent processing is needed, time and labor are wasted, and images or videos meeting the actual requirements are difficult to shoot or record rapidly, so that the shooting difficulty of a user is greatly increased, and the shooting film rate is low.
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 that in the prior art, shooting interesting images or recording interesting videos is time-consuming and labor-consuming, and images meeting actual requirements are difficult to quickly shoot or record.
In a first aspect, an embodiment of the present application provides a photographing method, including:
controlling a first camera to focus a first object to obtain a first image of a first field angle;
controlling a second camera to focus a second object to obtain a second image of a second field angle;
and carrying out image synthesis processing on the first image and the second image, and outputting a third image, wherein the third image comprises the first object and the second object.
In a second aspect, an embodiment of the present application provides a photographing apparatus, including:
the first image acquisition module is used for controlling the first camera to focus the first object to obtain a first image of a first field angle;
the second image acquisition module is used for controlling the second camera to focus a second object to obtain a second image of a second field angle;
and the third image output module is used for carrying out image synthesis processing on the first image and the second image and outputting a third image, wherein the third image comprises the first object and the second object.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, an embodiment of the present application provides a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the photographing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the shooting method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, a first camera is controlled to focus a first object to obtain a first image with a first field angle, a second camera is controlled to focus a second object to obtain a second image with a second field angle, and the first image and the second image are subjected to image synthesis processing to output a third image, wherein the third image comprises the first object and the second object. According to the embodiment of the application, images with different angles of view are obtained by combining two cameras to focus different objects, and the images are synthesized, so that interesting images can be obtained, in the process, a user does not need to strictly re-etch a shooting scene and search a proper shooting angle, and further, the subsequent processing is not needed, so that the images or videos with interesting effects can be quickly shot or recorded, the shooting difficulty of the user is reduced, and meanwhile, the shooting film rate is improved.
Drawings
Fig. 1 is a flowchart of a shooting method according to an embodiment of the present application;
fig. 2 is a schematic diagram of an interesting shooting mode according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an interesting image according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another interesting image according to an embodiment of the present application;
FIG. 5 is a schematic view of another interesting image according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another interesting image according to an embodiment of the present application;
fig. 7 is a schematic diagram of an interesting recording mode according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a process of recording interesting video according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a photographing device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. 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 through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a photographing method according to an embodiment of the present application is shown, and as shown in fig. 1, the photographing method may include the following steps:
step 101: and controlling the first camera to focus the first object to obtain a first image of the first field angle.
The embodiment of the application can be applied to a scene of combining two cameras to focus different objects to obtain images with different angles of view, and then combining the two images to obtain an interesting image or video.
The embodiment may be applied to an electronic device having two cameras (i.e., a first camera and a second camera), where in practical application, the first camera may be used for focusing and shooting a shooting object in a shooting field of view, and the second camera may be a periscope camera and may be used for focusing and shooting a single shooting object in the shooting field of view, and the first camera may be used for shooting an image with a large field of view, and the second camera may be used for shooting an image with a small field of view.
In the process of shooting interesting images or recording interesting videos by adopting the electronic equipment, a user can start a camera APP (Application) of the electronic equipment and select an interesting shooting mode or an interesting recording mode, as shown in fig. 2, after the user starts the camera APP, a plurality of options are displayed on an APP interface, as shown in the left diagram in fig. 2, a plurality of options of panoramic view, beauty, photographing, video recording and more are displayed in the interface, after the user selects the more option, a button of interesting shooting can be displayed, as shown in the right diagram in fig. 2, and after the user clicks the button of interesting shooting, the interesting shooting mode is entered. Alternatively, as shown in fig. 7, after the user clicks the record button, an option of "interesting record" may be displayed, and after the user clicks the option, a mode of interesting record video may be entered, and so on.
It will be appreciated that the above examples are only examples listed for better understanding of the technical solution of the embodiments of the present application, and are not to be construed as the only limitation of the present embodiments.
The first image is a preview image obtained by focusing a first object in a shooting field of view by using a first camera.
When the electronic equipment is adopted to shoot interesting images or record interesting videos, the first camera can be controlled to focus a first object in a shooting view field so as to obtain a first preview image of a first view angle.
Step 102: and controlling the second camera to focus the second object to obtain a second image of a second field angle.
The second image is a preview image obtained by focusing a second object in the shooting objects by using a second camera on the electronic equipment.
The second object refers to an object focused by using the second camera, and in this example, the type of the second object may be the same as the type of the first object, for example, the first object is a person, the second object is also a person, and so on. Of course, the type of the second object may be different from the type of the second object, for example, the first object is a person, the second object is a building, or the like.
After the first camera is controlled to focus on the first object to obtain the first image of the first field angle, the second camera may be controlled to focus on the second object to obtain the second image of the second field angle, where the first field angle is different from the second field angle, in this example, the first field angle may be greater than the second field angle, and the first field angle may also be less than the second field angle, and specifically, the size relationship corresponding to the first field angle and the second field angle may be determined according to the use requirement, which is not limited in this embodiment.
After the first image and the second image are obtained, step 103 is performed.
Step 103: and carrying out image synthesis processing on the first image and the second image, and outputting a third image, wherein the third image comprises the first object and the second object.
After the first image and the second image are obtained, the first image and the second image may be subjected to image synthesis processing to obtain a third image, and the third image is output by the electronic device, where the third image includes the first object and the second object with different angles of view, so as to achieve capturing of interesting images, for example, as shown in fig. 3, a cylindrical object is an image with a small angle of view obtained by capturing with a secondary camera, and two characters are images with a large angle of view obtained by capturing with a primary camera, and the two images are spliced and fused to obtain the interesting target image as shown in fig. 3. Or as shown in fig. 4, the larger-size character head portrait is obtained by shooting with the auxiliary camera, the smaller-size character head portrait is obtained by shooting with the main camera, and the two head portraits are spliced and fused to obtain the interesting target image as shown in fig. 4. Alternatively, as shown in fig. 5 and 6, the main camera and the sub-camera may be used to capture interesting images.
In this embodiment, after image synthesis of the first image and the second image, the first image and the second image may be further subjected to matting processing, and specifically, the following detailed description may be made in connection with the following specific implementation manner.
In a specific implementation manner of the present application, before the step 103, the method may further include:
step A1: and carrying out matting processing on the first image to generate a first background image and a first object image.
In this embodiment, the first background image refers to an image obtained after the first object in the first image is scratched out.
The first object image refers to an image formed by an image area including the first object within the first image.
After the first camera is controlled to focus on the first object to obtain a first image with a first field angle, the first image can be subjected to matting processing to generate a first background image and a first object image, specifically, an image area containing the first object in the first image can be scratched out, at this time, the obtained image containing the first object is the first object image, and the images of other partial areas are the first background image.
Step A2: and carrying out matting processing on the second image to generate a second background image and a second object image.
The second background image refers to an image obtained after the second object in the second image is scratched out.
The second object image is an image formed by an image area including the second object in the second image.
After the second camera is controlled to focus the second object to obtain a second image with a second field angle, the second image can be subjected to matting processing to generate a second background image and a second object image, specifically, an image area containing the second object in the second image can be scratched out, at this time, the obtained image containing the second object is the second object image, and the images of other partial areas are the second background image.
According to the embodiment of the application, the first image and the second image with different view angles are subjected to matting to obtain the two background images and the two object images, so that the two background images and the two object images can be combined to perform image synthesis processing, and the synthesis of interesting images is realized.
In this embodiment, before the image synthesis of the first image and the second image is performed, the display positions of the first object image and the second object image may also be updated to implement the position adjustment of the object, and specifically, the following detailed description may be made in connection with the following specific implementation manner.
In another specific implementation manner of the present application, before the step 103, the method may further include:
step B1: a first input by a user of the first background image, the first object image, the second background image, and the second object image is received.
In the present embodiment, the first input is an input for adjusting positions of the first object image and the second object image, and in this example, the first input may be an input formed by a user dragging at least one of the first background image, the first object image, the second background image, and the second object image. Of course, in practical application, the first input may also be other input, specifically, may be determined according to the requirement of use, which is not limited in this embodiment.
After the first image is buckled to obtain a first background image and a first object image, and the second image is scratched to obtain a second background image and a second object image, a first input of a user to the first background image, the first object image, the second background image and the second object image can be received.
After receiving the first input, step B2 is performed.
Step B2: in response to the first input, display positions of the first object image and the second object image are updated.
After receiving the first input of the user to the first background image, the first object image, the second background image, and the second object image, the display positions of the first object image and the second object image may be updated in response to the first input to achieve position adjustment of the photographing object.
According to the embodiment of the application, the free adjustment of the display position of the shooting object can be realized by combining the user input, so that the shooting experience of the user is further improved.
In this embodiment, in the process of recording an interesting video by using an electronic device, the shooting multiplying power of the main camera and the auxiliary camera can be dynamically adjusted in combination with the motion trail of the shooting object, so as to realize the recording of the interesting video, and in particular, the following detailed description can be made in combination with the following specific implementation modes.
In another specific implementation of the present application, the step 101 may include:
substep C1: in the process of video shooting, the video recording multiplying power of the first camera is adjusted based on the motion trail of the first object.
In this embodiment, in the process of recording the interesting video by using the electronic device, if the first object is in a motion state, a motion track of the first object may be obtained, and a video recording magnification of the first camera may be adjusted according to the motion track of the first object.
After adjusting the recording magnification of the first camera based on the motion trail of the first object, a sub-step C2 is performed.
Substep C2: and controlling the first camera after the video multiplying power is adjusted to focus the first object, so as to obtain the first image.
After the video multiplying power of the first camera is adjusted, the first camera after the video multiplying power adjustment can be controlled to focus the first object so as to obtain a first image, namely, the video multiplying power of the first camera is automatically adjusted in the process of moving the first object, and the size of the first object is adjusted in real time.
The step 102 may include:
substep D1: and adjusting the video multiplying power of the second camera based on the motion trail.
In the process that the first object is in a motion state, the video multiplying power of the second camera can be adjusted according to the motion trail of the first object.
Substep D2: and controlling the second camera after the video multiplying power is adjusted to focus the second object, so as to obtain the second image.
After the video recording magnification of the second camera is adjusted, the second camera with the adjusted video recording magnification can be controlled to focus the second object so as to obtain a second image.
The above process may be described in detail as follows with reference to fig. 8.
As shown in fig. 8, taking "hand-removable moon" as an example, when recording interesting video, the main camera records the action process of jumping people to "remove the moon", the periscope camera focuses and shoots the moon, the periscope camera changes the multiplying power while the people jump upwards to approach the moon, the moon features gradually become bigger, the position is basically motionless, the main camera shoots people with reduced multiplying power, the video preview shows that the people move opposite to the moon, and in the process of picking people to the moon and falling back to the ground, the periscope camera zoom shooting moon continues to amplify, the people synchronously amplify along with the moon, and the moon moves along with the movement track of the people so as to achieve the animation effect of "removing the moon".
It will be appreciated that the above examples are only embodiments shown for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation of the present embodiments.
According to the embodiment of the application, the video recording multiplying power of the first camera and the second camera is adjusted by combining the motion trail of the object, so that the size of the recorded object is adjusted, and interesting videos can be recorded.
In this embodiment, an image composition mode may also be set in advance, and image composition processing may be performed on the first image and the second image according to the image composition mode, and specifically, the detailed description may be made in connection with the following specific implementation manner.
In another specific implementation manner of the present application, before the step 101, the method may further include:
step E1: a fourth input of the user is received.
In the present embodiment, the fourth input refers to an input for selecting an image composition mode.
In a specific implementation, a selection control of the image composition mode may be displayed in a display screen of the electronic device, and after the user triggers the control, an image composition mode option may be displayed to select a desired image composition mode by the user, in which process, the operation of clicking the image composition mode option by the user may be regarded as a fourth input.
Of course, an image composition mode corresponding to a specific preset gesture may be stored in the system in advance, and the user inputs a specific gesture operation to select the image composition mode, and in this process, the operation of inputting the specific gesture by the user may be regarded as a fourth input.
After receiving the fourth input of the user, step E2 is performed.
Step E2: responsive to the fourth input, an image composition mode is determined.
The image composition mode refers to a mode for composing images of two different angles of view.
In this example, the image composition mode may be a composition mode of a reference image or the like, and in particular, the specific mode for the image composition mode may be determined according to the use requirement, which is not limited in this embodiment, and the image composition mode may be determined in response to a fourth input of the user after the fourth input is received.
The step 103 may include:
substep F1: and according to the image synthesis mode, performing image synthesis processing on the first image and the second image, and outputting the third image.
After the first image and the second image of different angles of view are obtained, the first image and the second image may be subjected to a composition process according to an image composition mode to generate and output a third image.
According to the embodiment of the application, through combining with the automatic synthesis of the image synthesis mode image defined by the user, the manual operation of the user is not needed, so that the shot interesting image can meet the requirements of the user.
In this embodiment, when a plurality of objects are included in the photographed objects, the objects photographed with different angles of view may be selected according to the input of the user, and the camera may be controlled to perform image photographing on the selected objects, and specifically, the following specific implementation manner may be combined, and before the step 101, the method may further include:
step G1: a second input by a user to the first object is received.
In this embodiment, the second input refers to an input by the user to the first object for controlling the first camera to perform focusing.
In the process of shooting interesting images by adopting the electronic equipment, a camera on the electronic equipment can be adopted to focus the objects to be shot, a preview image is formed on a display screen of the electronic equipment, and the preview image contains at least two objects to be shot.
After displaying the preview image, a second input to the first object by the user may be received, which may instruct the first camera to focus on the first object.
The step 101 may include:
substep H1: and responding to the second input, and controlling the first camera to focus the first object to obtain the first image.
After receiving the second input of the user to the first object, the first camera may be controlled to focus on the first object in response to the second input to obtain the first image.
Prior to step 102, the method may further include:
step I1: a third input by the user to the second object is received.
The third input is an input for controlling the second camera to focus on the second object.
After displaying the preview screen, a third input by the user to the second object within the preview screen may be received.
The step 102 may include:
substep J1: and responding to the third input, and controlling the second camera to focus the second object to obtain the second image.
After receiving the third input of the user to the second object, the second camera may be controlled to focus on the second object in response to the third input to obtain a second image.
According to the embodiment of the application, the two cameras can focus different shooting objects by combining the input of the user to the shooting objects, so that images with different angles of view are obtained, the operation mode is simple, and the shooting efficiency of interesting images can be greatly improved.
According to the shooting method provided by the embodiment of the application, the first camera is controlled to focus the first object to obtain the first image of the first field angle, the second camera is controlled to focus the second object to obtain the second image of the second field angle, and the first image and the second image are subjected to image synthesis processing to output the third image, wherein the third image comprises the first object and the second object. According to the embodiment of the application, images with different angles of view are obtained by combining two cameras to focus different objects, and the images are synthesized, so that interesting images can be obtained, in the process, a user does not need to strictly re-etch a shooting scene and search a proper shooting angle, and further, the subsequent processing is not needed, so that the images or videos with interesting effects can be quickly shot or recorded, the shooting difficulty of the user is reduced, and meanwhile, the shooting film rate is improved.
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, an example of a photographing method performed by a photographing device is described as a photographing device provided by the embodiment of the present application.
Referring to fig. 9, a schematic structural diagram of a photographing device according to an embodiment of the present application is shown, and as shown in fig. 9, the photographing device 900 may include the following modules:
a first image acquisition module 910, configured to control the first camera to focus on the first object, so as to obtain a first image with a first field angle;
the second image obtaining module 920 is configured to control the second camera to focus on the second object, so as to obtain a second image with a second angle of view;
and a third image output module 930, configured to perform image synthesis processing on the first image and the second image, and output a third image, where the third image includes the first object and the second object.
Optionally, the apparatus further comprises:
the first object image generation module is used for carrying out matting processing on the first image to generate a first background image and a first object image;
and the second object image generation module is used for carrying out matting processing on the second image to generate a second background image and a second object image.
Optionally, the apparatus further comprises:
a first input receiving module for receiving a first input of a user to the first background image, the first object image, the second background image, and the second object image;
And a display position updating module for updating display positions of the first object image and the second object image in response to the first input.
Optionally, the first image acquisition module 910 includes:
the first video recording multiplying power adjusting unit is used for adjusting the video recording multiplying power of the first camera based on the motion trail of the first object in the video shooting process;
the first image acquisition unit is used for controlling the first camera after the video multiplying power is adjusted to focus the first object to obtain the first image;
the second image acquisition module 920 includes:
the second video recording multiplying power adjusting unit is used for adjusting the video recording multiplying power of the second camera based on the motion trail;
and the second image acquisition unit is used for controlling the second camera after the video multiplying power is adjusted to focus the second object so as to obtain the second image.
Optionally, the apparatus further comprises:
a fourth input receiving module for receiving a fourth input of the user;
an image composition mode determination module for determining an image composition mode in response to the fourth input;
the third image output module 930 includes:
And a third image output unit, configured to perform image synthesis processing on the first image and the second image according to the image synthesis mode, and output the third image.
Optionally, the apparatus further comprises:
a second input receiving module for receiving a second input of a user to the first object;
the first image acquisition module 910 includes:
responding to the second input, and controlling the first camera to focus the first object to obtain the first image;
the apparatus further comprises:
a third input receiving module for receiving a third input of the second object by a user;
the second image acquisition module 920 includes:
and the second image acquisition unit is used for responding to the third input and controlling the second camera to focus the second object so as to obtain the second image.
According to the shooting device provided by the embodiment of the application, the first camera is controlled to focus the first object to obtain the first image of the first field angle, the second camera is controlled to focus the second object to obtain the second image of the second field angle, and the first image and the second image are subjected to image synthesis processing to output the third image, wherein the third image comprises the first object and the second object. According to the embodiment of the application, the images with different angles of view are obtained by focusing different objects through the cameras, and the images are synthesized, so that interesting images can be obtained, in the process, a user does not need to strictly re-etch a shooting scene and search a proper shooting angle, and further, the subsequent processing is not needed, the images or videos with interesting effects can be quickly shot or recorded, the shooting difficulty of the user is reduced, and meanwhile, the shooting film rate is improved.
The shooting device in the embodiment of the application can be a device, and can also 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 server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and 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, and the embodiment of the present application is not limited specifically.
The photographing device provided by the embodiment of the present application can implement each process implemented by the method embodiment of fig. 1, and in order to avoid repetition, details are not repeated here.
Optionally, as shown in fig. 10, the embodiment of the present application further provides an electronic device 1000, including a processor 1001, a memory 1002, and a program or an instruction stored in the memory 1002 and capable of running on the processor 1001, where the program or the instruction implements each process of the above-mentioned embodiment of the photographing method when being executed by the processor 1001, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1100 includes, but is not limited to: radio frequency unit 1101, network module 1102, audio output unit 1103, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, memory 1109, and processor 1110.
Those skilled in the art will appreciate that the electronic device 1100 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1110 by a power management system, such as to perform functions such as managing charging, discharging, and power consumption by the power management system. The electronic device structure shown in fig. 11 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than illustrated, or may combine some components, or may be arranged in different components, which are not described in detail herein. The processor 1110 is configured to control the first camera to focus on the first object, so as to obtain a first image with a first angle of view; controlling a second camera to focus a second object to obtain a second image of a second field angle; and carrying out image synthesis processing on the first image and the second image, and outputting a third image, wherein the third image comprises the first object and the second object.
According to the embodiment of the application, images with different angles of view are obtained by combining two cameras to focus different objects, and the images are synthesized, so that interesting images can be obtained, in the process, a user does not need to strictly re-etch a shooting scene and search a proper shooting angle, and further, the subsequent processing is not needed, so that the images or videos with interesting effects can be quickly shot or recorded, the shooting difficulty of the user is reduced, and meanwhile, the shooting film rate is improved.
Optionally, the processor 1110 is further configured to perform matting processing on the first image to generate a first background image and a first object image; and carrying out matting processing on the second image to generate a second background image and a second object image.
Optionally, a user input unit 1107 is configured to receive a first input of a user on the first background image, the first object image, the second background image, and the second object image;
a display unit 1106 for updating display positions of the first object image and the second object image in response to the first input.
Optionally, in the process of video shooting, adjusting the video recording multiplying power of the first camera based on the motion trail of the first object; the first camera after video multiplying power adjustment is controlled to focus the first object, and the first image is obtained; adjusting the video multiplying power of the second camera based on the motion trail; and controlling the second camera after the video multiplying power is adjusted to focus the second object, so as to obtain the second image.
Optionally, the user input unit 1107 is further configured to receive a fourth input of the user;
a processor 1110 further for determining an image composition mode in response to the fourth input; and according to the image synthesis mode, performing image synthesis processing on the first image and the second image, and outputting the third image.
Optionally, the user input unit 1107 is further configured to receive a second input of the first object from the user;
the processor 1110 is further configured to control, in response to the second input, the first camera to focus on the first object, so as to obtain the first image;
a user input unit 1107, configured to receive a third input of the second object from the user;
the processor 1110 is further configured to control the second camera to focus on the second object in response to the third input, so as to obtain the second image.
According to the embodiment of the application, the user can automatically generate the interesting image by manually adjusting the display position of the shooting object or combining the reference image, so that the operation is simple, time and labor are saved, and the shooting interest of the user is greatly improved.
It should be appreciated that in embodiments of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, the graphics processor 11041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes at least one of a touch panel 11071 and other input devices 11072. The touch panel 11071 is also referred to as a touch screen. The touch panel 11071 may include two parts, a touch detection device and a touch controller. Other input devices 11072 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 1109 may be used to store software programs as well as various data. The memory 1109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1109 may include volatile memory or nonvolatile memory, or the memory 1109 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Memory 1109 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 1110 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above-described shooting method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
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, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the shooting method embodiment, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted.
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 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 computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to 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 having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (9)

1. A photographing method, comprising:
controlling a first camera to focus a first object to obtain a first image of a first field angle;
controlling a second camera to focus a second object to obtain a second image of a second field angle;
performing image synthesis processing on the first image and the second image, and outputting a third image, wherein the third image comprises the first object and the second object;
the controlling the first camera to focus the first object to obtain a first image of a first field angle includes:
in the process of video shooting, adjusting the video recording multiplying power of a first camera based on the motion trail of a first object;
the first camera after video multiplying power adjustment is controlled to focus the first object, and the first image is obtained;
the controlling the second camera to focus the second object to obtain a second image of a second field angle includes:
adjusting the video multiplying power of the second camera based on the motion trail;
and controlling the second camera after the video multiplying power is adjusted to focus the second object, so as to obtain the second image.
2. The method according to claim 1, further comprising, before said subjecting the first image and the second image to image synthesis processing, outputting a third image:
Carrying out matting processing on the first image to generate a first background image and a first object image;
and carrying out matting processing on the second image to generate a second background image and a second object image.
3. The method according to claim 2, wherein the image synthesizing process is performed on the first image and the second image, and before outputting a third image, further comprising:
receiving a first input of a user to the first background image, the first object image, the second background image and the second object image;
in response to the first input, display positions of the first object image and the second object image are updated.
4. The method of claim 1, further comprising, prior to said controlling the first camera to focus on the first object to obtain the first image at the first angle of view:
receiving a fourth input from the user;
determining an image composition mode in response to the fourth input;
and performing image synthesis processing on the first image and the second image, and outputting a third image, wherein the image synthesis processing comprises the following steps:
and according to the image synthesis mode, performing image synthesis processing on the first image and the second image, and outputting the third image.
5. The method of claim 1, wherein before the controlling the first camera to focus on the first object to obtain the first image at the first angle of view, further comprises:
receiving a second input of a user to the first object;
the controlling the first camera to focus the first object to obtain a first image of a first field angle includes:
responding to the second input, and controlling the first camera to focus the first object to obtain the first image;
before the second camera is controlled to focus the second object to obtain a second image with a second field angle, the method further comprises:
receiving a third input of a user to the second object;
the controlling the second camera to focus the second object to obtain a second image of a second field angle includes:
and responding to the third input, and controlling the second camera to focus the second object to obtain the second image.
6. A photographing apparatus, comprising:
the first image acquisition module is used for controlling the first camera to focus the first object to obtain a first image of a first field angle;
the second image acquisition module is used for controlling the second camera to focus a second object to obtain a second image of a second field angle;
A third image output module, configured to perform image synthesis processing on the first image and the second image, and output a third image, where the third image includes the first object and the second object;
the first image acquisition module includes:
the first video recording multiplying power adjusting unit is used for adjusting the video recording multiplying power of the first camera based on the motion trail of the first object in the video shooting process;
the first image acquisition unit is used for controlling the first camera after the video multiplying power is adjusted to focus the first object to obtain the first image;
the second image acquisition module includes:
the second video recording multiplying power adjusting unit is used for adjusting the video recording multiplying power of the second camera based on the motion trail;
and the second image acquisition unit is used for controlling the second camera after the video multiplying power is adjusted to focus the second object so as to obtain the second image.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the first object image generation module is used for carrying out matting processing on the first image to generate a first background image and a first object image;
And the second object image generation module is used for carrying out matting processing on the second image to generate a second background image and a second object image.
8. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the shooting method of any of claims 1-5.
9. 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-5.
CN202111577115.3A 2021-12-21 2021-12-21 Shooting method, shooting device, electronic equipment and medium Active CN114157810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111577115.3A CN114157810B (en) 2021-12-21 2021-12-21 Shooting method, shooting device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111577115.3A CN114157810B (en) 2021-12-21 2021-12-21 Shooting method, shooting device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN114157810A CN114157810A (en) 2022-03-08
CN114157810B true CN114157810B (en) 2023-08-18

Family

ID=80451653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111577115.3A Active CN114157810B (en) 2021-12-21 2021-12-21 Shooting method, shooting device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114157810B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0404523A2 (en) * 1989-06-19 1990-12-27 Nikon Corporation Automatic focusing device
CN105721763A (en) * 2014-12-05 2016-06-29 深圳富泰宏精密工业有限公司 System and method for composition of photos
CN106603820A (en) * 2016-11-25 2017-04-26 努比亚技术有限公司 Area amplifying method and area amplifying device
CN107633235A (en) * 2017-09-27 2018-01-26 广东欧珀移动通信有限公司 Solve lock control method and Related product
CN107767430A (en) * 2017-09-21 2018-03-06 努比亚技术有限公司 One kind shooting processing method, terminal and computer-readable recording medium
CN111586296A (en) * 2020-04-27 2020-08-25 北京小米移动软件有限公司 Image capturing method, image capturing apparatus, and storage medium
CN112399078A (en) * 2020-10-30 2021-02-23 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN112492209A (en) * 2020-11-30 2021-03-12 维沃移动通信有限公司 Shooting method, shooting device and electronic equipment
CN112702497A (en) * 2020-12-28 2021-04-23 维沃移动通信有限公司 Shooting method and device
CN112839166A (en) * 2020-12-02 2021-05-25 维沃移动通信(杭州)有限公司 Shooting method and device and electronic equipment
CN112887609A (en) * 2021-01-27 2021-06-01 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN112911059A (en) * 2021-01-22 2021-06-04 维沃移动通信(杭州)有限公司 Photographing method and device, electronic equipment and readable storage medium
CN113014820A (en) * 2021-03-15 2021-06-22 联想(北京)有限公司 Processing method and device and electronic equipment
WO2021129198A1 (en) * 2019-12-25 2021-07-01 华为技术有限公司 Method for photography in long-focal-length scenario, and terminal

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0404523A2 (en) * 1989-06-19 1990-12-27 Nikon Corporation Automatic focusing device
CN105721763A (en) * 2014-12-05 2016-06-29 深圳富泰宏精密工业有限公司 System and method for composition of photos
CN106603820A (en) * 2016-11-25 2017-04-26 努比亚技术有限公司 Area amplifying method and area amplifying device
CN107767430A (en) * 2017-09-21 2018-03-06 努比亚技术有限公司 One kind shooting processing method, terminal and computer-readable recording medium
CN107633235A (en) * 2017-09-27 2018-01-26 广东欧珀移动通信有限公司 Solve lock control method and Related product
WO2021129198A1 (en) * 2019-12-25 2021-07-01 华为技术有限公司 Method for photography in long-focal-length scenario, and terminal
CN111586296A (en) * 2020-04-27 2020-08-25 北京小米移动软件有限公司 Image capturing method, image capturing apparatus, and storage medium
CN112399078A (en) * 2020-10-30 2021-02-23 维沃移动通信有限公司 Shooting method and device and electronic equipment
CN112492209A (en) * 2020-11-30 2021-03-12 维沃移动通信有限公司 Shooting method, shooting device and electronic equipment
CN112839166A (en) * 2020-12-02 2021-05-25 维沃移动通信(杭州)有限公司 Shooting method and device and electronic equipment
CN112702497A (en) * 2020-12-28 2021-04-23 维沃移动通信有限公司 Shooting method and device
CN112911059A (en) * 2021-01-22 2021-06-04 维沃移动通信(杭州)有限公司 Photographing method and device, electronic equipment and readable storage medium
CN112887609A (en) * 2021-01-27 2021-06-01 维沃移动通信有限公司 Shooting method, shooting device, electronic equipment and storage medium
CN113014820A (en) * 2021-03-15 2021-06-22 联想(北京)有限公司 Processing method and device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Guruprasad Somasundaram ; .Classification and Counting of Composite Objects in Traffic Scenes Using Global and Local Image Analysis.IEEE Transactions on Intelligent Transportation Systems.2012,全文. *

Also Published As

Publication number Publication date
CN114157810A (en) 2022-03-08

Similar Documents

Publication Publication Date Title
CN112714253B (en) Video recording method and device, electronic equipment and readable storage medium
CN112637500B (en) Image processing method and device
CN112954214B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112565611A (en) Video recording method, video recording device, electronic equipment and medium
CN112887609A (en) Shooting method, shooting device, electronic equipment and storage medium
CN111669495B (en) Photographing method, photographing device and electronic equipment
CN112738397A (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114125179B (en) Shooting method and device
CN112887617A (en) Shooting method and device and electronic equipment
CN114390197A (en) Shooting method and device, electronic equipment and readable storage medium
CN112839166A (en) Shooting method and device and electronic equipment
WO2023093669A1 (en) Video filming method and apparatus, and electronic device and storage medium
CN114157810B (en) Shooting method, shooting device, electronic equipment and medium
CN115499589A (en) Shooting method, shooting device, electronic equipment and medium
CN112887624B (en) Shooting method and device and electronic equipment
CN114785969A (en) Shooting method and device
CN114245017A (en) Shooting method and device and electronic equipment
CN114025237A (en) Video generation method and device and electronic equipment
CN112672059B (en) Shooting method and shooting device
CN114500852B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN114390205B (en) Shooting method and device and electronic equipment
CN114285988B (en) Display method, display device, electronic equipment and storage medium
CN114915730B (en) Shooting method and shooting device
CN117294932A (en) Shooting method, shooting device and electronic equipment
CN117692756A (en) Shooting method, shooting device, electronic equipment and readable storage medium

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