CN113923368A - Shooting method and device - Google Patents
Shooting method and device Download PDFInfo
- Publication number
- CN113923368A CN113923368A CN202111417033.2A CN202111417033A CN113923368A CN 113923368 A CN113923368 A CN 113923368A CN 202111417033 A CN202111417033 A CN 202111417033A CN 113923368 A CN113923368 A CN 113923368A
- Authority
- CN
- China
- Prior art keywords
- image
- information
- shaking
- input
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000007499 fusion processing Methods 0.000 claims abstract description 9
- 239000000463 material Substances 0.000 claims description 20
- 230000004044 response Effects 0.000 claims description 11
- 230000004927 fusion Effects 0.000 claims description 6
- 238000004891 communication Methods 0.000 abstract description 7
- 230000000694 effects Effects 0.000 description 19
- 230000006870 function Effects 0.000 description 18
- 230000035945 sensitivity Effects 0.000 description 6
- 239000013589 supplement Substances 0.000 description 5
- 230000001502 supplementing effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000011218 segmentation Effects 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000011514 reflex Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/72—Combination of two or more compensation controls
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/73—Circuitry for compensating brightness variation in the scene by influencing the exposure time
Abstract
The application discloses a shooting method and a shooting device, which belong to the technical field of communication, and the method comprises the following steps: acquiring the ambient brightness information of a first preview image displayed in a shooting preview interface; shooting the first preview image according to the set flash exposure information to obtain a first image; receiving a first input of a user; responding to the first input, acquiring shaking information of the electronic equipment, and obtaining a second image according to the environment brightness information and the shaking information; and carrying out fusion processing on the first image and the second image to obtain a third image.
Description
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a shooting method and apparatus.
Background
At present, the shooting function becomes one of essential basic functions of mobile terminals such as mobile phones, and a flash lamp of the mobile terminal can support the requirement of dark and weak light supplementary shooting. Specifically, the mobile terminal starts a flashing function after reaching an ambient brightness critical value through identifying ambient light, so as to supplement the insufficient light of a foreground area (such as a person). Although the mobile terminal realizes the basic function of the flash lamp, the basic function is limited by the brightness of the flash lamp and the opening mode of the shutter, and when the mobile terminal is moved during the flash of the mobile terminal, a target person is blurred, so that the shooting of the target person is not clear.
Disclosure of Invention
The embodiment of the application aims to provide a shooting method and a shooting device, and the problem that in the prior art, when a mobile terminal is moved during flashing, a target person is blurred, and therefore shooting of the target person is not clear can be solved.
In a first aspect, an embodiment of the present application provides a shooting method, where the method includes:
acquiring the ambient brightness information of a first preview image displayed in a shooting preview interface;
shooting the first preview image according to the set flash exposure information to obtain a first image;
receiving a first input of a user;
responding to the first input, acquiring shaking information of the electronic equipment, and obtaining a second image according to the environment brightness information and the shaking information;
and carrying out fusion processing on the first image and the second image to obtain a third image.
In a second aspect, an embodiment of the present application provides a shooting device, including:
the first acquisition module is used for acquiring the ambient brightness information of a first preview image displayed in the shooting preview interface;
the second acquisition module is used for shooting the first preview image according to the set flash exposure information to obtain a first image;
the receiving module is used for receiving a first input of a user;
the third acquisition module is used for responding to the first input, acquiring shaking information of the electronic equipment and acquiring a second image according to the environment brightness information and the shaking information;
and the fusion module is used for carrying out fusion processing on the first image and the second image to obtain a third image.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the 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 method according to the first aspect.
In the embodiment of the application, the ambient brightness information of the first preview image displayed in the shooting preview interface is acquired, and the first preview image is shot according to the set flash exposure information to obtain the first image, wherein the first image is shot according to the normal light supplement requirement of the main object. And simultaneously, obtaining a second image according to the shaking information of the electronic equipment and the ambient brightness information, wherein the second image is used for ensuring the background smear effect, and then fusing the first image and the second image to obtain a third image. The first image can meet the normal light supplementing requirement of the main object, the second image can meet the background smear effect, the third image obtained by fusing the first image and the second image is the clear main object, and the dynamic photo of the background light is displayed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart of a shooting method provided in an embodiment of the present application;
fig. 2 is a schematic view of a display interface of an electronic device according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of a shooting device provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
Before the shooting method provided by the embodiment of the application is introduced, slow synchronous flash portrait shooting in a professional single lens reflex camera is introduced. In professional flash portrait shooting, slow synchronous flash is often adopted, and a low shutter speed is combined with short flash, namely 'slow synchronous flash portrait shooting'. This flash mode is very useful in low light conditions to illuminate foreground subject while leaving the background area properly exposed. Since the exposure time of the flash is short, the shutter time more affects the brightness of the background in a longer shutter time, and the human body is mainly affected by the flash and less affected by the shutter time.
The time of opening the flash lamp is different from the time of opening and closing the shutter, so that the flash lamp is divided into front curtain synchronization and rear curtain synchronization. By utilizing the point, a shooting mode exists in the slow synchronous flash portrait shooting of professional single-lens reflex equipment: moving the camera while the rear curtain flashes synchronously, it is possible to make animated pictures of the person, clear and showing background light, also called "party figures", as they are often used in dance floors and parties. In the mobile terminal, limited by the brightness of a flash lamp and the opening mode of a shutter, when the mobile terminal is moved in the flash of the mobile terminal, a target person is blurred, and therefore the target person cannot be clearly shot.
The shooting method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Please refer to fig. 1, which is a flowchart illustrating a photographing method according to an embodiment of the present application. The method can be applied to electronic equipment, and the electronic equipment can be a mobile phone, a tablet computer, a notebook computer and the like. As shown in fig. 1, the method may include steps 1100-1300, which are described in detail below.
In this embodiment, the electronic device includes a camera application, and the shooting preview interface is an interface displayed after entering the camera application. Here, the camera application may be entered in different manners, for example, the user may click an icon of the camera application displayed on a display screen of the electronic device to enter a shooting preview interface of the camera application. For another example, the method may also be a method in which, during the process of running another application in the electronic device, the camera application is called through a camera call interface of the other application to enter a shooting preview interface of the camera application.
In this embodiment, when the shooting preview interface is displayed, the ambient brightness information of the first preview image displayed in the shooting preview interface is acquired, so as to determine whether the system time of the electronic device is in a day scene or a night scene according to the ambient brightness information.
And setting flash exposure information as flash exposure information of a flash lamp, wherein the set flash exposure information can be determined according to the recorded preview flash exposure value so as to meet the brightness requirement of normal supplementary lighting of the main subject in the first preview image.
Specifically, the brightness of the main object in the first preview image may be measured by flash pre-flash to meet the light supplement requirement for the main object, where the brightness of the main object in the first preview image measured by flash pre-flash is the above preview flash exposure value. For example, in the case where the preview flash exposure value is low, it indicates that the brightness of the subject object in the first preview image is low, and here, the flash exposure value of the flash may be set to be large. For another example, in the case where the preview flash exposure value is high, indicating that the brightness of the subject object in the first preview image is high, the flash exposure value of the flash may be set small.
In this embodiment, the step 1200 of capturing the first preview image according to the set flash exposure information to obtain the first image may further include the following steps 1210 to 1220:
step 1210, receiving a second input for the display preview interface.
The second input may be: the user may specifically determine the actual use requirement according to click input of the user on a shooting button in the shooting preview interface, or a voice instruction input by the user, or a specific gesture input by the user, which is not limited in the embodiment of the present application.
The specific gesture in the embodiment of the application can be any one of a single-click gesture, a sliding gesture, a dragging gesture, a pressure identification gesture, a long-press gesture, an area change gesture, a double-press gesture and a double-click gesture; the click input in the embodiment of the application can be click input, double-click input, click input of any number of times and the like, and can also be long-time press input or short-time press input.
Step 1220, in response to the second input, shooting the first preview image according to the set flash exposure information to obtain a first image.
For example, after the user clicks a shooting button in the shooting preview interface, the electronic device may flash the first preview image with a flash according to the set flash exposure information to obtain the first image.
According to the above steps 1210-1220, the flash exposure information of the first image is determined by the preview flash exposure value, so that the requirement of normal supplementary lighting of the subject in the first preview image is satisfied.
In this embodiment, before the step 1100 is executed to acquire the ambient brightness information of the first preview image displayed in the shooting preview interface, the shooting method according to this embodiment may further include: and receiving a third input aiming at the shooting preview interface, responding to the third input, controlling the electronic equipment to enter a portrait shooting mode, and executing the step of acquiring the ambient brightness information of the first preview image displayed in the shooting preview interface under the condition that the electronic equipment enters the portrait shooting mode.
The third input may be a touch input for the capture preview interface, which may be a click input, which may be, for example, a single click input.
The photographing functions displayed in the photographing preview interface include, for example and without limitation: video function, shooting function, slow motion function, portrait function. Here, the third input may be an input of the user clicking a "portrait function". After the user clicks the portrait function, the portrait function of the electronic device can be opened.
After the first preview image is shot according to the set flash exposure information to obtain a first image, the method comprises the following steps:
in step 1300, a first input from a user is received.
The first input may be: the user shakes the input of the electronic device, which can be specifically determined according to actual use requirements, and the embodiment of the application is not limited thereto.
In this embodiment, after the first preview image is captured to obtain the first image according to the set flash exposure amount information, the prompt information is displayed in the capture preview interface, so that the photographer shakes the electronic device based on the prompt information.
As shown in fig. 2, after the first preview image is captured according to the set flash exposure information to obtain the first image, the capture preview interface displays a prompt message "please shake the mobile phone with the light", and the user can shake the electronic device based on the prompt message.
After receiving the first input of the user, entering:
step 1400, in response to the first input, obtaining shaking information of the electronic device, and obtaining a second image according to the environment brightness information and the shaking information.
In this embodiment, the second image is obtained in different manners according to different ambient brightness information. For example, in the daytime environment, the shutter speed is usually high, and a long shutter may cause overexposure of the picture, and for the daytime environment, the exposure of the second image does not depend on the ambient brightness information, but selects the background material from the preset background material library according to the shaking information of the user shaking the electronic device. For another example, for a night environment, the exposure of the second image captures a real smear effect according to the ambient brightness information and the user shaking information.
In one example, the step 1400 of obtaining shaking information of the electronic device in response to the first input and obtaining the second image according to the ambient brightness information and the shaking information may further include the following steps 1410a to 1430 a:
step 1410a, in response to the first input, obtaining a shaking direction and a shaking amplitude of the electronic device.
In this step 1410a, after the user shakes the electronic device, the shake direction and shake amplitude of the electronic device are determined according to the current tilt angle information of the electronic device detected by the gyroscope or the acceleration sensor inside the electronic device.
And 1420a, under the condition that the system time of the electronic equipment is determined to be in a first time period according to the environment brightness information, acquiring a preset background material library.
The preset background material library comprises materials with different directions of light smear, such as but not limited to background materials with 8 directions of east, south, west, north, northeast, southwest, northwest and southeast based on the shaking direction of the shooting behavior.
The system time may be the current time of the photographer's location. In specific implementation, the time zone in which the electronic device is located, that is, the time zone in which the photographer is located, may be determined according to the positioning information of the electronic device, and the corresponding time is obtained as the system time according to the time zone in which the photographer is located.
In this embodiment, a day may be divided into two time periods, the first time period may be a time period corresponding to the day, for example, 6:00 to 19:00, and the second time period may be a time period corresponding to the night. That is, in the case where it is determined that the current day environment is present according to the environment brightness information, the preset background material library is acquired.
And 1430a, obtaining the second image according to the shaking direction and the preset background material library under the condition that the shaking amplitude is within a set amplitude threshold range.
The set amplitude threshold value can be a numerical value set according to actual application scenes and actual requirements.
In this embodiment, under the condition that the shaking amplitude is within the set amplitude threshold range, a background material having the same direction as the shaking direction of the electronic device is selected from the preset background material library and is used as the second image. And then fusing the first image and the second image according to the subsequent steps to obtain a third image with dynamic effect.
According to the steps 1410a to 1430a, for the daytime environment, the exposure of the second image does not depend on the environment brightness information, but selects the background material from the preset background material library according to the shaking information of the user shaking the electronic device, so as to simulate the dynamic effect of the background shadow.
In one example, the step 1400 of obtaining shaking information of the electronic device in response to the first input and obtaining the second image according to the ambient brightness information and the shaking information may further include the following steps 1410b to 1430 b:
step 1410b, in response to the first input, obtaining a shaking amplitude of the electronic device.
In this step 1410b, after the user shakes the electronic device, the shake direction and shake amplitude of the electronic device are determined according to the current tilt angle information of the electronic device detected by the gyroscope or the acceleration sensor inside the electronic device.
And step 1420b, in the case that the system time of the electronic equipment is determined to be in the second time period according to the environment brightness information, determining the target exposure amount according to the environment brightness information.
The system time may be the current time of the photographer's location. In specific implementation, the time zone in which the electronic device is located, that is, the time zone in which the photographer is located, may be determined according to the positioning information of the electronic device, and the corresponding time is obtained as the system time according to the time zone in which the photographer is located.
In this embodiment, a day may be divided into two time periods, where the first time period may be a time period corresponding to the day, and the second time period may be a time period corresponding to the night, for example, 19:00 to 5: 00. That is, in the case where it is determined from the ambient brightness information that it is currently in the night environment, the trigger shutter is acquired to take a picture.
The exposure directly influences the brightness of a shot picture, the exposure is increased, the shot picture becomes dark, the exposure is reduced, and the shot picture becomes dark. There are three main factors affecting exposure: aperture, shutter speed and sensitivity, while for an electronic device the aperture is the real physical aperture, i.e. the clear aperture diameter of the lens, and thus the aperture is a fixed value, as shown in fig. 2, the aperture of the electronic device is f 8. In order to capture the second image with the best smear effect, the shutter speed and the sensitivity are usually adjusted to make the second image with the best smear effect.
The target exposure amount includes a target shutter speed and a target sensitivity, which are the shutter speed and the sensitivity that maximize the smear effect of the second image.
In step 1420b, the shutter speed and the sensitivity may be adjusted according to the ambient brightness information to obtain the target shutter speed and the target sensitivity, i.e. the target exposure.
And step 1430b, under the condition that the shaking amplitude is within a set amplitude threshold value range, shooting the second preview image according to the target exposure amount to obtain a second image.
The set amplitude can be a numerical value set according to an actual application scene and actual requirements.
In this step 1430b, when the shaking amplitude is within the set amplitude threshold range, the shutter is triggered to shoot the first preview image according to the target exposure amount, and a second image is obtained, so as to ensure a real smear effect.
According to the steps 1410b to 1430b, for the night environment, the exposure of the second image is based on the ambient brightness information and the shaking information of the electronic device, so that the real smear effect can be realized.
After responding to the first input, acquiring shaking information of the electronic equipment, and acquiring a second image according to the environment brightness information and the shaking information, entering:
and 1500, fusing the first image and the second image to obtain a third image.
In this embodiment, after the first image and the second image are obtained respectively, the first image and the second image may be fused to obtain a third image, which is the simulated "party portrait".
In this embodiment, the step 1500 of performing fusion processing on the first image and the second image to obtain a third image may further include the following steps 1510 to 1530:
step 1510, highlight extracting the second image to obtain a highlighted image.
In step 1510, the second image may be highlighted to obtain a highlighted image. The manner in which the second image is highlighted includes, but is not limited to, the rapid extraction manner of CTRL + ALT + 2.
Step 1520, performing fusion processing on the highlight image and the first image to obtain a fused image.
Step 1530, obtaining the third image according to the fused image and the first image.
In this embodiment, the obtaining the third image according to the fused image and the first image in step 1530 may further include: under the condition that the fused image comprises face information, identifying a target area where the face information is located in the fused image; carrying out contour segmentation processing on the target area in the fused image to obtain a segmented image; and obtaining the third image according to the segmentation image and the first image.
In this embodiment, under the condition that the fused image includes the face information, the contour segmentation processing is performed on the target area where the face information is located in the fused image according to the face outline segmentation information to obtain a segmented image, and then a third image is obtained according to the segmented image and the first image. The face information is protected, and the influence of ambient light smear is reduced.
According to the embodiment, the ambient brightness information of the first preview image displayed in the shooting preview interface is acquired, and meanwhile, the first preview image is shot according to the set flash exposure information to obtain the first image, namely the first image is shot according to the normal light supplementing requirement of the main object. And simultaneously, obtaining a second image according to the shaking information of the electronic equipment and the ambient brightness information, wherein the second image is used for ensuring the background smear effect, and then fusing the first image and the second image to obtain a third image. The first image can meet the normal light supplementing requirement of the main object, the second image can meet the background smear effect, the third image obtained by fusing the first image and the second image is the clear main object, and the dynamic photo of the background light is displayed.
In the shooting method provided by the embodiment of the present application, the execution subject may be a shooting device, or a control module in the shooting device for executing the shooting method. The embodiment of the present application takes an example in which a shooting device executes a shooting method, and the shooting device provided in the embodiment of the present application is described.
Corresponding to the above embodiments, referring to fig. 3, the present embodiment further provides a shooting apparatus 300, where the apparatus 300 includes:
the first obtaining module 310 is configured to obtain ambient brightness information of a first preview image displayed in a shooting preview interface.
The second obtaining module 320 is configured to capture the first preview image according to the set flash exposure information, so as to obtain a first image.
The receiving module 330 is configured to receive a first input of a user.
The third obtaining module 340 is configured to obtain shaking information of the electronic device in response to the first input, and obtain a second image according to the ambient brightness information and the shaking information.
And a fusion module 350, configured to perform fusion processing on the first image and the second image to obtain a third image.
In an embodiment, the second obtaining module 320 is specifically configured to: receiving a second input for the shooting preview interface; and responding to the second input, and shooting the first preview image according to the set flash exposure information to obtain a first image.
In an embodiment, the third obtaining module 340 is specifically configured to: responding to the first input, and acquiring the shaking direction and the shaking amplitude of the electronic equipment; under the condition that the system time of the electronic equipment is determined to be in a first time period according to the environment brightness information, a preset background material library is obtained; and under the condition that the shaking amplitude is within a set amplitude threshold value range, obtaining the second image according to the shaking direction and the preset background material library.
In an embodiment, the third obtaining module 340 is specifically configured to: responding to the first input, and acquiring the shaking amplitude of the electronic equipment; under the condition that the system time of the electronic equipment is determined to be in a second time period according to the environment brightness information, determining the target exposure amount according to the environment brightness information; and under the condition that the shaking amplitude is within a set amplitude threshold value range, shooting the first preview image according to the target exposure amount to obtain a second image.
In one embodiment, the fusion module 350 is specifically configured to: highlighting and extracting the second image to obtain a highlighted image; fusing the highlight image and the first image to obtain a fused image; and obtaining the third image according to the fused image and the first image.
In one embodiment, the fusion module 350 is specifically configured to: highlighting and extracting the second image to obtain a highlighted image; fusing the highlight image and the first image to obtain a fused image; and obtaining the third image according to the fused image and the first image.
In the embodiment of the application, the ambient brightness information of the first preview image displayed in the shooting preview interface is acquired, and the first preview image is shot according to the set flash exposure information to obtain the first image, wherein the first image is shot according to the normal light supplement requirement of the main object. And simultaneously, obtaining a second image according to the shaking information of the electronic equipment and the ambient brightness information, wherein the second image is used for ensuring the background smear effect, and then fusing the first image and the second image to obtain a third image. The first image can meet the normal light supplementing requirement of the main object, the second image can meet the background smear effect, the third image obtained by fusing the first image and the second image is the clear main object, and the dynamic photo of the background light is displayed.
The shooting device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The photographing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The shooting device provided by the embodiment of the application can realize each process realized by the method embodiment, and is not repeated here for avoiding repetition.
Corresponding to the foregoing embodiments, optionally, as shown in fig. 4, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 401, a memory 402, and a program or an instruction stored in the memory 402 and executable on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 510 is configured to obtain ambient brightness information of a first preview image displayed in a shooting preview interface; shooting the first preview image according to the set flash exposure information to obtain a first image; receiving a first input of a user; responding to the first input, acquiring shaking information of the electronic equipment, and obtaining a second image according to the environment brightness information and the shaking information; and carrying out fusion processing on the first image and the second image to obtain a third image.
In one embodiment, the processor 510 is further configured to receive a second input for the capture preview interface; and responding to the second input, and shooting the first preview image according to the set flash exposure information to obtain a first image.
In one embodiment, the processor 510 is further configured to obtain a shake direction and a shake magnitude of the electronic device in response to the first input; under the condition that the system time of the electronic equipment is determined to be in a first time period according to the environment brightness information, a preset background material library is obtained; and under the condition that the shaking amplitude is within a set amplitude threshold value range, obtaining the second image according to the shaking direction and the preset background material library.
In one embodiment, the processor 510 is further configured to obtain a shaking amplitude of the electronic device in response to the first input; under the condition that the system time of the electronic equipment is determined to be in a second time period according to the environment brightness information, determining the target exposure amount according to the environment brightness information; and under the condition that the shaking amplitude is within a set amplitude threshold value range, shooting the first preview image according to the target exposure amount to obtain a second image.
In one embodiment, processor 510 is further configured to highlight extracting the second image, resulting in a highlighted image; fusing the highlight image and the first image to obtain a fused image; and obtaining the third image according to the fused image and the first image.
In the embodiment of the application, the ambient brightness information of the first preview image displayed in the shooting preview interface is acquired, and the first preview image is shot according to the set flash exposure information to obtain the first image, wherein the first image is shot according to the normal light supplement requirement of the main object. And simultaneously, obtaining a second image according to the shaking information of the electronic equipment and the ambient brightness information, wherein the second image is used for ensuring the background smear effect, and then fusing the first image and the second image to obtain a third image. The first image can meet the normal light supplementing requirement of the main object, the second image can meet the background smear effect, the third image obtained by fusing the first image and the second image is the clear main object, and the dynamic photo of the background light is displayed.
It should be understood that in the embodiment of the present application, the input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in further detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the video processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above shooting method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A photographing method, characterized by comprising:
acquiring the ambient brightness information of a first preview image displayed in a shooting preview interface;
shooting the first preview image according to the set flash exposure information to obtain a first image;
receiving a first input of a user;
responding to the first input, acquiring shaking information of the electronic equipment, and obtaining a second image according to the environment brightness information and the shaking information;
and carrying out fusion processing on the first image and the second image to obtain a third image.
2. The method of claim 1, wherein capturing the first preview image according to the set flash exposure information to obtain a first image comprises:
receiving a second input for the shooting preview interface;
and responding to the second input, and shooting the first preview image according to the set flash exposure information to obtain a first image.
3. The method of claim 1, wherein the obtaining shaking information of the electronic device in response to the first input and obtaining a second image according to the ambient brightness information and the shaking information comprises:
responding to the first input, and acquiring the shaking direction and the shaking amplitude of the electronic equipment;
under the condition that the system time of the electronic equipment is determined to be in a first time period according to the environment brightness information, a preset background material library is obtained;
and under the condition that the shaking amplitude is within a set amplitude threshold value range, obtaining the second image according to the shaking direction and the preset background material library.
4. The method of claim 1, wherein the obtaining shaking information of the electronic device in response to the first input and obtaining a second image according to the ambient brightness information and the shaking information comprises:
responding to the first input, and acquiring the shaking amplitude of the electronic equipment;
under the condition that the system time of the electronic equipment is determined to be in a second time period according to the environment brightness information, determining the target exposure amount according to the environment brightness information;
and under the condition that the shaking amplitude is within a set amplitude threshold value range, shooting the first preview image according to the target exposure amount to obtain a second image.
5. The method according to claim 1, wherein the fusing the first image and the second image to obtain a third image comprises:
highlighting and extracting the second image to obtain a highlighted image;
fusing the highlight image and the first image to obtain a fused image;
and obtaining the third image according to the fused image and the first image.
6. A camera, comprising:
the first acquisition module is used for acquiring the ambient brightness information of a first preview image displayed in the shooting preview interface;
the second acquisition module is used for shooting the first preview image according to the set flash exposure information to obtain a first image;
the receiving module is used for receiving a first input of a user;
the third acquisition module is used for responding to the first input, acquiring shaking information of the electronic equipment and acquiring a second image according to the environment brightness information and the shaking information;
and the fusion module is used for carrying out fusion processing on the first image and the second image to obtain a third image.
7. The apparatus of claim 6, wherein the second obtaining module is specifically configured to:
receiving a second input for the shooting preview interface;
and responding to the second input, and shooting the first preview image according to the set flash exposure information to obtain a first image.
8. The apparatus of claim 6, wherein the third obtaining module is specifically configured to:
responding to the first input, and acquiring the shaking direction and the shaking amplitude of the electronic equipment;
under the condition that the system time of the electronic equipment is determined to be in a first time period according to the environment brightness information, a preset background material library is obtained;
and under the condition that the shaking amplitude is within a set amplitude threshold value range, obtaining the second image according to the shaking direction and the preset background material library.
9. The apparatus of claim 6, wherein the third obtaining module is specifically configured to:
responding to the first input, and acquiring the shaking amplitude of the electronic equipment;
under the condition that the system time of the electronic equipment is determined to be in a second time period according to the environment brightness information, determining the target exposure amount according to the environment brightness information;
and under the condition that the shaking amplitude is within a set amplitude threshold value range, shooting the first preview image according to the target exposure amount to obtain a second image.
10. The apparatus according to claim 6, wherein the fusion module is specifically configured to:
highlighting and extracting the second image to obtain a highlighted image;
fusing the highlight image and the first image to obtain a fused image;
and obtaining the third image according to the fused image and the first image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111417033.2A CN113923368A (en) | 2021-11-25 | 2021-11-25 | Shooting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111417033.2A CN113923368A (en) | 2021-11-25 | 2021-11-25 | Shooting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113923368A true CN113923368A (en) | 2022-01-11 |
Family
ID=79248348
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111417033.2A Pending CN113923368A (en) | 2021-11-25 | 2021-11-25 | Shooting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113923368A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116347220A (en) * | 2023-05-29 | 2023-06-27 | 合肥工业大学 | Portrait shooting method and related equipment |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106170976A (en) * | 2014-04-14 | 2016-11-30 | 阿尔卡特朗讯公司 | For the method and apparatus obtaining the image with motion blur |
CN108429887A (en) * | 2017-02-13 | 2018-08-21 | 中兴通讯股份有限公司 | A kind of image processing method and device |
CN109218626A (en) * | 2018-11-23 | 2019-01-15 | 维沃移动通信有限公司 | A kind of photographic method and terminal |
CN110324534A (en) * | 2019-07-10 | 2019-10-11 | 厦门美图之家科技有限公司 | Image processing method, device and electronic equipment |
CN110913133A (en) * | 2019-11-25 | 2020-03-24 | 维沃移动通信有限公司 | Shooting method and electronic equipment |
CN110933326A (en) * | 2019-12-16 | 2020-03-27 | 中国科学院云南天文台 | Starry sky portrait shooting method and electronic equipment |
CN112514368A (en) * | 2020-03-11 | 2021-03-16 | 深圳市大疆创新科技有限公司 | Image acquisition method, control device and movable platform |
CN112653843A (en) * | 2020-12-24 | 2021-04-13 | 维沃移动通信有限公司 | Shooting method and device based on holder and electronic equipment |
CN112672050A (en) * | 2020-12-24 | 2021-04-16 | 维沃移动通信有限公司 | Shooting method and device based on holder and electronic equipment |
CN112887515A (en) * | 2021-01-26 | 2021-06-01 | 维沃移动通信有限公司 | Video generation method and device |
CN113313788A (en) * | 2020-02-26 | 2021-08-27 | 北京小米移动软件有限公司 | Image processing method and apparatus, electronic device, and computer-readable storage medium |
WO2021208789A1 (en) * | 2020-04-14 | 2021-10-21 | 华为技术有限公司 | Photographing method and electronic device |
CN113630545A (en) * | 2020-05-07 | 2021-11-09 | 华为技术有限公司 | Shooting method and equipment |
-
2021
- 2021-11-25 CN CN202111417033.2A patent/CN113923368A/en active Pending
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106170976A (en) * | 2014-04-14 | 2016-11-30 | 阿尔卡特朗讯公司 | For the method and apparatus obtaining the image with motion blur |
CN108429887A (en) * | 2017-02-13 | 2018-08-21 | 中兴通讯股份有限公司 | A kind of image processing method and device |
CN109218626A (en) * | 2018-11-23 | 2019-01-15 | 维沃移动通信有限公司 | A kind of photographic method and terminal |
CN110324534A (en) * | 2019-07-10 | 2019-10-11 | 厦门美图之家科技有限公司 | Image processing method, device and electronic equipment |
CN110913133A (en) * | 2019-11-25 | 2020-03-24 | 维沃移动通信有限公司 | Shooting method and electronic equipment |
CN110933326A (en) * | 2019-12-16 | 2020-03-27 | 中国科学院云南天文台 | Starry sky portrait shooting method and electronic equipment |
CN113313788A (en) * | 2020-02-26 | 2021-08-27 | 北京小米移动软件有限公司 | Image processing method and apparatus, electronic device, and computer-readable storage medium |
CN112514368A (en) * | 2020-03-11 | 2021-03-16 | 深圳市大疆创新科技有限公司 | Image acquisition method, control device and movable platform |
WO2021179225A1 (en) * | 2020-03-11 | 2021-09-16 | 深圳市大疆创新科技有限公司 | Image acquisition method, control device and movable platform |
WO2021208789A1 (en) * | 2020-04-14 | 2021-10-21 | 华为技术有限公司 | Photographing method and electronic device |
CN113630545A (en) * | 2020-05-07 | 2021-11-09 | 华为技术有限公司 | Shooting method and equipment |
CN112672050A (en) * | 2020-12-24 | 2021-04-16 | 维沃移动通信有限公司 | Shooting method and device based on holder and electronic equipment |
CN112653843A (en) * | 2020-12-24 | 2021-04-13 | 维沃移动通信有限公司 | Shooting method and device based on holder and electronic equipment |
CN112887515A (en) * | 2021-01-26 | 2021-06-01 | 维沃移动通信有限公司 | Video generation method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116347220A (en) * | 2023-05-29 | 2023-06-27 | 合肥工业大学 | Portrait shooting method and related equipment |
CN116347220B (en) * | 2023-05-29 | 2023-07-21 | 合肥工业大学 | Portrait shooting method and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108986199B (en) | Virtual model processing method and device, electronic equipment and storage medium | |
CN108566516B (en) | Image processing method, device, storage medium and mobile terminal | |
US11158027B2 (en) | Image capturing method and apparatus, and terminal | |
CN112954210B (en) | Photographing method and device, electronic equipment and medium | |
EP3496391B1 (en) | Method and device for capturing image and storage medium | |
CN112738402B (en) | Shooting method, shooting device, electronic equipment and medium | |
CN112822412B (en) | Exposure method, exposure device, electronic equipment and storage medium | |
CN112333382B (en) | Shooting method and device and electronic equipment | |
CN113794829B (en) | Shooting method and device and electronic equipment | |
CN111669495B (en) | Photographing method, photographing device and electronic equipment | |
CN113473007A (en) | Shooting method and device | |
CN113873166A (en) | Video shooting method and device, electronic equipment and readable storage medium | |
CN112492215B (en) | Shooting control method and device and electronic equipment | |
CN113923368A (en) | Shooting method and device | |
CN112511743B (en) | Video shooting method and device | |
CN113114933A (en) | Image shooting method and device, electronic equipment and readable storage medium | |
CN112702531A (en) | Shooting method and device and electronic equipment | |
CN112437232A (en) | Shooting method, shooting device, electronic equipment and readable storage medium | |
CN113794831B (en) | Video shooting method, device, electronic equipment and medium | |
CN114466140B (en) | Image shooting method and device | |
CN107360361B (en) | Method and device for shooting people in backlight mode | |
JP2024507121A (en) | Display control method, display control device, electronic equipment and readable storage medium | |
CN114245017A (en) | Shooting method and device and electronic equipment | |
CN114125226A (en) | Image shooting method and device, electronic equipment and readable storage medium | |
CN114266305A (en) | Object identification method and device, electronic equipment and 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 |