CN113721825B - Distance detection method and device, electronic device and storage medium - Google Patents
Distance detection method and device, electronic device and storage medium Download PDFInfo
- Publication number
- CN113721825B CN113721825B CN202010453441.2A CN202010453441A CN113721825B CN 113721825 B CN113721825 B CN 113721825B CN 202010453441 A CN202010453441 A CN 202010453441A CN 113721825 B CN113721825 B CN 113721825B
- Authority
- CN
- China
- Prior art keywords
- distance sensor
- target screen
- screen
- electronic device
- detection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S17/00—Systems using the reflection or reradiation of electromagnetic waves other than radio waves, e.g. lidar systems
- G01S17/02—Systems using the reflection of electromagnetic waves other than radio waves
- G01S17/06—Systems determining position data of a target
- G01S17/08—Systems determining position data of a target for measuring distance only
- G01S17/10—Systems determining position data of a target for measuring distance only using transmission of interrupted, pulse-modulated waves
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
- G06F3/04186—Touch location disambiguation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Electromagnetism (AREA)
- Computer Networks & Wireless Communication (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
- Position Input By Displaying (AREA)
Abstract
Description
技术领域Technical Field
本公开涉及电子技术领域,尤其涉及一种距离检测方法及装置、电子设备及存储介质。The present disclosure relates to the field of electronic technology, and in particular to a distance detection method and device, an electronic device, and a storage medium.
背景技术Background Art
随着电子技术的发展,全面屏已经被越来越多地应用到手机等电子产品中。为了适应全面屏的应用,出现了将距离传感器、光感传感器、图像采集装置等等设置于显示屏内部,在显示像素的间隙来实现信号采集等功能。对于带有折叠屏等的可变换姿态的电子设备,还可能具有多显示屏,从而使得电子设备有多种不同的使用场景。因此,如何配置距离传感器的使用,则是对于多显示屏的电子设备亟待解决的问题之一。With the development of electronic technology, full screens have been increasingly applied to electronic products such as mobile phones. In order to adapt to the application of full screens, distance sensors, light sensors, image acquisition devices, etc. are set inside the display screen to realize signal acquisition and other functions in the gaps between display pixels. For electronic devices with transformable postures such as folding screens, they may also have multiple display screens, so that the electronic devices have a variety of different usage scenarios. Therefore, how to configure the use of distance sensors is one of the urgent problems to be solved for electronic devices with multiple display screens.
发明内容Summary of the invention
本公开提供一种距离检测方法及装置、电子设备及存储介质。The present disclosure provides a distance detection method and device, an electronic device and a storage medium.
根据本公开实施例的第一方面,提供一种距离检测方法,应用于具有多个显示屏的电子设备,包括:According to a first aspect of an embodiment of the present disclosure, a distance detection method is provided, which is applied to an electronic device having multiple display screens, including:
检测所述电子设备的设备姿态;Detecting a device posture of the electronic device;
根据所述设备姿态,从多个所述显示屏中确定出处于交互状态的目标屏;According to the device posture, determining a target screen in an interactive state from the multiple display screens;
启动与所述目标屏朝向相同的距离传感器;Activate a distance sensor facing the same direction as the target screen;
通过启动的所述距离传感器,进行检测对象相对于所述电子设备的距离检测。The distance sensor is activated to detect the distance of the detection object relative to the electronic device.
在一些实施例中,所述方法还包括:In some embodiments, the method further comprises:
确定所述目标屏的类型;Determining the type of the target screen;
根据所述目标屏的类型,和所述距离传感器与所述目标屏之间的相对位置,确定启动所述距离传感器的启动时刻;Determining a start time of starting the distance sensor according to the type of the target screen and the relative position between the distance sensor and the target screen;
所述启动与所述目标屏朝向相同的距离传感器,包括:The starting of the distance sensor facing the same direction as the target screen includes:
在所述启动时刻,启动所述距离传感器。At the start-up time, the distance sensor is started.
在一些实施例中,所述根据所述目标屏的类型,和所述距离传感器与所述目标屏之间的相对位置,确定启动所述距离传感器的启动时刻,包括:In some embodiments, determining the activation time of activating the distance sensor according to the type of the target screen and the relative position between the distance sensor and the target screen includes:
如果所述目标屏为OLED(OrganicLight-Emitting Diode,有机发光二极管)屏,则根据所述距离传感器在所述目标屏下的位置,确定所述距离传感器相对于所述OLED显示屏刷新起始时刻的延迟时长;If the target screen is an OLED (Organic Light-Emitting Diode) screen, then determining the delay time of the distance sensor relative to the refresh start time of the OLED display screen according to the position of the distance sensor under the target screen;
根据所述目标屏的刷新起始时刻和所述延迟时长,确定所述启动时刻。The start time is determined according to the refresh start time of the target screen and the delay time.
在一些实施例中,所述根据所述目标屏的类型,和所述距离传感器与所述目标屏之间的相对位置,确定启动所述距离传感器的启动时刻,包括:In some embodiments, determining the activation time of activating the distance sensor according to the type of the target screen and the relative position between the distance sensor and the target screen includes:
如果所述目标屏为OLED屏,则在所述目标屏的每段预设时长内显示至少一个检测帧;其中,在显示所述检测帧时,所述距离传感器所在位置对应的所述目标屏的显示像素熄灭;If the target screen is an OLED screen, at least one detection frame is displayed within each preset time period of the target screen; wherein, when the detection frame is displayed, the display pixel of the target screen corresponding to the position of the distance sensor is turned off;
根据所述检测帧开始显示的时刻,确定启动时刻。The start time is determined according to the time when the detection frame starts to be displayed.
在一些实施例中,所述根据所述目标屏的类型,和所述距离传感器与所述目标屏之间的相对位置,确定启动所述距离传感器的启动时刻,包括:In some embodiments, determining the activation time of activating the distance sensor according to the type of the target screen and the relative position between the distance sensor and the target screen includes:
如果所述目标屏为液晶显示屏,且所述距离传感器位于所述目标屏的显示区域以外,则将预设启动时刻,确定为所述启动时刻。If the target screen is a liquid crystal display screen, and the distance sensor is located outside the display area of the target screen, the preset start-up time is determined as the start-up time.
在一些实施例中,所述方法还包括:In some embodiments, the method further comprises:
根据所述目标屏的刷新周期,确定所述距离检测的持续时长;Determining the duration of the distance detection according to the refresh cycle of the target screen;
根据所述持续时长,和所述距离传感器的脉冲发射频率,确定脉冲个数;Determine the number of pulses according to the duration and the pulse transmission frequency of the distance sensor;
所述通过启动的所述距离传感器,进行检测对象相对于所述电子设备的距离检测,包括:The detecting of the distance of the detection object relative to the electronic device by starting the distance sensor includes:
通过启动所述距离传感器,发射所述脉冲个数的检测脉冲;By starting the distance sensor, the detection pulses of the number of pulses are emitted;
根据接收到的所述检测脉冲反射得到的反射脉冲,确定所述检测对象与所述电子设备的距离。The distance between the detection object and the electronic device is determined according to the reflected pulse obtained by reflecting the received detection pulse.
在一些实施例中,所述电子设备的至少一个显示屏为可弯折的柔性屏;所述柔性屏位于所述电子设备的至少两个可相对活动的部分;In some embodiments, at least one display screen of the electronic device is a bendable flexible screen; the flexible screen is located in at least two relatively movable parts of the electronic device;
所述方法还包括:The method further comprises:
根据所述至少两个可相对活动的部分的相对位置,确定所述电子设备的设备姿态。The device posture of the electronic device is determined according to the relative positions of the at least two relatively movable parts.
在一些实施例中,所述启动与所述目标屏朝向相同的距离传感器,包括:In some embodiments, the step of activating a distance sensor that faces the same direction as the target screen includes:
在所述电子设备处于通话状态下,启动与所述目标屏朝向相同的距离传感器。When the electronic device is in a call state, a distance sensor facing the same direction as the target screen is activated.
根据本公开实施例的第二方面,提供一种距离检测装置,应用于具有多个显示屏的电子设备,包括:According to a second aspect of an embodiment of the present disclosure, there is provided a distance detection device, which is applied to an electronic device having multiple display screens, including:
检测模块,用于检测所述电子设备的设备姿态;A detection module, used to detect the device posture of the electronic device;
第一确定模块,用于根据所述设备姿态,从多个所述显示屏中确定出处于交互状态的目标屏;A first determining module, configured to determine a target screen in an interactive state from the plurality of display screens according to the device posture;
启动模块,用于启动与所述目标屏朝向相同的距离传感器;A starting module, used for starting a distance sensor facing the same direction as the target screen;
检测模块,用于通过启动的所述距离传感器,进行检测对象相对于所述电子设备的距离检测。The detection module is used to detect the distance between the detection object and the electronic device by starting the distance sensor.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further comprises:
第二确定模块,用于确定所述目标屏的类型;A second determining module, used to determine the type of the target screen;
第三确定模块,用于根据所述目标屏的类型,和所述距离传感器与所述目标屏之间的相对位置,确定启动所述距离传感器的启动时刻;A third determining module, used to determine a start time of starting the distance sensor according to the type of the target screen and the relative position between the distance sensor and the target screen;
所述启动模块,具体用于:The startup module is specifically used for:
在所述启动时刻,启动所述距离传感器。At the start-up time, the distance sensor is started.
在一些实施例中,所述第三确定模块,包括:In some embodiments, the third determination module includes:
第一确定子模块,如果所述目标屏为OLED屏,则用于根据所述距离传感器在所述目标屏下的位置,确定所述距离传感器相对于所述OLED显示屏刷新起始时刻的延迟时长;The first determination submodule is used to determine the delay time of the distance sensor relative to the refresh start time of the OLED display screen according to the position of the distance sensor under the target screen if the target screen is an OLED screen;
第二确定子模块,用于根据所述目标屏的刷新起始时刻和所述延迟时长,确定所述启动时刻。The second determination submodule is used to determine the start time according to the refresh start time of the target screen and the delay time.
在一些实施例中,所述第三确定模块,包括:In some embodiments, the third determination module includes:
第三确定子模块,如果所述目标屏为OLED屏,则用于在所述目标屏的每段预设时长内显示至少一个检测帧;其中,在显示所述检测帧时,所述距离传感器所在位置对应的所述目标屏的显示像素熄灭;The third determination submodule is configured to display at least one detection frame within each preset time period of the target screen if the target screen is an OLED screen; wherein, when the detection frame is displayed, the display pixel of the target screen corresponding to the position of the distance sensor is turned off;
第四确定子模块,用于根据所述检测帧开始显示的时刻,确定启动时刻。The fourth determination submodule is used to determine the start time according to the time when the detection frame starts to be displayed.
在一些实施例中,所述第三确定模块,包括:In some embodiments, the third determination module includes:
第五确定子模块,如果所述目标屏为液晶显示屏,且所述距离传感器位于所述目标屏的显示区域以外,则用于将预设启动时刻,确定为所述启动时刻。The fifth determining submodule is configured to determine a preset start-up time as the start-up time if the target screen is a liquid crystal display screen and the distance sensor is located outside the display area of the target screen.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further comprises:
第四确定模块,用于根据所述目标屏的刷新周期,确定所述距离检测的持续时长;A fourth determination module, used to determine the duration of the distance detection according to the refresh cycle of the target screen;
第五确定模块,用于根据所述持续时长,和所述距离传感器的脉冲发射频率,确定脉冲个数;A fifth determination module, used to determine the number of pulses according to the duration and the pulse transmission frequency of the distance sensor;
所述检测模块,包括:The detection module comprises:
发射子模块,用于通过启动所述距离传感器,发射所述脉冲个数的检测脉冲;A transmitting submodule, used for transmitting detection pulses of the number of pulses by starting the distance sensor;
第六确定子模块,用于根据接收到的所述检测脉冲反射得到的反射脉冲,确定所述检测对象与所述电子设备的距离。The sixth determination submodule is used to determine the distance between the detection object and the electronic device according to the reflected pulse obtained by reflecting the received detection pulse.
在一些实施例中,所述电子设备的至少一个显示屏为可弯折的柔性屏;所述柔性屏位于所述电子设备的至少两个可相对活动的部分;In some embodiments, at least one display screen of the electronic device is a bendable flexible screen; the flexible screen is located in at least two relatively movable parts of the electronic device;
所述装置还包括:The device also includes:
第六确定模块,用于启动根据所述至少两个可相对活动的部分的相对位置,确定所述电子设备的设备姿态。The sixth determination module is used to start determining the device posture of the electronic device according to the relative positions of the at least two relatively movable parts.
在一些实施例中,所述启动模块,具体用于:In some embodiments, the startup module is specifically used to:
在所述电子设备处于通话状态下,启动与所述目标屏朝向相同的距离传感器。When the electronic device is in a call state, a distance sensor facing the same direction as the target screen is activated.
根据本公开实施例的第三方面,提供一种电子设备,至少包括:处理器和用于存储能够在所述处理器上运行的可执行指令的存储器,其中:According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising at least: a processor and a memory for storing executable instructions that can be run on the processor, wherein:
处理器用于运行所述可执行指令时,所述可执行指令执行上述任一项距离检测方法中的步骤。When the processor is used to run the executable instructions, the executable instructions execute the steps in any one of the above-mentioned distance detection methods.
根据本公开实施例的第四方面,提供一种非临时性计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,该计算机可执行指令被处理器执行时实现上述任一项的距离检测方法中的步骤。According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, can implement the steps in any of the above-mentioned distance detection methods.
本公开的实施例提供的技术方案可以包括以下有益效果:通过本公开的技术方案,在具有多显示屏的电子设备具有不同设备姿态的情况下,都能够选择合适的距离传感器进行距离检测,并进一步控制目标屏是否熄灭,从而减少由于不同姿态下用户脸部等部位接近显示屏造成误触的情况。The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: through the technical solution of the present disclosure, when an electronic device with multiple display screens has different device postures, it is possible to select a suitable distance sensor for distance detection, and further control whether the target screen is turned off, thereby reducing the situation of false touches caused by the user's face and other parts approaching the display screen in different postures.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
图1是根据一示例性实施例示出的一种距离检测方法的流程图一;FIG1 is a flowchart 1 of a distance detection method according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种距离检测方法的流程图二;FIG2 is a second flowchart of a distance detection method according to an exemplary embodiment;
图3A是根据一示例性实施例示出的一种距离检测方法的流程图三;FIG3A is a flowchart 3 of a distance detection method according to an exemplary embodiment;
图3B是根据一示例性实施例示出的一种距离检测方法的流程图四;FIG3B is a fourth flowchart of a distance detection method according to an exemplary embodiment;
图3C是根据一示例性实施例示出的一种距离检测方法的流程图五;FIG3C is a fifth flowchart of a distance detection method according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种电子设备中的模块连接示意图;FIG4 is a schematic diagram showing module connections in an electronic device according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种距离检测装置的结构框图;FIG5 is a structural block diagram of a distance detection device according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种电子设备的实体结构框图。Fig. 6 is a block diagram showing a physical structure of an electronic device according to an exemplary embodiment.
具体实施方式DETAILED DESCRIPTION
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
图1是根据一示例性实施例示出的一种距离检测方法的流程图,该方法应用于具有多个显示屏的电子设备,如图1所示,包括以下步骤:FIG. 1 is a flow chart of a distance detection method according to an exemplary embodiment. The method is applied to an electronic device having multiple display screens. As shown in FIG. 1 , the method includes the following steps:
步骤S101、检测电子设备的设备姿态;Step S101, detecting the device posture of the electronic device;
步骤S102、根据设备姿态,从多个显示屏中确定出处于交互状态的目标屏;Step S102: determining a target screen in an interactive state from multiple display screens according to the device posture;
步骤S103、启动与目标屏朝向相同的距离传感器;Step S103, start the distance sensor facing the same direction as the target screen;
步骤S104、通过启动的距离传感器,进行检测对象相对于电子设备的距离检测。Step S104: Detect the distance between the detection object and the electronic device by using the activated distance sensor.
在本公开实施例中,距离传感器用于检测显示屏外侧的物体是否遮挡显示屏,当有物体的距离与距离传感器之间的距离小于预设阈值时,则确定存在遮挡的物体。距离传感器可通过发射光信号以及反射信号的信号能量损失或者时间差等方式,来实现距离的检测。距离传感器发射的检测信号可包括:红外信号。该红外信号的功率可以是通过脉冲波长调制(Pulse width modulation,PWM)产生的具有一定占空比(D)、一定频率和一定驱动电流的脉冲信号。例如,距离传感器发射的红外信号可为波长在850纳米至1300纳米范围内的红外光信号。具体地,红外光信号的波长可为940nm。In the disclosed embodiment, the distance sensor is used to detect whether an object outside the display screen blocks the display screen. When the distance between the object and the distance sensor is less than a preset threshold, it is determined that there is an obstructing object. The distance sensor can detect the distance by means of the signal energy loss or time difference of the emitted light signal and the reflected signal. The detection signal emitted by the distance sensor may include: an infrared signal. The power of the infrared signal may be a pulse signal with a certain duty cycle (D), a certain frequency and a certain driving current generated by pulse width modulation (PWM). For example, the infrared signal emitted by the distance sensor may be an infrared light signal with a wavelength in the range of 850 nanometers to 1300 nanometers. Specifically, the wavelength of the infrared light signal may be 940nm.
在本公开实施例中,电子设备可以是具有可相对活动的多个部分构成的具有可变设备姿态的电子设备,例如,具有可折叠、开合、弯折或者卷曲等姿态变化的电子设备。电子设备在不同的工作状态下可以具有不同的设备姿态。在不同的设备姿态下,用户可能使用不同的显示屏,而正在处于交互状态的显示屏,一般是朝向用户的。此外,电子设备的多个屏幕都需要设置对应的距离传感器,这样,无论用户使用哪个屏幕,在将该屏幕贴近脸部等位置时,都可以通过距离传感器感应有物体的接近,从而关闭显示屏,减少误触的情况。In the disclosed embodiments, the electronic device may be an electronic device having a variable device posture composed of a plurality of relatively movable parts, for example, an electronic device having posture changes such as folding, opening and closing, bending or curling. The electronic device may have different device postures in different working states. In different device postures, the user may use different display screens, and the display screen that is in an interactive state is generally facing the user. In addition, multiple screens of the electronic device need to be provided with corresponding distance sensors, so that no matter which screen the user uses, when the screen is close to the face or other positions, the distance sensor can sense the approach of an object, thereby turning off the display screen and reducing the possibility of accidental touches.
因此,这里根据电子设备的设备姿态,确定出多个显示屏中处于交互状态的目标屏。然后启动位于该目标屏对应的距离传感器进行检测。目标屏对应的距离传感器,其检测面的朝向与目标屏的显示面的朝向相同,这样,通过启动该目标传感器,就能够对应检测接近该目标屏的物体,从而减少误触。同时,不需要启动其他显示屏对应的距离传感器,从而减少不必要的检测,降低设备功耗。Therefore, here, according to the device posture of the electronic device, the target screen in the interactive state among the multiple display screens is determined. Then the distance sensor corresponding to the target screen is started for detection. The detection surface of the distance sensor corresponding to the target screen is oriented in the same direction as the display surface of the target screen. In this way, by starting the target sensor, objects approaching the target screen can be detected accordingly, thereby reducing false touches. At the same time, there is no need to start the distance sensors corresponding to other display screens, thereby reducing unnecessary detection and reducing device power consumption.
在一些实施例中,如图2所示,该方法还包括:In some embodiments, as shown in FIG2 , the method further includes:
步骤S201、确定目标屏的类型;Step S201, determining the type of the target screen;
步骤S202、根据目标屏的类型,和距离传感器与目标屏之间的相对位置,确定启动距离传感器的启动时刻;Step S202: determining a start time of starting the distance sensor according to the type of the target screen and the relative position between the distance sensor and the target screen;
上述步骤S103中,启动与目标屏朝向相同的距离传感器,包括:In the above step S103, starting the distance sensor facing the same direction as the target screen includes:
步骤S203、在启动时刻,启动距离传感器。Step S203: At the start time, start the distance sensor.
由于电子设备具有多个显示屏,而多个显示屏可能是不同类型的显示屏,例如OLED显示屏、LCD(Liquid Crystal Display,液晶显示屏)等等。对于不同的显示屏,距离传感器的放置位置可能不同,例如:LCD显示屏具有背光模组,因此,距离传感器无法放置于屏下,而是设置于显示屏边缘的非显示区域;而OLED显示屏则可以将距离传感器放置于显示屏屏下的像素区域的范围内。Since the electronic device has multiple display screens, and the multiple display screens may be of different types, such as OLED display screens, LCD (Liquid Crystal Display), etc. For different display screens, the placement position of the distance sensor may be different. For example, the LCD display screen has a backlight module, so the distance sensor cannot be placed under the screen, but is set in the non-display area at the edge of the display screen; while the OLED display screen can place the distance sensor within the pixel area under the display screen.
对于放置于显示屏屏下的距离传感器,如果在显示屏开启的过程中,开启距离传感器并进行检测,则距离传感器发射的检测脉冲,可能会对像素单元产生光电效应,激发出像素的亮点,从而在显示屏的距离传感器所在区域产生亮斑。而对于LCD显示屏,则需要将距离传感器设置于显示屏的非显示区域。For the distance sensor placed under the display screen, if the distance sensor is turned on and tested while the display screen is turned on, the detection pulse emitted by the distance sensor may produce a photoelectric effect on the pixel unit, stimulating the bright spot of the pixel, thereby producing a bright spot in the area where the distance sensor is located on the display screen. For LCD display screens, the distance sensor needs to be set in the non-display area of the display screen.
因此,这里根据显示屏的类型,以及距离传感器与显示屏的相对位置,来确定启动距离传感器进行检测的时间,从而尽可能减少距离传感器检测时对显示画面的影响。同时还保证检测的实效性。Therefore, the time to start the distance sensor for detection is determined according to the type of display screen and the relative position of the distance sensor and the display screen, so as to minimize the impact of the distance sensor detection on the display screen and ensure the effectiveness of the detection.
在一些实施例中,如图3A所示,上述步骤S202中,根据目标屏的类型,和距离传感器与目标屏之间的相对位置,确定启动距离传感器的启动时刻,包括:In some embodiments, as shown in FIG. 3A , in the above step S202 , determining the activation time of activating the distance sensor according to the type of the target screen and the relative position between the distance sensor and the target screen includes:
步骤S11、如果目标屏为OLED屏,则根据距离传感器在目标屏下的位置,确定距离传感器相对于OLED显示屏刷新起始时刻的延迟时长;Step S11: If the target screen is an OLED screen, determine the delay time of the distance sensor relative to the refresh start time of the OLED display screen according to the position of the distance sensor under the target screen;
步骤S12、根据目标屏的刷新起始时刻和延迟时长,确定启动时刻。Step S12: Determine the start time according to the refresh start time and delay duration of the target screen.
在本公开实施例中,距离传感器设置于OLED屏的屏下,在距离传感器进行检测时,发射的红外信号脉冲会透过显示屏的像素单元传出显示屏表面,经过障碍物反射后,透过显示屏回到距离传感器。In the disclosed embodiment, the distance sensor is disposed under the OLED screen. When the distance sensor performs detection, the emitted infrared signal pulse will pass through the pixel unit of the display screen to the surface of the display screen, and after being reflected by an obstacle, it will return to the distance sensor through the display screen.
在显示屏中,通过控制显示屏中的如MOS(Metal Oxide Semiconductor,金属氧化物半导体)管等具有PN结的晶体管,控制与该晶体管电连接的像素单元的显示,使得包括多个像素单元的像素阵列显示相应的图像。In a display screen, by controlling a transistor with a PN junction such as a MOS (Metal Oxide Semiconductor) tube in the display screen, the display of a pixel unit electrically connected to the transistor is controlled, so that a pixel array including multiple pixel units displays a corresponding image.
当距离感应器设置在显示屏下方时,距离感应器发射的用于测距的红外信号会穿过显示屏。当距离感应器发射的红外信号照射到处于关断状态的MOS管上时,红外信号中的光子会与MOS管中的电子等载流子发生碰撞,使得电子发生跃迁,将处于关断状态的MOS管错误导通,使得与错误导通的MOS管连接的像素单元发光,干扰被红外信号照射到的像素单元的显示,影响显示效果。例如,会激发显示屏显示亮斑。When the distance sensor is set below the display screen, the infrared signal for distance measurement emitted by the distance sensor will pass through the display screen. When the infrared signal emitted by the distance sensor irradiates the MOS tube in the off state, the photons in the infrared signal will collide with the electrons and other carriers in the MOS tube, causing the electrons to transition, and the MOS tube in the off state will be mistakenly turned on, causing the pixel unit connected to the mistakenly turned on MOS tube to emit light, interfering with the display of the pixel unit irradiated by the infrared signal, affecting the display effect. For example, it will stimulate the display screen to show bright spots.
在一些实施例中,根据距离传感器在目标显示屏下的位置,确定延迟时长,包括:根据目标显示屏刷新频率和显示像素的行数,确定距离传感器所在位置对应的像素行熄灭的开始时刻;其中,像素行熄灭的时段用于清空像素行上一帧的显示数据;根据像素行熄灭的开始时刻与目标显示屏一帧画面开始刷新的时刻之间的时间差,确定延迟时长。In some embodiments, the delay duration is determined according to the position of the distance sensor under the target display screen, including: determining the start time of the pixel row corresponding to the position of the distance sensor to be turned off according to the refresh frequency of the target display screen and the number of rows of display pixels; wherein the period of time when the pixel row is turned off is used to clear the display data of the previous frame of the pixel row; and determining the delay duration according to the time difference between the start time of the pixel row being turned off and the time when a frame of the target display screen starts to be refreshed.
在显示阵列进行显示时,每个像素单元存在发光时段和显示时隙。示例性地,处于发光时段的像素单元根据驱动信号产生光信号,处于显示时隙的像素单元暂停产生光信号。可以理解的是,显示时隙位于像素单元的两个相邻发光时段之间。在显示屏进行像素刷新的过程中,会逐行在显示时隙内清空像素行在上一帧的显示数据,向像素单元传输清零信号。由于存在视觉暂留现象,在相邻两个发光时段之间的显示时隙内,像素单元在前一个发光时段产生的光信号对人眼视网膜产生的视觉效果仍会在显示时隙内暂留在人的大脑中,即用户认为像素单元在显示时隙内依旧进行显示。When the display array is displaying, each pixel unit has a light-emitting period and a display time slot. Exemplarily, a pixel unit in a light-emitting period generates a light signal according to a driving signal, and a pixel unit in a display time slot suspends generating a light signal. It is understandable that the display time slot is located between two adjacent light-emitting periods of a pixel unit. In the process of refreshing pixels on the display screen, the display data of the pixel row in the previous frame is cleared row by row in the display time slot, and a clear signal is transmitted to the pixel unit. Due to the phenomenon of visual persistence, in the display time slot between two adjacent light-emitting periods, the visual effect of the light signal generated by the pixel unit in the previous light-emitting period on the retina of the human eye will still remain in the human brain in the display time slot, that is, the user believes that the pixel unit is still displaying in the display time slot.
可以理解的是,距离传感器在显示屏所在平面的投影与显示屏所在的平面有重叠的区域,该重叠区域即为距离传感器在显示阵列所在的平面内的投影覆盖的区域。在该重叠区域内的像素单元即可能被激发产生亮斑的像素单元。实际应用中,距离传感器发射检测信号时,可形成圆锥形的发射区域。该圆锥形的发射区域覆盖的显示阵列内的区域可视为上述重叠区域。It can be understood that the projection of the distance sensor on the plane where the display screen is located overlaps with the plane where the display screen is located, and the overlapping area is the area covered by the projection of the distance sensor in the plane where the display array is located. The pixel units in the overlapping area are the pixel units that may be excited to produce bright spots. In practical applications, when the distance sensor emits a detection signal, a conical emission area can be formed. The area in the display array covered by the conical emission area can be regarded as the above-mentioned overlapping area.
因此,根据距离传感器在显示屏的上述重叠区域内的像素单元,熄灭的时段内,可以进行上述距离检测。由于在该时段内,也就是显示时隙内,清零信号传递至像素单元,即使距离传感器的红外信号脉冲激发MOS管打开,也不会有电信号导通为像素单元充电,因而不会产生亮斑。Therefore, the above distance detection can be performed during the period when the distance sensor is turned off in the above overlapping area of the display screen. Since the reset signal is transmitted to the pixel unit during this period, that is, during the display time slot, even if the infrared signal pulse of the distance sensor excites the MOS tube to turn on, no electrical signal will be turned on to charge the pixel unit, so no bright spot will be generated.
在本公开实施例中,可以根据距离传感器与显示屏的相对位置,确定上述重叠区域内的像素单元,然后根据该区域内像素单元在每一刷新周期内进入显示时隙,即上述清空像素单元的时段开始的时间,确定上述延迟时长。例如,距离传感器在显示屏的第100行像素单元所在的位置,因此,延迟时长应当是第1至第99行的显示时段和显示时隙结束后,进入第100行的显示时隙的时间。In the disclosed embodiment, the pixel units in the overlapping area can be determined according to the relative position of the distance sensor and the display screen, and then the delay time can be determined according to the time when the pixel units in the area enter the display time slot in each refresh cycle, that is, the time when the period of clearing the pixel units starts. For example, the distance sensor is located at the position of the pixel units in the 100th row of the display screen, so the delay time should be the time to enter the display time slot of the 100th row after the display period and display time slot of the 1st to 99th rows end.
由于对不不同的显示屏,距离传感器的位置设定不同。因此,当电子设备的不同显示屏作为上述目标屏时,则需要确定目标屏对应的距离传感器的位置,并根据该位置确定延迟时长,进而确定距离传感器的启动时刻。Since the position of the distance sensor is set differently for different display screens, when different display screens of the electronic device are used as the target screen, it is necessary to determine the position of the distance sensor corresponding to the target screen, and determine the delay time according to the position, and then determine the start time of the distance sensor.
如此,可提高确定的检测信号发射时间的准确性,降低对于显示屏的显示效果带来的干扰。In this way, the accuracy of the determined detection signal emission time can be improved, and the interference with the display effect of the display screen can be reduced.
在一些实施例中,如图3B所示,上述步骤S202中,根据目标屏的类型,和距离传感器与目标屏之间的相对位置,确定启动距离传感器的启动时刻,包括:In some embodiments, as shown in FIG. 3B , in the above step S202, determining the activation time of activating the distance sensor according to the type of the target screen and the relative position between the distance sensor and the target screen includes:
步骤S21、如果目标屏为OLED屏,则在目标屏的每段预设时长内显示至少一个检测帧;其中,在显示检测帧时,距离传感器所在位置对应的目标屏的像素单元熄灭;Step S21: If the target screen is an OLED screen, at least one detection frame is displayed within each preset time period of the target screen; wherein, when the detection frame is displayed, the pixel unit of the target screen corresponding to the position of the distance sensor is turned off;
步骤S22、根据检测帧开始显示的时刻,确定启动时刻。Step S22: Determine the start time according to the time when the detection frame starts to be displayed.
在显示屏进行显示的过程中,每秒刷新数十次甚至上百次画面,例如,60Hz(赫兹)的显示屏每秒刷新60帧画面。而由于显示屏实际显示的画面并不会快速变化,因此,在一秒内的60帧画面大部分为相同的画面。在画面发生变化时,由于切换速度极快,人眼也无法察觉切换的过程,而是感受到显示屏画面流畅的动态变化。During the display process, the screen refreshes dozens or even hundreds of times per second. For example, a 60Hz screen refreshes 60 frames per second. Since the screen actually displays the image, it does not change quickly, so most of the 60 frames in one second are the same. When the image changes, the human eye cannot perceive the switching process due to the extremely fast switching speed, but instead perceives the smooth dynamic changes of the screen image.
因此,在本公开实施例中,在每段时间内可以显示一个检测帧,该检测帧可以是黑画面帧,也可以在原有的画面下,将距离传感器所在位置的像素单元,显示为黑色。这样,在检测帧的整个显示时段内,距离传感器对应的像素单元的重叠区域内,像素单元的数据信号为清零的信号,即使距离传感器激发MOS管导通,也不会有信号为像素单元充电,因此不会产生亮斑。此外,由于检测帧的时间很短,人眼无法察觉,因此也不会影响画面的显示效果。Therefore, in the embodiment of the present disclosure, a detection frame can be displayed in each period of time. The detection frame can be a black screen frame, or the pixel unit where the distance sensor is located can be displayed as black under the original screen. In this way, during the entire display period of the detection frame, in the overlapping area of the pixel unit corresponding to the distance sensor, the data signal of the pixel unit is a cleared signal. Even if the distance sensor stimulates the MOS tube to turn on, there will be no signal to charge the pixel unit, so no bright spot will be generated. In addition, since the detection frame time is very short, it cannot be perceived by the human eye, so it will not affect the display effect of the picture.
在实际应用中,可以在每段预设时长内,如每秒或者每两秒等,显示一个检测帧;还可以在每段预设时长内,显示相邻的两个检测帧,以增长距离检测的时间;当然,也可以显示不相邻的两个或多个检测帧,以提高检测的频率。In practical applications, one detection frame may be displayed within each preset time period, such as every second or every two seconds; two adjacent detection frames may also be displayed within each preset time period to increase the time for distance detection; of course, two or more non-adjacent detection frames may also be displayed to increase the frequency of detection.
在一些实施例中,如图3C所示,上述步骤S202中,根据目标屏的类型,和距离传感器与目标屏之间的相对位置,确定启动距离传感器的启动时刻,包括:In some embodiments, as shown in FIG. 3C , in the above step S202, determining the activation time of activating the distance sensor according to the type of the target screen and the relative position between the distance sensor and the target screen includes:
步骤S31、如果目标屏为液晶显示屏,且距离传感器位于目标屏的显示区域以外,则将预设启动时刻,确定为启动时刻。Step S31: If the target screen is a liquid crystal display screen and the distance sensor is located outside the display area of the target screen, the preset start time is determined as the start time.
由于LCD具有背光模组,而背光模组的底层不透光,因此不能将距离传感器设置于显示屏屏下。因此,液晶显示屏对应的距离传感器可以设置在显示屏边框的窄缝中,也可以设置在显示屏以外的电子设备的框体上。也就是说,距离传感器设置于显示屏的显示区域以外,因此,不会干扰显示屏的画面显示。Since LCD has a backlight module, and the bottom layer of the backlight module is opaque, the distance sensor cannot be set under the display screen. Therefore, the distance sensor corresponding to the LCD screen can be set in the narrow slit of the display screen frame, or it can be set on the frame of the electronic device outside the display screen. In other words, the distance sensor is set outside the display area of the display screen, so it will not interfere with the image display of the display screen.
因此,可以提前将任何时刻作为预设启动时刻,距离传感器在预设启动时刻启动进行检测即可。例如,可以设定在确定液晶显示屏为目标屏时,立即启动对应的距离传感器,并持续进行检测,直至目标屏切换为其他显示屏。又如,设定在液晶显示屏显示的过程中,每个刷新周期开始的时刻,即显示屏接收到帧同步信号的时刻,启动距离传感器进行检测。Therefore, any time can be set as the preset start time in advance, and the distance sensor can be started for detection at the preset start time. For example, it can be set that when the LCD screen is determined to be the target screen, the corresponding distance sensor is immediately started, and the detection is continued until the target screen is switched to another screen. For another example, it is set that during the display of the LCD screen, the distance sensor is started for detection at the beginning of each refresh cycle, that is, when the screen receives the frame synchronization signal.
在实际应用中,可以根据实际需求进行设定,这里不做限制。In practical applications, it can be set according to actual needs and there is no restriction here.
在一些实施例中,该方法还包括:In some embodiments, the method further comprises:
根据目标屏的刷新周期,确定距离检测的持续时长;Determine the duration of distance detection based on the refresh cycle of the target screen;
根据持续时长,和距离传感器的脉冲发射频率,确定脉冲个数;Determine the number of pulses according to the duration and the pulse emission frequency of the distance sensor;
上述通过启动的距离传感器,进行检测对象相对于电子设备的距离检测,包括:The above-mentioned distance detection of the detection object relative to the electronic device by the activated distance sensor includes:
通过启动距离传感器,发射脉冲个数的检测脉冲;By starting the distance sensor, a detection pulse of the number of pulses is emitted;
根据接收到的检测脉冲反射得到的反射脉冲,确定检测对象与电子设备的距离。The distance between the detection object and the electronic device is determined according to the reflected pulse obtained by reflecting the received detection pulse.
对于OLED显示屏,可以根据刷新周期来确定距离传感器进行距离检测的持续时长。距离检测需要在显示屏的像素单元熄灭的状态下,因此,可以根据刷新周期,计算出检测的持续时长。For OLED displays, the duration of the distance sensor's distance detection can be determined based on the refresh cycle. Distance detection needs to be performed when the pixel units of the display are off, so the duration of the detection can be calculated based on the refresh cycle.
对于上述实施例中,采用确定延迟时长的方式,在像素单元清空数据的显示时隙进行检测,则可以根据显示屏的刷新周期,计算每一行像素单元占用的显示以及显示时隙的时长,进而确定距离传感器可以进行检测的时长。而对于上述实施例中,采用插入检测帧的方式,使距离传感器在检测帧的整个刷新周期内可进行检测,因此,可以将整个刷新周期的时长,确定为检测的持续时长。In the above embodiment, by determining the delay time, the detection is performed in the display time slot when the pixel unit clears the data. Then, the display occupied by each row of pixel units and the display time slot duration can be calculated according to the refresh cycle of the display screen, and then the detection time duration of the distance sensor can be determined. In the above embodiment, by inserting the detection frame, the distance sensor can perform detection in the entire refresh cycle of the detection frame. Therefore, the duration of the entire refresh cycle can be determined as the duration of the detection.
在距离检测的持续时长内,距离传感器可以按照预定的频率发射用于检测的红外信号脉冲,同时接收反射的红外信号脉冲。基于持续时长,以及距离传感器固定的脉冲发射频率,可以确定在持续时长内可发射的脉冲个数。在距离传感器启动后,发射脉冲个数的检测脉冲然后停止发射脉冲,从而不会影响到后续像素单元的继续显示。During the duration of the distance detection, the distance sensor can emit infrared signal pulses for detection at a predetermined frequency and receive reflected infrared signal pulses at the same time. Based on the duration and the fixed pulse emission frequency of the distance sensor, the number of pulses that can be emitted during the duration can be determined. After the distance sensor is started, it emits detection pulses of the number of pulses and then stops emitting pulses, so as not to affect the continued display of subsequent pixel units.
在一些实施例中,电子设备的至少一个显示屏为可弯折的柔性屏;柔性屏位于电子设备的至少两个可相对活动的部分;In some embodiments, at least one display screen of the electronic device is a bendable flexible screen; the flexible screen is located in at least two relatively movable parts of the electronic device;
该方法还包括:The method further includes:
根据至少两个可相对活动的部分的相对位置,确定电子设备的设备姿态。The device posture of the electronic device is determined according to the relative positions of at least two relatively movable parts.
具有可折叠屏的电子设备可以具有至少两个可以相对活动的部分,并分别承载一侧的显示屏,连接处可折叠。因此,具有可折叠屏幕的电子设备可具有不同的使用姿态,例如,展开可折叠屏幕,使得电子设备的两个部分呈180度的状态;合上屏幕,使得电子设备的两个部分重叠;以及打开可折叠屏幕至一定的角度等等。An electronic device with a foldable screen may have at least two parts that can move relative to each other, each carrying a display screen on one side, and the connection is foldable. Therefore, an electronic device with a foldable screen can have different usage postures, for example, unfolding the foldable screen so that the two parts of the electronic device are in a 180-degree state; closing the screen so that the two parts of the electronic device overlap; and opening the foldable screen to a certain angle, etc.
电子设备除了上述柔性屏以外,还可具有其他显示屏,位于电子设备的其他表面。在不同的设备姿态下,可以使用不同的显示屏进行显示与交互。例如,在电子设备为折叠状态时,可折叠屏的表面被折叠在电子设备内部而不显露出来,因此,此时可以使用电子设备另一面的副显示屏。该副显示屏可以是柔性屏,也可以是硬性显示屏。In addition to the above-mentioned flexible screen, the electronic device may also have other display screens located on other surfaces of the electronic device. Different display screens can be used for display and interaction in different device postures. For example, when the electronic device is in a folded state, the surface of the foldable screen is folded inside the electronic device and is not exposed, so the secondary display screen on the other side of the electronic device can be used at this time. The secondary display screen can be a flexible screen or a rigid display screen.
可以利用电子设备中的磁性或电性传感器确定电子设备的设备姿态,例如,在电子设备的两个可相对活动的部分中分别设置有陀螺仪以及重力传感器,这样,可以感应两个部分分别与地面之间的角度关系。通过两组传感器的数据,就可以计算两个部分的相对位置关系,进而确定电子设备的设备姿态。The device attitude of the electronic device can be determined by using magnetic or electrical sensors in the electronic device. For example, a gyroscope and a gravity sensor are respectively provided in two relatively movable parts of the electronic device, so that the angle relationship between the two parts and the ground can be sensed. The relative position relationship between the two parts can be calculated through the data of the two sets of sensors, and then the device attitude of the electronic device can be determined.
在一些实施例中,上述启动与目标屏朝向相同的距离传感器,包括:In some embodiments, the above-mentioned starting the distance sensor with the same direction as the target screen includes:
在电子设备处于通话状态下,启动与目标屏朝向相同的距离传感器。When the electronic device is in a call state, a distance sensor facing the same direction as the target screen is activated.
由于在电子设备的使用过程中,通常用户的脸部与显示屏具有一定的距离,用户面对显示屏并观看显示内容。然而,在用户使用电子设备进行通话时,则会将电子设备放置于耳边,此时,显示屏可能会接触到面部皮肤,从而更易造成误触。这里,通话状态包括但不限于:电话语音通话和即时通信软件等的网络语音通话。During the use of electronic devices, the user's face is usually at a certain distance from the display screen, and the user faces the display screen and views the displayed content. However, when the user uses the electronic device to make a call, the electronic device is placed next to the ear, and the display screen may contact the facial skin, making it easier to cause accidental touches. Here, the call status includes but is not limited to: telephone voice calls and network voice calls such as instant messaging software.
因此,在本公开实施例中,可以在电子设备处于通话状态下,采用上述实施例中的方法确定目标屏,并启动目标屏对应的距离传感器。而在非通话状态下,则不需要进行检测,节省了功耗同时,进一步减少了检测对显示画面带来的影响,提升用户的使用体验。Therefore, in the disclosed embodiment, when the electronic device is in a call state, the method in the above embodiment can be used to determine the target screen and start the distance sensor corresponding to the target screen. In the non-call state, no detection is required, which saves power consumption and further reduces the impact of detection on the display screen, thereby improving the user experience.
本公开实施例还提供以下示例:The present disclosure also provides the following examples:
具有折叠屏的手机等电子设备通常还具有设置于折叠屏背面的副屏。在折叠屏的屏下设置有距离传感器,在副屏的显示屏以外的额头处也设置有距离传感器。不同的距离传感器具有不同的通信地址,可以通过同一通信电路或者不同通信电路与电子设备的处理器(AP)连接,同时与在同一表面的显示屏相连接。如图4所示,显示屏41、距离传感器42与处理器43分别连接,这样,处理器就能够根据显示屏的显示状态对应控制距离传感器启动并进行检测。Electronic devices such as mobile phones with folding screens usually also have a secondary screen arranged on the back of the folding screen. A distance sensor is arranged under the folding screen, and a distance sensor is also arranged at the forehead outside the display screen of the secondary screen. Different distance sensors have different communication addresses, and can be connected to the processor (AP) of the electronic device through the same communication circuit or different communication circuits, and connected to the display screen on the same surface at the same time. As shown in Figure 4, the display screen 41, the distance sensor 42 and the processor 43 are respectively connected, so that the processor can control the distance sensor to start and detect according to the display status of the display screen.
根据电学或磁学传感器,例如,陀螺仪、重力传感器以及霍尔传感器等可以确定电子设备的不同设备姿态。根据设备姿态可确定正处于交互状态的目标屏,进而可以调用目标屏对应的距离传感器进行距离检测。这些传感器检测得到的设备姿态信息传递给处理器后,处理器确定用于交互的目标屏并进行显示。同时,确定与显示屏对应的距离传感器启动并进行检测。Different device postures of electronic devices can be determined based on electrical or magnetic sensors, such as gyroscopes, gravity sensors, and Hall sensors. The target screen in the interactive state can be determined based on the device posture, and then the distance sensor corresponding to the target screen can be called to detect the distance. After the device posture information detected by these sensors is transmitted to the processor, the processor determines the target screen for interaction and displays it. At the same time, the distance sensor corresponding to the display screen is determined to be started and detected.
如果启动的距离传感器位于显示屏下,在显示过程中会对显示屏的像素单元激发产生亮斑,因此,在显示的过程中在每一帧的帧同步信号开始计时延迟到距离传感器所在位置的像素单元进行数据清空的时段,启动距离传感器并进行检测,从而减少亮斑的产生。If the activated distance sensor is located under the display screen, the pixel units of the display screen will be stimulated to produce bright spots during the display process. Therefore, during the display process, the frame synchronization signal of each frame is delayed to the time period when the pixel unit where the distance sensor is located clears data, and the distance sensor is activated and detected, thereby reducing the generation of bright spots.
在收到帧同步信号的时刻t0开始,延迟t2时长,然后根据距离传感器发射检测脉冲的发射频率f,确定单个脉冲的时间t1,然后根据像素的清空时间t,就可确定发送脉冲的数量n=t/t1个脉冲。Starting from the moment t0 when the frame synchronization signal is received, the delay is t2, and then the time t1 of a single pulse is determined according to the emission frequency f of the detection pulse emitted by the distance sensor. Then, according to the clearing time t of the pixel, the number of pulses sent n=t/t1 pulses can be determined.
当电子设备的姿态传感器检测得到电子设备为折叠状态时,关闭折叠屏对应的距离传感器,并启动副显示屏的显示,同时启动副显示屏对应的距离传感器。而当姿态传感器检测得到电子设备的为展开状态,例如,折叠屏的展开角度大于120度等情况,则认为是展开状态,此时,关闭副显示屏的显示同时关闭副显示屏对应的距离传感器,并启动折叠屏对应的距离传感器。When the posture sensor of the electronic device detects that the electronic device is in a folded state, the distance sensor corresponding to the folding screen is turned off, the display of the secondary display screen is activated, and the distance sensor corresponding to the secondary display screen is activated. When the posture sensor detects that the electronic device is in an unfolded state, for example, the unfolding angle of the folding screen is greater than 120 degrees, it is considered to be in an unfolded state. At this time, the display of the secondary display screen is turned off, the distance sensor corresponding to the secondary display screen is turned off, and the distance sensor corresponding to the folding screen is activated.
由于不同的显示屏对应的距离传感器的设置位置不同,并且显示屏自身的分辨率以及刷新率不同,那么对应上述延迟时长也不同,发送的脉冲数量n也不同。因此,根据不同的设备姿态调用不同的距离传感器时,可根据不同的距离传感器的不同检测时间进行检测。Since the distance sensors corresponding to different display screens are set at different locations, and the resolution and refresh rate of the display screens themselves are different, the corresponding delay time is also different, and the number of pulses n sent is also different. Therefore, when different distance sensors are called according to different device postures, detection can be performed according to the different detection times of different distance sensors.
除上述延迟的方法之外,还可以通过插入空白的黑帧的方式,来供距离传感器进行检测。例如,在显示屏的刷新率较高,如240Hz的刷新率下,可以在每秒中插入几帧空白黑帧。距离传感器则可以在显示黑帧的这段时间内进行检测。In addition to the above delay method, blank black frames can also be inserted for the distance sensor to detect. For example, when the refresh rate of the display screen is high, such as 240Hz, several blank black frames can be inserted per second. The distance sensor can detect during the time when the black frames are displayed.
如果副显示屏为液晶显示屏,那么距离传感器可以设置在显示屏的显示区域以外,从而不需要考虑亮斑的问题,可以在任意时刻进行检测。If the secondary display screen is a liquid crystal display screen, the distance sensor can be arranged outside the display area of the display screen, so that there is no need to consider the problem of bright spots and detection can be performed at any time.
上述距离传感器可以在电话通话或者采用微信、qq等网络通信的应用程序进行网络通话的过程中进行检测。The distance sensor can be used for detection during a telephone call or an Internet call using an Internet communication application such as WeChat or QQ.
通过本公开实施例中的方法,在电子设备处于各种不同的设备姿态下,可以调用合适的距离传感器。并且,根据距离传感器与显示屏的相对位置关系,还设定了距离传感器的开启时间,从而可以在显示屏正常显示画面的同时,可以准确检测是否存在接近显示屏的物体,从而便于在有接近的物体时,关闭显示屏,减少误触的发生。Through the method in the embodiment of the present disclosure, when the electronic device is in various device postures, a suitable distance sensor can be called. In addition, according to the relative position relationship between the distance sensor and the display screen, the start time of the distance sensor is also set, so that when the display screen displays the picture normally, it can accurately detect whether there is an object approaching the display screen, so that when there is an approaching object, the display screen can be turned off to reduce the occurrence of false touches.
图5是根据一示例性实施例示出的一种距离检测装置的框图。参照图5,该装置应用于具有多个显示屏的电子设备,包括:Fig. 5 is a block diagram of a distance detection device according to an exemplary embodiment. Referring to Fig. 5, the device is applied to an electronic device with multiple display screens, including:
检测模块510,用于检测所述电子设备的设备姿态;A detection module 510, configured to detect the device posture of the electronic device;
第一确定模块520,用于根据所述设备姿态,从多个所述显示屏中确定出处于交互状态的目标屏;A first determining module 520, configured to determine a target screen in an interactive state from the plurality of display screens according to the device posture;
启动模块530,用于启动与所述目标屏朝向相同的距离传感器;A starting module 530, used to start a distance sensor facing the same direction as the target screen;
检测模块540,用于通过启动的所述距离传感器,进行检测对象相对于所述电子设备的距离检测。The detection module 540 is used to detect the distance between the detection object and the electronic device by starting the distance sensor.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further comprises:
第二确定模块,用于确定所述目标屏的类型;A second determining module, used to determine the type of the target screen;
第三确定模块,用于根据所述目标屏的类型,和所述距离传感器与所述目标屏之间的相对位置,确定启动所述距离传感器的启动时刻;A third determining module, used to determine a start time of starting the distance sensor according to the type of the target screen and the relative position between the distance sensor and the target screen;
所述启动模块,具体用于:The startup module is specifically used for:
在所述启动时刻,启动所述距离传感器。At the start-up time, the distance sensor is started.
在一些实施例中,所述第三确定模块,包括:In some embodiments, the third determination module includes:
第一确定子模块,如果所述目标屏为OLED屏,则用于根据所述距离传感器在所述目标屏下的位置,确定所述距离传感器相对于所述OLED显示屏刷新起始时刻的延迟时长;The first determination submodule is used to determine the delay time of the distance sensor relative to the refresh start time of the OLED display screen according to the position of the distance sensor under the target screen if the target screen is an OLED screen;
第二确定子模块,用于根据所述目标屏的刷新起始时刻和所述延迟时长,确定所述启动时刻。The second determination submodule is used to determine the start time according to the refresh start time of the target screen and the delay time.
在一些实施例中,所述第三确定模块,包括:In some embodiments, the third determination module includes:
第三确定子模块,如果所述目标屏为OLED屏,则用于在所述目标屏的每段预设时长内显示至少一个检测帧;其中,在显示所述检测帧时,所述距离传感器所在位置对应的所述目标屏的像素单元熄灭;The third determination submodule is used to display at least one detection frame within each preset time period of the target screen if the target screen is an OLED screen; wherein, when the detection frame is displayed, the pixel unit of the target screen corresponding to the position of the distance sensor is turned off;
第四确定子模块,用于根据所述检测帧开始显示的时刻,确定启动时刻。The fourth determination submodule is used to determine the start time according to the time when the detection frame starts to be displayed.
在一些实施例中,所述第三确定模块,包括:In some embodiments, the third determination module includes:
第五确定子模块,如果所述目标屏为液晶显示屏,且所述距离传感器位于所述目标屏的显示区域以外,则用于将预设启动时刻,确定为所述启动时刻。The fifth determining submodule is configured to determine a preset start-up time as the start-up time if the target screen is a liquid crystal display screen and the distance sensor is located outside the display area of the target screen.
在一些实施例中,所述装置还包括:In some embodiments, the apparatus further comprises:
第四确定模块,用于根据所述目标屏的刷新周期,确定所述距离检测的持续时长;A fourth determination module, used to determine the duration of the distance detection according to the refresh cycle of the target screen;
第五确定模块,用于根据所述持续时长,和所述距离传感器的脉冲发射频率,确定脉冲个数;A fifth determination module, used to determine the number of pulses according to the duration and the pulse transmission frequency of the distance sensor;
所述检测模块,包括:The detection module comprises:
发射子模块,用于通过启动所述距离传感器,发射所述脉冲个数的检测脉冲;A transmitting submodule, used for transmitting detection pulses of the number of pulses by starting the distance sensor;
第六确定子模块,用于根据接收到的所述检测脉冲反射得到的反射脉冲,确定所述检测对象与所述电子设备的距离。The sixth determination submodule is used to determine the distance between the detection object and the electronic device according to the reflected pulse obtained by reflecting the received detection pulse.
在一些实施例中,所述电子设备的至少一个显示屏为可弯折的柔性屏;所述柔性屏位于所述电子设备的至少两个可相对活动的部分;In some embodiments, at least one display screen of the electronic device is a bendable flexible screen; the flexible screen is located in at least two relatively movable parts of the electronic device;
所述装置还包括:The device also includes:
第六确定模块,用于启动根据所述至少两个可相对活动的部分的相对位置,确定所述电子设备的设备姿态。The sixth determination module is used to start determining the device posture of the electronic device according to the relative positions of the at least two relatively movable parts.
在一些实施例中,所述启动模块,具体用于:In some embodiments, the startup module is specifically used to:
在所述电子设备处于通话状态下,启动与所述目标屏朝向相同的距离传感器。When the electronic device is in a call state, a distance sensor facing the same direction as the target screen is activated.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
图6是根据一示例性实施例示出的一种电子设备600的实体结构框图。例如,电子设备600可以是移动电话、计算机、数字广播终端、消息收发设备、游戏控制台、平板设备、医疗设备、健身设备、个人数字助理等。Fig. 6 is a block diagram of a physical structure of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
参照图6,电子设备600可以包括以下一个或多个组件:处理组件601,存储器602,电源组件603,多媒体组件604,音频组件605,输入/输出(I/O)接口606,传感器组件607,以及通信组件608。6 , the electronic device 600 may include one or more of the following components: a processing component 601 , a memory 602 , a power component 603 , a multimedia component 604 , an audio component 605 , an input/output (I/O) interface 606 , a sensor component 607 , and a communication component 608 .
处理组件601通常控制电子设备600的整体操作,诸如与显示、电话呼叫、数据通信、相机操作和记录操作相关联的操作。处理组件601可以包括一个或多个处理器610来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件601还可以包括一个或多个模块,便于处理组件601和其他组件之间的交互。例如,处理组件601可以包括多媒体模块,以方便多媒体组件604和处理组件601之间的交互。The processing component 601 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 601 may include one or more processors 610 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 601 may also include one or more modules to facilitate the interaction between the processing component 601 and other components. For example, the processing component 601 may include a multimedia module to facilitate the interaction between the multimedia component 604 and the processing component 601.
存储器610被配置为存储各种类型的数据以支持在电子设备600的操作。这些数据的示例包括用于在电子设备600上操作的任何应用程序或方法的指令、联系人数据、电话簿数据、消息、图片、视频等。存储器602可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM)、电可擦除可编程只读存储器(EEPROM)、可擦除可编程只读存储器(EPROM)、可编程只读存储器(PROM)、只读存储器(ROM)、磁存储器、快闪存储器、磁盘或光盘。The memory 610 is configured to store various types of data to support operations on the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 602 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.
电源组件603为电子设备600的各种组件提供电力。电源组件603可以包括:电源管理系统,一个或多个电源,及其他与为电子设备600生成、管理和分配电力相关联的组件。The power supply component 603 provides power to various components of the electronic device 600. The power supply component 603 may include: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
多媒体组件604包括在所述电子设备600和用户之间提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件604包括一个前置摄像头和/或后置摄像头。当电子设备600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和/或后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 604 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 604 includes a front camera and/or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and/or the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
音频组件605被配置为输出和/或输入音频信号。例如,音频组件605包括一个麦克风(MIC),当电子设备600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器610或经由通信组件608发送。在一些实施例中,音频组件605还包括一个扬声器,用于输出音频信号。The audio component 605 is configured to output and/or input audio signals. For example, the audio component 605 includes a microphone (MIC), and when the electronic device 600 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 610 or sent via the communication component 608. In some embodiments, the audio component 605 also includes a speaker for outputting audio signals.
I/O接口606为处理组件601和外围接口模块之间提供接口,上述外围接口模块可以是键盘、点击轮、按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。I/O interface 606 provides an interface between processing component 601 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
传感器组件607包括一个或多个传感器,用于为电子设备600提供各个方面的状态评估。例如,传感器组件607可以检测到电子设备600的打开/关闭状态、组件的相对定位,例如所述组件为电子设备600的显示器和小键盘,传感器组件607还可以检测电子设备600或电子设备600的一个组件的位置改变,用户与电子设备600接触的存在或不存在,电子设备600方位或加速/减速和电子设备600的温度变化。传感器组件607可以包括接近传感器,被配置为在没有任何的物理接触时检测附近物体的存在。传感器组件607还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件607还可以包括加速度传感器、陀螺仪传感器、磁传感器、压力传感器或温度传感器。The sensor assembly 607 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 607 can detect the open/closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 607 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration/deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 607 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 607 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 607 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件608被配置为便于电子设备600和其他设备之间有线或无线方式的通信。电子设备600可以接入基于通信标准的无线网络,如WiFi、2G或3G,或它们的组合。在一个示例性实施例中,通信组件608经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件608还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术、红外数据协会(IrDA)技术、超宽带(UWB)技术、蓝牙(BT)技术或其他技术来实现。The communication component 608 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 608 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 608 also 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 or other technologies.
在示例性实施例中,电子设备600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the electronic device 600 may be implemented by 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, microcontrollers, microprocessors, or other electronic components to perform the above methods.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器602,上述指令可由电子设备600的处理器610执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 602 including instructions, and the instructions can be executed by a processor 610 of an electronic device 600 to perform the above method. 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 disk, an optical data storage device, etc.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行上述实施例中提供的任一种方法。A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute any one of the methods provided in the above embodiments.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010453441.2A CN113721825B (en) | 2020-05-26 | 2020-05-26 | Distance detection method and device, electronic device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010453441.2A CN113721825B (en) | 2020-05-26 | 2020-05-26 | Distance detection method and device, electronic device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113721825A CN113721825A (en) | 2021-11-30 |
| CN113721825B true CN113721825B (en) | 2024-09-27 |
Family
ID=78671894
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010453441.2A Active CN113721825B (en) | 2020-05-26 | 2020-05-26 | Distance detection method and device, electronic device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113721825B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118075394B (en) * | 2022-11-23 | 2025-03-14 | 荣耀终端股份有限公司 | Screen display method of terminal device, terminal device, computer-readable storage medium, and computer program product |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109298823A (en) * | 2018-09-18 | 2019-02-01 | Oppo广东移动通信有限公司 | Control method, control device, electronic device and storage medium |
| CN109656317A (en) * | 2017-10-11 | 2019-04-19 | 北京小米移动软件有限公司 | With the equipment apart from inducing function and apart from inducing method |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106850989B (en) * | 2017-02-08 | 2019-08-06 | Oppo广东移动通信有限公司 | Display state control method and device |
| CN107172266A (en) * | 2017-04-28 | 2017-09-15 | 广东欧珀移动通信有限公司 | Fingerprint identification control method and related products |
| CN110989852B (en) * | 2019-10-15 | 2021-11-05 | 荣耀终端有限公司 | A touch screen, electronic device, and display control method |
| CN110851067A (en) * | 2019-10-29 | 2020-02-28 | 华为技术有限公司 | Screen display mode switching method, device and electronic device |
| CN110989860B (en) * | 2019-11-26 | 2021-10-01 | 华为技术有限公司 | Electronic equipment and display control method thereof |
-
2020
- 2020-05-26 CN CN202010453441.2A patent/CN113721825B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109656317A (en) * | 2017-10-11 | 2019-04-19 | 北京小米移动软件有限公司 | With the equipment apart from inducing function and apart from inducing method |
| CN109298823A (en) * | 2018-09-18 | 2019-02-01 | Oppo广东移动通信有限公司 | Control method, control device, electronic device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113721825A (en) | 2021-11-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112333335B (en) | Ambient light and proximity detection method, shooting method, terminal and computer storage medium | |
| EP3537709B1 (en) | Electronic device photographing method and apparatus | |
| US11322079B2 (en) | Display control method and apparatus, driving module and electronic device | |
| US11538872B2 (en) | Display structure, display panel using the same and display device using the same | |
| CN115798365A (en) | Display panel, photoelectric detection method, photoelectric detection device and computer-readable storage medium | |
| EP3159876A1 (en) | Method and apparatus for displaying content | |
| JP2011107832A (en) | Sensor device, method for driving sensor element, display device with input function and electronic equipment | |
| CN112242119A (en) | Terminal, control method and device for displaying parameters, and storage medium | |
| WO2020056882A1 (en) | Organic light emitting diode display screen, display control method, and electronic device | |
| WO2021185115A1 (en) | Exposure data acquisition method and electronic device | |
| CN111754929B (en) | Ambient light parameter collection method, device and storage medium | |
| JP6602880B2 (en) | Content display method and apparatus | |
| CN113721825B (en) | Distance detection method and device, electronic device and storage medium | |
| WO2017067064A1 (en) | Method and device for content display | |
| CN107644620B (en) | Control method of display panel, display device and storage medium | |
| CN109192135B (en) | Ambient light brightness determination device and method | |
| CN109148473B (en) | Array substrate and mobile terminal | |
| CN115798394A (en) | Brightness adjusting method, device and storage medium | |
| US9947278B2 (en) | Display method and device and computer-readable medium | |
| CN117409725A (en) | Method, device, medium and equipment for controlling regional backlight | |
| CN113777621B (en) | Electronic device, relative position relation detection method, relative position relation detection device and storage medium | |
| CN112992060B (en) | Display method and device of display screen of electronic equipment and electronic equipment | |
| CN112669741B (en) | Light emission control method and device and electronic equipment | |
| WO2023220890A1 (en) | Display driver circuit, display driving method, display device, and storage medium | |
| CN111739466B (en) | Light emitting control method of active optical device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |