CN116558494A - Method, system and medium based on smart wearable device compass function realization - Google Patents

Method, system and medium based on smart wearable device compass function realization Download PDF

Info

Publication number
CN116558494A
CN116558494A CN202310838148.1A CN202310838148A CN116558494A CN 116558494 A CN116558494 A CN 116558494A CN 202310838148 A CN202310838148 A CN 202310838148A CN 116558494 A CN116558494 A CN 116558494A
Authority
CN
China
Prior art keywords
information
compass
time
data information
real
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310838148.1A
Other languages
Chinese (zh)
Other versions
CN116558494B (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.)
Shenzhen Wake Up Technology Co ltd
Original Assignee
Shenzhen Wake Up Technology 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 Shenzhen Wake Up Technology Co ltd filed Critical Shenzhen Wake Up Technology Co ltd
Priority to CN202310838148.1A priority Critical patent/CN116558494B/en
Publication of CN116558494A publication Critical patent/CN116558494A/en
Application granted granted Critical
Publication of CN116558494B publication Critical patent/CN116558494B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/163Wearable computers, e.g. on a belt
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C17/00Compasses; Devices for ascertaining true or magnetic north for navigation or surveying purposes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/04Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by terrestrial means
    • G01C21/08Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 by terrestrial means involving use of the magnetic field of the earth
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Remote Sensing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • General Life Sciences & Earth Sciences (AREA)
  • Geology (AREA)
  • Automation & Control Theory (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method, a system and a medium for realizing compass functions based on intelligent wearable equipment. Belongs to the technical field of intelligent wearable equipment technology and compass display, and the method comprises the following steps: acquiring display geomagnetic data information, real-time geomagnetic data information and time information of a wearable device, processing the real-time geomagnetic data information to obtain effective real-time geomagnetic data information, inputting the effective real-time geomagnetic data information and the current display geomagnetic data information into a preset picture rotation regulation model for processing to obtain compass disc picture rotation data information, rotating a disc original image according to the compass disc picture rotation data information and mapping the compass disc original image with the time information to obtain compass disc display image information, and displaying the compass disc display image information on the wearable device; through calculation and image display to disc rotation information, the compass disc rotation function of the wearable device is realized.

Description

基于智能穿戴设备指南针功能实现的方法、系统和介质Method, system and medium based on smart wearable device compass function realization

技术领域technical field

本申请涉及智能穿戴设备技术和指南针显示技术领域,具体而言,涉及一种基于智能穿戴设备指南针功能实现的方法、系统和介质。This application relates to the field of smart wearable device technology and compass display technology, in particular, to a method, system and medium based on smart wearable device compass function realization.

背景技术Background technique

指南针可以便捷、快速的帮人们辨识方向,因此在户外运动中广受户外运动者青睐,目前市场中的智能穿戴设备指南针,均采用旋转指针的方式来指明方向,但是这一旋转方式,不能够直接显示当前朝向,对初用者来说,仍然需要根据指南针显示方位来思考、计算当前朝向,因此,需要对指南针显示方式进行调整,以实现快速、正确辨识使用者朝向的问题,来减少使用者的思考,迅速实现即读模式;而实现圆盘图像旋转的运算量是很大的,对设备性能有一定的要求,需通过创新数据处理方式来实现圆盘图像快速、准确的旋转。The compass can help people identify the direction conveniently and quickly, so it is widely favored by outdoor sportsmen in outdoor sports. At present, the compass of smart wearable devices in the market uses the method of rotating the pointer to indicate the direction, but this rotation method cannot Directly display the current orientation. For beginners, it is still necessary to think and calculate the current orientation based on the compass display orientation. Therefore, it is necessary to adjust the compass display method to quickly and correctly identify the user's orientation to reduce the use of According to the thinking of the reader, the instant reading mode can be quickly realized; while the amount of calculation to realize the rotation of the disk image is very large, and there are certain requirements for the performance of the equipment, it is necessary to realize the fast and accurate rotation of the disk image through innovative data processing methods.

针对上述问题,目前亟待有效的技术解决方案。For the above problems, effective technical solutions are urgently needed at present.

发明内容Contents of the invention

本申请发明的目的在于提供一种基于智能穿戴设备指南针功能实现的方法、系统和介质,可以根据指南针实时所处位置获取地磁数据信息,并通过圆盘图像旋转来实现指南针方向的指示,便于使用者快速、便捷的识别当前方位。The purpose of the invention of this application is to provide a method, system and medium based on the compass function of smart wearable devices, which can obtain geomagnetic data information according to the real-time position of the compass, and realize the direction indication of the compass through the rotation of the disc image, which is easy to use The operator can quickly and conveniently identify the current position.

本申请发明还提供了一种基于智能穿戴设备指南针功能实现的方法,包括以下步骤:The invention of the present application also provides a method for implementing compass functions based on smart wearable devices, including the following steps:

获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息;Obtain the currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device;

将所述实时地磁数据信息进行预处理,获得有效实时地磁数据信息;Preprocessing the real-time geomagnetic data information to obtain effective real-time geomagnetic data information;

将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息;Input the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into the preset image rotation control model for processing, and obtain the compass disk image rotation data information;

根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射并对圆盘原图像进行旋转,获得指南针圆盘展示图像信息;Mapping and rotating the original image of the compass disk according to the rotation data information of the compass disk image and the time information, to obtain display image information of the compass disk;

对所述指南针圆盘展示图像信息在所述穿戴设备进行显示。Displaying image information on the compass disc is displayed on the wearable device.

可选地,在本申请发明所述的智能穿戴设备指南针功能实现的方法中,所述获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息,包括:Optionally, in the method for realizing the compass function of the smart wearable device described in the invention of the present application, the acquisition of the currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device includes:

获取穿戴设备的指南针的当前显示地磁数据信息,包括显示磁场强度信息、显示磁偏角信息、显示磁倾角信息;Obtain the currently displayed geomagnetic data information of the compass of the wearable device, including displaying magnetic field strength information, magnetic declination information, and magnetic inclination information;

获取所述指南针的实时地磁数据信息,包括实时磁场强度信息、实时磁偏角信息、实时磁倾角信息;Obtaining real-time geomagnetic data information of the compass, including real-time magnetic field strength information, real-time magnetic declination information, and real-time magnetic inclination information;

获取所述指南针的时间信息。Get the time information of the compass.

可选地,在本申请发明所述的基于智能穿戴设备指南针功能实现方法中,所述将所述实时地磁数据信息进行预处理,获得有效实时地磁数据信息,包括:Optionally, in the method for implementing compass functions based on smart wearable devices described in the present application, the preprocessing of the real-time geomagnetic data information to obtain effective real-time geomagnetic data information includes:

根据多个实时地磁数据信息预处理得到实时地磁数据信息期待值;According to the preprocessing of multiple real-time geomagnetic data information, the expected value of real-time geomagnetic data information is obtained;

根据所述实时地磁数据信息期待值计算获得实时地磁离散度值,并保留小于预设离散度阈值的实时地磁离散度值对应的实时地磁数据信息;calculating the real-time geomagnetic dispersion value according to the expected value of the real-time geomagnetic data information, and retaining the real-time geomagnetic data information corresponding to the real-time geomagnetic dispersion value smaller than the preset dispersion threshold;

将保留的实时地磁数据信息标记为有效实时地磁数据信息。Mark the retained real-time geomagnetic data information as valid real-time geomagnetic data information.

可选地,在本申请发明所述的基于智能穿戴设备指南针功能实现方法中,所述将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息,包括:Optionally, in the method for implementing compass functions based on smart wearable devices described in the present application, the effective real-time geomagnetic data information and the currently displayed geomagnetic data information are input into a preset image rotation control model for processing , to obtain the rotation data information of the compass disk image, including:

将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入到预设的图片旋转调控模型中进行处理,获得实时地磁图片角度信息和显示地磁图片角度信息;Input the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into the preset image rotation control model for processing, obtain real-time geomagnetic image angle information and display geomagnetic image angle information;

根据所述实时地磁图片角度信息和显示地磁图片角度信息通过预设的旋转处理模型进行双因素旋转作差处理,获得指南针圆盘图片旋转数据信息。According to the angle information of the real-time geomagnetic picture and the angle information of the displayed geomagnetic picture, the two-factor rotation difference processing is performed through the preset rotation processing model to obtain the rotation data information of the compass disc picture.

可选地,在本申请发明所述的基于智能穿戴设备指南针功能实现方法中,所述根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射并对圆盘原图像进行旋转,获得指南针圆盘展示图像信息,具体为:Optionally, in the method for realizing the compass function based on the smart wearable device described in the present application, the rotation data information of the compass disk image and the time information are mapped and the original image of the disk is rotated to obtain The compass disc displays image information, specifically:

根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射关联,得到实时圆盘图片旋转信息;Carry out mapping and association according to the rotation data information of the compass disk image and the time information to obtain real-time disk image rotation information;

将所述实时圆盘图片旋转信息输入预设的圆盘图像处理模型中对圆盘原图像进行旋转,获得指南针圆盘展示图像信息并存入缓存区。Inputting the real-time disk image rotation information into the preset disk image processing model to rotate the original image of the disk to obtain compass disk display image information and store it in the buffer area.

可选地,在本申请发明所述的基于智能穿戴设备指南针功能实现方法中,所述对所述指南针圆盘展示图像信息在所述穿戴设备进行显示,包括:Optionally, in the method for implementing the compass function based on the smart wearable device described in the present application, the displaying image information on the compass disc on the wearable device includes:

将缓存区中所述指南针圆盘展示图像信息输入预设的指南针图显模型;Inputting the display image information of the compass disc in the buffer area into the preset compass graphic display model;

所述指南针图显模型根据预设的智能设备显示屏幕大小以及分辨率对所述指南针圆盘展示图像信息进行修正;The graphic display model of the compass corrects the display image information of the compass disc according to the preset display screen size and resolution of the smart device;

将所述修正后的指南针圆盘展示图像信息发送至屏显模块,并对屏幕显示内容进行刷新显示。Send the corrected compass disc display image information to the screen display module, and refresh and display the screen display content.

可选地,在本申请发明所述的基于智能穿戴设备指南针功能实现方法中,所述将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息,还包括:Optionally, in the method for implementing compass functions based on smart wearable devices described in the present application, the effective real-time geomagnetic data information and the currently displayed geomagnetic data information are input into a preset image rotation control model for processing , to obtain the rotation data information of the compass disk image, including:

所述指南针圆盘图片旋转数据信息包括旋转倾斜补偿角数据;The rotation data information of the compass disc picture includes rotation tilt compensation angle data;

所述旋转倾斜补偿角数据的计算公式为:The calculation formula of the rotation tilt compensation angle data is:

;

其中,为旋转倾斜补偿角数据,/>为判断旋转方向符号,/>为实时地磁偏角,为显示地磁倾角,/>为翻正切函数,/>为X轴方向磁力,/>为Y轴方向磁力。in, For rotation and tilt compensation angle data, /> To judge the rotation direction sign, /> is the real-time geomagnetic declination, To display the geomagnetic inclination, /> is the tangent function, /> is the magnetic force in the X-axis direction, /> is the magnetic force in the Y-axis direction.

第二方面,本申请发明还提供了一种基于智能穿戴设备指南针功能实现系统,该系统包括:存储器及处理器,所述存储器中包括基于智能穿戴设备指南针功能实现方法的程序,所述基于智能穿戴设备指南针功能实现方法的程序被所述处理器执行时,实现以下步骤:In the second aspect, the invention of the present application also provides a compass function realization system based on a smart wearable device. When the program of the method for realizing the compass function of the wearable device is executed by the processor, the following steps are implemented:

获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息;Obtain the currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device;

将所述实时地磁数据信息进行预处理,获得有效实时地磁数据信息;Preprocessing the real-time geomagnetic data information to obtain effective real-time geomagnetic data information;

将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息;Input the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into the preset image rotation control model for processing, and obtain the compass disk image rotation data information;

根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射并对圆盘原图像进行旋转,获得指南针圆盘展示图像信息;Mapping and rotating the original image of the compass disk according to the rotation data information of the compass disk image and the time information, to obtain display image information of the compass disk;

对所述指南针圆盘展示图像信息在所述穿戴设备进行显示。Displaying image information on the compass disc is displayed on the wearable device.

可选地,在本申请发明所述的基于智能穿戴设备指南针功能实现系统中,所述获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息,包括:Optionally, in the smart wearable device compass function realization system based on the invention of the present application, the acquisition of currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device includes:

获取穿戴设备的指南针的当前显示地磁数据信息,包括显示磁场强度信息、显示磁偏角信息、显示磁倾角信息;Obtain the currently displayed geomagnetic data information of the compass of the wearable device, including displaying magnetic field strength information, magnetic declination information, and magnetic inclination information;

获取所述指南针的实时地磁数据信息,包括实时磁场强度信息、实时磁偏角信息、实时磁倾角信息;Obtaining real-time geomagnetic data information of the compass, including real-time magnetic field strength information, real-time magnetic declination information, and real-time magnetic inclination information;

获取所述指南针的时间信息。Get the time information of the compass.

第三方面,本申请发明还提供了一种计算机可读存储介质,所述计算机可读存储介质中包括基于智能穿戴设备指南针功能实现方法程序,所述基于智能穿戴设备指南针功能实现方法程序被处理器执行时,实现如上述任一项所述的基于智能穿戴设备指南针功能实现方法的步骤。In the third aspect, the invention of the present application also provides a computer-readable storage medium, the computer-readable storage medium includes a method for realizing the compass function based on the smart wearable device, and the program for realizing the compass function based on the smart wearable device is processed When the device is executed, the steps of the method for realizing the compass function based on the smart wearable device as described in any one of the above are realized.

由上可知,本申请发明提供的一种基于智能穿戴设备指南针功能实现方法、系统及介质通过采集智能穿戴设备的当前显示地磁数据信息、实时地磁数据信息和时间信息,并对所述实时地磁数据信息进行预处理获得有效实时地磁数据信息,再将有效实时地磁数据信息和当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息,根据所述指南针圆盘图片旋转数据信息对圆盘原图像进行旋转并与所述时间信息进行映射,获得指南针圆盘展示图像信息,对所述指南针圆盘展示图像信息在所述穿戴设备进行显示。As can be seen from the above, the method, system and medium for realizing compass functions based on smart wearable devices provided by the invention of this application collect the currently displayed geomagnetic data information, real-time geomagnetic data information and time information of smart wearable devices, and analyze the real-time geomagnetic data. The information is preprocessed to obtain effective real-time geomagnetic data information, and then the effective real-time geomagnetic data information and the currently displayed geomagnetic data information are input into the preset image rotation control model for processing, and the compass disk image rotation data information is obtained. According to the compass circle The disk image rotation data information rotates the original disk image and maps it with the time information to obtain compass disk display image information, and displays the compass disk display image information on the wearable device.

本申请的其他特征和优点将在随后的说明书阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请发明了解。本申请的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the application will be set forth in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

附图说明Description of drawings

为了更清楚地说明本申请发明的技术方案,下面将对本申请发明中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solution of the invention of the present application more clearly, the accompanying drawings that need to be used in the invention of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the application, and therefore should not It is regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.

图1为本申请实施例提供的基于智能穿戴设备指南针功能实现方法的一种流程图;FIG. 1 is a flow chart of a method for realizing compass functions based on a smart wearable device provided in an embodiment of the present application;

图2为本申请实施例提供的基于智能穿戴设备指南针功能实现方法的获取当前显示地磁数据信息和实时地磁数据信息的流程图;Fig. 2 is a flow chart of acquiring currently displayed geomagnetic data information and real-time geomagnetic data information based on the smart wearable device compass function implementation method provided by the embodiment of the present application;

图3为本申请实施例提供的基于智能穿戴设备指南针功能实现方法的获得有效实时地磁数据信息的流程图;Fig. 3 is a flow chart of obtaining effective real-time geomagnetic data information based on the compass function implementation method of the smart wearable device provided by the embodiment of the present application;

图4为本申请实施例提供的基于智能穿戴设备指南针功能实现方法的获得指南针圆盘图片旋转数据信息的流程图;Fig. 4 is a flow chart of obtaining the rotation data information of the compass disk image based on the implementation method of the compass function of the smart wearable device provided by the embodiment of the present application;

图5为本申请实施例提供的基于智能穿戴设备指南针功能实现系统的结构示意图。FIG. 5 is a schematic structural diagram of a system for implementing compass functions based on smart wearable devices provided by an embodiment of the present application.

具体实施方式Detailed ways

为了能够更清楚地理解本发明的上述目的、特征和优点,下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行进一步清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to be able to understand the above purpose, features and advantages of the present invention more clearly, the technical solutions in the embodiments of the application will be further clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments It is only a part of the embodiments of the present application, but not all the embodiments. The components of the embodiments of the application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of the present application.

应注意到,相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

请参照图1,图1是本申请一些实施例中的基于智能穿戴设备指南针功能实现方法的一种流程图。该智能穿戴设备指南针功能实现方法用于基于智能穿戴设备的指南针中。Please refer to FIG. 1 . FIG. 1 is a flowchart of a method for implementing compass functions based on smart wearable devices in some embodiments of the present application. The compass function realization method of the smart wearable device is used in the compass based on the smart wearable device.

如图1所示,该基于智能穿戴设备指南针功能实现方法,包括以下步骤:As shown in Figure 1, the compass function implementation method based on the smart wearable device includes the following steps:

S101、获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息;S101. Obtain currently displayed geomagnetic data information, real-time geomagnetic data information, and time information of the compass of the wearable device;

S102、将所述实时地磁数据信息进行预处理,获得有效实时地磁数据信息;S102. Preprocessing the real-time geomagnetic data information to obtain effective real-time geomagnetic data information;

S103、将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息;S103. Input the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into a preset image rotation control model for processing, and obtain compass disk image rotation data information;

S104、根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射并对圆盘原图像进行旋转,获得指南针圆盘展示图像信息;S104. Mapping and rotating the original image of the compass disk according to the rotation data information of the compass disk image and the time information, to obtain display image information of the compass disk;

S105、对所述指南针圆盘展示图像信息在所述穿戴设备进行显示。S105. Displaying image information on the compass disc on the wearable device.

需要说明的是,由于所处位置、方位不同,地磁数据信息均可能不同,因此,于本实施例中,为实现智能穿戴设备指南针圆盘转动功能,首先要采集穿戴设备指南针当前显示地磁数据信息、实时地磁数据信息和时间信息,当前显示地磁数据信息包括显示磁场强度信息、显示磁偏角信息、显示磁倾角信息,实时地磁数据信息包括实时磁场强度信息、实时磁偏角信息、实时磁倾角信息,为保证实时地磁信息数据的准确性,要先对实时地磁数据信息进行预处理,预处理过程具体为:首先计算得到实时地磁数据信息期待值,根据期待值计算获得实时地磁离散度值,离散度值反映了数据的波动性大小,为保证一组实时地磁数据信息的有效、稳定性,将离散度小于预设离散度阈值的实时地磁数据信息保留,离散度大于预设离散度阈值的实时地磁数据信息舍弃,进而确定有效实时地磁数据信息;将有效实时地磁数据信息与当前显示地磁数据信息输入预设的图片旋转调控模型中,进行处理,获得指南针圆盘图片旋转数据信息,具体方式为:获得有效实时地磁图片角度信息和显示地磁图片角度信息,通过预设的旋转处理模型进行双因素旋转作差处理,获得指南针圆盘图片旋转数据信息,将指南针圆盘图片旋转数据信息与时间信息进行映射并联,得到实时圆盘图片旋转信息,穿戴设备圆盘显示会计算倾斜补偿角度方向和度数,然后经过圆盘图像处理模型对圆盘图像进行旋转,获得指南针圆盘展示图像信息,在显示时,指南针图显模型会根据智能穿戴设备显示屏幕大小及分辨率对指南针圆盘展示图像信息进行修正至最适合状态,实现指南针圆盘图像旋转,方便使用者快速、准确辨明当前方向的技术。It should be noted that due to different locations and orientations, the geomagnetic data information may be different. Therefore, in this embodiment, in order to realize the compass disk rotation function of the smart wearable device, firstly, the geomagnetic data information currently displayed by the compass of the wearable device must be collected. , real-time geomagnetic data information and time information, currently displayed geomagnetic data information includes display magnetic field strength information, display magnetic declination information, display magnetic dip angle information, real-time geomagnetic data information includes real-time magnetic field strength information, real-time magnetic declination information, real-time magnetic dip angle Information, in order to ensure the accuracy of real-time geomagnetic information data, it is necessary to preprocess the real-time geomagnetic data information. The preprocessing process is as follows: first calculate the expected value of real-time geomagnetic data information, and calculate the real-time geomagnetic dispersion value according to the expected value. The dispersion value reflects the volatility of the data. In order to ensure the effectiveness and stability of a set of real-time geomagnetic data information, the real-time geomagnetic data information whose dispersion degree is smaller than the preset dispersion threshold is retained, and the dispersion is greater than the preset dispersion threshold. The real-time geomagnetic data information is discarded, and then the effective real-time geomagnetic data information is determined; the effective real-time geomagnetic data information and the currently displayed geomagnetic data information are input into the preset image rotation control model for processing, and the compass disc image rotation data information is obtained. The specific method In order to: obtain effective real-time geomagnetic picture angle information and display geomagnetic picture angle information, carry out two-factor rotation difference processing through the preset rotation processing model, obtain compass disk picture rotation data information, and compass disk picture rotation data information and time The information is mapped and connected in parallel to obtain the real-time disk image rotation information. The wearable device disk display will calculate the tilt compensation angle direction and degree, and then rotate the disk image through the disk image processing model to obtain the compass disk display image information. When displaying, the compass graphic display model will correct the display image information of the compass disc to the most suitable state according to the display screen size and resolution of the smart wearable device, realize the rotation of the compass disc image, and facilitate the user to quickly and accurately identify the current direction technology .

请参照图2,图2是本申请一些实施例中的基于智能穿戴设备指南针功能实现方法的获取当前显示地磁数据信息和实时地磁数据信息的流程图。根据本发明实施例,所述获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息,具体为:Please refer to FIG. 2 . FIG. 2 is a flow chart of obtaining currently displayed geomagnetic data information and real-time geomagnetic data information based on a method for realizing compass function of a smart wearable device in some embodiments of the present application. According to an embodiment of the present invention, the acquisition of currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device is specifically:

S201、获取穿戴设备的指南针的当前显示地磁数据信息,包括显示磁场强度信息、显示磁偏角信息、显示磁倾角信息;S201. Obtain the currently displayed geomagnetic data information of the compass of the wearable device, including displaying magnetic field strength information, displaying magnetic declination information, and displaying magnetic inclination information;

S202、获取所述指南针的实时地磁数据信息,包括实时磁场强度信息、实时磁偏角信息、实时磁倾角信息;S202. Obtain real-time geomagnetic data information of the compass, including real-time magnetic field strength information, real-time magnetic declination information, and real-time magnetic inclination information;

S203、获取所述指南针的时间信息。S203. Obtain time information of the compass.

需要说明的是,地磁数据信息包括三个因素,分别是:磁场强度信息、磁偏角信息、磁倾角信息;由于所处位置、方位不同,地磁数据信息均可能不同,因此在计算指南针圆盘图片旋转数据信息前,需要先获取当前显示地磁数据信息和实时地磁数据信息,有了变化前和变化后的基础数据能准确的计算出旋转数据。It should be noted that geomagnetic data information includes three factors, namely: magnetic field intensity information, magnetic declination information, and magnetic inclination information; due to different locations and azimuths, geomagnetic data information may be different, so when calculating the compass disc Before the picture rotates data information, it is necessary to obtain the currently displayed geomagnetic data information and real-time geomagnetic data information. With the basic data before and after the change, the rotation data can be accurately calculated.

请参照图3,图3为本申请实施例提供的基于智能穿戴设备指南针功能实现方法的获得有效实时地磁数据信息的流程图。根据本发明实施例,所述将所述实时地磁数据信息进行预处理,获得有效实时地磁数据信息,包括:Please refer to FIG. 3 . FIG. 3 is a flow chart of obtaining effective real-time geomagnetic data information based on a compass function implementation method of a smart wearable device provided by an embodiment of the present application. According to an embodiment of the present invention, the preprocessing of the real-time geomagnetic data information to obtain effective real-time geomagnetic data information includes:

S301、根据多个实时地磁数据信息预处理得到实时地磁数据信息期待值;S301. Obtain an expected value of real-time geomagnetic data information according to preprocessing of multiple real-time geomagnetic data information;

S302、根据所述实时地磁数据信息期待值计算获得实时地磁离散度值,并保留小于预设离散度阈值的实时地磁离散度值对应的实时地磁数据信息;S302. Calculate and obtain the real-time geomagnetic dispersion value according to the expected value of the real-time geomagnetic data information, and retain the real-time geomagnetic data information corresponding to the real-time geomagnetic dispersion value smaller than the preset dispersion threshold;

S303、将保留的实时地磁数据信息标记为有效实时地磁数据信息。S303. Mark the retained real-time geomagnetic data information as valid real-time geomagnetic data information.

需要说明的是,在同一位置,不同高度、不同方向地磁数据信息也可能会出现较大偏差的现象,因此我们测量几组实时地磁数据信息后,要先进行预处理,得到有效实时地磁数据信息,更精确地表示实时地磁数据信息,预处理过程首先通过计算得到实时地磁数据信息期待值,其计算公式为:It should be noted that at the same location, geomagnetic data information at different heights and directions may also have large deviations. Therefore, after we measure several sets of real-time geomagnetic data information, we must first perform preprocessing to obtain effective real-time geomagnetic data information. , to more accurately represent the real-time geomagnetic data information, the preprocessing process first calculates the expected value of the real-time geomagnetic data information, and the calculation formula is:

;

其中,为地磁数据信息期待值,/>、/>....../>为一组中的/>个地磁数据信息,/>为一组地磁数据信息的个数,再根据期待值计算获得实时地磁离散度值,其计算公式为:in, is the expected value of geomagnetic data information, /> , /> ....../> for /> in a group Geomagnetic data information, /> is the number of a set of geomagnetic data information, and then calculate the real-time geomagnetic dispersion value according to the expected value. The calculation formula is:

;

其中,为实时地磁离散度值,/>为一组地磁数据信息的个数,/>为第/>个地磁数据信息,/>为实时地磁数据信息期待值;in, is the real-time geomagnetic dispersion value, /> is the number of a set of geomagnetic data information, /> for No. /> Geomagnetic data information, /> is the expected value of real-time geomagnetic data information;

离散度值反映了数据的波动性大小,为保证一组实时地磁数据信息的有效、稳定性,将离散度小于预设离散度阈值的实时地磁数据信息保留,离散度大于预设离散度阈值的实时地磁数据信息舍弃,进而确定有效实时地磁数据信息。The dispersion value reflects the volatility of the data. In order to ensure the effectiveness and stability of a set of real-time geomagnetic data information, the real-time geomagnetic data information whose dispersion degree is smaller than the preset dispersion threshold is retained, and the dispersion is greater than the preset dispersion threshold. Real-time geomagnetic data information is discarded, and effective real-time geomagnetic data information is determined.

请参照图4,图4为本申请实施例提供的基于智能穿戴设备指南针功能实现方法的获得指南针圆盘图片旋转数据信息的流程图。根据本发明实施例,所述将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息,包括:Please refer to FIG. 4 . FIG. 4 is a flow chart of obtaining rotation data information of a compass disk image based on a method for implementing a compass function of a smart wearable device provided by an embodiment of the present application. According to an embodiment of the present invention, the input of the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into a preset image rotation control model for processing to obtain compass disk image rotation data information includes:

S401、将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入到预设的图片旋转调控模型中进行处理,获得实时地磁图片角度信息和显示地磁图片角度信息;S401. Input the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into a preset image rotation control model for processing, and obtain real-time geomagnetic image angle information and displayed geomagnetic image angle information;

S402、根据所述实时地磁图片角度信息和显示地磁图片角度信息通过预设的旋转处理模型进行双因素旋转作差处理,获得指南针圆盘图片旋转数据信息。S402. According to the angle information of the real-time geomagnetic picture and the angle information of the displayed geomagnetic picture, perform two-factor rotation difference processing through a preset rotation processing model, and obtain the rotation data information of the compass disk picture.

需要说明的是,确定有效实时地磁数据信息和当前显示地磁数据信息后,需要将数据信息转换成显示角度信息,将以上数据输入到预设的图片旋转调控模型中,模型经过计算处理,分别得到实时地磁图片角度信息和显示地磁图片角度信息;为更精确地获得圆盘图片旋转数据信息,将得到的实时地磁图片角度信息和显示地磁图片角度信息通过预设的旋转处理模型进行双因素旋转作差处理,获得精确地指南针圆盘图片旋转数据信息,即当前显示圆盘图片应该朝何方向旋转多少度,具体的,双因素旋转作差公式为:It should be noted that after determining the effective real-time geomagnetic data information and the currently displayed geomagnetic data information, the data information needs to be converted into display angle information, and the above data are input into the preset image rotation control model, and the model is calculated and processed to obtain Real-time geomagnetic picture angle information and displayed geomagnetic picture angle information; in order to obtain the disk picture rotation data information more accurately, the obtained real-time geomagnetic picture angle information and displayed geomagnetic picture angle information are subjected to two-factor rotation through the preset rotation processing model Difference processing, to obtain accurate rotation data information of the compass disk image, that is, how many degrees the current display disk image should rotate in. Specifically, the two-factor rotation difference formula is:

;

其中,为函数/>在点P=(x,y)的值,Q11=(/>,/>)、Q12=(/>,/>)、Q21=(,/>)以及Q22=(/>,/>)分别为函数/>上的4个点的值。in, for the function /> Value at point P=(x,y), Q11=(/> , /> ), Q12=(/> , /> ), Q21=( ,/> ) and Q22=(/> ,/> ) respectively for the function /> The value of the 4 points on .

根据本发明实施例,所述根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射并对圆盘原图像进行旋转,获得指南针圆盘展示图像信息,具体为:According to an embodiment of the present invention, the compass disk picture rotation data information is mapped with the time information and the original image of the disk is rotated to obtain compass disk display image information, specifically:

根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射关联,得到实时圆盘图片旋转信息;Carry out mapping and association according to the rotation data information of the compass disk image and the time information to obtain real-time disk image rotation information;

将所述实时圆盘图片旋转信息输入预设的圆盘图像处理模型中对圆盘原图像进行旋转,获得指南针圆盘展示图像信息并存入缓存区。Inputting the real-time disk image rotation information into the preset disk image processing model to rotate the original image of the disk to obtain compass disk display image information and store it in the buffer area.

需要说明的是,由于指南针的状态有可能是随时在动的,所以说实时地磁数据信息和当前显示地磁数据信息也是可能随时在变化的,指南针圆盘图片旋转数据信息也随之不断变化,由于数据的不断更新,就要对数据的顺序性和唯一性进行辨别,因此需要将指南针圆盘图片旋转数据信息与时间信息映射关联,确保实时圆盘图片旋转信息的最新状态值和即时性;将所述实时圆盘图片旋转信息输入预设的圆盘图像处理模型中,对圆盘原图像进行旋转操作,得到指南针圆盘展示图像信息,并将其存入缓存区。It should be noted that since the state of the compass may be moving at any time, the real-time geomagnetic data information and the currently displayed geomagnetic data information may also change at any time, and the rotation data information of the compass disk image will also change accordingly. The continuous updating of data requires the identification of the sequence and uniqueness of the data. Therefore, it is necessary to associate the compass disk image rotation data information with the time information mapping to ensure the latest state value and immediacy of the real-time disk image rotation information; The real-time disc image rotation information is input into the preset disc image processing model, and the original disc image is rotated to obtain compass disc display image information, which is stored in the buffer area.

根据本发明实施例,所述对所述指南针圆盘展示图像信息在所述穿戴设备进行显示,包括:According to an embodiment of the present invention, the displaying image information on the compass disc on the wearable device includes:

将缓存区中所述指南针圆盘展示图像信息输入预设的指南针图显模型;Inputting the display image information of the compass disc in the buffer area into the preset compass graphic display model;

所述指南针图显模型根据预设的智能设备显示屏幕大小以及分辨率对所述指南针圆盘展示图像信息进行修正;The graphic display model of the compass corrects the display image information of the compass disc according to the preset display screen size and resolution of the smart device;

将所述修正后的指南针圆盘展示图像信息发送至屏显模块,并对屏幕显示内容进行刷新显示。Send the corrected compass disc display image information to the screen display module, and refresh and display the screen display content.

需要说明的是,缓存区指南针圆盘展示图像信息到屏幕显示,仍然需要进行计算、修正,将指南针圆盘展示图像信息输入到预设的指南针图显模型中,由于智能穿戴设备屏幕大小及分辨率等信息不一致,图显模型会根据预设的智能穿戴设备显示屏幕大小以及分辨率对所述指南针圆盘展示图像信息进行修正,然后将修正后的指南针圆盘展示图像信息发送至屏显模块,对屏幕显示内容进行刷新显示。It should be noted that the image information displayed by the compass disc in the cache area is displayed on the screen, and calculation and correction are still required. The image information displayed by the compass disc is input into the preset compass graphic display model. Due to the size and resolution of the smart wearable device screen rate and other information is inconsistent, the graphic display model will correct the compass disc display image information according to the preset display screen size and resolution of the smart wearable device, and then send the corrected compass disc display image information to the screen display module , to refresh the display content on the screen.

根据本发明实施例,所述将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息,还包括:According to an embodiment of the present invention, the inputting the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into a preset image rotation control model for processing to obtain compass disk image rotation data information further includes:

所述指南针圆盘图片旋转数据信息包括旋转倾斜补偿角数据;The rotation data information of the compass disc picture includes rotation tilt compensation angle data;

所述旋转倾斜补偿角数据的计算公式为:The calculation formula of the rotation tilt compensation angle data is:

;

其中,为旋转倾斜补偿角数据,/>为判断旋转方向符号,/>为实时地磁偏角,为显示地磁倾角,/>为翻正切函数,/>为X轴方向磁力,/>为Y轴方向磁力。in, For rotation and tilt compensation angle data, /> To judge the rotation direction sign, /> is the real-time geomagnetic declination, To display the geomagnetic inclination, /> is the tangent function, /> is the magnetic force in the X-axis direction, /> is the magnetic force in the Y-axis direction.

需要说明的是,在获得指南针圆盘图片旋转数据信息时,为了提高显示精确性,要进行倾斜补偿角度计算,经过公式计算,可以判断出倾斜补偿角的方向和角度大小。It should be noted that when obtaining the rotation data information of the compass disk image, in order to improve the display accuracy, the calculation of the tilt compensation angle is performed. After the formula calculation, the direction and angle of the tilt compensation angle can be judged.

值得一提的是,本发明还包括:It is worth mentioning that the present invention also includes:

所述指南针圆盘展示图像信息在所述穿戴设备进行显示后,智能穿戴设备播报当前指南针旋转操作的方向、角度和当前实时方位信息。After the compass disc display image information is displayed on the wearable device, the smart wearable device broadcasts the direction, angle and current real-time orientation information of the current compass rotation operation.

需要说明的是,穿戴设备进行显示后,播报当前指南针旋转操作的方向、角度和当前实时方位信息,一是有助于使用者更容易的知道旋转方位变化及旋转角度大小和当前面临的实时方位信息,另一方面,这样也可以让视力障碍者清晰的知道当前方位变化,提供了较好的帮助。It should be noted that after the wearable device is displayed, it broadcasts the direction, angle and current real-time orientation information of the current compass rotation operation. First, it helps the user to more easily know the changes in the rotation orientation, the size of the rotation angle, and the current real-time orientation. Information, on the other hand, can also let the visually impaired clearly know the current orientation change, which provides better help.

值得一提的是,本发明还包括:It is worth mentioning that the present invention also includes:

所述智能穿戴设备指南针功能实现时,获取智能穿戴设备定位数据在数据库中相对应磁场强度,并与实时磁场强度进行对比,将对比结果与预设阈值比较,输出相应提示信息。When the compass function of the smart wearable device is realized, the magnetic field strength corresponding to the positioning data of the smart wearable device in the database is obtained, compared with the real-time magnetic field strength, the comparison result is compared with the preset threshold, and corresponding prompt information is output.

需要说明的是,获取的智能穿戴设备定位数据包括设备所处经纬度、高度等位置信息,并根据所述定位数据匹配数据库中的对应磁场强度,将实时磁场强度与数据库中的对应磁场强度进行对比,如果强度比值大小超过预设阈值20%,则智能设备会发出预警提示,附近可能会有影响指南针正确显示的磁场或其他因素。It should be noted that the acquired positioning data of the smart wearable device includes location information such as the longitude, latitude, and height of the device, and the corresponding magnetic field strength in the database is matched according to the positioning data, and the real-time magnetic field strength is compared with the corresponding magnetic field strength in the database. , if the intensity ratio exceeds the preset threshold of 20%, the smart device will issue an early warning prompt that there may be a magnetic field or other factors nearby that may affect the correct display of the compass.

如图5所示,本发明还公开了一种基于智能穿戴设备指南针功能实现系统5,包括存储器51和处理器52,所述存储器中包括智能穿戴设备指南针功能实现方法程序,所述智能穿戴设备指南针功能实现方法程序被所述处理器执行时实现如下步骤:As shown in Figure 5, the present invention also discloses a compass function realization system 5 based on a smart wearable device, including a memory 51 and a processor 52, the memory includes a method program for realizing the compass function of a smart wearable device, and the smart wearable device When the compass function realization method program is executed by the processor, the following steps are realized:

获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息;Obtain the currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device;

将所述实时地磁数据信息进行预处理,获得有效实时地磁数据信息;Preprocessing the real-time geomagnetic data information to obtain effective real-time geomagnetic data information;

将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息;Input the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into the preset image rotation control model for processing, and obtain the compass disk image rotation data information;

根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射并对圆盘原图像进行旋转,获得指南针圆盘展示图像信息;Mapping and rotating the original image of the compass disk according to the rotation data information of the compass disk image and the time information, to obtain display image information of the compass disk;

对所述指南针圆盘展示图像信息在所述穿戴设备进行显示。Displaying image information on the compass disc is displayed on the wearable device.

需要说明的是,由于所处位置、方位不同,地磁数据信息均可能不同,因此,于本实施例中,为实现智能穿戴设备指南针圆盘转动功能,首先要采集穿戴设备指南针当前显示地磁数据信息、实时地磁数据信息和时间信息,当前显示地磁数据信息包括显示磁场强度信息、显示磁偏角信息、显示磁倾角信息,实时地磁数据信息包括实时磁场强度信息、实时磁偏角信息、实时磁倾角信息,为保证实时地磁信息数据的准确性,要先对实时地磁数据信息进行预处理,预处理过程具体为:首先计算得到实时地磁数据信息期待值,根据期待值计算获得实时地磁离散度值,离散度值反映了数据的波动性大小,为保证一组实时地磁数据信息的有效、稳定性,将离散度小于预设离散度阈值的实时地磁数据信息保留,离散度大于预设离散度阈值的实时地磁数据信息舍弃,进而确定有效实时地磁数据信息;将有效实时地磁数据信息与当前显示地磁数据信息输入预设的图片旋转调控模型中,进行处理,获得指南针圆盘图片旋转数据信息,具体方式为:获得有效实时地磁图片角度信息和显示地磁图片角度信息,通过预设的旋转处理模型进行双因素旋转作差处理,获得指南针圆盘图片旋转数据信息,将指南针圆盘图片旋转数据信息与时间信息进行映射并联,得到实时圆盘图片旋转信息,穿戴设备圆盘显示会计算倾斜补偿角度方向和度数,然后经过圆盘图像处理模型对圆盘图像进行旋转,获得指南针圆盘展示图像信息,在显示时,指南针图显模型会根据智能穿戴设备显示屏幕大小及分辨率对指南针圆盘展示图像信息进行修正至最适合状态,实现指南针圆盘图像旋转,方便使用者快速、准确辨明当前方向的技术。It should be noted that due to different locations and orientations, the geomagnetic data information may be different. Therefore, in this embodiment, in order to realize the compass disk rotation function of the smart wearable device, firstly, the geomagnetic data information currently displayed by the compass of the wearable device must be collected. , real-time geomagnetic data information and time information, currently displayed geomagnetic data information includes display magnetic field strength information, display magnetic declination information, display magnetic dip angle information, real-time geomagnetic data information includes real-time magnetic field strength information, real-time magnetic declination information, real-time magnetic dip angle Information, in order to ensure the accuracy of real-time geomagnetic information data, it is necessary to preprocess the real-time geomagnetic data information. The preprocessing process is as follows: first calculate the expected value of real-time geomagnetic data information, and calculate the real-time geomagnetic dispersion value according to the expected value. The dispersion value reflects the volatility of the data. In order to ensure the effectiveness and stability of a set of real-time geomagnetic data information, the real-time geomagnetic data information whose dispersion degree is smaller than the preset dispersion threshold is retained, and the dispersion is greater than the preset dispersion threshold. The real-time geomagnetic data information is discarded, and then the effective real-time geomagnetic data information is determined; the effective real-time geomagnetic data information and the currently displayed geomagnetic data information are input into the preset image rotation control model for processing, and the compass disc image rotation data information is obtained. The specific method In order to: obtain effective real-time geomagnetic picture angle information and display geomagnetic picture angle information, carry out two-factor rotation difference processing through the preset rotation processing model, obtain compass disk picture rotation data information, and compass disk picture rotation data information and time The information is mapped and connected in parallel to obtain the real-time disk image rotation information. The wearable device disk display will calculate the tilt compensation angle direction and degree, and then rotate the disk image through the disk image processing model to obtain the compass disk display image information. When displaying, the compass graphic display model will correct the display image information of the compass disc to the most suitable state according to the display screen size and resolution of the smart wearable device, realize the rotation of the compass disc image, and facilitate the user to quickly and accurately identify the current direction technology .

根据本发明实施例,所述获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息,具体为:According to an embodiment of the present invention, the acquisition of currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device is specifically:

获取穿戴设备的指南针的当前显示地磁数据信息,包括显示磁场强度信息、显示磁偏角信息、显示磁倾角信息;Obtain the currently displayed geomagnetic data information of the compass of the wearable device, including displaying magnetic field strength information, magnetic declination information, and magnetic inclination information;

获取所述指南针的实时地磁数据信息,包括实时磁场强度信息、实时磁偏角信息、实时磁倾角信息;Obtaining real-time geomagnetic data information of the compass, including real-time magnetic field strength information, real-time magnetic declination information, and real-time magnetic inclination information;

获取所述指南针的时间信息。Get the time information of the compass.

需要说明的是,地磁数据信息包括三个因素,分别是:磁场强度信息、磁偏角信息、磁倾角信息;由于所处位置、方位不同,地磁数据信息均可能不同,因此在计算指南针圆盘图片旋转数据信息前,需要先获取当前显示地磁数据信息和实时地磁数据信息,有了变化前和变化后的基础数据能准确的计算出旋转数据。It should be noted that geomagnetic data information includes three factors, namely: magnetic field intensity information, magnetic declination information, and magnetic inclination information; due to different locations and azimuths, geomagnetic data information may be different, so when calculating the compass disc Before the picture rotates data information, it is necessary to obtain the currently displayed geomagnetic data information and real-time geomagnetic data information. With the basic data before and after the change, the rotation data can be accurately calculated.

根据本发明实施例,所述将所述实时地磁数据信息进行预处理,获得有效实时地磁数据信息,包括:According to an embodiment of the present invention, the preprocessing of the real-time geomagnetic data information to obtain effective real-time geomagnetic data information includes:

根据多个实时地磁数据信息预处理得到实时地磁数据信息期待值;According to the preprocessing of multiple real-time geomagnetic data information, the expected value of real-time geomagnetic data information is obtained;

根据所述实时地磁数据信息期待值计算获得实时地磁离散度值,并保留小于预设离散度阈值的实时地磁离散度值对应的实时地磁数据信息;calculating the real-time geomagnetic dispersion value according to the expected value of the real-time geomagnetic data information, and retaining the real-time geomagnetic data information corresponding to the real-time geomagnetic dispersion value smaller than the preset dispersion threshold;

将保留的实时地磁数据信息标记为有效实时地磁数据信息。Mark the retained real-time geomagnetic data information as valid real-time geomagnetic data information.

需要说明的是,在同一位置,不同高度、不同方向地磁数据信息也可能会出现较大偏差的现象,因此我们测量几组实时地磁数据信息后,要先进行预处理,得到有效实时地磁数据信息,更精确地表示实时地磁数据信息,预处理过程首先通过计算得到实时地磁数据信息期待值,其计算公式为:It should be noted that at the same location, geomagnetic data information at different heights and directions may also have large deviations. Therefore, after we measure several sets of real-time geomagnetic data information, we must first perform preprocessing to obtain effective real-time geomagnetic data information. , to more accurately represent the real-time geomagnetic data information, the preprocessing process first calculates the expected value of the real-time geomagnetic data information, and the calculation formula is:

;

其中,为地磁数据信息期待值,/>、/>....../>为一组中的/>个地磁数据信息,/>为一组地磁数据信息的个数,再根据期待值计算获得实时地磁离散度值,其计算公式为:in, is the expected value of geomagnetic data information, /> , /> ....../> for /> in a group Geomagnetic data information, /> is the number of a set of geomagnetic data information, and then calculate the real-time geomagnetic dispersion value according to the expected value. The calculation formula is:

;

其中,为实时地磁离散度值,/>为一组地磁数据信息的个数,/>为第/>个地磁数据信息,/>为实时地磁数据信息期待值;in, is the real-time geomagnetic dispersion value, /> is the number of a set of geomagnetic data information, /> for No. /> Geomagnetic data information, /> is the expected value of real-time geomagnetic data information;

离散度值反映了数据的波动性大小,为保证一组实时地磁数据信息的有效、稳定性,将离散度小于预设离散度阈值的实时地磁数据信息保留,离散度大于预设离散度阈值的实时地磁数据信息舍弃,进而确定有效实时地磁数据信息。The dispersion value reflects the volatility of the data. In order to ensure the effectiveness and stability of a set of real-time geomagnetic data information, the real-time geomagnetic data information whose dispersion degree is smaller than the preset dispersion threshold is retained, and the dispersion is greater than the preset dispersion threshold. Real-time geomagnetic data information is discarded, and effective real-time geomagnetic data information is determined.

根据本发明实施例,所述将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息,包括:According to an embodiment of the present invention, the input of the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into a preset image rotation control model for processing to obtain compass disk image rotation data information includes:

将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入到预设的图片旋转调控模型中进行处理,获得实时地磁图片角度信息和显示地磁图片角度信息;Input the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into the preset image rotation control model for processing, obtain real-time geomagnetic image angle information and display geomagnetic image angle information;

根据所述实时地磁图片角度信息和显示地磁图片角度信息通过预设的旋转处理模型进行双因素旋转作差处理,获得指南针圆盘图片旋转数据信息。According to the angle information of the real-time geomagnetic picture and the angle information of the displayed geomagnetic picture, the two-factor rotation difference processing is performed through the preset rotation processing model to obtain the rotation data information of the compass disc picture.

需要说明的是,确定有效实时地磁数据信息和当前显示地磁数据信息后,需要将数据信息转换成显示角度信息,将以上数据输入到预设的图片旋转调控模型中,模型经过计算处理,分别得到实时地磁图片角度信息和显示地磁图片角度信息;为更精确地获得圆盘图片旋转数据信息,将得到的实时地磁图片角度信息和显示地磁图片角度信息通过预设的旋转处理模型进行双因素旋转作差处理,获得精确地指南针圆盘图片旋转数据信息,即当前显示圆盘图片应该朝何方向旋转多少度,具体的,双因素旋转作差公式为:It should be noted that after determining the effective real-time geomagnetic data information and the currently displayed geomagnetic data information, the data information needs to be converted into display angle information, and the above data are input into the preset image rotation control model, and the model is calculated and processed to obtain Real-time geomagnetic picture angle information and displayed geomagnetic picture angle information; in order to obtain the disk picture rotation data information more accurately, the obtained real-time geomagnetic picture angle information and displayed geomagnetic picture angle information are subjected to two-factor rotation through the preset rotation processing model Difference processing, to obtain accurate rotation data information of the compass disk image, that is, how many degrees the current display disk image should rotate in. Specifically, the two-factor rotation difference formula is:

;

其中,为函数/>在点P=(x,y)的值,Q11=(/>,/>)、Q12=(/>,/>)、Q21=(,/>)以及Q22=(/>,/>)分别为函数/>上的4个点的值。in, for the function /> Value at point P=(x,y), Q11=(/> , /> ), Q12=(/> , /> ), Q21=( ,/> ) and Q22=(/> ,/> ) respectively for the function /> The value of the 4 points on .

根据本发明实施例,所述根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射并对圆盘原图像进行旋转,获得指南针圆盘展示图像信息,具体为:According to an embodiment of the present invention, the compass disk picture rotation data information is mapped with the time information and the original image of the disk is rotated to obtain compass disk display image information, specifically:

根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射关联,得到实时圆盘图片旋转信息;Carry out mapping and association according to the rotation data information of the compass disk image and the time information to obtain real-time disk image rotation information;

将所述实时圆盘图片旋转信息输入预设的圆盘图像处理模型中对圆盘原图像进行旋转,获得指南针圆盘展示图像信息并存入缓存区。Inputting the real-time disk image rotation information into the preset disk image processing model to rotate the original image of the disk to obtain compass disk display image information and store it in the buffer area.

需要说明的是,由于指南针的状态有可能是随时在动的,所以说实时地磁数据信息和当前显示地磁数据信息也是可能随时在变化的,指南针圆盘图片旋转数据信息也随之不断变化,由于数据的不断更新,就要对数据的顺序性和唯一性进行辨别,因此需要将指南针圆盘图片旋转数据信息与时间信息映射关联,确保实时圆盘图片旋转信息的最新状态值和即时性;将所述实时圆盘图片旋转信息输入预设的圆盘图像处理模型中,对圆盘原图像进行旋转操作,得到指南针圆盘展示图像信息,并将其存入缓存区。It should be noted that since the state of the compass may be moving at any time, the real-time geomagnetic data information and the currently displayed geomagnetic data information may also change at any time, and the rotation data information of the compass disk image will also change accordingly. The continuous updating of data requires the identification of the sequence and uniqueness of the data. Therefore, it is necessary to associate the compass disk image rotation data information with the time information mapping to ensure the latest state value and immediacy of the real-time disk image rotation information; The real-time disc image rotation information is input into the preset disc image processing model, and the original disc image is rotated to obtain compass disc display image information, which is stored in the buffer area.

根据本发明实施例,所述对所述指南针圆盘展示图像信息在所述穿戴设备进行显示,包括:According to an embodiment of the present invention, the displaying image information on the compass disc on the wearable device includes:

将缓存区中所述指南针圆盘展示图像信息输入预设的指南针图显模型;Inputting the display image information of the compass disc in the buffer area into the preset compass graphic display model;

所述指南针图显模型根据预设的智能设备显示屏幕大小以及分辨率对所述指南针圆盘展示图像信息进行修正;The graphic display model of the compass corrects the display image information of the compass disc according to the preset display screen size and resolution of the smart device;

将所述修正后的指南针圆盘展示图像信息发送至屏显模块,并对屏幕显示内容进行刷新显示。Send the corrected compass disc display image information to the screen display module, and refresh and display the screen display content.

需要说明的是,缓存区指南针圆盘展示图像信息到屏幕显示,仍然需要进行计算、修正,将指南针圆盘展示图像信息输入到预设的指南针图显模型中,由于智能穿戴设备屏幕大小及分辨率等信息不一致,图显模型会根据预设的智能穿戴设备显示屏幕大小以及分辨率对所述指南针圆盘展示图像信息进行修正,然后将修正后的指南针圆盘展示图像信息发送至屏显模块,对屏幕显示内容进行刷新显示。It should be noted that the image information displayed by the compass disc in the cache area is displayed on the screen, and calculation and correction are still required. The image information displayed by the compass disc is input into the preset compass graphic display model. Due to the size and resolution of the smart wearable device screen rate and other information is inconsistent, the graphic display model will correct the compass disc display image information according to the preset display screen size and resolution of the smart wearable device, and then send the corrected compass disc display image information to the screen display module , to refresh the screen display content.

根据本发明实施例,所述将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息,还包括:According to an embodiment of the present invention, the inputting the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into a preset image rotation control model for processing to obtain compass disk image rotation data information further includes:

所述指南针圆盘图片旋转数据信息包括旋转倾斜补偿角数据;The rotation data information of the compass disc picture includes rotation tilt compensation angle data;

所述旋转倾斜补偿角数据的计算公式为:The calculation formula of the rotation tilt compensation angle data is:

;

其中,为旋转倾斜补偿角数据,/>为判断旋转方向符号,/>为实时地磁偏角,/>为显示地磁倾角,/>为翻正切函数,/>为X轴方向磁力,/>为Y轴方向磁力。in, For rotation and tilt compensation angle data, /> To judge the rotation direction sign, /> is the real-time geomagnetic declination, /> To display the geomagnetic inclination, /> is the tangent function, /> is the magnetic force in the X-axis direction, /> is the magnetic force in the Y-axis direction.

需要说明的是,在获得指南针圆盘图片旋转数据信息时,为了提高显示精确性,要进行倾斜补偿角度计算,经过公式计算,可以判断出倾斜补偿角的方向和角度大小。It should be noted that when obtaining the rotation data information of the compass disk image, in order to improve the display accuracy, the calculation of the tilt compensation angle is performed. After the formula calculation, the direction and angle of the tilt compensation angle can be judged.

值得一提的是,本发明还包括:It is worth mentioning that the present invention also includes:

所述指南针圆盘展示图像信息在所述穿戴设备进行显示后,智能穿戴设备播报当前指南针旋转操作的方向、角度和当前实时方位信息。After the compass disc display image information is displayed on the wearable device, the smart wearable device broadcasts the direction, angle and current real-time orientation information of the current compass rotation operation.

需要说明的是,穿戴设备进行显示后,播报当前指南针旋转操作的方向、角度和当前实时方位信息,一是有助于使用者更容易的知道旋转方位变化及旋转角度大小和当前面临的实时方位信息,另一方面,这样也可以让视力障碍者清晰的知道当前方位变化,提供了较好的帮助。It should be noted that after the wearable device is displayed, it broadcasts the direction, angle and current real-time orientation information of the current compass rotation operation. First, it helps the user to more easily know the changes in the rotation orientation, the size of the rotation angle, and the current real-time orientation. Information, on the other hand, can also let the visually impaired clearly know the current orientation change, which provides better help.

值得一提的是,本发明还包括:It is worth mentioning that the present invention also includes:

所述智能穿戴设备指南针功能实现时,获取智能穿戴设备定位数据在数据库中相对应磁场强度,并与实时磁场强度进行对比,将对比结果与预设阈值比较,输出相应提示信息。When the compass function of the smart wearable device is realized, the magnetic field strength corresponding to the positioning data of the smart wearable device in the database is obtained, compared with the real-time magnetic field strength, the comparison result is compared with the preset threshold, and corresponding prompt information is output.

需要说明的是,获取的智能穿戴设备定位数据包括设备所处经纬度、高度等位置信息,并根据所述定位数据匹配数据库中的对应磁场强度,将实时磁场强度与数据库中的对应磁场强度进行对比,如果强度比值大小超过预设阈值20%,则智能设备会发出预警提示,附近可能会有影响指南针正确显示的磁场或其他因素。It should be noted that the acquired positioning data of the smart wearable device includes location information such as the longitude, latitude, and height of the device, and the corresponding magnetic field strength in the database is matched according to the positioning data, and the real-time magnetic field strength is compared with the corresponding magnetic field strength in the database. , if the intensity ratio exceeds the preset threshold of 20%, the smart device will issue an early warning prompt that there may be a magnetic field or other factors nearby that may affect the correct display of the compass.

本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质中包括基于智能穿戴设备指南针功能实现方法程序,所述基于智能穿戴设备指南针功能实现方法程序被处理器执行时,实现如上述任一项所述的基于智能穿戴设备指南针功能实现方法的步骤。The present invention also provides a computer-readable storage medium. The computer-readable storage medium includes a program for realizing the compass function of the smart wearable device. When the program for realizing the compass function of the smart wearable device is executed by the processor, the The steps of the method for realizing the compass function based on the smart wearable device as described in any one of the above.

本发明公开的一种基于智能穿戴设备指南针功能实现的方法、系统和介质,所述方法包括:获取穿戴设备的指南针当前显示地磁数据信息、实时地磁数据信息和时间信息;将所述实时地磁数据信息进行预处理,获得有效实时地磁数据信息;将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息;根据所述指南针圆盘图片旋转数据信息对圆盘原图像进行旋转并与所述时间信息进行映射,获得指南针圆盘展示图像信息;对所述指南针圆盘展示图像信息在所述穿戴设备进行显示。本发明可以根据指南针实时所处位置获取地磁数据信息,并通过圆盘图像旋转来实现指南针方向的指示,便于使用者快速、便捷的识别当前方位。The present invention discloses a method, system and medium based on the compass function of a smart wearable device. The method includes: acquiring the currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device; and storing the real-time geomagnetic data The information is preprocessed to obtain effective real-time geomagnetic data information; the effective real-time geomagnetic data information and the currently displayed geomagnetic data information are input into the preset image rotation control model for processing, and the compass disk image rotation data information is obtained; according to The compass disk image rotation data information rotates the original image of the disk and maps it with the time information to obtain compass disk display image information; the compass disk display image information is displayed on the wearable device. The invention can obtain geomagnetic data information according to the real-time position of the compass, and realize the indication of the direction of the compass through the rotation of the disk image, which is convenient for the user to quickly and conveniently identify the current position.

在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.

上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention can be integrated into one processing unit, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be realized in the form of hardware or in the form of hardware plus software functional unit.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned programs can be stored in a readable storage medium. The steps of the method embodiment; and the aforementioned storage medium includes: a removable storage device, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, etc. medium for program code.

或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the above-mentioned integrated units of the present invention are realized in the form of software function modules and sold or used as independent products, they can also be stored in a readable storage medium. Based on this understanding, the essence of the technical solution of the embodiment of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for making A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as removable storage devices, ROM, RAM, magnetic disks or optical disks.

Claims (10)

1.基于智能穿戴设备指南针功能实现方法,其特征在于,包括以下步骤:1. Based on the smart wearable device compass function realization method, it is characterized in that, comprising the following steps: 获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息;Obtain the currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device; 将所述实时地磁数据信息进行预处理,获得有效实时地磁数据信息;Preprocessing the real-time geomagnetic data information to obtain effective real-time geomagnetic data information; 将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息;Input the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into the preset image rotation control model for processing, and obtain the compass disk image rotation data information; 根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射并对圆盘原图像进行旋转,获得指南针圆盘展示图像信息;Mapping and rotating the original image of the compass disk according to the rotation data information of the compass disk image and the time information, to obtain display image information of the compass disk; 对所述指南针圆盘展示图像信息在所述穿戴设备进行显示。Displaying image information on the compass disc is displayed on the wearable device. 2.根据权利要求1所述的基于智能穿戴设备指南针功能实现方法,其特征在于,所述获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息,包括:2. The method for realizing compass functions based on smart wearable devices according to claim 1, wherein the acquisition of currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device includes: 获取穿戴设备的指南针的当前显示地磁数据信息,包括显示磁场强度信息、显示磁偏角信息、显示磁倾角信息;Obtain the currently displayed geomagnetic data information of the compass of the wearable device, including displaying magnetic field strength information, magnetic declination information, and magnetic inclination information; 获取所述指南针的实时地磁数据信息,包括实时磁场强度信息、实时磁偏角信息、实时磁倾角信息;Obtaining real-time geomagnetic data information of the compass, including real-time magnetic field strength information, real-time magnetic declination information, and real-time magnetic inclination information; 获取所述指南针的时间信息。Get the time information of the compass. 3.根据权利要求2所述的基于智能穿戴设备指南针功能实现方法,其特征在于,所述将所述实时地磁数据信息进行预处理,获得有效实时地磁数据信息,包括:3. The smart wearable device-based compass function implementation method according to claim 2, wherein said real-time geomagnetic data information is preprocessed to obtain effective real-time geomagnetic data information, comprising: 根据多个实时地磁数据信息预处理得到实时地磁数据信息期待值;According to the preprocessing of multiple real-time geomagnetic data information, the expected value of real-time geomagnetic data information is obtained; 根据所述实时地磁数据信息期待值计算获得实时地磁离散度值,并保留小于预设离散度阈值的实时地磁离散度值对应的实时地磁数据信息;calculating the real-time geomagnetic dispersion value according to the expected value of the real-time geomagnetic data information, and retaining the real-time geomagnetic data information corresponding to the real-time geomagnetic dispersion value smaller than the preset dispersion threshold; 将保留的实时地磁数据信息标记为有效实时地磁数据信息。Mark the retained real-time geomagnetic data information as valid real-time geomagnetic data information. 4.根据权利要求3所述的基于智能穿戴设备指南针功能实现方法,其特征在于,所述将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息,包括:4. The method for realizing compass functions based on smart wearable devices according to claim 3, wherein said inputting said effective real-time geomagnetic data information and said currently displayed geomagnetic data information into a preset picture rotation control model is performed Processing to obtain the rotation data information of the compass disk image, including: 将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入到预设的图片旋转调控模型中进行处理,获得实时地磁图片角度信息和显示地磁图片角度信息;Input the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into the preset image rotation control model for processing, obtain real-time geomagnetic image angle information and display geomagnetic image angle information; 根据所述实时地磁图片角度信息和显示地磁图片角度信息通过预设的旋转处理模型进行双因素旋转作差处理,获得指南针圆盘图片旋转数据信息。According to the angle information of the real-time geomagnetic picture and the angle information of the displayed geomagnetic picture, the two-factor rotation difference processing is performed through the preset rotation processing model to obtain the rotation data information of the compass disc picture. 5.根据权利要求4所述的基于智能穿戴设备指南针功能实现方法,其特征在于,所述根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射并对圆盘原图像进行旋转,获得指南针圆盘展示图像信息,具体为:5. The method for realizing compass functions based on smart wearable devices according to claim 4, wherein the rotation data information according to the compass disk image and the time information are mapped and the original image of the disk is rotated, Obtain the image information displayed by the compass disc, specifically: 根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射关联,得到实时圆盘图片旋转信息;Carry out mapping and association according to the rotation data information of the compass disk image and the time information to obtain real-time disk image rotation information; 将所述实时圆盘图片旋转信息输入预设的圆盘图像处理模型中对圆盘原图像进行旋转,获得指南针圆盘展示图像信息并存入缓存区。Inputting the real-time disk image rotation information into the preset disk image processing model to rotate the original image of the disk to obtain compass disk display image information and store it in the buffer area. 6.根据权利要求5所述的基于智能穿戴设备指南针功能实现方法,其特征在于,所述对所述指南针圆盘展示图像信息在所述穿戴设备进行显示,包括:6. The method for realizing compass functions based on smart wearable devices according to claim 5, wherein the displaying image information on the compass disc on the wearable device includes: 将缓存区中所述指南针圆盘展示图像信息输入预设的指南针图显模型;Inputting the display image information of the compass disc in the buffer area into the preset compass graphic display model; 所述指南针图显模型根据预设的智能设备显示屏幕大小以及分辨率对所述指南针圆盘展示图像信息进行修正;The graphic display model of the compass corrects the display image information of the compass disc according to the preset display screen size and resolution of the smart device; 将所述修正后的指南针圆盘展示图像信息发送至屏显模块,并对屏幕显示内容进行刷新显示。Send the corrected compass disc display image information to the screen display module, and refresh and display the screen display content. 7.根据权利要求4所述的基于智能穿戴设备指南针功能实现方法,其特征在于,所述将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息,还包括:7. The method for realizing compass functions based on smart wearable devices according to claim 4, wherein said inputting said effective real-time geomagnetic data information and said currently displayed geomagnetic data information into a preset image rotation control model is performed Processing, to obtain the rotation data information of the compass disk image, including: 所述指南针圆盘图片旋转数据信息包括旋转倾斜补偿角数据;The rotation data information of the compass disc picture includes rotation tilt compensation angle data; 所述旋转倾斜补偿角数据的计算公式为:The calculation formula of the rotation tilt compensation angle data is: ; 其中,为旋转倾斜补偿角数据,/>为判断旋转方向符号,/>为实时地磁偏角,/>为显示地磁倾角,/>为翻正切函数,/>为X轴方向磁力,/>为Y轴方向磁力。in, For rotation and tilt compensation angle data, /> To judge the rotation direction sign, /> is the real-time geomagnetic declination, /> To display the geomagnetic inclination, /> is the tangent function, /> is the magnetic force in the X-axis direction, /> is the magnetic force in the Y-axis direction. 8.一种基于智能穿戴设备指南针功能实现系统,其特征在于,该系统包括:存储器及处理器,所述存储器中包括一种基于智能穿戴设备指南针功能实现方法的程序,所述基于智能穿戴设备指南针功能实现方法的程序被所述处理器执行时实现以下步骤:8. A compass function realization system based on a smart wearable device, characterized in that the system includes: a memory and a processor, the memory includes a program based on a method for realizing the compass function of a smart wearable device, and the smart wearable device based When the program of the compass function realization method is executed by the processor, the following steps are implemented: 获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息;Obtain the currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device; 将所述实时地磁数据信息进行预处理,获得有效实时地磁数据信息;Preprocessing the real-time geomagnetic data information to obtain effective real-time geomagnetic data information; 将所述有效实时地磁数据信息和所述当前显示地磁数据信息输入预设的图片旋转调控模型中进行处理,获得指南针圆盘图片旋转数据信息;Input the effective real-time geomagnetic data information and the currently displayed geomagnetic data information into the preset image rotation control model for processing, and obtain the compass disk image rotation data information; 根据所述指南针圆盘图片旋转数据信息与所述时间信息进行映射并对圆盘原图像进行旋转,获得指南针圆盘展示图像信息;Mapping and rotating the original image of the compass disk according to the rotation data information of the compass disk image and the time information, to obtain display image information of the compass disk; 对所述指南针圆盘展示图像信息在所述穿戴设备进行显示。Displaying image information on the compass disc is displayed on the wearable device. 9.根据权利要求8所述的基于智能穿戴设备指南针功能实现系统,其特征在于,所述获取穿戴设备的指南针的当前显示地磁数据信息、实时地磁数据信息和时间信息,包括:9. The compass function realization system based on smart wearable devices according to claim 8, wherein said acquisition of currently displayed geomagnetic data information, real-time geomagnetic data information and time information of the compass of the wearable device includes: 获取穿戴设备的指南针的当前显示地磁数据信息,包括显示磁场强度信息、显示磁偏角信息、显示磁倾角信息;Obtain the currently displayed geomagnetic data information of the compass of the wearable device, including displaying magnetic field strength information, magnetic declination information, and magnetic inclination information; 获取所述指南针的实时地磁数据信息,包括实时磁场强度信息、实时磁偏角信息、实时磁倾角信息;Obtaining real-time geomagnetic data information of the compass, including real-time magnetic field strength information, real-time magnetic declination information, and real-time magnetic inclination information; 获取所述指南针的时间信息。Get the time information of the compass. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中包括基于智能穿戴设备指南针功能实现方法程序,所述基于智能穿戴设备指南针功能实现方法程序被处理器执行时,实现如权利要求1至7中任一项所述的基于智能穿戴设备指南针功能实现方法的步骤。10. A computer-readable storage medium, characterized in that, the computer-readable storage medium includes a program for implementing a method based on the compass function of a smart wearable device, and when the program for implementing a method for implementing a compass function based on a smart wearable device is executed by a processor, Realize the steps of the compass function realization method based on the smart wearable device as described in any one of claims 1 to 7.
CN202310838148.1A 2023-07-10 2023-07-10 Method, system and medium based on smart wearable device compass function realization Active CN116558494B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310838148.1A CN116558494B (en) 2023-07-10 2023-07-10 Method, system and medium based on smart wearable device compass function realization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310838148.1A CN116558494B (en) 2023-07-10 2023-07-10 Method, system and medium based on smart wearable device compass function realization

Publications (2)

Publication Number Publication Date
CN116558494A true CN116558494A (en) 2023-08-08
CN116558494B CN116558494B (en) 2023-09-01

Family

ID=87495153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310838148.1A Active CN116558494B (en) 2023-07-10 2023-07-10 Method, system and medium based on smart wearable device compass function realization

Country Status (1)

Country Link
CN (1) CN116558494B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255991A (en) * 2010-05-21 2011-11-23 希姆通信息技术(上海)有限公司 Method for realizing function of compass and applied to handheld mobile terminal system
CN102313543A (en) * 2011-07-11 2012-01-11 上海大学 Magnetic azimuth measuring system based on giant magneto-resistance sensor, measurement method and perpendicular compensation method
CN110657794A (en) * 2019-08-21 2020-01-07 努比亚技术有限公司 Compass calibration method of wearable device, wearable device and storage medium
CN115240367A (en) * 2022-09-23 2022-10-25 杭州中芯微电子有限公司 UWB (ultra wide band) intelligent positioning based user management early warning method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255991A (en) * 2010-05-21 2011-11-23 希姆通信息技术(上海)有限公司 Method for realizing function of compass and applied to handheld mobile terminal system
CN102313543A (en) * 2011-07-11 2012-01-11 上海大学 Magnetic azimuth measuring system based on giant magneto-resistance sensor, measurement method and perpendicular compensation method
CN110657794A (en) * 2019-08-21 2020-01-07 努比亚技术有限公司 Compass calibration method of wearable device, wearable device and storage medium
CN115240367A (en) * 2022-09-23 2022-10-25 杭州中芯微电子有限公司 UWB (ultra wide band) intelligent positioning based user management early warning method and system

Also Published As

Publication number Publication date
CN116558494B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
CN110927708B (en) Calibration method, device and equipment of intelligent road side unit
US20210049760A1 (en) Sight line detection method and sight line detection device
US7636901B2 (en) System for increasing accuracy of geocode data
US20110110557A1 (en) Geo-locating an Object from Images or Videos
US20130176337A1 (en) Device and Method For Information Processing
US20060293847A1 (en) Interactive scaling feature having scalability in three dimensional space
CN110686704A (en) Pose calibration method, system and medium for laser radar and combined inertial navigation
KR102340678B1 (en) Displaying objects based on a plurality of models
CN107656962B (en) Panoramic display method in electronic map, server and computer readable medium
US20120293550A1 (en) Localization device and localization method with the assistance of augmented reality
EP3482162B1 (en) Systems and methods for dynamically providing scale information on a digital map
CN107885763B (en) Method and device for updating interest point information in indoor map and computer readable medium
WO2018214778A1 (en) Method and device for presenting virtual object
CN106537409B (en) Determining compass fixes for imagery
EP3387621B1 (en) Method and system for obtaining pair-wise epipolar constraints and solving for panorama pose on a mobile device
CN116558494B (en) Method, system and medium based on smart wearable device compass function realization
TWI585433B (en) Electronic device and method for displaying target object thereof
CN116932119B (en) Virtual screen display method, device, equipment and computer readable storage medium
CN110631604A (en) Automatic distinguishing and displaying system for point target position
CN114299809B (en) Direction information display method, display device, electronic apparatus, and readable storage medium
CN114816182A (en) Map display method, device, equipment and medium for visual screen
CN107861975B (en) Method and device for collecting indoor panoramic data, equipment and computer readable medium
JP3154391B2 (en) Mobile terminal device
US10326933B2 (en) Pose estimation of 360-degree photos using annotations
JP2023163656A (en) Meter reading 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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 4208, Tower A, Hongrongyuan North Station Center, Minzhi Street North Station Community, Longhua District, Shenzhen City, Guangdong Province, 518000

Patentee after: Shenzhen Weike Technology Co.,Ltd.

Country or region after: China

Address before: 518109 room 1501, building e, phase II, Xinghe world, Minle community, Minzhi street, Longhua District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN WAKE UP TECHNOLOGY CO.,LTD.

Country or region before: China

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 4208, Tower A, Hongrongyuan North Station Center, Minzhi Street North Station Community, Longhua District, Shenzhen City, Guangdong Province, 518000

Patentee after: SHENZHEN WAKE UP TECHNOLOGY CO.,LTD.

Country or region after: China

Address before: 4208, Tower A, Hongrongyuan North Station Center, Minzhi Street North Station Community, Longhua District, Shenzhen City, Guangdong Province, 518000

Patentee before: Shenzhen Weike Technology Co.,Ltd.

Country or region before: China