CN110035379B - Positioning method and terminal equipment - Google Patents
Positioning method and terminal equipment Download PDFInfo
- 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
- terminal device
- determining
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO 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/00—Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
- G01S5/02—Position-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/0252—Radio frequency fingerprinting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/023—Services 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
Description
技术领域technical field
本发明实施例涉及通信技术领域,尤其涉及一种定位方法及终端设备。Embodiments of the present invention relate to the field of communications technologies, and in particular, to a positioning method and a terminal device.
背景技术Background technique
随着终端设备的应用范围越来越广,用户对于使用终端设备的便捷性日益提升。As the application range of terminal devices becomes wider and wider, the convenience for users to use the terminal devices is increasing day by day.
目前,用户可以使用终端设备中的地图类或导航类软件,方便地实现定位、导航等目的。具体的,终端设备可以通过全球定位系统(Global Positioning System,GPS),确定终端设备的实时位置,并支持用户在步行、公交或自驾等场景下的线路查询和实时导航。At present, users can use map-type or navigation-type software in terminal devices to conveniently achieve positioning, navigation and other purposes. Specifically, the terminal device can determine the real-time location of the terminal device through a global positioning system (Global Positioning System, GPS), and support the user's route query and real-time navigation in scenarios such as walking, public transportation, or self-driving.
然而,由于网络延迟、在不同基站间切换、信号干扰等因素的影响,往往使得终端设备获取的数据不够精确,因此使得终端设备的定位结果不够精准。However, due to the influence of factors such as network delay, handover between different base stations, and signal interference, the data obtained by the terminal device is often not accurate enough, so the positioning result of the terminal device is not accurate enough.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种定位方法及终端设备,以解决现有终端设备的定位结果不够精准的问题。Embodiments of the present invention provide a positioning method and a terminal device, so as to solve the problem that the positioning result of the existing terminal device is not accurate enough.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:
第一方面,本发明实施例提供了一种定位方法,应用于终端设备,该方法包括:获取目标噪声值,该目标噪声值为终端设备当前所处环境中的噪声值;并确定第一噪声范围,该第一噪声范围为与第一位置对应的噪声范围,该第一位置为至少两个位置中推荐优先级最高的位置,该至少两个位置为对终端设备定位得到的位置;并根据目标噪声值和第一噪声范围,确定目标位置,该目标位置为第一位置或第二位置,该第二位置为至少两个位置中与第一位置不同的位置;且将推荐优先级最高的位置修正为目标位置。In a first aspect, an embodiment of the present invention provides a positioning method, which is applied to a terminal device. The method includes: acquiring a target noise value, where the target noise value is a noise value in an environment where the terminal device is currently located; and determining a first noise value range, the first noise range is the noise range corresponding to the first position, the first position is the position with the highest recommended priority among the at least two positions, and the at least two positions are the positions obtained by locating the terminal device; and according to The target noise value and the first noise range, determine the target position, the target position is the first position or the second position, and the second position is a position different from the first position among the at least two positions; and the one with the highest priority will be recommended The position is corrected to the target position.
第二方面,本发明实施例提供了一种终端设备,该终端设备包括获取模块、确定模块和修正模块。获取模块用于获取目标噪声值,该目标噪声值为终端设备当前所处环境中的噪声值。确定模块用于确定第一噪声范围,该第一噪声范围为与第一位置对应的噪声范围,该第一位置为至少两个位置中推荐优先级最高的位置,该至少两个位置为对终端设备定位得到的位置。确定模块还用于根据该第一噪声范围和获取模块获取的该目标噪声值,确定目标位置,该目标位置为第一位置或第二位置,该第二位置为该至少两个位置中与该第一位置不同的位置。修正模块用于将推荐优先级最高的位置修正为确定模块确定的该目标位置。In a second aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes an acquisition module, a determination module, and a correction module. The acquisition module is used for acquiring a target noise value, where the target noise value is a noise value in the environment where the terminal device is currently located. The determining module is configured to determine 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, and the at least two positions are for the terminal The position obtained by the device positioning. 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 second position, and the second position is the difference between the at least two positions and the target position. The first location is a different location. The modifying module is used to modify the position with the highest recommendation priority to the target position determined by the determining module.
第三方面,本发明实施例提供了一种终端设备,该终端设备包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述第一方面中的定位方法的步骤。In a third aspect, an embodiment of the present invention provides a terminal device, the terminal device includes a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor to implement the above-mentioned first The steps of a positioning method in an aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述第一方面中的定位方法的步骤。In a fourth aspect, an embodiment of the present invention 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, implements the steps of the positioning method in the first aspect.
在本发明实施例中,可以获取目标噪声值(该目标噪声值为终端设备当前所处环境中的噪声值);并确定第一噪声范围(该第一噪声范围为与第一位置对应的噪声范围,该第一位置为至少两个位置中推荐优先级最高的位置,该至少两个位置为对终端设备定位得到的位置);并根据目标噪声值和第一噪声范围,确定目标位置(该目标位置为第一位置或第二位置,该第二位置为至少两个位置中与第一位置不同的位置);且将推荐优先级最高的位置修正为目标位置。通过该方案,在定位系统对终端设备定位得到的多个推荐位置的基础上,结合考虑终端设备当前所处环境的噪声值和与推荐优先级最高的位置对应的噪声范围,通过判断终端设备当前所处环境的噪声值是否处于与推荐优先级最高的位置对应的噪声范围内,确定推荐优先级最高的位置是否定位准确。进一步的,终端设备可以将推荐优先级最高的位置修正为目标位置。如此,本发明实施例可以提升终端设备的定位结果的精准度。In this embodiment of the present invention, a target noise value (the target noise value is the noise value in the environment where the terminal device is currently located) may be acquired; and a first noise range (the first noise range is the noise corresponding to the first position) may be determined; range, the first position is the position with the highest recommended priority among at least two positions, the at least two positions are positions obtained by locating the terminal device); and according to the target noise value and the first noise range, determine the target position (the The target position is a first position or a second position, and the second position is a position different from the first position among the at least two positions); and the position with the highest recommendation priority is revised as the target position. Through this solution, on the basis of multiple recommended positions obtained by the positioning system of the terminal equipment, and considering the noise value of the current environment of the terminal equipment and the noise range corresponding to the position with the highest recommendation priority, the current Whether the noise value of the environment is within the noise range corresponding to the position with the highest recommended priority, it is determined whether the position with the highest recommended priority is located accurately. Further, the terminal device can correct the position with the highest recommendation priority as the target position. In this way, the embodiment of the present invention can improve the accuracy of the positioning result of the terminal device.
附图说明Description of drawings
图1为本发明实施例提供的一种可能的安卓操作系统的架构示意图;1 is a schematic diagram of the architecture of a possible Android operating system provided by an embodiment of the present invention;
图2为本发明实施例提供的定位方法的示意图之一;2 is one of schematic diagrams of a positioning method provided by an embodiment of the present invention;
图3为本发明实施例提供的定位方法应用的界面示意图之一;FIG. 3 is one of interface schematic diagrams of the application of the positioning method provided by the embodiment of the present invention;
图4为本发明实施例提供的定位方法应用的位置与噪声范围的对应关系列表的示意图之一;FIG. 4 is one of the schematic diagrams of the correspondence list between the position and the noise range to which the positioning method is applied according to an embodiment of the present invention;
图5为本发明实施例提供的定位方法的示意图之二;5 is a second schematic diagram of a positioning method provided by an embodiment of the present invention;
图6为本发明实施例提供的定位方法应用的界面示意图之二;FIG. 6 is the second schematic diagram of the interface of the application of the positioning method provided by the embodiment of the present invention;
图7为本发明实施例提供的定位方法的示意图之三;7 is a third schematic diagram of a positioning method provided by an embodiment of the present invention;
图8为本发明实施例提供的定位方法应用的位置与噪声范围的对应关系列表的示意图之二;8 is a second schematic diagram of a list of correspondence between positions and noise ranges to which the positioning method is applied according to an embodiment of the present invention;
图9为本发明实施例提供的定位方法的示意图之四;9 is a fourth schematic diagram of a positioning method provided by an embodiment of the present invention;
图10为本发明实施例提供的定位方法的示意图之五;FIG. 10 is a fifth schematic diagram of a positioning method provided by an embodiment of the present invention;
图11为本发明实施例提供的终端设备的结构示意图;11 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
图12为本发明实施例提供的终端设备的硬件示意图。FIG. 12 is a schematic diagram of hardware of a terminal device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this paper is an association relationship that describes an associated object, indicating that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone these three situations. The symbol "/" in this document indicates the relationship in which the associated object is or, for example, A/B indicates A or B.
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一位置和第二位置等是用于区别不同的位置,而不是用于描述位置的特定顺序。The terms "first" and "second" and the like in the description and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of the objects. For example, the first position and the second position, etc. are used to distinguish different positions, not to describe a specific order of the positions.
在本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as an example, illustration or illustration. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
在本发明实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个处理单元是指两个或者两个以上的处理单元等。In the description of the embodiments of the present invention, unless otherwise specified, the meaning of "plurality" refers to two or more, for example, a plurality of processing units refers to two or more processing units and the like.
本发明实施例提供一种定位方法及终端设备,可以获取目标噪声值(该目标噪声值为终端设备当前所处环境中的噪声值);并确定第一噪声范围(该第一噪声范围为与第一位置对应的噪声范围,该第一位置为至少两个位置中推荐优先级最高的位置,该至少两个位置为对终端设备定位得到的位置);并根据目标噪声值和第一噪声范围,确定目标位置(该目标位置为第一位置或第二位置,该第二位置为至少两个位置中与第一位置不同的位置);且将推荐优先级最高的位置修正为目标位置。通过该方案,在定位系统对终端设备定位得到的多个推荐位置的基础上,结合考虑终端设备当前所处环境的噪声值和与推荐优先级最高的位置对应的噪声范围,通过判断终端设备当前所处环境的噪声值是否处于与推荐优先级最高的位置对应的噪声范围内,确定推荐优先级最高的位置是否定位准确。进一步的,终端设备可以将推荐优先级最高的位置修正为目标位置。如此,本发明实施例可以提升终端设备的定位结果的精准度。Embodiments of the present invention provide a positioning method and a terminal device, which can obtain a target noise value (the target noise value is the noise value in the environment where the terminal device is currently located); and determine a first noise range (the first noise range is the same as The noise range corresponding to the first position, the first position is the position with the highest recommendation priority among the at least two positions, and the at least two positions are the positions obtained by locating the terminal device); and according to the target noise value and the first noise range , determine the target position (the target position is the first position or the second position, the second position is a position different from the first position in at least two positions); and correct the position with the highest recommendation priority as the target position. Through this solution, on the basis of multiple recommended positions obtained by the positioning system of the terminal equipment, and considering the noise value of the current environment of the terminal equipment and the noise range corresponding to the position with the highest recommendation priority, the current Whether the noise value of the environment is within the noise range corresponding to the position with the highest recommended priority, it is determined whether the position with the highest recommended priority is located accurately. Further, the terminal device can correct the position with the highest recommendation priority as the target position. In this way, the embodiment of the present invention can improve the accuracy of the positioning result of the terminal device.
本发明实施例中的终端设备可以为具有操作系统的终端设备。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本发明实施例不作具体限定。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, which are not specifically limited in the embodiment of the present invention.
下面以安卓操作系统为例,介绍一下本发明实施例提供的定位方法所应用的软件环境。The following takes the Android operating system as an example to introduce the software environment to which the positioning method provided by the embodiment of the present invention is applied.
如图1所示,为本发明实施例提供的一种可能的安卓操作系统的架构示意图。在图1中,安卓操作系统的架构包括4层,分别为:应用程序层、应用程序框架层、系统运行库层和内核层(具体可以为Linux内核层)。As shown in FIG. 1 , it is a schematic structural diagram of a possible Android operating system provided by an embodiment of the present invention. In FIG. 1, the architecture of the Android operating system includes four layers, namely: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
其中,应用程序层包括安卓操作系统中的各个应用程序(包括系统应用程序和第三方应用程序)。The application layer includes various applications (including system applications and third-party applications) in the Android operating system.
应用程序框架层是应用程序的框架,开发人员可以在遵守应用程序的框架的开发原则的情况下,基于应用程序框架层开发一些应用程序。The application framework layer is the framework of the application, and developers can develop some applications based on the application framework layer under the condition of complying with the development principles of the framework of the application.
系统运行库层包括库(也称为系统库)和安卓操作系统运行环境。库主要为安卓操作系统提供其所需的各类资源。安卓操作系统运行环境用于为安卓操作系统提供软件环境。The system runtime layer includes libraries (also called system libraries) and the Android operating system runtime environment. The library mainly provides various resources required by the Android operating system. The Android operating system operating environment is used to provide a software environment for the Android operating system.
内核层是安卓操作系统的操作系统层,属于安卓操作系统软件层次的最底层。内核层基于Linux内核为安卓操作系统提供核心系统服务和与硬件相关的驱动程序。The kernel layer is the operating system layer of the Android operating system and belongs to the bottom layer of the Android operating system software layer. The kernel layer provides core system services and hardware-related drivers for the Android operating system based on the Linux kernel.
以安卓操作系统为例,本发明实施例中,开发人员可以基于上述如图1所示的安卓操作系统的系统架构,开发实现本发明实施例提供的定位方法的软件程序,从而使得该定位方法可以基于如图1所示的安卓操作系统运行。即处理器或者终端设备可以通过在安卓操作系统中运行该软件程序实现本发明实施例提供的定位方法。Taking the Android operating system as an example, in this embodiment of the present invention, developers can develop a software program for implementing the positioning method provided by the embodiment of the present invention based on the system architecture of the Android operating system as shown in FIG. It can run based on the Android operating system as shown in Figure 1. That is, the processor or the terminal device can implement the positioning method provided by the embodiment of the present invention by running the software program in the Android operating system.
本发明实施例中的终端设备可以为移动终端,也可以为非移动终端。示例性的,移动终端可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personaldigital assistant,PDA)等,非移动终端可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。The terminal device in this embodiment of the present invention may be a mobile terminal or a non-mobile terminal. Exemplarily, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA). ), etc., the non-mobile terminal may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present invention.
本发明实施例提供的定位方法的执行主体可以为上述的终端设备,也可以为该终端设备中能够实现该定位方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本发明实施例不作限定。下面以终端设备为例,对本发明实施例提供的定位方法进行示例性的说明。The execution body of the positioning method provided by the embodiment of the present invention may be the above-mentioned terminal device, or may be a functional module and/or functional entity in the terminal device capable of implementing the positioning method. The embodiment is not limited. The following takes a terminal device as an example to exemplarily describe the positioning method provided by the embodiment of the present invention.
如图2所示,本发明实施例提供一种定位方法,该定位方法可以包括下述的步骤200-步骤203。As shown in FIG. 2, an embodiment of the present invention provides a positioning method, and the positioning method may include the following steps 200-203.
步骤200、终端设备获取目标噪声值。Step 200: The terminal device acquires the target noise value.
其中,该目标噪声值为终端设备当前所处环境中的噪声值。Wherein, the target noise value is the noise value in the environment where the terminal device is currently located.
本发明实施例中,如果终端设备启用导航功能或定位功能,那么此时终端设备可以采用终端设备内置的麦克风传感器,检测(例如实时检测)终端设备当前所处环境中的噪声值(即上述目标噪声值);也可以采用其它可能的传感器,检测终端设备当前所处环境中的噪声值,具体可以根据实际使用需求确定,本发明实施例不作限定。In this embodiment of the present invention, if the terminal device enables the navigation function or the positioning function, then the terminal device can use the built-in microphone sensor of the terminal device to detect (for example, real-time detection) the noise value in the environment where the terminal device is currently located (that is, the above-mentioned target Noise value); other possible sensors may also be used to detect the noise value in the environment where the terminal device is currently located, which may be specifically determined according to actual use requirements, which is not limited in this embodiment of the present invention.
其中,噪声值是衡量噪音强弱的数值,其单位通常为分贝(dB)。Among them, the noise value is a numerical value to measure the strength of noise, and its unit is usually decibel (dB).
步骤201、终端设备确定第一噪声范围,该第一噪声范围为与第一位置对应的噪声范围,该第一位置为至少两个位置中推荐优先级最高的位置。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 recommendation priority among at least two positions.
其中,上述至少两个位置为对终端设备定位得到的位置。Wherein, the above-mentioned at least two positions are positions obtained by locating the terminal device.
本发明实施例中,如果终端设备启用导航功能或定位功能,那么此时终端设备可以通过定位系统(例如GPS)对终端设备实时定位,得到终端设备的实时位置。In this embodiment of the present invention, if the terminal device enables the navigation function or the positioning function, then the terminal device can locate the terminal device in real time through a positioning system (eg GPS) to obtain the real-time position of the terminal device.
需要说明的是,由于GPS的定位精确度约为10米数量级,因此通过GPS对终端设备定位可能不够精确,通常会定位得到至少两个位置,这至少两个位置均可以用于指示终端设备的实时位置。在下文中,至少两个位置也称为多个推荐位置。It should be noted that since the positioning accuracy of GPS is about 10 meters, the positioning of the terminal device through GPS may not be accurate enough. Usually, at least two positions can be obtained, both of which can be used to indicate the terminal device's real-time location. Hereinafter, at least two positions are also referred to as a plurality of recommended positions.
本发明实施例中,终端设备可以确定这至少两个位置的推荐优先级,并按照推荐优先级依次排序,即推荐优先级高的位置排在前面,推荐优先级低的位置排在后面。例如,推荐优先级最高的位置在至少两个位置中排在最前面。In this embodiment of the present invention, the terminal device may determine the recommendation priorities of the at least two locations, and sort them in sequence according to the recommendation priorities, that is, the locations with higher recommendation priorities are ranked first, and the positions with lower recommended priorities are ranked last. For example, the position with the highest recommendation priority ranks first among at least two positions.
示例性的,如图3所示,终端设备当前已开启定位功能。其中,GPS对终端设备定位得到的位置通过定位标识31指示,并且当前界面显示了推荐优先级较高的至少两个位置32,如图3中所示的“街道A”、“小区A”、“小区B”、“商场A”,这至少两个位置按照推荐优先级依次排列。其中,“街道A”的推荐优先级最高,排列在最前面。即,GPS对终端设备定位得到的位置当前推荐为“街道A”。Exemplarily, as shown in FIG. 3 , the terminal device currently has the positioning function enabled. Wherein, the position obtained by the GPS positioning of the terminal device is indicated by the
进一步的,终端设备可以根据至少两个位置中推荐优先级最高的位置(即上述第一位置),确定与第一位置对应的噪声范围(即上述第一噪声范围)。Further, the terminal device may determine the noise range corresponding to the first position (ie the first noise range) according to the position with the highest recommendation priority among the at least two positions (ie the first position).
可选的,本发明实施例中,上述第一位置可以为至少两个位置中推荐优先级最高的位置,也可以为终端设备显示的电子地图中定位标识指示的位置,还可以为至少两个位置中其它任意可能的位置,具体可以根据实际使用需求确定,本发明实施例不作限定。Optionally, in this embodiment of the present invention, the above-mentioned first location may be a location with the highest recommended priority among at least two locations, may also be a location indicated by a positioning marker in an electronic map displayed by the terminal device, or may be at least two locations. Any other possible positions in the positions may be specifically determined according to actual usage requirements, which are not limited in this embodiment of the present invention.
本发明实施例中,终端设备中可以预先存储位置与噪声范围的对应关系(例如列表),即一个位置对应一个噪声范围。示例性的,图4示出了上述位置与噪声范围的对应关系列表的示意图。In this embodiment of the present invention, the terminal device may pre-store a correspondence between locations and noise ranges (eg, a list), that is, one location corresponds to one noise range. Exemplarily, FIG. 4 shows a schematic diagram of the above list of correspondences between positions and noise ranges.
本发明实施例中,在位置已知的情况下,可以基于预设的对应关系,确定与该已知位置对应的噪声范围。In this embodiment of the present invention, when the position is known, the noise range corresponding to the known position may be determined based on a preset correspondence relationship.
举例来说,假设至少两个位置中推荐优先级最高的位置为某小区(即上述第一位置),那么终端设备可以根据图4所示的对应关系列表,确定与该第一位置对应的噪声范围为[10dB,35dB)。For example, assuming that the location with the highest recommended priority among the at least two locations is a certain cell (that is, the above-mentioned first location), then the terminal device can determine the noise corresponding to the first location according to the correspondence list shown in FIG. 4 . The range is [10dB, 35dB).
再举例来说,假设至少两个位置中推荐优先级最高的位置为某街道(即上述第一位置),那么终端设备可以根据图4所示的对应关系列表,确定与该第一位置对应的噪声范围为[60dB,110dB)。For another example, assuming that the location with the highest recommended priority among the at least two locations is a certain street (that is, the above-mentioned first location), then the terminal device can determine the location corresponding to the first location according to the correspondence list shown in FIG. 4 . The noise range is [60dB, 110dB).
可以理解,图4所示的各个位置及其对应的噪声范围均是示例性的列举,即本发明实施例包括但不限于上述列举的各个位置及其对应的噪声范围。实际实现时,上述位置与噪声范围的对应关系还可以包括其它任意可能的位置即其对应的噪声范围,具体可以根据实际使用需求确定,本发明实施例不作限定。It can be understood that the positions and their corresponding noise ranges shown in FIG. 4 are all exemplary enumerations, that is, the embodiments of the present invention include but are not limited to the above-listed positions and their corresponding noise ranges. In actual implementation, the above-mentioned correspondence between the position and the noise range may also include any other possible position, that is, its corresponding noise range, which may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present invention.
需要说明的是,本发明实施例可以不限定步骤200和步骤201的执行顺序。即本发明实施例可以先执行步骤200,后执行步骤201;也可以先执行步骤201,后执行步骤200;还可以同时执行步骤200和步骤201。可以理解,上述图2是以先执行步骤200后执行步骤201为例示意的。It should be noted that, the embodiment of the present invention may not limit the execution order of
步骤202、终端设备根据目标噪声值和第一噪声范围,确定目标位置。Step 202: The terminal device determines the target position according to the target noise value and the first noise range.
其中,该目标位置可以为第一位置或第二位置,该第二位置为至少两个位置中与第一位置不同的位置。Wherein, the target position may be a first position or a second position, and the second position is a position different from the first position among the at least two positions.
本发明实施例中,终端设备在获取目标噪声值并确定第一噪声范围之后,可以将目标噪声值与第一噪声范围进行比较,以判断目标噪声值是否处于第一噪声范围内,并根据判断结果来确定目标位置。In this 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 whether the target noise value is within the first noise range. result to determine the target location.
可选的,结合图2,如图5所示,本发明实施例中,上述的步骤202具体可以通过下述的步骤202a和步骤202b,或者步骤202a和步骤202c实现。Optionally, with reference to FIG. 2 , as shown in FIG. 5 , in this embodiment of the present invention, the foregoing
步骤202a、终端设备判断目标噪声值是否处于第一噪声范围内。
本发明实施例中,若终端设备判断目标噪声值处于第一噪声范围内,则终端设备可以继续执行下述的步骤202b;若终端设备判断目标噪声值不处于第一噪声范围内,则终端设备可以返回继续执行上述的步骤202c。In this 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 perform the following step 202b; if the terminal device determines that the target noise value is not within the first noise range, the terminal device It is possible to return to continue to perform the above-mentioned
步骤202b、终端设备将第一位置确定为目标位置。Step 202b, the terminal device determines the first position as the target position.
本发明实施例中,若终端设备判断目标噪声值处于第一噪声范围内,则终端设备可以确定第一位置即为目标位置。In this 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.
示例性的,假设检测得到的目标噪声值为20dB,以及假设第一位置为小区A,即可以确定与第一位置对应的第一噪声范围为[10dB,35dB),那么终端设备可以判断目标噪声值处于第一噪声范围内,这表示此时用第一位置指示终端设备当前所处的位置是准确的,由此终端设备可以确定第一位置即为目标位置。Exemplarily, assuming that the detected target noise value is 20dB, and assuming that the first location is cell A, it can be determined that the first noise range corresponding to the first location is [10dB, 35dB), then the terminal device can determine the target noise. The value is within the first noise range, which means that it is accurate to use the first position to indicate the current position of the terminal device at this time, so the terminal device can determine that the first position is the target position.
步骤202c、终端设备根据至少两个位置的信息,从至少两个位置中,确定第二位置,并将第二位置确定为目标位置。
本发明实施例中,若终端设备判断目标噪声值不处于第一噪声范围内,则终端设备可以根据至少两个位置的信息,从至少两个位置中,确定与第一位置不同的位置(即上述第二位置)即为目标位置。In this 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 a position different from the first position (that is, from at least two positions) according to the information of the at least two positions. The above-mentioned second position) is the target position.
示例性的,假设检测得到的目标噪声值为20dB,以及假设第一位置为街道A,即可以确定与第一位置对应的第一噪声范围为[60dB,110dB),那么终端设备可以判断目标噪声值不处于第一噪声范围内,这表示此时用第一位置指示终端设备当前所处的位置不够准确,需要对推荐优先级最高的位置进行修正(即由第一位置修正为第二位置),由此终端设备可以确定第二位置即为目标位置。Exemplarily, assuming that the detected target noise value is 20dB, and assuming that the first position is Street A, it can be determined that the first noise range corresponding to the first position is [60dB, 110dB), then the terminal device can determine the target noise. The value is not within the first noise range, which means that the current position of the terminal device indicated by the first position is not accurate enough at this time, and the position with the highest recommended priority needs to be corrected (that is, the first position is corrected to the second position) , so that the terminal device can determine that the second position is the target position.
需要说明的是,本发明实施例中,终端设备可以择一执行上述的步骤202b和步骤202c,即终端设备可以执行上述的步骤202b,或者终端设备可以执行上述的步骤202c。It should be noted that, in this embodiment of the present invention, the terminal device may alternatively execute the foregoing step 202b and
步骤203、终端设备将推荐优先级最高的位置修正为目标位置。Step 203: The terminal device corrects the position with the highest recommendation priority as the target position.
本发明实施例中,参考图3,由于通过定位系统对终端设备的定位结果存在一定误差的原因,“街道A”不一定是终端设备的实时位置,这里“街道A”、“小区A”、“小区B”、“商场A”中的任一位置都可能是终端设备的实时位置,因此终端设备可以对推荐优先级最高的位置进行修正,即将推荐优先级最高的位置修正为根据目标噪声值和第一噪声范围确定的目标位置。In the embodiment of the present invention, referring to FIG. 3 , due to a certain error in the positioning result of the terminal device through the positioning system, "street A" is not necessarily the real-time position of the terminal device, where "street A", "cell A", Any location in "Cell B" and "Mall A" may be the real-time location of the terminal device, so the terminal device can correct the location with the highest recommended priority, that is, correct the location with the highest recommended priority to be based on the target noise value and the target position determined by the first noise range.
一方面,本发明实施例中,若终端设备确定第一位置为目标位置,则终端设备可以将推荐优先级最高的位置修正为第一位置,即推荐优先级最高的位置仍然是第一位置。On the one hand, in this embodiment of the present invention, if the terminal device determines that the first position is the target position, the terminal device can modify the position with the highest recommendation priority to the first position, that is, the position with the highest recommendation priority is still the first position.
另一方面,本发明实施例中,若终端设备确定第二位置为目标位置,则终端设备可以将推荐优先级最高的位置由第一位置修正为第二位置。On the other hand, in this embodiment of the present invention, if the terminal device determines that the second position is the target position, the terminal device may modify the position with the highest recommendation priority from the first position to the second position.
本发明实施例中,通过使用GPS定位和终端设备的麦克风共同定位,增加定位准确性,从而优化地图导航系统。先采用GPS定位得到推荐位置,确定与该推荐位置对应的噪声范围;并且通过麦克风获取终端设备当前所处环境的噪声值;然后,判断终端设备当前所处环境的噪声值是否在该噪声范围内,以判断定位得到的推荐位置是否准确,并对于不准确的推荐位置进行修正,从而可以提升终端设备的定位结果的精准度。In the embodiment of the present invention, by using GPS positioning and the microphone of the terminal device to co-locate, the positioning accuracy is increased, thereby optimizing the map navigation system. First use GPS positioning to obtain the recommended position, and determine the noise range corresponding to the recommended position; and obtain the noise value of the current environment where the terminal device is located through the microphone; then, determine whether the noise value of the current environment where the terminal device is located is within the noise range , to judge whether the recommended position obtained by positioning is accurate, and correct the inaccurate recommended position, so as to improve the accuracy of the positioning result of the terminal device.
本发明实施例提供的定位方法,可以获取目标噪声值(该目标噪声值为终端设备当前所处环境中的噪声值);并确定第一噪声范围(该第一噪声范围为与第一位置对应的噪声范围,该第一位置为至少两个位置中推荐优先级最高的位置,该至少两个位置为对终端设备定位得到的位置);并根据目标噪声值和第一噪声范围,确定目标位置(该目标位置为第一位置或第二位置,该第二位置为至少两个位置中与第一位置不同的位置);且将推荐优先级最高的位置修正为目标位置。通过该方案,在定位系统对终端设备定位得到的多个推荐位置的基础上,结合考虑终端设备当前所处环境的噪声值和与推荐优先级最高的位置对应的噪声范围,通过判断终端设备当前所处环境的噪声值是否处于与推荐优先级最高的位置对应的噪声范围内,确定推荐优先级最高的位置是否定位准确。进一步的,终端设备可以将推荐优先级最高的位置修正为目标位置。如此,本发明实施例可以提升终端设备的定位结果的精准度。The positioning method provided by the embodiment of the present invention can obtain the target noise value (the target noise value is the noise value in the environment where the terminal device is currently located); and determine the first noise range (the first noise range is corresponding to the first position) The first position is the position with the highest recommended priority among the at least two positions, the at least two positions are the positions obtained by locating the terminal device); and according to the target noise value and the first noise range, determine the 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 among the at least two positions); and the position with the highest recommendation priority is revised as the target position. Through this solution, on the basis of multiple recommended positions obtained by the positioning system of the terminal equipment, and considering the noise value of the current environment of the terminal equipment and the noise range corresponding to the position with the highest recommendation priority, the current Whether the noise value of the environment is within the noise range corresponding to the position with the highest recommended priority, it is determined whether the position with the highest recommended priority is located accurately. Further, the terminal device can correct the position with the highest recommendation priority as the target position. In this way, the embodiment of the present invention can improve the accuracy of the positioning result of the terminal device.
本发明实施例中,在终端设备判断目标噪声值不处于第一噪声范围内,需要对推荐优先级最高的位置进行修正的情况下,终端设备首先根据至少两个位置的信息,从至少两个位置中,确定第二位置,然后将推荐优先级最高的位置由第一位置修正为第二位置,其中,关于终端设备如何确定第二位置的方法具体可以参见下述的第一实施方式和第二实施方式。In this 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 firstly selects from at least two positions according to the information of at least two positions. Among the positions, the second position is determined, and then the position with the highest recommendation priority is modified from the first position to the second position, wherein, for the method of how the terminal device determines the second position, please refer to the following first embodiment and the first embodiment. Second Embodiment.
第一实施方式first embodiment
可选的,本发明实施例中,上述至少两个位置的信息可以包括:(1)上述至少两个位置的坐标、以及(2)与该至少两个位置对应的噪声范围。在此情况下,终端设备可以根据上述至少两个位置的坐标、以及与该至少两个位置对应的噪声范围,从至少两个位置中,确定第二位置。Optionally, in this embodiment of the present invention, the information on the at least two locations 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 according to the coordinates of the at least two positions and the noise range corresponding to the at least two positions.
针对上述(1),本发明实施例中,在已知上述多个推荐位置的坐标(例如由GPS定位得到多个推荐位置的经纬度)的情况下,终端设备可以采用第一位置的坐标和多个推荐位置中的每个位置的坐标,计算第一位置和多个推荐位置中的每个位置之间的距离,如此可得到多个距离值。For the above (1), in the embodiment of the present invention, in the case where the coordinates of the above-mentioned multiple recommended locations (for example, the latitude and longitude of the multiple recommended locations are obtained from GPS positioning), the terminal device may use the coordinates of the first location and the multiple recommended locations. The coordinates of each of the recommended positions are calculated, and the distance between the first position and each of the plurality of recommended positions is calculated, so that a plurality of distance values can be obtained.
进一步的,终端设备可以将多个推荐位置中与第一位置之间的距离在预设范围内的位置,确定为至少一个备选位置,即至少一个备选位置与第一位置之间的距离在预设范围内。其中,预设范围的具体取值可以根据实际使用需求确定,本发明实施例不作限定。Further, the terminal device may determine a position where the distance between the multiple recommended positions and the first position is within a preset range as at least one candidate position, that is, the distance between the at least one candidate position and the first position. within the preset range. The specific value of the preset range may be determined according to actual usage requirements, which is not limited in the embodiment of the present invention.
示例性的,终端设备可以将多个推荐位置中与第一位置之间的距离为最小距离的位置,确定为备选位置。即,备选位置与第一位置之间的距离值为多个距离值中的最小值。Exemplarily, the terminal device may determine a position where the distance from the first position is the smallest among the multiple recommended positions as the candidate position. 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 position. If the target noise value is within the noise range corresponding to one of the at least one candidate position, Then, the terminal device may determine the one candidate location as the second location. That is, the target noise value is within the second noise range, and the second noise range is the noise range corresponding to the second position.
综上所述,结合(1)和(2),终端设备可以先判断多个推荐位置中哪些位置与第一位置之间的距离在预设范围内,并将这些位置确定为至少一个备选位置;然后,终端设备可以判断目标噪声值处于上述至少一个备选位置中哪一个备选位置对应的噪声范围内,并将该备选位置,确定为第二位置。To sum up, in combination with (1) and (2), the terminal device can first determine which positions among the multiple recommended positions have a distance from the first position within a preset range, and determine these positions as at least one candidate position; then, the terminal device can determine which of the at least one candidate position the target noise value is within the noise range corresponding to which candidate position, and determine the candidate position as the second position.
或者,结合(1)和(2),终端设备可以先判断多个推荐位置中哪些位置对应的噪声范围涵盖目标噪声值,将这些位置确定为至少一个备选位置;然后,终端设备可以判断至少一个备选位置中哪一个备选位置与第一位置之间的距离在预设范围内,则将该备选位置,确定为第二位置。Or, in combination with (1) and (2), the terminal device can first determine which of the multiple recommended locations corresponds to the noise range covering the target noise value, and determine these locations as at least one candidate location; then, the terminal device can determine at least If the distance between one of the candidate positions and the first position is within the preset range, the candidate position is determined as the second position.
举例来说,结合图3,如图6所示,假设用户当前处于“小区A”,此时终端设备所处环境的噪声值(即目标噪声值)为20dB,而推荐优先级最高的位置为街道A(其对应的第一噪声范围为[60dB,110dB),那么终端设备可以判断目标噪声值不处于第一噪声范围内,这表示此时用第一位置指示终端设备当前所处的位置不够准确,需要对推荐优先级最高的位置进行修正。For example, referring to Fig. 3, as shown in Fig. 6, assuming that the user is currently in "cell A", the noise value of the environment where the terminal equipment is located (ie the target noise value) is 20dB, and the location with the highest recommended priority is Street A (the corresponding first noise range is [60dB, 110dB), then the terminal device can determine that the target noise value is not within the first noise range, which means that it is not enough to use the first position to indicate the current position of the terminal device at this time. Accurate, the position with the highest recommendation priority needs to be corrected.
进一步的,终端设备可以在多个推荐位置中选择至少一个备选位置,例如先判断多个推荐位置中哪些位置对应的噪声范围涵盖目标噪声值,将这些位置确定为至少一个备选位置(例如“小区A”和“小区B”,小区对应的噪声范围均涵盖目标噪声值);然后,从至少一个备选位置中选择与街道A距离最近的位置(例如“小区A”),该小区位置即为目标位置。参考图3和图6,终端设备可以将推荐优先级最高的位置从“街道A”修正为“小区A”。Further, the terminal device may select at least one candidate position among the multiple recommended positions, for example, first determine which positions in the multiple recommended positions have corresponding noise ranges that cover the target noise value, and determine these positions as at least one candidate position (eg. "Cell A" and "Cell B", the noise ranges corresponding to the cells both cover the target noise value); is the target location. Referring to FIG. 3 and FIG. 6 , the terminal device may modify the location with the highest recommendation priority from "street A" to "cell A".
需要说明的是,图3是为了示例性说明修正结果而示出的,实际实现时,本发明实施例中定位过程中可以不显示图6所示的界面,而是直接显示图6所示的修正后的界面,供用户查看。It should be noted that FIG. 3 is shown to illustrate the correction result. In actual implementation, the interface shown in FIG. 6 may not be displayed during the positioning process in the embodiment of the present invention, but the interface shown in FIG. 6 may be directly displayed. Revised interface for users to view.
第二实施方式Second Embodiment
可选的,本发明实施例中,上述至少两个位置的信息包括上述至少两个位置的标识。Optionally, in this embodiment of the present invention, the information of the at least two locations includes the identifiers of the at least two locations.
具体的,结合图5,如图7所示,在上述的步骤202a之后,以及在步骤202c之前,本发明实施例提供的定位方法还可以包括下述的步骤202d。相应的,上述的步骤202c具体可以通过下述的步骤202c1和步骤202c2实现。Specifically, with reference to FIG. 5 , as shown in FIG. 7 , after the above-mentioned
步骤202d、终端设备获取第一图像,该第一图像为对终端设备当前所处环境拍摄得到的图像。
本发明实施例中,在目标噪声值不处于第一噪声范围的情况下,终端设备可以对终端设备当前所处环境拍摄,获取第一图像,并对第一图像进行图像分析。In this embodiment of the present invention, when the target noise value is not within the first noise range, the terminal device may photograph the environment where the terminal device is currently located, acquire a first image, and perform image analysis on the first image.
步骤202c1、终端设备根据至少两个位置的标识和第一图像,从至少两个位置中,确定至少一个备选位置。Step 202c1: The terminal device determines 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.
可选的,本发明实施例中,上述至少两个位置的标识可以为名称,也可以地址,还可以为其它任意可能指示位置的标识,具体可以根据实际使用需求确定,本发明实施例不作限定。示例性的,参考图6,多个推荐位置分别是以“街道A”、“小区A”、“小区B”、“商场A”等名称分别标识位置的。Optionally, in this embodiment of the present invention, the identifiers of the above at least two locations may be names, addresses, or any other identifiers that may indicate locations, which may be specifically determined according to actual usage requirements, which are not limited in this embodiment of the present invention. . Exemplarily, referring to FIG. 6 , the multiple recommended locations are respectively identified by names such as “street A”, “district A”, “district B”, and “shopping mall A”.
可选的,本发明实施例中,上述的步骤202c1具体可以通过下述的步骤1-步骤3实现。Optionally, in this embodiment of the present invention, the foregoing step 202c1 may be specifically implemented through the following
步骤1、终端设备确定第一图像指示的第一对象。
其中,第一对象可以指第一图像中的内容,例如高楼、街道、花草树木等。假设第一对象包括道路和车辆,这表示用户当前在街道上;或者,假设第一对象包括高楼、花草和儿童,这表示用户当前在小区里,这里只是示例性的举例说明,具体可以根据实际使用需求确定,本发明实施例不作限定。Wherein, the first object may refer to the content in the first image, such as tall buildings, streets, flowers and trees, and the like. Suppose the first object includes roads and vehicles, which means that the user is currently on the street; or, suppose that the first object includes tall buildings, flowers, and children, which means that the user is currently in the community. The usage requirement is determined, which is not limited in the embodiment of the present invention.
步骤2、终端设备根据至少两个位置的标识,从至少两个位置中,确定用于指示第一对象的至少一个标识。Step 2: The terminal device determines at least one identifier for indicating the first object from the at least two locations according to the identifiers of the at least two locations.
其中,至少两个位置(即多个推荐位置)各自对应一个标识。例如,参考图6,多个推荐位置分别对应“街道A”、“小区A”、“小区B”、“商场A”等标识。Wherein, at least two positions (ie, multiple recommended positions) each correspond to an identifier. For example, referring to FIG. 6 , multiple recommended locations correspond to identifiers such as "street A", "district A", "district B", and "shopping mall A", respectively.
步骤3、终端设备将至少一个标识对应的位置确定为至少一个备选位置。Step 3: The terminal device determines the location corresponding to the at least one identifier as at least one candidate location.
步骤202c2、终端设备根据至少一个备选位置的信息,从至少一个备选位置中确定第二位置,将第二位置确定为目标位置。Step 202c2: The terminal device determines a second position from the at least one candidate position according to the information of the at least one candidate position, and determines the second position as the target position.
其中,上述至少一个备选位置的信息包括至少一个备选位置的坐标。Wherein, the information of the at least one candidate location includes the coordinates of the at least one candidate location.
具体的,终端设备可以采用至少一个备选位置的坐标和推荐优先级最高的位置的坐标,计算至少一个备选位置和推荐优先级最高的位置之间的距离,并将与推荐优先级最高的位置距离最近的位置确定为第二位置,并将该第二位置确定为目标位置。Specifically, the terminal device may use the coordinates of the at least one candidate location and the coordinates of the location with the highest recommendation priority to calculate the distance between the at least one candidate location and the location with the highest recommendation priority, and compare the distance between the at least one candidate location and the location with the highest recommendation priority. The position with the closest position distance is determined as the second position, and the second position is determined as the target position.
下面参考图6,示例举例说明本发明实施例提供的定位方法中的步骤202d-202c2的具体实现方式。Referring to FIG. 6 , a specific implementation manner of
假设多个推荐位置包括街道A、小区A、小区B和商场A(对应的标识分别为“街道A”、“小区A”、“小区B”和“商场A”),第一图像指示的第一对象包括高楼、花草和儿童,那么终端设备可以确定多个推荐位置中用于指示第一对象的标识有“小区A”和“小区B”。由此,终端设备可以将小区A和小区B确定为至少一个备选位置。进一步的,终端设备可以计算小区A和小区B和推荐优先级最高的位置之间的距离。与小区B相比,小区A与推荐优先级最高的位置距离较近,因此终端设备可以将小区A确定为第二位置,并将该第二位置确定为目标位置。Assuming that the multiple recommended locations include street A, cell A, cell B and shopping mall A (the corresponding identifiers are "street A", "cell A", "cell B" and "mall A" respectively), the first image indicated by the first image An object includes tall buildings, flowers and children, and the terminal device may determine that the identifiers used to indicate the first object in the multiple recommended locations include "cell A" and "cell B". Thus, the terminal device can determine cell A and cell B as at least one candidate location. Further, the terminal device can calculate the distance between cell A and cell B and the location with the highest recommendation priority. Compared with cell B, cell A is closer to the location with the highest recommendation priority, so the terminal device can determine cell A as the second location and determine the second location as the target location.
需要说明的是,本发明实施例中,终端设备可以择一执行上述的步骤202b和步骤202d-步骤202c2,即终端设备可以执行上述的步骤202b,或者终端设备可以执行上述的步骤202d-步骤202c2。It should be noted that, in this embodiment of the present invention, the terminal device may selectively execute the above step 202b and step 202d-step 202c2, that is, the terminal device may execute the above step 202b, or the terminal device may execute the
可选的,本发明实施例中,第一位置对应第一目标噪声范围和第二目标噪声范围,该第一目标噪声范围为第一时间段内第一位置对应的噪声范围,该第二目标噪声范围为第二时间段内第一位置对应的噪声范围。Optionally, in this embodiment of the present invention, the first position corresponds to the first target noise range and the second target noise range, the first target noise range is the noise range corresponding to the first position in the first time period, and the second target noise range is The noise range is the noise range corresponding to the first position in the second time period.
示例性的,假设第一位置为街道,由于在白天街道的噪声值较大,在晚间街道的噪声值较小,因此街道可以对应白天和晚上两个不同时段内的噪声范围。如图8所示,在06:00-23:00的时间段内街道对应的噪声范围为[80dB,110dB),在23:00-06:00的时间段内街道对应的噪声范围为[60dB,80dB)。Exemplarily, assuming that the first location is a street, since the noise value of the street is higher during the day and the noise value of the street at night is lower, the street may correspond to the noise range in two different time periods of day and night. As shown in Figure 8, the noise range corresponding to the street in the time period of 06:00-23:00 is [80dB, 110dB), and the noise range corresponding to the street in the time period of 23:00-06:00 is [60dB , 80dB).
相应地,上述的步骤201具体可以通过下述的步骤201a-步骤201c实现。Correspondingly, the above-mentioned
步骤201a、终端设备确定目标时间,该目标时间为终端设备当前的系统时间。Step 201a, the terminal device determines a target time, where the target time is the current system time of the terminal device.
步骤201b、在目标时间在第一时间段内的情况下,终端设备将第一目标噪声范围确定为目标噪声范围。Step 201b, when the target time is within the first time period, the terminal device determines the first target noise range as the target noise range.
步骤201c、在目标时间在第二时间段内的情况下,终端设备将第二目标噪声范围确定为目标噪声范围。Step 201c, when the target time is within the second time period, the terminal device determines the second target noise range as the target noise range.
下面示例举例说明本发明实施例提供的定位方法中的步骤201a-步骤201c的具体实现方式。The following examples illustrate specific implementations of steps 201 a to 201 c in the positioning method provided by the embodiments of the present invention.
假设终端设备当前的系统时间为14:20,那么终端设备可以对照图8所示的对应关系列表,确定目标时间在06:00-23:00的时间段内,进一步,终端设备将噪声范围[80dB,110dB)确定为目标噪声范围。Assuming that the current system time of the terminal device is 14:20, the terminal device can determine the target time within the time period of 06:00-23:00 according to the correspondence list shown in Figure 8. 80dB, 110dB) is determined as the target noise range.
假设终端设备当前的系统时间为23:30,那么终端设备可以对照图8所示的对应关系列表,确定目标时间在23:00-06:00的时间段内,进一步,终端设备将噪声范围[60dB,80dB)确定为目标噪声范围。Assuming that the current system time of the terminal device is 23:30, then the terminal device can determine the target time within the time period of 23:00-06:00 according to the correspondence list shown in Figure 8. Further, the terminal device will set the noise range [ 60dB, 80dB) is determined as the target noise range.
本发明实施例中,由于特定位置在不同时间段内对应不同的噪声范围,因此可以先判断终端设备当前系统时间在某一时间段内,再根据该某一时间段内对应的噪声范围,判断终端设备当前所处环境的噪声值是否在该噪声范围内,以判断定位得到的推荐位置是否准确,并对于不准确的推荐位置进行修正,如此可以提升终端设备的定位结果的精准度。In this embodiment of the present invention, since a specific location corresponds to different noise ranges in different time periods, it is possible to first determine that the current system time of the terminal device is within a certain time period, and then determine the corresponding noise range according to the certain time period. Whether the noise value of the current environment where the terminal device is located is within the noise range, to determine whether the recommended position obtained by positioning is accurate, and to correct the inaccurate recommended position, so that the accuracy of the positioning result of the terminal device can be improved.
可选的,本发明实施例中,除了利用上述位置与噪声范围的对应关系之外,还可以利用位置信息与噪声范围的对应关系。相应地,上述的步骤201具体还可以通过下述的步骤201d和步骤201e实现。Optionally, in this embodiment of the present invention, in addition to the above-mentioned corresponding relationship between the position and the noise range, the corresponding relationship between the position information and the noise range may also be used. Correspondingly, the above-mentioned
步骤201d、终端设备获取第一位置信息,该第一位置信息用于指示第一位置。Step 201d, the terminal device acquires first location information, where the first location information is used to indicate the first location.
步骤201e、终端设备将与第一位置信息对应的噪声范围确定为第一噪声范围。Step 201e: The terminal device determines the noise range corresponding to the first location information as the first noise range.
本发明实施例中,通过利用位置信息与噪声范围的对应关系,在已知位置信息的情况下,确定与该位置信息对应的噪声范围,进一步判断终端设备当前所处环境的噪声值是否在该噪声范围内,以判断定位得到的推荐位置是否准确,并对于不准确的推荐位置进行修正,如此可以提升终端设备的定位结果的精准度。In this embodiment of the present invention, by using the correspondence between the location information and the noise range, in the case of known location information, the noise range corresponding to the location information is determined, and it is further judged whether the noise value of the current environment where the terminal device is located is within this range. In order to determine whether the recommended position obtained by positioning is accurate, and correct the inaccurate recommended position, the accuracy of the positioning result of the terminal device can be improved.
本发明实施例提供的定位方法,主要采用GPS定位,并利用麦克风获取终端设备周边声音,进行辅助定位。本发明实施例提供的定位方法可以解决如下几种场景定位不准确的问题:The positioning method provided by the embodiment of the present invention mainly adopts GPS positioning, and uses a microphone to obtain surrounding sounds of a terminal device to perform auxiliary positioning. The positioning method provided by the embodiment of the present invention can solve the following problems of inaccurate positioning in several scenarios:
场景1:人站在路边,但是定位却显示在旁边小区内Scenario 1: People are standing on the side of the road, but the location is displayed in the adjacent cell
GPS定位到小区内,此时利用麦克风获取终端设备周边有比较强烈的噪音,而推荐的定位位置小区的噪声值较小,二者噪声值不一致,则可以确定GPS定位有误,便可以把定位到小区的原有GPS定位位置,优化到离该小区最近的马路边上。GPS is located in the cell. At this time, the microphone is used to obtain strong noise around the terminal device. However, the noise value of the recommended positioning location cell is small. Go to the original GPS positioning position of the cell, and optimize it to the side of the road closest to the cell.
场景2:人在家中,但是定位却定位到了马路上Scenario 2: People are at home, but their positioning is on the road
这种情况和场景1类似,GPS定位到马路上,此时通过麦克风获取终端设备所处家中的声音。由于家中比较安静,噪声值较小,而推荐的定位位置马路的噪声值较大,二者噪声值不一致,则可以确定GPS定位有误,将定位位置修正到附近最近的小区中。This situation is similar to
场景3:在开车导航时,经常遇到路口过了才提示需要转弯Scenario 3: When driving and navigating, it is often prompted to turn when the intersection is over
场景3是由于GPS定位过慢导致。此时可以借助于麦克风辅助GPS定位。因为要遇到转弯了,一般车会减速,这样车内风噪会降低,而弯路一般伴随着路口,车会增多,周边车发动机噪音会增大,通过麦克风获取噪声值并根据噪声变化辅助定位,从而提前识别入弯,提前给出转弯提示,避免错过。Scenario 3 is caused by slow GPS positioning. At this time, GPS positioning can be assisted by means of a microphone. Because the car is about to turn, the general car will slow down, so that the wind noise in the car will be reduced, and the detour is generally accompanied by the intersection, the car will increase, and the engine noise of the surrounding cars will increase. The noise value is obtained through the microphone and assists positioning according to the noise change , so as to identify the turn in advance, give the turn prompt in advance, and avoid missing.
场景4:用户在公交车站,通过手机导航找通往相应目的地的公交车Scenario 4: The user is at the bus stop and finds the bus to the corresponding destination through mobile phone navigation
现状往往是定位不准确,没有把用户定位到当前公交车站,而是离公交车站几十米之外,指引用户先走到当前公交车站或者走到另外公交车站,用户还要手工选当前位置如何前往目的地,非常不便。The status quo is often inaccurate positioning. The user is not positioned to the current bus stop, but dozens of meters away from the bus stop. The user is directed to go to the current bus stop or to another bus stop, and the user has to manually It is very inconvenient to choose how to get to the destination from the current location.
本发明实施例中,在增加麦克风检测噪声值后,就可以通过麦克风获取公交车站周边的声音特征,如人多,会有交流,会有相关公交车进站刹车,出站起步等声音,从而识别出用户已经在GPS定位的最近的公交车站了,直接定位到公交站台。In the embodiment of the present invention, after adding the microphone to detect the noise value, the sound characteristics around the bus station can be obtained through the microphone. Thereby, it is recognized that the user is already at the nearest bus stop located by the GPS, and the user is directly located to the bus stop.
场景5:步行导航Scenario 5: Walking Navigation
此场景类似于场景1和场景2定位不准的情况,此处不再赘述。This scenario is similar to the situation in which the positioning of
本发明实施例提供的定位方法可以应用于终端设备,通过采用GPS定位,并使用麦克风辅助定位,判断终端设备周边的噪音和噪音变化来识别用户周边场景,判断GPS定位是否准确,以增加定位精准度。The positioning method provided by the embodiment of the present invention can be applied to a terminal device. By adopting GPS positioning and using a microphone to assist positioning, judging the noise and noise changes around the terminal device to identify the surrounding scene of the user, and determine whether the GPS positioning is accurate, so as to increase the positioning accuracy Spend.
此外,本发明实施例提供的定位方法中,可以优化获取GPS坐标接口,也可以由各APP自行实现相关GPS定位辅助效验,下面以手机为例,通过下述的方案一和方案二分别对这两种情况进行说明。In addition, in the positioning method provided by the embodiment of the present invention, the interface for obtaining GPS coordinates can be optimized, and the relevant GPS positioning assistance effects can also be realized by each APP itself. Two cases are described.
方案一:优化获取GPS坐标接口。目前手机获取GPS方法均为通过接口获取。Solution 1: Optimize the interface for obtaining GPS coordinates. At present, the mobile phone obtains GPS through the interface.
例如,以ISO为例,IOS接口为通过调用CLLocationManager类,便可以实时的获得终端设备当前所处位置的经纬度。代码如下:For example, taking ISO as an example, the IOS interface can obtain the latitude and longitude of the current location of the terminal device in real time by calling the CLLocationManager class. code show as below:
本方案为修改CLLocationManager类didUpdateLocations接口,调用接口时传入是否需要麦克风辅助定位参数。可以默认不需要;如果需要,则在获取GPS定位位置后,直接再获取手机麦克风音频,然后对比麦克风音频和定位位置对应的噪声范围是否相符合。比如在马路边上,噪音不会低于40分贝。如果麦克风音频和定位位置对应的噪声范围不符合,则重新获取GPS定位坐标,再次比对麦克风音频和定位位置对应的噪声范围是否相符合。如果再不一致,则修正定位坐标。比如,若获取GPS定位为马路边上,而获取手机麦克风噪音为20分贝,则将GPS定位坐标自动优化(修正)到附近最近的小区内。具体实现过程可以参见图9。This solution is to modify the didUpdateLocations interface of the CLLocationManager class. When calling the interface, pass in the parameter of whether the microphone-assisted positioning is required. It can be not required by default; if necessary, after obtaining the GPS positioning position, directly obtain the audio of the mobile phone microphone, and then compare whether the noise range corresponding to the microphone audio and the positioning position match. For example, on the side of the road, the noise will not be lower than 40 decibels. If the noise range corresponding to the microphone audio and the positioning position does not match, re-acquire the GPS positioning coordinates, and check again whether the noise range corresponding to the microphone audio and the positioning position match. If it is not consistent, correct the positioning coordinates. For example, if the acquired GPS positioning is on the side of the road, and the acquired mobile phone microphone noise is 20 decibels, the GPS positioning coordinates are automatically optimized (corrected) to the nearest nearby cell. The specific implementation process can be seen in FIG. 9 .
需要说明的是,本方案为IOS或Android自身SDK更新,使APP开发者使用简单,无感知,无修改现有应用代码,仍然使用原有获取坐标接口。此外,IOS SDK更新需要苹果开发人员开发,Android SKD开发需要Google相关人员开发。It should be noted that this solution is an update of IOS or Android's own SDK, so that APP developers can use it easily, without perception, without modifying the existing application code, and still use the original coordinate acquisition interface. In addition, the IOS SDK update needs to be developed by Apple developers, and the Android SKD development needs to be developed by Google related personnel.
方案二:各APP自行实现相关GPS定位辅助效验Option 2: Each APP realizes the relevant GPS positioning assistance effect by itself
该方案为不修改ISO或Android接口本身,而是APP应用在获取GPS定位坐标后,再获取手机麦克风音频,然后判断麦克风获取的噪声值是否在定位位置对应的噪声范围内,即二者噪声值不一致。若噪声值不一致,则重新获取一次GPS位置,再次判断麦克风获取的噪声值是否在定位位置对应的噪声范围内,如果噪声值仍然不一致,则修正定位坐标,具体实现过程可以参见图10。This solution does not modify the ISO or Android interface itself, but the APP application obtains the GPS positioning coordinates, and then obtains the audio of the mobile phone microphone, and then judges whether the noise value obtained by the microphone is within the noise range corresponding to the positioning position, that is, the noise value of the two inconsistent. If the noise values are inconsistent, obtain the GPS position again, and judge again whether the noise value obtained by the microphone is within the noise range corresponding to the positioning position. If the noise values are still inconsistent, correct the positioning coordinates. The specific implementation process can be seen in Figure 10.
如图11所示,本发明实施例提供一种终端设备700,该终端设备700可以包括获取模块701、确定模块702和修正模块703。获取模块701用于获取目标噪声值,该目标噪声值为终端设备700当前所处环境中的噪声值。确定模块702用于确定第一噪声范围,该第一噪声范围为与第一位置对应的噪声范围,该第一位置为至少两个位置中推荐优先级最高的位置,该至少两个位置为对终端设备700定位得到的位置。确定模块702还用于根据该第一噪声范围和获取模块701获取的该目标噪声值,确定目标位置,该目标位置为第一位置或第二位置,该第二位置为该至少两个位置中与该第一位置不同的位置。修正模块703用于将推荐优先级最高的位置修正为确定模块702确定的该目标位置。As shown in FIG. 11 , an embodiment of the present invention provides a
可选的,本发明实施例中,确定模块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 In the case of being within the range, according to the information of the at least two positions, a second position is determined from the at least two positions, and the second position is determined as the target position.
可选的,本发明实施例中,上述至少两个位置的信息可以包括:该至少两个位置的坐标、以及与该至少两个位置对应的噪声范围。其中,该第二位置与第一位置之间的距离在预设范围内,且目标噪声值处于第二噪声范围内,该第二噪声范围为与第二位置对应的噪声范围。Optionally, in this embodiment of the present invention, the information on the at least two locations may include: coordinates of the at least two locations and noise ranges corresponding to the at least two locations. Wherein, the distance between the second position and the first position is within a preset range, and the target noise value is within a second noise range, and the second noise range is a noise range corresponding to the second position.
可选的,本发明实施例中,上述至少两个位置的信息可以包括:该至少两个位置的标识。相应地,获取模块701还用于在目标噪声值不处于第一噪声范围的情况下,获取第一图像,该第一图像为对终端设备700当前所处环境拍摄得到的图像。确定模块702具体用于根据至少两个位置的标识和第一图像,从至少两个位置中,确定至少一个备选位置;并根据该至少一个备选位置的信息,从该至少一个备选位置中,确定第二位置,并将该第二位置确定为目标位置;其中,该至少一个备选位置的信息包括该至少一个备选位置的坐标。Optionally, in this embodiment of the present invention, the information on the at least two locations may include: identifiers 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 photographing the environment where the
可选的,本发明实施例中,确定模块702具体用于确定上述第一图像指示的第一对象;并根据上述至少两个位置的标识,从至少两个位置中,确定用于指示该第一对象的至少一个标识;且将该至少一个标识对应的位置确定为上述至少一个备选位置。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; at least one identifier of an object; and determining a location corresponding to the at least one identifier as the at least one candidate location.
可选的,本发明实施例中,第一位置对应第一目标噪声范围和第二目标噪声范围,该第一目标噪声范围为第一时间段内第一位置对应的噪声范围,该第二目标噪声范围为第二时间段内第一位置对应的噪声范围。确定模块702具体用于确定目标时间,该目标时间为终端设备700当前的系统时间;并且在该目标时间在第一时间段内的情况下,将该第一目标噪声范围确定为目标噪声范围;或者,在该目标时间在第二时间段内的情况下,将该第二目标噪声范围确定为目标噪声范围。Optionally, in this embodiment of the present invention, the first position corresponds to the first target noise range and the second target noise range, the first target noise range is the noise range corresponding to the first position in the first time period, and the second target noise range is The noise range is the 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 the current system time of the
本发明实施例提供的终端设备能够实现上述方法实施例中终端设备实现的各个过程,为避免重复,这里不再赘述。The terminal device provided in the embodiments of the present invention can implement each process implemented by the terminal device in the foregoing method embodiments, and to avoid repetition, details are not described herein again.
本发明实施例提供的终端设备,可以获取目标噪声值(该目标噪声值为终端设备当前所处环境中的噪声值);并确定第一噪声范围(该第一噪声范围为与第一位置对应的噪声范围,该第一位置为至少两个位置中推荐优先级最高的位置,该至少两个位置为对终端设备定位得到的位置);并根据目标噪声值和第一噪声范围,确定目标位置(该目标位置为第一位置或第二位置,该第二位置为至少两个位置中与第一位置不同的位置);且将推荐优先级最高的位置修正为目标位置。通过该方案,在定位系统对终端设备定位得到的多个推荐位置的基础上,结合考虑终端设备当前所处环境的噪声值和与推荐优先级最高的位置对应的噪声范围,通过判断终端设备当前所处环境的噪声值是否处于与推荐优先级最高的位置对应的噪声范围内,确定推荐优先级最高的位置是否定位准确。进一步的,终端设备可以将推荐优先级最高的位置修正为目标位置。如此,本发明实施例可以提升终端设备的定位结果的精准度。The terminal device provided by the embodiment of the present invention can obtain a target noise value (the target noise value is the noise value in the environment where the terminal device is currently located); and determine the first noise range (the first noise range is corresponding to the first position) The first position is the position with the highest recommended priority among the at least two positions, the at least two positions are the positions obtained by locating the terminal device); and according to the target noise value and the first noise range, determine the 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 among the at least two positions); and the position with the highest recommendation priority is revised as the target position. Through this solution, on the basis of multiple recommended positions obtained by the positioning system of the terminal equipment, and considering the noise value of the current environment of the terminal equipment and the noise range corresponding to the position with the highest recommendation priority, the current Whether the noise value of the environment is within the noise range corresponding to the position with the highest recommended priority, it is determined whether the position with the highest recommended priority is located accurately. Further, the terminal device can correct the position with the highest recommendation priority as the target position. In this way, the embodiment of the present invention can improve the accuracy of the positioning result of the terminal device.
图12为实现本发明各个实施例的一种终端设备的硬件结构示意图。如图12所示,该终端设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图12中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。FIG. 12 is a schematic diagram of a hardware structure of a terminal device implementing various embodiments of the present invention. As shown in FIG. 12 , the
其中,处理器810,用于获取目标噪声值,该目标噪声值为终端设备当前所处环境中的噪声值;并确定第一噪声范围,该第一噪声范围为与第一位置对应的噪声范围,该第一位置为至少两个位置中推荐优先级最高的位置,该至少两个位置为对终端设备定位得到的位置;并根据目标噪声值和第一噪声范围,确定目标位置,该目标位置为第一位置或第二位置,该第二位置为至少两个位置中与第一位置不同的位置;且将推荐优先级最高的位置修正为目标位置。The
本发明实施例提供一种终端设备,该终端设备可以获取目标噪声值(该目标噪声值为终端设备当前所处环境中的噪声值);并确定第一噪声范围(该第一噪声范围为与第一位置对应的噪声范围,该第一位置为至少两个位置中推荐优先级最高的位置,该至少两个位置为对终端设备定位得到的位置);并根据目标噪声值和第一噪声范围,确定目标位置(该目标位置为第一位置或第二位置,该第二位置为至少两个位置中与第一位置不同的位置);且将推荐优先级最高的位置修正为目标位置。通过该方案,在定位系统对终端设备定位得到的多个推荐位置的基础上,结合考虑终端设备当前所处环境的噪声值和与推荐优先级最高的位置对应的噪声范围,通过判断终端设备当前所处环境的噪声值是否处于与推荐优先级最高的位置对应的噪声范围内,确定推荐优先级最高的位置是否定位准确。进一步的,终端设备可以将推荐优先级最高的位置修正为目标位置。如此,本发明实施例可以提升终端设备的定位结果的精准度。An embodiment of the present invention provides a terminal device, which can obtain a target noise value (the target noise value is the noise value in the environment where the terminal device is currently located); and determine a first noise range (the first noise range is the same as the The noise range corresponding to the first position, the first position is the position with the highest recommendation priority among the at least two positions, and the at least two positions are the positions obtained by locating the terminal device); and according to the target noise value and the first noise range , determine the target position (the target position is the first position or the second position, the second position is a position different from the first position in at least two positions); and correct the position with the highest recommendation priority as the target position. Through this solution, on the basis of multiple recommended positions obtained by the positioning system of the terminal equipment, and considering the noise value of the current environment of the terminal equipment and the noise range corresponding to the position with the highest recommendation priority, the current Whether the noise value of the environment is within the noise range corresponding to the position with the highest recommended priority, it is determined whether the position with the highest recommended priority is located accurately. Further, the terminal device can correct the position with the highest recommendation priority as the target position. In this way, the embodiment of the present invention can improve the accuracy of the positioning result of the terminal device.
应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, the radio frequency unit 801 can be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the
终端设备800通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The
音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与终端设备800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。The
输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(graphicsprocessing unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。The
终端设备800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在终端设备800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The
显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板8061。The
用户输入单元807可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The
进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图12中,触控面板8071与显示面板8061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现终端设备的输入和输出功能,具体此处不做限定。Further, the
接口单元808为外部装置与终端设备800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备800内的一个或多个元件或者可以用于在终端设备800和外部装置之间传输数据。The
存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The
处理器810是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器810可包括一个或多个处理单元;可选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。The
终端设备800还可以包括给各个部件供电的电源811(比如电池),可选的,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The
另外,终端设备800包括一些未示出的功能模块,在此不再赘述。In addition, the
可选的,本发明实施例还提供一种终端设备,包括如图12所示的处理器810,存储器809,存储在存储器809上并可在处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述定位方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present invention further provides a terminal device, including a
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述定位方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,该计算机可读存储介质可以包括只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。Embodiments of the present invention also provide 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, each process of the foregoing positioning method embodiment can be achieved, and the same technical effect can be achieved , in order to avoid repetition, it will not be repeated here. The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例公开的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods disclosed in the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from the spirit of the present invention and the scope protected by the claims, many forms can be made, which all belong to the protection of the present invention.
Claims (14)
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)
| 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)
| 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 | 广东小天才科技有限公司 | A method and device for intelligently adjusting the scene mode of a 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 |
-
2019
- 2019-03-28 CN CN201910245780.9A patent/CN110035379B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN110035379A (en) | 2019-07-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110221737B (en) | Icon display method and terminal device | |
| CN109862504B (en) | Display method and terminal equipment | |
| CN109040968B (en) | Road condition reminding method, mobile terminal and computer readable storage medium | |
| CN108769893B (en) | A terminal detection method and terminal | |
| CN108337368A (en) | A kind of update method and mobile terminal of location data | |
| CN108022446A (en) | A kind of parking spot acquisition methods, mobile terminal | |
| CN108592939A (en) | A kind of air navigation aid and terminal | |
| CN108882142A (en) | Reminder message sending method and mobile terminal | |
| CN111641928A (en) | Method for determining close contact person, terminal equipment and server | |
| CN111126995A (en) | A payment method and electronic device | |
| CN107911812A (en) | Optimal public land mobile network PPLMN list adjustment method and mobile terminal | |
| CN108197934A (en) | A kind of method of payment and terminal device | |
| CN108362303A (en) | A kind of air navigation aid and mobile terminal | |
| CN108917766B (en) | Navigation method and mobile terminal | |
| CN111601018A (en) | A detachable camera module positioning method and electronic device | |
| CN110940339A (en) | A navigation method and electronic device | |
| CN110035379B (en) | Positioning method and terminal equipment | |
| CN110234068B (en) | Positioning method and terminal equipment | |
| CN109932685A (en) | A kind of localization method, mobile terminal and indoor locating system | |
| CN110824516A (en) | Positioning method and electronic device | |
| CN111221602A (en) | Interface display method and electronic device | |
| CN109936817A (en) | A kind of localization method and terminal device | |
| CN108871352A (en) | A kind of map updating method and device | |
| CN108988413B (en) | Mobile terminal charging method and mobile terminal | |
| CN109813298B (en) | A navigation method 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 |
