Stroboscopic detection method and device, electronic equipment and storage medium

By collecting ambient light brightness information through preset sensors within electronic devices and using frequency domain transformation technology to determine the flicker frequency, the problems of screen openings affecting aesthetics and increasing costs are solved, achieving flicker detection without openings.

CN121364009APending Publication Date: 2026-01-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410973228.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2026-01-20

AI Technical Summary

Technical Problem

In existing technologies, in order to reduce or eliminate flicker, it is necessary to install a separate flicker sensor by drilling a hole in the screen, which affects the screen's appearance and increases production costs.

Method used

By collecting ambient light brightness information through a preset sensor in the electronic device, and utilizing the design of the screen's light-transmitting area without openings, the flicker frequency is determined by combining frequency domain transformation technology, and the ambient light sensor is reused for flicker detection.

Benefits of technology

It achieves flicker detection without screen openings, maintaining screen display and aesthetics while reducing production costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121364009A_ABST
    Figure CN121364009A_ABST
Patent Text Reader

Abstract

The invention relates to a stroboscopic detection method and device, electronic equipment and a storage medium. The method comprises the steps that brightness information of ambient light is collected through a preset sensor installed in the electronic equipment, light is transmitted between the preset sensor and a screen, and no hole is formed in a screen area, located above the preset sensor, in the screen; and determining the stroboscopic frequency of the ambient light based on the brightness information. According to the method, a hole does not need to be formed in the screen, and the stroboscopic detection without the appearance hole is realized while the screen display and the attractiveness of the screen appearance are not influenced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of terminals, and in particular, to a stroboscopic detection method and device, an electronic device, and a storage medium. BACKGROUND

[0002] Many light sources use pulse width modulation (PWM) to control brightness, which causes the brightness of the light source to change rapidly over time. When the shutter speed or frame rate of a camera is not synchronized with the modulation frequency of the light source, the change can be captured, resulting in a stroboscopic phenomenon, or, if the exposure time is short during camera exposure, and the brightness of the light source changes during this time, it can also cause a stroboscopic phenomenon.

[0003] In related technologies, in order to reduce or eliminate the stroboscopic phenomenon, a Flicker sensor is installed in the electronic device, and a separate Flicker sensor is used to detect the stroboscopic frequency of the current ambient light. However, in order to enable the Flicker sensor to detect the ambient light from the outside, an opening needs to be made in the screen, which affects the screen display and the aesthetic appearance of the screen. SUMMARY

[0004] To overcome the problems in the related art, the present disclosure provides a stroboscopic detection method, device, electronic device, and storage medium.

[0005] According to a first aspect of an embodiment of the present disclosure, a stroboscopic detection method is provided, the method comprising:

[0006] collecting brightness information of ambient light by a preset sensor installed in the electronic device, the preset sensor being transparent to light between the preset sensor and the screen, and a screen area above the preset sensor in the screen being free of an opening;

[0007] determining a stroboscopic frequency of the ambient light based on the brightness information.

[0008] In some embodiments, before the collecting brightness information of ambient light by a preset sensor, the method further comprises:

[0009] adjusting the stroboscopic frequency of the screen light to a preset stroboscopic frequency.

[0010] In some embodiments, the adjusting the stroboscopic frequency of the screen light to a preset stroboscopic frequency comprises:

[0011] when the stroboscopic frequency of the screen light is greater than a stroboscopic frequency threshold, adjusting the stroboscopic frequency of the screen light to the preset stroboscopic frequency, the preset stroboscopic frequency being greater than the stroboscopic frequency threshold.

[0012] In some embodiments, the determining the strobe frequency of the ambient light based on the luminance information comprises:

[0013] performing frequency domain transformation based on the luminance information to obtain frequency domain information of the ambient light;

[0014] determining the strobe frequency of the ambient light based on the frequency domain information.

[0015] In some embodiments, the determining the strobe frequency of the ambient light based on the frequency domain information comprises:

[0016] determining a frequency corresponding to a maximum amplitude in the frequency domain information as the strobe frequency of the ambient light.

[0017] In some embodiments, the luminance information comprises a plurality of sets of luminance data collected at a plurality of time instants; and the performing frequency domain transformation based on the luminance information to obtain frequency domain information of the ambient light comprises:

[0018] when the number of the plurality of sets of luminance data is greater than a number threshold, determining a preset number of sets of luminance data collected most recently among the plurality of sets of luminance data;

[0019] performing frequency domain transformation on the preset number of sets of luminance data to obtain the frequency domain information.

[0020] In some embodiments, the preset sensor is an ambient light sensor, and before the collecting the luminance information of the ambient light by the preset sensor installed in the electronic device, the method further comprises:

[0021] obtaining configuration information of the ambient light sensor, the configuration information being used to configure relevant parameters of the ambient light sensor when the ambient light sensor is used for strobe detection;

[0022] the collecting the luminance information of the ambient light by the preset sensor installed in the electronic device comprises:

[0023] collecting the luminance information based on the configuration information by the ambient light sensor.

[0024] In some embodiments, the method further comprises:

[0025] determining a shooting parameter of a camera module based on the strobe frequency of the ambient light;

[0026] performing shooting based on the shooting parameter.

[0027] In some embodiments, a screen region in the screen within a field of view angle range of the preset sensor is free of an opening, and a copper foil and black foam in the field of view angle range of the preset sensor are open.

[0028] According to a second aspect of the embodiments of the present disclosure, a stroboscopic detection device is provided, the device comprising:

[0029] a brightness information collection module configured to collect brightness information of ambient light through a preset sensor installed in the electronic device, the preset sensor being transparent to light between the preset sensor and the screen, and a screen area above the preset sensor in the screen being free of openings;

[0030] a stroboscopic frequency determination module configured to determine a stroboscopic frequency of the ambient light based on the brightness information.

[0031] In some embodiments, the device further comprises:

[0032] a stroboscopic frequency adjustment module configured to adjust the stroboscopic frequency of the screen light to a preset stroboscopic frequency.

[0033] In some embodiments, the stroboscopic frequency adjustment module is configured to:

[0034] when the stroboscopic frequency of the screen light is greater than a stroboscopic frequency threshold, adjust the stroboscopic frequency of the screen light to the preset stroboscopic frequency, the preset stroboscopic frequency being greater than the stroboscopic frequency threshold.

[0035] In some embodiments, the stroboscopic frequency determination module is configured to:

[0036] perform frequency domain transformation based on the brightness information to obtain frequency domain information of the ambient light;

[0037] determine the stroboscopic frequency of the ambient light based on the frequency domain information.

[0038] In some embodiments, the stroboscopic frequency determination module is configured to:

[0039] determine a frequency corresponding to a maximum amplitude in the frequency domain information as the stroboscopic frequency of the ambient light.

[0040] In some embodiments, the brightness information comprises a plurality of groups of brightness data collected at a plurality of time instants; the stroboscopic frequency determination module is configured to:

[0041] when a number of the plurality of groups of brightness data is greater than a number threshold, determine a preset number of groups of brightness data collected most recently among the plurality of groups of brightness data;

[0042] perform frequency domain transformation on the preset number of groups of brightness data to obtain the frequency domain information.

[0043] In some embodiments, the preset sensor is an ambient light sensor, and the device further comprises:

[0044] The configuration information acquisition module is configured to acquire configuration information of the ambient light sensor, the configuration information being used to configure relevant parameters of the ambient light sensor when the ambient light sensor is used for stroboscopic detection.

[0045] The brightness information acquisition module is configured to acquire the brightness information based on the configuration information through the ambient light sensor.

[0046] In some embodiments, the apparatus further includes:

[0047] The shooting parameter determination module is configured to determine a shooting parameter of the camera module based on the stroboscopic frequency of the ambient light.

[0048] The shooting module is configured to perform shooting based on the shooting parameter.

[0049] In some embodiments, a screen region in the screen located in a field of view angle range of the preset sensor is free of an opening, and a copper foil and black foam opening in the field of view angle range of the preset sensor.

[0050] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including:

[0051] a processor;

[0052] a memory for storing processor-executable instructions;

[0053] a preset sensor and a screen, the preset sensor being transparent to light with the screen, and a screen region in the screen located above the preset sensor being free of an opening;

[0054] The processor is configured to perform the method described in the first aspect of the embodiments of the present disclosure.

[0055] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method described in the first aspect of the embodiments of the present disclosure.

[0056] The above method of the present disclosure has the following beneficial effects:

[0057] The method provided by the embodiments of the present disclosure performs stroboscopic detection through a preset sensor installed in the electronic device, the preset sensor being transparent to light with the screen, and a screen region in the screen located above the preset sensor being free of an opening, i.e., no opening needs to be made on the screen, stroboscopic detection under no appearance opening is realized while the display of the screen and the aesthetic appearance of the screen are not affected.

[0058] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0059] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and serve to explain the principles of the present application, in which, like reference numerals designate corresponding parts throughout the several views.

[0060] Figure 1 is a schematic diagram of a stack structure according to an exemplary embodiment;

[0061] Figure 2 is a flowchart of a stroboscopic detection method according to an exemplary embodiment;

[0062] Figure 3 is a flowchart of a stroboscopic detection method according to an exemplary embodiment;

[0063] Figure 4 is a flowchart of a stroboscopic detection method according to an exemplary embodiment;

[0064] Figure 5 is a flowchart of a stroboscopic detection method according to an exemplary embodiment;

[0065] Figure 6 is a block diagram of a stroboscopic detection apparatus according to an exemplary embodiment;

[0066] Figure 7 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0067] The exemplary embodiments will be described in detail with reference to the drawings, wherein like reference numerals refer to like parts throughout the several views. The following detailed description is exemplary and explanatory only and is not restrictive of the disclosure.

[0068] In the related art, in order to reduce or eliminate the stroboscopic phenomenon, a Flicker sensor is installed in an electronic device, and a separate Flicker sensor is used to detect the stroboscopic frequency of the current ambient light. However, in order for the Flicker sensor to be able to detect the ambient light from the outside, a hole needs to be opened on the screen, which affects the display effect of the appearance of the screen. Furthermore, the Flicker sensor is not a sensor originally installed in the electronic device, but an additional sensor, and thus, the installation of the Flicker sensor also increases the production cost of the electronic device.

[0069] This disclosure provides an electronic device, which can be a mobile phone, tablet computer, laptop computer, wearable device, etc. The electronic device includes a screen and preset sensors. Of course, the electronic device also includes a processor, memory, camera module, communication module, other sensors, etc., which are not limited in this disclosure.

[0070] To achieve flicker detection, light must be allowed to pass through between the preset sensor and the screen. Furthermore, to avoid affecting the screen display and appearance, the area of ​​the screen above the preset sensor must be free of openings. The preset sensor is an ambient light sensor already installed in the electronic device; that is, flicker detection directly reuses the ambient light sensor already installed in the electronic device, eliminating the need for an additional sensor.

[0071] See the stacking structure for the preset sensor location in electronic devices. Figure 1 The schematic diagram shows that the electronic device includes a screen 11 and a preset sensor 12; the electronic device also includes a copper foil 13 and black foam 14 located between the screen 11 and the preset sensor 12, the copper foil 13 and black foam 14 making the screen opaque; the electronic device also includes a riser plate 15 and a mainboard 16, the preset sensor 12 being soldered to the riser plate 15 to achieve electrical connection with the mainboard 16. It should be noted that... Figure 1 Taking copper foil and black foam as examples only, in another embodiment, other materials may be used as the backlight material under the screen, and this disclosure does not limit this.

[0072] In this embodiment, the copper foil 13 and black foam 14 located above the preset sensor 12 are cut away to allow light to pass through the screen 11. This light transmission is difficult for the user to perceive. Therefore, while allowing light to pass through the screen 11, it ensures that there are no openings on the screen 11 and does not affect the display of the screen 11, thus better adapting to the full-screen form and meeting the requirements of the ultimate stacking structure. As for the preset sensor 12, it is located below the cut-out portion of the copper foil 13 and black foam 14. Ambient light can pass through the screen 11 and be received by the preset sensor 12, thereby realizing the flicker detection of external ambient light.

[0073] In some embodiments, see Figure 1 The dotted line shown represents the field of view of the preset sensor 12. If the field of view is blocked, it may affect the effect of flicker detection. Therefore, in order to improve the accuracy of flicker detection, it is necessary to ensure that there are no openings in the screen area within the field of view of the preset sensor 12, and that there are no openings in the copper foil 13 and black foam 14 within the field of view of the preset sensor 12.

[0074] The electronic device is used for stroboscopic detection in the embodiments of the present disclosure. The stroboscopic detection process is described below.

[0075] Figure 2 FIG. 1 is a flowchart of a stroboscopic detection method according to an exemplary embodiment, which is performed by an electronic device. As shown in FIG. 1, the method comprises the following steps: Figure 2

[0076] In step S201, brightness information of ambient light is collected by a preset sensor installed in the electronic device. The preset sensor is transparent to the screen, and a screen area above the preset sensor in the screen has no opening.

[0077] Since the preset sensor is transparent to the screen, the brightness information of the ambient light can be collected by the preset sensor. The brightness information is used to represent the brightness of the ambient light, or in other words, the brightness information is used to represent the brightness of the light source in the external environment. Optionally, the brightness information includes a plurality of groups of brightness data collected at a plurality of time instants, and each group of brightness data is used to represent the brightness of the ambient light at a certain time instant.

[0078] In step S202, a stroboscopic frequency of the ambient light is determined based on the brightness information.

[0079] The brightness information belongs to time domain information. By performing frequency domain transformation on the brightness information, frequency domain information corresponding to the brightness information can be obtained, so that the stroboscopic frequency of the ambient light can be determined from the frequency domain information, thereby completing the stroboscopic detection.

[0080] The method provided in the embodiments of the present disclosure performs stroboscopic detection by using a preset sensor installed in the electronic device. The preset sensor is transparent to the screen, and a screen area above the preset sensor in the screen has no opening. In other words, no opening needs to be made on the screen. The stroboscopic detection is realized without affecting the display of the screen and the aesthetic appearance of the screen.

[0081] Figure 3 FIG. 2 is a flowchart of a stroboscopic detection method according to an exemplary embodiment, which is performed by an electronic device. As shown in FIG. 2, the method comprises the following steps: Figure 3

[0082] In step S301, configuration information of an ambient light sensor is obtained.

[0083] In the embodiments of the present disclosure, since the original function of the ambient light sensor is not used for stroboscopic detection, in order to enable the ambient light sensor to realize stroboscopic detection, new configuration information needs to be configured for the ambient light sensor based on the original function of the ambient light sensor. The configuration information is used to configure relevant parameters of the ambient light sensor for stroboscopic detection, which can be a sampling rate, a sampling time interval, a sampling duration, and the like.​​

[0084] At step S302, the ambient light sensor collects the brightness information based on the configuration information.

[0085] Since the configuration information configures the relevant parameters of the ambient light sensor when performing the stroboscopic detection, the brightness information of the ambient light can be collected based on the configuration information. For example, the configuration information configures that the sampling time interval is 500 us (microsecond), and the brightness data is collected once every 500 us, and the brightness information includes a plurality of groups of brightness data.

[0086] In some embodiments, after the brightness information is collected, the brightness information is saved. Optionally, the brightness information is saved into a FIFO (First Input First Output) queue.

[0087] At step S303, the frequency domain information of the ambient light is obtained by performing the frequency domain transformation based on the brightness information.

[0088] In order to obtain the stroboscopic frequency, the brightness information in the time domain needs to be converted into the frequency domain information in the frequency domain, and then the stroboscopic frequency is obtained from the frequency domain information.

[0089] In some embodiments, the Fourier transformation is performed based on the brightness information to obtain the frequency domain information. For example, the FFT (Fast Fourier Transform) operation can be performed.

[0090] In some embodiments, the brightness information includes a plurality of groups of brightness data collected at a plurality of time points, and the frequency domain information of the ambient light is obtained by performing the frequency domain transformation based on the brightness information, including: when the number of the plurality of groups of brightness data is greater than a number threshold, a preset number of groups of the latest collected brightness data in the plurality of groups of brightness data is determined; and the frequency domain transformation is performed on the preset number of groups of brightness data to obtain the frequency domain information. That is, when the number of the collected brightness data is large, in order to obtain the real-time stroboscopic situation more accurately, the latest collected brightness data needs to be used for processing. The preset number is a preset number, and the preset number can be 256, 128 or other preset numbers.

[0091] Optionally, the Fourier transformation is performed on the preset number of groups of brightness data to obtain the frequency domain information.

[0092] In some embodiments, the saved brightness information is read, and then the frequency domain transformation is performed based on the read brightness information to obtain the frequency domain information.

[0093] At step S304, the stroboscopic frequency of the ambient light is determined based on the frequency domain information.

[0094] In some embodiments, the frequency corresponding to the maximum amplitude in the frequency domain information is determined as the strobe frequency of the ambient light. That is, the amplitude corresponding to each frequency point in the frequency domain information is determined, and then the frequency represented by the frequency point corresponding to the maximum amplitude is determined as the strobe frequency.

[0095] The method provided by the embodiments of the present disclosure realizes strobe detection without appearance apertures while not affecting the aesthetics of screen display and screen appearance. Moreover, the ambient light sensor is multiplexed, the ambient light sensor can be used for strobe detection by configuring new configuration information for the ambient light sensor, and no additional sensor needs to be installed, so the production cost of the electronic device is relatively low.

[0096] In an example, a sensor control unit, for example, a sensor hub unit, is included in the electronic device, and the sensor control unit can be used to control the ambient light sensor to collect brightness information. For example, refer to Figure 4 The flowchart of the strobe detection method is shown in FIG. 4:

[0097] In step S401, the sensor hub unit starts the ambient light sensor.

[0098] In step S402, the sensor hub unit configures the ambient light sensor, and then the ambient light sensor collects brightness data based on the configured sampling rate and saves the brightness data to a FIFO queue.

[0099] In step S403, the sensor hub unit reads 256 groups of brightness data from the FIFO queue.

[0100] In step S404, FFT operation is performed on the 256 groups of brightness data to obtain frequency domain information.

[0101] In step S405, the strobe frequency corresponding to the maximum amplitude is determined based on the frequency domain information.

[0102] In some embodiments, the screen of the electronic device itself emits light with a frequency. When the strobe of the ambient light is consistent with the strobe of the screen or the strobe amplitude of the ambient light is weak, the strobe of the ambient light cannot be accurately distinguished, and errors exist in the strobe detection. In order to avoid the influence of the strobe of the screen light on the accuracy of the strobe detection, the strobe frequency of the screen light is adjusted to a preset strobe frequency. The preset strobe frequency is a larger strobe frequency set in advance.

[0103] Optionally, when the strobe frequency of the screen light is greater than the strobe frequency threshold, the strobe frequency of the screen light is adjusted to a preset strobe frequency, and the preset strobe frequency is greater than the strobe frequency threshold, so as to ensure that the strobe frequency of the screen light cannot be collected by the preset sensor, and ensure the strobe detection accuracy of the preset sensor under the interference of the screen light frequency below the screen. Optionally, the strobe frequency threshold is the same as the sampling frequency of the preset sensor, for example, the strobe frequency threshold is 2000 Hz.

[0104] Optionally, adjusting the strobe frequency of the screen light to the preset strobe frequency comprises: adjusting the strobe frequency of the screen light of a screen area of the screen above the preset sensor to the preset strobe frequency, and the strobe frequency of other screen areas of the screen can not be adjusted.

[0105] The strobe detection method provided by the embodiments of the present disclosure can be applied to various scenes, such as a shooting scene, an eye protection display adjustment scene of a screen, and the like. Among them, the shooting scene is one of the scenes that are applied more frequently. In the shooting scene, after the strobe frequency of the ambient light is determined, the shooting parameter of the camera module can be determined based on the strobe frequency of the ambient light, and shooting is performed based on the shooting parameter. The shooting parameter can include an exposure time, a shutter speed, or other parameters. The shooting parameter determined based on the strobe frequency of the ambient light is adapted to the strobe frequency of the ambient light, thereby avoiding the strobe phenomenon during shooting.

[0106] The following describes the strobe detection process in the shooting scene through the embodiments shown in FIG. 8: Figure 5

[0107] Figure 5 is a flowchart of a strobe detection method according to an exemplary embodiment, executed by an electronic device, referring to FIG. 8, Figure 5 The method comprises the following steps:

[0108] Step S501: It is judged whether the camera application program is started. If the camera application program is started, step S502 is executed. If the camera application program is not started, the original strobe frequency of the screen light is maintained, and step S501 is continuously executed.

[0109] Step S502: The strobe frequency of the screen light is adjusted to a preset strobe frequency.

[0110] Step S503: The ambient light sensor is started through the sensor hub.

[0111] Step S504: A plurality of groups of luminance data are collected through the sensor.

[0112] Step S505: The plurality of groups of luminance data are subjected to FFT operation to obtain frequency information, and the strobe frequency is determined based on the frequency information.

[0113] ​Step S506, the sensor hub reports the strobe frequency of the favorite camera application.

[0114] Step S507, the camera application adjusts the exposure time based on the strobe frequency, and takes a picture based on the adjusted exposure time.

[0115] Figure 6 is a block diagram of a strobe detection device according to an exemplary embodiment, configured in an electronic device, referring to Figure 6 The device comprises:

[0116] The brightness information acquisition module 601 is configured to acquire the brightness information of the ambient light through a preset sensor installed in the electronic device, the preset sensor being transparent between the screen and the screen region above the preset sensor being free of openings in the screen.

[0117] The strobe frequency determination module 602 is configured to determine the strobe frequency of the ambient light based on the brightness information.

[0118] In some embodiments, the device further comprises:

[0119] The strobe frequency adjustment module is configured to adjust the strobe frequency of the screen light to a preset strobe frequency.

[0120] In some embodiments, the strobe frequency adjustment module is configured to:

[0121] When the strobe frequency of the screen light is greater than the strobe frequency threshold, the strobe frequency of the screen light is adjusted to the preset strobe frequency, and the preset strobe frequency is greater than the strobe frequency threshold.

[0122] In some embodiments, the strobe frequency determination module 602 is configured to:

[0123] Perform frequency domain transformation based on the brightness information to obtain frequency domain information of the ambient light.

[0124] Determine the strobe frequency of the ambient light based on the frequency domain information.

[0125] In some embodiments, the strobe frequency determination module 602 is configured to:

[0126] Determine the frequency corresponding to the maximum amplitude in the frequency domain information as the strobe frequency of the ambient light.

[0127] In some embodiments, the brightness information comprises a plurality of groups of brightness data acquired at a plurality of time instants; the strobe frequency determination module 602 is configured to:

[0128] When the number of the plurality of groups of brightness data is greater than a number threshold, determine a preset number of groups of brightness data newly acquired in the plurality of groups of brightness data.

[0129] performing frequency domain transformation on the preset number of groups of luminance data to obtain frequency domain information.

[0130] In some embodiments, the preset sensor is an ambient light sensor, and the device further comprises:

[0131] a configuration information obtaining module configured to obtain configuration information of the ambient light sensor, the configuration information being used to configure relevant parameters of the ambient light sensor when the ambient light sensor is used to perform stroboscopic detection;

[0132] a luminance information collecting module 601 configured to collect luminance information based on the configuration information through the ambient light sensor.

[0133] In some embodiments, the device further comprises:

[0134] a shooting parameter determining module configured to determine shooting parameters of the camera module based on the stroboscopic frequency of the ambient light;

[0135] a shooting module configured to perform shooting based on the shooting parameters.

[0136] In some embodiments, a screen region in the screen within a field of view angle range of the preset sensor is free of openings, and the copper foil and the black foam within the field of view angle range of the preset sensor are open.

[0137] As to the device in the above embodiments, the specific manners in which various modules perform operations have been described in detail in the embodiments of the method, and thus will not be described here in detail.

[0138] The embodiments of the present disclosure further provide an electronic device, comprising: a processor; a memory for storing processor-executable instructions; a preset sensor and a screen, the preset sensor being transparent to the screen, and a screen region above the preset sensor in the screen being free of openings; wherein the processor is configured to perform the stroboscopic detection method in the above embodiments.

[0139] Figure 7 is a block diagram of an electronic device 700 according to an exemplary embodiment.

[0140] Referring to Figure 7 , the electronic device 700 can include one or more of the following components: a processing component 702, a memory 704, a power supply component 706, a multimedia component 708, an audio component 710, an input / output (I / O) interface 712, a sensor component 714, and a communication component 716.

[0141] The processing component 702 generally controls the overall operations of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 can include one or more processors 820 to execute instructions to complete the steps of the methods described above, in whole or in part. Moreover, the processing component 702 can include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 can include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.

[0142] The memory 704 is configured to store various types of data to support operations of the electronic device 700. Examples of these data include instructions to operate any applications or methods on the electronic device 700, contact data, phonebook data, messages, pictures, videos, and so on. The memory 704 can be realized by any type of volatile or nonvolatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disc, or optical disc.

[0143] The power component 706 provides power to the various components of the electronic device 700. The power component 706 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 700.

[0144] The multimedia component 708 includes a screen to provide an output interface between the electronic device 700 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensors can not only sense a boundary of a touching or sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 708 includes a front camera and / or a back camera. The front camera and / or the back camera can receive external multimedia data when the electronic device 700 is in an operating mode, such as a shooting mode or a video mode. Each of the front camera and the back camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0145] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC) that is configured to receive an external audio signal when the electronic device 700 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0146] The I / O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0147] The sensor component 714 includes one or more sensors for providing various state assessments for the electronic device 700. For example, the sensor component 714 can detect an open / closed state of the electronic device 700, relative positioning of components, such as a display and a keypad of the electronic device 700, a change in position of the electronic device 700 or a component of the electronic device 700, presence or absence of user contact with the electronic device 700, an orientation or acceleration / deceleration of the electronic device 700, and a temperature change of the electronic device 700. The sensor component 714 includes an ambient light sensor (Flicker sensor) configured to detect a frequency of frequency flashes to gather brightness information of ambient light, and a proximity sensor configured to detect presence of a nearby object without any physical contact. The sensor component 714 can further include a light sensor, such as a CMOS or CCD image sensor, for use in an imaging application. In some embodiments, the sensor component 714 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0148] The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an example embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an example embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technology.

[0149] In an exemplary embodiment, the electronic device 700 can be implemented with one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic elements for performing the above-described methods.

[0150] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 704 including instructions, is also provided, which can be executed by the processor 820 of the electronic device 700 to complete the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0151] The embodiments of the present disclosure also provide a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the stroboscopic detection method in the above-described embodiments.

[0152] Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the present application cover any and all variations of the application that come within the scope of the claims and a concept underlying the application. It is intended that the specification and examples be considered exemplary only, with the true scope and spirit of the application being indicated by the following claims.

[0153] It is to be understood that the application is not limited to the precise details of construction and the exemplary embodiments described above and illustrated in the drawings. The scope of the application is to be determined by the terms of the following claims.

Claims

1. A stroboscopic detection method, characterized in that, The method comprises: brightness information of ambient light is collected by a preset sensor installed in the electronic device, the preset sensor is transparent between the preset sensor and the screen, and a screen area of the screen above the preset sensor is free of openings; a strobe frequency of the ambient light is determined based on the brightness information.

2. The stroboscopic detection method according to claim 1, characterized in that, Before the brightness information of ambient light is collected by the preset sensor, the method further comprises: a strobe frequency of screen light is adjusted to a preset strobe frequency.

3. The stroboscopic detection method according to claim 2, characterized in that, The strobe frequency of screen light is adjusted to a preset strobe frequency, comprising: when the strobe frequency of the screen light is greater than a strobe frequency threshold, the strobe frequency of the screen light is adjusted to the preset strobe frequency, and the preset strobe frequency is greater than the strobe frequency threshold.

4. The stroboscopic detection method of claim 1, wherein, The strobe frequency of the ambient light is determined based on the brightness information, comprising: frequency domain transformation is performed based on the brightness information to obtain frequency domain information of the ambient light; the strobe frequency of the ambient light is determined based on the frequency domain information.

5. The stroboscopic detection method according to claim 4, characterized in that, The strobe frequency of the ambient light is determined based on the frequency domain information, comprising: a frequency corresponding to a maximum amplitude in the frequency domain information is determined as the strobe frequency of the ambient light.

6. The stroboscopic detection method according to claim 4, characterized in that, The brightness information comprises a plurality of groups of brightness data collected at a plurality of times; the frequency domain transformation is performed based on the brightness information to obtain the frequency domain information of the ambient light, comprising: when the number of the plurality of groups of brightness data is greater than a number threshold, a preset number of groups of brightness data newly collected in the plurality of groups of brightness data are determined; the preset number of groups of brightness data are subjected to frequency domain transformation to obtain the frequency domain information.

7. The stroboscopic detection method of claim 1, wherein, The preset sensor is an ambient light sensor, and before the brightness information of ambient light is collected by the preset sensor installed in the electronic device, the method further comprises: configuration information of the ambient light sensor is obtained, and the configuration information is used to configure relevant parameters of the ambient light sensor when the ambient light sensor is used for strobe detection; The brightness information of ambient light is collected by the preset sensor installed in the electronic device, comprising: the brightness information is collected by the ambient light sensor based on the configuration information.

8. The stroboscopic detection method of claim 1, wherein, The method further comprises: a shooting parameter of a camera module is determined based on the strobe frequency of the ambient light; shooting is performed based on the shooting parameter.

9. The stroboscopic detection method according to any one of claims 1 to 8, characterized in that, A screen area of the screen within a field of view angle range of the preset sensor is free of openings, and a copper foil and black foam within the field of view angle range of the preset sensor are open.

10. A stroboscopic detection device, characterized in that The device comprises: a brightness information collection module configured to collect brightness information of ambient light by a preset sensor installed in the electronic device, the preset sensor is transparent between the preset sensor and the screen, and a screen area of the screen above the preset sensor is free of openings; a strobe frequency determination module configured to determine a strobe frequency of the ambient light based on the brightness information.

11. An electronic device, comprising: comprising: a processor; a memory for storing processor-executable instructions; a preset sensor and a screen, the preset sensor is transparent between the preset sensor and the screen, and a screen area of the screen above the preset sensor is free of openings; wherein the processor is configured to perform the method of any one of claims 1-9.

12. A non-transitory computer-readable storage medium, comprising: The instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1-9.