CN110035379B - Positioning method and terminal equipment - Google Patents

Positioning method and terminal equipment Download PDF

Info

Publication number
CN110035379B
CN110035379B CN201910245780.9A CN201910245780A CN110035379B CN 110035379 B CN110035379 B CN 110035379B CN 201910245780 A CN201910245780 A CN 201910245780A CN 110035379 B CN110035379 B CN 110035379B
Authority
CN
China
Prior art keywords
target
noise
noise range
determining
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910245780.9A
Other languages
Chinese (zh)
Other versions
CN110035379A (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Navigation (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The embodiment of the invention provides a positioning method and terminal equipment, relates to the technical field of communication, and aims to solve the problem that the navigation result of the conventional terminal equipment is not accurate enough. The method comprises the following steps: acquiring a target noise value, wherein the target noise value is a noise value in the current environment of the terminal equipment; determining a first noise range, wherein the first noise range is a noise range corresponding to a first position, the first position is a position with the highest recommended priority in at least two positions, and the at least two positions are positions obtained by positioning the terminal equipment; determining a target position according to the target noise value and the first noise range, wherein the target position is a first position or a second position, and the second position is a position different from the first position in at least two positions; and correcting the position with the highest recommendation priority as the target position. The method can be applied to the positioning scene of the terminal equipment.

Description

Positioning method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a positioning method and terminal equipment.
Background
Along with the wider application range of the terminal device, the convenience of the user for using the terminal device is increasingly improved.
At present, a user can use map software or navigation software in terminal equipment to conveniently achieve the purposes of positioning, navigation and the like. Specifically, the terminal device may determine a real-time location of the terminal device through a Global Positioning System (GPS), and support line inquiry and real-time navigation of the user in walking, public transportation, or self-driving scenes.
However, due to the influence of network delay, handover between different base stations, signal interference, and other factors, data acquired by the terminal device is often not accurate enough, so that the positioning result of the terminal device is not accurate enough.
Disclosure of Invention
The embodiment of the invention provides a positioning method and terminal equipment, and aims to solve the problem that the positioning result of the existing terminal equipment is not accurate enough.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a positioning method, which is applied to a terminal device, and the method includes: acquiring a target noise value, wherein the target noise value is a noise value in the current environment of the terminal equipment; determining a first noise range, wherein the first noise range is a noise range corresponding to a first position, the first position is a position with the highest recommended priority in at least two positions, and the at least two positions are positions obtained by positioning the terminal equipment; determining a target position according to the target noise value and the first noise range, wherein the target position is a first position or a second position, and the second position is a position different from the first position in at least two positions; and correcting the position with the highest recommendation priority as the target position.
In a second aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes an obtaining module, a determining module, and a correcting module. The acquisition module is used for acquiring a target noise value, wherein the target noise value is a noise value in the current environment of the terminal equipment. The determining module is used for determining a first noise range, wherein the first noise range is a noise range corresponding to a first position, the first position is a position with the highest recommended priority in at least two positions, and the at least two positions are positions obtained by positioning the terminal equipment. The determining module is further configured to determine a target position according to the first noise range and the target noise value obtained by the obtaining module, where the target position is a first position or a second position, and the second position is a position different from the first position in the at least two positions. And the correcting module is used for correcting the position with the highest recommendation priority into the target position determined by the determining module.
In a third aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and the computer program, when executed by the processor, implements the steps of the positioning method in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the positioning method in the first aspect.
In the embodiment of the invention, a target noise value (the target noise value is the noise value in the current environment of the terminal equipment) can be obtained; determining a first noise range (the first noise range is a noise range corresponding to a first position, the first position is a position with the highest recommended priority in at least two positions, and the at least two positions are positions obtained by positioning the terminal equipment); and determining a target position (the target position is a first position or a second position, and the second position is a position different from the first position in at least two positions) according to the target noise value and the first noise range; and correcting the position with the highest recommendation priority as the target position. According to the scheme, on the basis of a plurality of recommended positions obtained by positioning the terminal equipment by the positioning system, the noise value of the current environment of the terminal equipment and the noise range corresponding to the position with the highest recommended priority are considered, and whether the position with the highest recommended priority is positioned accurately is determined by judging whether the noise value of the current environment of the terminal equipment is in the noise range corresponding to the position with the highest recommended priority. Further, the terminal device may modify the position with the highest recommendation priority to the target position. Therefore, the embodiment of the invention can improve the accuracy of the positioning result of the terminal equipment.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a positioning method according to an embodiment of the present invention;
fig. 3 is one of schematic interfaces of an application of the positioning method according to the embodiment of the present invention;
fig. 4 is one of schematic diagrams of a corresponding relationship list between a position and a noise range applied by the positioning method according to the embodiment of the present invention;
fig. 5 is a second schematic diagram of a positioning method according to an embodiment of the present invention;
fig. 6 is a second schematic interface diagram of an application of the positioning method according to the embodiment of the present invention;
fig. 7 is a third schematic diagram illustrating a positioning method according to an embodiment of the present invention;
fig. 8 is a second schematic diagram of a corresponding relationship list between a position and a noise range applied by the positioning method according to the embodiment of the present invention;
FIG. 9 is a fourth schematic view illustrating a positioning method according to an embodiment of the present invention;
FIG. 10 is a fifth schematic view illustrating a positioning method according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 12 is a hardware schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first and second locations, etc. are for distinguishing between different locations and are not intended to describe a particular order of locations.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present invention, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units, and the like.
The embodiment of the invention provides a positioning method and terminal equipment, which can acquire a target noise value (the target noise value is the noise value in the current environment of the terminal equipment); determining a first noise range (the first noise range is a noise range corresponding to a first position, the first position is a position with the highest recommended priority in at least two positions, and the at least two positions are positions obtained by positioning the terminal equipment); and determining a target position (the target position is a first position or a second position, and the second position is a position different from the first position in at least two positions) according to the target noise value and the first noise range; and correcting the position with the highest recommendation priority as the target position. According to the scheme, on the basis of a plurality of recommended positions obtained by positioning the terminal equipment by the positioning system, the noise value of the current environment of the terminal equipment and the noise range corresponding to the position with the highest recommended priority are considered, and whether the position with the highest recommended priority is positioned accurately is determined by judging whether the noise value of the current environment of the terminal equipment is in the noise range corresponding to the position with the highest recommended priority. Further, the terminal device may modify the position with the highest recommendation priority to the target position. Therefore, the embodiment of the invention can improve the accuracy of the positioning result of the terminal equipment.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the positioning method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the positioning method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the positioning method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the positioning method provided by the embodiment of the invention by running the software program in the android operating system.
The terminal equipment in the embodiment of the invention can be a mobile terminal or a non-mobile terminal. For example, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiment of the present invention is not limited in particular.
The execution main body of the positioning method provided in the embodiment of the present invention may be the terminal device, or may also be a functional module and/or a functional entity capable of implementing the positioning method in the terminal device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal device as an example to exemplarily explain the positioning method provided by the embodiment of the present invention.
As shown in fig. 2, an embodiment of the present invention provides a positioning method, which may include steps 200 to 203 described below.
And 200, the terminal equipment acquires a target noise value.
And the target noise value is the noise value in the current environment of the terminal equipment.
In the embodiment of the present invention, if the terminal device starts the navigation function or the positioning function, the terminal device may detect (for example, detect in real time) the noise value (i.e., the target noise value) in the current environment of the terminal device by using a microphone sensor built in the terminal device; other possible sensors may also be used to detect the noise value in the current environment of the terminal device, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited.
The noise value is a measure of the intensity of noise, and is usually expressed in decibels (dB).
Step 201, the terminal device determines a first noise range, where the first noise range is a noise range corresponding to a first position, and the first position is a position with the highest recommended priority among at least two positions.
The at least two positions are positions obtained by positioning the terminal equipment.
In the embodiment of the invention, if the terminal equipment starts the navigation function or the positioning function, the terminal equipment can position the terminal equipment in real time through a positioning system (such as a GPS) to obtain the real-time position of the terminal equipment.
It should be noted that, because the positioning accuracy of the GPS is about 10 meters, the positioning of the terminal device by the GPS may not be accurate enough, and usually at least two positions are obtained by positioning, and both of the at least two positions can be used for indicating the real-time position of the terminal device. Hereinafter, the at least two locations are also referred to as a plurality of recommended locations.
In the embodiment of the invention, the terminal equipment can determine the recommendation priorities of the at least two positions and sort the recommendation priorities in sequence according to the recommendation priorities, namely, the position with high recommendation priority is ranked in front, and the position with low recommendation priority is ranked in back. For example, the position with the highest recommended priority ranks first in at least two positions.
Illustratively, as shown in fig. 3, the terminal device has currently turned on the positioning function. The position obtained by positioning the terminal device by the GPS is indicated by the positioning identifier 31, and the current interface displays at least two positions 32 with higher recommendation priority, such as "street a", "cell B", and "mall a" shown in fig. 3, which are arranged in sequence according to the recommendation priority. Wherein, the recommended priority of the street A is the highest and is arranged at the top. That is, the position obtained by the GPS positioning the terminal device is currently recommended as "street a".
Further, the terminal device may determine a noise range corresponding to the first position (i.e., the first noise range) according to a position with a highest recommended priority (i.e., the first position) among the at least two positions.
Optionally, in this embodiment of the present invention, the first position may be a position with a highest recommended priority in the at least two positions, may also be a position indicated by a positioning identifier in an electronic map displayed by the terminal device, and may also be any other possible position in the at least two positions, which may be determined specifically according to actual use requirements, which is not limited in this embodiment of the present invention.
In the embodiment of the present invention, a correspondence (for example, a list) between a position and a noise range may be stored in advance in the terminal device, that is, one position corresponds to one noise range. For example, fig. 4 is a schematic diagram illustrating a corresponding relationship list of the above-described positions and noise ranges.
In the embodiment of the present invention, when the position is known, the noise range corresponding to the known position may be determined based on the preset corresponding relationship.
For example, assuming that the position with the highest recommended priority among the at least two positions is a certain cell (i.e., the first position), the terminal device may determine the noise range corresponding to the first position to be [10dB, 35dB ] according to the correspondence list shown in fig. 4.
For another example, assuming that the position with the highest recommended priority among the at least two positions is a certain street (i.e., the first position), the terminal device may determine the noise range corresponding to the first position as [60dB, 110dB ] according to the correspondence list shown in fig. 4.
It is to be understood that the various locations and their corresponding noise ranges shown in fig. 4 are exemplary lists, i.e., embodiments of the present invention include, but are not limited to, the various locations and their corresponding noise ranges listed above. In actual implementation, the correspondence between the position and the noise range may further include any other possible position, that is, the corresponding noise range, which may be determined according to actual use requirements, and the embodiment of the present invention is not limited.
It should be noted that the execution order of step 200 and step 201 may not be limited in the embodiment of the present invention. That is, in the embodiment of the present invention, step 200 may be executed first, and then step 201 may be executed; step 201 may be executed first, and then step 200 may be executed; step 200 and step 201 may also be performed simultaneously. It is understood that fig. 2 illustrates the step 200 being executed first and then the step 201 being executed later.
Step 202, the terminal device determines a target position according to the target noise value and the first noise range.
The target position may be a first position or a second position, and the second position is a position different from the first position in at least two positions.
In the embodiment of the present invention, after acquiring the target noise value and determining the first noise range, the terminal device may compare the target noise value with the first noise range to determine whether the target noise value is within the first noise range, and determine the target position according to the determination result.
Optionally, with reference to fig. 2, as shown in fig. 5, in the embodiment of the present invention, the step 202 may be specifically implemented by the following step 202a and step 202b, or the step 202a and step 202 c.
Step 202a, the terminal device determines whether the target noise value is within a first noise range.
In the embodiment of the present invention, if the terminal device determines that the target noise value is within the first noise range, the terminal device may continue to execute the following step 202 b; if the terminal device determines that the target noise value is not within the first noise range, the terminal device may return to continue to execute step 202 c.
Step 202b, the terminal device determines the first position as the target position.
In the embodiment of the present invention, if the terminal device determines that the target noise value is within the first noise range, the terminal device may determine that the first position is the target position.
For example, assuming that the detected target noise value is 20dB, and assuming that the first location is cell a, it may be determined that the first noise range corresponding to the first location is [10dB, 35dB), then the terminal device may determine that the target noise value is within the first noise range, which indicates that the current location of the terminal device is accurate by using the first location, so that the terminal device may determine that the first location is the target location.
Step 202c, the terminal device determines a second position from the at least two positions according to the information of the at least two positions, and determines the second position as the target position.
In the embodiment of the present invention, if the terminal device determines that the target noise value is not within the first noise range, the terminal device may determine, from the at least two positions, a position (i.e., the second position) different from the first position as the target position according to information of the at least two positions.
For example, assuming that the detected target noise value is 20dB, and assuming that the first location is street a, it may be determined that the first noise range corresponding to the first location is [60dB, 110dB "), the terminal device may determine that the target noise value is not within the first noise range, which indicates that the current location of the terminal device is not accurate enough, and a location with the highest recommended priority needs to be corrected (i.e., corrected from the first location to the second location), so that the terminal device may determine that the second location is the target location.
It should be noted that, in the embodiment of the present invention, the terminal device may alternatively perform the step 202b and the step 202c, that is, the terminal device may perform the step 202b, or the terminal device may perform the step 202 c.
Step 203, the terminal device corrects the position with the highest recommendation priority to the target position.
In the embodiment of the present invention, referring to fig. 3, because a certain error exists in the positioning result of the terminal device through the positioning system, "street a" is not necessarily a real-time location of the terminal device, and any location of "street a", "cell B", and "mall a" may be a real-time location of the terminal device, the terminal device may correct the location with the highest recommendation priority, that is, correct the location with the highest recommendation priority to a target location determined according to the target noise value and the first noise range.
On one hand, in the embodiment of the present invention, if the terminal device determines that the first location is the target location, the terminal device may modify the location with the highest recommendation priority to the first location, that is, the location with the highest recommendation priority is still the first location.
On the other hand, in the embodiment of the present invention, if the terminal device determines that the second location is the target location, the terminal device may modify the location with the highest recommendation priority from the first location to the second location.
In the embodiment of the invention, the positioning accuracy is increased by using the GPS positioning and the microphone of the terminal equipment for co-positioning, so that the map navigation system is optimized. Firstly, a recommended position is obtained by adopting GPS positioning, and a noise range corresponding to the recommended position is determined; acquiring a noise value of the current environment of the terminal equipment through a microphone; and then, judging whether the noise value of the current environment of the terminal equipment is in the noise range or not so as to judge whether the recommended position obtained by positioning is accurate or not, and correcting the inaccurate recommended position, so that the accuracy of the positioning result of the terminal equipment can be improved.
The positioning method provided by the embodiment of the invention can acquire the target noise value (the target noise value is the noise value in the current environment of the terminal equipment); determining a first noise range (the first noise range is a noise range corresponding to a first position, the first position is a position with the highest recommended priority in at least two positions, and the at least two positions are positions obtained by positioning the terminal equipment); and determining a target position (the target position is a first position or a second position, and the second position is a position different from the first position in at least two positions) according to the target noise value and the first noise range; and correcting the position with the highest recommendation priority as the target position. According to the scheme, on the basis of a plurality of recommended positions obtained by positioning the terminal equipment by the positioning system, the noise value of the current environment of the terminal equipment and the noise range corresponding to the position with the highest recommended priority are considered, and whether the position with the highest recommended priority is positioned accurately is determined by judging whether the noise value of the current environment of the terminal equipment is in the noise range corresponding to the position with the highest recommended priority. Further, the terminal device may modify the position with the highest recommendation priority to the target position. Therefore, the embodiment of the invention can improve the accuracy of the positioning result of the terminal equipment.
In the embodiment of the present invention, when the terminal device determines that the target noise value is not within the first noise range and needs to correct the position with the highest recommended priority, the terminal device first determines the second position from at least two positions according to information of the at least two positions, and then corrects the position with the highest recommended priority from the first position to the second position, where, for how the terminal device determines the second position, reference may be specifically made to the following first embodiment and second embodiment.
First embodiment
Optionally, in this embodiment of the present invention, the information of the at least two positions may include: (1) coordinates of the at least two locations, and (2) noise ranges corresponding to the at least two locations. In this case, the terminal device may determine the second position from the at least two positions based on the coordinates of the at least two positions and the noise ranges corresponding to the at least two positions.
With respect to (1) above, in the embodiment of the present invention, in a case where coordinates of the plurality of recommended positions are known (for example, longitude and latitude of the plurality of recommended positions obtained by GPS positioning), the terminal device may calculate a distance between the first position and each of the plurality of recommended positions using the coordinates of the first position and the coordinates of each of the plurality of recommended positions, and thus may obtain a plurality of distance values.
Further, the terminal device may determine, as the at least one candidate location, a location, of the plurality of recommended locations, where a distance between the first location and the at least one candidate location is within a preset range, that is, a distance between the at least one candidate location and the first location is within the preset range. The specific value of the preset range can be determined according to actual use requirements, and the embodiment of the invention is not limited.
For example, the terminal device may determine, as the candidate location, a location, from among the plurality of recommended locations, at which the distance from the first location is the minimum distance. That is, the distance value between the candidate position and the first position is the minimum value among the plurality of distance values.
In this embodiment of the present invention, the terminal device may compare the target noise value with the noise range corresponding to the at least one candidate location, and if the target noise value is within the noise range corresponding to one candidate location of the at least one candidate location, the terminal device may determine the one candidate location as the second location. I.e. the target noise value is within a second noise range, which is the noise range corresponding to the second position.
In summary, in combination with (1) and (2), the terminal device may first determine which positions of the plurality of recommended positions are within a preset range of the distance from the first position, and determine the positions as at least one candidate position; then, the terminal device may determine that the target noise value is within a noise range corresponding to any candidate position of the at least one candidate position, and determine the candidate position as the second position.
Or, with combination of (1) and (2), the terminal device may first determine which noise ranges corresponding to which positions of the plurality of recommended positions cover the target noise value, and determine the positions as at least one candidate position; then, the terminal device may determine which candidate position of the at least one candidate position is within a preset range of the distance from the first position, and determine the candidate position as the second position.
For example, referring to fig. 3, as shown in fig. 6, assuming that the user is currently located in "cell a", the noise value (i.e., the target noise value) of the environment where the terminal device is located at this time is 20dB, and the position with the highest recommended priority is street a (which corresponds to the first noise range of [60dB, 110dB), the terminal device may determine that the target noise value is not within the first noise range, which indicates that the current position of the terminal device is not accurate enough by using the first position at this time, and the position with the highest recommended priority needs to be corrected.
Further, the terminal device may select at least one candidate position from the plurality of recommended positions, for example, first determine which noise ranges corresponding to which positions of the plurality of recommended positions cover the target noise value, and determine the positions as the at least one candidate position (for example, "cell a" and "cell B", where the noise ranges corresponding to the cells both cover the target noise value); then, a location closest to street a (e.g., "cell a"), which is the target location, is selected from the at least one alternative location. Referring to fig. 3 and 6, the terminal device may modify the position with the highest recommendation priority from "street a" to "cell a".
It should be noted that fig. 3 is shown for exemplarily illustrating a correction result, and in actual implementation, the interface shown in fig. 6 may not be displayed in the positioning process in the embodiment of the present invention, but the corrected interface shown in fig. 6 is directly displayed for a user to view.
Second embodiment
Optionally, in this embodiment of the present invention, the information of the at least two positions includes identifiers of the at least two positions.
Specifically, referring to fig. 5, as shown in fig. 7, after the step 202a and before the step 202c, the positioning method provided by the embodiment of the present invention may further include the following step 202 d. Accordingly, the step 202c can be realized by the following steps 202c1 and 202c 2.
Step 202d, the terminal device obtains a first image, where the first image is an image obtained by shooting the current environment where the terminal device is located.
In the embodiment of the invention, under the condition that the target noise value is not in the first noise range, the terminal equipment can shoot the current environment of the terminal equipment, acquire the first image and perform image analysis on the first image.
Step 202c1, the terminal device determines at least one alternative location from the at least two locations based on the identity of the at least two locations and the first image.
Optionally, in the embodiment of the present invention, the identifiers of the at least two locations may be names, addresses, or identifiers of any other possible indicated locations, which may be determined specifically according to actual usage requirements, and the embodiment of the present invention is not limited. Illustratively, referring to fig. 6, the plurality of recommended locations are respectively identified by names such as "street a", "cell B", "mall a", and the like.
Optionally, in the embodiment of the present invention, the step 202c1 may be specifically implemented by the following steps 1 to 3.
Step 1, the terminal equipment determines a first object indicated by a first image.
Wherein the first object may refer to content in the first image, such as tall buildings, streets, flowers, trees, etc. Assume that the first object includes a road and a vehicle, which indicates that the user is currently on the street; or, assuming that the first object includes a tall building, flowers and plants and children, which means that the user is currently in the cell, this is only an exemplary illustration, and may be determined according to actual use requirements, and the embodiment of the present invention is not limited thereto.
And 2, the terminal equipment determines at least one identifier for indicating the first object from at least two positions according to the identifiers of the at least two positions.
Wherein at least two positions (i.e. a plurality of recommended positions) each correspond to an identifier. For example, referring to fig. 6, the plurality of recommended locations respectively correspond to the identifiers of "street a", "cell B", "mall a", and the like.
And 3, the terminal equipment determines the position corresponding to the at least one identifier as at least one alternative position.
Step 202c2, the terminal device determines the second position from the at least one alternative position according to the information of the at least one alternative position, and determines the second position as the target position.
Wherein the information of the at least one candidate position comprises coordinates of the at least one candidate position.
Specifically, the terminal device may calculate a distance between the at least one candidate position and the position with the highest recommendation priority using the coordinates of the at least one candidate position and the coordinates of the position with the highest recommendation priority, determine a position closest to the position with the highest recommendation priority as the second position, and determine the second position as the target position.
Referring now to fig. 6, a specific implementation of steps 202d-202c2 in the positioning method provided by the embodiment of the present invention is illustrated.
Assuming that the plurality of recommended locations includes street a, cell B, and mall a (corresponding identifiers are "street a", "cell B", and "mall a", respectively), and the first object indicated by the first image includes tall buildings, flowers, and children, the terminal device may determine that the identifier indicating the first object in the plurality of recommended locations is "cell a" and "cell B". Thereby, the terminal device may determine cell a and cell B as the at least one alternative location. Further, the terminal device may calculate the distance between cell a and cell B and the position where the recommended priority is highest. The cell a is closer to the position where the recommended priority is the highest than the cell B, and therefore the terminal device may determine the cell a as the second position and determine the second position as the target position.
It should be noted that, in the embodiment of the present invention, the terminal device may alternatively perform the step 202b and the steps 202d to 202c2, that is, the terminal device may perform the step 202b, or the terminal device may perform the steps 202d to 202c 2.
Optionally, in this embodiment of the present invention, the first position corresponds to a first target noise range and a second target noise range, where the first target noise range is a noise range corresponding to the first position in the first time period, and the second target noise range is a noise range corresponding to the first position in the second time period.
For example, assuming that the first location is a street, the street may correspond to noise ranges during two different periods of time, day and night, since the noise value of the street is large during the day and small during the night. As shown in FIG. 8, the noise range for the street is [80dB, 110dB ] during the time period 06:00-23:00, and [60dB, 80dB ] during the time period 23:00-06: 00.
Accordingly, the above step 201 can be specifically realized by the following steps 201a to 201 c.
Step 201a, the terminal device determines a target time, which is the current system time of the terminal device.
Step 201b, under the condition that the target time is within the first time period, the terminal device determines the first target noise range as the target noise range.
And step 201c, under the condition that the target time is in the second time period, the terminal equipment determines the second target noise range as the target noise range.
The following example illustrates a specific implementation manner of steps 201a to 201c in the positioning method provided by the embodiment of the present invention.
Assuming that the current system time of the terminal device is 14:20, the terminal device may determine that the target time is within a time period of 06:00-23:00 by referring to the correspondence list shown in fig. 8, and further, the terminal device determines the noise range [80dB, 110dB) as the target noise range.
Assuming that the current system time of the terminal device is 23:30, the terminal device may determine that the target time is within a time period of 23:00-06:00 by referring to the correspondence list shown in fig. 8, and further, the terminal device determines the noise range [60dB, 80dB) as the target noise range.
In the embodiment of the invention, the specific position corresponds to different noise ranges in different time periods, so that whether the current system time of the terminal equipment is in a certain time period can be judged firstly, and then whether the noise value of the environment where the terminal equipment is currently located is in the noise range can be judged according to the corresponding noise range in the certain time period so as to judge whether the recommended position obtained by positioning is accurate or not, and the inaccurate recommended position is corrected, so that the accuracy of the positioning result of the terminal equipment can be improved.
Optionally, in the embodiment of the present invention, in addition to using the correspondence between the position and the noise range, the correspondence between the position information and the noise range may also be used. Accordingly, the step 201 described above can be realized by the following step 201d and step 201 e.
Step 201d, the terminal device obtains first location information, where the first location information is used to indicate a first location.
Step 201e, the terminal device determines the noise range corresponding to the first position information as the first noise range.
In the embodiment of the invention, the noise range corresponding to the position information is determined by utilizing the corresponding relation between the position information and the noise range under the condition that the position information is known, whether the noise value of the current environment of the terminal equipment is in the noise range is further judged, whether the recommended position obtained by positioning is accurate is judged, and the inaccurate recommended position is corrected, so that the accuracy of the positioning result of the terminal equipment can be improved.
The positioning method provided by the embodiment of the invention mainly adopts GPS positioning, and utilizes the microphone to acquire peripheral sound of the terminal equipment to perform auxiliary positioning. The positioning method provided by the embodiment of the invention can solve the following problems of inaccurate positioning of scenes:
scene 1: people stand at the roadside, but the location is displayed in the side cell
When the GPS is positioned in the cell, the microphone is used for acquiring stronger noise around the terminal equipment, the noise value of the recommended positioning position cell is smaller, and the noise values are different, the GPS positioning error can be determined, and the original GPS positioning position positioned in the cell can be optimized to the road edge nearest to the cell.
Scene 2: the person is at home, but the location is on the road
In this case, similar to scenario 1, the GPS is located on the road, and the sound of the home where the terminal device is located is captured by the microphone. Because the noise value is relatively quiet at home and is relatively small, and the noise value of the recommended positioning position road is relatively large and is inconsistent with the noise value of the recommended positioning position road, the positioning error of the GPS can be determined, and the positioning position is corrected to the nearest cell nearby.
Scene 3: when driving and navigating, the driver is often reminded of needing to turn when meeting the crossing of the road
Scenario 3 is due to too slow GPS positioning. The GPS positioning can now be assisted by means of a microphone. The automobile is decelerated due to the fact that a turn is required, wind noise in the automobile is reduced, the number of the automobiles is increased due to the fact that a road is bent, noise of engines of surrounding automobiles is increased, the noise value is obtained through the microphone, positioning is assisted according to noise change, accordingly the turn is recognized in advance, a turn prompt is given in advance, and missing is avoided.
Scene 4: the user finds the bus leading to the corresponding destination through mobile phone navigation at the bus station
The current situation is often that the location is inaccurate, does not fix a position the user to current bus station, but is tens of meters away from bus station, guides the user to walk to current bus station or walk to other bus station earlier, and how the user still needs the manual selection current position to go to the destination, and is very inconvenient.
In the embodiment of the invention, after the microphone is added to detect the noise value, the sound characteristics around the bus station can be acquired through the microphone, if more people exist, the communication exists, and the sounds of the relevant bus such as the stop entering brake, the stop exiting start and the like can be generated, so that the nearest bus station where the user is located by the GPS is identified, and the bus station is directly located to the bus station.
Scene 5: walking navigation
This scenario is similar to the case of inaccurate positioning of scenarios 1 and 2, and is not described here again.
The positioning method provided by the embodiment of the invention can be applied to terminal equipment, and can be used for judging the noise and noise change around the terminal equipment to identify the surrounding scene of a user and judge whether the GPS positioning is accurate or not by adopting the GPS positioning and using the microphone for assisting the positioning so as to increase the positioning accuracy.
In addition, in the positioning method provided in the embodiment of the present invention, a GPS coordinate interface can be optimally obtained, and a relevant GPS positioning assistance check can also be automatically implemented by each APP, which is described below with reference to a mobile phone as an example by using the following first and second schemes.
The first scheme is as follows: and optimizing and acquiring a GPS coordinate interface. At present, the method for acquiring the GPS by the mobile phone is all acquired through an interface.
For example, taking ISO as an example, the IOS interface may obtain the longitude and latitude of the current location of the terminal device in real time by calling the CLLocationManager class. The code is as follows:
Figure BDA0002011013370000101
the method modifies a CLLocation manager type didUpdateLocation interface, and transmits whether microphone auxiliary positioning parameters are needed or not when the interface is called. May not be required by default; if necessary, after the GPS positioning position is obtained, the microphone audio of the mobile phone is directly obtained, and then whether the microphone audio is consistent with the noise range corresponding to the positioning position or not is compared. For example, on the road side, the noise is not lower than 40 decibels. If the noise range corresponding to the microphone audio frequency and the positioning position is not accordant, the GPS positioning coordinate is obtained again, and whether the noise range corresponding to the microphone audio frequency and the positioning position is accordant or not is compared again. And if the position coordinates are not consistent, correcting the position coordinates. For example, if the GPS position is acquired at the road side and the noise of the microphone of the mobile phone is acquired at 20db, the GPS position coordinates are automatically optimized (corrected) to the nearest cell in the vicinity. The specific implementation process can be seen in fig. 9.
It should be noted that the scheme is updating of the IOS or Android self SDK, so that an APP developer is simple to use, has no perception, does not modify the existing application code, and still uses the original coordinate acquisition interface. In addition, IOS SDK update requires development by apple developers, and Android SKD development requires development by Google-related personnel.
Scheme II: auxiliary validation of each APP for self-implementation of relevant GPS positioning
According to the scheme, an ISO (International organization for standardization) or Android interface is not modified, but an APP is applied to the GPS positioning coordinate, then the microphone audio of the mobile phone is acquired, and then whether the noise value acquired by the microphone is within a noise range corresponding to the positioning position or not is judged, namely the noise value of the microphone and the noise value of the positioning position are inconsistent. If the noise values are not consistent, the GPS position is acquired again, and it is determined again whether the noise value acquired by the microphone is within the noise range corresponding to the positioning position, and if the noise values are still inconsistent, the positioning coordinate is corrected, and the specific implementation process may be as shown in fig. 10.
As shown in fig. 11, an embodiment of the present invention provides a terminal device 700, where the terminal device 700 may include an obtaining module 701, a determining module 702, and a modifying module 703. The obtaining module 701 is configured to obtain a target noise value, where the target noise value is a noise value in an environment where the terminal device 700 is currently located. The determining module 702 is configured to determine a first noise range, where the first noise range is a noise range corresponding to a first location, where the first location is a location with a highest recommended priority in at least two locations, and the at least two locations are locations obtained by positioning the terminal device 700. The determining module 702 is further configured to determine a target position according to the first noise range and the target noise value obtained by the obtaining module 701, where the target position is a first position or a second position, and the second position is a position different from the first position in the at least two positions. The modifying module 703 is configured to modify the position with the highest recommendation priority to the target position determined by the determining module 702.
Optionally, in this embodiment of the present invention, the determining module 702 is specifically configured to determine the first position as the target position when the target noise value is within the first noise range; or, when the target noise value is not within the first noise range, determining a second position from the at least two positions according to the information of the at least two positions, and determining the second position as the target position.
Optionally, in this embodiment of the present invention, the information of the at least two positions may include: coordinates of the at least two locations, and noise ranges corresponding to the at least two locations. The distance between the second position and the first position is within a preset range, the target noise value is within a second noise range, and the second noise range is a noise range corresponding to the second position.
Optionally, in this embodiment of the present invention, the information of the at least two positions may include: identification of the at least two locations. Correspondingly, the obtaining module 701 is further configured to obtain a first image when the target noise value is not in the first noise range, where the first image is an image obtained by shooting an environment where the terminal device 700 is currently located. The determining module 702 is specifically configured to determine at least one alternative location from the at least two locations according to the identifiers of the at least two locations and the first image; determining a second position from the at least one alternative position according to the information of the at least one alternative position, and determining the second position as a target position; wherein the information of the at least one alternative location comprises coordinates of the at least one alternative location.
Optionally, in this embodiment of the present invention, the determining module 702 is specifically configured to determine the first object indicated by the first image; determining at least one identifier for indicating the first object from at least two positions according to the identifiers of the at least two positions; and determining the position corresponding to the at least one identifier as the at least one alternative position.
Optionally, in this embodiment of the present invention, the first position corresponds to a first target noise range and a second target noise range, where the first target noise range is a noise range corresponding to the first position in the first time period, and the second target noise range is a noise range corresponding to the first position in the second time period. The determining module 702 is specifically configured to determine a target time, where the target time is a current system time of the terminal device 700; and determining the first target noise range as a target noise range if the target time is within a first time period; alternatively, in the case where the target time is within the second time period, the second target noise range is determined as the target noise range.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
The terminal device provided by the embodiment of the invention can acquire a target noise value (the target noise value is the noise value in the current environment of the terminal device); determining a first noise range (the first noise range is a noise range corresponding to a first position, the first position is a position with the highest recommended priority in at least two positions, and the at least two positions are positions obtained by positioning the terminal equipment); and determining a target position (the target position is a first position or a second position, and the second position is a position different from the first position in at least two positions) according to the target noise value and the first noise range; and correcting the position with the highest recommendation priority as the target position. According to the scheme, on the basis of a plurality of recommended positions obtained by positioning the terminal equipment by the positioning system, the noise value of the current environment of the terminal equipment and the noise range corresponding to the position with the highest recommended priority are considered, and whether the position with the highest recommended priority is positioned accurately is determined by judging whether the noise value of the current environment of the terminal equipment is in the noise range corresponding to the position with the highest recommended priority. Further, the terminal device may modify the position with the highest recommendation priority to the target position. Therefore, the embodiment of the invention can improve the accuracy of the positioning result of the terminal equipment.
Fig. 12 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention. As shown in fig. 12, the terminal device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 12 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 810 is configured to obtain a target noise value, where the target noise value is a noise value in an environment where the terminal device is currently located; determining a first noise range, wherein the first noise range is a noise range corresponding to a first position, the first position is a position with the highest recommended priority in at least two positions, and the at least two positions are positions obtained by positioning the terminal equipment; determining a target position according to the target noise value and the first noise range, wherein the target position is a first position or a second position, and the second position is a position different from the first position in at least two positions; and correcting the position with the highest recommendation priority as the target position.
The embodiment of the invention provides a terminal device, which can acquire a target noise value (the target noise value is the noise value in the current environment of the terminal device); determining a first noise range (the first noise range is a noise range corresponding to a first position, the first position is a position with the highest recommended priority in at least two positions, and the at least two positions are positions obtained by positioning the terminal equipment); and determining a target position (the target position is a first position or a second position, and the second position is a position different from the first position in at least two positions) according to the target noise value and the first noise range; and correcting the position with the highest recommendation priority as the target position. According to the scheme, on the basis of a plurality of recommended positions obtained by positioning the terminal equipment by the positioning system, the noise value of the current environment of the terminal equipment and the noise range corresponding to the position with the highest recommended priority are considered, and whether the position with the highest recommended priority is positioned accurately is determined by judging whether the noise value of the current environment of the terminal equipment is in the noise range corresponding to the position with the highest recommended priority. Further, the terminal device may modify the position with the highest recommendation priority to the target position. Therefore, the embodiment of the invention can improve the accuracy of the positioning result of the terminal equipment.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The terminal device 800 provides the user with wireless broadband internet access through the network module 802, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the terminal apparatus 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The terminal device 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the terminal device 800 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 807 is operable to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 12, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the terminal device, and this is not limited herein.
The interface unit 808 is an interface for connecting an external device to the terminal apparatus 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 800 or may be used to transmit data between the terminal apparatus 800 and an external device.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the terminal device, connects various parts of the whole terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby performing overall monitoring of the terminal device. Processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
Terminal device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and optionally, power supply 811 may be logically coupled to processor 810 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the terminal device 800 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present invention further provides a terminal device, which includes the processor 810 shown in fig. 12, a memory 809, and a computer program stored in the memory 809 and capable of running on the processor 810, where the computer program, when executed by the processor 810, implements each process of the foregoing positioning method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing positioning method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may include a read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method disclosed in the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (14)

1. A positioning method is applied to terminal equipment, and is characterized in that the method comprises the following steps:
acquiring a target noise value, wherein the target noise value is a noise value in the current environment of the terminal equipment;
determining a first noise range, wherein the first noise range is a noise range corresponding to a first position, the first position is a position with the highest recommended priority in at least two positions, and the at least two positions are positions obtained by positioning the terminal equipment;
determining a target position according to the target noise value and the first noise range, wherein the target position is the first position, or the target position is a second position which is different from the first position in the at least two positions;
and correcting the position with the highest recommendation priority as the target position.
2. The method of claim 1, wherein determining a target location based on the target noise value and the first noise range comprises:
determining the first position as the target position if the target noise value is within the first noise range;
and under the condition that the target noise value is not in the first noise range, determining the second position from the at least two positions according to the information of the at least two positions, and determining the second position as the target position.
3. The method of claim 2, wherein the information of the at least two locations comprises: coordinates of the at least two locations, noise ranges corresponding to the at least two locations;
and the distance between the second position and the first position is within a preset range, the target noise value is within a second noise range, and the second noise range is a noise range corresponding to the second position.
4. The method of claim 2, wherein the information of the at least two locations comprises: an identification of the at least two locations;
the method further comprises the following steps:
acquiring a first image under the condition that the target noise value is not in the first noise range, wherein the first image is an image obtained by shooting the current environment where the terminal equipment is located;
the determining the second position from the at least two positions according to the information of the at least two positions and determining the second position as the target position includes:
determining at least one alternative location from the at least two locations based on the identification of the at least two locations and the first image;
determining the second position from the at least one alternative position according to the information of the at least one alternative position, and determining the second position as the target position;
wherein the information of the at least one candidate location comprises: coordinates of the at least one candidate location.
5. The method of claim 4, wherein determining at least one alternative location from the at least two locations based on the identification of the at least two locations and the first image comprises:
determining a first object indicated by the first image;
determining at least one identification indicating the first object from the at least two positions according to the identifications of the at least two positions;
and determining the position corresponding to the at least one identifier as the at least one alternative position.
6. The method of any one of claims 1 to 5, wherein the first location corresponds to a first target noise range and a second target noise range, the first target noise range being a noise range corresponding to the first location in a first time period, the second target noise range being a noise range corresponding to the first location in a second time period;
the determining the target noise range comprises:
determining target time, wherein the target time is the current system time of the terminal equipment;
determining the first target noise range as the target noise range if the target time is within the first time period;
determining the second target noise range as the target noise range if the target time is within the second time period.
7. The terminal equipment is characterized by comprising an acquisition module, a determination module and a correction module;
the acquisition module is used for acquiring a target noise value, wherein the target noise value is a noise value in the current environment of the terminal equipment;
the determining module is configured to determine a first noise range, where the first noise range is a noise range corresponding to a first location, where the first location is a location with a highest recommended priority among at least two locations, and the at least two locations are locations obtained by positioning the terminal device;
the determining module is further configured to determine a target position according to the first noise range and the target noise value obtained by the obtaining module, where the target position is the first position, or the target position is a second position, and the second position is a position different from the first position in the at least two positions;
and the correcting module is used for correcting the position with the highest recommendation priority into the target position determined by the determining module.
8. The terminal device according to claim 7, wherein the determining module is specifically configured to determine the first position as the target position if the target noise value is within the first noise range; or, in the case that the target noise value is not within the first noise range, determining the second position from the at least two positions according to the information of the at least two positions.
9. The terminal device of claim 8, wherein the information of the at least two locations comprises: coordinates of the at least two locations, noise ranges corresponding to the at least two locations;
and the distance between the second position and the first position is within a preset range, the target noise value is within a second noise range, and the second noise range is a noise range corresponding to the second position.
10. The terminal device of claim 8, wherein the information of the at least two locations comprises: an identification of the at least two locations;
the obtaining module is further configured to obtain a first image when the target noise value is not within the first noise range, where the first image is an image obtained by shooting an environment where the terminal device is currently located;
the determining module is specifically configured to determine at least one candidate location from the at least two locations according to the identifiers of the at least two locations and the first image; determining the second position from the at least one alternative position according to the information of the at least one alternative position; wherein the information of the at least one candidate location comprises: coordinates of the at least one candidate location.
11. The terminal device according to claim 10, wherein the determining module is specifically configured to determine a first object indicated by the first image; and determining at least one identification indicating the first object from the at least two positions according to the identifications of the at least two positions; and determining the position corresponding to the at least one identifier as the at least one alternative position.
12. The terminal device according to any one of claims 7 to 11, wherein the first location corresponds to a first target noise range and a second target noise range, the first target noise range is a noise range corresponding to the first location in a first time period, and the second target noise range is a noise range corresponding to the first location in a second time period;
the determining module is specifically configured to determine a target time, where the target time is a current system time of the terminal device; and determining the first target noise range as a target noise range if the target time is within the first time period; or, in a case where the target time is within the second time period, determining the second target noise range as the target noise range.
13. A terminal device, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the positioning method according to any one of claims 1 to 6.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the positioning method according to any one of claims 1 to 6.
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 CN110035379A (en) 2019-07-19
CN110035379B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11230826B2 (en) * 2020-01-24 2022-01-25 Caterpillar Inc. Noise based settling detection for an implement of a work machine
CN111415679B (en) * 2020-03-25 2023-02-28 Oppo广东移动通信有限公司 Site identification method, device, terminal and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6329946B1 (en) * 2000-05-31 2001-12-11 Mitsubishi Denki Kabushiki Kaisha GPS position measuring system and GPS position measuring apparatus
US8233353B2 (en) * 2007-01-26 2012-07-31 Microsoft Corporation Multi-sensor sound source localization
CN101920762B (en) * 2009-06-09 2013-04-17 同济大学 Ship dynamic positioning method based on real-time correction of noise matrix
CN103794045B (en) * 2012-10-26 2016-02-10 高德软件有限公司 A kind of acquisition method of Real-time Traffic Information, device and mobile unit
CN104301534A (en) * 2014-10-09 2015-01-21 广东小天才科技有限公司 Method and device for intelligently adjusting scene mode of mobile terminal
CN104869541B (en) * 2015-06-11 2018-02-27 吉林大学 A kind of indoor positioning method for tracing
CN106358290B (en) * 2016-10-31 2019-07-23 Oppo广东移动通信有限公司 A kind of detection method, device and the mobile terminal of the GPS positioning interference of 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

Also Published As

Publication number Publication date
CN110035379A (en) 2019-07-19

Similar Documents

Publication Publication Date Title
CN108270919B (en) Terminal brightness adjusting method, terminal and computer readable storage medium
CN107943489B (en) Data sharing method and mobile terminal
CN109041148B (en) Mobile terminal operation method and mobile terminal
CN110221737B (en) Icon display method and terminal equipment
CN109862504B (en) Display method and terminal equipment
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN108337368B (en) Method for updating positioning data and mobile terminal
CN109040968B (en) Road condition reminding method, mobile terminal and computer readable storage medium
CN107608855B (en) Reminding method and mobile terminal
CN107463897B (en) Fingerprint identification method and mobile terminal
CN108769893B (en) Terminal detection method and terminal
CN111126995A (en) Payment method and electronic equipment
WO2019141130A1 (en) Payment method and terminal device
CN108917766B (en) Navigation method and mobile terminal
CN108362303B (en) Navigation method and mobile terminal
CN108920572B (en) Bus information processing method and mobile terminal
CN110035379B (en) Positioning method and terminal equipment
CN110940339A (en) Navigation method and electronic equipment
CN109859718B (en) Screen brightness adjusting method and terminal equipment
CN111221602A (en) Interface display method and electronic equipment
CN108196663B (en) Face recognition method and mobile terminal
CN110769162B (en) Electronic equipment and focusing method
CN109246305B (en) Navigation processing method of navigation equipment, navigation equipment and mobile terminal
CN111427644B (en) Target behavior identification method and electronic equipment
CN108988413B (en) Mobile terminal charging method and mobile terminal

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