Distance determination method and device and storage medium
The invention provides a distance determination method and device and a storage medium. The method comprises the steps that whether data acquired by an infrared distance sensor of electronic equipment is larger than a far-away threshold value and smaller than a first close threshold value or not is...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a distance determination method and device and a storage medium. The method comprises the steps that whether data acquired by an infrared distance sensor of electronic equipment is larger than a far-away threshold value and smaller than a first close threshold value or not is determined; if yes, obtaining light sensing data; determining whether the light sensing data is greater than a preset light sensing value; if yes, determining a second approaching threshold value; and according to the second approaching threshold value and the data acquired by the infrared distance sensor, determining the position state between the shielding object and the screen of the electronic equipment. According to the invention, based on the data acquired by the infrared distance sensor, the first approaching threshold value, the departure threshold value, the light sensation data and the oil stain algorithm, the position state between the shielding object and the screen of the electronic equipment is subjec |
---|