Shooting method and device
By using two cameras in electronic devices, one takes the horizon as the reference to shoot the overall picture, and the other takes the target object with a preset motion state, synthesizes it into a video, which solves the problem that ordinary users find it difficult to shoot high-difficulty and interesting videos, and realizes the Simplification of the shooting process and diversity of videos.
Patent Information
- Application Number
- CN202111444571.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2041-11-30
AI Technical Summary
The prior art is difficult for ordinary users to shoot some interesting videos that require specific actions or high-difficulty shooting, and the post-image processing is complex.
By using two cameras in an electronic device, one taking the horizon as the reference to the overall picture, and the other shooting the target object in a preset motion state, synthesizing it into a video.
It realizes that the videos with fun and diverse are shot without the need for users to perform difficult actions, simplifying the shooting process.
Smart Images

Figure CN114143462B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of camera technology, and specifically relates to a shooting method and device. Background Art
[0002] With the rapid development of terminal technology, more and more terminals have shooting functions, such as digital cameras, mobile phones, tablet computers, etc. People begin to use mobile phones and other terminals to take pictures or record videos to share some interesting or cool things.
[0003] Some fun sports videos require athletes to perform corresponding actions, such as flipping or standing upside down in the air, which is dangerous for non-professionals, or they can only be obtained by post-processing some images. This method of synthesizing videos through post-processing is troublesome and most ordinary users do not know how to operate. Therefore, it is difficult for users to shoot some fun videos. Summary of the invention
[0004] The embodiments of the present application provide a shooting method and device, which can solve the problem that it is difficult for users to shoot some interesting videos.
[0005] In a first aspect, an embodiment of the present application provides a shooting method, the method comprising:
[0006] Receiving a first input from a user on a first shooting preview interface;
[0007] In response to the first input, controlling a first camera of the electronic device to shoot a first picture with the horizon as a reference, wherein the first picture includes a target shooting object;
[0008] During the shooting process of the first camera, controlling the second camera of the electronic device to shoot the target object in a preset motion state;
[0009] The image captured by the first camera and the image captured by the second camera are combined into a target video.
[0010] In a second aspect, an embodiment of the present application provides a photographing device, the device comprising:
[0011] A first receiving module, used to receive a first input from a user on a first shooting preview interface;
[0012] A first control module, configured to control a first camera of the electronic device to shoot a first picture with the horizon as a reference in response to the first input, wherein the first picture includes a target shooting object;
[0013] A second control module is used to control the second camera of the electronic device to shoot the target object in a preset motion state during the shooting process of the first camera;
[0014] A synthesis module is used to synthesize the image captured by the first camera and the image captured by the second camera into a target video.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0018] In an embodiment of the present application, a first input of a user to a first shooting preview interface is first received, and then in response to the first input, a first camera of the electronic device is controlled to shoot a first picture with the horizon as a reference, the first picture includes a target object, and during the shooting process of the first camera, a second camera of the electronic device is controlled to shoot the target object in a preset motion state, and then the image captured by the first camera and the image captured by the second camera are synthesized into a target video. In an embodiment of the present application, while the first camera shoots the overall picture based on the horizon, the second camera is used to shoot the target object in a preset motion state, so that the first camera and the second camera can shoot the same target object in different reference states, respectively, to achieve the purpose of users shooting interesting videos, making the shooting more diverse. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a flow chart of a photographing method provided in an embodiment of the present application;
[0020] Figure 2 is a schematic diagram of an image captured by a first camera provided in an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of an image captured by a second camera provided in an embodiment of the present application;
[0022] Figure 4is a schematic diagram of an image displayed in a shooting preview window provided in an embodiment of the present application;
[0023] Figure 5 is a schematic diagram of an electronic device provided in an embodiment of the present application;
[0024] Figure 6 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0027] The following is combined with Figure 1-6 , a shooting method and device provided by an embodiment of the present application are described in detail through specific embodiments and their application scenarios.
[0028] like Figure 1 As shown, it is a flow chart of a shooting method provided by an embodiment of the present application. Figure 1 As shown, the shooting method may include: contents shown in S101 to S104.
[0029] In S101, a first input of a user on a first shooting preview interface is received.
[0030] In this example, when the user needs to record a scene, he can turn on the camera of the electronic device, enter the preview interface, and then start the extreme sports mode of the preview interface to obtain a first shooting preview interface, which includes multiple shooting objects, such as people, animals, plants, and landscapes. Then, the recording of the entire scene can be started by starting the control.
[0031] The first input may be a single-click input, a double-click input, a long-press input, etc., and the first input may also be a first operation. The start control is used to control the start or pause of video recording during video recording.
[0032] In S102 , in response to a first input, a first camera of the electronic device is controlled to shoot a first picture based on a horizon.
[0033] The first picture includes the target shooting object.
[0034] It is worth noting that shooting with the horizon as the reference means that an initial horizon direction is set in the electronic device (camera). During the rotation of the electronic device, the direction of the gravity sensor can be obtained in real time, so that the rotation angle of the electronic device relative to the initial direction is obtained, and then the picture cropped by the Electronic Image Stabilization (EIS) is rotated in the opposite direction by a corresponding angle. In this way, it can be ensured that the picture recorded by the electronic device during the rotation process is always positive, that is, the image is shot with the horizon as the reference.
[0035] Among them, the first camera can be a wide-angle camera, so that the shooting angle and range are larger, more content can be captured, and multiple people, landscapes, animals, etc. can be presented in the picture.
[0036] In S103, during the shooting process of the first camera, the second camera of the electronic device is controlled to shoot the target object in a preset motion state.
[0037] Among them, the preset motion state can be tilting, rotating, flipping, inverting and the like, which shall be subject to the actual situation and is not limited in this application.
[0038] It is worth noting that the electronic device may include multiple cameras, and the multiple cameras may include the first camera and the second camera. Of course, the number of the first camera and the second camera may also be multiple. Among them, the second camera may be a face recognition camera, that is, the purpose of photographing a human body can be achieved through the face recognition function of the second camera, and in the process of photographing an object or other living body, the second camera does not need to activate the face recognition function.
[0039] Among them, using the first camera and the second camera to shoot the target object can specifically be straight shooting. Straight shooting is a shooting method that takes a full-body shot of an individual or a group of individuals without switching lenses or taking close-ups of parts.
[0040] In S104, the image captured by the first camera and the image captured by the second camera are synthesized into a target video. Specifically, after the first camera and the second camera have completed shooting of the target object, the image captured by the first camera and the image captured by the second camera are synthesized to form a target video, so that after completing shooting of the target object, the synthesized target video is displayed on a display interface of the electronic device for preview, editing or output by a user.
[0041] In this example, in response to the first input to the first shooting preview interface, the first camera of the electronic device is controlled to shoot a first picture containing a target object with the horizon as a reference, and at the same time, the second camera in the electronic device is controlled to shoot the target object in a preset motion state, so that an electronic device can shoot at least two images at the same time, one of which is an image that is always positive, that is, the image is based on the horizon, and the other image moves with the movement of the lens. By synthesizing these two images, actions that only professionals can do, such as flipping or standing upside down in the air, can be obtained, making the shooting process and the resulting video more interesting.
[0042] In an embodiment of the present application, a first input of a user to a first shooting preview interface is first received, and then in response to the first input, a first camera of the electronic device is controlled to shoot a first picture with the horizon as a reference, the first picture includes a target object, and during the shooting process of the first camera, a second camera of the electronic device is controlled to shoot the target object in a preset motion state, and then the image captured by the first camera and the image captured by the second camera are synthesized into a target video. In an embodiment of the present application, while the first camera shoots the overall picture based on the horizon, the second camera is used to shoot the target object in a preset motion state, so that the first camera and the second camera can shoot the same target object in different reference states, respectively, to achieve the purpose of users shooting interesting videos, making the shooting more diverse.
[0043] In a possible implementation of the present application, after controlling the first camera of the electronic device to shoot the first picture with the horizon as a reference, and before controlling the second camera of the electronic device to shoot the target object in a preset motion state, the shooting method may further include: receiving a second input from the user on the target object.
[0044] The target shooting object is a plurality of objects, which may be two, three or more than three, and the specific number is subject to the actual shooting.
[0045] That is, after controlling the first camera to shoot the first picture with the horizon as the reference, and before controlling the second camera to shoot the target object in the preset motion state, the second input can be performed on the target object in the first picture. For example, according to the user's shooting needs, the target object corresponding to the user's needs can be locked by double-clicking the target object, long pressing the target object, etc., to achieve a more accurate and clear shooting purpose of the target object.
[0046] Correspondingly, controlling the second camera of the electronic device to photograph the target subject in a preset motion state may include: controlling multiple second cameras of the electronic device to photograph multiple objects in preset motion states respectively.
[0047] Wherein, a second camera is used to photograph an object.
[0048] That is, when the user's second input on the target object is received, the second cameras having the same number as the target objects are controlled to shoot the target objects one-to-one in a preset motion state.
[0049] In this embodiment, different target subjects can be photographed one-on-one through multiple second cameras of an electronic device, so as to simultaneously realize images of multiple target subjects moving with the lens, and then by synthesizing them with the images captured by the first camera, it is possible to simultaneously obtain images of multiple target subjects performing movements such as flipping, rotating or tilting, making the shooting process and the captured target video more interesting.
[0050] In a possible implementation of the present application, synthesizing the image captured by the first camera and the image captured by the second camera into a target video may include:
[0051] The image captured by the first camera and the image captured by the second camera are synthesized frame by frame in real time according to the image acquisition sequence; and the target video obtained by the frame by frame real time synthesis is displayed in the shooting preview window of the first shooting preview interface.
[0052] That is, in this embodiment, the image synthesis work is performed in real time during the image shooting process.
[0053] In this embodiment, the image captured by the first camera and the images captured by the plurality of second cameras can be synthesized frame by frame in real time according to the acquisition order of the graphics, and displayed in real time in the shooting preview window of the first shooting preview interface. That is to say, during the shooting process, the user can see the synthesized target video in real time on the display interface of the electronic device, and can watch while recording, so that the user can make timely adjustments to the action of the target object, so that the captured target video is more realistic and better meets the user's requirements.
[0054] In a specific embodiment of the present application, Figure 2-4 As shown, they are respectively an image captured by the first camera, an image captured by the second camera, and an image synthesized from the image captured by the first camera and the image captured by the second camera.
[0055] Specifically, taking the example of recording a video of a target subject walking, the user only needs to turn the phone upside down during the shooting process. Since the shooting process of the first camera is always based on the horizon, the direction of the image captured by the first camera is always positive. In the image captured by the second camera, the image of the person is upside down or tilted. By matching and fusing the two frames of images in real time, the effect of a person walking upside down in the air or walking tilted can be obtained, and some gestures can be combined according to personal preferences to produce richer and more interesting effects.
[0056] In a possible implementation of the present application, after controlling the first camera of the electronic device to shoot the first picture with the horizon as a reference, the shooting method may further include: detecting a motion state of the electronic device.
[0057] The motion state may include tilting, rotating, etc.
[0058] Accordingly, during the shooting process of the first camera, controlling the second camera of the electronic device to shoot the target object in a preset motion state may include: during the shooting process of the first camera, controlling the second camera of the electronic device to shoot the target object according to the motion state of the electronic device.
[0059] In this embodiment, after controlling the first camera to shoot the first picture with the horizon as a reference, the motion state of the electronic device can also be detected, and then the second camera can be controlled to shoot the target object with a corresponding motion state according to the motion state of the electronic device.
[0060] That is to say, during the movement of the electronic device relative to the horizon, the first camera can be used to shoot a picture that does not move with the movement of the electronic device, and the second camera can be used to shoot a picture that moves with the movement of the electronic device. By synthesizing the above two pictures, a target video can be obtained in which the target object moves in the picture with the movement state of the electronic device. This eliminates the need for the target object to make a movement process corresponding to the movement state of the electronic device, and can also meet the user's requirements for shooting interesting videos.
[0061] In a possible implementation of the present application, the shooting preview window of the first shooting preview interface displays a target video synthesized frame by frame in real time, wherein the motion state of the target shooting object in the target video is the same as the motion state of the electronic device. In other words, the motion state of the target shooting object in the target video screen presented to the user is the same as the motion state of the electronic device.
[0062] For instance, taking the case of skiing as an example, the target subject is skiing in a straight line. The user can obtain a target video of the target subject performing a rotating motion by rotating the electronic device. Thus, there is no need for the target subject to perform difficult motions, and a target video of "the target subject performing difficult motions" can be captured, thereby satisfying the user's need to shoot interesting videos.
[0063] In a specific embodiment of the present application, the horizon initial angle of the first camera and the horizon initial angle of the second camera can be set to the same value, that is, the shooting angles of the two cameras are the same. In another embodiment of the present application, the horizon initial angle of the first camera and the horizon initial angle of the second camera can also be set to different values, as described below.
[0064] During the process of shooting with the first camera, before controlling the second camera of the electronic device to shoot the target object in a preset motion state, the shooting method may further include: setting the initial horizon angle of the second camera of the electronic device and the initial horizon angle of the first camera of the electronic device to different angles. The initial horizon angle is the angle of the shooting reference line of the camera relative to the horizon.
[0065] That is to say, the initial directions of the first camera and the second camera relative to the horizon can be set to different angles, which can better improve the operational flexibility of the shooting process and make the shooting work more portable.
[0066] For example, taking the example of shooting a target subject walking upside down, if the initial angles of the first camera and the second camera relative to the horizon are the same, the electronic device needs to be rotated 180 degrees to shoot the desired picture. If the above-mentioned different angles are adopted, that is, the initial angles of the first camera and the second camera relative to the horizon are different, for example, 180 degrees apart, at this time, only the first camera and the second camera need to be turned on to shoot at the same time, without rotating the electronic device, to obtain the target video of the target subject walking upside down.
[0067] Accordingly, when there are multiple target shooting objects, the initial horizon angles of the multiple second cameras can be set to different angles to obtain a variety of different actions, so that the shooting effect is better, the operation is simpler and more convenient, the flexibility is higher, and the fun is greater.
[0068] It should be noted that the shooting method provided in the embodiment of the present application can be executed by a shooting device or a control module in the shooting device that executes the shooting method. In the embodiment of the present application, the shooting device provided in the embodiment of the present application is described by taking the shooting method executed by the shooting device as an example.
[0069] An embodiment of the present application further provides a photographing device, which may include: a first receiving module, a first control module, a second control module and a synthesis module.
[0070] Specifically, a first receiving module is used to receive a first input from a user on a first shooting preview interface; a first control module is used to control a first camera of the electronic device to shoot a first picture with the horizon as a reference in response to the first input, wherein the first picture includes a target object; a second control module is used to control a second camera of the electronic device to shoot the target object in a preset motion state during shooting by the first camera; and a synthesis module is used to synthesize an image captured by the first camera and an image captured by the second camera into a target video.
[0071] In an embodiment of the present application, first, the first receiving module receives the first input of the user to the first shooting preview interface, and then in response to the first input, the first control module controls the first camera of the electronic device to shoot the first picture with the horizon as the reference, and the first picture includes the target shooting object. During the shooting process of the first camera, the second control module controls the second camera of the electronic device to shoot the target shooting object in a preset motion state, and then, the synthesis module is used to synthesize the image captured by the first camera and the image captured by the second camera into a target video. In an embodiment of the present application, while the first camera shoots the overall picture with the horizon as the reference, the second camera is used to shoot the target shooting object in a preset motion state, so that the first camera and the second camera are used to shoot together, and the images captured by the two cameras are synthesized, so as to achieve the purpose of users shooting interesting videos and make the shooting more diverse.
[0072] In a possible implementation manner of the present application, the photographing device may further include: a second receiving module.
[0073] Specifically, the second receiving module is used to receive a second input of a user on a target photographing object, wherein the target photographing object is a plurality of objects.
[0074] Correspondingly, the second control module is used to: control multiple second cameras of the electronic device to respectively shoot multiple objects in preset motion states; wherein one second camera is used to shoot one object.
[0075] In a possible implementation of the present application, a synthesis module is used to synthesize the images captured by the first camera and the images captured by the second camera frame by frame in real time according to the image capture order; and is used to display the target video obtained by the real-time synthesis frame by frame in the shooting preview window of the first shooting preview interface.
[0076] In a possible implementation manner of the present application, the photographing device may further include: a detection module.
[0077] Specifically, the detection module is used to detect the motion state of the electronic device, and the motion state includes tilting and rotating.
[0078] Correspondingly, the second control module is used to: during the shooting process of the first camera, control the second camera of the electronic device to shoot the target object according to the movement state of the electronic device.
[0079] In a possible implementation manner of the present application, the photographing device may further include: a setting module.
[0080] Specifically, the setting module is used to set the initial horizon angle of the second camera of the electronic device and the initial horizon angle of the first camera of the electronic device to different angles.
[0081] The photographing device in the embodiment of the present application may be a device, or a component, integrated circuit or chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device may be a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0082] The shooting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0083] The shooting device provided in the embodiment of the present application can achieve Figure 1-Figure 6 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0084] Alternatively, if Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501, a memory 502, and a program or instruction stored in the memory 502 and executable on the processor 501. When the program or instruction is executed by the processor 501, each process of the above-mentioned shooting method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0085] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0086] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0087] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610.
[0088] Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0089] Among them, the processor 610 is used to: receive a first input from a user on a first shooting preview interface; in response to the first input, control the first camera of the electronic device to shoot a first picture with the horizon as a reference, wherein the first picture includes a target object; during the shooting process of the first camera, control the second camera of the electronic device to shoot the target object in a preset motion state; and synthesize the image captured by the first camera and the image captured by the second camera into a target video.
[0090] In an embodiment of the present application, a first input of a user to a first shooting preview interface is first received, and then in response to the first input, a first camera of the electronic device is controlled to shoot a first picture with the horizon as a reference, the first picture includes a target shooting object, and during the shooting process of the first camera, a second camera of the electronic device is controlled to shoot the target shooting object in a preset motion state, and then the image captured by the first camera and the image captured by the second camera are synthesized into a target video. In an embodiment of the present application, while the first camera shoots the entire picture with the ground plane as a reference, the second camera is used to shoot the target shooting object in a preset motion state, so that the first camera and the second camera are used to shoot the target shooting object together, and then the image captured by the first camera is synthesized with the image captured by the second camera to achieve the purpose of users shooting interesting videos, making the shooting more diverse.
[0091] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 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, etc. 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: a touch detection device and a touch controller. Other input devices 6072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 609 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 610 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 610.
[0092] The embodiment of the present application also provides a readable storage medium, which stores a program or instruction, and when the program or instruction is executed by a processor, each process of the shooting method embodiment provided in any of the above embodiments is implemented. And the same technical effect can be achieved, so it will not be repeated here to avoid repetition.
[0093] 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 computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0094] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned shooting method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0095] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0096] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0098] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A shooting method, characterized in that: The method comprises: Receiving a first input from a user on a first shooting preview interface; In response to the first input, controlling a first camera of the electronic device to shoot a first picture with the horizon as a reference, wherein the first picture includes a target shooting object, and the first picture does not rotate with the rotation of the electronic device; During the shooting process of the first camera, controlling the second camera of the electronic device to shoot the target object in a preset motion state, and the picture shot by the second camera rotates with the rotation of the electronic device; The image captured by the first camera and the image captured by the second camera are synthesized into a target video, and the motion state of the target object in the target video is the same as the motion state of the electronic device.
2. The shooting method according to claim 1, characterized in that: After the first camera of the electronic device is controlled to shoot the first picture with the horizon as a reference, and before the second camera of the electronic device is controlled to shoot the target subject in a preset motion state, the method further includes: receiving a second input from a user regarding the target photographing object, wherein the target photographing object is a plurality of objects; The controlling the second camera of the electronic device to shoot the target subject in a preset motion state includes: Controlling a plurality of second cameras of the electronic device to respectively photograph the plurality of objects in a preset motion state; Wherein, one of the second cameras is used to photograph one of the objects.
3. The shooting method according to claim 1, characterized in that: The step of synthesizing the image captured by the first camera and the image captured by the second camera into a target video includes: The image captured by the first camera and the image captured by the second camera are synthesized frame by frame in real time according to the image acquisition order; The target video obtained by real-time synthesis frame by frame is displayed in the shooting preview window of the first shooting preview interface.
4. The shooting method according to claim 1, characterized in that: After the first camera of the control electronic device shoots the first picture based on the horizon, the method further includes: Detecting a motion state of the electronic device, wherein the motion state includes tilting and rotating; During the process of shooting with the first camera, controlling the second camera of the electronic device to shoot the target object in a preset motion state includes: During the shooting process of the first camera, the second camera of the electronic device is controlled to shoot the target object according to the movement state of the electronic device.
5. The shooting method according to claim 1, characterized in that: During the process of shooting with the first camera, before controlling the second camera of the electronic device to shoot the target object in a preset motion state, the method further includes: The initial horizon angle of the second camera of the electronic device and the initial horizon angle of the first camera of the electronic device are set to different angles.
6. A photographing device, characterized in that: The device comprises: A first receiving module, used to receive a first input from a user on a first shooting preview interface; a first control module, configured to control, in response to the first input, a first camera of the electronic device to shoot a first picture with the horizon as a reference, wherein the first picture includes a target shooting object, and when the first camera shoots the first picture with the horizon as a reference, the first picture does not rotate with the rotation of the electronic device; A second control module is used to control the second camera of the electronic device to shoot the target object in a preset motion state during the shooting process of the first camera, and the picture shot by the second camera rotates with the rotation of the electronic device; A synthesis module is used to synthesize the image captured by the first camera and the image captured by the second camera into a target video, wherein the motion state of the target object in the target video is the same as the motion state of the electronic device.
7. The photographing device according to claim 6, characterized in that: The device also includes: A second receiving module is used to receive a second input of the user on the target photographing object, wherein the target photographing object is a plurality of objects; The second control module is used to: controlling the plurality of second cameras of the electronic device to respectively photograph the plurality of objects in a preset motion state, Wherein, one of the second cameras is used to photograph one of the objects.
8. The photographing device according to claim 6, characterized in that: The synthesis module is used for: The image captured by the first camera and the image captured by the second camera are synthesized frame by frame in real time according to the image acquisition order; The target video obtained by real-time synthesis frame by frame is displayed in the shooting preview window of the first shooting preview interface.
9. The photographing device according to claim 8, characterized in that: The device also includes: A detection module, used to detect the motion state of the electronic device, wherein the motion state includes tilting and rotating; The second control module is used to: During the shooting process of the first camera, the second camera of the electronic device is controlled to shoot the target object according to the movement state of the electronic device.
10. The photographing device according to claim 6, characterized in that: The device also includes: The setting module is used to set the initial horizon angle of the second camera of the electronic device and the initial horizon angle of the first camera of the electronic device to different angles.
Citation Information
Patent Citations
Image shooting method and device, electronic equipment and readable storage medium
CN112492214A
Auto picture alignment correction
US20140211031A1