CN110035379A - A kind of localization method and terminal device - Google Patents

A kind of localization method and terminal device Download PDF

Info

Publication number
CN110035379A
CN110035379A CN201910245780.9A CN201910245780A CN110035379A CN 110035379 A CN110035379 A CN 110035379A CN 201910245780 A CN201910245780 A CN 201910245780A CN 110035379 A CN110035379 A CN 110035379A
Authority
CN
China
Prior art keywords
noise
terminal device
target
noise range
range
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
Application number
CN201910245780.9A
Other languages
Chinese (zh)
Other versions
CN110035379B (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910245780.9A priority Critical patent/CN110035379B/en
Publication of CN110035379A publication Critical patent/CN110035379A/en
Application granted granted Critical
Publication of CN110035379B publication Critical patent/CN110035379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S5/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/02Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations using radio waves
    • G01S5/0252Radio frequency fingerprinting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds

Abstract

The embodiment of the invention provides a kind of localization method and terminal devices, are related to field of communication technology, and the navigation results to solve the problems, such as existing terminal device are not accurate enough.This method comprises: obtaining target noise value, which is the noise figure in terminal device current environment;And determine the first noise range, which is noise range corresponding with first position, which is the highest position of recommended priority at least two positions, which is the position positioned to terminal device;And according to target noise value and the first noise range, target position is determined, which is first position or the second position, which is position different from first position at least two positions;And by the highest position correction of recommended priority be target position.This method can be applied in the positioning scene of terminal device.

Description

A kind of localization method and terminal device
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of localization methods and terminal device.
Background technique
With will be used wider and wider for terminal device, user increasingly promotes the convenience of using terminal equipment.
Currently, map class or navigation type software in terminal device can be used in user, positioning, navigation etc. are conveniently realized Purpose.Specifically, terminal device can be determined by global positioning system (Global Positioning System, GPS) The real time position of terminal device, and support circuit query and real-time navigation of the user under the scenes such as walking, public transport or self-driving.
However, due to network delay, between different base station the factors such as switching, signal interference influence, often make terminal The data that equipment obtains are inaccurate, so that the positioning result of terminal device is not accurate enough.
Summary of the invention
The embodiment of the present invention provides a kind of localization method and terminal device, to solve the positioning result of existing terminal device not Enough accurate problems.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows:
In a first aspect, being applied to terminal device, this method comprises: obtaining the embodiment of the invention provides a kind of localization method Target noise value is taken, which is the noise figure in terminal device current environment;And determine the first noise range, First noise range is noise range corresponding with first position, which is recommended priority at least two positions Highest position, at least two position are the position positioned to terminal device;And it is made an uproar according to target noise value and first Sound range, determines target position, which is first position or the second position, which is at least two positions The position different from first position;And by the highest position correction of recommended priority be target position.
Second aspect, the embodiment of the invention provides a kind of terminal device, which includes obtaining module, determining mould Block and correction module.Module is obtained for obtaining target noise value, which is in terminal device current environment Noise figure.For determining module for determining the first noise range, which is noise model corresponding with first position It encloses, which is the highest position of recommended priority at least two positions, which is to terminal device Position obtained position.Determining module is also used to according to first noise range and obtains the target noise value of module acquisition, Determine target position, which is first position or the second position, which is at least two position and should The different position in first position.Correction module is used to be the determining mesh of determining module by the highest position correction of recommended priority Cursor position.
The third aspect, the embodiment of the invention provides a kind of terminal device, the terminal device include processor, memory and The computer program that can be run on a memory and on a processor is stored, is realized when which is executed by processor The step of stating the localization method in first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Computer program is stored in matter, which realizes the step of the localization method in above-mentioned first aspect when being executed by processor Suddenly.
In embodiments of the present invention, (the target noise value is that terminal device is presently in ring to available target noise value Noise figure in border);And determine that (first noise range is noise range corresponding with first position to the first noise range, should First position is the highest position of recommended priority at least two positions, which is to be positioned to terminal device The position arrived);And according to target noise value and the first noise range, determine target position (target position be first position or The second position, the second position are position different from first position at least two positions);And it is recommended priority is highest Position correction is target position.With this solution, the base of multiple recommended locations terminal device positioned in positioning system On plinth, the noise figure and noise model corresponding with the highest position of recommended priority of terminal device current environment are taken into consideration It encloses, is made an uproar by judging whether the noise figure of terminal device current environment is in corresponding with the highest position of recommended priority Within the scope of sound, determine the highest position of recommended priority whether accurate positioning.Further, terminal device can will be recommended preferential The highest position correction of grade is target position.In this way, the embodiment of the present invention can promote the accurate of the positioning result of terminal device Degree.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention;
Fig. 2 is one of the schematic diagram of localization method provided in an embodiment of the present invention;
Fig. 3 is one of the interface schematic diagram of localization method provided in an embodiment of the present invention application;
Fig. 4 is showing for the corresponding relationship list of the position that localization method provided in an embodiment of the present invention is applied and noise range One of be intended to;
Fig. 5 is the two of the schematic diagram of localization method provided in an embodiment of the present invention;
Fig. 6 is the two of the interface schematic diagram of localization method provided in an embodiment of the present invention application;
Fig. 7 is the three of the schematic diagram of localization method provided in an embodiment of the present invention;
Fig. 8 is showing for the corresponding relationship list of the position that localization method provided in an embodiment of the present invention is applied and noise range The two of intention;
Fig. 9 is the four of the schematic diagram of localization method provided in an embodiment of the present invention;
Figure 10 is the five of the schematic diagram of localization method provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram of terminal device provided in an embodiment of the present invention;
Figure 12 is the hardware schematic of terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
The terms "and/or" is a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, For example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Symbol herein "/" indicates that affiliated partner is relationship such as A/B expression A or B perhaps.
Term " first " and " second " in description and claims of this specification etc. are for distinguishing different pairs As, rather than it is used for the particular order of description object.For example, first position and second position etc. are for distinguishing different positions It sets, rather than the particular order for describing position.
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport Related notion is being presented in specific ways.
In the description of the embodiment of the present invention, unless otherwise indicated, the meaning of " plurality " is refer to two or more, For example, multiple processing units refer to two or more processing unit etc..
The embodiment of the present invention provides a kind of localization method and terminal device, available target noise value (target noise Value is the noise figure in terminal device current environment);And determine the first noise range (first noise range be and first The corresponding noise range in position, the first position are the highest position of recommended priority at least two positions, this at least two Position is the position positioned to terminal device);And according to target noise value and the first noise range, target position is determined (target position is first position or the second position, which is position different from first position at least two positions It sets);And by the highest position correction of recommended priority be target position.With this solution, fixed to terminal device in positioning system On the basis of the obtained multiple recommended locations in position, take into consideration terminal device current environment noise figure and with recommend it is preferential The corresponding noise range in the highest position of grade, by judging whether the noise figure of terminal device current environment is in and recommendation In the corresponding noise range in the position of highest priority, determine the highest position of recommended priority whether accurate positioning.Further , the highest position correction of recommended priority can be target position by terminal device.In this way, the embodiment of the present invention can be promoted The precision of the positioning result of terminal device.
Terminal device in the embodiment of the present invention can be the terminal device with operating system.The operating system can be Android (Android) operating system can be ios operating system, can also be other possible operating systems, and the present invention is implemented Example is not especially limited.
Below by taking Android operation system as an example, software applied by localization method provided in an embodiment of the present invention is introduced Environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program In the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The software program of localization method provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, so that this is fixed Position method can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal device can be by Androids The software program is run in operating system realizes localization method provided in an embodiment of the present invention.
Terminal device in the embodiment of the present invention can be mobile terminal, or immobile terminal.Illustratively, it moves Dynamic terminal can be mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device, super movement People's computer (ultra-mobile personal computer, UMPC), net book or personal digital assistant (personal Digital assistant, PDA) etc., immobile terminal can be personal computer (personal computer, PC), electricity Depending on machine (television, TV), automatic teller machine or self-service machine etc., the embodiment of the present invention is not especially limited.
The executing subject of localization method provided in an embodiment of the present invention can be above-mentioned terminal device, or the end It can be realized the functional module and/or functional entity of the localization method in end equipment, it specifically can be according to actual use demand It determines, the embodiment of the present invention is not construed as limiting.Below by taking terminal device as an example, localization method provided in an embodiment of the present invention is carried out Illustrative explanation.
As shown in Fig. 2, the embodiment of the present invention provides a kind of localization method, which may include following steps 200- step 203.
Step 200, terminal device obtain target noise value.
Wherein, which is the noise figure in terminal device current environment.
In the embodiment of the present invention, if terminal device enables navigation feature or positioning function, terminal device can at this time To detect making an uproar in (such as real-time detection) terminal device current environment using the microphone sensor built in terminal device Sound value (i.e. above-mentioned target noise value);Other possible sensors can also be used, are detected in terminal device current environment Noise figure, specifically can determine that the embodiment of the present invention be not construed as limiting according to actual use demand.
Wherein, noise figure is the numerical value for measuring noise power, and unit is usually decibel (dB).
Step 201, terminal device determine the first noise range, which is noise corresponding with first position Range, the first position are the highest position of recommended priority at least two positions.
Wherein, above-mentioned at least two position is the position positioned to terminal device.
In the embodiment of the present invention, if terminal device enables navigation feature or positioning function, terminal device can at this time To position in real time by positioning system (such as GPS) to terminal device, the real time position of terminal device is obtained.
It should be noted that since the setting accuracy of GPS is about 10 meters of orders of magnitude, by GPS to terminal device Positioning may be inaccurate, it will usually which positioning obtains at least two positions, this at least two position may be incorporated for instruction terminal The real time position of equipment.Hereinafter, at least two positions are also referred to as multiple recommended locations.
In the embodiment of the present invention, terminal device can determine the recommended priority of this at least two position, and according to recommendation Priority successively sorts, i.e., the high position of recommended priority comes front, and the low position of recommended priority comes below.For example, The highest position of recommended priority comes foremost at least two positions.
Illustratively, as shown in figure 3, terminal device currently has turned on positioning function.Wherein, GPS positions terminal device Obtained position is indicated by positioning identifier 31, and current interface shows higher at least two position of recommended priority 32, " street A ", " cell A ", " cell B ", " market A " as shown in Figure 3, this at least two position is according to recommended priority It is arranged successively.Wherein, the recommended priority highest of " street A ", arrangement is up front.That is, what GPS positioned terminal device Position is currently recommended as " street A ".
Further, terminal device can be according to the highest position of recommended priority at least two positions (i.e. above-mentioned One position), determine noise range (i.e. above-mentioned first noise range) corresponding with first position.
Optionally, in the embodiment of the present invention, above-mentioned first position can be recommended priority highest at least two positions Position, or in the electronic map that terminal device is shown positioning identifier indicate position, can also be at least two Other any possible positions in setting, can specifically determine, the embodiment of the present invention is not construed as limiting according to actual use demand.
The corresponding relationship that position and noise range can be stored in advance in the embodiment of the present invention, in terminal device (such as arranges Table), i.e. the corresponding noise range in a position.Illustratively, Fig. 4 shows the corresponding relationship of above-mentioned position and noise range The schematic diagram of list.
In the embodiment of the present invention, in situation known to position, it can be based on preset corresponding relationship, determination is known with this The corresponding noise range in position.
As an example it is assumed that the highest position of recommended priority is that certain cell is (first i.e. above-mentioned at least two positions Set), then terminal device can corresponding relationship list according to Fig.4, determine noise range corresponding with the first position For [10dB, 35dB).
Again as an example it is assumed that the highest position of recommended priority is certain street (i.e. above-mentioned first at least two positions Position), then terminal device can corresponding relationship list according to Fig.4, determine noise model corresponding with the first position Enclose for [60dB, 110dB).
It is appreciated that each position shown in Fig. 4 and its corresponding noise range are exemplary and enumerate, i.e., it is of the invention Embodiment includes but is not limited to the above-mentioned each position enumerated and its corresponding noise range.In actual implementation, above-mentioned position with The corresponding relationship of noise range can also include other any possible position i.e. its corresponding noise range, specifically can basis Actual use demand determines that the embodiment of the present invention is not construed as limiting.
It should be noted that the embodiment of the present invention can not limit step 200 and step 201 execute sequence.That is this hair Bright embodiment can first carry out step 200, rear to execute step 201;Step 201 can also be first carried out, it is rear to execute step 200;Also It may be performed simultaneously step 200 and step 201.It is appreciated that above-mentioned Fig. 2 is to first carry out execution step 201 after step 200 and be Illustrate meaning.
Step 202, terminal device determine target position according to target noise value and the first noise range.
Wherein, the target position can be first position or the second position, the second position be at least two positions in The different position in first position.
In the embodiment of the present invention, terminal device can incite somebody to action after obtaining target noise value and the first noise range of determination Target noise value is compared with the first noise range, to judge whether target noise value is in the first noise range, and root It is judged that result determines target position.
Optionally, in conjunction with Fig. 2, as shown in figure 5, above-mentioned step 202 specifically can be by following in the embodiment of the present invention Step 202a and step 202b or step 202a and step 202c realize.
Step 202a, terminal device judges whether target noise value is in the first noise range.
In the embodiment of the present invention, if terminal device judges that target noise value is in the first noise range, terminal device Following step 202b can be continued to execute;If terminal device judges that target noise value is not in the first noise range, eventually End equipment, which can return, continues to execute above-mentioned step 202c.
Step 202b, first position is determined as target position by terminal device.
In the embodiment of the present invention, if terminal device judges that target noise value is in the first noise range, terminal device It can determine that first position is target position.
Illustratively, it is assumed that the target noise value detected is 20dB, and assumes that first position is cell A With determine corresponding with first position the first noise range for [10dB, 35dB), then terminal device may determine that target noise Value in the first noise range, this indicate at this time with the position that first position instruction terminal equipment is presently in be accurately, Thus terminal device can determine that first position is target position.
Step 202c, terminal device determines second from least two positions according to the information of at least two positions It sets, and the second position is determined as target position.
In the embodiment of the present invention, if terminal device judges that target noise value is not in the first noise range, terminal is set It is standby to determine that the position different from first position is (i.e. above-mentioned according to the information of at least two positions, from least two positions The second position) it is target position.
Illustratively, it is assumed that the target noise value detected is 20dB, and assumes that first position is street A With determine corresponding with first position the first noise range for [60dB, 110dB), then terminal device may determine that target noise Value is not in the first noise range, and the position that this expression is presently in first position instruction terminal equipment at this time is not quasi- enough Really, it needs that the highest position of recommended priority is modified and (is modified to the second position by first position), thus terminal is set It is standby to determine that the second position is target position.
It should be noted that terminal device can select the above-mentioned step 202b of an execution and step in the embodiment of the present invention 202c, i.e. terminal device, which can execute above-mentioned step 202b or terminal device, can execute above-mentioned step 202c.
The highest position correction of recommended priority is target position by step 203, terminal device.
In the embodiment of the present invention, with reference to Fig. 3, due to there is certain miss by positioning result of the positioning system to terminal device The reason of difference, " street A " is not necessarily the real time position of terminal device, here " street A ", " cell A ", " cell B ", " market Any position in A " all may be the real time position of terminal device, therefore terminal device can be to the highest position of recommended priority It sets and is modified, i.e., be the mesh determined according to target noise value and the first noise range by the highest position correction of recommended priority Cursor position.
On the one hand, in the embodiment of the present invention, if terminal device determines that first position is target position, terminal device can be with It is first position by the highest position correction of recommended priority, i.e. the highest position of recommended priority is still first position.
On the other hand, in the embodiment of the present invention, if terminal device determines that the second position is target position, terminal device can The highest position of recommended priority is modified to the second position by first position.
It in the embodiment of the present invention, is co-located by using the microphone of GPS positioning and terminal device, increases accurate positioning Property, to optimize map navigation system.Recommended location is first obtained using GPS positioning, determines noise corresponding with the recommended location Range;And the noise figure of terminal device current environment is obtained by microphone;Then, judge that terminal device is presently in Whether whether the noise figure of environment accurate with the recommended location for judging that positioning obtains in the noise range, and for inaccuracy Recommended location be modified, so as to promoted terminal device positioning result precision.
Localization method provided in an embodiment of the present invention, (the target noise value is terminal device to available target noise value Noise figure in current environment);And determine that (first noise range is makes an uproar corresponding with first position to the first noise range Sound range, the first position are the highest position of recommended priority at least two positions, which is to terminal The position that equipment positions);And according to target noise value and the first noise range, determine that (target position is for target position First position or the second position, the second position are position different from first position at least two positions);And it will recommend excellent The first highest position correction of grade is target position.With this solution, it multiple is pushed away in positioning system to what terminal device positioned On the basis of recommending position, take into consideration terminal device current environment noise figure and with the highest position pair of recommended priority The noise range answered, by judging whether the noise figure of terminal device current environment is in and the highest position of recommended priority Set in corresponding noise range, determine the highest position of recommended priority whether accurate positioning.Further, terminal device can be with It is target position by the highest position correction of recommended priority.In this way, the embodiment of the present invention can promote the positioning of terminal device As a result precision.
In the embodiment of the present invention, judge that target noise value is not in the first noise range in terminal device, needs to pushing away It recommends in the case that the highest position of priority is modified, terminal device is first according to the information of at least two positions, from least In two positions, the second position is determined, the highest position of recommended priority is then modified to the second position by first position, In, the method for how determining the second position about terminal device specifically may refer to following first embodiment and the second implementation Mode.
First embodiment
Optionally, in the embodiment of the present invention, the information of above-mentioned at least two position may include: (1) above-mentioned at least two The coordinate of position and (2) noise range corresponding at least two position.In the case, terminal device can basis The coordinate of above-mentioned at least two position and noise range corresponding at least two position, from least two positions, really Determine the second position.
For above-mentioned (1), in the embodiment of the present invention, known above-mentioned multiple recommended locations coordinate (such as by GPS positioning Obtain the longitude and latitude of multiple recommended locations) in the case where, terminal device can using first position coordinate and multiple recommendation positions The coordinate of each position in setting calculates the distance between each position in first position and multiple recommended locations, so may be used Obtain multiple distance values.
Further, terminal device can by multiple recommended locations with the distance between first position within a preset range Position, be determined as at least one alternate location, i.e., the distance between at least one alternate location and first position are in default model In enclosing.Wherein, the specific value of preset range can determine that the embodiment of the present invention is not construed as limiting according to actual use demand.
Illustratively, terminal device can will with the distance between first position be minimum range in multiple recommended locations Position is determined as alternate location.That is, the distance between alternate location and first position value are the minimum value in multiple distance values.
In the embodiment of the present invention, terminal device can make an uproar target noise value is corresponding at least one above-mentioned alternate location Sound range is compared, if target noise value is in the corresponding noise of an alternate location at least one above-mentioned alternate location In range, then an alternate location can be determined as the second position by terminal device.I.e. target noise value is in the second noise In range, which is noise range corresponding with the second position.
In conclusion terminal device can first judge which position and first in multiple recommended locations in conjunction with (1) and (2) These positions within a preset range, and are determined as at least one alternate location by the distance between position;Then, terminal device can To judge that target noise value is at least one above-mentioned alternate location in the corresponding noise range of which alternate location, and will The alternate location, is determined as the second position.
Alternatively, terminal device can first judge the corresponding noise in which position in multiple recommended locations in conjunction with (1) and (2) Range covers target noise value, these positions are determined as at least one alternate location;Then, terminal device may determine that at least In one alternate location the distance between which alternate location and first position within a preset range, then by the alternate location, It is determined as the second position.
For example, in conjunction with Fig. 3, as shown in Figure 6, it is assumed that user is currently at " cell A ", at this time ring locating for terminal device The noise figure (i.e. target noise value) in border is 20dB, and the highest position of recommended priority is street A (its corresponding first noise Range be [60dB, 110dB), then terminal device may determine that target noise value is not in the first noise range, this expression The position being presently at this time with first position instruction terminal equipment is not accurate enough, need to the highest position of recommended priority into Row amendment.
Further, terminal device can select at least one alternate location in multiple recommended locations, such as first judge The corresponding noise range in which position covers target noise value in multiple recommended locations, and it is standby that these positions are determined as at least one Bit selecting sets (such as " cell A " and " cell B ", the corresponding noise range of cell cover target noise value);Then, from least one With street A apart from nearest position (such as " cell A "), which is target position for selection in a alternate location.Ginseng Fig. 3 and Fig. 6 are examined, the highest position of recommended priority can be modified to " cell A " from " street A " by terminal device.
It should be noted that Fig. 3 is shown for exemplary illustration correction result, in actual implementation, the present invention is real Interface shown in fig. 6 can not be shown by applying in position fixing process in example, but directly display revised interface shown in fig. 6, be supplied User checks.
Second embodiment
Optionally, in the embodiment of the present invention, the information of above-mentioned at least two position includes the mark of above-mentioned at least two position Know.
Specifically, in conjunction with Fig. 5, as shown in fig. 7, after above-mentioned step 202a, and before step 202c, this hair The localization method that bright embodiment provides can also include the steps that following 202d.Correspondingly, above-mentioned step 202c specifically can be with It is realized by following step 202c1 and step 202c2.
Step 202d, terminal device obtains the first image, which is to shoot to terminal device current environment Obtained image.
In the embodiment of the present invention, in the case where target noise value is not at the first noise range, terminal device can be right The shooting of terminal device current environment obtains the first image, and carries out image analysis to the first image.
Step 202c1, terminal device is according to the mark and the first image of at least two positions, from least two positions, Determine at least one alternate location.
Optionally, in the embodiment of the present invention, the mark of above-mentioned at least two position can be title, can also be with address, also It can be other marks that arbitrarily may indicate that position, specifically can determine that the embodiment of the present invention is not according to actual use demand It limits.Illustratively, with reference to Fig. 6, multiple recommended locations are with " street A ", " cell A ", " cell B ", " market A " etc. respectively Title distinguishes home position.
Optionally, in the embodiment of the present invention, above-mentioned step 202c1 specifically can be real by following step 1- steps 3 It is existing.
Step 1, terminal device determine the first object of the first image instruction.
Wherein, the first object can refer to content in the first image, such as high building, street, flowers, plants and trees etc..Assuming that first Object includes road and vehicle, this indicates user currently on street;Or, it is assumed that the first object includes high building, flowers and plants and youngster Child, this indicates that user currently in cell, is only exemplary here for example, specifically can be true according to actual use demand Fixed, the embodiment of the present invention is not construed as limiting.
Step 2, terminal device are according to the marks of at least two positions, from least two positions, determine and are used to indicate the At least one mark of an object.
Wherein, at least two positions (i.e. multiple recommended locations) respectively identifies for corresponding one.For example, with reference to Fig. 6, it is multiple to push away It recommends position and respectively corresponds the mark such as " street A ", " cell A ", " cell B ", " market A ".
At least one is identified corresponding position and is determined as at least one alternate location by step 3, terminal device.
Step 202c2, terminal device is determined from least one alternate location according to the information of at least one alternate location The second position is determined as target position by the second position.
Wherein, the information of at least one above-mentioned alternate location includes the coordinate of at least one alternate location.
Specifically, terminal device can coordinate using at least one alternate location and recommended priority highest position Coordinate calculates the distance between at least one alternate location and the highest position of recommended priority, and will be with recommended priority most The nearest position of high positional distance is determined as the second position, and the second position is determined as target position.
Below with reference to Fig. 6, example illustrates the present invention the step 202d-202c2 in the localization method of embodiment offer Specific implementation.
Assuming that multiple recommended locations include street A, cell A, cell B and market A (corresponding mark be respectively " street A ", " cell A ", " cell B " and " market A "), the first object of the first image instruction includes high building, flowers and plants and children, then terminal Equipment can determine that be used to indicate the first object in multiple recommended locations is identified with " cell A " and " cell B ".Terminal as a result, Cell A and cell B can be determined as at least one alternate location by equipment.Further, terminal device can calculate cell A and The distance between cell B and the highest position of recommended priority.Compared with cell B, cell A and the highest position of recommended priority It is closer, therefore cell A can be determined as the second position by terminal device, and the second position is determined as target position.
It should be noted that terminal device can select the above-mentioned step 202b of an execution and step in the embodiment of the present invention 202d- step 202c2, i.e. terminal device, which can execute above-mentioned step 202b or terminal device, can execute above-mentioned step Rapid 202d- step 202c2.
Optionally, in the embodiment of the present invention, first position corresponds to first object noise range and the second target noise range, The first object noise range is the corresponding noise range in first position in first time period, which is the The corresponding noise range in first position in two periods.
Illustratively, it is assumed that first position is street, due to daytime street noise figure it is larger, in making an uproar for night street Sound value is smaller, therefore street can correspond to the noise range in daytime and at night two different periods.As shown in figure 8,06: In the period of 00-23:00 the corresponding noise range in street be [80dB, 110dB), the street within the period of 23:00-06:00 The corresponding noise range in road be [60dB, 80dB).
Correspondingly, above-mentioned step 201 can specifically be realized by following step 201a- step 201c.
Step 201a, terminal device determines the object time, which is the current system time of terminal device.
Step 201b, in the case where the object time is in first time period, terminal device is by first object noise range It is determined as target noise range.
Step 201c, in the case where the object time is in second time period, terminal device is by the second target noise range It is determined as target noise range.
Example illustrates the present invention the specific of the step 201a- step 201c in the localization method of embodiment offer below Implementation.
Assuming that the current system time of terminal device is 14:20, then terminal device can compare shown in Fig. 8 corresponding close Series of tables, determine the object time within the period of 06:00-23:00, further, terminal device by noise range [80dB, 110dB) it is determined as target noise range.
Assuming that the current system time of terminal device is 23:30, then terminal device can compare shown in Fig. 8 corresponding close Series of tables, determine the object time within the period of 23:00-06:00, further, terminal device by noise range [60dB, 80dB) it is determined as target noise range.
It, can be with since specific position corresponds to different noise ranges in different time period in the embodiment of the present invention First judge terminal device present system time in a certain period of time, further according to corresponding noise range in the certain time period, The noise figure of terminal device current environment is judged whether in the noise range, is with the recommended location for judging that positioning obtains It is no accurate, and the recommended location of inaccuracy is modified, it can so promote the precision of the positioning result of terminal device.
It optionally,, can be with other than using the corresponding relationship of above-mentioned position and noise range in the embodiment of the present invention Utilize the corresponding relationship of location information and noise range.Correspondingly, above-mentioned step 201 can also specifically pass through following steps 201d and step 201e is realized.
Step 201d, terminal device obtains first location information, which is used to indicate first position.
Step 201e, noise range corresponding with first location information is determined as the first noise range by terminal device.
In the embodiment of the present invention, by the corresponding relationship using location information and noise range, in known position information In the case of, it determines noise range corresponding with the location information, further judges the noise figure of terminal device current environment Whether in the noise range, to judge whether the obtained recommended location of positioning accurate, and for the recommended location of inaccuracy into Row amendment, can so promote the precision of the positioning result of terminal device.
Localization method provided in an embodiment of the present invention mainly uses GPS positioning, and obtains terminal device week using microphone Side sound carries out auxiliary positioning.Localization method provided in an embodiment of the present invention can solve following several scene position inaccurates The problem of:
Scene 1: people station is in roadside, but positioning is but shown in the cell of side
In GPS positioning to cell, obtaining terminal device periphery using microphone at this time has than stronger noise, and recommends Position location cell noise figure it is smaller, the two noise figure is inconsistent, then can determine that GPS positioning is wrong, can be fixed Original GPS positioning position of cell is arrived in position, is optimized on the road side nearest from the cell.
Scene 2: people at home, but positions and has but navigated on road
Such case is similar with scene 1, in GPS positioning to road, obtains family locating for terminal device by microphone at this time In sound.By quieter at home, noise figure is smaller, and the noise figure for the position location road recommended is larger, and the two is made an uproar Sound value is inconsistent, then can determine that GPS positioning is wrong, position location is adapted in cell nearest nearby.
Scene 3: drive navigation when, frequently encounter crossing crossed just prompt need to turn
Scene 3 is since GPS positioning causes slowly excessively.It can be positioned at this time by means of microphone assistant GPS.Because encountering It turns, general vehicle can slow down, and wind interior in this way is made an uproar and can be reduced, and detour is generally accompanied with crossing, and vehicle can increase, periphery vehicle hair Motivation noise will increase, and passes through microphone and obtains noise figure and change auxiliary positioning according to noise, to identified in advance into curved, mentions Before provide turning prompt, avoid missing.
Scene 4: user looks for the bus towards corresponding destination in bus stop, by Mobile Telephone Gps
Status is often position inaccurate, and user is not navigated to current bus station, but from bus stop tens Except rice, user is guided first to go to current bus station or go to other bus stop, user will also select current location by hand How destination is gone to, it is very inconvenient.
In the embodiment of the present invention, after increasing microphone detection noise figure, so that it may obtain bus stop by microphone The sound characteristic on periphery has exchange if people, has relevant bus and enters the station brake, the sound such as outbound starting, to identify User is directly targeted to bus platform in the nearest bus stop of GPS positioning out.
Scene 5: walking navigation
The situation that this scene is similar to scene 1 and the positioning of scene 2 is not allowed, details are not described herein again.
Localization method provided in an embodiment of the present invention can be applied to terminal device, by using GPS positioning, and use wheat Gram wind auxiliary positioning, judges noise and the noise variation on terminal device periphery to identify user's surrounding scene, judges that GPS positioning is It is no accurate, to increase positioning accuracy.
In addition, can optimize in localization method provided in an embodiment of the present invention and obtain GPS coordinate interface, it can also be by each APP voluntarily realizes related GPS positioning auxiliary effect, takes the mobile phone as an example below, right respectively by following schemes one and scheme two Both of these case is illustrated.
Scheme one: optimization obtains GPS coordinate interface.It is to be obtained by interface that mobile phone, which obtains GPS method, at present.
For example, ios interface is that can be obtained in real time by calling CLLocationManager class by taking ISO as an example Terminal device is presently in the longitude and latitude of position.Code is as follows:
This programme is modification CLLocationManager class didUpdateLocations interface, incoming when calling interface Whether microphone auxiliary positioning parameter is needed.It can default and not need;If it is required, then after obtaining GPS positioning position, directly Mobile microphone audio is obtained again, then compares microphone audio and whether the corresponding noise range in position location is consistent.Than Such as on road side, noise is not less than 40 decibels.If the corresponding noise range of microphone audio and position location is not met, GPS positioning coordinate is then reacquired, microphone audio is compared again and whether the corresponding noise range in position location is consistent.Such as Fruit is inconsistent again, then corrects positioning coordinate.For example, if obtaining GPS positioning is and to obtain mobile microphone noise on road side and be It 20 decibels, then will be in GPS positioning coordinate Automatic Optimal (amendment) to cell nearest nearby.Specific implementation process may refer to figure 9。
It should be noted that this programme is itself SDK of IOS or Android update, use APP developer simple, it is noninductive Know, no existing application code of modification still uses original acquisition coordinate interface.In addition, IOS SDK update needs apple exploit person Member's exploitation, Android SKD exploitation need Google related personnel to develop.
Scheme two: each APP voluntarily realizes related GPS positioning auxiliary effect
The program is does not modify ISO or Android interface itself, but APP is applied after obtaining GPS positioning coordinate, then Obtain mobile microphone audio, then judge microphone acquisition noise figure whether in the corresponding noise range in position location, That is the two noise figure is inconsistent.If noise figure is inconsistent, a GPS location is reacquired, judges what microphone obtained again Noise figure, if noise figure is still inconsistent, corrects positioning coordinate, specifically whether in the corresponding noise range in position location Realization process may refer to Figure 10.
As shown in figure 11, the embodiment of the present invention provides a kind of terminal device 700, which may include obtaining Module 701, determining module 702 and correction module 703.Module 701 is obtained for obtaining target noise value, which is Noise figure in 700 current environment of terminal device.Determining module 702 is for determining the first noise range, first noise Range is noise range corresponding with first position, which is the highest position of recommended priority at least two positions It sets, which is to position obtained position to terminal device 700.Determining module 702 is also used to first be made an uproar according to this Sound range and the target noise value for obtaining the acquisition of module 701, determine target position, which is first position or second Position, the second position are position different from the first position at least two position.Correction module 703 will be for that will recommend The position correction of highest priority is the target position that determining module 702 determines.
Optionally, in the embodiment of the present invention, determining module 702 is specifically used for being in the first noise range in target noise value In the case where interior, first position is determined as target position;Alternatively, being not at the feelings in the first noise range in target noise value Under condition, according to the information of above-mentioned at least two position, from above-mentioned at least two position, determine the second position, and by this second Position is determined as target position.
Optionally, in the embodiment of the present invention, the information of above-mentioned at least two position may include: at least two position Coordinate and noise range corresponding at least two position.Wherein, the distance between the second position and first position exist In preset range, and target noise value is in the second noise range, which is make an uproar corresponding with the second position Sound range.
Optionally, in the embodiment of the present invention, the information of above-mentioned at least two position may include: at least two position Mark.Correspondingly, it obtains module 701 to be also used in the case where target noise value is not at the first noise range, obtains first Image, first image are the image shot to 700 current environment of terminal device.Determining module 702 is specifically used for According to the mark of at least two positions and the first image, from least two positions, at least one alternate location is determined;And according to The information of at least one alternate location determines the second position, and the second position is true from least one alternate location It is set to target position;Wherein, the information of at least one alternate location includes the coordinate of at least one alternate location.
Optionally, in the embodiment of the present invention, determining module 702 is specifically used for first pair that determines above-mentioned first image instruction As;And according to the mark of above-mentioned at least two position, from least two positions, determination is used to indicate first object at least One mark;And at least one corresponding position of mark is determined as at least one above-mentioned alternate location by this.
Optionally, in the embodiment of the present invention, first position corresponds to first object noise range and the second target noise range, The first object noise range is the corresponding noise range in first position in first time period, which is the The corresponding noise range in first position in two periods.Determining module 702 is specifically used for determining that object time, the object time are The current system time of terminal device 700;And in the case where the object time is in first time period, by the first object Noise range is determined as target noise range;Alternatively, in the case where the object time is in second time period, by second mesh Mark noise range is determined as target noise range.
Terminal device provided in an embodiment of the present invention can be realized terminal device in above method embodiment realize it is each Process, to avoid repeating, which is not described herein again.
Terminal device provided in an embodiment of the present invention, (the target noise value is terminal device to available target noise value Noise figure in current environment);And determine that (first noise range is makes an uproar corresponding with first position to the first noise range Sound range, the first position are the highest position of recommended priority at least two positions, which is to terminal The position that equipment positions);And according to target noise value and the first noise range, determine that (target position is for target position First position or the second position, the second position are position different from first position at least two positions);And it will recommend excellent The first highest position correction of grade is target position.With this solution, it multiple is pushed away in positioning system to what terminal device positioned On the basis of recommending position, take into consideration terminal device current environment noise figure and with the highest position pair of recommended priority The noise range answered, by judging whether the noise figure of terminal device current environment is in and the highest position of recommended priority Set in corresponding noise range, determine the highest position of recommended priority whether accurate positioning.Further, terminal device can be with It is target position by the highest position correction of recommended priority.In this way, the embodiment of the present invention can promote the positioning of terminal device As a result precision.
A kind of hardware structural diagram of Figure 12 terminal device of each embodiment to realize the present invention.As shown in figure 12, The terminal device 800 includes but is not limited to: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, processor 810, with And the equal components of power supply 811.It will be understood by those skilled in the art that the not structure paired terminal of terminal device structure shown in Figure 12 The restriction of equipment, terminal device may include perhaps combining certain components or different than illustrating more or fewer components Component layout.In embodiments of the present invention, terminal device includes but is not limited to mobile phone, tablet computer, laptop, palm electricity Brain, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 810, for obtaining target noise value, which is terminal device current environment In noise figure;And determine the first noise range, which is noise range corresponding with first position, this first Position is the highest position of recommended priority at least two positions, which positions to obtain to terminal device Position;And according to target noise value and the first noise range, target position is determined, which is first position or second It sets, which is position different from first position at least two positions;And the highest position of recommended priority is repaired It is just target position.
The embodiment of the present invention provides a kind of terminal device, the available target noise value (target noise of the terminal device Value is the noise figure in terminal device current environment);And determine the first noise range (first noise range be and first The corresponding noise range in position, the first position are the highest position of recommended priority at least two positions, this at least two Position is the position positioned to terminal device);And according to target noise value and the first noise range, target position is determined (target position is first position or the second position, which is position different from first position at least two positions It sets);And by the highest position correction of recommended priority be target position.With this solution, fixed to terminal device in positioning system On the basis of the obtained multiple recommended locations in position, take into consideration terminal device current environment noise figure and with recommend it is preferential The corresponding noise range in the highest position of grade, by judging whether the noise figure of terminal device current environment is in and recommendation In the corresponding noise range in the position of highest priority, determine the highest position of recommended priority whether accurate positioning.Further , the highest position correction of recommended priority can be target position by terminal device.In this way, the embodiment of the present invention can be promoted The precision of the positioning result of terminal device.
It should be understood that the embodiment of the present invention in, radio frequency unit 801 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 810 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 801 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 801 can also by wireless communication system and network and other set Standby communication.
Terminal device 800 provides wireless broadband internet by network module 802 for user and accesses, and such as helps user It sends and receive e-mail, browse webpage and access streaming video etc..
Audio output unit 803 can be received by radio frequency unit 801 or network module 802 or in memory 809 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 803 can also provide and end The relevant audio output of specific function that end equipment 800 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 803 includes loudspeaker, buzzer and receiver etc..
Input unit 804 is for receiving audio or video signal.Input unit 804 may include graphics processor (graphicsprocessing unit, GPU) 8041 and microphone 8042, graphics processor 8041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 806.Through graphics processor 8041, treated that picture frame can be deposited Storage is sent in memory 809 (or other storage mediums) or via radio frequency unit 801 or network module 802.Mike Wind 8042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 801 is converted in the case where telephone calling model.
Terminal device 800 further includes at least one sensor 805, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 8061, and proximity sensor can close when terminal device 800 is moved in one's ear Display panel 8061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 805 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 806 is for showing information input by user or being supplied to the information of user.Display unit 806 can wrap Display panel 8061 is included, liquid crystal display (liquid crystal display, LCD), Organic Light Emitting Diode can be used Forms such as (organic light-emitting diode, OLED) configure display panel 8061.
User input unit 807 can be used for receiving the number or character information of input, and generate the use with terminal device Family setting and the related key signals input of function control.Specifically, user input unit 807 include touch panel 8071 and Other input equipments 8072.Touch panel 8071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 8071 or in touch panel 8071 Neighbouring operation).Touch panel 8071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 810, receiving area It manages the order that device 810 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 8071.In addition to touch panel 8071, user input unit 807 can also include other input equipments 8072.Specifically, other input equipments 8072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 8071 can be covered on display panel 8061, when touch panel 8071 is detected at it On or near touch operation after, send processor 810 to determine the type of touch event, be followed by subsequent processing device 810 according to touching The type for touching event provides corresponding visual output on display panel 8061.Although in Figure 12, touch panel 8071 and aobvious Show that panel 8061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 8071 and display panel 8061 and realize the function that outputs and inputs of terminal device, it is specific this Place is without limitation.
Interface unit 808 is the interface that external device (ED) is connect with terminal device 800.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 808 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 800 or can be used in 800 He of terminal device Data are transmitted between external device (ED).
Memory 809 can be used for storing software program and various data.Memory 809 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 809 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 810 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 809, and calls and is stored in storage Data in device 809 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Managing device 810 may include one or more processing units;Optionally, processor 810 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 810.
Terminal device 800 can also include the power supply 811 (such as battery) powered to all parts, optionally, power supply 811 Can be logically contiguous by power-supply management system and processor 810, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 800 includes some unshowned functional modules, details are not described herein.
Optionally, the embodiment of the present invention also provides a kind of terminal device, including processor 810 as shown in figure 12, storage Device 809 is stored in the computer program that can be run on memory 809 and on processor 810, and the computer program is by processor 810 realize each process of above-mentioned localization method embodiment when executing, and can reach identical technical effect, to avoid repeating, Which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned localization method embodiment when being executed by processor, and can reach Identical technical effect, to avoid repeating, which is not described herein again.Wherein, which may include read-only Memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or Person's CD etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method disclosed in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (14)

1. a kind of localization method is applied to terminal device, which is characterized in that the described method includes:
Target noise value is obtained, the target noise value is the noise figure in the terminal device current environment;
Determine that the first noise range, first noise range are noise range corresponding with first position, the first position For the highest position of recommended priority at least two positions, at least two position is to position to obtain to the terminal device Position;
According to the target noise value and first noise range, determine that target position, the target position are described first Position or the target position are the second position, the second position be at least two position with described first Set different positions;
It is the target position by the highest position correction of recommended priority.
2. the method according to claim 1, wherein described according to the target noise value and first noise Range determines target position, comprising:
In the case where the target noise value is in first noise range, the first position is determined as the mesh Cursor position;
In the case where the target noise value is not in first noise range, according to the letter of at least two position Breath, from least two position, determines the second position, and the second position is determined as the target position.
3. according to the method described in claim 2, it is characterized in that, the information of at least two position include: it is described at least The coordinate of two positions, noise range corresponding at least two position;
Wherein, the distance between the second position and the first position within a preset range, and at the target noise value In in the second noise range, second noise range is noise range corresponding with the second position.
4. according to the method described in claim 2, it is characterized in that, the information of at least two position include: it is described at least The mark of two positions;
The method also includes:
In the case where the target noise value is not at first noise range, the first image, the first image are obtained For the image shot to the terminal device current environment;
The information according at least two position determines the second position, and will from least two position The second position is determined as target position, comprising:
According to the mark and the first image of at least two position, from least two position, at least one is determined A alternate location;
The second position is determined from least one described alternate location according to the information of at least one alternate location, And the second position is determined as the target position;
Wherein, the information of at least one alternate location includes: the coordinate of at least one alternate location.
5. according to the method described in claim 4, it is characterized in that, the mark according at least two position and described First image determines at least one alternate location from least two position, comprising:
Determine the first object of the first image instruction;
According to the mark of at least two position, from least two position, determination is used to indicate first object At least one mark;
At least one described corresponding position of mark is determined as at least one described alternate location.
6. the method according to any one of claims 1 to 5, which is characterized in that the first position corresponds to first object Noise range and the second target noise range, the first object noise range are that the first position is corresponding in first time period Noise range, the second target noise range is the corresponding noise range in the first position in second time period;
The determining target noise range, comprising:
Determine that object time, the object time are the current system time of the terminal device;
In the case where the object time is in the first time period, the first object noise range is determined as described Target noise range;
In the case where the object time is in the second time period, the second target noise range is determined as described Target noise range.
7. a kind of terminal device, which is characterized in that the terminal device includes obtaining module, determining module and correction module;
The acquisition module, for obtaining target noise value, the target noise value is the terminal device current environment In noise figure;
The determining module, for determining that the first noise range, first noise range are noise corresponding with first position Range, the first position are the highest position of recommended priority at least two positions, and at least two position is to institute State the position that terminal device positions;
The determining module is also used to according to first noise range and the target noise for obtaining module and obtaining Value, determines target position, and the target position is the first position or the target position is the second position, described the Two positions are position different from the first position at least two position;
The correction module, for being the determining target position of the determining module by the highest position correction of recommended priority It sets.
8. terminal device according to claim 7, which is characterized in that the determining module is specifically used in the target In the case that noise figure is in first noise range, the first position is determined as the target position;Alternatively, In the case that the target noise value is not in first noise range, according to the information of at least two position, from In at least two position, the second position is determined.
9. terminal device according to claim 8, which is characterized in that the information of at least two position includes: described The coordinate of at least two positions, noise range corresponding at least two position;
Wherein, the distance between the second position and the first position within a preset range, and at the target noise value In in the second noise range, second noise range is noise range corresponding with the second position.
10. terminal device according to claim 8, which is characterized in that the information of at least two position includes: described The mark of at least two positions;
The acquisition module is also used in the case where the target noise value is not at first noise range, obtains the One image, the first image are the image shot to the terminal device current environment;
The determining module, specifically for the mark and the first image according at least two position, from it is described at least In two positions, at least one alternate location is determined;And according to the information of at least one alternate location, from described at least one In a alternate location, the second position is determined;Wherein, the information of at least one alternate location includes: described at least one The coordinate of a alternate location.
11. terminal device according to claim 10, which is characterized in that the determining module, described in determining First object of the first image instruction;And according to the mark of at least two position, from least two position, determine It is used to indicate at least one mark of first object;And by it is described at least one identify corresponding position be determined as it is described extremely A few alternate location.
12. terminal device according to any one of claims 7 to 11, which is characterized in that the first position corresponding the One target noise range and the second target noise range, the first object noise range are described first in first time period Corresponding noise range is set, the second target noise range is the corresponding noise model in first position described in second time period It encloses;
The determining module is specifically used for determining the object time, when the object time is the terminal device current system Between;And in the case where the object time is in the first time period, the first object noise range is determined as The target noise range;Alternatively, in the case where the object time is in the second time period, by second target Noise range is determined as the target noise range.
13. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 6 is realized when the computer program is executed by the processor Any one of described in localization method the step of.
14. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence realizes the step such as localization method described in any one of claims 1 to 6 when the computer program is executed by processor Suddenly.
CN201910245780.9A 2019-03-28 2019-03-28 Positioning method and terminal equipment Active CN110035379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910245780.9A CN110035379B (en) 2019-03-28 2019-03-28 Positioning method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910245780.9A CN110035379B (en) 2019-03-28 2019-03-28 Positioning method and terminal equipment

Publications (2)

Publication Number Publication Date
CN110035379A true CN110035379A (en) 2019-07-19
CN110035379B CN110035379B (en) 2020-08-25

Family

ID=67236902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910245780.9A Active CN110035379B (en) 2019-03-28 2019-03-28 Positioning method and terminal equipment

Country Status (1)

Country Link
CN (1) CN110035379B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111415679A (en) * 2020-03-25 2020-07-14 Oppo广东移动通信有限公司 Site identification method, device, terminal and storage medium
CN115003885A (en) * 2020-01-24 2022-09-02 卡特彼勒公司 Noise-based dwell detection of implement for work machine

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020093452A1 (en) * 2000-05-31 2002-07-18 Mitsubishi Denki Kabushiki Kaisha/Magellan Corporation Global positioning system and global positioning apparatus
CN101595739A (en) * 2007-01-26 2009-12-02 微软公司 The multisensor auditory localization
CN101920762A (en) * 2009-06-09 2010-12-22 同济大学 Ship dynamic positioning method based on real-time correction of noise matrix
CN103794045A (en) * 2012-10-26 2014-05-14 高德软件有限公司 Real-time traffic information acquisition method and device, and vehicle-mounted equipment
CN104301534A (en) * 2014-10-09 2015-01-21 广东小天才科技有限公司 Method and device for intelligently adjusting scene mode of mobile terminal
CN104869541A (en) * 2015-06-11 2015-08-26 吉林大学 Indoor positioning tracking method
CN106358290A (en) * 2016-10-31 2017-01-25 广东欧珀移动通信有限公司 Detecting method for GPS positioning interference of mobile terminal, device and mobile terminal
CN106969762A (en) * 2017-01-12 2017-07-21 广州市泰斗鑫信息科技有限公司 A kind of Combinated navigation method for GNSS+INS+odo
CN108416996A (en) * 2018-04-28 2018-08-17 上海市城市建设设计研究总院(集团)有限公司 Sonic location system based on urban road affiliated facility and its application method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020093452A1 (en) * 2000-05-31 2002-07-18 Mitsubishi Denki Kabushiki Kaisha/Magellan Corporation Global positioning system and global positioning apparatus
CN101595739A (en) * 2007-01-26 2009-12-02 微软公司 The multisensor auditory localization
CN101920762A (en) * 2009-06-09 2010-12-22 同济大学 Ship dynamic positioning method based on real-time correction of noise matrix
CN103794045A (en) * 2012-10-26 2014-05-14 高德软件有限公司 Real-time traffic information acquisition method and device, and vehicle-mounted equipment
CN104301534A (en) * 2014-10-09 2015-01-21 广东小天才科技有限公司 Method and device for intelligently adjusting scene mode of mobile terminal
CN104869541A (en) * 2015-06-11 2015-08-26 吉林大学 Indoor positioning tracking method
CN106358290A (en) * 2016-10-31 2017-01-25 广东欧珀移动通信有限公司 Detecting method for GPS positioning interference of mobile terminal, device and mobile terminal
CN106969762A (en) * 2017-01-12 2017-07-21 广州市泰斗鑫信息科技有限公司 A kind of Combinated navigation method for GNSS+INS+odo
CN108416996A (en) * 2018-04-28 2018-08-17 上海市城市建设设计研究总院(集团)有限公司 Sonic location system based on urban road affiliated facility and its application method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115003885A (en) * 2020-01-24 2022-09-02 卡特彼勒公司 Noise-based dwell detection of implement for work machine
CN115003885B (en) * 2020-01-24 2023-10-27 卡特彼勒公司 Noise-based dwell detection method for an implement of a work machine
CN111415679A (en) * 2020-03-25 2020-07-14 Oppo广东移动通信有限公司 Site identification method, device, terminal and storage medium
CN111415679B (en) * 2020-03-25 2023-02-28 Oppo广东移动通信有限公司 Site identification method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN110035379B (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN108900714A (en) A kind of reminding method and terminal
CN109343759A (en) A kind of control method and terminal of the display of breath screen
CN109543099A (en) A kind of content recommendation method and terminal device
CN110221737A (en) A kind of icon display method and terminal device
CN108592939A (en) A kind of air navigation aid and terminal
CN108228882A (en) The recommendation method and terminal device of a kind of audition for the songs segment
CN110069180A (en) A kind of function control method and terminal device
CN108197934A (en) A kind of method of payment and terminal device
CN110099296A (en) A kind of information display method and terminal device
CN108828692A (en) A kind of weather prediction method and terminal device
CN109151176A (en) A kind of information acquisition method and terminal
CN108037885A (en) A kind of operation indicating method and mobile terminal
CN109189298A (en) A kind of language switching method and terminal
CN109343693A (en) A kind of brightness adjusting method and terminal device
CN109085963A (en) A kind of interface display method and terminal device
CN108898040A (en) A kind of recognition methods and mobile terminal
CN109358931A (en) A kind of interface display method and terminal
CN109816679A (en) A kind of image processing method and terminal device
CN108920054A (en) A kind of application recommended method and terminal
CN108917766A (en) A kind of air navigation aid and mobile terminal
CN108174109A (en) A kind of photographic method and mobile terminal
CN110035379A (en) A kind of localization method and terminal device
CN109067975A (en) A kind of method for managing contact person information and terminal device
CN109639880A (en) A kind of display method of weather information and terminal device
CN109246308A (en) A kind of method of speech processing and terminal 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