Shooting method, electronic equipment and storage medium
By determining and filtering the light source frequency and adjusting the exposure time, the banding phenomenon caused by the flicker sensor being unable to detect the light source frequency is solved, and image quality and user experience are improved.
Patent Information
- Application Number
- CN202410040086.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-09
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-01-09
AI Technical Summary
In the prior art, when there is a light source frequency in the shooting environment, the flicker sensor cannot accurately detect the light source frequency, resulting in the inability to effectively eliminate the banding phenomenon and affect the image quality.
By obtaining the data collected by the flicker sensor, determining the frequency of N light sources with the largest amplitude, and determining whether the current scene is the target scene based on the frequency threshold, filtering out the target frequency, and adjusting the exposure time of the camera to eliminate the banding phenomenon.
Effectively eliminate banding phenomenon, improve image quality, and improve user shooting experience, especially when the subject's dimming frequency and refresh rate are high.
Smart Images

Figure CN119255111A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a shooting method, an electronic device, and a storage medium. Background Art
[0002] With the increasing development of smart terminals, the shooting function has become an essential function of smart terminals, and users' demand and experience for shooting (photographing and / or videography) of smart terminals are also increasing.
[0003] When there is a light source of a certain frequency in the shooting environment, the images collected by the cameras of electronic devices such as cameras, mobile phones, and drones will produce banding. The banding phenomenon refers to the presence of stripes of different brightness on the collected image. At present, the processing method to eliminate the banding phenomenon is to use a flicker sensor to identify the light source signal in the shooting environment, obtain the frequency of the identified light source signal (i.e., the light source frequency), and then adjust the exposure time according to the light source frequency. However, the above processing method has limitations in some scenarios. For example, when the sampling frequency of the flicker sensor is low and the flicker sensor cannot detect or cannot accurately detect the light source frequency, it will not be able to effectively eliminate the banding phenomenon. Summary of the invention
[0004] The embodiments of the present application provide a shooting method, an electronic device, and a storage medium, which can effectively eliminate the banding phenomenon, improve image quality, and help improve the user's shooting experience.
[0005] In a first aspect, the present application provides a shooting method, which is applied to an electronic device, wherein the electronic device includes a flicker sensor and a camera, and the method includes: obtaining a first sequence of data collected by the flicker sensor in a current shooting scene; determining N light source frequencies with the largest amplitudes based on the first sequence of data, where N is an integer greater than or equal to 2; determining whether the current shooting scene is a target scene based on a frequency threshold and the N light source frequencies; when the current shooting scene is the target scene, determining a target frequency among the N light source frequencies based on a first frequency value and a frequency threshold; assigning the frequency value of the target frequency to a first frequency value to obtain a flicker frequency; and adjusting the exposure time of the camera according to the flicker frequency.
[0006] The present application scheme determines whether the current shooting scene is the target scene through the frequency threshold and N light source frequencies. Based on the fact that there may be a light source frequency in the target scene that cannot be detected or cannot be accurately detected by the flicker sensor, when the current shooting scene is the target scene, the target frequency among the N light source frequencies is determined according to the first frequency value and the frequency threshold, that is, the target frequency that is a multiple of the first frequency value is screened out, wherein the first frequency value is related to the light source frequency in the target scene, and the frequency value of the target frequency is assigned to the first frequency value to obtain the flicker frequency, and then the exposure time of the camera can be adjusted based on the flicker frequency, which can effectively eliminate the banding phenomenon.
[0007] For the situation where the dimming frequency and / or refresh rate of the subject reaches a certain level, resulting in the flicker sensor being unable to accurately and stably detect the light source frequency of the subject, the light source frequency of the subject (such as the target frequency) can be identified based on the light source frequency detected by the flicker sensor, thereby improving the accuracy and stability of identifying the light source frequency of the subject, and then obtaining the flicker frequency based on the detected light source frequency of the subject, and adjusting the exposure time of the electronic device according to the flicker frequency, which is more conducive to eliminating the banding phenomenon, improving image quality, and helping to improve the user's shooting experience.
[0008] In one possible implementation, assigning the frequency value of the target frequency to a first frequency value to obtain the flickering frequency includes: when the maximum target frequency with the largest amplitude among the target frequencies is the first frequency, assigning the frequency value of the first frequency to the first frequency value to obtain the flickering frequency, wherein the first frequency is the frequency with the largest amplitude among the N light source frequencies.
[0009] In one possible implementation, assigning the frequency value of the target frequency to the first frequency value, and obtaining the flickering frequency also includes: when the maximum target frequency is not the first frequency, determining whether the first frequency matches the standard AC power frequency; if so, determining that the frequency value of the first frequency is the second frequency value or the third frequency value, and obtaining the flickering frequency; if not, assigning the frequency value of the maximum target frequency to the first frequency value, and obtaining the flickering frequency.
[0010] In one possible implementation, before assigning the frequency value of the first frequency to the first frequency value, it also includes: inputting N light source frequencies into a frequency multiplier to obtain a frequency after frequency multiplication processing; inputting the frequency after frequency multiplication processing into a mixer to obtain a frequency after frequency mixing processing; performing sidelobe processing on the first frequency obtained after the frequency mixing processing, and outputting the first frequency after the sidelobe processing; when the maximum target frequency with the largest amplitude among the target frequencies is the first frequency, assigning the frequency value of the first frequency to the first frequency value includes: when the maximum target frequency with the largest amplitude among the target frequencies is the first frequency after sidelobe processing, assigning the frequency value of the first frequency after the sidelobe processing to the first frequency value; the flicker frequency includes the assigned first frequency, or the assigned first frequency and the second frequency after frequency mixing processing, and the second frequency is the frequency with the second largest amplitude among the N light source frequencies.
[0011] In one possible implementation, before determining that the frequency value of the first frequency is the second frequency value or the third frequency value, it also includes: inputting N light source frequencies into a frequency multiplier to obtain a frequency after frequency multiplication; inputting the frequency after frequency multiplication into a mixer to obtain a frequency after mixing; performing sidelobe processing on the first frequency obtained after mixing, and outputting the first frequency after sidelobe processing; determining that the frequency value of the first frequency is the second frequency value or the third frequency value includes: determining that the frequency value of the first frequency after sidelobe processing is the second frequency value or the third frequency value; assigning the frequency value of the maximum target frequency to the first frequency value; the flicker frequency includes the assigned first frequency and the assigned maximum target frequency.
[0012] In one possible implementation, the method also includes: when the current shooting scene is not the target scene, determining whether the first frequency with the largest amplitude among the N light source frequencies matches the standard AC power frequency; if so, determining that the frequency value of the first frequency is the second frequency value or the third frequency value to obtain the flicker frequency; if not, when the frequency value of the first frequency is a multiple of the first frequency value, assigning the frequency value of the first frequency to the first frequency value to obtain the flicker frequency.
[0013] In a possible implementation, the first frequency value is smaller than the second frequency value, and the first frequency value is smaller than the third frequency value.
[0014] In a possible implementation, the first frequency value is 60 Hz, the second frequency value is 100 Hz, and the third frequency value is 120 Hz.
[0015] In one possible implementation, determining a target frequency among N light source frequencies based on a first frequency value and a frequency threshold includes: taking a light source frequency among the N light source frequencies whose frequency value is greater than or equal to the frequency threshold as a candidate light source frequency; and determining a light source frequency among the candidate light source frequencies whose frequency value is 2*M times the first frequency value as the target frequency, where M is an integer greater than or equal to 1.
[0016] In one possible implementation, the method also includes: for each of the N light source frequencies, determining whether the frequency value of the light source frequency is greater than or equal to a frequency threshold; when there is a light source frequency among the N light source frequencies whose frequency value is greater than or equal to the frequency threshold, determining that the current shooting scene is the target scene.
[0017] In one possible implementation, the frequency threshold is any value between 500 Hz and 4 kHz.
[0018] In a possible implementation, the target scene includes a display screen in which a subject is turned on and captured by a camera, and a dimming frequency or a refresh rate of the display screen is greater than or equal to 500 Hz and less than or equal to 4 kHz.
[0019] In one possible implementation, adjusting the exposure time of the camera according to the flicker frequency includes: when the flicker frequency includes one frequency, adjusting the exposure time of the camera according to the flicker frequency; when the flicker frequency includes two or more frequencies, doubling the two or more frequencies to obtain a flicker frequency after the doubled processing, and adjusting the exposure time of the camera according to the flicker frequency after the doubled processing.
[0020] In a second aspect, the present application provides an electronic device, including a processor and a memory, wherein the processor and the memory are coupled, and the memory is used to store a computer program. When the computer program is executed by the processor, the electronic device executes any one of the above methods.
[0021] In a third aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor executes any one of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figures 1A to 1F A schematic diagram of an application scenario provided for an embodiment of the present application.
[0023] FIG. 2A to FIG. 2C A schematic diagram of another application scenario provided for an embodiment of the present application.
[0024] FIG. 3A to FIG. 3C A schematic diagram of another application scenario provided for an embodiment of the present application.
[0025] Figure 4 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0026] Figure 5 A schematic diagram of the software architecture of an electronic device provided in an embodiment of the present application.
[0027] Figure 6 A flowchart of a shooting method provided in an embodiment of the present application.
[0028] Fig. 7A A schematic diagram of raw data collected by the scintillation sensor provided in an embodiment of the present application.
[0029] Figure 7B A schematic diagram of a frequency spectrum obtained by performing frequency domain conversion on raw data provided in an embodiment of the present application.
[0030] Figure 8 A flowchart of a method for determining a target frequency provided in an embodiment of the present application.
[0031] Fig. 9 A schematic diagram of a flow chart of a method for determining flicker frequency provided in an embodiment of the present application.
[0032] Fig.10 A flowchart of a frequency processing method provided in an embodiment of the present application.
[0033] Fig.11 A flowchart of another shooting method provided in an embodiment of the present application.
[0034] FIG. 12A to FIG. 12F For Figures 1A to 1F Schematic diagram of the effect after using the shooting method of this application in the application scenario.
[0035] FIG. 13A to FIG. 13C For Figures 1A to 1F Schematic diagram of the effect after using the shooting method of this application in the application scenario. DETAILED DESCRIPTION
[0036] In this article, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprising a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0037] In this application, "at least one" means one or more, and "more than one" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0038] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0039] In the absence of conflict, the following embodiments and features of the embodiments may be combined with each other.
[0040] The embodiments of the present application may be applicable to electronic devices including an image collector (such as a camera) and a flicker sensor. The electronic device may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a super-mobile personal computer (SMPC), a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, and a smart home device, or may be a professional shooting device such as a digital camera, a SLR camera / micro-single camera, a sports camera, a PTZ camera, a drone, etc. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device.
[0041] The objects photographed by the electronic device include, but are not limited to: large-screen devices, electronic billboards, mobile phones, tablets, laptops and other devices with display screens. The embodiments of the present application do not impose any special restrictions on the specific types of the objects photographed.
[0042] Among them, the large-screen device can be a large-screen TV, a display screen at an airport, a display screen on a high-speed rail, and other devices. The display screen at the airport includes, but is not limited to: a flight information display screen for providing information such as flight schedules, flight status, and boarding gate locations. The display screen on the high-speed rail includes, but is not limited to: a departure train display screen for providing information such as the final station and departure time, and a ticket information display screen for providing information such as the train number, departure time, and platform.
[0043] Among them, electronic billboards can be display screens placed on building exterior walls, airports, high-speed railways, etc.
[0044] In some embodiments, the dimming frequency of the display screen of the subject is higher than 500 Hz.
[0045] The embodiments of the present application are applied to scenarios where there is a certain frequency of light source during shooting, which causes banding in the preview screen or the captured image or video. For example, when there is a certain frequency of light source in the shooting scene, when the camera is turned on to take pictures or record videos, the preview screen displayed in real time on the display screen of the electronic device will have uneven brightness, or in other words, there will be rolling or fixed light and dark horizontal stripes in the preview screen. For another example, when the camera button of the mobile phone is triggered, banded stripes appear in the image captured or the video recorded by the mobile phone, where the camera button includes but is not limited to: controls for indicating taking pictures (such as Figure 1B 327D), a control for indicating video recording (such as Figure 1D Recording start control 131), controls for indicating snapshot (such as Figure 1E The banding phenomenon is the presence of stripes of different brightness in the preview screen, the captured image, or the recorded video. Since the positions of the light and dark stripes of different images may change, rolling light and dark stripes may appear in the preview screen of the electronic device or the screen during recording, i.e., the banding phenomenon.
[0046] The following example takes a mobile phone as the electronic device and a large-screen device as the subject to be photographed as an example to introduce the banding phenomenon in a shooting scene.
[0047] In the shooting scene, the display screen of the subject (large-screen device) displays corresponding information, and the user can point the camera of the electronic device toward the display screen of the subject to shoot the display screen of the subject. The user can instruct the electronic device 100 to open the camera application to shoot the display screen of the large-screen device by touching a specific control on the display screen of the electronic device 100, pressing a specific physical key or key combination, inputting a voice, performing an air gesture, etc.
[0048] Figure 1A The electronic device 100 may display a desktop 110 , which may display a plurality of application icons, such as a camera application icon 111 and a gallery application icon 112 .
[0049] like Figure 1A As shown, the electronic device 100 receives an input (eg, a click operation) from a user on the camera application icon 111, and in response to the input, the electronic device 100 may display a Figure 1B The shooting interface 120 is shown.
[0050] The shooting interface 120 may include an echo control 121, a shooting control 122, a camera conversion control 123, a preview box, and one or more shooting mode controls (for example, a "night scene mode" control 327A, a "portrait shooting mode" control 327B, a "large aperture mode" control 327C, a "photographing mode" control 327D, a "video recording mode" control 327E, a "professional mode" control 327F, and more mode controls 327G).
[0051] Among them, the echo control 121 can be used to display the image that has been taken. The shooting control 122 can be used to trigger the saving of the image captured by the camera. The camera conversion control 123 can be used to switch the camera for shooting. The shooting mode control can be used to trigger the image processing process corresponding to the shooting mode. For example, the "night scene mode" control 327A can be used to trigger the increase of brightness and color richness in the captured image.
[0052] The camera of the electronic device 100 captures the image of the large screen device. The preview frame is used to display the image stream currently captured by the camera of the electronic device 100. The preview frame displays a preview screen 124, which is an image frame in the image stream of the large screen device currently captured by the camera of the electronic device 100.
[0053] like Figure 1B As shown, the image of the large-screen device displayed on the preview screen on the shooting interface 120 has light and dark stripes. In some embodiments, rolling light and dark stripes appear in the preview screen on the shooting interface 120. The shooting interface 120 indicates that the shooting mode currently selected by the user is "photographing mode". The electronic device 100 receives the input of the user acting on the "photographing mode" control 327D, and in response to the input, the electronic device 100 takes a photo, thereby obtaining a photo corresponding to the large-screen device (such as Figure 3C After taking a photo, the electronic device 100 displays the following Figure 1C The shooting interface 120 is shown.
[0054] like Figure 1C As shown, the electronic device 100 receives the user's input on the "video recording mode" control 327E, and in response to the input, the electronic device 100 switches from the "photographing mode" to the "video recording mode", and the electronic device 100 can display the following Figure 1D The video preview interface 130 shown. The difference between the video preview interface 130 and the shooting interface 120 includes: the video preview interface 130 replaces the shooting control 122 with a recording start control 131. The preview screen 132 displayed on the preview frame of the video preview interface 130 is the image frame in the image stream currently captured by the camera of the electronic device 100.
[0055] like Figure 1DAs shown, the image of the large screen device displayed on the preview screen 132 on the video preview interface 130 has light and dark stripes. In some embodiments, rolling light and dark stripes appear in the preview screen on the video preview interface 130. The electronic device 100 receives the user's input on the recording start control 131, and in response to the input, the electronic device 100 starts recording the video and displays the video as shown in FIG. Figure 1E The video recording interface 140 is shown.
[0056] Figure 1E The recording interface 140 shown may display a recording end control 141, a snapshot control 142, recording time information 143, and a recording screen 144. The recording end control 141 may be used to trigger the electronic device 100 to end recording the original video. The snapshot control 142 may be used to trigger the electronic device 100 to save the first frame of the original video captured by the camera of the electronic device 100 when receiving the input as a picture in response to the user's input, so as to capture the image during the recording process. The recording time information 143 indicates that the video currently being recorded is 1s. The recording interface 140 is used to display the image stream of the large-screen device captured in real time by the camera of the electronic device 100. The recording screen 144 is used to display the image frames in the captured image stream of the large-screen device.
[0057] like Figure 1E As shown, the image of the large screen device displayed on the video screen 144 on the video interface 140 has light and dark stripes. In some embodiments, rolling light and dark stripes appear in the video screen 144 on the video interface 140. The electronic device 100 receives the input of the user acting on the capture control 142, and in response to the input, the electronic device 100 captures the image of the large screen device (such as Figure 3B After capturing the image, the electronic device 100 displays a video recording interface 140 .
[0058] like Figure 1F As shown, at the 3rd second after the start of recording, the electronic device 100 receives the user's input on the recording end control 141, and in response to the input, the electronic device 100 ends the recording, and obtains the video of the large-screen device (such as Figure 3A shown).
[0059] After shooting is completed, the user can view the captured images and / or videos.
[0060] like Figure 2A As shown, the electronic device 100 can display a desktop 110. For the text description of the desktop 110, please refer to the aforementioned Figure 1A The illustrated embodiments will not be described in detail here.
[0061] The electronic device 100 receives the user's input on the gallery application icon 112, and in response to the input, the electronic device 100 may display the following Figure 2B The gallery application interface 210 is shown.
[0062] like Figure 2B As shown, the gallery application interface 210 may display one or more albums (e.g., camera album 211, video album, all photo album, etc.). The camera album 211 includes images and videos taken by the electronic device 100. The electronic device 100 may display a gallery menu 212 below the gallery application interface 210. The gallery menu 212 includes corresponding controls, such as photo controls, album controls, moment controls, and discovery controls.
[0063] The electronic device 100 may receive an input from a user on the camera album 211, and in response to the input, the electronic device 100 may display a Figure 2C The camera interface 310 shown in FIG. The camera interface 310 includes one or more photo thumbnails, one or more videos. Option 311 corresponds to Figure 1F Option 311 includes a thumbnail of the first frame of the video and a time indication 312. Option 313 corresponds to Figure 1E The image of the large screen device captured. Option 314 corresponds to Figure 1B The resulting image is taken on a large-screen device.
[0064] The electronic device 100 may receive a user input on the option 311, and in response to the input, display the following Figure 3A The video interface 410 shown in FIG. 4 includes a video display area 411 and a progress bar 412. When the video display area 411 receives a user input (e.g., a single click), the electronic device 100 can play or pause the original video. The progress bar 412 indicates that the video is playing and is currently playing to the 1st second. The total duration of the video is 3 seconds. Figure 3A As shown, there are light and dark stripes in the video displayed by the video interface 410. In some embodiments, the video displayed by the video interface 410 has rolling light and dark stripes.
[0065] The electronic device 100 may receive a user input on the option 312, and in response to the input, display the following Figure 3B The image interface 510 shown in FIG. The image interface 510 includes a captured image display area 511 and a menu 512. The menu 512 may include a share button, a favorite button, an edit button, a delete button, and more buttons. Figure 3B As shown, the image of the large-screen device displayed in the captured image display area 511 has light and dark stripes.
[0066] The electronic device 100 may receive a user input on option 313, and in response to the input, display a Figure 3CThe image interface 610 shown in FIG. The image interface 610 includes a photo image display area 611 and a menu 612. The relevant contents of the menu 612 can refer to the menu 512 and will not be repeated here. Figure 3C As shown, the image of the large-screen device displayed in the snapshot image display area 611 has light and dark stripes.
[0067] Currently, flicker sensors can identify the frequency of light sources in the shooting environment and eliminate the banding phenomenon by adjusting the exposure time to an integer multiple of the light source frequency period.
[0068] When implementing the embodiments of the present application, the inventors found that when the flicker sensor cannot detect or cannot accurately detect the frequency of the light source, the effect of eliminating the banding phenomenon cannot be effectively achieved. It can be understood that the light source frequency of the subject is related to its dimming frequency and / or refresh rate. Specifically, when the dimming frequency and / or refresh rate of the subject reaches a certain level, the flicker sensor collects the light source signal of the subject. Based on the low sampling frequency of the flicker sensor, the flicker sensor cannot detect (or cannot accurately detect) the light source frequency of the light source signal, resulting in the inability to effectively eliminate the banding phenomenon.
[0069] In view of this, the shooting method and electronic device provided by the present application can determine the frequency of the light source that produces stroboscopic light in the current shooting scene based on the detected light source frequency, obtain the flicker frequency based on the frequency of the light source that produces stroboscopic light, and then adjust the exposure time of the electronic device according to the flicker frequency, so as to effectively achieve the effect of eliminating the banding phenomenon. In particular, for the situation where the dimming frequency and / or refresh rate of the subject reaches a certain level, resulting in the flicker sensor being unable to accurately and stably detect the light source frequency of the subject, the light source frequency of the subject can be identified based on the light source frequency detected by the flicker sensor, thereby improving the accuracy and stability of identifying the light source frequency of the subject, and then obtaining the flicker frequency based on the detected light source frequency of the subject, and adjusting the exposure time of the electronic device according to the flicker frequency, which is more conducive to eliminating the banding phenomenon, improving image quality, and helping to improve the user's shooting experience.
[0070] The shooting method of the present application can be applied to the scene of shooting (photographing or recording) in different shooting modes after the electronic device opens the camera application, and the scene of other applications calling the camera application to shoot. The scene of other applications calling the camera application to shoot can include the scene of calling the photo / recording function.
[0071] Specifically, when the electronic device is taking photos or videos, the display screen displays the preview image in real time, which can eliminate the banding phenomenon that appears in the preview image. Figure 1B Preview screen 124 and Figure 1DThe light and dark stripes of the image of the large screen device displayed on the preview screen 132 in the preview screen. When the shooting control of the electronic device is triggered, the electronic device can capture a clear image to reduce the brightness difference of the light and dark stripes in the image when the banding phenomenon appears on the image captured by the electronic device, such as eliminating Figure 1B Photographed Figure 3C Light and dark stripes in an image. When the capture control of an electronic device is triggered, the electronic device can capture a clear image to reduce the brightness difference of light and dark stripes in the image when the banding phenomenon appears on the image captured by the electronic device. For example, Figure 1E Photographed Figure 3B The light and dark stripes in the image can also be eliminated. When the recording start control of the electronic device is triggered, the electronic device can record a clear video to reduce the brightness difference of the light and dark stripes in the video when the banding phenomenon appears on the video recorded by the electronic device. Figure 1F Photographed Figure 3A Light and dark fringes in the video.
[0072] See also Figure 4 , exemplarily introduces the hardware structure of an electronic device 100 provided in an embodiment of the present application.
[0073] like Figure 4 As shown, the electronic device 100 may include: a processor 101, an external memory interface 102, an internal memory 103, a display screen 104, an antenna 1, an antenna 2, a mobile communication module 105, a wireless communication module 106, a sensor module 107, a camera 108, etc. The sensor module 107 includes but is not limited to a flicker sensor 107A.
[0074] The processor 101 may include one or more processing units, for example, the processor 101 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0075] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0076] The processor 101 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 101 is a cache memory. The memory may store instructions or data that the processor 101 has just used or cyclically used. If the processor 101 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 101, and thus improves the efficiency of the system.
[0077] In some embodiments, the processor 101 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, and / or a universal serial bus (USB) interface, etc.
[0078] The electronic device 100 implements the display function through a GPU, a display screen 104, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 104 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 101 may include one or more GPUs, which execute program instructions to generate or change display information.
[0079] The display screen 104 is used to display images, videos, etc. The display screen 104 includes a display panel. The display panel can be a liquid crystal display (LCD). The display screen panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 104, where N is a positive integer greater than 1.
[0080] The display screen 104 can be used to display Figures 1A to 1F , FIG. 2A to FIG. 2C as well as FIG. 3A to FIG. 3C The interface shown.
[0081] The electronic device 130 can realize the shooting function through the ISP, the camera 108, the video codec, the GPU, the display screen 104 and the application processor.
[0082] The ISP is used to process the data fed back by the camera 108. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 108.
[0083] The camera 108 is used to capture images or videos. It can be triggered to start by application instructions to realize the shooting function, such as shooting and obtaining images of any scene, or recording videos of any scene. The camera 108 may include components such as an imaging lens 108A, a filter (not shown in the figure), and an image sensor 108B. The light emitted or reflected by the object enters the lens 108A, passes through the filter, and finally converges on the image sensor 108B. The lens 108 is used to converge the light emitted or reflected by all objects (i.e., all subjects) in the shooting scene to form an image. The filter is mainly used to filter out excess light waves in the light (for example, light waves other than visible light, such as infrared). The image sensor 108B is used to perform photoelectric conversion on the received light signal, convert it into an electrical signal, and then transmit the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, etc. format.
[0084] The image sensor 108B may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. For photosensitive sensors such as charge coupled devices and metal oxide semiconductor devices, tiny photosensitive substances, i.e. pixels, are implanted on their photosensitive surfaces. The photosensitive sensors convert the light images on each pixel on their photosensitive surfaces into electrical signals.
[0085] In some embodiments, the electronic device 100 may include 1 or N cameras 108 , where N is a positive integer greater than 1.
[0086] As in Figures 1A to 1FIn the scene, the camera 108 collects images in real time to obtain images and / or videos.
[0087] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0088] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0089] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0090] The external memory interface 102 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 101 through the external memory interface 102 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0091] The internal memory 103 may be used to store computer executable program codes, which may include instructions. The processor 101 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 103. The internal memory 103 may include a program storage area and a data storage area.
[0092] The flicker sensor 107A can be used to collect light source signals in the shooting scene and detect the brightness change cycle of the ambient light, so that the electronic device can adjust the exposure time of the image sensor based on the brightness change cycle of the ambient light. In some embodiments, the electronic device samples the frequency value of the light source signal in the shooting scene through the flicker sensor 107A.
[0093] Similar to the above-mentioned photosensor, the flicker sensor also converts the light image on each pixel on the photosensitive surface into an electrical signal. The difference from the above-mentioned photosensor includes: the flicker sensor has only one pixel and no light filtering, so the electrical signal output by the flicker sensor is the electrical signal converted from the light image on the only pixel. It can be understood that the electrical signal output by the flicker sensor can be used to represent the current ambient brightness, that is, the electrical signal output by the flicker sensor can be considered as the current ambient brightness. After the flicker sensor is activated, the flicker sensor can sense the various light source signals of the current shooting scene and convert the light images on each pixel on its photosensitive surface into electrical signals.
[0094] It should be understood that the embodiment of the present application does not specifically limit the location of the flicker sensor 107A. For example, the flicker sensor 107A may be integrated into the camera 108. For another example, the flicker sensor 107A may be independently provided.
[0095] It should also be understood that the embodiments of the present application are described by taking the flicker sensor as an example, and the embodiments of the present application are not limited thereto. In fact, the flicker sensor can also be replaced by other devices having the function of a flicker sensor.
[0096] It should also be understood that the present embodiment of the application describes the flicker sensor by naming it as a flicker sensor, and the present embodiment of the application is not limited thereto. In fact, the flicker sensor may also have other names, such as an anti-flicker sensor.
[0097] In some embodiments, the electronic device 100 may also include other sensors, such as a gyroscope sensor, an acceleration sensor, etc.
[0098] In some embodiments, the electronic device 100 may further include an audio module, a speaker, a receiver, a microphone, an earphone interface, and the audio function is implemented by the audio module, the speaker, the receiver, the microphone, the earphone interface, and the application processor, such as recording during video recording.
[0099] Understandably, Figure 4 The electronic device 100 shown is only an example. The electronic device 100 may have more Figure 4 The more or less components shown in the figure can be combined with two or more components, or can have different component configurations. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
[0100] See also Figure 5 , which exemplarily introduces the software architecture of the electronic device provided in the embodiments of the present application.
[0101] like Figure 5 As shown, the layered architecture divides the operating system of the electronic device into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. For example, the operating system is divided into five layers, from top to bottom, namely, the application layer, the application framework layer, the hardware abstraction layer, the kernel layer, and the hardware layer.
[0102] The application layer can include a series of application packages. Application packages can include camera, gallery, etc.
[0103] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0104] Exemplarily, the application framework layer may include a camera access interface and a gallery access interface, wherein the camera access interface may include camera management and camera devices. The camera access interface is used to provide an application programming interface and a programming framework for camera applications. The gallery access interface is used to provide an application programming interface and a programming framework for gallery applications.
[0105] The Hardware Abstraction Layer (HAL) is an interface layer between the operating system kernel and the upper-level software. Its purpose is to abstract the hardware and provide a virtual hardware platform for the operating system. The hardware abstraction layer is an abstract interface driven by the device kernel, which is used to implement the application programming interface that provides access to the underlying device to the higher-level Java API framework. HAL contains multiple library modules, such as the camera hardware abstraction layer (camera HAL), display, Bluetooth, audio, etc. Each library module implements an interface for a specific type of hardware component. When the system framework layer API requires access to the hardware of the portable device, the operating system will load the library module for the hardware component.
[0106] In the embodiment of the present application, the hardware abstraction layer may include a camera algorithm library and a camera hardware abstraction layer. The camera hardware abstraction layer includes multiple camera devices. The camera algorithm library includes a flicker frequency output module and an autoexposure (AE) module.
[0107] Among them, the flicker frequency output module is used to execute the shooting method provided in the embodiment of the present application to determine the flicker frequency, and output the determined flicker frequency to the AE module.
[0108] The AE module can be used to automatically adjust exposure parameters. The AE module automatically adjusts exposure parameters according to the flicker frequency. The exposure parameters include but are not limited to: flicker sensor gain and shutter speed (or exposure time).
[0109] The basic principle of automatic exposure in the AE module includes: adjusting exposure and gain according to the brightness of the current picture to stabilize the picture brightness in an appropriate range. Specifically, the AE module eliminates light and dark stripes in the picture by adjusting the exposure time to an integer multiple of the flicker frequency cycle.
[0110] It can be understood that if the exposure time satisfies an integer multiple of the flicker frequency cycle, the image displayed by the electronic device will not have light and dark stripes. If the exposure time does not meet an integer multiple of the flicker frequency cycle, the image displayed by the electronic device will have light and dark stripes. Since the positions of light and dark stripes in different images may vary, rolling light and dark stripes may appear in the preview screen or the screen during recording of the electronic device, which is the banding phenomenon.
[0111] In this application, exposure time refers to the time required for an electronic device to expose a row of pixels of a frame of image. Generally, the exposure time of different rows of pixels in the same frame of image is the same.
[0112] It is understandable that the line period may be determined by the capability of the sensor. The line periods of different sensors may be different, so the line periods of different electronic devices may also be different. The embodiment of the present application does not limit the value of the above line period.
[0113] In some embodiments, the flicker frequency output module and / or the automatic exposure module may be arranged in the camera hardware abstraction layer.
[0114] The driver layer is used to drive hardware resources. The driver layer may include multiple driver modules. As shown in FIG3 , the driver layer includes a camera device driver, a digital signal processor driver, and a graphics processor driver.
[0115] The hardware layer includes sensors, image signal processors, digital signal processors, and graphics processors. The sensors include multiple sensors, TOF cameras, multi-spectral sensors, and flicker sensors.
[0116] In combination with the above hardware structure and system structure, the software modules and the interactions between modules involved in the shooting method in the embodiment of the present application are explained below.
[0117] Step 1: In response to a user opening a camera application or other applications calling a camera application, the camera application at the application layer may send a shooting request to the camera access interface at the application framework layer. The shooting request may include parameters such as the camera identification (ID) corresponding to the current shooting scene, the frame rate range (including the maximum frame rate and the minimum frame rate), and the shooting mode.
[0118] Step 2: The camera access interface may directly transmit the shooting request to the camera HAL in the HAL layer.
[0119] Step 3: After receiving the shooting request, the camera HAL may send parameters such as the camera ID corresponding to the current shooting scene to the camera driver.
[0120] Step 4: The camera driver can determine the sensitivity of the current camera (i.e., the camera indicated by the camera ID) according to the camera ID corresponding to the current shooting scene and other parameters, and can send the sensitivity to the camera HAL. The camera driver can turn on the corresponding camera according to the camera ID corresponding to the current shooting scene. If the first camera is turned on, the image sensor 1 is started.
[0121] In step 5, the turned-on camera can collect image data through the image sensor, and report the image data to the camera HAL through the camera device driver, so that the camera HAL can obtain the brightness statistics of the image data.
[0122] In step 6, the camera HAL can also obtain the light source frequency collected by the flicker sensor.
[0123] It can be understood that after the camera is turned on, the flicker sensor can also be turned on. The flicker sensor can continuously collect the light source frequency and report it to the driver corresponding to the flicker sensor, and the driver corresponding to the flicker sensor can continuously report the light source frequency to the camera HAL. In this way, the camera HAL can obtain information such as the light source frequency. The camera HAL can send parameters such as the light source frequency to the flicker frequency output module of the camera algorithm library.
[0124] Step 7: The flicker frequency output AE module determines the flicker frequency according to the light source frequency collected by the flicker sensor, and outputs the determined flicker frequency to the AE module.
[0125] Step 8: The AE module can determine the exposure of the camera according to the flicker frequency, and then determine the exposure parameters (exposure time and gain). Then, the exposure time and gain can be sent to the camera device driver so that the camera driver configures the exposure time and gain to the camera.
[0126] A shooting method provided in an embodiment of the present application is introduced below in combination with a flow chart and a functional module diagram.
[0127] It should be noted that, in the methods disclosed in the embodiments of the present application or the methods shown in the flowcharts, the execution order of multiple steps can be interchangeable with each other, and some of the steps can also be deleted.
[0128] See also Figure 6 , a shooting method provided in an embodiment of the present application is exemplarily introduced, and the shooting method is applied to an electronic device, and the electronic device may include a camera and a flicker sensor, and may include steps S601 to S609.
[0129] Step S601, obtaining a first sequence of data collected by a flicker sensor in a current shooting scene.
[0130] In the embodiment of the present application, the electronic device can start the flicker sensor in response to the user's input. The flicker sensor collects the light source signal of the current shooting scene, and then obtains the first sequence data of the current shooting scene.
[0131] Specifically, after the flicker sensor is activated, the flicker sensor samples each light source signal of the current shooting scene, and outputs the time of each sampling and the corresponding electrical signal. It can be understood that the flicker sensor outputs the first sequence data, which is the time domain signal of each light source signal in the current shooting scene, and the time domain signal indicates the ambient brightness of each sampling and the time of each sampling. It can be seen that the first sequence data is a one-dimensional time series.
[0132] It is understandable that the sampling frequency of the flicker sensor can be set according to actual needs, and the present application does not limit this. For example, the sampling frequency of the flicker sensor is 2kHz, that is, the flicker sensor samples once every 0.5 milliseconds (ms).
[0133] In the embodiment of the present application, the electronic device activates the flicker sensor in response to the user's input, including but not limited to the following situations:
[0134] Scenario 1: The electronic device calls the shooting function or video recording function of the electronic device in response to the user's input, and activates the flicker sensor. For example, the electronic device can call the shooting function or video recording function of the electronic device in response to the user's input to the camera application or the shooting key being triggered, trigger the camera to work, and activate the flicker sensor.
[0135] Scenario 2: The electronic device activates the flicker elimination function in response to the user's input. In response to activating the flicker elimination function, the flicker sensor is activated. For example, a flicker elimination function is set in the electronic device, and the electronic device activates the flicker sensor in response to the user activating the flicker elimination function.
[0136] In the current shooting scene, the number of lighting devices providing light source signals may be greater than or equal to 1. The lighting devices include but are not limited to the above-mentioned subject. In the current shooting scene, the subject provides a light source signal, and the light source signal collected by the flicker sensor may come from the display screen turned on by the subject, that is, the light source frequency of the collected light source signal may be related to the dimming frequency or refresh frequency of the display screen of the subject.
[0137] In some embodiments, when the subject or other lighting equipment is powered by alternating current with a frequency of 50 Hz or 60 Hz, the light brightness of the subject or other lighting equipment changes periodically and flashes rapidly.
[0138] It can be understood that when the lighting device is connected to 50Hz alternating current, the waveform of the light source signal converted by the device is a periodically changing envelope with a frequency of 100Hz. When the lighting device is connected to 60Hz alternating current, the waveform of the light source signal converted by the device is a periodically changing envelope with a frequency of 120Hz. The flicker sensor can generally detect light source frequencies of 100Hz and 120Hz. However, when the dimming frequency or refresh frequency of the subject reaches a certain level, the flicker sensor may not be able to detect or accurately detect the light source frequency of the subject. It can be understood that step S601 can obtain the light source signal in the current shooting scene through the Flicker Sensor or other similar sensors. When other similar sensors cannot accurately and stably identify the light source signal of the subject, the banding phenomenon can also be eliminated by the shooting method provided by the implementation of this application.
[0139] Before the detection end instruction is detected, step S601 is continuously performed. For example, before it is detected that the electronic device exits the shooting function or the video recording function, or before it is detected that the stroboscopic elimination function is turned off, the flicker sensor continues to collect the light source signal of the current shooting scene, and the electronic device continues to obtain the first sequence data collected by the flicker sensor in the current shooting scene. Until it is detected that the electronic device exits the shooting function or the video recording function, or until it is detected that the stroboscopic elimination function is turned off, the flicker sensor is turned off, and the acquisition of the first sequence data collected by the flicker sensor stops.
[0140] Step S602: Determine N light source frequencies with the largest amplitudes according to the first sequence data, where N is an integer greater than or equal to 2.
[0141] In an embodiment of the present application, the electronic device converts the first sequence data from the time domain to the frequency domain to obtain the light source frequency corresponding to each light source signal in the current shooting scene.
[0142] Specifically, the electronic device performs Fourier transform or fast Fourier transform on the first sequence data, converts the first sequence data from the time domain to the frequency domain, and obtains a spectrum, which is recorded as Spectrum1 (first spectrum). It can be understood that the horizontal coordinate of the spectrum is the frequency, and the vertical coordinate is the amplitude (amplitude intensity of the signal). Among them, the amplitude can represent the brightness (that is, the ambient brightness of the current shooting scene). According to the Fourier principle, any continuously measured time series or signal can be expressed as an infinite superposition of sinusoidal signals of different frequencies. In the embodiment provided in the present application, after the time series of the ambient brightness is converted to the frequency domain, the obtained spectrum (Spectrum1) is composed of multiple sinusoidal waves. Determine the N light source frequencies with the largest amplitude among the multiple sinusoidal waves in the first spectrum. For example, when N is 2, the two light source frequencies with the largest and second largest amplitudes in the first spectrum can be determined. When N is 4, in the first spectrum, four light source frequencies can be determined in descending order according to the amplitude, such as including the first frequency, the second frequency, the third frequency and the fourth frequency, wherein the amplitudes of the first frequency to the fourth frequency are sorted from large to small.
[0143] It is understandable that the first sequence data can also be converted from the time domain to the frequency domain through calculation methods such as discrete Fourier transform, and the embodiments of the present application do not specifically limit this.
[0144] Step S603: determining whether the current shooting scene is a target scene according to the frequency threshold and the N light source frequencies.
[0145] The frequency threshold is related to the frequency value of the light source frequency that the flicker sensor cannot detect (or cannot accurately detect). The frequency threshold can be any value between 500 Hz and 4 kHz, such as 510 Hz, 530 Hz, or 550 Hz. The frequency threshold can be set according to actual conditions, and the embodiments of the present application do not specifically limit this.
[0146] The target scene may indicate that there is a light source signal in the current shooting scene whose light source frequency cannot be accurately detected by the flicker sensor.
[0147] In some embodiments, the target scene may be a scene in which an electronic device photographs a display screen with the above-mentioned subject turned on. Specifically, the target scene includes a display screen with the subject turned on photographed by a camera, and the dimming frequency or refresh rate of the display screen is greater than or equal to 500 Hz and less than or equal to 4 kHz. Based on the dimming frequency or refresh rate of the display screen being greater than or equal to 500 Hz and less than or equal to 4 kHz, the flicker sensor cannot detect (or cannot accurately detect) the light source frequency of the light source signal of the display screen.
[0148] Specifically, for each of the N light source frequencies determined in step S602, it is determined whether the frequency value of the light source frequency is greater than or equal to the frequency threshold. When the frequency value of any one or more of the N light source frequencies is greater than or equal to the frequency threshold, the current shooting scene is determined to be the target scene. When the frequency values of the N light source frequencies are all less than the frequency threshold, it is determined that the current shooting scene is not the target scene.
[0149] If the judgment result of step S603 is yes, then steps S604 and S605 are executed. If the judgment result of step S603 is no, then step S606 is executed.
[0150] Step S604: when the current shooting scene is a target scene, determine a target frequency among the N light source frequencies according to the first frequency value and the frequency threshold.
[0151] In the embodiment of the present application, the relationship between the first frequency value, the frequency threshold and the target frequency is as follows: the frequency value of the target frequency is in a multiple frequency relationship with the first frequency value, and the frequency value of the target frequency is greater than or equal to the frequency threshold. The light source frequency of the target scene determined according to the frequency threshold is related to the first frequency value, and the frequencies of most of the light source signals in the target scene are multiples of the first frequency value. In other words, when there is a light source signal in the shooting scene whose light source frequency is a multiple of the first frequency value, the shooting scene can be determined to be the target scene.
[0152] The first frequency value of the embodiment of the present application is specifically described below.
[0153] When implementing the embodiments of the present application, the inventors found that in the target scene, the flicker sensor of the electronic device cannot detect (or cannot accurately detect) the light source frequency of the light source signal, and thus cannot effectively eliminate the banding phenomenon. Specifically, after the inventors performed a Matrix Laboratory (MATLAB) simulation on the light source signal in the target scene, they found that the light source signal in the target scene contained multiple frequency signals, and found that the frequencies of most of the light source signals in the target scene were multiples of the first frequency value.
[0154] Exemplarily, the light source signal in the target scene is collected to obtain Fig. 7A The original data is shown. Fig. 7A The raw data shown is subjected to fast Fourier transform (FFT) to obtain Figure 7B The spectrum shown. Figure 7B It can be obtained that the frequency value of frequency A is approximately 960 Hz, and 960 Hz is a multiple of 60 Hz, so the first frequency value can be obtained to be 60 Hz.
[0155] See also Figure 8Step S604 may specifically include the following steps:
[0156] Step S801: taking a light source frequency whose frequency value is greater than or equal to a frequency threshold among N light source frequencies as a candidate light source frequency.
[0157] That is, the candidate light source frequency is the light source frequency whose frequency value is greater than or equal to 530 Hz among the N light source frequencies.
[0158] Step S802: Determine the light source frequency whose frequency value is 2*M times the first frequency value among the candidate light source frequencies as the target frequency, where M is an integer greater than or equal to 1.
[0159] For example, the frequency threshold is 530 Hz, the first frequency value is 60 Hz, and N is 4. The four light source frequencies determined in step S602 are A, B, C, and D, respectively, wherein the frequency values of A, B, C, and D are 960 Hz, 540 Hz, 120 Hz, and 570 Hz, respectively. Candidate light source frequencies with frequency values greater than or equal to 530 Hz are screened out from the four light source frequencies A, B, C, and D, which are light source frequencies A, B, and D, respectively. Light source frequencies with frequency values 2*M times the first frequency value are screened out from the candidate light source frequencies A, B, and D, which are light source frequencies A and B, respectively. Then, light source frequencies A and B are target frequencies.
[0160] In other embodiments, step S604 can be implemented as: taking the light source frequency among the N light source frequencies whose frequency value is 2*M times the first frequency value as the selected frequency, and then taking the light source frequency among the selected frequencies whose frequency value is greater than or equal to the frequency threshold as the target frequency.
[0161] Step S605: assign the frequency value of the target frequency to the first frequency value to obtain the flickering frequency.
[0162] The frequency value of the target frequency determined in step S604 is greater than or equal to the frequency threshold, that is, the target frequency can be considered to be a frequency that the flicker sensor cannot detect or cannot accurately detect. And the target frequency is a multiple of the first frequency value, so the frequency value of the target frequency can be assigned to the first frequency value.
[0163] In the embodiment of the present application, the unique identification of the frequency is determined, and then the frequency value of the frequency is assigned to a corresponding numerical value according to the unique identification of the frequency. The unique identification of the frequency includes but is not limited to: the position of the frequency. Specifically, the unique identification of the target frequency is determined, and then the frequency value of the target frequency is assigned to a first frequency value according to the unique identification of the target frequency. The flicker frequency includes the assigned target frequency.
[0164] In the target scene, the light source frequency greater than or equal to the frequency threshold can be considered as a high frequency, and correspondingly, the light source frequency less than the frequency threshold can be considered as a low frequency. In the target scene, the dimming frequency or refresh rate of the display screen of the subject reaches a certain level, resulting in the light source frequency of the light source signal provided by the display screen of the subject being a high frequency, and the flicker sensor cannot detect the high-frequency light source signal, such as when the light source frequency of the subject is 960Hz, the flicker sensor may not be able to accurately detect that the light source frequency is 960Hz. At this time, the shooting method of the present application can identify that the 960Hz frequency is the light source frequency of the subject. It can be understood that the dimming frequency and refresh rate of the display screen of the subject are related to the stroboscopic frequency of the display screen of the subject, and then the electronic device can capture the stroboscopic effect of the display screen of the subject when shooting the display screen of the subject. Then the light source frequency is assigned to 60Hz to eliminate the light source frequency of the subject in the target scene, and then the stroboscopic effect of the captured display screen of the subject can be eliminated.
[0165] See also Fig. 9 Step S605 may specifically include:
[0166] Step S901, determining whether the maximum target frequency is the first frequency, wherein the first frequency is the frequency with the largest amplitude among the N light source frequencies, and the maximum target frequency is the frequency with the largest amplitude among the target frequencies.
[0167] When the judgment result of step S901 is yes, step S902 is executed. When the judgment result of step S901 is no, step S903 is executed. Step S902, when the maximum target frequency is the first frequency, the frequency value of the first frequency is assigned to the first frequency value to obtain the flicker frequency. The flicker frequency includes the assigned first frequency.
[0168] Step S903: when the maximum target frequency is not the first frequency, determine whether the first frequency matches the standard AC power frequency.
[0169] When the judgment result of step S903 is yes, step S904 is executed. When the judgment result of step S903 is no, step S905 is executed.
[0170] Step S904, determine that the frequency value of the first frequency is the second frequency value or the third frequency value, and obtain the flickering frequency. The flickering frequency includes the first frequency whose frequency value is the second frequency value or the third frequency value.
[0171] Step S905, assigning the frequency value of the maximum target frequency as a first frequency value to obtain a flickering frequency. The flickering frequency includes the assigned maximum target frequency.
[0172] The standard AC power frequency may include: domestic lighting AC power frequency 50 Hz or international lighting AC power frequency 60 Hz. If the first frequency matches the standard AC power frequency, it can be characterized as the first frequency being the same as the standard energy frequency corresponding to the standard AC power frequency.
[0173] For example, the standard energy frequency corresponding to the standard AC frequency of 50 Hz is 100 Hz. When the first frequency matches the standard AC frequency of 50 Hz, the frequency value of the first frequency can be determined to be the second frequency value (i.e., 100 Hz). The standard energy frequency corresponding to the standard AC frequency of 60 Hz is 120 Hz. When the first frequency matches the standard AC frequency of 60 Hz, the frequency value of the first frequency can be determined to be the third frequency value (i.e., 120 Hz).
[0174] In the embodiment of the present application, the first frequency value is different from the standard energy frequency corresponding to the standard AC frequency, that is, the first frequency value is different from the second frequency value and the third frequency value. The first frequency value is smaller than the second frequency value, and the first frequency value is smaller than the third frequency value.
[0175] In some embodiments, the first frequency value is 60 Hz, the second frequency value is 100 Hz, and the third frequency value is 120 Hz.
[0176] In some embodiments, see Fig.10 Before performing step S605, the following steps may also be included:
[0177] Step S101, inputting N light source frequencies into a frequency multiplier to obtain a frequency after frequency multiplication.
[0178] The frequency multiplier is used to perform frequency multiplication processing on the frequency it receives.
[0179] In an embodiment of the present application, when performing frequency doubling processing, the multiplied light source frequencies in the N light source frequencies are determined, and then the smallest frequency value in the multiplied light source frequencies is assigned to the light source frequency with the largest amplitude in the multiplied light source frequencies.
[0180] Exemplarily, the frequency multiplier obtains four light source frequencies, which are frequencies A, B, C and D in descending order of amplitude, and the frequency values of frequencies A, B, C and D are 360 Hz, 120 Hz, 240 Hz and 570 Hz respectively. Wherein the frequencies A, B and C are in a multiple relationship, then the frequencies A, B and C are the multiple frequency light source frequencies, and the minimum frequency value among the multiple frequency light source frequencies A, B and C is assigned to 120 Hz, and the light source frequency with the largest amplitude among the multiple frequency light source frequencies A, B and C is frequency A, then the frequency value of frequency A is assigned to 120 Hz. Then the frequencies A and D are obtained after the frequency multiplication process, that is, the frequencies after the frequency multiplication process are frequencies A and D, and the frequency values of frequencies A and D are 120 Hz and 570 Hz respectively.
[0181] Step S102, inputting the frequency after the frequency multiplication process into a mixer to obtain the frequency after the frequency mixing process.
[0182] The mixer is used to perform mixing processing on the received frequencies. As in the above example, the frequencies A and D are input to the mixer.
[0183] Among them, the relevant contents of the frequency doubling process and the frequency mixing process can be referred to the relevant technology, which will not be repeated here.
[0184] Step S103, performing sidelobe processing on the first frequency obtained after the mixing process, and outputting the first frequency after the sidelobe processing.
[0185] In the embodiment of the present application, when sidelobe processing is performed on the first frequency, frequency values within a first range may be eliminated according to the frequency value of the first frequency, wherein the first range may be greater than or less than 15 Hz.
[0186] For example, if the frequency value of the first frequency is 530 Hz, all frequencies with frequency values between 515 Hz and 545 Hz near the first frequency can be eliminated. In other words, all frequencies with frequency values between 515 Hz and 545 Hz near the first frequency can be considered as the first frequency.
[0187] In the embodiment of the present application, steps S101 to S103 are executed before step S605. Then, when the maximum target frequency with the largest amplitude among the target frequencies is the first frequency, assigning the frequency value of the first frequency to the first frequency value may specifically include: when the maximum target frequency with the largest amplitude among the target frequencies is the first frequency after sidelobe processing, assigning the frequency value of the first frequency after sidelobe processing to the first frequency value. The flicker frequency includes the first frequency after assignment, or the first frequency after assignment and the second frequency after mixing processing, and the second frequency is the frequency with the second largest amplitude among the N light source frequencies.
[0188] In some embodiments, before determining the frequency value of the first frequency to be the second frequency value or the third frequency value, the above steps S101 to S103 may be performed, and determining the frequency value of the first frequency to be the second frequency value or the third frequency value includes: determining the frequency value of the first frequency after sidelobe processing to be the second frequency value or the third frequency value; assigning the frequency value of the maximum target frequency to the first frequency value. Then the flicker frequency may include the first frequency whose frequency value is the second frequency value or the third frequency value and the maximum target frequency after the assignment.
[0189] In some embodiments, before assigning the frequency value of the maximum target frequency to the first frequency value, the above steps S101 to S103 may also be performed, and assigning the frequency value of the maximum target frequency to the first frequency value includes: assigning the frequency value of the maximum target frequency after the above steps S101 to S103 to the first frequency value.
[0190] Step S606: When the current shooting scene is not the target scene, it is determined whether the first frequency with the largest amplitude among the N light source frequencies matches the standard alternating current frequency.
[0191] Among them, the first frequency and the standard AC power frequency related content can refer to the above.
[0192] If the judgment result of step S606 is yes, the process goes to step S607. If the judgment result of step S606 is no, the process goes to step S608.
[0193] Step S607, determining that the frequency value of the first frequency is the second frequency value or the third frequency value, and obtaining the flickering frequency.
[0194] The relevant contents of step S607 may refer to step S904. The flicker frequency includes a first frequency whose frequency value is a second frequency value or a third frequency value, and may also include a second frequency. Step S608, when the frequency value of the first frequency is a multiple of the first frequency value, assigning the frequency value of the first frequency to the first frequency value to obtain the flicker frequency.
[0195] In some embodiments, step S608 further includes, when the frequency value of the first frequency is not a multiple of the first frequency value, outputting the first frequency after executing the above steps S101 to S103 to obtain the flickering frequency. The flickering frequency includes the assigned first frequency and may also include the second frequency.
[0196] Step S609, adjusting the exposure time of the camera according to the flicker frequency.
[0197] In the embodiment of the present application, the exposure time is adjusted to an integral multiple of the flicker frequency conversion period according to the flicker frequency, and then when eliminating the flicker, it can be eliminated by an auto flicker detection (AFD) sensor, so that the user experience can be improved when the user is taking pictures.
[0198] In the embodiment of the present application, when the flicker frequency includes one frequency, the exposure time of the camera is adjusted according to the flicker frequency, that is, the exposure time is adjusted to an integer multiple of the flicker frequency conversion period. When the flicker frequency includes two or more frequencies, the two or more frequencies are multiplied to obtain a flicker frequency after the multiplication process, and the exposure time of the camera is adjusted according to the flicker frequency after the multiplication process, that is, the exposure time is adjusted to an integer multiple of the period of the flicker frequency after the multiplication process. If the flicker frequency is a first frequency assigned a first frequency value and a second frequency with a frequency value of 120Hz, the exposure time is adjusted to an integer multiple of the period of the flicker frequency (60Hz) after the multiplication process.
[0199] In some embodiments, when the flicker frequency includes two or more frequencies, and if the exposure time cannot be adjusted to an integer multiple of one of the flicker frequency cycles (such as the first frequency cycle), the exposure time can be adjusted to an integer multiple of another flicker frequency cycle. In this way, at least the light and dark stripes caused by one light source can be eliminated, and the impact of the banding phenomenon on the picture display can be minimized.
[0200] In the solution provided in the present application, if the exposure time cannot be adjusted to eliminate the light and dark stripes caused by the light source in the shooting environment, only the frame interval can be adjusted, which can also reduce the banding phenomenon.
[0201] In some embodiments, the electronic device may only adjust the frame interval to an integer multiple of a flicker frequency period, and continue to use the exposure time adjusted by the automatic exposure system. It is understandable that the electronic device may also adjust the exposure time in other ways, which is not limited in this application.
[0202] See also Fig.11 , another shooting method process provided by an embodiment of the present application is exemplarily introduced. The shooting method is applied to an electronic device and may include steps S1101 to S1119. Among them, steps S1101 to S1102 can refer to the above-mentioned step S601, steps S1103 to S1104 can refer to the above-mentioned step S602, step S1105 can refer to the above-mentioned step S603, steps 1106 to S1107 can refer to the above-mentioned step S604, and steps S1109 to S1111 can refer to the above-mentioned steps S101 to S103.
[0203] Step S1101: In response to a first operation, a flicker sensor is activated.
[0204] The first operation may be used to instruct the electronic device to call a shooting or recording function, or may be used to instruct the start of a flicker elimination function.
[0205] Step S1102: Acquire a first sequence of data collected by the flicker sensor.
[0206] Step S1103: convert the first sequence data from the time domain to the frequency domain to obtain a first spectrum.
[0207] Step S1104: determining N light source frequencies with maximum amplitudes according to the first spectrum.
[0208] Step S1105 , determining whether there is a frequency value greater than or equal to a frequency threshold among the N light source frequencies.
[0209] If the judgment result of step S1105 is yes, then execute step S1106 to step S1119. If the judgment result of step S1105 is no, then execute step S1109 to step S1119. That is, when any one or more frequency values of the N light source frequencies are greater than or equal to the frequency threshold, it is determined that the current shooting scene is the target scene, and execute step S1106 to step S1119. When the frequency values of the N light source frequencies are all less than the frequency threshold, it is determined that the current shooting scene is not the target scene, and execute step S1109 to step S1119.
[0210] Step S1106: taking a light source frequency whose frequency value is greater than or equal to the frequency threshold among the N light source frequencies as a candidate light source frequency.
[0211] Step S1107 , determining the light source frequency whose frequency value is 2*M times the first frequency value among the candidate light source frequencies as the target frequency.
[0212] Step S1108: Record the position of the maximum target frequency with the largest amplitude among the target frequencies as the first position.
[0213] When there is only one target frequency, the position of the target frequency is recorded as the first position. When the number of target frequencies is greater than or equal to 2, the position of the frequency with the largest amplitude among the two or more target frequencies is recorded as the first position.
[0214] In some embodiments, in addition to recording the position of the frequency, the frequency with the largest amplitude among the target frequencies may also be recorded in other ways, which is not specifically limited in the present application.
[0215] Step S1109, inputting the N light source frequencies into a frequency multiplier to obtain a frequency after frequency multiplication.
[0216] Step S1110, inputting the frequency after frequency multiplication processing into the mixer to obtain the frequency after frequency mixing processing.
[0217] Step S1111, performing sidelobe processing on the first frequency obtained after the mixing process, and outputting the first frequency after the sidelobe processing.
[0218] Step S1112, determining whether the frequency at the first position is the first frequency after sidelobe processing.
[0219] It can be understood that when step S1111 is executed, the first frequency is not subjected to sidelobe processing, and step S1112 can determine whether the frequency at the first position is the first frequency. That is, step S1112 determines whether the frequency with the largest value among the target frequencies is the first frequency (or the first frequency after sidelobe processing).
[0220] If the judgment result of step S1112 is yes, execute step S1113. If the judgment result of step S1112 is no, execute step S1114.
[0221] It can be understood that if the judgment result of step S1105 is no, when executing steps S1109 to S1112, the first position is not recorded, and it can be determined that the judgment result of step S1112 is no. That is, if the current shooting scene is not the target scene, step S1114 is directly executed.
[0222] Step S1113, assigning the frequency value of the first frequency after the sidelobe processing as the first frequency value.
[0223] For step S1113, reference may be made to the relevant contents of step S605.
[0224] Step S1114, determining whether the first frequency matches the standard AC power frequency.
[0225] For step S1114, reference may be made to the relevant contents of step S606.
[0226] If the judgment result of step S1114 is yes, then execute step S1115 and step S1116. If the judgment result of step S1114 is no, then execute step S1117.
[0227] Step S1115, determining that the frequency value of the first frequency is the second frequency value or the third frequency value.
[0228] For step S1115, reference may be made to the relevant contents of step S607.
[0229] Step S1116: assigning the frequency value of the maximum target frequency to the first frequency value.
[0230] In some embodiments, step S1116 may be replaced by determining the frequency value of the second frequency, that is, determining the second frequency after steps S1109 to S1110.
[0231] Step S1117: when the frequency value of the first frequency is a multiple of the first frequency value, assigning the frequency value of the first frequency to the first frequency value.
[0232] Step S1118, obtaining the flickering frequency.
[0233] Step S1118 obtains the flicker frequency including the following situations:
[0234] Case 1: After executing step S1113, the flicker frequency that can be obtained includes the first frequency assigned to the first frequency value, and may also include the second frequency output after the above processing.
[0235] Scenario 2: After executing step S1116, the flickering frequency that can be obtained includes: a first frequency whose frequency value is the second frequency value or the third frequency value and a maximum target frequency assigned to the first frequency value. At this time, the maximum target frequency can be any light source frequency among the N light source frequencies except the first frequency.
[0236] Case 2: After executing step S1117, the flickering frequency that can be obtained includes the first frequency assigned with the first frequency value, or the first frequency and the second frequency after the above processing.
[0237] Step S1119, adjusting the exposure time of the camera according to the flicker frequency.
[0238] For step S1119, reference may be made to the relevant contents of the above-mentioned step S608.
[0239] For ease of understanding, the following combination FIG. 12A to FIG. 12F The following describes the interface example. FIG. 12A to FIG. 12F This is a schematic diagram of the effect of an embodiment of the present application. Fig. 12B ( Fig. 12C ), compared with Figure 1B ( Figure 1C ), after adopting the shooting method of the embodiment of the present application, the preview image obtained in the shooting mode does not have the banding phenomenon. Fig.12D As shown, compared to Figure 1D The preview screen shown in FIG. 1 shows that after adopting the shooting method of the embodiment of the present application, the preview screen obtained in the video recording mode does not have the banding phenomenon. Fig.12E ( Fig.12F ), compared with Figure 1E ( Figure 1F) shows that after adopting the shooting method of the embodiment of the present application, there is no banding phenomenon in the image obtained during the video recording process.
[0240] The following combination FIG. 13A to FIG. 13C 13A to Fig. 13C This is a schematic diagram of the effect of an embodiment of the present application. Fig.13A As shown, compared to Figure 3A In the video shown in FIG. 1 , after adopting the shooting method of the embodiment of the present application, there is no banding phenomenon in the video. Fig. 13B As shown, compared to Figure 3B The captured image shown in FIG. 1 does not have a banding phenomenon after adopting the shooting method of the embodiment of the present application. Fig. 13C As shown, compared to Figure 3C The image shown in the figure does not have banding phenomenon after adopting the shooting method of the embodiment of the present application.
[0241] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0242] An embodiment of the present application also provides an electronic device, comprising at least a processor and a memory, wherein the processor and the memory are coupled, and the memory is used to store a computer program. When the computer program is executed by the processor, the electronic device can indicate the shooting method of the above embodiment.
[0243] An embodiment of the present application also provides a chip system, which is applied to an electronic device. The chip system includes one or more processors, and the processor is used to call computer instructions so that the electronic device executes the shooting method of the above embodiment.
[0244] An embodiment of the present application further provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the shooting method as described in the above embodiment.
[0245] Among them, the electronic device, computer storage medium or chip system provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0246] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0247] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0248] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
[0249] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0250] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0251] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A shooting method, characterized in that: Applied to an electronic device, the electronic device includes a flicker sensor and a camera, the method includes: Acquire a first sequence of data collected by the flicker sensor in a current shooting scene; Determine N light source frequencies with the largest amplitudes according to the first sequence data, where N is an integer greater than or equal to 2; Determining whether the current shooting scene is a target scene according to a frequency threshold and the N light source frequencies; When the current shooting scene is a target scene, determining a target frequency among the N light source frequencies according to the first frequency value and the frequency threshold; Assigning the frequency value of the target frequency to the first frequency value to obtain a flickering frequency; The exposure time of the camera is adjusted according to the flicker frequency.
2. The method according to claim 1, characterized in that The assigning the frequency value of the target frequency to the first frequency value to obtain the flicker frequency comprises: When the maximum target frequency with the largest amplitude among the target frequencies is the first frequency, the frequency value of the first frequency is assigned to the first frequency value to obtain the flickering frequency, wherein the first frequency is the frequency with the largest amplitude among the N light source frequencies.
3. The method according to claim 2, characterized in that The assigning the frequency value of the target frequency to the first frequency value to obtain the flicker frequency further comprises: When the maximum target frequency is not the first frequency, determining whether the first frequency matches a standard alternating current frequency; If so, determining that the frequency value of the first frequency is the second frequency value or the third frequency value, and obtaining the flickering frequency; If not, the frequency value of the maximum target frequency is assigned to the first frequency value to obtain the flickering frequency.
4. The method according to claim 2, characterized in that: Before assigning the frequency value of the first frequency to the first frequency value, the method further includes: Inputting the N light source frequencies into a frequency multiplier to obtain a frequency after frequency multiplication; Inputting the frequency after the frequency multiplication process into a mixer to obtain the frequency after the frequency mixing process; Performing sidelobe processing on the first frequency obtained after the mixing process, and outputting the first frequency after the sidelobe processing; When the maximum target frequency with the largest amplitude among the target frequencies is the first frequency, assigning the frequency value of the first frequency to the first frequency value includes: When the maximum target frequency with the largest amplitude among the target frequencies is the first frequency after the sidelobe processing, assigning the frequency value of the first frequency after the sidelobe processing to the first frequency value; The flickering frequency includes the first frequency after the assignment, or the first frequency after the assignment and the second frequency after the mixing process, and the second frequency is the frequency with the second largest amplitude among the N light source frequencies.
5. The method according to claim 3, characterized in that: Before determining the frequency value of the first frequency to be the second frequency value or the third frequency value, the method further includes: Inputting the N light source frequencies into a frequency multiplier to obtain a frequency after frequency multiplication; Inputting the frequency after the frequency multiplication process into a mixer to obtain the frequency after the frequency mixing process; Performing sidelobe processing on the first frequency obtained after the mixing process, and outputting the first frequency after the sidelobe processing; Determining the frequency value of the first frequency to be a second frequency value or a third frequency value includes: Determine that the frequency value of the first frequency after the sidelobe processing is the second frequency value or the third frequency value; Assigning the frequency value of the maximum target frequency to the first frequency value; The flickering frequency includes an assigned first frequency and an assigned maximum target frequency.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When the current shooting scene is not the target scene, determining whether a first frequency with the largest amplitude among the N light source frequencies matches a standard alternating current frequency; If so, determining that the frequency value of the first frequency is the second frequency value or the third frequency value, and obtaining the flickering frequency; If not, when the frequency value of the first frequency is in a multiple relationship with the first frequency value, the frequency value of the first frequency is assigned to the first frequency value to obtain the flickering frequency.
7. The method according to claim 3, 5 or 6, characterized in that: The first frequency value is smaller than the second frequency value, and the first frequency value is smaller than the third frequency value.
8. The method according to claim 7, characterized in that The first frequency value is 60 Hz, the second frequency value is 100 Hz, and the third frequency value is 120 Hz.
9. The method according to any one of claims 1 to 8, characterized in that Determining the target frequency among the N light source frequencies according to the first frequency value and the frequency threshold comprises: Taking a light source frequency whose frequency value is greater than or equal to the frequency threshold among the N light source frequencies as a candidate light source frequency; The light source frequency whose frequency value among the candidate light source frequencies is 2*M times the first frequency value is determined as the target frequency, where M is an integer greater than or equal to 1.
10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: For each of the N light source frequencies, determining whether a frequency value of the light source frequency is greater than or equal to the frequency threshold; When there is a light source frequency among the N light source frequencies whose frequency value is greater than or equal to the frequency threshold, it is determined that the current shooting scene is the target scene.
11. The method according to claim 10, characterized in that The frequency threshold is any value between 500 Hz and 4 kHz.
12. The method according to claim 10 or 11, characterized in that: The target scene includes a display screen in which the camera captures a subject that is turned on, and a dimming frequency or a refresh rate of the display screen is greater than or equal to 500 Hz and less than or equal to 4 kHz.
13. The method according to any one of claims 1 to 12, characterized in that The step of adjusting the exposure time of the camera according to the flicker frequency comprises: When the flicker frequency includes a frequency, adjusting the exposure time of the camera according to the flicker frequency; When the flicker frequency includes two or more frequencies, the two or more frequencies are frequency-multiplied to obtain a flicker frequency after frequency multiplication, and the exposure time of the camera is adjusted according to the flicker frequency after frequency multiplication.
14. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the processor and the memory are coupled, and the memory is used to store a computer program. When the computer program is executed by the processor, the electronic device executes the method according to any one of claims 1 to 13.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Shooting parameter setting method and device, terminal equipment and readable storage medium
CN110248110A
Exposure control method and device, storage medium and terminal equipment
CN110784658A
Exposure time control method of camera and electronic device
CN110855901A
Signal processing method for adjusting interference and anti-interference in terminal equipment and related device
CN113810543A
Device and method for removing flicker noise, and image processing apparatus comprising the same device
KR100968377B1
Cited By
Photographing method, electronic device, and storage medium
WO2026208268A1
