CN114245026B - Shooting method, shooting device, computer equipment and storage medium - Google Patents
Shooting method, shooting device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114245026B CN114245026B CN202111539268.9A CN202111539268A CN114245026B CN 114245026 B CN114245026 B CN 114245026B CN 202111539268 A CN202111539268 A CN 202111539268A CN 114245026 B CN114245026 B CN 114245026B
- Authority
- CN
- China
- Prior art keywords
- exposure time
- current
- exposure
- target
- filling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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/745—Detection of flicker frequency or suppression of flicker wherein the flicker is caused by illumination, e.g. due to fluorescent tube illumination or pulsed LED illumination
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the application provides a shooting method, a shooting device, computer equipment and a storage medium, wherein when the shooting device is detected to be in a working state, the current exposure time of the shooting device and the flicker frequency of current ambient light are obtained, and then the post-filling exposure time is determined based on the flicker frequency and the current exposure time, wherein the post-filling exposure time comprises target exposure time periods and target non-exposure time periods which are arranged at intervals, and the total time length of the target exposure time periods is equal to the current exposure time period; finally, controlling the shooting device to shoot based on the exposure time after filling; the embodiment of the application can effectively eliminate the flicker stripes generated during shooting by adjusting the exposure time, thereby ensuring the shooting imaging quality.
Description
Technical Field
The embodiment of the application relates to the technical field of images, in particular to a shooting method, a shooting device, computer equipment and a storage medium.
Background
With the continuous development of communication technology, a large number of popular applications of computer devices such as smart phones, tablet computers and notebook computers are developed towards diversification and individuation, and the computer devices are becoming indispensable devices in life and work. Nowadays, electronic devices such as mobile phones and tablet computers are computer devices carried by people in daily life, and shooting devices are usually arranged on the computer devices so that users can shoot things to be recorded at any time. However, when a computer device with photographing and video recording functions performs photographing and video recording, a light source with alternating current power supply is often encountered, because the alternating current has a sinusoidal property, when shutter time settings of the computer device are not matched, a flicker stripe appears on a picture.
Currently, flicker is typically eliminated by controlling the exposure time to be 1/100s or an integer multiple of 1/120 s. However, in order to obtain accurate exposure under the condition that the indoor light source is relatively bright, the exposure time is generally reduced to less than 1/100s, so that the flicker phenomenon of the photographing picture is difficult to eliminate, thereby affecting the photographing effect, and leading to unsatisfactory effect of the photo taken by the user when photographing.
Disclosure of Invention
The embodiment of the application provides a shooting method, a shooting device, computer equipment and a storage medium, which can effectively eliminate flickering stripes generated during shooting by adjusting exposure time, and ensure shooting imaging quality.
The embodiment of the application provides a shooting method, which comprises the following steps:
when the shooting device is detected to be in a working state, acquiring the current exposure time of the shooting device and the flicker frequency of current ambient light;
determining a post-filling exposure time based on the flicker frequency and the current exposure time, wherein the post-filling exposure time comprises target exposure time periods and target non-exposure time periods which are arranged at intervals, and the total time length of the target exposure time periods is equal to the current exposure time period;
and controlling the shooting device to shoot based on the exposure time after filling.
In some embodiments, the determining the post-filling exposure duration based on the flicker frequency and the current exposure duration, where the post-filling exposure duration includes a target exposure period and a target non-exposure period arranged at intervals, and a total duration of the target exposure periods is equal to the current exposure duration, includes:
determining a target exposure period based on a preset duration corresponding to the flicker frequency and the current exposure duration;
determining a first designated number of the target exposure periods according to the target exposure period and the current exposure time length;
determining a second specified number of target non-exposure periods according to the first specified number and the preset duration;
a post-fill exposure duration is determined based on the first specified number of target exposure periods and the second specified number of target no-exposure periods.
In some embodiments, the determining the post-fill exposure duration based on the first specified number of target exposure periods and the second specified number of target non-exposure periods comprises:
and arranging the first specified number of target exposure time periods and the second specified number of target non-exposure time periods at intervals to generate a post-filling exposure time period, wherein the sum of the first specified number of target exposure time periods and the second specified number of non-exposure time periods is the preset time period.
In some embodiments, before acquiring the current exposure time of the photographing device and the flicker frequency of the current ambient light, the method further includes:
judging whether the current exposure time length is smaller than a preset threshold value or not;
if yes, the flicker frequency of the current ambient light is obtained.
In some embodiments, before acquiring the current exposure time of the photographing device and the flicker frequency of the current ambient light, the method further includes:
acquiring a light intensity value of current ambient light, and judging whether the shooting equipment shoots indoors or not;
if yes, the flicker frequency of the current ambient light is obtained.
In some embodiments, before determining the post-filling exposure time period based on the flicker frequency and the current exposure time period, the post-filling exposure time period includes a target exposure time period and a target non-exposure time period which are arranged at intervals, and before the total time period of the target exposure time period is equal to the current exposure time period, the method further includes:
determining whether a shooting flicker condition exists or not based on the current exposure time and the flicker frequency of the current ambient light;
if yes, determining the exposure time after filling based on the flicker frequency and the current exposure time.
In some embodiments, the controlling the photographing device to photograph based on the post-filling exposure time period includes:
and setting the shutter switching time of the shooting device based on the post-filling exposure time.
Correspondingly, the embodiment of the application also provides a shooting device, which comprises:
the device comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring the current exposure time of the shooting device and the flicker frequency of current ambient light when the shooting device is detected to be in a working state;
a determining unit, configured to determine a post-filling exposure time period based on the flicker frequency and the current exposure time period, where the post-filling exposure time period includes a target exposure time period and a target non-exposure time period that are arranged at intervals, and a total time period of the target exposure time period is equal to the current exposure time period;
and the control unit is used for controlling the shooting device to shoot based on the exposure time after filling.
In some embodiments, the apparatus further comprises:
a first determining subunit, configured to determine a target exposure period based on a preset duration corresponding to the flicker frequency and the current exposure duration;
a second determining subunit, configured to determine a first specified number of target exposure periods according to the target exposure period and the current exposure duration;
a third determining subunit, configured to determine a second specified number of target non-exposure periods according to the first specified number and the preset duration;
a fourth determination subunit configured to determine a post-filling exposure duration based on the first specified number of target exposure periods and the second specified number of target non-exposure periods.
In some embodiments, the apparatus further comprises:
a generating unit, configured to arrange the first specified number of target exposure periods and the second specified number of target non-exposure periods at intervals, so as to generate a post-filling exposure duration, where a time period sum of the first specified number of target exposure periods and the second specified number of non-exposure periods is the preset duration.
In some embodiments, the apparatus further comprises:
the judging unit is used for judging whether the current exposure time is smaller than a preset threshold value or not;
if yes, the flicker frequency of the current ambient light is obtained.
In some embodiments, the apparatus further comprises:
the acquisition subunit is used for acquiring the light intensity value of the current ambient light and judging whether the shooting equipment shoots indoors or not;
if yes, the flicker frequency of the current ambient light is obtained.
In some embodiments, the apparatus further comprises:
a fifth determination subunit, configured to determine whether a shooting flicker condition exists based on the current exposure time period and the flicker frequency of the current ambient light;
if yes, determining the exposure time after filling based on the flicker frequency and the current exposure time.
In some embodiments, the apparatus further comprises:
and the setting unit is used for setting the shutter switching time of the shooting device based on the post-filling exposure time.
Correspondingly, the embodiment of the application also provides computer equipment, which comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes any step of a shooting method when being executed by the processor.
Correspondingly, the embodiment of the application also provides a storage medium, and the storage medium stores a computer program, and the computer program realizes any step of the shooting method when being executed by a processor.
The embodiment of the application provides a shooting method, a shooting device, computer equipment and a storage medium, wherein when the shooting device is detected to be in a working state, the current exposure time of the shooting device and the flicker frequency of current ambient light are obtained, and then the post-filling exposure time is determined based on the flicker frequency and the current exposure time, wherein the post-filling exposure time comprises target exposure time periods and target non-exposure time periods which are arranged at intervals, and the total time length of the target exposure time periods is equal to the current exposure time period; and finally, controlling the shooting device to shoot based on the exposure time after filling. The embodiment of the application can effectively eliminate the flicker stripes generated during shooting by adjusting the exposure time, thereby ensuring the shooting imaging quality.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a photographing method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a photographing device according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a shooting method, a shooting device, computer equipment and a storage medium. Specifically, the shooting method of the embodiment of the application can be executed by a computer device, wherein the computer device can be a terminal or a server and other devices. The terminal can be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game machine, a personal computer (PC, personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and the like. The photographing method, apparatus, terminal, and storage medium are described in detail below. The following description of the embodiments is not intended to limit the preferred embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart of a photographing method according to an embodiment of the present application, and the specific flow may be as follows:
101, when detecting that the shooting device is in a working state, acquiring the current exposure time length of the shooting device and the flicker frequency of current ambient light.
In the embodiment of the present application, a light sensing sensor may be provided in the photographing apparatus, and the light sensing sensor is used to detect the flicker frequency of the current ambient light. The photometric sensor is connected to a central processor of the photographing apparatus. When the camera is detected to be started, the camera is determined to be in a working state, and the photosensitive sensor can be started through an instruction, so that the flicker frequency of the current ambient light is detected through the photosensitive sensor.
After determining that the shooting device is in a working state, the shooting device determines exposure time suitable for the current environment light based on the current environment light. Optionally, in the case that the illumination intensity of the current ambient light varies strongly, the photographing device may automatically determine the exposure time period adapted to the current ambient light.
To determine whether the current photographing environment will generate a photographing flicker situation, before the step of "acquiring the flicker frequency of the current ambient light", the method may include:
judging whether the current exposure time length is smaller than a preset threshold value or not;
if yes, the flicker frequency of the current ambient light is obtained.
Optionally, before the step of "obtaining the flicker frequency of the current ambient light", the method may include:
acquiring a light intensity value of current ambient light, and judging whether the shooting equipment shoots indoors or not;
if yes, the flicker frequency of the current ambient light is obtained.
In a specific embodiment, before the step of determining the post-filling exposure time period based on the flicker frequency and the current exposure time period, where the post-filling exposure time period includes a target exposure time period and a target non-exposure time period that are arranged at intervals, and the total time period of the target exposure time period is equal to the current exposure time period, the method may include:
determining whether a shooting flicker condition exists or not based on the current exposure time and the flicker frequency of the current ambient light;
if yes, determining the exposure time after filling based on the flicker frequency and the current exposure time.
Specifically, the flicker frequency of the current ambient light may be 50hz ac frequency or 60hz ac frequency. After determining that the current exposure time is less than the preset threshold value for 10ms, determining how to process the current exposure time according to the alternating current frequency to obtain the filled exposure time. For example, when the flicker frequency of the current ambient light is 50hz, after determining that the current exposure time is less than the preset threshold value for 10ms, the current exposure time may be processed based on the preset time for 10ms to obtain the post-filling exposure time; for another example, when the flicker frequency of the current ambient light is 60hz ac frequency, after determining that the current exposure time period is less than the preset threshold value for 10ms, the current exposure time period may be processed based on the preset time period of 8.33ms to obtain the post-filling exposure time period.
Optionally, the number of divided parts of the current exposure time can be set by itself, and the greater the average number of divided parts of the current exposure time is, the better the flicker eliminating effect is.
102, determining a post-filling exposure time based on the flicker frequency and the current exposure time, wherein the post-filling exposure time comprises a target exposure time period and a target non-exposure time period which are arranged at intervals, and the total time length of the target exposure time period is equal to the current exposure time period.
Specifically, the step of determining a post-filling exposure time period based on the flicker frequency and the current exposure time period, where the post-filling exposure time period includes a target exposure time period and a target non-exposure time period that are arranged at intervals, and a total time period of the target exposure time period is equal to the current exposure time period, and the method may include:
determining a target exposure period based on a preset duration corresponding to the flicker frequency and the current exposure duration;
determining a first designated number of the target exposure periods according to the target exposure period and the current exposure time length;
determining a second specified number of target non-exposure periods according to the first specified number and the preset duration;
a post-fill exposure duration is determined based on the first specified number of target exposure periods and the second specified number of target no-exposure periods.
Specifically, the step of determining a post-filling exposure duration based on the first specified number of target exposure periods and the second specified number of target non-exposure periods may include:
and arranging the first specified number of target exposure time periods and the second specified number of target non-exposure time periods at intervals to generate a post-filling exposure time period, wherein the sum of the first specified number of target exposure time periods and the second specified number of non-exposure time periods is the preset time period.
For example, when the current exposure time of the photographing device in a room is 5ms and the flicker frequency of the current ambient light is 50hz, the exposure time of 5ms is equally divided into 10 parts to obtain a target exposure time period of 0.5ms, and 10 parts of target exposure time periods are uniformly distributed in a time axis of 10ms and are arranged at intervals with 10 parts of target non-exposure time periods with the time period of 0.5ms to obtain a post-filling exposure time period with the total time period of 10 ms.
And 103, controlling the shooting device to shoot based on the post-filling exposure time.
After the post-filling exposure time is determined, the shooting device can be controlled to shoot according to the post-filling exposure time. Specifically, the shutter time of the photographing device may be set based on the post-filling exposure time period, so as to control the photographing device to perform photographing according to the post-filling exposure time period.
In summary, the embodiment of the present application provides a shooting method, where when a shooting device is detected to be in a working state, a current exposure time length of the shooting device and a flicker frequency of current ambient light are obtained, and then a post-filling exposure time length is determined based on the flicker frequency and the current exposure time length, where the post-filling exposure time length includes a target exposure time period and a target non-exposure time period that are arranged at intervals, and a total time length of the target exposure time period is equal to the current exposure time length; and finally, controlling the shooting device to shoot based on the exposure time after filling. The embodiment of the application can effectively eliminate the flicker stripes generated during shooting by adjusting the exposure time, thereby ensuring the shooting imaging quality.
In accordance with the above description, the photographing method of the present application will be further described below by way of example. Taking a specific implementation scene of shooting by a shooting device in a room as an example, specific embodiments of the scene are as follows:
(1) When the shooting device is detected to be in a working state, the current exposure time of the shooting device and the flicker frequency of current ambient light are obtained, wherein the current exposure time is 5ms, and the flicker frequency of the current ambient light is 50hz alternating frequency.
(2) After determining that the current exposure time is less than the preset threshold value for 10ms, determining how to process the current exposure time according to the alternating current frequency to obtain the filled exposure time. Specifically, the preset duration corresponding to the 50hz alternating frequency is 10ms, and the current exposure time of 5ms can be averagely divided into a first designated number, namely 10 shares, according to the preset duration, so as to obtain the target exposure time period of 0.5ms; determining that the second specified number is 10 parts according to the first specified number and the preset duration, and the target non-exposure period is 0.5ms; the post-filling exposure period is determined based on 10 parts of a target exposure period having a period of 0.5ms and 10 parts of a target exposure period having a period of 0.5ms, the target exposure period and the target non-exposure period being arranged at intervals, for example, the post-filling exposure period is sequentially composed of a plurality of periods a1 to a20, the target exposure periods being a1, a3, a5, a7, a9, a11, a13, a15, a17, and a19, and the target non-exposure periods being a2, a4, a6, a8, a10, a12, a14, a16, a18, and a20.
(3) And controlling the shooting device to shoot based on the exposure time after filling. The shutter is opened when the target exposure periods are a1, a3, a5, a7, a9, a11, a13, a15, a17, and a19, and is closed when the target non-exposure periods are a2, a4, a6, a8, a10, a12, a14, a16, a18, and a20.
In order to facilitate better implementation of the photographing method provided by the embodiment of the application, the embodiment of the application also provides a photographing device based on the photographing method. The meaning of the nouns is the same as that of the shooting method, and specific implementation details can be referred to the description of the method embodiment.
Referring to fig. 2, fig. 2 is a block diagram of a photographing apparatus according to an embodiment of the present application, where the apparatus includes:
an obtaining unit 201, configured to obtain a current exposure time of the photographing device and a flicker frequency of current ambient light when detecting that the photographing device is in an operating state;
a determining unit 202, configured to determine a post-filling exposure duration based on the flicker frequency and the current exposure duration, where the post-filling exposure duration includes a target exposure period and a target non-exposure period that are arranged at intervals, and a total duration of the target exposure periods is equal to the current exposure duration;
and a control unit 203, configured to control the photographing device to perform photographing based on the post-filling exposure time.
In some embodiments, the apparatus further comprises:
a first determining subunit, configured to determine a target exposure period based on a preset duration corresponding to the flicker frequency and the current exposure duration;
a second determining subunit, configured to determine a first specified number of target exposure periods according to the target exposure period and the current exposure duration;
a third determining subunit, configured to determine a second specified number of target non-exposure periods according to the first specified number and the preset duration;
a fourth determination subunit configured to determine a post-filling exposure duration based on the first specified number of target exposure periods and the second specified number of target non-exposure periods.
In some embodiments, the apparatus further comprises:
a generating unit, configured to arrange the first specified number of target exposure periods and the second specified number of target non-exposure periods at intervals, so as to generate a post-filling exposure duration, where a time period sum of the first specified number of target exposure periods and the second specified number of non-exposure periods is the preset duration.
In some embodiments, the apparatus further comprises:
the judging unit is used for judging whether the current exposure time is smaller than a preset threshold value or not;
if yes, the flicker frequency of the current ambient light is obtained.
In some embodiments, the apparatus further comprises:
the acquisition subunit is used for acquiring the light intensity value of the current ambient light and judging whether the shooting equipment shoots indoors or not;
if yes, the flicker frequency of the current ambient light is obtained.
In some embodiments, the apparatus further comprises:
a fifth determination subunit, configured to determine whether a shooting flicker condition exists based on the current exposure time period and the flicker frequency of the current ambient light;
if yes, determining the exposure time after filling based on the flicker frequency and the current exposure time.
In some embodiments, the apparatus further comprises:
and the setting unit is used for setting the shutter switching time of the shooting device based on the post-filling exposure time.
The embodiment of the application provides a shooting device, wherein when the shooting device is detected to be in a working state, an acquisition unit 201 acquires the current exposure time of the shooting device and the flicker frequency of current ambient light; the determining unit 202 determines a post-filling exposure time period based on the flicker frequency and the current exposure time period, wherein the post-filling exposure time period includes a target exposure time period and a target non-exposure time period which are arranged at intervals, and the total time period of the target exposure time period is equal to the current exposure time period; the control unit 203 controls the photographing device to perform photographing based on the post-filling exposure time period. The embodiment of the application can effectively eliminate the flicker stripes generated during shooting by adjusting the exposure time, thereby ensuring the shooting imaging quality.
Correspondingly, the embodiment of the application also provides computer equipment, which can be a terminal, and the terminal can be terminal equipment such as a smart phone, a tablet personal computer, a notebook computer, a touch screen, a game machine, a personal computer (PC, personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and the like. Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application, as shown in fig. 3. The computer device 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more storage media, and a computer program stored on the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. It will be appreciated by those skilled in the art that the computer device structure shown in the figures is not limiting of the computer device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
Processor 301 is a control center of computer device 300 and utilizes various interfaces and lines to connect various portions of the overall computer device 300, and to perform various functions of computer device 300 and process data by running or loading software programs and/or modules stored in memory 302 and invoking data stored in memory 302, thereby performing overall monitoring of computer device 300.
In the embodiment of the present application, the processor 301 in the computer device 300 loads the instructions corresponding to the processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 executes the application programs stored in the memory 302, so as to implement various functions:
when the shooting device is detected to be in a working state, acquiring the current exposure time of the shooting device and the flicker frequency of current ambient light;
determining a post-filling exposure time based on the flicker frequency and the current exposure time, wherein the post-filling exposure time comprises target exposure time periods and target non-exposure time periods which are arranged at intervals, and the total time length of the target exposure time periods is equal to the current exposure time period;
and controlling the shooting device to shoot based on the exposure time after filling.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Optionally, as shown in fig. 3, the computer device 300 further includes: a touch display 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the touch display 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307, respectively. Those skilled in the art will appreciate that the computer device structure shown in FIG. 3 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components.
The touch display 303 may be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display 303 may include a display panel and a touch panel. Wherein the display panel may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of a computer device, which may be composed of graphics, text, icons, video, and any combination thereof. Alternatively, the display panel may be configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations on or near the user (such as operations on or near the touch panel by the user using any suitable object or accessory such as a finger, stylus, etc.), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 301, and can receive and execute commands sent from the processor 301. The touch panel may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch panel is passed to the processor 301 to determine the type of touch event, and the processor 301 then provides a corresponding visual output on the display panel in accordance with the type of touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 303 to realize the input and output functions. In some embodiments, however, the touch panel and the touch panel may be implemented as two separate components to perform the input and output functions. I.e. the touch-sensitive display 303 may also implement an input function as part of the input unit 306.
In an embodiment of the present application, the processor 301 executes an application program to generate a graphical interface on the touch display 303. The touch display 303 is used for presenting a graphical interface and receiving an operation instruction generated by a user acting on the graphical interface.
The radio frequency circuitry 304 may be used to transceive radio frequency signals to establish wireless communications with a network device or other computer device via wireless communications.
The audio circuit 305 may be used to provide an audio interface between a user and a computer device through a speaker, microphone. The audio circuit 305 may transmit the received electrical signal after audio data conversion to a speaker, and convert the electrical signal into a sound signal for output by the speaker; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 305 and converted into audio data, which are processed by the audio data output processor 301 for transmission to, for example, another computer device via the radio frequency circuit 304, or which are output to the memory 302 for further processing. The audio circuit 305 may also include an ear bud jack to provide communication of the peripheral ear bud with the computer device.
The input unit 306 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 307 is used to power the various components of the computer device 300. Alternatively, the power supply 307 may be logically connected to the processor 301 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system. The power supply 307 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 3, the computer device 300 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
As can be seen from the above, in the computer device provided in this embodiment, when the shooting device is detected to be in a working state, a current exposure time length of the shooting device and a flicker frequency of current ambient light are obtained, and then, based on the flicker frequency and the current exposure time length, a post-filling exposure time length is determined, where the post-filling exposure time length includes a target exposure time period and a target non-exposure time period that are arranged at intervals, and a total time length of the target exposure time period is equal to the current exposure time length; and finally, controlling the shooting device to shoot based on the exposure time after filling. The embodiment of the application can effectively eliminate the flicker stripes generated during shooting by adjusting the exposure time, thereby ensuring the shooting imaging quality.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions or by controlling associated hardware, which may be stored on a storage medium (e.g., a computer-readable storage medium) and loaded and executed by a processor.
To this end, an embodiment of the present application provides a storage medium in which a plurality of computer programs are stored, the computer programs being capable of being loaded by a processor to perform the steps in any of the photographing methods provided by the embodiment of the present application. For example, the computer program may perform the steps of:
when the shooting device is detected to be in a working state, acquiring the current exposure time of the shooting device and the flicker frequency of current ambient light;
determining a post-filling exposure time based on the flicker frequency and the current exposure time, wherein the post-filling exposure time comprises target exposure time periods and target non-exposure time periods which are arranged at intervals, and the total time length of the target exposure time periods is equal to the current exposure time period;
and controlling the shooting device to shoot based on the exposure time after filling.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps of any photographing method provided by the embodiment of the present application can be executed by the computer program stored in the storage medium, so that the beneficial effects of any photographing method provided by the embodiment of the present application can be achieved, and detailed descriptions of the foregoing embodiments are omitted.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The shooting method, the shooting device, the computer equipment and the storage medium provided by the embodiment of the application are described in detail, and specific examples are applied to the explanation of the principle and the implementation mode of the application, and the explanation of the above embodiment is only used for helping to understand the technical scheme and the core idea of the application; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
Claims (8)
1. A photographing method, comprising:
when the shooting device is detected to be in a working state, acquiring the current exposure time of the shooting device and the flicker frequency of current ambient light;
determining a target exposure period based on a preset duration corresponding to the flicker frequency and the current exposure duration;
determining a first designated number of the target exposure periods according to the target exposure period and the current exposure time length;
determining a second specified number of target non-exposure periods according to the first specified number and the preset duration;
arranging the first specified number of target exposure time periods and the second specified number of target non-exposure time periods at intervals to generate a post-filling exposure time period, wherein the sum of the first specified number of target exposure time periods and the second specified number of non-exposure time periods is the preset time period;
and controlling the shooting device to shoot based on the exposure time after filling.
2. The photographing method of claim 1, further comprising, prior to acquiring a current exposure time period of the photographing device and a flicker frequency of current ambient light:
judging whether the current exposure time length is smaller than a preset threshold value or not;
if yes, the flicker frequency of the current ambient light is obtained.
3. The photographing method of claim 1, further comprising, prior to acquiring a current exposure time period of the photographing device and a flicker frequency of current ambient light:
acquiring a light intensity value of current ambient light, and judging whether shooting equipment shoots indoors or not;
if yes, the flicker frequency of the current ambient light is obtained.
4. The photographing method according to claim 1, characterized in that, before determining a post-filling exposure period based on the flicker frequency and the current exposure period, the post-filling exposure period includes a target exposure period and a target non-exposure period arranged at intervals, the total period of the target exposure period being equal to the current exposure period, further comprising:
determining whether a shooting flicker condition exists or not based on the current exposure time and the flicker frequency of the current ambient light;
if yes, determining the exposure time after filling based on the flicker frequency and the current exposure time.
5. The photographing method according to claim 1, wherein the controlling the photographing device to photograph based on the post-filling exposure time period comprises:
and setting the shutter switching time of the shooting device based on the post-filling exposure time.
6. A photographing apparatus, comprising:
the device comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring the current exposure time of the shooting device and the flicker frequency of current ambient light when the shooting device is detected to be in a working state;
a determining unit, configured to determine a target exposure period based on a preset duration corresponding to the flicker frequency and the current exposure duration; determining a first designated number of the target exposure periods according to the target exposure period and the current exposure time length; determining a second specified number of target non-exposure periods according to the first specified number and the preset duration; arranging the first specified number of target exposure time periods and the second specified number of target non-exposure time periods at intervals to generate a post-filling exposure time period, wherein the sum of the first specified number of target exposure time periods and the second specified number of non-exposure time periods is the preset time period;
and the control unit is used for controlling the shooting device to shoot based on the exposure time after filling.
7. A computer device, characterized in that it comprises a memory in which a computer program is stored and a processor that performs the steps in the shooting method according to any one of claims 1 to 5 by calling the computer program stored in the memory.
8. A storage medium storing a computer program adapted to be loaded by a processor to perform the steps of the shooting method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111539268.9A CN114245026B (en) | 2021-12-15 | 2021-12-15 | Shooting method, shooting device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111539268.9A CN114245026B (en) | 2021-12-15 | 2021-12-15 | Shooting method, shooting device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114245026A CN114245026A (en) | 2022-03-25 |
CN114245026B true CN114245026B (en) | 2023-10-13 |
Family
ID=80756668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111539268.9A Active CN114245026B (en) | 2021-12-15 | 2021-12-15 | Shooting method, shooting device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114245026B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075688A (en) * | 2010-12-28 | 2011-05-25 | 青岛海信网络科技股份有限公司 | Wide dynamic processing method for single-frame double-exposure image |
CN108270977A (en) * | 2018-03-06 | 2018-07-10 | 广东欧珀移动通信有限公司 | Control method and device, imaging device, computer equipment and readable storage medium storing program for executing |
CN109120863A (en) * | 2018-10-23 | 2019-01-01 | Oppo广东移动通信有限公司 | Image pickup method, device, storage medium and mobile terminal |
WO2019129092A1 (en) * | 2017-12-29 | 2019-07-04 | 捷开通讯(深圳)有限公司 | Frame rate-lowered photographing method, mobile terminal and storage medium |
WO2020103495A1 (en) * | 2018-11-22 | 2020-05-28 | 南京人工智能高等研究院有限公司 | Exposure duration adjustment method and device, electronic apparatus, and storage medium |
-
2021
- 2021-12-15 CN CN202111539268.9A patent/CN114245026B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075688A (en) * | 2010-12-28 | 2011-05-25 | 青岛海信网络科技股份有限公司 | Wide dynamic processing method for single-frame double-exposure image |
WO2019129092A1 (en) * | 2017-12-29 | 2019-07-04 | 捷开通讯(深圳)有限公司 | Frame rate-lowered photographing method, mobile terminal and storage medium |
CN108270977A (en) * | 2018-03-06 | 2018-07-10 | 广东欧珀移动通信有限公司 | Control method and device, imaging device, computer equipment and readable storage medium storing program for executing |
CN109120863A (en) * | 2018-10-23 | 2019-01-01 | Oppo广东移动通信有限公司 | Image pickup method, device, storage medium and mobile terminal |
WO2020103495A1 (en) * | 2018-11-22 | 2020-05-28 | 南京人工智能高等研究院有限公司 | Exposure duration adjustment method and device, electronic apparatus, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114245026A (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111179861B (en) | Brightness calibration method and device, storage medium and terminal | |
CN109040524B (en) | Artifact eliminating method and device, storage medium and terminal | |
CN107241552B (en) | Image acquisition method, device, storage medium and terminal | |
WO2019024641A1 (en) | Data synchronization method and apparatus, storage medium and electronic device | |
WO2021098609A1 (en) | Method and device for image detection, and electronic device | |
CN111158455A (en) | Power consumption control method and device, storage medium and terminal | |
CN112229507A (en) | Ambient light detection method and device, storage medium and mobile terminal | |
CN111212242B (en) | Exposure method and electronic apparatus | |
CN111083386B (en) | Image processing method and electronic device | |
CN111966254B (en) | Image shooting method and device, storage medium and terminal | |
CN111078521A (en) | Abnormal event analysis method, device, equipment, system and storage medium | |
CN111182236A (en) | Image synthesis method and device, storage medium and terminal equipment | |
WO2021120383A1 (en) | Screen color temperature control method and apparatus, storage medium, and mobile terminal | |
CN110618852B (en) | View processing method, view processing device and terminal equipment | |
CN110930964B (en) | Display screen brightness adjusting method and device, storage medium and terminal | |
CN109561255B (en) | Terminal photographing method and device and storage medium | |
CN107341094B (en) | Method and device for measuring time consumed by starting item | |
CN111556248B (en) | Shooting method, shooting device, storage medium and mobile terminal | |
CN114245026B (en) | Shooting method, shooting device, computer equipment and storage medium | |
CN108829600B (en) | Method and device for testing algorithm library, storage medium and electronic equipment | |
CN117407130A (en) | Application management and control method and device, electronic equipment and computer readable storage medium | |
CN112312032B (en) | Method and device for shooting by using off-screen camera, storage medium and mobile terminal | |
CN117652151A (en) | Method and device for controlling exposure and electronic equipment | |
US20240233083A1 (en) | Image fusion method and apparatus, storage medium and mobile terminal | |
CN111143580A (en) | Multimedia data storage method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |