CN113840090A - Shutter adjusting method, device, equipment and storage medium - Google Patents

Shutter adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN113840090A
CN113840090A CN202111138092.6A CN202111138092A CN113840090A CN 113840090 A CN113840090 A CN 113840090A CN 202111138092 A CN202111138092 A CN 202111138092A CN 113840090 A CN113840090 A CN 113840090A
Authority
CN
China
Prior art keywords
shutter speed
target
image
frequency
frequency bandwidth
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
Application number
CN202111138092.6A
Other languages
Chinese (zh)
Inventor
丁琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111138092.6A priority Critical patent/CN113840090A/en
Publication of CN113840090A publication Critical patent/CN113840090A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Abstract

The application discloses a shutter adjusting method, a shutter adjusting device, shutter adjusting equipment and a storage medium, and belongs to the technical field of shooting. The shutter adjusting method includes: under the condition that a preview interface comprises a screen flashing strip, acquiring a first time length, and acquiring a plurality of frames of first preview images based on a first shutter speed of the electronic equipment; determining a first frequency bandwidth of a screen flash strip according to a plurality of frames of first preview images; determining a first moving cycle frequency of the screen flashing strip according to the first frequency bandwidth and the first time length; adjusting the first shutter speed to be a second shutter speed, wherein the second shutter speed is an integral multiple value of the first movement period frequency; and acquiring a target shutter speed based on the second shutter speed, and shooting the preview interface based on the target shutter speed to obtain a shot image.

Description

Shutter adjusting method, device, equipment and storage medium
Technical Field
The application belongs to the technical field of shooting, and particularly relates to a shutter adjusting method, device, equipment and storage medium.
Background
As the camera function of the electronic device is gradually popularized, the requirements of people on the performance, effect and the like of the camera function are higher and higher.
In the related art, in some shooting scenes, due to the fact that the light source has an inherent stroboscopic condition, a real-time preview picture of the camera may present a screen flashing (i.e., banding) phenomenon in which bright and dark stripes alternately appear, and shooting experience of a user is affected.
Disclosure of Invention
An object of the embodiments of the present application is to provide a shutter adjustment method, apparatus, device and storage medium, which can solve the problem in the related art that a real-time preview image of a camera may exhibit a screen flash phenomenon in which bright and dark stripes appear alternately.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a shutter adjustment method, where a first duration is obtained when a preview interface includes a screen flash strip, and multiple frames of first preview images are obtained based on a first shutter speed of an electronic device; determining a first frequency bandwidth of a screen flash strip according to a plurality of frames of first preview images; determining a first moving cycle frequency of the screen flashing strip according to the first frequency bandwidth and the first time length; adjusting the first shutter speed to be a second shutter speed, wherein the second shutter speed is an integral multiple value of the first movement period frequency; and acquiring a target shutter speed based on the second shutter speed, and shooting the preview interface based on the target shutter speed to obtain a shot image.
In a second aspect, an embodiment of the present application provides a shutter adjustment apparatus, including: the acquisition module is used for acquiring a first time length under the condition that the preview interface comprises a screen flashing strip, and acquiring a plurality of frames of first preview images based on a first shutter speed of the electronic equipment; the determining module is used for determining a first frequency bandwidth of the screen flash strip according to the plurality of frames of the first preview images; the determining module is used for determining a first moving cycle frequency of the screen flashing strip according to the first frequency bandwidth and the first time length; the adjusting module is used for adjusting the first shutter speed to be a second shutter speed, and the second shutter speed is an integral multiple value of the first moving period frequency; and the shooting module is used for acquiring the target shutter speed based on the second shutter speed and shooting the preview interface based on the target shutter speed to obtain a shot image.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the shutter adjustment 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 shutter adjustment method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the shutter adjustment method according to the first aspect.
In this embodiment of the application, when a preview interface has a screen flash phenomenon, multiple frames of first preview images may be obtained based on a first shutter speed of the electronic device, and a first frequency bandwidth of a screen flash strip may be determined according to the multiple frames of first preview images. Based on the above, the first moving cycle frequency of the screen flash strip can be determined according to the first frequency bandwidth and the first time length, and after the first shutter speed is adjusted to be an integral multiple of the first moving cycle frequency, namely, the second shutter speed, the screen flash phenomenon in the preview interface can be effectively inhibited and weakened through the second shutter speed. On the basis, the preview interface is shot through the target shutter speed after the second shutter speed is adjusted, so that the quality of shot images can be improved, and the shooting experience of a user is improved.
Drawings
FIG. 1 is a schematic diagram of an example of a preview interface provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of a shutter adjustment method according to an embodiment of the present application;
fig. 3 is a second schematic flowchart of a shutter adjustment method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an example of a grayscale image provided by an embodiment of the present application;
FIG. 5 is a diagram illustrating an example of gray scale value versus pixel coordinate relationship provided by an embodiment of the present application;
fig. 6 is a third schematic flowchart of a shutter adjustment method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a shutter adjusting apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 9 is a schematic hardware structure diagram of an electronic device according to an 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.
First, technical terms related to technical solutions provided in embodiments of the present application are introduced:
the screen flashing strip is characterized in that commercial power is alternating current (generally 50hz), a light source can show a phenomenon of repeated flashing, and the phenomenon is difficult to observe by human eyes, but a stripe with repeated flashing and alternating brightness can be captured in a high shutter mode of a camera, and the stripe is the screen flashing strip and is also called a banding strip.
And a banding phenomenon, namely the phenomenon of banding is pointed out.
As background art, in some shooting scenes, due to the inherent stroboscopic condition of the light source, the real-time preview image of the camera may present a screen flash phenomenon that the bright and dark stripes alternately appear as shown in fig. 1, which affects the shooting experience of the user.
In order to suppress the screen flash phenomenon, the related art may artificially control the shutter speed to a lower range, so as not to trigger the banding phenomenon. However, this method cannot fundamentally suppress banding, and the shutter speed is controlled in a low range, which cannot meet the high shutter shooting requirement of the user.
In view of the problems in the related art, embodiments of the present application provide a shutter adjustment method, which may obtain multiple frames of first preview images based on a first shutter speed of an electronic device when a preview interface has a screen flash phenomenon, and determine a first frequency bandwidth of a screen flash strip according to the multiple frames of first preview images. Based on the above, the first moving cycle frequency of the screen flash strip can be determined according to the first frequency bandwidth and the first time length, and after the first shutter speed is adjusted to be an integral multiple of the first moving cycle frequency, namely the second shutter speed, the screen flash phenomenon in the preview interface can be effectively inhibited and weakened through the second shutter speed, so that the problem that the real-time preview picture of the camera in the related art can show the screen flash phenomenon that bright and dark stripes alternately appear is solved. Meanwhile, the shutter speed can be prevented from being controlled in a lower range, the high shutter shooting requirement of a user during shooting is met, and the screen flash phenomenon can be effectively inhibited under the high shutter mode of the camera.
The shutter adjustment 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.
Fig. 2 is a schematic flowchart of a shutter adjustment method provided in an embodiment of the present application, where an execution subject of the shutter adjustment method may be an electronic device. The above-described execution body does not constitute a limitation of the present application.
As shown in fig. 2, the shutter adjustment method provided in the embodiment of the present application may include steps 210 to 250.
Step 210, under the condition that the preview interface includes a screen flashing strip, acquiring a first time length, and acquiring a plurality of frames of first preview images based on a first shutter speed of the electronic device.
The first duration may be a duration required for a camera sensor of the electronic device to scan a single line of image pixels, the first shutter speed may be a system default shutter speed of the electronic device, or a shutter speed manually set by a user, and the multiple frames of first preview images may be consecutive multiple frames of preview images acquired based on the first shutter speed of the electronic device.
Step 220, determining a first frequency bandwidth of the screen flash strip according to the plurality of frames of the first preview images.
The first frequency bandwidth may be used to represent a minimum number of pixel rows of the screen flash strip with the highest brightness value, which are separated in two adjacent frames of the first preview image.
In some embodiments of the present application, step 220 may include steps 310-350 as shown in fig. 3 in order to accurately determine the frequency bandwidth of the screen flash strip.
And 310, performing graying processing on the multi-frame first preview image to obtain a multi-frame first grayscale image.
Specifically, the electronic device may perform graying processing on each frame of the first preview image to obtain a first grayscale image corresponding to each frame of the first preview image. Since the first preview image is a plurality of consecutive frames, the obtained plurality of frames of the first grayscale image are also a plurality of consecutive frames.
Exemplarily, (a), (b), and (c) may be continuous three frames of the first gray image as shown in fig. 4.
And step 320, determining the average value of the gray values of the first gray images of the multiple frames.
And 330, generating a second gray image by taking the average value of the gray values of the multi-frame first gray images as a target gray value.
Illustratively, the multi-frame first gray image may include a1, a2, and A3, wherein each frame of the first gray image may include i pixel points. Using any pixel point N in i pixel pointsiFor example, the electronic device may be based on the same pixel point N in the A1, A2, and A3 imagesiObtaining a pixel point N according to the corresponding gray valueiThe average value M0 of the gray values can be used as the pixel point N in the second gray image a0 by the average value M0 of the gray valuesiThe corresponding gray value, i.e. the target gray value. Therefore, the average value of the gray values of each pixel point based on i pixel pointsA second gray scale image a0 may be generated.
Step 340, determining a third gray image according to the gray value difference between the first gray image and the second gray image of each frame.
Referring to the above example, after the second gray image a0 is generated from the first gray image of three frames a1, a2, A3, three frames of third gray images may be generated based on the gray value differences of the pixels in a1 and a0, a2 and a0, A3 and a0, respectively.
And 350, calculating the minimum line width between the gray value wave troughs of the third gray image of two adjacent frames to obtain the first frequency bandwidth of the screen flash strip.
The minimum line width may be a minimum number of pixel lines spaced between the valleys of the gray values of the second gray image of two adjacent frames.
The smaller the gray scale value is, the higher the brightness is, so the gray scale value trough (the minimum gray scale value) of the third gray scale image may represent the gray scale value corresponding to the screen flash strip with the highest brightness value. Based on this, a first pixel line number and a second pixel line number corresponding to the gray value trough of the third gray image of two adjacent frames can be respectively determined, and the minimum difference between the first pixel line number and the second pixel line number is the minimum line width, that is, the first frequency bandwidth of the screen flash strip.
Illustratively, B1 and B2 are adjacent two frames of the third grayscale image. As shown in fig. 5, the curves 501 and 502 are two curves corresponding to B1 and B2, respectively, the X-axis is the pixel coordinate (unit: pixel row) of the third gray scale image in the Y-axis direction, and the Y-axis is the gray scale value corresponding to the pixel coordinate in the third gray scale image. Where 503 is a valley of the gray scale value of the curve 501, and the pixel coordinate of 503 in the Y-axis direction in the third gray scale image B1 is about 200; 504 is a valley of the curve 502, and the pixel coordinate of 504 in the Y-axis direction in the third gray image B2 is about 800. If 503 and 504 are two gray value troughs with the closest pixel coordinate distance among all the gray value troughs of the curves 501 and 502, the minimum line width can be determined to be 800-200-600, i.e. the first frequency bandwidth of the screen flash strip is 600 lines.
In one embodiment, based on the multiple frames of the first grayscale images obtained in step 310, step 340 may determine multiple frames of the third grayscale images, and since the first frequency bandwidth may be determined based on two adjacent frames of the third grayscale images, step 350 may select at least two frames of the third grayscale images. When the selected third gray image is larger than two frames, the minimum line width between the gray value troughs of the third gray images of the two adjacent frames can be calculated to obtain at least two minimum line widths, and the average value of the at least two minimum line widths is used as the first frequency bandwidth of the screen flash strip.
In this embodiment of the application, after acquiring multiple frames of first preview images, the electronic device may perform graying processing on the multiple frames of first preview images to obtain multiple frames of first grayscale images, and generate a second grayscale image by using an average value of grayscale values of the multiple frames of first grayscale images as a target grayscale value. Based on the above, the third gray scale image can be determined according to the gray scale value difference value between each frame of the first gray scale image and each frame of the second gray scale image, the first frequency bandwidth of the screen flash strip can be accurately determined by calculating the minimum line width between the gray scale value troughs of the adjacent two frames of the third gray scale images, so that the moving cycle frequency of the screen flash strip, namely the light source frequency corresponding to the screen flash strip, can be accurately obtained, and the banding phenomenon can be quickly and effectively weakened and improved by adjusting the shutter speed to be integral multiple of the light source frequency.
In step 230, a first moving cycle frequency of the screen flash strip is determined according to the first frequency bandwidth and the first time length.
The first moving cycle frequency can be used for representing the light source frequency corresponding to the screen flashing strip.
In some embodiments of the present application, the first moving period frequency may be a ratio of 1 to a first band moving period, and the first band moving period may be a product of the first frequency bandwidth and the first time duration.
For example, the first frequency bandwidth may be 600 lines, the first time length may be 26.3us, the first frequency band shifting period may be 26.3us 800 — 21.04ms, and the first shifting period frequency may be 48 (1/0.02104).
In step 240, the first shutter speed is adjusted to a second shutter speed, and the second shutter speed is an integer multiple of the first movement period frequency.
In some embodiments of the present application, in order to guarantee a photographing requirement of a user while suppressing a banding phenomenon, the integer multiple value may be a target integer multiple value having a minimum difference from the first shutter speed.
For example, the first shutter speed may be 200, the first movement cycle frequency may be 48, and the difference from 200 is 192, which is the smallest among integer multiple values of 48, so that the second shutter speed may be determined to be the target integer multiple value 192.
In the embodiment of the present application, the second shutter speed may be an integer multiple of the first movement cycle frequency, and the target integer multiple with the smallest difference from the first shutter speed, so that when the first shutter speed is adjusted, the adjustment range of the shutter speed can be reduced as much as possible, and the adjustment range of the shutter speed is reduced to the minimum while the banding phenomenon is effectively suppressed, so as to fully meet the shooting requirements of the user.
It should be noted that the second shutter speed may also be specifically set according to the requirement of the user on the shutter speed or the movement speed of the shooting object.
For example, when the shutter speed required by the user is slow or the moving speed of the photographic object is slow, the second shutter speed may be an integer multiple value smaller than the first preset shutter speed threshold value among all integer multiple values of the first movement cycle frequency; when the shutter speed required by the user is higher or the motion speed of the shooting object is higher, the second shutter speed can be an integer multiple value which is greater than a second preset shutter speed threshold value in all integer multiple values of the first movement cycle frequency; the first preset shutter speed threshold and the second preset shutter speed threshold may be set according to a user requirement, and the application is not specifically limited herein.
And step 250, acquiring a target shutter speed based on the second shutter speed, and shooting the preview interface based on the target shutter speed to obtain a shot image.
In some embodiments of the present application, step 250 may include steps 610-620 shown in fig. 6 in order to improve the shooting effect of the shot image.
And step 610, setting the second shutter speed as the target shutter speed under the condition that the second frequency bandwidth of the screen flash strip is smaller than the preset width threshold value.
The preset width threshold may be set according to specific requirements, for example, the preset width threshold may be 1 cm. The second frequency bandwidth may be determined based on the second shutter speed.
In some embodiments of the present application, the method may further comprise: acquiring a plurality of frames of second preview images based on the second shutter speed; and determining a second frequency bandwidth of the screen flash strip according to the second preview images of the plurality of frames.
The second frequency bandwidth may be used to represent a minimum number of pixel rows of the flash strip with the highest luminance value, which are separated in two adjacent frames of the second preview image.
In an embodiment, the determining the second frequency bandwidth of the screen flash strip according to the second preview images of the plurality of frames may specifically include: carrying out graying processing on the multi-frame second preview image to obtain a multi-frame fourth grayscale image; determining the average value of the gray values of the fourth gray images of the multiple frames; generating a fifth gray image by taking the average value of the gray values of the multiple frames of fourth gray images as a target gray value; determining a sixth gray image according to the gray value difference value of the fourth gray image and the fifth gray image of each frame; and calculating the minimum line width between the gray value wave troughs of the sixth gray image of two adjacent frames to obtain the second frequency bandwidth of the screen flash strip.
It should be noted that the smaller the second frequency bandwidth of the screen flash strip, the better the suppression effect of the banding phenomenon, and in the case that the attenuation of the second frequency bandwidth is 0, the banding phenomenon can be greatly suppressed. And thus is completely eliminated.
And step 620, shooting the preview interface based on the second shutter speed to obtain a shot image.
In the embodiment of the application, under the condition that the second frequency bandwidth is smaller than the preset width threshold, the suppression effect of the banding phenomenon is satisfied with the shooting requirement, so that the screen flash stripes in the shot image can be effectively weakened or even eliminated based on the image shot at the second shutter speed, and the quality and the effect of the shot image are improved.
According to the shutter adjusting method provided by the embodiment of the application, under the condition that a screen flash phenomenon occurs on a preview interface, a plurality of frames of first preview images can be obtained based on a first shutter speed of electronic equipment, and the first frequency bandwidth of a screen flash strip is determined according to the plurality of frames of first preview images. Based on the above, the first moving cycle frequency of the screen flash strip can be determined according to the first frequency bandwidth and the first time length, and after the first shutter speed is adjusted to be an integral multiple of the first moving cycle frequency, namely, the second shutter speed, the screen flash phenomenon in the preview interface can be effectively inhibited and weakened through the second shutter speed. On the basis, the preview interface is shot through the target shutter speed after the second shutter speed is adjusted, so that the quality of shot images can be improved, and the shooting experience of a user is improved.
In some embodiments of the present application, the obtaining the first duration in step 210 may include: acquiring a preset main frequency and a preset line width of a camera sensor of the electronic equipment; and calculating the first time according to the preset main frequency and the preset line width of the camera sensor.
The first duration is a product of a period corresponding to the preset main frequency and a preset line width, the preset main frequency and the preset line width can be configuration parameters of a camera sensor (sensor), and the preset main frequency and the preset line width can be specifically set according to shooting requirements.
The electronic device takes an image by the camera sensor, which is scanned line by line, so that the time required for scanning a single line of image pixels can be calculated from the preset main frequency and the preset line width of the camera sensor.
Illustratively, the preset dominant frequency of the camera sensor may be 76Mhz, and the preset line width may be 2000 (the resolution of the original raw image contains 2000 cycles for a single image line). Here, the period corresponding to 76Mhz is 13.15ns, so the first time length to be consumed by the camera sensor for each line of image pixels, or for each line of image data to be output, is 13.15 ns-2000-26.3 us.
In the embodiment of the application, by acquiring the preset main frequency and the preset line width of the camera sensor, the time required by the camera sensor to scan a single line of image pixels, namely the first time, can be accurately calculated according to the preset main frequency and the preset line width. On this basis, electronic equipment can accurately determine the first removal cycle frequency of screen flashing strip based on first duration to realize the accurate regulation of shutter speed according to first removal cycle frequency, effectively restrain the banding phenomenon in the preview interface, promote the user and shoot and experience.
In other embodiments of the present application, as shown in fig. 5, since the signal light source is a non-standard sine wave and there may be an error in each parameter data, the first moving period frequency may not be an ideal value, and after the first shutter speed is adjusted to the second shutter speed based on the first moving period frequency, although the banding phenomenon may be suppressed, the banding phenomenon may not be completely eliminated.
Therefore, in the case that the first movement cycle frequency is not an ideal value, in order to be able to further suppress the banding phenomenon, the second shutter speed may be further adjusted, and step 250 may include steps 630 to 650 as shown in fig. 6.
The adjustment process of the second shutter speed is described in detail below.
Step 630, under the condition that the second frequency bandwidth is not less than the preset width threshold, calculating a second moving cycle frequency of the screen flashing strip according to the second frequency bandwidth and the first time length.
And step 640, adjusting the second shutter speed based on the integer multiple of the second movement period frequency and one half of the first adjustment step length to obtain the target shutter speed.
The first adjustment step length may be a difference between the first shutter speed and the second shutter speed, and a target frequency bandwidth of the screen flash band corresponding to the target shutter speed is smaller than a preset width threshold.
Specifically, when the second frequency bandwidth is not less than the preset width threshold, it is described that the calculated first frequency bandwidth moving cycle frequency and the second shutter speed have inevitable errors, which are not ideal values, and the suppression effect of the banding phenomenon does not meet the shooting requirement. However, since the second shutter speed is only an error and is not much different from the ideal shutter value, the second shutter speed can be further adjusted to obtain a target shutter speed that can satisfy the shooting requirement with a suppression effect.
After adjusting the first shutter speed to the second shutter speed, the electronic device may continue to adjust the second shutter speed in the same adjustment manner, where the adjustment step length (the value that is increased/decreased based on the shutter speed obtained by the previous calculation) of each time is half of the previous adjustment step length in the adjustment process.
Therefore, the rapid convergence of the shutter speed during the initial adjustment can be ensured, and the shutter speed can be slowly adjusted to be close to an ideal shutter value based on the continuous reduction of the adjustment step length in the initial adjustment process of the shutter, so that the accurate adjustment of the shutter speed is realized.
And step 650, shooting the preview interface based on the target shutter speed to obtain a shot image.
In this embodiment of the application, under the condition that the second frequency bandwidth is not less than the preset width threshold, it is indicated that the suppression effect of the banding phenomenon does not meet the shooting requirement, at this time, the second moving period frequency of the screen flashing strip may be calculated according to the second frequency bandwidth and the first time length, and the second shutter speed is continuously adjusted based on the integer multiple value of the second moving period frequency and the half of the first adjustment step length to obtain the target shutter speed, so as to further suppress the banding phenomenon. Because the target frequency bandwidth of the screen flash strip corresponding to the target shutter speed is smaller than the preset width threshold, the banding phenomenon can be effectively inhibited, the preview interface is shot based on the target shutter speed, the banding phenomenon in a shot image can be improved, and the image quality and the image effect are improved.
In some embodiments of the present application, step 640 may specifically include: adjusting the second shutter speed based on one half of the first adjustment step length to enable the adjusted third shutter speed to be close to a target integer multiple value of the second movement cycle frequency, wherein the target integer multiple value of the second movement cycle frequency can be an integer multiple value with the smallest difference with the second shutter speed in all integer multiple values of the second movement cycle frequency; and under the condition that the third frequency bandwidth of the screen flash strip corresponding to the third shutter speed is smaller than the preset width threshold value, determining that the third shutter speed is the target shutter speed, and the third frequency bandwidth is the target frequency bandwidth.
Illustratively, the first shutter speed may be 200, the second shutter speed may be 192, and thus the first adjustment step size is 8, and the next adjustment may be plus/minus 4 on the basis of the second shutter speed 192. Specifically, the second movement cycle frequency may be set to be equal to an integer multiple of 46, and the integer multiple having the smallest difference from the second shutter speed 192 may be set to be 184. Therefore, in order to allow the adjusted third shutter speed to approach 184 on the basis of 192, the second shutter speed 192 may be adjusted to the third shutter speed 188 by subtracting 4 from 192.
It should be noted that, after the second shutter speed is adjusted to be the third shutter speed, if the third bandwidth of the screen flash band corresponding to the adjusted third shutter speed is still not less than the preset bandwidth threshold, it indicates that the suppression effect of the banding phenomenon still does not meet the shooting requirement. Therefore, the electronic device may continue to adjust the third shutter speed by using a shutter speed adjustment manner that adjusts the second shutter speed to the third shutter speed until the target frequency bandwidth of the flash band corresponding to the adjusted target shutter speed is smaller than the preset width threshold.
Next, a description will be given of a manner of adjusting the shutter speed, taking as an example adjustment of the third shutter speed to the fourth shutter speed.
In one embodiment, the method may further comprise: under the condition that a third frequency band width of the screen flash strip corresponding to the third shutter speed is not smaller than a preset width threshold value, calculating a third moving cycle frequency of the screen flash strip according to the third frequency band width and the first time length; adjusting the third shutter speed based on the integral multiple value of the third moving period frequency and one half of a second adjusting step length to obtain a fourth shutter speed, wherein the second adjusting step length is the difference value between the second shutter speed and the third shutter speed; and under the condition that a fourth frequency bandwidth of the screen flash strip corresponding to the fourth shutter speed is smaller than a preset width threshold value, determining that the fourth shutter speed is the target shutter speed, and the fourth frequency bandwidth is the target frequency bandwidth.
Specifically, adjusting the third shutter speed based on the integer multiple of the third movement cycle frequency and one half of the second adjustment step length to obtain the fourth shutter speed may specifically include: and adjusting the third shutter speed based on one half of the second adjustment step size to enable the adjusted fourth shutter speed to be close to the target integer multiple value of the third movement period frequency, wherein the target integer multiple value of the third movement period frequency can be the integer multiple value with the smallest difference with the third shutter speed in all integer multiple values of the third movement period frequency.
Illustratively, the second shutter speed may be 192, the third shutter speed may be 188, and the second adjustment step size is 8, then the next adjustment may be to increase/decrease 2 based on the third shutter speed 188. Specifically, the second movement cycle frequency may be an integer multiple of 49, and the integer multiple having the smallest difference from the third shutter speed 188 may be 196. Therefore, in order to allow the adjusted third shutter speed to approach 196 on the basis of 188, 2 may be added on the basis of 188 to adjust the third shutter speed 188 to the fourth shutter speed 190.
It should be noted that, with the continuous adjustment of the shutter speed, the adjustment step length may be continuously converged, and when the adjustment step length is 0 (the adjustment step length may be an integer), the shutter speed is not changed any more, and the obtained shutter speed may be an ideal shutter speed, and the frequency bandwidth of the screen flash band corresponding to the ideal shutter speed may approach to 0, so the adjustment is stopped.
It should be noted that, in the shutter adjustment method provided in the embodiments of the present application, the execution subject may be a shutter adjustment device, or a shutter adjustment module of the method for executing shutter adjustment in the shutter adjustment device. In the embodiment of the present application, a method for executing shutter adjustment by a shutter adjustment device is taken as an example, and the shutter adjustment device provided in the embodiment of the present application is described. The shutter adjusting apparatus will be described in detail below.
Fig. 7 is a schematic structural diagram of a shutter adjusting apparatus provided in the present application.
As shown in fig. 7, an embodiment of the present application provides a shutter adjustment apparatus 700, where the shutter adjustment apparatus 700 includes: an acquisition module 710, a determination module 720, an adjustment module 730, and a shooting module 740.
The obtaining module 710 is configured to obtain a first duration when the preview interface includes a screen flash strip, and obtain a plurality of frames of first preview images based on a first shutter speed of the electronic device; a determining module 720, configured to determine a first frequency bandwidth of a screen flash strip according to multiple frames of the first preview image; a determining module 720, configured to determine a first moving cycle frequency of the screen flashing stripe according to the first frequency bandwidth and the first time length; the adjusting module 730 is configured to adjust the first shutter speed to be a second shutter speed, where the second shutter speed is an integer multiple of the first moving cycle frequency; and the shooting module 740 is configured to obtain a target shutter speed based on the second shutter speed, and shoot the preview interface based on the target shutter speed to obtain a shot image.
According to the shutter adjusting device provided by the embodiment of the application, under the condition that a screen flash phenomenon occurs on a preview interface, a plurality of frames of first preview images can be obtained based on a first shutter speed of electronic equipment, and the first frequency bandwidth of a screen flash strip is determined according to the plurality of frames of first preview images. Based on the above, the first moving cycle frequency of the screen flash strip can be determined according to the first frequency bandwidth and the first time length, and after the first shutter speed is adjusted to be an integral multiple of the first moving cycle frequency, namely, the second shutter speed, the screen flash phenomenon in the preview interface can be effectively inhibited and weakened through the second shutter speed. On the basis, the preview interface is shot through the target shutter speed after the second shutter speed is adjusted, so that the quality of shot images can be improved, and the shooting experience of a user is improved.
In some embodiments of the present application, the determining module 720 includes: the processing unit is used for carrying out graying processing on the multi-frame first preview image to obtain a multi-frame first grayscale image; the determining unit is used for determining the average value of the gray values of the multiple frames of the first gray images; the generating unit is used for generating a second gray image by taking the average value of the gray values of the multi-frame first gray images as a target gray value; the determining unit is further used for determining a third gray image according to the gray value difference value of each frame of the first gray image and the second gray image; and the calculating unit is used for calculating the minimum line width between the gray value wave troughs of the third gray image of two adjacent frames to obtain the first frequency bandwidth of the screen flash strip.
In this embodiment of the application, after acquiring multiple frames of first preview images, the electronic device may perform graying processing on the multiple frames of first preview images to obtain multiple frames of first grayscale images, and generate a second grayscale image by using an average value of grayscale values of the multiple frames of first grayscale images as a target grayscale value. Based on the above, the third gray scale image can be determined according to the gray scale value difference value between each frame of the first gray scale image and each frame of the second gray scale image, the first frequency bandwidth of the screen flash strip can be accurately determined by calculating the minimum line width between the gray scale value troughs of the adjacent two frames of the third gray scale images, so that the moving cycle frequency of the screen flash strip, namely the light source frequency corresponding to the screen flash strip, can be accurately obtained, and the banding phenomenon can be quickly and effectively weakened and improved by adjusting the shutter speed to be integral multiple of the light source frequency.
In some embodiments of the present application, the integer multiple value is a target integer multiple value that has a minimum difference from the first shutter speed.
In the embodiment of the present application, the second shutter speed may be an integer multiple of the first movement cycle frequency, and the target integer multiple with the smallest difference from the first shutter speed, so that when the first shutter speed is adjusted, the adjustment range of the shutter speed can be reduced as much as possible, and the adjustment range of the shutter speed is reduced to the minimum while the banding phenomenon is effectively suppressed, so as to fully meet the shooting requirements of the user.
In some embodiments of the present application, the photographing module 740 includes: the setting unit is used for setting the second shutter speed as the target shutter speed under the condition that the second frequency bandwidth of the screen flash strip is smaller than a preset width threshold value; the shooting unit is used for shooting the preview interface based on a second shutter speed to obtain a shot image, wherein the second frequency bandwidth is determined based on the second shutter speed; the calculating unit is used for calculating a second moving cycle frequency of the screen flashing strip according to the second frequency bandwidth and the first time length under the condition that the second frequency bandwidth is not smaller than a preset width threshold value; the adjusting unit is used for adjusting the second shutter speed based on the integral multiple value of the second moving period frequency and one half of the first adjusting step length to obtain a target shutter speed, wherein the first adjusting step length is the difference value of the first shutter speed and the second shutter speed, and the target frequency bandwidth of the screen flash strip corresponding to the target shutter speed is smaller than a preset width threshold value; and the shooting unit is used for shooting the preview interface based on the target shutter speed to obtain a shot image.
In this embodiment of the application, under the condition that the second frequency bandwidth is not less than the preset width threshold, it is indicated that the suppression effect of the banding phenomenon does not meet the shooting requirement, at this time, the second moving period frequency of the screen flashing strip may be calculated according to the second frequency bandwidth and the first time length, and the second shutter speed is continuously adjusted based on the integer multiple value of the second moving period frequency and the half of the first adjustment step length to obtain the target shutter speed, so as to further suppress the banding phenomenon. Because the target frequency bandwidth of the screen flash strip corresponding to the target shutter speed is smaller than the preset width threshold, the banding phenomenon can be effectively inhibited, the preview interface is shot based on the target shutter speed, the banding phenomenon in a shot image can be improved, and the image quality and the image effect are improved.
In some embodiments of the present application, the obtaining module 710 includes: the acquisition unit is used for acquiring a preset main frequency and a preset line width of a camera sensor of the electronic equipment; and the calculating unit is used for calculating the first time length according to the preset main frequency and the preset line width of the camera sensor.
In the embodiment of the application, by acquiring the preset main frequency and the preset line width of the camera sensor, the time required by the camera sensor to scan a single line of image pixels, namely the first time, can be accurately calculated according to the preset main frequency and the preset line width. On this basis, electronic equipment can accurately determine the first removal cycle frequency of screen flashing strip based on first duration to realize the accurate regulation of shutter speed according to first removal cycle frequency, effectively restrain the banding phenomenon in the preview interface, promote the user and shoot and experience.
The shutter adjusting device provided in the embodiment of the present application can implement each process implemented by the electronic device in the method embodiments of fig. 2 to 6, and is not described herein again to avoid repetition.
The shutter adjusting 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 shutter adjusting apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
Optionally, as shown in fig. 8, an electronic device 800 is further provided in an embodiment of the present application, and includes a processor 801, a memory 802, and a program or an instruction stored in the memory 802 and executable on the processor 801, where the program or the instruction is executed by the processor 801 to implement each process of the shutter adjustment 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 devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
The input unit 904 may include an image capture device, such as a camera.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 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 not repeated here.
The processor 910 is configured to, in a case that the preview interface includes a screen flashing strip, obtain a first duration, and obtain a plurality of frames of first preview images based on a first shutter speed of the electronic device; the processor 910 is further configured to determine a first frequency bandwidth of a screen flash strip according to a plurality of frames of the first preview image; a processor 910, further configured to determine a first moving cycle frequency of the screen flash stripe according to the first frequency bandwidth and the first time length; the processor 910 is further configured to adjust the first shutter speed to be a second shutter speed, where the second shutter speed is an integer multiple of the first movement cycle frequency; the processor 910 is further configured to obtain a target shutter speed based on the second shutter speed, and capture the preview interface based on the target shutter speed to obtain a captured image.
In this embodiment of the application, when a preview interface has a screen flash phenomenon, multiple frames of first preview images may be obtained based on a first shutter speed of the electronic device, and a first frequency bandwidth of a screen flash strip may be determined according to the multiple frames of first preview images. Based on the above, the first moving cycle frequency of the screen flash strip can be determined according to the first frequency bandwidth and the first time length, and after the first shutter speed is adjusted to be an integral multiple of the first moving cycle frequency, namely, the second shutter speed, the screen flash phenomenon in the preview interface can be effectively inhibited and weakened through the second shutter speed. On the basis, the preview interface is shot through the target shutter speed after the second shutter speed is adjusted, so that the quality of shot images can be improved, and the shooting experience of a user is improved.
In some embodiments of the present application, the processor 910 is specifically configured to: carrying out graying processing on the multi-frame first preview image to obtain a multi-frame first grayscale image; determining the average value of the gray values of the multiple frames of first gray images; generating a second gray image by taking the average value of the gray values of the multiple frames of first gray images as a target gray value; determining a third gray image according to the gray value difference value of each frame of the first gray image and the second gray image; and calculating the minimum line width between the gray value wave troughs of the third gray image of two adjacent frames to obtain the first frequency bandwidth of the screen flash strip.
In this embodiment of the application, after acquiring multiple frames of first preview images, the electronic device may perform graying processing on the multiple frames of first preview images to obtain multiple frames of first grayscale images, and generate a second grayscale image by using an average value of grayscale values of the multiple frames of first grayscale images as a target grayscale value. Based on the above, the third gray scale image can be determined according to the gray scale value difference value between each frame of the first gray scale image and each frame of the second gray scale image, the first frequency bandwidth of the screen flash strip can be accurately determined by calculating the minimum line width between the gray scale value troughs of the adjacent two frames of the third gray scale images, so that the moving cycle frequency of the screen flash strip, namely the light source frequency corresponding to the screen flash strip, can be accurately obtained, and the banding phenomenon can be quickly and effectively weakened and improved by adjusting the shutter speed to be integral multiple of the light source frequency.
In some embodiments of the present application, the integer multiple value is a target integer multiple value that has a minimum difference from the first shutter speed.
In the embodiment of the present application, the second shutter speed may be an integer multiple of the first movement cycle frequency, and the target integer multiple with the smallest difference from the first shutter speed, so that when the first shutter speed is adjusted, the adjustment range of the shutter speed can be reduced as much as possible, and the adjustment range of the shutter speed is reduced to the minimum while the banding phenomenon is effectively suppressed, so as to fully meet the shooting requirements of the user.
In some embodiments of the present application, the processor 910 is further configured to: setting the second shutter speed as the target shutter speed under the condition that the second frequency bandwidth of the screen flash strip is smaller than a preset width threshold value; shooting the preview interface based on a second shutter speed to obtain a shot image, wherein the second frequency bandwidth is determined based on the second shutter speed; under the condition that the second frequency bandwidth is not smaller than a preset width threshold value, calculating a second moving cycle frequency of the screen flashing strip according to the second frequency bandwidth and the first time length; adjusting the second shutter speed based on the integral multiple value of the second moving period frequency and one half of the first adjusting step length to obtain a target shutter speed, wherein the first adjusting step length is the difference value of the first shutter speed and the second shutter speed, and the target frequency bandwidth of the screen flash strip corresponding to the target shutter speed is smaller than a preset width threshold value; and shooting the preview interface based on the target shutter speed to obtain a shot image.
In this embodiment of the application, under the condition that the second frequency bandwidth is not less than the preset width threshold, it is indicated that the suppression effect of the banding phenomenon does not meet the shooting requirement, at this time, the second moving period frequency of the screen flashing strip may be calculated according to the second frequency bandwidth and the first time length, and the second shutter speed is continuously adjusted based on the integer multiple value of the second moving period frequency and the half of the first adjustment step length to obtain the target shutter speed, so as to further suppress the banding phenomenon. Because the target frequency bandwidth of the screen flash strip corresponding to the target shutter speed is smaller than the preset width threshold, the banding phenomenon can be effectively inhibited, the preview interface is shot based on the target shutter speed, the banding phenomenon in a shot image can be improved, and the image quality and the image effect are improved.
In some embodiments of the present application, the processor 910 is specifically configured to: acquiring a preset main frequency and a preset line width of a camera sensor of the electronic equipment; and calculating the first time according to the preset main frequency and the preset line width of the camera sensor.
In the embodiment of the application, by acquiring the preset main frequency and the preset line width of the camera sensor, the time required by the camera sensor to scan a single line of image pixels, namely the first time, can be accurately calculated according to the preset main frequency and the preset line width. On this basis, electronic equipment can accurately determine the first removal cycle frequency of screen flashing strip based on first duration to realize the accurate regulation of shutter speed according to first removal cycle frequency, effectively restrain the banding phenomenon in the preview interface, promote the user and shoot and experience.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics Processing Unit 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 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 detail herein. Memory 909 can be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiment of the present application further provides 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 embodiment of the shutter adjustment method, 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 in the above embodiment. Readable storage media, including computer-readable storage media, examples of which include non-transitory computer-readable storage media, such as computer-Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and so forth.
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 execute a program or an instruction to implement each process of the embodiment of the shutter adjustment method, and the same technical effect can be achieved.
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 (11)

1. A shutter adjustment method, the method comprising:
under the condition that a preview interface comprises a screen flashing strip, acquiring a first time length, and acquiring a plurality of frames of first preview images based on a first shutter speed of the electronic equipment;
determining a first frequency bandwidth of the screen flash strip according to the plurality of frames of first preview images;
determining a first moving cycle frequency of the screen flashing strip according to the first frequency bandwidth and the first time length;
adjusting the first shutter speed to be a second shutter speed, wherein the second shutter speed is an integral multiple value of the first movement period frequency;
and acquiring a target shutter speed based on the second shutter speed, and shooting the preview interface based on the target shutter speed to obtain a shot image.
2. The method of claim 1, wherein determining the first frequency bandwidth of the flash strip from the plurality of frames of the first preview image comprises:
carrying out graying processing on the multiple frames of first preview images to obtain multiple frames of first grayscale images;
determining an average value of gray values of the multiple frames of first gray images;
generating a second gray image by taking the average value of the gray values of the multiple frames of first gray images as a target gray value;
determining a third gray image according to the gray value difference value of each frame of the first gray image and the second gray image;
and calculating the minimum line width between the gray value wave troughs of the third gray image of two adjacent frames to obtain the first frequency bandwidth of the screen flash strip.
3. The method of claim 1, wherein the integer multiple value is a target integer multiple value that has a minimum difference from the first shutter speed.
4. The method according to any one of claims 1 to 3, wherein the obtaining a target shutter speed based on the second shutter speed and capturing the preview interface based on the target shutter speed to obtain a captured image comprises:
setting the second shutter speed as a target shutter speed under the condition that a second frequency bandwidth of the screen flash strip is smaller than a preset width threshold value;
shooting the preview interface based on the second shutter speed to obtain a shot image, wherein the second frequency bandwidth is determined based on the second shutter speed;
under the condition that the second frequency bandwidth is not smaller than the preset width threshold value, calculating a second moving cycle frequency of the screen flashing strip according to the second frequency bandwidth and the first time length;
adjusting the second shutter speed based on the integer multiple of the second movement cycle frequency and one half of a first adjustment step length to obtain a target shutter speed, wherein the first adjustment step length is a difference value between the first shutter speed and the second shutter speed, and a target frequency bandwidth of a screen flash strip corresponding to the target shutter speed is smaller than the preset width threshold;
and shooting the preview interface based on the target shutter speed to obtain a shot image.
5. The method according to any one of claims 1-3, wherein the obtaining the first time duration comprises:
acquiring a preset main frequency and a preset line width of a camera sensor of the electronic equipment;
and calculating the first time according to the preset main frequency and the preset line width of the camera sensor.
6. A shutter adjustment apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a first time length under the condition that the preview interface comprises a screen flashing strip, and acquiring a plurality of frames of first preview images based on a first shutter speed of the electronic equipment;
the determining module is used for determining a first frequency bandwidth of the screen flashing strip according to the plurality of frames of first preview images;
the determining module is configured to determine a first moving cycle frequency of the screen flashing strip according to the first frequency bandwidth and the first time length;
the adjusting module is used for adjusting the first shutter speed to be a second shutter speed, and the second shutter speed is an integral multiple value of the first moving period frequency;
and the shooting module is used for acquiring the target shutter speed based on the second shutter speed and shooting the preview interface based on the target shutter speed to obtain a shot image.
7. The apparatus of claim 6, wherein the determining module comprises:
the processing unit is used for carrying out graying processing on the multi-frame first preview image to obtain a multi-frame first grayscale image;
the determining unit is used for determining the average value of the gray values of the multiple frames of first gray images;
a generating unit configured to generate a second grayscale image with an average value of grayscale values of the plurality of frames of the first grayscale images as a target grayscale value;
the determining unit is further configured to determine a third grayscale image according to a grayscale value difference between the first grayscale image and the second grayscale image of each frame;
and the calculating unit is used for calculating the minimum line width between the gray value wave troughs of the third gray image of two adjacent frames to obtain the first frequency bandwidth of the screen flash strip.
8. The apparatus of claim 6, wherein the integer multiple value is a target integer multiple value that has a minimum difference from the first shutter speed.
9. The apparatus of any one of claims 6-8, wherein the capture module comprises:
a setting unit configured to set a second shutter speed as a target shutter speed when a second frequency bandwidth of the screen flash band is smaller than a preset width threshold;
the shooting unit is used for shooting the preview interface based on the second shutter speed to obtain a shot image, wherein the second frequency bandwidth is determined based on the second shutter speed;
the calculating unit is used for calculating a second moving cycle frequency of the screen flashing strip according to the second frequency bandwidth and the first time length under the condition that the second frequency bandwidth is not smaller than the preset width threshold value;
an adjusting unit, configured to adjust the second shutter speed based on an integer multiple of the second movement cycle frequency and one half of a first adjustment step length to obtain a target shutter speed, where the first adjustment step length is a difference between the first shutter speed and the second shutter speed, and a target frequency bandwidth of a screen flash band corresponding to the target shutter speed is smaller than the preset width threshold;
and the shooting unit is used for shooting the preview interface based on the target shutter speed to obtain a shot image.
10. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the shutter adjustment method according to any one of claims 1-5.
11. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, carry out the steps of the shutter adjustment method according to any one of claims 1 to 5.
CN202111138092.6A 2021-09-27 2021-09-27 Shutter adjusting method, device, equipment and storage medium Pending CN113840090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111138092.6A CN113840090A (en) 2021-09-27 2021-09-27 Shutter adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111138092.6A CN113840090A (en) 2021-09-27 2021-09-27 Shutter adjusting method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113840090A true CN113840090A (en) 2021-12-24

Family

ID=78971008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111138092.6A Pending CN113840090A (en) 2021-09-27 2021-09-27 Shutter adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113840090A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114529729A (en) * 2022-04-22 2022-05-24 珠海视熙科技有限公司 Strobe detection and elimination method, device, camera and storage medium
WO2024007948A1 (en) * 2022-07-06 2024-01-11 维沃移动通信有限公司 Stroboscopic image processing method and apparatus, electronic device and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1946143A (en) * 2006-11-07 2007-04-11 北京中星微电子有限公司 Method and device for clearing explosure flash
JP2008011226A (en) * 2006-06-29 2008-01-17 Kyocera Corp Method and device for detecting flicker of imaging apparatus
CN103327239A (en) * 2013-05-31 2013-09-25 Tcl通讯(宁波)有限公司 Camera data processing method based on mobile terminal and mobile terminal
JP2015159396A (en) * 2014-02-24 2015-09-03 シャープ株式会社 Imaging apparatus, image generation method, and program
CN105657288A (en) * 2015-10-28 2016-06-08 乐视移动智能信息技术(北京)有限公司 Camera shooting exposure processing method and terminal
CN107255524A (en) * 2017-04-26 2017-10-17 广东顺德中山大学卡内基梅隆大学国际联合研究院 A kind of method for the frequency that LED/light source is detected based on mobile device camera
CN110855901A (en) * 2019-11-28 2020-02-28 维沃移动通信有限公司 Camera exposure time control method and electronic equipment
CN111246051A (en) * 2018-11-09 2020-06-05 浙江宇视科技有限公司 Method, device, equipment and storage medium for automatically detecting stripes and inhibiting stripes
CN112351216A (en) * 2020-10-10 2021-02-09 深圳开阳电子股份有限公司 Method for detecting and eliminating video flicker and image processing device
CN112738414A (en) * 2021-04-06 2021-04-30 荣耀终端有限公司 Photographing method, electronic device and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008011226A (en) * 2006-06-29 2008-01-17 Kyocera Corp Method and device for detecting flicker of imaging apparatus
CN1946143A (en) * 2006-11-07 2007-04-11 北京中星微电子有限公司 Method and device for clearing explosure flash
CN103327239A (en) * 2013-05-31 2013-09-25 Tcl通讯(宁波)有限公司 Camera data processing method based on mobile terminal and mobile terminal
JP2015159396A (en) * 2014-02-24 2015-09-03 シャープ株式会社 Imaging apparatus, image generation method, and program
CN105657288A (en) * 2015-10-28 2016-06-08 乐视移动智能信息技术(北京)有限公司 Camera shooting exposure processing method and terminal
CN107255524A (en) * 2017-04-26 2017-10-17 广东顺德中山大学卡内基梅隆大学国际联合研究院 A kind of method for the frequency that LED/light source is detected based on mobile device camera
CN111246051A (en) * 2018-11-09 2020-06-05 浙江宇视科技有限公司 Method, device, equipment and storage medium for automatically detecting stripes and inhibiting stripes
CN110855901A (en) * 2019-11-28 2020-02-28 维沃移动通信有限公司 Camera exposure time control method and electronic equipment
CN112351216A (en) * 2020-10-10 2021-02-09 深圳开阳电子股份有限公司 Method for detecting and eliminating video flicker and image processing device
CN112738414A (en) * 2021-04-06 2021-04-30 荣耀终端有限公司 Photographing method, electronic device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114529729A (en) * 2022-04-22 2022-05-24 珠海视熙科技有限公司 Strobe detection and elimination method, device, camera and storage medium
WO2024007948A1 (en) * 2022-07-06 2024-01-11 维沃移动通信有限公司 Stroboscopic image processing method and apparatus, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
US11006046B2 (en) Image processing method and mobile terminal
US11699217B2 (en) Generating gaze corrected images using bidirectionally trained network
US9218653B2 (en) Method and apparatus for dynamic range enhancement of an image
JP4482037B2 (en) Digital imaging exposure
CN105578068B (en) A kind of generation method of high dynamic range images, device and mobile terminal
CN113840090A (en) Shutter adjusting method, device, equipment and storage medium
EP2819092B1 (en) Image correction apparatus and imaging apparatus
CN113099122A (en) Shooting method, shooting device, shooting equipment and storage medium
CN108335272B (en) Method and device for shooting picture
US8644555B2 (en) Device and method for detecting movement of object
JP2014121019A (en) Image processing system and control method of the same
CN113163128A (en) Image exposure method and electronic device
CN113596294A (en) Shooting method and device and electronic equipment
JP2007249436A (en) Image signal processor and processing method
CN112437237B (en) Shooting method and device
CN112367465B (en) Image output method and device and electronic equipment
CN113660425A (en) Image processing method and device, electronic equipment and readable storage medium
CN111901519B (en) Screen light supplement method and device and electronic equipment
CN112351205B (en) Shooting control method and device
CN112887605B (en) Image anti-shake method and device and electronic equipment
CN112446848A (en) Image processing method and device and electronic equipment
CN112367464A (en) Image output method and device and electronic equipment
CN114143448B (en) Shooting method, shooting device, electronic equipment and readable storage medium
CN112492208B (en) Shooting method and electronic equipment
JP2006031171A (en) Pseudo three-dimensional data generation method, apparatus, program and recording 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