CN108874128A - Proximity detection method and apparatus, electronic apparatus, storage medium, and device - Google Patents
Proximity detection method and apparatus, electronic apparatus, storage medium, and device Download PDFInfo
- Publication number
- CN108874128A CN108874128A CN201810554883.9A CN201810554883A CN108874128A CN 108874128 A CN108874128 A CN 108874128A CN 201810554883 A CN201810554883 A CN 201810554883A CN 108874128 A CN108874128 A CN 108874128A
- Authority
- CN
- China
- Prior art keywords
- electronic device
- intensity value
- infrared light
- ambient light
- detection method
- 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.)
- Granted
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/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measurement Of Optical Distance (AREA)
Abstract
Description
技术领域technical field
本发明涉及电子技术领域,特别涉及一种接近检测方法、接近检测装置、电子装置、计算机可读存储介质和计算机设备。The invention relates to the field of electronic technology, in particular to a proximity detection method, a proximity detection device, an electronic device, a computer-readable storage medium and computer equipment.
背景技术Background technique
接近传感器利用发射的红外光检测物体与移动终端的距离从而判断物体与移动终端的远离或靠近。在某些使用场景中,接近传感器将受到阳光中的红外线的干扰而导致判断出现误差。The proximity sensor uses emitted infrared light to detect the distance between the object and the mobile terminal to determine whether the object is far away from or close to the mobile terminal. In some usage scenarios, the proximity sensor will be interfered by the infrared rays in the sunlight, resulting in errors in judgment.
发明内容Contents of the invention
为解决上述技术问题,本发明提供了一种控制方法、接近检测装置、电子装置、计算机可读存储介质和计算机设备。In order to solve the above technical problems, the present invention provides a control method, a proximity detection device, an electronic device, a computer-readable storage medium and computer equipment.
本发明提供了一种接近检测方法,用于电子装置,其特征在于,所述电子装置包括接近传感器,所述接近传感器用于发射红外光并接收物体反射的红外光,所述控制方法包括步骤:The present invention provides a proximity detection method for an electronic device, characterized in that the electronic device includes a proximity sensor, the proximity sensor is used to emit infrared light and receive infrared light reflected by an object, and the control method includes the steps :
获取当前环境光中的红外光的第一强度值;Obtain the first intensity value of infrared light in the current ambient light;
获取所述接近传感器接收到的红外光的第二强度值;和obtaining a second intensity value of the infrared light received by the proximity sensor; and
根据所述第一强度值和所述第二强度值检测所述物体至所述电子装置的距离以判断所述物体是否接近或远离所述电子装置。Detecting the distance from the object to the electronic device according to the first intensity value and the second intensity value to determine whether the object is approaching or moving away from the electronic device.
在某些实施方式中,所述接近检测方法包括步骤:In some embodiments, the approach detection method includes the steps of:
检测当前环境光的亮度值;和detect the brightness value of the current ambient light; and
在所述亮度值大于或等于亮度预定阈值时,获取当前环境光中的红外光的所述第一强度值。When the brightness value is greater than or equal to a predetermined brightness threshold, the first intensity value of infrared light in the current ambient light is acquired.
在某些实施方式中,所述接近检测方法包括步骤:In some embodiments, the approach detection method includes the steps of:
若所述亮度值小于所述亮度预定阈值,根据所述第二强度值检测所述物体至所述电子装置的距离以判断所述物体是否接近或远离所述电子装置。If the brightness value is smaller than the preset brightness threshold, the distance between the object and the electronic device is detected according to the second intensity value to determine whether the object is approaching or moving away from the electronic device.
在某些实施方式中,所述检测当前环境光的亮度值的步骤包括:In some embodiments, the step of detecting the brightness value of the current ambient light includes:
获取当前环境的多帧图像;和Get a multi-frame image of the current environment; and
根据所述多帧图像计算当前环境的所述亮度值。The brightness value of the current environment is calculated according to the multiple frames of images.
在某些实施方式中,所述在所述亮度值大于或等于亮度预定阈值时获取当前环境光中的红外光的所述第一强度值的步骤包括:In some implementations, the step of acquiring the first intensity value of infrared light in the current ambient light when the brightness value is greater than or equal to a predetermined brightness threshold includes:
检测所述电子装置的倾斜角度;和detecting a tilt angle of the electronic device; and
在所述倾斜角度小于角度预定阈值时,获取当前环境光中的红外光的所述第一强度值。When the tilt angle is smaller than the predetermined angle threshold, the first intensity value of the infrared light in the current ambient light is acquired.
在某些实施方式中,所述接近检测方法包括步骤:In some embodiments, the approach detection method includes the steps of:
若所述倾斜角度大于或等于角度预定阈值,根据所述第二强度值检测所述物体至所述电子装置的距离以判断所述物体是否接近或远离所述电子装置。If the tilt angle is greater than or equal to a predetermined angle threshold, the distance from the object to the electronic device is detected according to the second intensity value to determine whether the object is approaching or moving away from the electronic device.
本发明提供了一种接近检测装置,用于电子装置,其特征在于,所述电子装置包括接近传感器,所述接近传感器用于发射红外光并接收物体反射的红外光,所述接近检测装置包括:The present invention provides a proximity detection device for use in electronic devices, wherein the electronic device includes a proximity sensor for emitting infrared light and receiving infrared light reflected by an object, and the proximity detection device includes :
获取模块,所述获取模块用于获取当前环境光中的红外光的第一强度值;An acquisition module, the acquisition module is used to acquire the first intensity value of the infrared light in the current ambient light;
所述获取模块还用于获取所述接近传感器接收到的红外光的第二强度值;和The obtaining module is also used to obtain a second intensity value of the infrared light received by the proximity sensor; and
判断模块,所述判断模块用于根据所述第一强度值和所述第二强度值检测所述物体至所述电子装置的距离以判断所述物体是否接近或远离所述电子装置。A judging module, the judging module is configured to detect the distance from the object to the electronic device according to the first intensity value and the second intensity value to judge whether the object is approaching or moving away from the electronic device.
本发明提供了一种电子装置,其特征在于,所述电子装置包括:The present invention provides an electronic device, characterized in that the electronic device includes:
环境光传感器,用于获取环境光中的红外光;Ambient light sensor for acquiring infrared light in ambient light;
接近传感器,用于发射红外光并接收物体反射的红外光;和Proximity sensors that emit infrared light and receive infrared light reflected from objects; and
处理器,用于:Processor for:
获取当前环境光中的红外光的第一强度值;Obtain the first intensity value of infrared light in the current ambient light;
获取所述接近传感器接收到的红外光的第二强度值;和obtaining a second intensity value of the infrared light received by the proximity sensor; and
根据所述第一强度值和所述第二强度值检测所述物体至所述电子装置的距离以判断所述物体是否接近或远离所述电子装置。Detecting the distance from the object to the electronic device according to the first intensity value and the second intensity value to determine whether the object is approaching or moving away from the electronic device.
在某些实施方式中,所述环境光传感器用于检测当前环境光的亮度值,所述处理器用于在所述亮度值大于或等于亮度预定阈值时,获取当前环境光中的红外光的所述第一强度值。In some implementations, the ambient light sensor is used to detect the brightness value of the current ambient light, and the processor is configured to acquire all the infrared light in the current ambient light when the brightness value is greater than or equal to a predetermined brightness threshold. the first intensity value.
在某些实施方式中,所述处理器还用于在所述亮度值小于所述亮度预定阈值时,根据所述第二强度值检测所述物体至所述电子装置的距离以判断所述物体是否接近或远离所述电子装置。In some implementations, the processor is further configured to detect the distance from the object to the electronic device according to the second intensity value to judge the object when the brightness value is less than the predetermined brightness threshold. Whether approaching or moving away from the electronic device.
在某些实施方式中,所述电子装置包括摄像头,所述摄像头用于获取当前环境的多帧图像,所述处理器用于根据所述多帧图像计算当前环境的所述亮度值。In some implementations, the electronic device includes a camera, the camera is configured to acquire multiple frames of images of the current environment, and the processor is configured to calculate the brightness value of the current environment according to the multiple frames of images.
在某些实施方式中,所述电子装置包括加速度传感器,所述加速度传感器用于检测所述电子装置的倾斜角度,所述处理器用于在所述倾斜角度小于角度预定阈值时,获取当前环境光中的红外光的所述第一强度值。In some implementations, the electronic device includes an acceleration sensor, the acceleration sensor is used to detect the tilt angle of the electronic device, and the processor is used to obtain the current ambient light when the tilt angle is smaller than a predetermined angle threshold The first intensity value of the infrared light.
在某些实施方式中,所述处理器用于在所述倾斜角度大于或等于角度预定阈值时,根据所述第二强度值检测所述物体至所述电子装置的距离以判断所述物体是否接近或远离所述电子装置。In some implementations, the processor is configured to detect the distance from the object to the electronic device according to the second intensity value to determine whether the object is approaching when the tilt angle is greater than or equal to a predetermined angle threshold. or away from the electronic device.
本发明提供了一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行所述接近检测方法。The present invention provides one or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the approaching Detection method.
本发明提供了一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行所述接近检测方法。The present invention provides a computer device, including a memory and a processor, wherein computer-readable instructions are stored in the memory, and when the instructions are executed by the processor, the processor is made to execute the approach detection method.
本发明实施方式的接近检测方法、接近检测装置、电子装置、计算机可读存储介质和计算机设备,通过检测接近传感器接收到红外光的强度和环境光中红外光的强度来判断物体与电子装置的距离,能够减小环境光对接近传感器的检测造成的干扰。The proximity detection method, proximity detection device, electronic device, computer-readable storage medium, and computer equipment in the embodiments of the present invention judge the proximity between an object and an electronic device by detecting the intensity of infrared light received by the proximity sensor and the intensity of infrared light in ambient light. The distance can reduce the interference caused by ambient light to the detection of the proximity sensor.
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明的上述和/或附加的方面和优点从结合下面附图对实施方式的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and comprehensible from the description of the embodiments in conjunction with the following drawings, wherein:
图1是本发明实施方式的电子装置的模块示意图;FIG. 1 is a block diagram of an electronic device according to an embodiment of the present invention;
图2是本发明实施方式的接近检测方法的流程示意图;2 is a schematic flow diagram of a proximity detection method according to an embodiment of the present invention;
图3是本发明实施方式的接近检测装置的模块示意图;3 is a block diagram of a proximity detection device according to an embodiment of the present invention;
图4是本发明实施方式的计算机设备的模块示意图;4 is a block diagram of a computer device according to an embodiment of the present invention;
图5是本发明实施方式的电子装置的应用场景示意图;5 is a schematic diagram of an application scenario of an electronic device according to an embodiment of the present invention;
图6是本发明实施方式的电子装置的另一应用场景示意图;FIG. 6 is a schematic diagram of another application scenario of the electronic device according to the embodiment of the present invention;
图7是本发明实施方式的电子装置的另一应用场景示意图;7 is a schematic diagram of another application scenario of the electronic device according to the embodiment of the present invention;
图8是本发明实施方式的电子装置的另一应用场景示意图;FIG. 8 is a schematic diagram of another application scenario of the electronic device according to the embodiment of the present invention;
图9是本发明实施方式的接近检测方法的另一流程示意图;FIG. 9 is another schematic flowchart of the approach detection method according to the embodiment of the present invention;
图10是本发明实施方式的电子装置的另一应用场景示意图;FIG. 10 is a schematic diagram of another application scenario of the electronic device according to the embodiment of the present invention;
图11是本发明实施方式的接近检测方法的又一流程示意图;Fig. 11 is another schematic flowchart of the approach detection method according to the embodiment of the present invention;
图12是本发明实施方式的接近检测方法的再一流程示意图;Fig. 12 is another schematic flowchart of the proximity detection method according to the embodiment of the present invention;
图13是本发明实施方式的电子装置的另一应用场景示意图;FIG. 13 is a schematic diagram of another application scenario of the electronic device according to the embodiment of the present invention;
图14是本发明实施方式的电子装置又一应用场景示意图;和FIG. 14 is a schematic diagram of another application scenario of an electronic device according to an embodiment of the present invention; and
图15是本发明实施方式的电子装置的再一应用场景示意图。FIG. 15 is a schematic diagram of yet another application scenario of the electronic device according to the embodiment of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施方式,所述实施方式的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施方式是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.
下面结合图1至图15详细描述本发明实施方式的接近检测方法、接近检测装置200、电子装置100、计算机可读存储介质和计算机设备300。The approach detection method, the approach detection device 200 , the electronic device 100 , the computer-readable storage medium and the computer device 300 according to the embodiments of the present invention will be described in detail below with reference to FIGS. 1 to 15 .
请参阅图1至图4,本发明实施方式提供了一种用于电子装置100的接近检测方法。电子装置100包括环境光传感器161和接近传感器162,环境光传感器161用于获取环境光中的红外光,接近传感器162用于发射红外光并接收物体反射的红外光。接近检测方法包括步骤:Referring to FIG. 1 to FIG. 4 , an embodiment of the present invention provides a method for approach detection of an electronic device 100 . The electronic device 100 includes an ambient light sensor 161 and a proximity sensor 162. The ambient light sensor 161 is used to obtain infrared light in ambient light, and the proximity sensor 162 is used to emit infrared light and receive infrared light reflected by objects. The proximity detection method includes the steps of:
S10,获取当前环境光中的红外光的第一强度值。S10. Acquire a first intensity value of infrared light in the current ambient light.
S20,获取接近传感器接收到的红外光的第二强度值。和S20. Acquire a second intensity value of the infrared light received by the proximity sensor. and
S30,根据第一强度值和第二强度值检测物体至电子装置的距离以判断物体是否接近或远离电子装置。S30. Detect the distance from the object to the electronic device according to the first intensity value and the second intensity value to determine whether the object is approaching or moving away from the electronic device.
本发明实施方式还提供了一种用于电子装置100的接近检测装置200。本发明实施方式的接近检测方法可以由本发明实施方式的接近检测装置200实现。接近检测装置200包括获取模块21和判断模块22,步骤S10和步骤S20可以由获取模块21实现,步骤S30可以由判断模块22实现。即获取模块21可用于获取当前环境光中的红外光的第一强度值和获取接近传感器162接收到的红外光的第二强度值。判断模块22可用于根据第一强度值和第二强度值检测物体至电子装置100的距离以判断物体是否接近或远离电子装置100。The embodiment of the present invention also provides a proximity detection device 200 for the electronic device 100 . The approach detection method in the embodiment of the present invention can be implemented by the approach detection device 200 in the embodiment of the present invention. The approach detection device 200 includes an acquiring module 21 and a judging module 22 , step S10 and step S20 can be realized by the acquiring module 21 , and step S30 can be realized by the judging module 22 . That is, the acquiring module 21 can be used to acquire the first intensity value of the infrared light in the current ambient light and acquire the second intensity value of the infrared light received by the proximity sensor 162 . The judging module 22 can be used to detect the distance from the object to the electronic device 100 according to the first intensity value and the second intensity value to judge whether the object is approaching or moving away from the electronic device 100 .
本发明实施方式还提供了一种电子装置100。电子装置100包括环境光传感器161、接近传感器162和处理器24。步骤S10、步骤S20和步骤S30可以由处理器24实现。也即是说,处理器24可用于获取环境光传感器161接收当前环境光中的红外光的第一强度值和获取接近传感器162接收到的红外光的第二强度值,并根据第一强度值和第二强度值检测物体至电子装置100的距离以判断物体是否接近或远离电子装置100。The embodiment of the present invention also provides an electronic device 100 . The electronic device 100 includes an ambient light sensor 161 , a proximity sensor 162 and a processor 24 . Step S10 , step S20 and step S30 may be implemented by the processor 24 . That is to say, the processor 24 can be used to obtain the first intensity value of the infrared light received by the ambient light sensor 161 in the current ambient light and the second intensity value of the infrared light received by the proximity sensor 162, and according to the first intensity value and the second intensity value to detect the distance from the object to the electronic device 100 to determine whether the object is approaching or moving away from the electronic device 100 .
本发明实施方式还提供了一种计算机设备300。在本发明的实施例中,接近检测装置200可以运用到计算机设备300中。计算机设备300可以是手机、平板电脑、笔记本电脑、智能手环、智能手表、智能头盔、智能眼镜、游戏机等,本发明实施方式的电子装置100也可以是计算机设备300中的一种。The embodiment of the present invention also provides a computer device 300 . In the embodiment of the present invention, the approach detection device 200 can be applied to the computer device 300 . The computer device 300 may be a mobile phone, a tablet computer, a notebook computer, a smart bracelet, a smart watch, a smart helmet, smart glasses, a game console, etc., and the electronic device 100 in the embodiment of the present invention may also be one of the computer devices 300 .
本发明的实施例以电子装置100为手机作为例子进行说明。手机中的环境光传感器161和接近传感器162分别实现根据周围环境光线强度调整屏幕亮度以及检测电子装置100与用户之间的距离。请参阅图5和图6,在进行环境光检测时,例如,当用户处在户外环境中,周围环境光线强,环境光传感器161将所处环境的光线强度反馈到处理器,处理器发送相应指令到控制器,控制器根据指令增强显示屏的亮度来适应当前环境的光线强度,使用户观看屏幕的内容更加清楚。当用户处在较黑暗的环境时,周围环境光线弱,环境光传感器161将所处环境的光线强度反馈到处理器,处理器发送相应指令到控制器,控制器根据指令降低显示屏的亮度来适应当前环境的光线强度,使用户在观看屏幕内容时不感到刺眼,以给用户最佳的视觉效果。The embodiment of the present invention is described by taking the electronic device 100 as a mobile phone as an example. The ambient light sensor 161 and the proximity sensor 162 in the mobile phone realize adjusting the brightness of the screen according to the light intensity of the surrounding environment and detecting the distance between the electronic device 100 and the user, respectively. Please refer to FIG. 5 and FIG. 6. When performing ambient light detection, for example, when the user is in an outdoor environment and the ambient light is strong, the ambient light sensor 161 feeds back the light intensity of the environment to the processor, and the processor sends a corresponding The instruction is sent to the controller, and the controller increases the brightness of the display screen according to the instruction to adapt to the light intensity of the current environment, so that the user can watch the content of the screen more clearly. When the user is in a dark environment and the ambient light is weak, the ambient light sensor 161 will feed back the light intensity of the environment to the processor, and the processor will send a corresponding command to the controller, and the controller will reduce the brightness of the display screen according to the command. Adapt to the light intensity of the current environment, so that the user does not feel glare when viewing the screen content, so as to give the user the best visual effect.
请参阅图7和图8,在进行距离检测时,例如,当用户在接听或者拨打电话并将手机靠近头部时,接近传感器162经过计算发射器发出红外光强度和接收器接收反射回来的红外光的强度生成距离检测信息,处理器根据该距离检测信息发送相应指令到控制器,控制器根据指令关闭屏幕。当手机远离头部时,处理器再次根据接近传感器162反馈回来的检测信息计算并发送指令到控制器,控制器根据指令重新打开屏幕。Please refer to Fig. 7 and Fig. 8, when performing distance detection, for example, when the user is answering or making a call and the mobile phone is brought close to the head, the proximity sensor 162 sends out the infrared light intensity through the calculation transmitter and the receiver receives the reflected infrared light. The intensity of the light generates distance detection information, and the processor sends a corresponding instruction to the controller according to the distance detection information, and the controller turns off the screen according to the instruction. When the mobile phone is far away from the head, the processor calculates again according to the detection information fed back by the proximity sensor 162 and sends an instruction to the controller, and the controller reopens the screen according to the instruction.
然而,在接近传感器的实际应用过程中,例如在户外太阳光直射的使用环境中,由于太阳光中含有红外光,将对接近传感器自身发射的红外光造成一定的干扰,特别地,在电子装置处于不同的接收角度时,接近传感器因接收到的红外光强度将产生波动,使得接近传感器无法准确判断是否有物体遮挡或靠近电子装置。However, in the actual application process of the proximity sensor, for example, in an outdoor environment under direct sunlight, since the sunlight contains infrared light, it will cause certain interference to the infrared light emitted by the proximity sensor itself, especially in electronic devices. At different receiving angles, the intensity of the infrared light received by the proximity sensor will fluctuate, so that the proximity sensor cannot accurately determine whether there is an object blocking or approaching the electronic device.
本发明实施方式的接近检测方法、接近检测装置200、电子装置100、计算机可读存储介质和计算机设备300,通过检测接近传感器162接收到红外光的强度和环境光中红外光的强度来判断物体与电子装置100的距离,能够减小环境光对接近传感器162的检测造成的干扰。The proximity detection method, proximity detection device 200, electronic device 100, computer readable storage medium and computer equipment 300 of the embodiment of the present invention judge the object by detecting the intensity of the infrared light received by the proximity sensor 162 and the intensity of the infrared light in the ambient light The distance from the electronic device 100 can reduce the interference caused by ambient light to the detection of the proximity sensor 162 .
需要说明的是,由于环境光传感器161也能感应接近传感器162发出的红外光,因此可以在环境光传感器161获取当前环境光中红外光的第一强度值后,开启接近传感器162发射红外光进行距离检测,能够避免接近传感器162发出的红外光对第一强度值的检测造成干扰。另外,也可以在结构位置上使环境光传感器161的设置位置远离接近传感器162的设置位置。可以理解,也可以在获取接近传感器162接收到红外光的第二强度值后,开启环境光传感器161获取当前环境光中红外光的第一强度值,时序具体不做限制。It should be noted that since the ambient light sensor 161 can also sense the infrared light emitted by the proximity sensor 162, the proximity sensor 162 can be turned on to emit infrared light after the ambient light sensor 161 acquires the first intensity value of the infrared light in the current ambient light. The distance detection can prevent the infrared light emitted by the proximity sensor 162 from interfering with the detection of the first intensity value. In addition, the installation position of the ambient light sensor 161 may be further away from the installation position of the proximity sensor 162 in terms of structural position. It can be understood that after acquiring the second intensity value of infrared light received by the proximity sensor 162, the ambient light sensor 161 can be turned on to acquire the first intensity value of infrared light in the current ambient light, and the timing is not specifically limited.
此外,可以通过将第二强度值与第一强度值作差的方式来计算物体至电子装置100的距离,从而根据所得的距离来判断物体是否接近或远离电子装置100。例如,在正常状态下,接近传感器162接收到红外光的强度在50流明(Lumen,lm)以下时,表示物体或者人脸与电子装置100的距离在90mm以上,表明物体或者人脸远离电子装置100。接近传感器162接收到红外光的强度在200流明以上时,表示物体或者人脸与电子装置100的距离在50mm以下,表明物体或者人脸接近电子装置100。当环境光传感器161检测到环境光中红外光的第一强度值为70流明,接近传感器162检测的红外光的第二强度值为85流明时,将第二强度值为85流明减去第一强度值为70流明后为15流明(15流明小于50流明),表明物体或者人脸远离电子装置100。当环境光传感器161检测到环境光中红外光的第一强度值为70流明,接近传感器162检测的红外光的第二强度值为350流明时,将第二强度值为350流明减去第一强度值为70流明后为280流明(280流明大于200流明),表明有物体或者人脸接近电子装置100。可以理解,这些强度值和距离值仅作为示例性的,对本发明不具有限定性的作用。强度值和距离值可根据具体情况进行设定。In addition, the distance from the object to the electronic device 100 can be calculated by taking the difference between the second intensity value and the first intensity value, so as to determine whether the object is approaching or moving away from the electronic device 100 according to the obtained distance. For example, in a normal state, when the intensity of infrared light received by the proximity sensor 162 is below 50 lumens (Lumen, lm), it indicates that the distance between the object or the human face and the electronic device 100 is above 90 mm, indicating that the object or the human face is far away from the electronic device. 100. When the intensity of the infrared light received by the proximity sensor 162 is above 200 lumens, it indicates that the distance between the object or the human face and the electronic device 100 is less than 50 mm, indicating that the object or the human face approaches the electronic device 100 . When the ambient light sensor 161 detects that the first intensity value of the infrared light in the ambient light is 70 lumens, and the second intensity value of the infrared light detected by the proximity sensor 162 is 85 lumens, the second intensity value is 85 lumens minus the first The intensity value is 15 lumens after 70 lumens (15 lumens is less than 50 lumens), indicating that the object or human face is far away from the electronic device 100 . When the ambient light sensor 161 detects that the first intensity value of the infrared light in the ambient light is 70 lumens, and the second intensity value of the infrared light detected by the proximity sensor 162 is 350 lumens, the second intensity value is 350 lumens minus the first intensity value. After the intensity value is 70 lumens, it becomes 280 lumens (280 lumens is greater than 200 lumens), indicating that there is an object or a human face approaching the electronic device 100 . It can be understood that these intensity values and distance values are only exemplary, and have no limiting effect on the present invention. The intensity value and the distance value can be set according to the specific situation.
请参阅图9,在某些实施方式中,接近检测方法包括步骤:Referring to FIG. 9, in some embodiments, the proximity detection method includes the steps of:
S101:检测当前环境光的亮度值;和S101: Detect the brightness value of the current ambient light; and
S102:在亮度值大于或等于亮度预定阈值时,获取当前环境光中的红外光的第一强度值。S102: Acquire a first intensity value of infrared light in current ambient light when the brightness value is greater than or equal to a predetermined brightness threshold.
请参阅图3,在某些实施方式中,步骤S101和步骤S102可以由获取模块21实现。也即是说,获取模块21可以检测当前环境光的亮度值,并在亮度值大于或等于亮度预定阈值时,获取当前环境光中的红外光的第一强度值。Referring to FIG. 3 , in some implementation manners, step S101 and step S102 may be implemented by the acquiring module 21 . That is to say, the acquiring module 21 can detect the brightness value of the current ambient light, and acquire the first intensity value of the infrared light in the current ambient light when the brightness value is greater than or equal to the preset brightness threshold.
请参阅图1,在某些实施方式中,步骤S101和步骤S102可以由处理器24实现。即处理器24可以获取环境光传感器161检测当前环境光的亮度值,并在亮度值大于或等于亮度预定阈值时,获取当前环境光中的红外光的第一强度值。Referring to FIG. 1 , in some implementations, step S101 and step S102 may be implemented by the processor 24 . That is, the processor 24 may obtain the brightness value of the current ambient light detected by the ambient light sensor 161, and obtain the first intensity value of the infrared light in the current ambient light when the brightness value is greater than or equal to a predetermined brightness threshold.
具体地,请结合参阅图10,当用户处于户外环境,例如暴露在太阳底下时,接近传感器162在距离检测过程中受周围环境光中的红外线的影响较大,更容易引起接近传感器162的检测失误。因此,当检测到当前环境光的亮度值大于或等于亮度预定阀值时,获取环境光中的红外光的第一强度值有利于减小环境光对接近传感器162的检测造成的干扰。需要说明的是,亮度预定阀值的大小可根据具体情况进行设定。此外,可以通过电子装置100中的图像传感器的感光度的高低来计算环境光的亮度值。Specifically, please refer to FIG. 10 , when the user is in an outdoor environment, such as being exposed to the sun, the proximity sensor 162 is greatly affected by the infrared rays in the surrounding ambient light during the distance detection process, and it is more likely to cause the proximity sensor 162 to detect mistake. Therefore, when it is detected that the brightness value of the current ambient light is greater than or equal to the predetermined brightness threshold, obtaining the first intensity value of the infrared light in the ambient light is beneficial to reduce the interference caused by the ambient light to the detection of the proximity sensor 162 . It should be noted that the predetermined brightness threshold can be set according to specific situations. In addition, the brightness value of the ambient light can be calculated according to the sensitivity of the image sensor in the electronic device 100 .
请参阅图11,在某些实施方式中,接近检测方法包括步骤:Referring to Figure 11, in some embodiments, the approach detection method includes the steps of:
S103:若亮度值小于亮度预定阈值,根据第二强度值检测物体至电子装置的距离以判断物体是否接近或远离电子装置。S103: If the brightness value is less than the preset brightness threshold, detect the distance from the object to the electronic device according to the second intensity value to determine whether the object is approaching or moving away from the electronic device.
请参阅图3,在某些实施方式中,步骤S103可以由判断模块22实现。也即是说,判断模块22可以在亮度值小于亮度预定阈值,根据第二强度值检测物体至电子装置100的距离以判断物体是否接近或远离电子装置100。Referring to FIG. 3 , in some implementation manners, step S103 may be implemented by the judging module 22 . That is to say, the judging module 22 can detect the distance from the object to the electronic device 100 according to the second intensity value to judge whether the object is approaching or moving away from the electronic device 100 when the brightness value is less than the predetermined brightness threshold.
请参阅图1,在某些实施方式中,步骤S103可以由处理器24实现。也即是说,处理器24可以在亮度值小于亮度预定阈值,根据第二强度值检测物体至电子装置100的距离以判断物体是否接近或远离电子装置100。Referring to FIG. 1 , in some implementation manners, step S103 may be implemented by the processor 24 . That is to say, the processor 24 may detect the distance from the object to the electronic device 100 according to the second intensity value to determine whether the object is approaching or moving away from the electronic device 100 when the brightness value is less than the predetermined brightness threshold.
具体地,当亮度值小于亮度预定阈值时,当前光环境中的红外光对接近传感器162的影响较小。例如,在用户处于室内等弱光环境中时,周围环境光中的红外光较少,对接近传感器162的影响可以忽略不计,所以可以直接使用接近传感器162检测到的第二强度值进行距离检测工作。Specifically, when the luminance value is less than the predetermined brightness threshold, the infrared light in the current light environment has less influence on the proximity sensor 162 . For example, when the user is in a low-light environment such as indoors, there is less infrared light in the ambient light, and the impact on the proximity sensor 162 is negligible, so the second intensity value detected by the proximity sensor 162 can be directly used for distance detection. Work.
请参阅图11,在某些实施方式中,检测当前环境光的亮度值的步骤S101包括:Referring to FIG. 11, in some implementations, the step S101 of detecting the brightness value of the current ambient light includes:
S1011,获取当前环境的多帧图像;和S1011, acquiring multiple frames of images of the current environment; and
S1012,根据多帧图像计算当前环境的亮度值。S1012. Calculate the brightness value of the current environment according to the multiple frames of images.
请参阅图3,在某些实施方式中,接近检测装置200包括计算模块23。步骤S1011可以由获取模块21实现,步骤S1012可以由计算模块23实现。也即是说,获取模块21可以获取当前环境的多帧图像,计算模块23可以根据多帧图像计算当前环境的亮度值。Referring to FIG. 3 , in some implementations, the proximity detection device 200 includes a calculation module 23 . Step S1011 can be implemented by the acquisition module 21 , and step S1012 can be implemented by the calculation module 23 . That is to say, the acquisition module 21 can acquire multiple frames of images of the current environment, and the calculation module 23 can calculate the brightness value of the current environment according to the multiple frames of images.
请参阅图1,在某些实施方式中,电子装置100包括摄像头163,步骤S1011和步骤S1012可以由处理器24实现。也即是说,处理器24可以利用摄像头163获取当前环境的多帧图像,并根据多帧图像计算当前环境的亮度值。Referring to FIG. 1 , in some implementations, the electronic device 100 includes a camera 163 , and step S1011 and step S1012 can be implemented by the processor 24 . That is to say, the processor 24 can use the camera 163 to obtain multiple frames of images of the current environment, and calculate the brightness value of the current environment according to the multiple frames of images.
具体地,也可以通过检测摄像头163捕获的图像得到当前环境的亮度值。例如,可以根据捕获的图像的明度来计算当前环境的亮度值。可以理解,这些检测环境光的方式仅作为示例性的,对本发明不具有限定性的作用,检测环境光的方式还可以是其他的形式。Specifically, the brightness value of the current environment may also be obtained by detecting images captured by the camera 163 . For example, the brightness value of the current environment can be calculated according to the brightness of the captured image. It can be understood that these manners of detecting ambient light are only exemplary, and have no limiting effect on the present invention, and the manner of detecting ambient light may also be in other forms.
请参阅图12,在某些实施方式中,在亮度值大于或等于亮度预定阈值时获取当前环境光中的红外光的第一强度值的步骤S10包括:Please refer to FIG. 12 , in some implementations, the step S10 of acquiring the first intensity value of infrared light in the current ambient light when the brightness value is greater than or equal to the predetermined brightness threshold value includes:
S104,检测电子装置的倾斜角度;和S104, detecting the tilt angle of the electronic device; and
S105,在倾斜角度小于角度预定阈值时,获取当前环境光中的红外光的第一强度值。S105. Acquire a first intensity value of infrared light in the current ambient light when the tilt angle is smaller than the predetermined angle threshold.
请参阅图3,在某些实施方式中,步骤S104和步骤S105可以由获取模块21实现。也即是说,获取模块21可以检测电子装置100的倾斜角度,并在倾斜角度小于角度预定阈值时,获取当前环境光中的红外光的第一强度值。Referring to FIG. 3 , in some implementation manners, step S104 and step S105 may be implemented by the acquisition module 21 . That is to say, the acquisition module 21 can detect the tilt angle of the electronic device 100, and acquire the first intensity value of the infrared light in the current ambient light when the tilt angle is smaller than the predetermined angle threshold.
请参阅图1,在某些实施方式中,电子装置100包括加速度传感器164,步骤S104和步骤S105可以由处理器24实现。也即是说,处理器24可以利用加速度传感器164检测电子装置100的倾斜角度,并在倾斜角度小于角度预定阈值时,获取当前环境光中的红外光的第一强度值。Referring to FIG. 1 , in some implementations, the electronic device 100 includes an acceleration sensor 164 , and step S104 and step S105 can be implemented by the processor 24 . That is to say, the processor 24 can use the acceleration sensor 164 to detect the inclination angle of the electronic device 100, and when the inclination angle is smaller than the predetermined angle threshold, acquire the first intensity value of the infrared light in the current ambient light.
具体地,请参阅图13,此时电子装置100的倾斜角度为0度(电子装置100与水平方向平行)。请参阅图14,此时电子装置100的倾斜角度为30度(电子装置100与水平方向的夹角为30度)。接近传感器162更容易接收到环境光中的红外光,对接近传感器162的影响较大,所以当电子装置100的倾斜角度小于角度预定阀值时,可以通过检测接近传感器162接收到红外光的强度和环境光中红外光的强度来判断物体与电子装置100的距离,能够减小环境光对接近传感器162的检测造成的干扰。此外,电子装置100的倾斜角度还可以包括电子装置100与竖直方向的倾斜角度。检测电子装置100的倾斜角度也可以采用重力传感器或者陀螺仪传感器进行检测。可以理解,角度预定阈值的具体数据可以根据实际情况进行设定。Specifically, please refer to FIG. 13 , at this moment, the inclination angle of the electronic device 100 is 0 degree (the electronic device 100 is parallel to the horizontal direction). Please refer to FIG. 14 , at this time, the tilt angle of the electronic device 100 is 30 degrees (the angle between the electronic device 100 and the horizontal direction is 30 degrees). The proximity sensor 162 is more likely to receive infrared light in ambient light, and has a greater impact on the proximity sensor 162. Therefore, when the tilt angle of the electronic device 100 is less than the predetermined angle threshold, it can detect the intensity of the infrared light received by the proximity sensor 162. Judging the distance between the object and the electronic device 100 based on the intensity of the infrared light in the ambient light can reduce the interference caused by the ambient light to the detection of the proximity sensor 162 . In addition, the inclination angle of the electronic device 100 may also include the inclination angle of the electronic device 100 with respect to the vertical direction. The tilt angle of the detection electronic device 100 may also be detected by a gravity sensor or a gyroscope sensor. It can be understood that the specific data of the predetermined threshold value of the angle can be set according to the actual situation.
请参阅图12,在某些实施方式中,接近检测方法包括步骤:Referring to FIG. 12, in some embodiments, the proximity detection method includes the steps of:
S106,若倾斜角度大于或等于角度预定阈值,根据第二强度值检测物体至电子装置的距离以判断物体是否接近或远离电子装置。S106. If the tilt angle is greater than or equal to the predetermined angle threshold, detect the distance from the object to the electronic device according to the second intensity value to determine whether the object is approaching or moving away from the electronic device.
请参阅图3,在某些实施方式中,步骤S106可以由判断模块22实现。也即是说,判断模块22可以在倾斜角度大于或等于角度预定阈值,根据第二强度值检测物体至电子装置100的距离以判断物体是否接近或远离电子装置100。Referring to FIG. 3 , in some implementations, step S106 may be implemented by the judging module 22 . That is to say, the judging module 22 can detect the distance from the object to the electronic device 100 according to the second intensity value to judge whether the object is approaching or moving away from the electronic device 100 when the tilt angle is greater than or equal to the predetermined angle threshold.
请参阅图1,在某些实施方式中,步骤S106可以由处理器24实现。也即是说,处理器24可以在倾斜角度大于或等于角度预定阈值,根据第二强度值检测物体至电子装置100的距离以判断物体是否接近或远离电子装置100。Referring to FIG. 1 , in some implementations, step S106 may be implemented by the processor 24 . That is to say, the processor 24 may detect the distance from the object to the electronic device 100 according to the second intensity value to determine whether the object is approaching or moving away from the electronic device 100 when the tilt angle is greater than or equal to the predetermined threshold.
具体地,请参阅图15,此时电子装置100的倾斜角度为120度。接近传感器162较少地接收到环境光中的红外光,对接近传感器162的影响可以忽略不计,所以可以直接使用接近传感器162检测到的第二强度值进行距离检测工作。Specifically, please refer to FIG. 15 , at this moment, the tilt angle of the electronic device 100 is 120 degrees. The proximity sensor 162 seldom receives infrared light in ambient light, and the impact on the proximity sensor 162 is negligible, so the second intensity value detected by the proximity sensor 162 can be directly used for distance detection.
本发明实施方式还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器24执行时,使得处理器24执行上述任一实施方式的接近检测方法。例如执行步骤S10,获取当前环境光中的红外光的第一强度值。步骤S20,获取接近传感器接收到的红外光的第二强度值。和步骤S30,根据第一强度值和第二强度值检测物体至电子装置的距离以判断物体是否接近或远离电子装置。The embodiment of the present invention also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors 24, the processors 24 execute the approach detection method of any of the above-mentioned embodiments . For example, step S10 is executed to obtain the first intensity value of infrared light in the current ambient light. Step S20, acquiring a second intensity value of the infrared light received by the proximity sensor. And step S30 , detecting the distance from the object to the electronic device according to the first intensity value and the second intensity value to determine whether the object is approaching or moving away from the electronic device.
请参阅图4,本发明实施方式还提供了一种计算机设备300。计算机设备包括存储器32及处理器24,存储器32中储存有计算机可读指令,指令被处理器24执行时,处理器24执行上述任一实施方式的接近检测方法。例如执行步骤S10,获取当前环境光中的红外光的第一强度值。步骤S20,获取接近传感器接收到的红外光的第二强度值。和步骤S30,根据第一强度值和第二强度值检测物体至电子装置的距离以判断物体是否接近或远离电子装置。Referring to FIG. 4 , the embodiment of the present invention also provides a computer device 300 . The computer device includes a memory 32 and a processor 24. Computer-readable instructions are stored in the memory 32. When the instructions are executed by the processor 24, the processor 24 executes the approach detection method in any of the above-mentioned embodiments. For example, step S10 is executed to obtain the first intensity value of infrared light in the current ambient light. Step S20, acquiring a second intensity value of the infrared light received by the proximity sensor. And step S30 , detecting the distance from the object to the electronic device according to the first intensity value and the second intensity value to determine whether the object is approaching or moving away from the electronic device.
图4为一个实施例中的计算机设备300的内部模块示意图。计算机设备300包括通过系统总线31连接的处理器24、存储器32(例如为非易失性存储介质)、内存储器33、输入装置34、环境光传感器161、接近传感器162、摄像头163和加速度传感器164。其中,计算机设备300的存储器32存储有操作系统和计算机可读指令。该计算机可读指令可被处理器24执行,以实现上述任意一项实施方式的接近检测方法。处理器24可用于提供计算和控制能力,支撑整个计算机设备300的运行。计算机设备300的内存储器33为存储器32中的计算机可读指令运行提供环境。计算机设备300的输入装置34可以是显示屏上的触控面板,也可以是计算机设备300外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该计算机设备300可以是手机、平板电脑、笔记本电脑、个人数字助理或穿戴式设备(例如智能手环、智能手表、智能头盔、智能眼镜)等。本领域技术人员可以理解,图中示出的结构,仅仅是与本发明方案相关的部分结构的示意图,并不构成对本发明方案所应用于其上的计算机设备300的限定,具体的计算机设备300可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。FIG. 4 is a schematic diagram of internal modules of a computer device 300 in one embodiment. The computer device 300 includes a processor 24 connected via a system bus 31, a memory 32 (such as a non-volatile storage medium), an internal memory 33, an input device 34, an ambient light sensor 161, a proximity sensor 162, a camera 163 and an acceleration sensor 164 . Wherein, the memory 32 of the computer device 300 stores an operating system and computer readable instructions. The computer-readable instructions can be executed by the processor 24 to implement the approach detection method in any one of the above implementations. The processor 24 can be used to provide calculation and control capabilities, and support the operation of the entire computer device 300 . Internal memory 33 of computer device 300 provides an environment for the execution of computer readable instructions in memory 32 . The input device 34 of the computer device 300 may be a touch panel on the display screen, a button, a trackball or a touch pad provided on the casing of the computer device 300, or an external keyboard, touch pad or mouse. The computer device 300 may be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant or a wearable device (such as a smart bracelet, a smart watch, a smart helmet, smart glasses) and the like. Those skilled in the art can understand that the structure shown in the figure is only a schematic diagram of a partial structure related to the solution of the present invention, and does not constitute a limitation on the computer device 300 to which the solution of the present invention is applied. The specific computer device 300 More or fewer components than shown in the figures may be included, or certain components may be combined, or have a different arrangement of components.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium , when the program is executed, it may include the procedures of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) and the like.
上文的公开提供了许多不同的实施方式或例子用来实现本发明的不同结构。为了简化本发明的公开,上文中对特定例子的部件和设置进行描述。当然,它们仅仅为示例,并且目的不在于限制本发明。此外,本发明可以在不同例子中重复参考数字和/或参考字母,这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施方式和/或设置之间的关系。此外,本发明提供了的各种特定的工艺和材料的例子,但是本领域普通技术人员可以意识到其他工艺的应用和/或其他材料的使用。The above disclosure provides many different embodiments or examples for implementing different structures of the present invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described above. Of course, they are only examples and are not intended to limit the invention. Furthermore, the present disclosure may repeat reference numerals and/or reference letters in different instances, such repetition is for simplicity and clarity and does not in itself indicate a relationship between the various embodiments and/or arrangements discussed. In addition, various specific process and material examples are provided herein, but one of ordinary skill in the art may recognize the use of other processes and/or the use of other materials.
在本说明书的描述中,参考术语“一个实施方式”、“一些实施方式”、“示意性实施方式”、“示例”、“具体示例”、或“一些示例”等的描述意指结合实施方式或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施方式或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施方式或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施方式或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples", or "some examples" etc. mean that the embodiments are combined A specific feature, structure, material, or characteristic described or exemplified is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
尽管已经示出和描述了本发明的实施方式,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施方式进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。Although the embodiments of the present invention have been shown and described, those skilled in the art can understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principle and spirit of the present invention. The scope of the invention is defined by the claims and their equivalents.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810554883.9A CN108874128B (en) | 2018-06-01 | 2018-06-01 | Proximity detection method and device, electronic device, storage medium and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810554883.9A CN108874128B (en) | 2018-06-01 | 2018-06-01 | Proximity detection method and device, electronic device, storage medium and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108874128A true CN108874128A (en) | 2018-11-23 |
| CN108874128B CN108874128B (en) | 2021-07-23 |
Family
ID=64336035
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810554883.9A Expired - Fee Related CN108874128B (en) | 2018-06-01 | 2018-06-01 | Proximity detection method and device, electronic device, storage medium and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108874128B (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110531438A (en) * | 2019-09-01 | 2019-12-03 | 福州优朋电子有限公司 | The infrared induction detection method and its sensing sanitary appliance of adaptive motion object |
| CN111123385A (en) * | 2019-11-11 | 2020-05-08 | 广州晨日电子技术有限公司 | Diffuse reflection type object detection method and device with self-learning function |
| CN112399012A (en) * | 2020-11-17 | 2021-02-23 | 惠州Tcl移动通信有限公司 | Proximity sensor setting method, device and storage medium |
| CN112865862A (en) * | 2019-11-12 | 2021-05-28 | Oppo广东移动通信有限公司 | Ambient light detection method and apparatus for optical communication between electronic devices |
| CN113119128A (en) * | 2021-04-25 | 2021-07-16 | 广州科语机器人有限公司 | Robot, operation control method thereof, electronic device, and storage medium |
| CN113407068A (en) * | 2020-03-16 | 2021-09-17 | 罗姆股份有限公司 | Light-receiving IC, non-contact sensor, and electronic device |
| CN113421358A (en) * | 2020-03-03 | 2021-09-21 | 比亚迪股份有限公司 | Vehicle lock control system, vehicle lock control method and vehicle |
| CN115201837A (en) * | 2021-10-05 | 2022-10-18 | 义明科技股份有限公司 | Proximity sensor and control method thereof |
| CN115400355A (en) * | 2022-08-25 | 2022-11-29 | 深圳素士科技股份有限公司 | Optical beauty device, control method thereof, control device and readable storage medium |
Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| FR2458823A1 (en) * | 1979-06-08 | 1981-01-02 | Mulleman Michel | Proximity detector using light sources - produces intersecting beams which form spots on target with separation dependent on distance between source and target |
| CN102883061A (en) * | 2012-09-26 | 2013-01-16 | 广东欧珀移动通信有限公司 | A method and system for controlling the working state of a touch screen by a mobile terminal |
| CN103037088A (en) * | 2012-12-11 | 2013-04-10 | 惠州Tcl移动通信有限公司 | Method and mobile terminal for screen backlight adjusting |
| CN103309572A (en) * | 2012-03-16 | 2013-09-18 | 联想(北京)有限公司 | Method and device for state switching |
| US20150090865A1 (en) * | 2013-09-30 | 2015-04-02 | Sonos, Inc. | Proximity Sensing Configuration |
| CN104541231A (en) * | 2014-08-29 | 2015-04-22 | 华为技术有限公司 | Method and device for preventing mistaken touch of touch screen |
| CN105957499A (en) * | 2016-06-28 | 2016-09-21 | 广东欧珀移动通信有限公司 | Control method, control device and electronic device |
| CN105959492A (en) * | 2016-07-06 | 2016-09-21 | 广东欧珀移动通信有限公司 | A control method, device and mobile terminal of an infrared proximity sensor |
| CN105988559A (en) * | 2015-02-03 | 2016-10-05 | 联想(北京)有限公司 | Information processing method and electronic device |
| CN106060285A (en) * | 2016-08-15 | 2016-10-26 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for backlight control |
| CN106131345A (en) * | 2016-08-29 | 2016-11-16 | 广东欧珀移动通信有限公司 | The control method of a kind of proximity transducer, device and mobile terminal |
| US20160372056A1 (en) * | 2012-03-05 | 2016-12-22 | Pixart Imaging Inc. | Automatic detection method for backlight control and portable electronic device using the same |
| CN106357922A (en) * | 2016-10-12 | 2017-01-25 | 广东欧珀移动通信有限公司 | State monitoring method and device for terminal equipment and terminal equipment |
| CN106506831A (en) * | 2016-10-26 | 2017-03-15 | 广东欧珀移动通信有限公司 | Control method and control device |
| CN107450817A (en) * | 2017-07-31 | 2017-12-08 | 广东欧珀移动通信有限公司 | Proximity test method, apparatus, storage medium and electronic equipment |
-
2018
- 2018-06-01 CN CN201810554883.9A patent/CN108874128B/en not_active Expired - Fee Related
Patent Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| FR2458823A1 (en) * | 1979-06-08 | 1981-01-02 | Mulleman Michel | Proximity detector using light sources - produces intersecting beams which form spots on target with separation dependent on distance between source and target |
| US20160372056A1 (en) * | 2012-03-05 | 2016-12-22 | Pixart Imaging Inc. | Automatic detection method for backlight control and portable electronic device using the same |
| CN103309572A (en) * | 2012-03-16 | 2013-09-18 | 联想(北京)有限公司 | Method and device for state switching |
| CN102883061A (en) * | 2012-09-26 | 2013-01-16 | 广东欧珀移动通信有限公司 | A method and system for controlling the working state of a touch screen by a mobile terminal |
| CN103037088A (en) * | 2012-12-11 | 2013-04-10 | 惠州Tcl移动通信有限公司 | Method and mobile terminal for screen backlight adjusting |
| US20150090865A1 (en) * | 2013-09-30 | 2015-04-02 | Sonos, Inc. | Proximity Sensing Configuration |
| CN104541231A (en) * | 2014-08-29 | 2015-04-22 | 华为技术有限公司 | Method and device for preventing mistaken touch of touch screen |
| CN105988559A (en) * | 2015-02-03 | 2016-10-05 | 联想(北京)有限公司 | Information processing method and electronic device |
| CN105957499A (en) * | 2016-06-28 | 2016-09-21 | 广东欧珀移动通信有限公司 | Control method, control device and electronic device |
| CN105959492A (en) * | 2016-07-06 | 2016-09-21 | 广东欧珀移动通信有限公司 | A control method, device and mobile terminal of an infrared proximity sensor |
| CN106060285A (en) * | 2016-08-15 | 2016-10-26 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for backlight control |
| CN106131345A (en) * | 2016-08-29 | 2016-11-16 | 广东欧珀移动通信有限公司 | The control method of a kind of proximity transducer, device and mobile terminal |
| CN106357922A (en) * | 2016-10-12 | 2017-01-25 | 广东欧珀移动通信有限公司 | State monitoring method and device for terminal equipment and terminal equipment |
| CN106506831A (en) * | 2016-10-26 | 2017-03-15 | 广东欧珀移动通信有限公司 | Control method and control device |
| CN107450817A (en) * | 2017-07-31 | 2017-12-08 | 广东欧珀移动通信有限公司 | Proximity test method, apparatus, storage medium and electronic equipment |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110531438A (en) * | 2019-09-01 | 2019-12-03 | 福州优朋电子有限公司 | The infrared induction detection method and its sensing sanitary appliance of adaptive motion object |
| CN110531438B (en) * | 2019-09-01 | 2021-07-13 | 福州优朋电子有限公司 | Infrared induction detection method for self-adaptive moving object and induction sanitary appliance thereof |
| CN111123385A (en) * | 2019-11-11 | 2020-05-08 | 广州晨日电子技术有限公司 | Diffuse reflection type object detection method and device with self-learning function |
| CN112865862A (en) * | 2019-11-12 | 2021-05-28 | Oppo广东移动通信有限公司 | Ambient light detection method and apparatus for optical communication between electronic devices |
| CN113421358A (en) * | 2020-03-03 | 2021-09-21 | 比亚迪股份有限公司 | Vehicle lock control system, vehicle lock control method and vehicle |
| CN113407068A (en) * | 2020-03-16 | 2021-09-17 | 罗姆股份有限公司 | Light-receiving IC, non-contact sensor, and electronic device |
| CN113407068B (en) * | 2020-03-16 | 2023-12-05 | 罗姆股份有限公司 | Light receiving IC, noncontact sensor, and electronic device |
| CN112399012A (en) * | 2020-11-17 | 2021-02-23 | 惠州Tcl移动通信有限公司 | Proximity sensor setting method, device and storage medium |
| CN113119128A (en) * | 2021-04-25 | 2021-07-16 | 广州科语机器人有限公司 | Robot, operation control method thereof, electronic device, and storage medium |
| CN115201837A (en) * | 2021-10-05 | 2022-10-18 | 义明科技股份有限公司 | Proximity sensor and control method thereof |
| CN115400355A (en) * | 2022-08-25 | 2022-11-29 | 深圳素士科技股份有限公司 | Optical beauty device, control method thereof, control device and readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108874128B (en) | 2021-07-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108874128A (en) | Proximity detection method and apparatus, electronic apparatus, storage medium, and device | |
| US11698297B2 (en) | Methods and devices for detecting ambient light based on different states of flexible screen, and storage medium | |
| US11770619B2 (en) | Generating static images with an event camera | |
| US9621812B2 (en) | Image capturing control apparatus and method | |
| CN108873005B (en) | Proximity detection method and device, electronic device, storage medium and device | |
| US9146624B2 (en) | Method for managing screen orientation of a portable electronic device | |
| US20180107382A1 (en) | Portable terminal and control method | |
| EP2664985A2 (en) | Tablet terminal and operation receiving program | |
| CN106462339A (en) | Terminal and method for detecting ambient light brightness | |
| JP2019537285A (en) | Method and apparatus for preventing terminal erroneous contact | |
| CN106464800B (en) | Method, system, machine readable media and the calculating equipment that automatic anti-dazzle for imaging device exposes | |
| CN105577932B (en) | A kind of screen brightness adjustment method and mobile terminal | |
| KR20160038460A (en) | Electronic device and control method of the same | |
| CN105575368B (en) | Method and device for adjusting brightness of display screen | |
| US9485412B2 (en) | Device and method for using pressure-sensing touch screen to take picture | |
| US20160335940A1 (en) | Method for processing display data and electronic device for supporting the same | |
| CN105915803B (en) | Photographing method and system based on sensor | |
| EP3062286A1 (en) | Optical distortion compensation | |
| CN105371948B (en) | Detect the method and its electronic device of ultraviolet light | |
| CN108540718A (en) | Shooting method and device, mobile terminal and storage medium | |
| CN111083386A (en) | Image processing method and electronic device | |
| WO2021000956A1 (en) | Method and apparatus for upgrading intelligent model | |
| TW201506812A (en) | Method and device for switching display direction, electronic device and machine-readable storage medium | |
| CN108983250B (en) | Proximity detection method and device, electronic device, storage medium and device | |
| CN109510896B (en) | Proximity sensor selection method, device, storage medium and electronic 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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210723 |