CN109241488A - Bottom is made an uproar calculation method and device, computer readable storage medium - Google Patents

Bottom is made an uproar calculation method and device, computer readable storage medium Download PDF

Info

Publication number
CN109241488A
CN109241488A CN201710522160.6A CN201710522160A CN109241488A CN 109241488 A CN109241488 A CN 109241488A CN 201710522160 A CN201710522160 A CN 201710522160A CN 109241488 A CN109241488 A CN 109241488A
Authority
CN
China
Prior art keywords
uproar
value
range sensor
measurement data
distance measurement
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.)
Pending
Application number
CN201710522160.6A
Other languages
Chinese (zh)
Inventor
陈朝喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710522160.6A priority Critical patent/CN109241488A/en
Publication of CN109241488A publication Critical patent/CN109241488A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/16Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring distance of clearance between spaced objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

It makes an uproar calculation method and device, computer readable storage medium, makes an uproar value applied to the bottom for calculating the range sensor on electronic equipment, which comprises obtain the single distance measurement data that the range sensor detects the disclosure is directed to a kind of bottom;According to the single distance measurement data, calculates corresponding single bottom and make an uproar value;All single bottoms relevant with the range sensor are made an uproar, and it is average to corresponding history measuring section to be worth, and is made an uproar value with obtaining the bottom of the range sensor.

Description

Bottom is made an uproar calculation method and device, computer readable storage medium
Technical field
Calculation method and device, computer-readable storage this disclosure relates to which field of terminal technology more particularly to a kind of bottom are made an uproar Medium.
Background technique
Currently, sensor is widely used in electronic equipment, electronic equipment can obtain itself and the external world by sensor Various information, to execute corresponding operation.In the related art, it can be detected by the sensor of electronic equipment internal Outer vicinity whether there is object.For example, sensor under cover-plate glass detects lid when electronic equipment is on call Whether glass sheet front adjacent has shelter, to judge whether to execute the operation of breath screen.
Summary of the invention
The disclosure provides a kind of bottom and makes an uproar calculation method and device, computer readable storage medium, to solve in the related technology Deficiency.
According to the first aspect of the embodiments of the present disclosure, it provides a kind of bottom to make an uproar calculation method, is applied to calculate on electronic equipment The bottom of range sensor make an uproar value, which comprises
Obtain the single distance measurement data that the range sensor detects;
According to the single distance measurement data, calculates corresponding single bottom and make an uproar value;
All single bottoms relevant with the range sensor are made an uproar, and it is average to corresponding history measuring section to be worth, to obtain It makes an uproar value to the bottom of the range sensor.
Optionally, described according to the single distance measurement data, it calculates corresponding single bottom and makes an uproar value, comprising:
According to the single distance measurement data, determining, which whether there is in the preset range of the range sensor, is blocked Object;
When not there is no shelter, corresponding single bottom being calculated according to the single distance measurement data and is made an uproar value.
Optionally, the history measuring section eliminates in the preset range of the range sensor that there are shelters Period.
Optionally, described all single bottoms relevant with the range sensor are made an uproar is worth averagely to the measurement of corresponding history Period, comprising:
All single bottoms value of making an uproar is subjected to integral calculation in the history measuring section, obtains integrated value of making an uproar on earth;
Bottom integrated value of making an uproar is average to the history measuring section, it obtains the bottom and makes an uproar value.
Optionally, described all single bottoms relevant with the range sensor are made an uproar is worth averagely to the measurement of corresponding history Period, comprising:
It calculates relevant to the range sensor all single bottoms to make an uproar the average value of value, to make an uproar value as the bottom.
According to the second aspect of an embodiment of the present disclosure, it provides a kind of bottom to make an uproar computing device, is applied to calculate on electronic equipment The bottom of range sensor make an uproar value, described device includes:
Acquiring unit obtains the single distance measurement data that the range sensor detects;
Computing unit calculates corresponding single bottom and makes an uproar value according to the single distance measurement data;
All single bottoms relevant with the range sensor are made an uproar and are worth averagely to when the measurement of corresponding history by processing unit Between section, made an uproar value with obtaining the bottom of the range sensor.
Optionally, the computing unit includes:
Determine subelement, according to the single distance measurement data, determining in the preset range of the range sensor is It is no that there are shelters;
First computation subunit calculates corresponding single when not there is no shelter according to the single distance measurement data Secondary bottom is made an uproar value.
Optionally, the history measuring section eliminates in the preset range of the range sensor that there are shelters Period.
Optionally, the processing unit includes:
All single bottoms value of making an uproar is carried out integral calculation in the history measuring section, obtained by integral calculation subelement It makes an uproar on earth integrated value;
The bottom is made an uproar integrated value averagely to the history measuring section, obtains the bottom and make an uproar by the second computation subunit Value.
Optionally, the processing unit includes:
Third computation subunit calculates relevant to the range sensor all single bottoms and makes an uproar the average value of value, with work It makes an uproar value for the bottom.
According to the third aspect of an embodiment of the present disclosure, it provides a kind of bottom to make an uproar computing device, is applied to calculate in described device The bottom of range sensor make an uproar value, described device includes:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to realizing method as described in relation to the first aspect.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine instruction, which is characterized in that the step of method as described in relation to the first aspect is realized when the instruction is executed by processor.
The technical scheme provided by this disclosed embodiment can include the following benefits:
As can be seen from the above embodiments, the disclosure is made an uproar value by obtaining the corresponding single bottom of range sensor, and by single bottom Making an uproar, it is average to corresponding history measuring section to be worth, and can reduce single bottom and make an uproar influences caused by the mutation of value, avoids distance Thus the bottom of sensor value of making an uproar generates mutation, facilitate accuracy of measurement, the optimization user experience of range of lift sensor.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the structural schematic diagram of electronic equipment in the related technology.
Fig. 2 is that a kind of bottom shown according to an exemplary embodiment is made an uproar the flow chart of calculation method.
Fig. 3 is that a kind of bottom that calculates shown according to an exemplary embodiment is made an uproar the schematic diagram of value.
Fig. 4-7 is that a kind of bottom shown according to an exemplary embodiment is made an uproar the block diagram of computing device.
Fig. 8 be it is shown according to an exemplary embodiment it is a kind of for bottom make an uproar calculating device structural schematic diagram.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Fig. 1 is the structural schematic diagram of electronic equipment in the related technology.As shown in Figure 1, the electronic equipment includes cover-plate glass (cover glass) 10 and range sensor 20, range sensor 20 include transmitting module and receiving module.At electronic equipment When talking state, transmitting module is to infrared signal is emitted in front of cover-plate glass 10, and there are shelters in front of cover-plate glass 10 When, which will reflect infrared signal, if therefore receiving module receive infrared signal, before can determining cover-plate glass 10 There are shelters for side, thereby executing the operation of screen is ceased to prevent from accidentally touching.
However, the inner surface 102 of cover-plate glass 10 and 101 inside of outer surface can reflect infrared signal, than sending out as shown in figure 1 The infrared signal a for penetrating module transmitting emits infrared through 101 inner reflection of outer surface formation infrared signal b and transmitting module Signal c reflects to form infrared signal d through inner surface 102, so that between range sensor 20 is between detection and front shelter Gauge from when there are certain bottoms to make an uproar.
Although it is acceptable that a degree of bottom, which is made an uproar, the installation error for working as range sensor 20 is larger, or Whens being infected with spot, dust etc. on cover-plate glass 10, will lead to bottom make an uproar further increase, cause range sensor 20 measurement essence Accuracy reduces, or even is unable to judge accurately in front of cover-plate glass 10 with the presence or absence of shelter.
Therefore, the disclosure is improved by the algorithm of making an uproar of the bottom to electronic equipment, to solve on present in the relevant technologies Technical problem is stated, is described in detail below with reference to embodiment.
Fig. 2 is that a kind of bottom shown according to an exemplary embodiment is made an uproar the flow chart of calculation method, as shown in Fig. 2, the party Method is applied in terminal, and the bottom for calculating the range sensor on electronic equipment is made an uproar value, may comprise steps of:
In step 202, the single distance measurement data that the range sensor detects is obtained.
In one embodiment, range sensor can continue or implement distance detection operation according to predetermined period, every time Distance detection operates available corresponding single distance measurement data, as between range sensor and front obstacle Spacing distance.
In one embodiment, range sensor can be located at the same side with the display screen on electronic equipment, so that user Reading the display content in the display screen, perhaps using the electronic equipment or other in the case of, range sensor can be with For detecting the spacing distance between the user.In other embodiments, range sensor may be located on electronic equipment Any other position, and might not to display screen it is related, the disclosure is limited not to this.
In step 204, it according to the single distance measurement data, calculates corresponding single bottom and makes an uproar value.
In one embodiment, it can be made an uproar according to predefined bottom and calculate function single distance measurement data is handled, It is made an uproar value with obtaining corresponding single bottom;Bottom, which is made an uproar, to be calculated function and can be made an uproar value using arbitrarily can be used in calculating range sensor bottom Algorithm, the disclosure are limited not to this.
In one embodiment, the default model of the range sensor can be determined according to the single distance measurement data With the presence or absence of shelter in enclosing;When not there is no shelter, corresponding single bottom is calculated according to the single distance measurement data It makes an uproar value, the single bottom can be influenced to avoid shelter and is made an uproar the data precision of value.
In one embodiment, the history measuring section is eliminated to exist in the preset range of the range sensor and be hidden The period of block material.
In step 206, all single bottoms relevant with the range sensor being made an uproar, it is average to the survey of corresponding history to be worth The period is measured, is made an uproar value with obtaining the bottom of the range sensor.
In one embodiment, the value that all single bottoms can be made an uproar carries out integral calculation in the history measuring section, Obtain integrated value of making an uproar on earth;Then, bottom integrated value of making an uproar is average to the history measuring section, it obtains the bottom and makes an uproar value.
In one embodiment, all single bottoms relevant to the range sensor can be calculated to make an uproar the average value of value, with It makes an uproar value as the bottom.
As can be seen from the above embodiments, the disclosure is made an uproar value by obtaining the corresponding single bottom of range sensor, and by single bottom Making an uproar, it is average to corresponding history measuring section to be worth, and can reduce single bottom and make an uproar influences caused by the mutation of value, avoids distance Thus the bottom of sensor value of making an uproar generates mutation, facilitate accuracy of measurement, the optimization user experience of range of lift sensor.
For the range sensor assembled on electronic equipment, electronic equipment can be made an uproar function f (t) by running bottom, to away from It is calculated from the single distance measurement data that sensor detects, is made an uproar value with obtaining corresponding single bottom.Single bottom value of making an uproar is For the single distance measurement data that the range sensor on electronic equipment detects, the calculated bottom with certain timeliness It makes an uproar value.
Although the value that above-mentioned single bottom can be made an uproar is made an uproar value directly as the bottom of range sensor, this be may result in Biggish error.In fact, user touches grease, the spot of contamination etc. of contamination, all during electronic equipment is by use The practical bottom value of making an uproar that may cause range sensor changes, and causes the make an uproar numerical value of value of single bottom that may vary widely, To influencing its single distance measurement data detected, so that thus electronic equipment may be mistaken for user for face close to screen Curtain and implement breath screen etc. processing, influence the normal use of user.
The signal of value for this purpose, the bottom that Fig. 3 shows a kind of calculating range sensor of one exemplary embodiment of the disclosure is made an uproar Figure.As shown in figure 3, in the use process of electronic equipment, it is assumed that the period, T1-T2, T3-T4, T5-T6 ... Tn-1-Tn were Electronic equipment does not trigger the period of breath screen, the list that the available range sensor of electronic equipment detects within the above-mentioned period Secondary distance measurement data f (T1), f (T1-1) ... f (T2), f (T3), f (T3-1) ... f (Tn), and within the above-mentioned period Integral calculation is carried out to above-mentioned single distance measurement data.
For example, carrying out integral calculation to the single distance measurement data in period T1-T2, obtain:Class As, integral calculation is carried out to the single distance measurement data in period Tn-1-Tn, is obtained:
It is then possible to which the average institute for not triggering breath screen to electronic equipment is sometimes by the integrated value in above-mentioned each period Between in section;For example, can be calculated according to the following equation:
Such as, it is assumed that electronic equipment was run to the T4 moment, which can use T1-T2, T3-T4 period and examine The single distance measurement data measured is made an uproar value according to the bottom that above-mentioned formula calculates range sensor are as follows:
Similarly, after electronic equipment was run to the T6 moment, when which can use T1-T2, T3-T4, T5-T6 Between the single distance measurement data that detects of section, make an uproar value according to the bottom that above-mentioned formula calculates range sensor are as follows:
As it can be seen that even if electronic equipment is once in a while since contamination grease, spot etc. cause the practical bottom value of making an uproar of range sensor to send out Raw fierce variation, such as user are infected with the grease of face to the range sensor of electronic equipment, Value is made an uproar much larger than other moment in the single bottom of Tn-1 at the time of causing the range sensor shown in Fig. 3, but due to that can pass through The single bottom is made an uproar and is worth in the average all periods for not triggering breath screen to electronic equipment by above-mentioned operation, thus the single bottom is made an uproar After value is handled via electronic equipment, the bottom of finally obtained range sensor is made an uproar, and value can't there are huge between other moment Difference.
Corresponding with the bottom above-mentioned embodiment of calculation method of making an uproar, the disclosure additionally provides bottom and makes an uproar the implementation of computing device Example.
Fig. 4 is that a kind of bottom shown according to an exemplary embodiment is made an uproar the block diagram of computing device.Referring to Fig. 4, which is answered Bottom for calculating the range sensor on electronic equipment is made an uproar value, the apparatus may include:
Acquiring unit 41 is configured as obtaining the single distance measurement data that the range sensor detects;
Computing unit 42, is configured as according to the single distance measurement data, calculates corresponding single bottom and makes an uproar value;
Processing unit 43, being configured as making an uproar at all single bottoms relevant with the range sensor, it is average to corresponding to be worth History measuring section is made an uproar value with obtaining the bottom of the range sensor.
As shown in figure 5, Fig. 5 is that another bottom shown according to an exemplary embodiment is made an uproar the block diagram of computing device, the reality Example is applied on the basis of aforementioned embodiment illustrated in fig. 4, computing unit 42 may include:
It determines subelement 421, is configured as determining the pre- of the range sensor according to the single distance measurement data If whether there is shelter in range;
First computation subunit 422, is configured as when not there is no shelter, according to the single distance measurement data meter Corresponding single bottom is calculated to make an uproar value.
Optionally, the history measuring section eliminates in the preset range of the range sensor that there are shelters Period.
As shown in fig. 6, Fig. 6 is that another bottom shown according to an exemplary embodiment is made an uproar the block diagram of computing device, the reality Example is applied on the basis of aforementioned embodiment illustrated in fig. 4, processing unit 43 may include:
Integral calculation subelement 431, the value that is configured as making an uproar at all single bottoms carry out in the history measuring section Integral calculation obtains integrated value of making an uproar on earth;
Second computation subunit 432 is configured as the average extremely history measuring section of integrated value that the bottom is made an uproar, obtains It makes an uproar value to the bottom.
It should be noted that the integral calculation subelement 431 and second in above-mentioned Installation practice shown in fig. 6 calculate son The structure of unit 432 also may be embodied in the Installation practice of earlier figures 5, be not limited to this disclosure.
As shown in fig. 7, Fig. 7 is that another bottom shown according to an exemplary embodiment is made an uproar the block diagram of computing device, the reality Example is applied on the basis of aforementioned embodiment illustrated in fig. 4, processing unit 43 may include:
Third computation subunit 433 is configured as calculating relevant to the range sensor all single bottoms and makes an uproar value Average value, to make an uproar value as the bottom.
It should be noted that the structure of the third computation subunit 431 in above-mentioned Installation practice shown in Fig. 7 can also be with Included in earlier figures 5 or the Installation practice of Fig. 6, this disclosure is not limited.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
It makes an uproar computing device correspondingly, the disclosure also provides a kind of bottom, comprising: processor;It is executable for storage processor The memory of instruction;Wherein, it makes an uproar calculation method the processor is configured to executing bottom described in any of the above-described embodiment.
Correspondingly, the disclosure also provides a kind of terminal, the terminal include memory and one or more than one Program, one of them perhaps more than one program be stored in memory and be configured to by one or more than one Managing device and executing the one or more programs includes for carrying out corresponding operation instruction, to realize any of the above-described implementation It makes an uproar calculation method at bottom described in example.
Fig. 8 be it is shown according to an exemplary embodiment it is a kind of for bottom make an uproar calculating device 800 block diagram.For example, dress Setting 800 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 8, device 800 may include following one or more components: processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 808 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detecte the state that opens/closes of device 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete above-mentioned bottom and make an uproar calculating Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, Tape, floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (12)

  1. The calculation method 1. a kind of bottom is made an uproar, which is characterized in that it makes an uproar value applied to the bottom for calculating the range sensor on electronic equipment, institute The method of stating includes:
    Obtain the single distance measurement data that the range sensor detects;
    According to the single distance measurement data, calculates corresponding single bottom and make an uproar value;
    All single bottoms relevant with the range sensor are made an uproar, and it is average to corresponding history measuring section to be worth, to obtain It makes an uproar value at the bottom for stating range sensor.
  2. 2. the method according to claim 1, wherein described according to the single distance measurement data, calculating phase It makes an uproar value at the single bottom answered, comprising:
    According to the single distance measurement data, determine in the preset range of the range sensor with the presence or absence of shelter;
    When not there is no shelter, corresponding single bottom being calculated according to the single distance measurement data and is made an uproar value.
  3. 3. according to the method described in claim 2, it is characterized in that, the history measuring section eliminates the Distance-sensing There are the periods of shelter in the preset range of device.
  4. 4. the method according to claim 1, wherein described will all singles relevant to the range sensor Bottom, which is made an uproar, to be worth averagely to corresponding history measuring section, comprising:
    All single bottoms value of making an uproar is subjected to integral calculation in the history measuring section, obtains integrated value of making an uproar on earth;
    Bottom integrated value of making an uproar is average to the history measuring section, it obtains the bottom and makes an uproar value.
  5. 5. the method according to claim 1, wherein described will all singles relevant to the range sensor Bottom, which is made an uproar, to be worth averagely to corresponding history measuring section, comprising:
    It calculates relevant to the range sensor all single bottoms to make an uproar the average value of value, to make an uproar value as the bottom.
  6. The computing device 6. a kind of bottom is made an uproar, which is characterized in that it makes an uproar value applied to the bottom for calculating the range sensor on electronic equipment, institute Stating device includes:
    Acquiring unit obtains the single distance measurement data that the range sensor detects;
    Computing unit calculates corresponding single bottom and makes an uproar value according to the single distance measurement data;
    Processing unit, all single bottoms relevant with the range sensor are made an uproar, and it is average to corresponding history time of measuring to be worth Section is made an uproar value with obtaining the bottom of the range sensor.
  7. 7. device according to claim 6, which is characterized in that the computing unit includes:
    It determines subelement, according to the single distance measurement data, determines in the preset range of the range sensor whether deposit In shelter;
    First computation subunit calculates corresponding single bottom according to the single distance measurement data when not there is no shelter It makes an uproar value.
  8. 8. device according to claim 7, which is characterized in that the history measuring section eliminates the Distance-sensing There are the periods of shelter in the preset range of device.
  9. 9. device according to claim 6, which is characterized in that the processing unit includes:
    All single bottoms value of making an uproar is carried out integral calculation in the history measuring section, obtained on earth by integral calculation subelement It makes an uproar integrated value;
    Second computation subunit, bottom integrated value of making an uproar is average to the history measuring section, it obtains the bottom and makes an uproar value.
  10. 10. device according to claim 6, which is characterized in that the processing unit includes:
    Third computation subunit calculates relevant to the range sensor all single bottoms and makes an uproar the average value of value, using as institute Bottom is stated to make an uproar value.
  11. The computing device 11. a kind of bottom is made an uproar, which is characterized in that it makes an uproar value applied to the bottom for calculating the range sensor in described device, Described device includes:
    Processor;
    Memory for storage processor executable instruction;
    Wherein, the processor is configured to realizing method according to any one of claims 1 to 5.
  12. 12. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor It is realized when execution such as the step of any one of claim 1-5 the method.
CN201710522160.6A 2017-06-30 2017-06-30 Bottom is made an uproar calculation method and device, computer readable storage medium Pending CN109241488A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710522160.6A CN109241488A (en) 2017-06-30 2017-06-30 Bottom is made an uproar calculation method and device, computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710522160.6A CN109241488A (en) 2017-06-30 2017-06-30 Bottom is made an uproar calculation method and device, computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109241488A true CN109241488A (en) 2019-01-18

Family

ID=65083193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710522160.6A Pending CN109241488A (en) 2017-06-30 2017-06-30 Bottom is made an uproar calculation method and device, computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109241488A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113267785A (en) * 2020-02-17 2021-08-17 北京小米移动软件有限公司 Distance detection method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050192727A1 (en) * 1994-05-09 2005-09-01 Automotive Technologies International Inc. Sensor Assemblies
CN106443639A (en) * 2016-09-26 2017-02-22 深圳市金立通信设备有限公司 Distance calibration method and terminal
CN106791209A (en) * 2017-03-10 2017-05-31 上海传英信息技术有限公司 The self-checking device and method of distance of mobile terminal sensor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050192727A1 (en) * 1994-05-09 2005-09-01 Automotive Technologies International Inc. Sensor Assemblies
CN106443639A (en) * 2016-09-26 2017-02-22 深圳市金立通信设备有限公司 Distance calibration method and terminal
CN106791209A (en) * 2017-03-10 2017-05-31 上海传英信息技术有限公司 The self-checking device and method of distance of mobile terminal sensor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵剑强等: "公路交通噪声等效车道距离的确定方法探讨", 《应用声学》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113267785A (en) * 2020-02-17 2021-08-17 北京小米移动软件有限公司 Distance detection method and device and electronic equipment
CN113267785B (en) * 2020-02-17 2023-10-13 北京小米移动软件有限公司 Distance detection method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US10997477B2 (en) Foreign matter recognition method and device
RU2628558C2 (en) Method and smart terminal handling device
RU2638154C2 (en) Methods and devices for number labeling
CN104832446A (en) Method and device for controlling fan
EP3313125B1 (en) Method and device for controlling screen state, computer program and recording medium
CN104034309A (en) Angle measurement method, angle measurement device and terminal
CN106792173A (en) Video broadcasting method and device
CN104601204B (en) trigger condition detection method and device
CN109144385A (en) The moving method and device of suspension ball
CN107202574A (en) Motion track information modification method and device
CN104243829A (en) Self-shooting method and self-shooting device
CN106339137A (en) Terminal touch recognition method and device
KR101817620B1 (en) Method and device for activating operation state of mobile terminal, Program and Recording Medium
CN106886019A (en) Distance measurement method and device
CN112905035A (en) Touch screen control method and device and computer storage medium
CN108476379A (en) Information recording method and information record carrier
CN105204713A (en) Incoming call responding method and device
CN109769191A (en) Audio output detection method and device, electronic equipment
CN109241488A (en) Bottom is made an uproar calculation method and device, computer readable storage medium
CN106488132A (en) Photographic method and device
CN106775240A (en) The triggering method of application program, device and terminal
CN109271292A (en) Power consumption information acquisition method and device
CN109862171A (en) Terminal equipment control method and device
CN105657676A (en) Information reminding method and device
CN108446074A (en) Position of touch reminding method and 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