CN114461874B - Motion information display method and electronic equipment - Google Patents
Motion information display method and electronic equipment Download PDFInfo
- Publication number
- CN114461874B CN114461874B CN202110996637.0A CN202110996637A CN114461874B CN 114461874 B CN114461874 B CN 114461874B CN 202110996637 A CN202110996637 A CN 202110996637A CN 114461874 B CN114461874 B CN 114461874B
- Authority
- CN
- China
- Prior art keywords
- exercise
- data
- electronic device
- landmark
- card
- 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
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/9038—Presentation of query results
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B71/00—Games or sports accessories not covered in groups A63B1/00 - A63B69/00
- A63B71/06—Indicating or scoring devices for games or players, or for other sports activities
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B71/00—Games or sports accessories not covered in groups A63B1/00 - A63B69/00
- A63B71/06—Indicating or scoring devices for games or players, or for other sports activities
- A63B71/0619—Displays, user interfaces and indicating devices, specially adapted for sport equipment, e.g. display mounted on treadmills
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Physical Education & Sports Medicine (AREA)
- Databases & Information Systems (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Telephone Function (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
本申请提供一种运动信息的显示方法及电子设备,涉及终端技术领域,可以在运动卡片中以地标来形象的度量运动数据,从而避免卡片信息过于单一。其中,电子设备获取第一运动数据。电子设备显示第一运动卡片,第一运动卡片包括第一运动数据和第一信息;其中,第一信息用于以第一地标的尺寸数据来度量第一运动数据,第一地标为电子设备所在的第一地理区域内的地标。电子设备获取第二运动数据。电子设备显示第二运动卡片,第二运动卡片包括第二运动数据和第二信息;其中,第二信息用于以第二地标的尺寸数据来度量第二运动数据,第二地标为电子设备所在的第二地理区域内的地标。其中,第一地理区域与第二地理区域不同,第一地标与第二地标不同。
The present application provides a method for displaying sports information and electronic equipment, which relate to the field of terminal technology, and can use landmarks to measure sports data in a sports card, so as to avoid too single card information. Wherein, the electronic device acquires the first movement data. The electronic device displays a first sports card, and the first sports card includes first sports data and first information; wherein, the first information is used to measure the first sports data with the size data of the first landmark, and the first landmark is where the electronic device is located. Landmarks within the first geographic region of . The electronic device acquires the second exercise data. The electronic device displays a second sports card, and the second sports card includes second sports data and second information; wherein, the second information is used to measure the second sports data with the size data of the second landmark, and the second landmark is the location where the electronic device is located. Landmarks within the second geographic region of . Wherein, the first geographical area is different from the second geographical area, and the first landmark is different from the second landmark.
Description
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种运动信息的显示方法及电子设备。The present application relates to the technical field of terminals, in particular to a method for displaying sports information and electronic equipment.
背景技术Background technique
手机等电子设备通常可以获取用户的运动数据,例如步行步数,并可以显示包括该运动数据的运动卡片。例如,微信运动或者负一屏中的“今日运动”卡片。应理解,电子设备显示运动卡片,可以方便用户查看到运动相关的信息。Electronic devices such as mobile phones can usually obtain user's exercise data, such as the number of steps taken, and can display exercise cards including the exercise data. For example, WeChat Sports or the "Today's Sports" card in the negative screen. It should be understood that the display of the sports card on the electronic device may facilitate the user to view sports-related information.
然而,发明人在实施本申请实施例的过程中发现,在现有技术中,运动卡片中呈现的卡片内容十分单一。例如,步行运动的运动卡片中仅呈现步行步数。跑步运动的运动卡片中仅呈现跑步距离、时长、配速等内容。However, the inventor found in the process of implementing the embodiment of the present application that, in the prior art, the card content presented in the sports card is very simple. For example, only the number of walking steps is shown in the activity card for the walking activity. Only the running distance, duration, pace, etc. are displayed in the running sports card.
发明内容Contents of the invention
本申请提供一种运动信息的显示方法及电子设备,可以在运动卡片中以地标来形象的度量运动数据,从而避免卡片信息过于单一。The present application provides a method for displaying sports information and an electronic device, which can measure the sports data vividly with landmarks in a sports card, thereby avoiding that the card information is too single.
第一方面,本申请实施例提供一种运动信息的显示方法,应用于电子设备。其中,电子设备可获取第一运动数据。第一运动数据包括第一运动步数(如1000步)、第一运动距离(如1千米)和第一运动时间(如1小时)中的至少一个。在获取第一运动数据后,电子设备可显示第一运动卡片,第一运动卡片中不仅包括运动数据本身,即第一运动数据,还包括第一信息。该第一信息用于以第一地标的尺寸数据来度量第一运动数据,第一地标为电子设备所在的第一地理区域(如北京市)内的地标。例如,第一信息为“可绕故宫1圈”。并且,电子设备可获取第二运动数据。第二运动数据包括第二运动步数、第二运动距离和第二运动时间中的至少一个。在获取第二运动数据后,电子设备可显示第二运动卡片。同样的,第二运动卡片中不仅包括运动数据本身,即第二运动数据,还包括第二信息。该第二信息用于以第二地标的尺寸数据来度量第二运动数据,第二地标为电子设备所在的第二地理区域(如上海市)内的地标。其中,第一地理区域与第二地理区域不同,第一地标与第二地标不同。In a first aspect, an embodiment of the present application provides a method for displaying exercise information, which is applied to an electronic device. Wherein, the electronic device can acquire the first motion data. The first exercise data includes at least one of a first number of exercise steps (eg, 1000 steps), a first exercise distance (eg, 1 kilometer) and a first exercise time (eg, 1 hour). After acquiring the first exercise data, the electronic device may display the first exercise card, which not only includes the exercise data itself, that is, the first exercise data, but also includes first information. The first information is used to measure the first motion data with the size data of the first landmark, where the first landmark is a landmark in the first geographical area (such as Beijing) where the electronic device is located. For example, the first information is "you can go around the Forbidden City once". Also, the electronic device can acquire second motion data. The second exercise data includes at least one of the second number of exercise steps, the second exercise distance and the second exercise time. After acquiring the second exercise data, the electronic device can display the second exercise card. Similarly, the second sports card not only includes the sports data itself, that is, the second sports data, but also includes the second information. The second information is used to measure the second motion data by the size data of the second landmark, which is a landmark in the second geographical area (such as Shanghai City) where the electronic device is located. Wherein, the first geographical area is different from the second geographical area, and the first landmark is different from the second landmark.
综上所述,采用本申请实施例的方法,电子设备显示的第一运动卡片中,不仅直观的显示有运动数据本身,还显示有以地标维度来度量运动数据的信息。从而可以更形象的呈现运动数据。而且,不同地理区域的地标不同,从而用于衡量运动数据的地标也不同。如此,可以避免运动卡片的内容单一,丰富运动卡片的内容。To sum up, using the method of the embodiment of the present application, the first exercise card displayed by the electronic device not only intuitively displays the exercise data itself, but also displays information measuring the exercise data in the dimension of landmarks. In this way, motion data can be presented more vividly. Also, different geographic regions have different landmarks, and thus different landmarks for measuring motion data. In this way, the single content of the sports card can be avoided, and the content of the sports card can be enriched.
在第一方面的一种可能的设计方式中,上述电子设备显示第一运动卡片,包括:电子设备在电子设备的负一屏中显示第一运动卡片。同样的,上述电子设备显示第二运动卡片,包括:电子设备在电子设备的负一屏中显示第二运动卡片。In a possible design manner of the first aspect, the electronic device displaying the first sports card includes: the electronic device displaying the first sports card on a negative screen of the electronic device. Similarly, the above-mentioned electronic device displaying the second sports card includes: the electronic device displays the second sports card on a negative screen of the electronic device.
也就是说,采用本实施例的方法,可以将运动卡片显示在负一屏中,方便用户快速获取到运动信息。从而可以提升人机交互的效率。That is to say, by adopting the method of this embodiment, the exercise card can be displayed on the negative screen, which is convenient for the user to obtain exercise information quickly. Thus, the efficiency of human-computer interaction can be improved.
在第一方面的一种可能的设计方式中,上述电子设备获取第一运动数据,包括:电子设备可从与电子设备连接的可穿戴设备获取第一运动数据,可穿戴设备包括智能手表和/或手环。例如,用户在运动过程中仅佩戴有智能手表,而未携带手机,则可在运动结束后,并且智能手表与手机连接后,手机从智能手表获取运动数据。从而方便呈现用户未携带手机的过程中产生的运动数据。或者,电子设备可利用电子设备中的传感器(如三轴加速度传感器)获取第一运动数据。同样的,上述电子设备获取第二运动数据,包括:电子设备从与电子设备连接的可穿戴设备获取第二运动数据,可穿戴设备包括智能手表和/或手环。或者,电子设备利用电子设备中的传感器获取第二运动数据。In a possible design manner of the first aspect, the acquisition of the first exercise data by the electronic device includes: the electronic device may acquire the first exercise data from a wearable device connected to the electronic device, and the wearable device includes a smart watch and/or or bracelet. For example, if the user only wears a smart watch during exercise without carrying a mobile phone, after the exercise ends and the smart watch is connected to the mobile phone, the mobile phone can obtain exercise data from the smart watch. In this way, it is convenient to present the motion data generated when the user does not carry the mobile phone. Alternatively, the electronic device may use a sensor (such as a three-axis acceleration sensor) in the electronic device to obtain the first movement data. Similarly, the above-mentioned electronic device obtaining the second motion data includes: the electronic device obtains the second motion data from a wearable device connected to the electronic device, and the wearable device includes a smart watch and/or a bracelet. Alternatively, the electronic device acquires the second movement data by using a sensor in the electronic device.
也就是说,采用本实施例的方法,电子设备可以呈现利用其自身的传感器获取的运动数据,也可以呈现从其他可穿戴设备获取的运动数据。That is to say, by adopting the method of this embodiment, the electronic device can present motion data obtained by its own sensor, and can also present motion data obtained from other wearable devices.
在第一方面的一种可能的设计方式中,针对一些预设区域,如北上广等一线城市,才采用该区域下的地标来度量运动数据。通常情况下,这些预设区域内具有明显的地标,从而可以采用其内的地标来度量。而对于预设区域外的地理区域(如第三地理区域),运动信息的显示如下所示:电子设备获取第三运动数据;第三运动数据包括第三运动步数、第三运动距离和第三运动时间中的至少一个。电子设备显示第三运动卡片,第三运动卡片包括第三运动数据和第三信息。其中,第三信息用于以预设区域内的任一地标的尺寸数据来度量第三运动数据,第三运动数据为电子设备在第三地理区域内采集的运动数据,第三地理区域在预设区域外。In a possible design method of the first aspect, for some preset areas, such as first-tier cities such as Beijing, Shanghai, Guangzhou, etc., the landmarks under the area are used to measure the motion data. Usually, there are obvious landmarks in these preset areas, so the landmarks in them can be used for measurement. And for the geographic area outside the preset area (such as the third geographic area), the display of the motion information is as follows: the electronic device obtains the third motion data; the third motion data includes the third motion steps, the third motion distance and the third motion distance. At least one of the three exercise sessions. The electronic device displays a third exercise card, and the third exercise card includes third exercise data and third information. Wherein, the third information is used to measure the third movement data with the size data of any landmark in the preset area, the third movement data is the movement data collected by the electronic device in the third geographical area, and the third geographical area is in the preset area. Set outside the area.
也就是说,采用本实施例的方法,对于在预设区域外的地理区域,则以预设区域内的任一地标来度量在预设区域外的地理区域产生的运动数据。如此,可以弥补预设区域外的地理区域中不存在具有代表性的地标的不足。That is to say, using the method of this embodiment, for the geographical area outside the preset area, any landmark in the preset area is used to measure the motion data generated in the geographical area outside the preset area. In this way, the deficiency that there are no representative landmarks in the geographical area outside the preset area can be compensated.
在第一方面的一种可能的设计方式中,针对运动数据超过预设运动值的情况,使用地标来度量运动数据。通常情况下,地标的尺寸比较大,对度量运动强度较大的情况下的运动数据比较有效。例如,步行10384步,相当于绕故宫2.2圈。反之,若运动强度较小,则利用地标来度量的效果较差。例如,运动步数为1000步,相当于绕故宫0.15圈。很显然,度量结果“相当于绕故宫0.15圈”的效果并不好,难以对用户产生正向激励。也就是说,在本实施例中,在确定出运动数据(如第一运动数据、第二运动数据)超过预设运动值后,则依据地标来度量运动数据。而若第一运动数据未超过预设运动值,电子设备则显示第四运动卡片,第四运动卡片包括第一运动数据和第四信息,第四信息用于以预设标的的尺寸数据来度量第一运动数据。同样的,若第二运动数据未超过预设运动值,电子设备则不以地标来度量该第二运动数据,而是以预设标的的尺寸数据来度量第一运动数据。其中,预设标的是具有标准尺寸的标的,例如,预设标的是标准操场或者标准足球场。In a possible design manner of the first aspect, for a situation in which the motion data exceeds a preset motion value, landmarks are used to measure the motion data. Usually, the size of the landmark is relatively large, which is more effective for measuring motion data when the motion intensity is large. For example, walking 10384 steps is equivalent to 2.2 laps around the Forbidden City. Conversely, if the motion intensity is small, the effect of using landmarks to measure is poor. For example, the number of exercise steps is 1000 steps, which is equivalent to 0.15 laps around the Forbidden City. Obviously, the measurement result "equivalent to 0.15 circles around the Forbidden City" is not good, and it is difficult to generate positive incentives for users. That is to say, in this embodiment, after it is determined that the motion data (such as the first motion data and the second motion data) exceeds the preset motion value, the motion data is measured according to the landmarks. And if the first exercise data does not exceed the preset exercise value, the electronic device will display the fourth exercise card, the fourth exercise card includes the first exercise data and the fourth information, and the fourth information is used to measure with the size data of the preset target First motion data. Similarly, if the second motion data does not exceed the preset motion value, the electronic device does not measure the second motion data by the landmark, but measures the first motion data by the size data of the preset target. Wherein, the preset object is an object with a standard size, for example, the preset object is a standard playground or a standard football field.
也就是说,采用本实施例的方法,针对运动数据未超过预设运动值的情况,可以通过预设标的来度量运动数据,提升度量的效果。从而弥补利用地标来度量的不足。That is to say, by using the method of this embodiment, for the situation that the motion data does not exceed the preset motion value, the motion data can be measured by the preset target, and the effect of measurement can be improved. So as to make up for the shortage of using landmarks to measure.
在第一方面的一种可能的设计方式中,电子设备中预先配置有多个地理区域的多个地标,以及每个地标对应的运动数据的数据范围(如文中表3所示)。多个地理区域包括第一地理区域和第二地理区域。也就是说,一个地理区域可能有多个地标,并且每个地标适用于不同的数据范围。相应的,在电子设备获取第一运动数据之后,电子设备显示第一运动卡片之前,电子设备可从第一地理区域的多个地标中,确定出与第一运动数据的数据范围匹配的第一地标。同样的,在电子设备获取第二运动数据之后,电子设备显示第二运动卡片之前,电子设备可从第二地理区域的多个地标中,确定出与第二运动数据的数据范围匹配的第二地标。例如,第一地理区域是北京,第一运动数据是2000步,查询表3可以确定出故宫为第一地标。In a possible design manner of the first aspect, the electronic device is pre-configured with multiple landmarks in multiple geographical areas, and the data range of the motion data corresponding to each landmark (as shown in Table 3 herein). The plurality of geographic areas includes a first geographic area and a second geographic area. That is, there may be multiple placemarks for a geographic area, and each placemark applies to a different range of data. Correspondingly, after the electronic device acquires the first sports data and before the electronic device displays the first sports card, the electronic device can determine the first sports card that matches the data range of the first sports data from the multiple landmarks in the first geographical area. landmark. Similarly, after the electronic device acquires the second exercise data and before the electronic device displays the second exercise card, the electronic device can determine the second exercise data that matches the data range of the second exercise data from a plurality of landmarks in the second geographical area. landmark. For example, if the first geographical area is Beijing, and the first motion data is 2000 steps, the query table 3 can determine that the Forbidden City is the first landmark.
也就是说,采用本实施例的方法,在同一地理区域内,若运动数据所属的数据范围不同,则用于度量该运动数据的地标也可能不同。从而针对同一地理区域,也可以呈现差异化的运动卡片。That is to say, with the method of this embodiment, if the data ranges to which the motion data belong are different in the same geographical area, the landmarks used to measure the motion data may also be different. Therefore, for the same geographical area, differentiated sports cards can also be presented.
在第一方面的一种可能的设计方式中,电子设备显示第一运动卡片,包括:电子设备以第一地标的地标图片作为背景显示第一运动卡片。以及,电子设备显示第二运动卡片,包括:电子设备以第二地标的地标图片作为背景显示第二运动卡片。In a possible design manner of the first aspect, the displaying the first sports card by the electronic device includes: displaying the first sports card by the electronic device with a landmark picture of the first landmark as a background. And, displaying the second sports card by the electronic device includes: displaying the second sports card by the electronic device with a landmark image of the second landmark as a background.
也就是说,采用本实施例的方法,电子设备可以将地标图片作为运动卡片的背景。进一步丰富运动卡片的内容,从而提升运动卡片与地标的关联。That is to say, by using the method of this embodiment, the electronic device can use the landmark picture as the background of the sports card. Further enrich the content of sports cards, so as to improve the association between sports cards and landmarks.
在第一方面的一种可能的设计方式中,第一信息包括第一运动数据对应的距离值绕第一地标的圈数。其中,计算第一运动数据对应的距离值和第一地标的周长的比值,可得到绕第一地标的圈数。第二信息包括第二运动数据对应的距离值绕第二地标的圈数。其中,计算第二运动数据对应的距离值和第二地标的周长的比值,可得到绕第二地标的圈数。In a possible design manner of the first aspect, the first information includes the number of circles of the distance value corresponding to the first movement data around the first landmark. Wherein, calculating the ratio of the distance value corresponding to the first motion data to the circumference of the first landmark can obtain the number of circles around the first landmark. The second information includes the number of circles of the distance value corresponding to the second movement data around the second landmark. Wherein, calculating the ratio of the distance value corresponding to the second motion data to the circumference of the second landmark can obtain the number of circles around the second landmark.
在第一方面的一种可能的设计方式中,若第一运动数据包括第一运动步数,第一运动数据对应的距离值是第一运动步数与每步的步长的乘积。若第一运动数据包括第一运动距离,第一运动数据对应的距离值是第一运动距离。若第一运动数据包括第一运动时间,第一运动时间对应的距离值是第一运动时间和单位时间的运动距离的乘积。In a possible design of the first aspect, if the first exercise data includes the first number of exercise steps, the distance value corresponding to the first exercise data is the product of the first number of exercise steps and the step length of each step. If the first motion data includes the first motion distance, the distance value corresponding to the first motion data is the first motion distance. If the first exercise data includes the first exercise time, the distance value corresponding to the first exercise time is the product of the first exercise time and the exercise distance per unit time.
在第一方面的一种可能的设计方式中,第一运动卡片还包括第一能量信息,第一能量信息用于以预设食物的能量值来度量第一运动数据。例如,第一能量信息为“相当于消耗0.3瓶可乐”。和/或,第一运动卡片还包括第一排名信息,第一排名信息用于指示第一运动数据的排名。例如,第一排名信息为“打败了朝阳区80%的用户”。同样的,第二运动卡片还包括第二能量信息,第二能量信息用于以预设食物的能量值来度量第二运动数据。和/或,第二运动卡片还包括第二排名信息,第二排名信息用于指示第二运动数据的排名。In a possible design manner of the first aspect, the first exercise card further includes first energy information, and the first energy information is used to measure the first exercise data by the energy value of the preset food. For example, the first energy information is "equivalent to consuming 0.3 bottles of Coke". And/or, the first sports card further includes first ranking information, and the first ranking information is used to indicate the ranking of the first sports data. For example, the first ranking information is "beating 80% of users in Chaoyang District". Similarly, the second exercise card further includes second energy information, which is used to measure the second exercise data with the energy value of the preset food. And/or, the second sports card further includes second ranking information, and the second ranking information is used to indicate the ranking of the second sports data.
也就是说,采用本实施例的方法,电子设备可以进一步以预设食物的能量值或者以运动排名来度量运动数据。从而可以以更多的维度来呈现运动数据,并丰富运动卡片的内容。That is to say, by using the method of this embodiment, the electronic device can further measure the exercise data by the energy value of the preset food or by exercise ranking. In this way, sports data can be presented in more dimensions, and the content of sports cards can be enriched.
第二方面,本申请实施例还提供一种电子设备,所述电子设备包括显示屏、存储器和一个或多个处理器。所述显示屏、所述存储器和所述处理器耦合。所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:所述电子设备获取第一运动数据;所述第一运动数据包括第一运动步数、第一运动距离和第一运动时间中的至少一个。所述电子设备显示第一运动卡片,所述第一运动卡片包括第一运动数据和第一信息;其中,所述第一信息用于以第一地标的尺寸数据来度量所述第一运动数据,所述第一地标为所述电子设备所在的第一地理区域内的地标。所述电子设备获取第二运动数据;所述第二运动数据包括第二运动步数、第二运动距离和第二运动时间中的至少一个。所述电子设备显示第二运动卡片,所述第二运动卡片包括第二运动数据和第二信息;其中,所述第二信息用于以第二地标的尺寸数据来度量所述第二运动数据,所述第二地标为所述电子设备所在的第二地理区域内的地标。其中,所述第一地理区域与所述第二地理区域不同,所述第一地标与所述第二地标不同。In a second aspect, the embodiment of the present application further provides an electronic device, where the electronic device includes a display screen, a memory, and one or more processors. The display screen, the memory and the processor are coupled. The memory is used to store computer program codes, the computer program codes include computer instructions, and when the computer instructions are executed by the processor, the electronic device performs the following steps: the electronic device acquires first motion data ; The first exercise data includes at least one of the first exercise steps, the first exercise distance and the first exercise time. The electronic device displays a first sports card, and the first sports card includes first sports data and first information; wherein, the first information is used to measure the first sports data with the size data of a first landmark , the first landmark is a landmark in the first geographic area where the electronic device is located. The electronic device acquires second exercise data; the second exercise data includes at least one of a second exercise steps, a second exercise distance, and a second exercise time. The electronic device displays a second exercise card, and the second exercise card includes second exercise data and second information; wherein, the second information is used to measure the second exercise data by the size data of a second landmark , the second landmark is a landmark in the second geographic area where the electronic device is located. Wherein, the first geographic area is different from the second geographic area, and the first landmark is different from the second landmark.
在第二方面的另一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:所述电子设备在所述电子设备的负一屏中显示所述第一运动卡片。所述电子设备在所述电子设备的负一屏中显示所述第二运动卡片。In another possible design of the second aspect, when the computer instruction is executed by the processor, the electronic device further performs the following step: The first sports card is displayed in . The electronic device displays the second sports card on a negative screen of the electronic device.
在第二方面的另一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:所述电子设备从与所述电子设备连接的可穿戴设备获取所述第一运动数据,所述可穿戴设备包括智能手表和/或手环;或者,所述电子设备利用所述电子设备中的传感器获取所述第一运动数据。所述电子设备从与所述电子设备连接的可穿戴设备获取所述第二运动数据,所述可穿戴设备包括智能手表和/或手环;或者,所述电子设备利用所述电子设备中的传感器获取所述第二运动数据。In another possible design manner of the second aspect, when the computer instruction is executed by the processor, the electronic device further executes the following step: A wearable device acquires the first motion data, and the wearable device includes a smart watch and/or a bracelet; or, the electronic device acquires the first motion data by using a sensor in the electronic device. The electronic device obtains the second motion data from a wearable device connected to the electronic device, and the wearable device includes a smart watch and/or a bracelet; or, the electronic device utilizes a A sensor acquires the second movement data.
在第二方面的另一种可能的设计方式中,所述第一地理区域和所述第二地理区域是预设区域;当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:所述电子设备获取第三运动数据;所述第三运动数据包括第三运动步数、第三运动距离和第三运动时间中的至少一个。所述电子设备显示第三运动卡片,所述第三运动卡片包括第三运动数据和第三信息;其中,所述第三信息用于以所述预设区域内的任一地标的尺寸数据来度量所述第三运动数据,所述第三运动数据为所述电子设备在第三地理区域内采集的运动数据,所述第三地理区域在所述预设区域外。In another possible design of the second aspect, the first geographic area and the second geographic area are preset areas; when the computer instructions are executed by the processor, the electronic device The following steps are also performed: the electronic device acquires third exercise data; the third exercise data includes at least one of a third exercise steps, a third exercise distance and a third exercise time. The electronic device displays a third sports card, and the third sports card includes third sports data and third information; wherein, the third information is used to use the size data of any landmark in the preset area to Measuring the third movement data, the third movement data is movement data collected by the electronic device in a third geographical area, and the third geographical area is outside the preset area.
在第二方面的另一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:所述电子设备确定所述第一运动数据超过预设运动值。若所述第一运动数据未超过所述预设运动值,所述电子设备显示第四运动卡片,所述第四运动卡片包括所述第一运动数据和第四信息,所述第四信息用于以预设标的的尺寸数据来度量所述第一运动数据。In another possible design of the second aspect, when the computer instruction is executed by the processor, the electronic device further executes the following step: the electronic device determines that the first motion data exceeds the preset Set the motion value. If the first exercise data does not exceed the preset exercise value, the electronic device displays a fourth exercise card, the fourth exercise card includes the first exercise data and fourth information, and the fourth information uses The first movement data is measured by the size data of the preset target.
在第二方面的另一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:所述电子设备从所述第一地理区域的多个地标中,确定出与所述第一运动数据的数据范围匹配的所述第一地标。其中,所述电子设备中预先配置有多个地理区域的多个地标,以及每个地标对应的运动数据的数据范围;所述多个地理区域包括所述第一地理区域和所述第二地理区域。In another possible design manner of the second aspect, when the computer instruction is executed by the processor, the electronic device further executes the following step: Among the landmarks, the first landmark matching the data range of the first motion data is determined. Wherein, the electronic device is pre-configured with a plurality of landmarks in a plurality of geographical areas, and a data range of motion data corresponding to each landmark; the plurality of geographical areas include the first geographical area and the second geographical area area.
在第二方面的另一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:所述电子设备以所述第一地标的地标图片作为背景显示所述第一运动卡片。所述电子设备以所述第二地标的地标图片作为背景显示所述第二运动卡片。In another possible design of the second aspect, when the computer instruction is executed by the processor, the electronic device further executes the following step: the electronic device uses the landmark picture of the first landmark The first sports card is displayed as a background. The electronic device displays the second sports card with the landmark picture of the second landmark as a background.
在第二方面的另一种可能的设计方式中,所述第一信息包括所述第一运动数据对应的距离值绕所述第一地标的圈数;所述第二信息包括所述第二运动数据对应的距离值绕所述第二地标的圈数。In another possible design of the second aspect, the first information includes the number of laps of the distance value corresponding to the first motion data around the first landmark; the second information includes the second The number of circles of the distance value corresponding to the motion data around the second landmark.
在第二方面的另一种可能的设计方式中,若所述第一运动数据包括第一运动步数,所述第一运动数据对应的距离值是所述第一运动步数与每步的步长的乘积。若所述第一运动数据包括第一运动距离,所述第一运动数据对应的距离值是所述第一运动距离。若所述第一运动数据包括第一运动时间,所述第一运动时间对应的距离值是所述第一运动时间和单位时间的运动距离的乘积。In another possible design of the second aspect, if the first exercise data includes the first number of exercise steps, the distance value corresponding to the first exercise data is the difference between the first number of exercise steps and the distance between each step. The product of the step sizes. If the first motion data includes a first motion distance, the distance value corresponding to the first motion data is the first motion distance. If the first motion data includes a first motion time, the distance value corresponding to the first motion time is a product of the first motion time and a motion distance per unit time.
在第二方面的另一种可能的设计方式中,所述第一运动卡片还包括第一能量信息,所述第一能量信息用于以预设食物的能量值来度量所述第一运动数据。和/或,所述第一运动卡片还包括第一排名信息,所述第一排名信息用于指示所述第一运动数据的排名。In another possible design of the second aspect, the first exercise card further includes first energy information, and the first energy information is used to measure the first exercise data with the energy value of the preset food . And/or, the first sports card further includes first ranking information, and the first ranking information is used to indicate the ranking of the first sports data.
第三方面,本申请实施例提供一种芯片系统,该芯片系统应用于包括显示屏和存储器的电子设备;所述芯片系统包括一个或多个接口电路和一个或多个处理器;所述接口电路和所述处理器通过线路互联;所述接口电路用于从所述电子设备的存储器接收信号,并向所述处理器发送所述信号,所述信号包括所述存储器中存储的计算机指令;当所述处理器执行所述计算机指令时,所述电子设备执行如第一方面及其任一种可能的设计方式所述的方法。In a third aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device including a display screen and a memory; the chip system includes one or more interface circuits and one or more processors; the interface The circuit and the processor are interconnected by a line; the interface circuit is configured to receive a signal from a memory of the electronic device and send the signal to the processor, the signal including computer instructions stored in the memory; When the processor executes the computer instruction, the electronic device executes the method described in the first aspect and any possible design manner thereof.
第四方面,本申请提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得电子设备执行如第一方面及其任一种可能的设计方式所述的方法。In a fourth aspect, the present application provides a computer storage medium, the computer storage medium includes computer instructions, and when the computer instructions are run on the electronic device, the electronic device executes the first aspect and any possible design method thereof. the method described.
第五方面,本申请提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面及其任一种可能的设计方式所述的方法。In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect and any possible design manner thereof.
可以理解地,上述提供的第二方面所述的电子设备,第三方面所述的芯片系统,第四方面所述的计算机存储介质,第五方面所述的计算机程序产品所能达到的有益效果,可参考第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。It can be understood that the beneficial effects that can be achieved by the electronic device described in the second aspect, the chip system described in the third aspect, the computer storage medium described in the fourth aspect, and the computer program product described in the fifth aspect provided above , reference may be made to the beneficial effects of the first aspect and any possible design manner thereof, and details are not repeated here.
附图说明Description of drawings
图1A示出了本申请实施例提供的手机界面之一的示意图;FIG. 1A shows a schematic diagram of one of the mobile phone interfaces provided by the embodiment of the present application;
图1B示出了本申请实施例提供的手机界面之二的示意图;FIG. 1B shows a schematic diagram of the second mobile phone interface provided by the embodiment of the present application;
图2示出了本申请实施例提供的一种手机的硬件结构示意图;FIG. 2 shows a schematic diagram of a hardware structure of a mobile phone provided by an embodiment of the present application;
图3示出了本申请实施例提供的运动信息的显示方法之一的流程图;Fig. 3 shows a flow chart of one of the display methods of exercise information provided by the embodiment of the present application;
图4示出了本申请实施例提供的运动信息的显示方法之二的流程图;Fig. 4 shows a flow chart of the second display method of exercise information provided by the embodiment of the present application;
图5示出了本申请实施例提供的手机界面之三的示意图;Fig. 5 shows a schematic diagram of the third mobile phone interface provided by the embodiment of the present application;
图6示出了本申请实施例提供的手机界面之四的示意图;Fig. 6 shows a schematic diagram of the fourth mobile phone interface provided by the embodiment of the present application;
图7示出了本申请实施例提供的手机界面之五的示意图;Fig. 7 shows a schematic diagram of the fifth mobile phone interface provided by the embodiment of the present application;
图8为本申请实施例提供的一种芯片系统的结构示意图。FIG. 8 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
具体实施方式detailed description
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
为便于对本申请方案的理解,先在此结合图1A对常规技术以及常规技术中存在的问题说明如下。In order to facilitate the understanding of the solution of the present application, the conventional technology and the problems existing in the conventional technology are explained as follows with reference to FIG. 1A .
在常规技术中,手机可以显示图1A中的(a)示出的负一屏界面101a,该负一屏界面101a中包括跑步运动的运动卡片103a。该运动卡片103a中包括跑步距离、配速和运动时长等卡片信息。或者,手机可显示图1A中的(b)示出的负一屏界面102a,该负一屏界面102a中包括步行运动的运动卡片104a。该运动卡片104a中包括步行步数和步行距离等卡片信息。In conventional technology, the mobile phone may display a negative one-
很显然,上述常规技术中,负一屏的运动卡片中,通常都是一些常见且固定的卡片信息。从而导致运动卡片的内容十分单一。Apparently, in the above-mentioned conventional technology, the sports cards with one negative screen generally contain some common and fixed card information. As a result, the content of the sports card is very single.
需要在此说明的是,前述图1A的举例中,虽然仅以在负一屏中显示运动卡片来说明了常规技术,但是实际实施时,并不以此为限。例如,手机也可以在某些应用中(例如运动健康应用、微信应用)显示运动卡片。又如,电子设备可以是智能手表,则也可以在智能手表中显示运动卡片。It should be noted here that, in the aforementioned example of FIG. 1A , although the conventional technology is only illustrated by displaying sports cards in a negative screen, the actual implementation is not limited thereto. For example, the mobile phone can also display sports cards in some applications (such as sports and health applications, WeChat applications). As another example, the electronic device may be a smart watch, and the sports card may also be displayed on the smart watch.
基于此上述常规技术中存在的技术问题,本申请实施例提供了一种运动信息的显示方法,可应用于手机等电子设备中。其中,电子设备可以获取用户的运动数据。例如,该运动数据可以是步行步数、跑步距离等运动过程中产生的数据。以及,电子设备可获取其所在的地理位置的地标。而后,电子设备可显示运动卡片。其中,运动卡片中包括以地标的尺寸数据(如周长数据、长度数据)来度量运动数据的信息。例如,北京的地标是故宫,用户运动过程中手机的定位在北京,则手机可显示图1B示出的负一屏界面101b,该负一屏界面101b中包括运动卡片102b。与图1A中的(b)中的运动卡片104a不同的是:该运动卡片102b中不仅包括步行步数和步行距离,还包括“相当于绕故宫2.2圈”的信息。即,以故宫的周长来度量步行步数。如此,电子设备可以在运动卡片中以更具象的信息来呈现运动数据,从而可以避免卡片信息过于单一。Based on the technical problems in the above-mentioned conventional technologies, the embodiment of the present application provides a method for displaying exercise information, which can be applied to electronic devices such as mobile phones. Among them, the electronic device can obtain the user's exercise data. For example, the exercise data may be data generated during exercise such as the number of walking steps and running distance. And, the electronic device can obtain the landmark of the geographical location where it is located. The electronic device may then display the sports card. Wherein, the sports card includes the information of measuring the sports data by the size data (such as circumference data, length data) of the landmarks. For example, if the landmark of Beijing is the Forbidden City, and the mobile phone is positioned in Beijing during the user's exercise, the mobile phone can display the negative one-
示例性的,本申请实施例中的电子设备可以是手机、智能手表、手环、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等设备,本申请实施例对该设备的具体形态不作特殊限制。Exemplarily, the electronic device in the embodiment of the present application may be a mobile phone, a smart watch, a bracelet, a tablet computer, a desktop type, a laptop type, a handheld computer, a notebook computer, and an ultra-mobile personal computer (ultra-mobile personalcomputer, UMPC) , netbooks, and cellular phones, personal digital assistants (personal digital assistant, PDA), augmented reality (augmented reality, AR)\virtual reality (virtual reality, VR) equipment and other equipment, the embodiment of the present application does not make any reference to the specific form of the equipment. special restrictions.
下面将结合附图对本申请实施例的实施方式进行详细描述。The implementation of the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
请参考图2,为本申请实施例提供的一种电子设备的结构示意图。如图2所示,以电子设备是手机200为例,手机200可以包括处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及用户标识模块(subscriber identification module,SIM)卡接口295等。Please refer to FIG. 2 , which is a schematic structural diagram of an electronic device provided in an embodiment of the present application. As shown in FIG. 2 , taking the electronic device as a mobile phone 200 as an example, the mobile phone 200 may include a
可以理解的是,本实施例示意的结构并不构成对手机200的具体限定。在另一些实施例中,手机200可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure shown in this embodiment does not constitute a specific limitation on the mobile phone 200 . In other embodiments, the mobile phone 200 may include more or fewer components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
控制器可以是手机200的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the handset 200 . The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。A memory may also be provided in the
充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块240可以通过USB接口230接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块240可以通过手机200的无线充电线圈接收无线充电输入。充电管理模块240为电池242充电的同时,还可以通过电源管理模块241为手机供电。The
电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,外部存储器,显示屏294,摄像头293,和无线通信模块260等供电。电源管理模块241还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块241也可以设置于处理器210中。在另一些实施例中,电源管理模块241和充电管理模块240也可以设置于同一个器件中。The
手机200的无线通信功能可以通过天线1,天线2,移动通信模块250,无线通信模块260,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone 200 can be realized by the
手机200通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile phone 200 realizes the display function through the GPU, the display screen 294, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
显示屏294用于显示图像,视频等。该显示屏294是上述折叠屏(如柔性折叠屏或多屏折叠屏)。显示屏294包括显示面板。显示面板可以采用液晶显示屏(liquid crystaldisplay,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。The display screen 294 is used to display images, videos and the like. The display screen 294 is the above-mentioned folding screen (such as a flexible folding screen or a multi-screen folding screen). Display 294 includes a display panel. The display panel can be a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (organic light-emitting diode, OLED), an active matrix organic light-emitting diode or an active-matrix organic light emitting diode (active-matrix organic light emitting diode). diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc.
手机200可以通过ISP,摄像头293,视频编解码器,GPU,显示屏294以及APP处理器等实现拍摄功能。The mobile phone 200 can realize the shooting function through ISP, camera 293 , video codec, GPU, display screen 294 and APP processor.
外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机200的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,实现数据存储功能。例如将音乐,视频等媒体文件保存在外部存储卡中。The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 200 . The external memory card communicates with the
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器210通过运行存储在内部存储器221的指令,从而执行手机200的各种功能APP以及数据处理。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机200使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 221 may be used to store computer-executable program codes including instructions. The
手机200可以通过音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone 200 can realize the audio function through the
按键290包括开机键,音量键等。按键290可以是机械按键。也可以是触摸式按键。手机200可以接收按键输入,产生与手机200的用户设置以及功能控制有关的键信号输入。The keys 290 include a power key, a volume key and the like. The key 290 may be a mechanical key. It can also be a touch button. The mobile phone 200 can receive key input and generate key signal input related to user settings and function control of the mobile phone 200 .
马达291可以产生振动提示。马达291可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏294不同区域的触摸操作,马达291也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 291 can generate a vibrating reminder. The motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 291 can also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 294 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 292 can be an indicator light, which can be used to indicate the charging status, the change of the battery capacity, and also can be used to indicate messages, missed calls, notifications and so on.
SIM卡接口295用于连接SIM卡。SIM卡可以通过插入SIM卡接口295,或从SIM卡接口295拔出,实现和手机200的接触和分离。手机200可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口295可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口295可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口295也可以兼容不同类型的SIM卡。SIM卡接口295也可以兼容外部存储卡。手机200通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,手机200采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机200中,不能和手机200分离。The
以下实施例中的方法均可以在具有上述硬件结构的手机200中实现。The methods in the following embodiments can all be implemented in the mobile phone 200 having the above hardware structure.
本申请实施例提供一种运动信息的显示方法,可应用于手机。具体的,如图3所示,该方法包括S301-S305。An embodiment of the present application provides a method for displaying exercise information, which can be applied to a mobile phone. Specifically, as shown in FIG. 3, the method includes S301-S305.
S301、手机获取用户的运动数据。S301. The mobile phone acquires motion data of the user.
其中,该运动数据可以是步行、跑步、游泳等各种类型运动的运动过程中产生的数据。通常情况下,运动数据主要分为三类:运动步数、运动时间和运动距离。例如,运动数据为步行步数、游泳时间或者跑步距离。应理解,每次运动都可以获取相应的运动数据。例如,针对某次运动,手机可以获取第一运动数据,第一运动数据包括第一运动步数、第一运动距离和第一运动时间中的至少一个。针对另一次运动,手机可以获取到第二运动数据,第二运动数据包括第二运动步数、第二运动距离和第二运动时间中的至少一个。Wherein, the motion data may be data generated during various types of motion such as walking, running, and swimming. Usually, exercise data is mainly divided into three categories: number of exercise steps, exercise time, and exercise distance. For example, the exercise data is the number of walking steps, swimming time, or running distance. It should be understood that corresponding exercise data can be acquired for each exercise. For example, for a certain exercise, the mobile phone may acquire first exercise data, where the first exercise data includes at least one of the first exercise steps, the first exercise distance, and the first exercise time. For another exercise, the mobile phone may obtain second exercise data, and the second exercise data includes at least one of the second exercise steps, the second exercise distance, and the second exercise time.
在下文实施例中,将主要以运动数据是步行步数来说明本申请方案。In the following embodiments, the solution of the present application will be described mainly with the motion data being the number of walking steps.
其中,运动数据可以由手机自身采集得到,或者可以由可穿戴设备采集并同步给手机。其中,可穿戴设备可以是智能手表、手环以及智能眼镜等设备中的至少一个。示例性的,可以由手机中的内置陀螺仪、重力感应器和/或加速度传感器(如三轴加速度传感器)来采集用户的运动数据。又示例性的,用户在运动过程中仅佩戴有智能手表、手环等可穿戴设备,而未携带手机,则可在运动结束后,并且可穿戴设备与手机连接后,手机从可穿戴设备处获取运动数据。从而方便呈现用户未携带手机的过程中产生的运动数据Among them, the exercise data can be collected by the mobile phone itself, or can be collected by the wearable device and synchronized to the mobile phone. Wherein, the wearable device may be at least one of devices such as a smart watch, a bracelet, and smart glasses. Exemplarily, the user's movement data may be collected by a built-in gyroscope, a gravity sensor and/or an acceleration sensor (such as a three-axis acceleration sensor) in the mobile phone. As another example, if the user only wears wearable devices such as smart watches and wristbands during exercise, but does not carry a mobile phone, after the exercise is over and the wearable device is connected to the mobile phone, the mobile phone can be connected to the mobile phone from the wearable device. Get motion data. In this way, it is convenient to present the motion data generated when the user does not carry the mobile phone
实际实施时,手机或者可穿戴设备可实时采集用户的运动数据。例如,手机实时采集用户每天的步行步数。或者,手机或者可穿戴设备可定时采集用户的运动数据。例如,用户设置每天在预设时间段1运动,则手机可以在预设时间段1的开始时间启动采集运动数据,并在预设时间段1的结束时间停止采集运动数据。或者,手机可基于用户的请求开始和停止采集运动数据。例如,在用户点击“开始跑步”的按钮后,手环开始采集用户的运动数据;在用户点击“结束跑步”的按钮后,手环停止采集用户的运动数据。In actual implementation, mobile phones or wearable devices can collect user's motion data in real time. For example, the mobile phone collects the user's daily walking steps in real time. Alternatively, a mobile phone or a wearable device may periodically collect user's motion data. For example, if the user sets to exercise in the
S302、手机检测该运动数据是否超过预设运动值,若是,则执行S303;若否,则执行S304。S302. The mobile phone detects whether the exercise data exceeds a preset exercise value, and if yes, executes S303; if not, executes S304.
在本申请实施例,通过检测运动数据是否超过预设运动值,来估计用户的运动强度。若检测到运动数据超过预设运动值,则表明运动强度较大。针对该情况,执行S303,以手机所在的地理区域的地标来度量运动数据。若检测到运动数据未超过预设运动值,则表明运动强度较小。针对该情况,执行S305,以预设标的来度量运动数据。如此,手机可以使运动卡片上显示的运动信息与运动强度相匹配。In the embodiment of the present application, the user's exercise intensity is estimated by detecting whether the exercise data exceeds a preset exercise value. If the detected exercise data exceeds the preset exercise value, it indicates that the exercise intensity is relatively high. In view of this situation, S303 is executed to measure the movement data with the landmarks of the geographical area where the mobile phone is located. If the detected exercise data does not exceed the preset exercise value, it indicates that the exercise intensity is low. For this situation, execute S305 to measure motion data with a preset target. In this way, the mobile phone can match the exercise information displayed on the exercise card with the exercise intensity.
示例性的,以预设运动值是预设运动步数为例。假设预设运动步数是1000步,手机采集到的运动步数是5000步。很显然,5000>1000,即运动数据超过预设运动值。该情况下,则执行S303,以进一步获得度量运动数据的地标。Exemplarily, it is assumed that the preset exercise value is the preset number of exercise steps. Suppose the preset number of exercise steps is 1000 steps, and the number of exercise steps collected by the mobile phone is 5000 steps. Obviously, 5000>1000, that is, the exercise data exceeds the preset exercise value. In this case, perform S303 to further obtain landmarks for measuring motion data.
应理解,每次运动手机都可以检测运动数据是否超过预设运动值。例如,针对某次运动,在手机获取到第一运动数据后,手机可以检测该第一运动数据是否超过预设运动值。针对另一次运动,在手机获取到第二运动数据后,手机可以检测该第二运动数据是否超过预设运动值。It should be understood that the mobile phone can detect whether the exercise data exceeds the preset exercise value every time it is exercised. For example, for a certain exercise, after the mobile phone acquires the first exercise data, the mobile phone can detect whether the first exercise data exceeds a preset exercise value. For another exercise, after the mobile phone acquires the second exercise data, the mobile phone can detect whether the second exercise data exceeds a preset exercise value.
其中,对应不同类型的运动数据,预设运动值的类型也不同。示例性的,若运动数据是运动步数,则预设运动值可以是预设运动步数,例如,预设运动值是1000步。若运动数据是预设时间,则预设运动值可以是预设运动时间,例如,预设运动值是30分钟。若运动数据是运动距离,则预设运动值可以是预设运动距离,例如,预设运动值是1公里。如此,可以减少手机对不同类型的数据之间的换算。从而可以减少运算量,提高运算效率。Wherein, corresponding to different types of exercise data, types of preset exercise values are also different. Exemplarily, if the exercise data is the number of exercise steps, the preset exercise value may be the preset number of exercise steps, for example, the preset exercise value is 1000 steps. If the exercise data is a preset time, the preset exercise value may be a preset exercise time, for example, the preset exercise value is 30 minutes. If the exercise data is the exercise distance, the preset exercise value may be the preset exercise distance, for example, the preset exercise value is 1 kilometer. In this way, the conversion between different types of data by the mobile phone can be reduced. Thereby, the calculation amount can be reduced and the calculation efficiency can be improved.
或者,对应不同类型的运动,相同类型的预设运动值也不同。示例性的,以预设运动值是预设运动时间为例。若运动类型是游泳,则预设运动值可以是预设运动时间1。若运动类型是跑步,则预设运动值可以是预设运动时间2。若运动类型是跑步,则预设运动值可以是预设运动时间3。由于游泳运动的体能消耗通常最大,跑步次之,走路最小,则可设置预设运动时间1(如30分钟)小于预设运动时间2(如45分钟),预设运动时间2(如45分钟)小于预设运动时间3(如60分钟)。另外,预设运动距离也同理。如此,预设运动值可以与各类运动的体能消耗相适应。将该预设运动值用于估计运动强度,则可以提高预估的合理性。Or, corresponding to different types of exercise, the preset exercise values of the same type are also different. Exemplarily, the preset exercise value is the preset exercise time as an example. If the exercise type is swimming, the preset exercise value may be
在一些实施例中,手机可以定时触发检测该运动数据是否超过预设运动值。示例性的,手机可以在每天的预设时间2触发检测。例如,该预设时间2可以是预设时间段1的结束时间,或者是用户请求停止采集运动数据的时间。如此,手机可以在结束运动后及时的估计此次运动的运动强度。In some embodiments, the mobile phone can periodically trigger to detect whether the exercise data exceeds a preset exercise value. Exemplarily, the mobile phone can trigger detection at preset time 2 every day. For example, the preset time 2 may be the end time of the
在另一些实施例中,手机可以周期性触发检测该运动数据是否超过预设运动值。示例性的,对于实时采集运动数据的情况,手机可以以预设周期触发检测。例如,对于实时采集步行步数的情况,手机可以每隔1个小时检测触发检测。如此,手机可以准实时的检测到截止当前的运动强度。In some other embodiments, the mobile phone may periodically trigger to detect whether the motion data exceeds a preset motion value. Exemplarily, for the situation of collecting motion data in real time, the mobile phone can trigger the detection at a preset period. For example, for the situation of collecting the number of walking steps in real time, the mobile phone can detect and trigger the detection every hour. In this way, the mobile phone can detect the current exercise intensity in quasi-real time.
S303、手机查询地理区域1的地标1。其中,地理区域1是手机所在的地理位置所属的地理区域,地标1是该地理区域1具有代表性的地理标志。S303. The mobile phone queries the
其中,各个地理区域具有相应的地标。例如,北京的地标可以是故宫。又如,上海的地标可以是外滩。该地理区域可以以行政区、城市、或者国家为单位划分。例如,以国家为单位划分,中国的地标可以是长城,法国的地标可以是埃菲尔铁塔。在下文实施例中,主要以以城市为单位划分来说明本申请方案。Each geographical area has a corresponding landmark. For example, a landmark in Beijing could be the Forbidden City. Another example, the landmark of Shanghai can be the Bund. The geographic area can be divided in units of administrative districts, cities, or countries. For example, divided by country, the landmark of China can be the Great Wall, and the landmark of France can be the Eiffel Tower. In the following embodiments, the scheme of the present application is mainly described by dividing by city as a unit.
在本申请实施例中,手机获取地理区域1的地标1,则可以获取到后续用于度量运动数据的参照物。从而针对不同的地理区域,可以获取到不同的地标作为参照物。如此,电子设备可以随着地理区域的变化,呈现差异化的运动卡片。例如,某次运动中的第一运动数据,是手机在第一地理区域(如北京)内采集的运动数据,则地理区域1是第一地理区域,地标1是该第一地理区域的地标。另一次运动中的第二运动数据,是手机在第二地理区域(如上海)内采集的运动数据,则地理区域1是第二地理区域,地标1是第二地理区域的地标。In the embodiment of the present application, the mobile phone obtains the
具体的,手机可预先建立地理区域和地标的对应关系表。而后在检测出运动数据超过预设运动值后,通过查表可快速查询到与当前的地理位置所属的地理区域1对应的地标1。从而提高确定运动卡片中的卡片信息的效率。Specifically, the mobile phone may pre-establish a correspondence relationship table between geographic regions and landmarks. Then, after it is detected that the motion data exceeds the preset motion value, the
示例性的,手机可建立如下表1所示的城市和地标的对应关系表。Exemplarily, the mobile phone may establish a correspondence table between cities and landmarks as shown in Table 1 below.
表1Table 1
例如,当前的地理位置所属的城市是深圳,手机查询表1可得到与深圳对应的地标1是电子大厦。For example, the city to which the current geographic location belongs is Shenzhen, and the mobile phone query table 1 can obtain that the
应理解,不同地理位置的地标的数量可能不同。另外,有些小城市可能没有地标。例如,不同的城市和地标对应关系如下表2所示。It should be understood that the number of landmarks may vary for different geographic locations. Also, some smaller cities may not have landmarks. For example, the correspondence between different cities and landmarks is shown in Table 2 below.
表2Table 2
其中,北京有故宫、颐和园以及长城共3个地标。上海仅有外滩1个地标。并且,表1和表2中未记载的城市,可以理解为没有地标的城市。也就是说,有些地理区域的地标有多个,有些地理区域的地标仅有一个,还有一些地理区域没有地标。在本申请实施例,将有地标(包括一个或多个)的地理区域,称为预设区域;将没有地标的地理区域,称为预设区域外的区域。Among them, Beijing has three landmarks, the Forbidden City, the Summer Palace and the Great Wall. There is only one landmark in Shanghai, the Bund. In addition, cities not recorded in Table 1 and Table 2 can be understood as cities without landmarks. That is to say, some geographical areas have multiple landmarks, some geographical areas have only one landmark, and some geographical areas have no landmarks. In this embodiment of the present application, a geographical area with landmarks (including one or more) is called a preset area; a geographical area without landmarks is called an area outside the preset area.
而在实际实施时,为了保持运动卡片的一致性,通常仅以一个地标来度量运动数据。In actual implementation, in order to maintain the consistency of sports cards, usually only one landmark is used to measure sports data.
基于此,在一些实施例中,如图4所示,在S303之后,该方法还包括S401-S403。Based on this, in some embodiments, as shown in FIG. 4 , after S303, the method further includes S401-S403.
S401、若地标1有且仅有一个,手机将该地标确定为目标地标。S401. If there is only one
其中,目标地标用于后续度量运动数据。Among them, the target landmark is used for subsequent measurement of motion data.
示例性的,当前的地理位置属于深圳,手机查询表2可得到与深圳对应的地标1仅有电子大厦。相应的,手机可将电子大厦作为目标地标。例如,手机在第一地理区域获取第一运动数据后,若查询到第一地理区域的地标仅有一个,则将该地标确定为目标地标(也可以称为第一地标)。手机在第二地理区域获取第二运动数据后,若查询到第二地理区域的地标仅有一个,则将该地标确定为目标地标(也可以称为第二地标)。Exemplarily, the current geographic location belongs to Shenzhen, and the mobile phone query table 2 can obtain that the
S402、若地标1有多个,手机从多个地标1中选出目标地标。S402. If there are
在一种具体的实现方式中,手机可根据运动数据和该多个地标1适用的运动数据的数据范围,从该多个地标1中选择出目标地标。In a specific implementation manner, the mobile phone may select a target landmark from the plurality of
示例性的,以地理区域1是北京为例。手机查询上表2可得到与北京对应的地标1有故宫、颐和园和长城。该情况下,手机可从多个地标1中选择一个与该运动数据相匹配的地标作为目标地标。例如,步行步数为5000步,则选择故宫作为目标地标;步行步数为30000步,则选择颐和园作为目标地标。也就是说,针对同一地理区域,若运动数据不同,则选择出的目标地标可能不同。应理解,确定出的目标地标不同,则度量运动数据的参照物不同。从而最终显示的运动卡片也会存在差异。As an example, take Beijing as an example in
其中,不同地标适用于不同数据范围的运动数据。示例性的,手机可预先建立地标1和数据范围的对应关系表。例如,可在表2的基础上新增数据范围(如步数范围),得到如下表3所示的对应关系表。Wherein, different landmarks are applicable to motion data of different data ranges. Exemplarily, the mobile phone may pre-establish a correspondence table between the
表3table 3
以上表3中北京的地标1为例。其中,故宫适用的步数范围是(1k,10k],即故宫适用于大于1000步且小于或等于10000步的运动步数。其中,1000步是预设运动值。颐和园适用的步数范围是(10k,100k],即颐和园适用于大于10000步且小于或等于100000步的运动步数。长城适用的步数范围是(100k,+∞),即长城适用于100000步以上的运动步数。
通常情况下,数据范围与地标的规模相关。地标的规模越大,则数据范围包括的数据值越大;反之,地标的规模越小,则数据范围包括的数据值越小。Typically, the data extent is related to the scale of the landmark. The larger the scale of the landmark, the larger the data value included in the data range; conversely, the smaller the scale of the landmark, the smaller the data value included in the data range.
手机可将运动数据与每个地标1适用的数据范围匹配,将适用的数据范围包括该运动数据的地标1确定为目标地标。例如,以地理区域1是北京为例,则多个地标1是故宫、颐和园和长城。假设故宫、颐和园和长城适用的范围如上表3所示,并且步行步数是20000步,很显然20000步属于颐和园适用的步数范围(10k,100k],则目标地标为颐和园。如此,手机可以选择与运动数据相匹配的规模的地标作为目标地标。The mobile phone can match the motion data with the applicable data range of each
也就是说,若地理区域1有多个地标1,则可从中确定出与运动数据的数据范围相匹配的地标为目标地标。例如,手机在第一地理区域获取第一运动数据后,若查询到第一地理区域的地标有多个,则从多个地标中确定出与第一运动数据的数据范围匹配的地标作为目标地标(也可以称为第一地标)。手机在第二地理区域获取第二运动数据后,若查询到第二地理区域的地标有多个,则从多个地标中确定出与第二运动数据的数据范围匹配的地标作为目标地标(也可以称为第二地标)。That is to say, if there are
在另一种具体的实现方式中,手机可根据手机所在的地理位置(可记为地理位置1)和该多个地标1所在的地理位置(可记为地理位置2),从该多个地标1中选择出目标地标。其中,目标地标可以是多个地标1中距离地理位置1最近的地标。或者,目标地标是多个地标1中,和地理位置1属于同一行政区的地标。示例性的,以地理区域1是北京为例。假设北京的地标为故宫(属于东城区)、颐和园(属于海淀区)和长城(属于密云区),地理位置1是北京王府井,其属于东城区,则目标地标可以是故宫。如此,手机可以距离最近的或者行政区域相同的地标选取为目标地标,使得选出的目标地标与用户的关联度更为紧密。并且,针对同一地理区域,若手机所在的地理位置不同,则选择出的目标地标可能不同。应理解,确定出的目标地标不同,则度量运动数据的参照物不同。从而最终显示的运动卡片也会存在差异。In another specific implementation, the mobile phone can select from the
至此,需要说明的是,前文关于S403的说明中,仅以两种具体的实现方式说明了从多个地标1中选择目标地标的实现。但是实际实施时,并不以此为限。示例性的,手机也可以从多个地标1中随机选择目标地标,或者,手机也可以从多个地标1中依次轮流选择目标地标。例如,第一次选择故宫,第二次选择颐和园,第三次选择长城,如此循环。So far, it should be noted that, in the foregoing description about S403, only two specific implementation manners are used to illustrate the implementation of selecting a target landmark from
S403、若不存在地标1,手机从其它地理区域的地标中选择目标地标。S403. If there is no
其中,其它地理区域是指除地理区域1之外的区域。例如,从有地标的地理区域(即预设区域)的地标中选择目标地标。也就是说,若手机在第三地理区域(如郑州)采集到第三运动数据,并且未查询到该第三地理区域的地标,即,第三地理区域是预设区域之外的区域。针对这种情况,手机则可从预设区域的地标中选择目标地标。Wherein, other geographic areas refer to areas other than
对于不存在地标1的情况,手机可以根据运动数据和其它地理区域的地标适用的数据范围来选择目标地标。或者,手机可以根据手机所在的地理位置(可记为地理位置1)和其它地理区域的地标所在的地理位置(可记为地理位置3),从其它地理区域的地标中选择出目标地标。或者,手机可以随机或者依次轮流从其它地理区域的地标中选择目标地标。如此,针对不存在地标的地理区域,手机也可确定出目标地标。并且,针对同一不存在地标的地理区域,多次选择的目标地标可能不同,则度量运动数据的参照物不同。从而最终显示的运动卡片也会存在差异。For the situation that there is no
由此可见,采用本实施例的方法,先确定出目标地标,可以保证针对任意地理位置,都可以、并且仅确定出一个地标作为目标地标。从而保证运动卡片的一致性。It can be seen that, by adopting the method of this embodiment, the target landmark is determined first, which can ensure that for any geographic location, only one landmark can be determined as the target landmark. Thereby ensuring the consistency of sports cards.
S304、手机显示运动卡片,该运动卡片中包括运动信息1。该运动信息1是以地标1的尺寸数据来度量运动数据的信息。S304. The mobile phone displays a sports card, and the sports card includes
应理解,在先确定目标地标的实施例中,如图4所示,S304具体为S304a:It should be understood that, in the embodiment in which the target landmark is determined first, as shown in FIG. 4 , S304 is specifically S304a:
S304a、手机显示运动卡片,该运动卡片中包括运动信息1。该运动信息1是以目标地标的尺寸数据来度量运动数据的信息。S304a. The mobile phone displays a sports card, and the sports card includes
在本申请实施例中,针对运动强度较大的运动数据,手机可以在运动卡片中显示以地标1的尺寸数据(如周长数据、长度数据)来度量运动数据的运动信息1。从而可以向用户呈现以地标1为参照的运动数据,丰富运动卡片的内容。In the embodiment of the present application, for the exercise data with high exercise intensity, the mobile phone can display the
其中,预设区域内包含的不同地理区域的地标不同,则显示的运动卡片也不相同。例如,第一地理区域和第二地理区域都是预设区域,确定出的第一地理区域的目标地标记为第一地标,确定出的第二地理区域的目标地标记为第二地标。相应的,手机在第一地理区域获取第一运动数据后,可以显示第一运动卡片,该第一运动卡片中不仅包括第一运动数据,还包括以第一地标的尺寸数据来度量第一运动数据的第一信息,即第一信息为运动信息1。手机在第二地理区域获取第二运动数据后,可以显示第二运动卡片,该第二运动卡片中不仅包括第二运动数据,还包括以第二地标的尺寸数据来度量第二运动数据的第二信息,即第二信息为运动信息1。Wherein, the landmarks in different geographic regions included in the preset region are different, and the displayed sports cards are also different. For example, both the first geographical area and the second geographical area are preset areas, the determined target place in the first geographical area is marked as the first landmark, and the determined target place in the second geographical area is marked as the second landmark. Correspondingly, after the mobile phone acquires the first motion data in the first geographical area, it can display the first motion card, which not only includes the first motion data, but also includes the size data of the first landmark to measure the first motion. The first information of the data, that is, the first information is
其中,若是预设区域外的区域,则运动信息1是以预设区域内的任一地标的尺寸数据来度量运动数据的信息。例如,第三地理区域是预设区域外的区域,手机在第三地理区域获取第三运动数据后,可以显示第三运动卡片,该第三运动卡片中不仅包括第三运动数据,还包括以预设区域内的任一地标的尺寸数据来度量第三运动数据的第三信息,即第三信息为运动信息1。Wherein, if it is an area outside the preset area, the
其中,运动卡片可以显示在手机的浅入口处,以便用户快捷的获取。例如,运动卡片可以显示在手机的负一屏中。Among them, the sports card can be displayed at the shallow entrance of the mobile phone, so that users can quickly obtain it. For example, a sports card can be displayed on the negative screen of a mobile phone.
在一些实施例中,手机可以地标1的周长数据来度量运动数据。相应的,卡片信息1包括运动数据对应的距离值L1可绕地标1(如目标地标)m1圈,m1>0。具体的,手机可将运动数据对应的距离值L1除以地标的周长C1,得到圈数m1。其中,C1和L1的单位相同,例如,都为米。例如,卡片信息1包括“相当于绕故宫1圈”。如此,手机可以将用户的运动数据与地标的周长建立联系。In some embodiments, the mobile phone can measure the movement data by the perimeter data of the
在一种具体的实现方式中,运动数据包括步行步数,运动数据对应的距离值L1等于步行步数s与每步的距离值k(也可以称为步长)的乘积。通常情况下,k为预设的常数值。例如,k=0.6米。In a specific implementation manner, the exercise data includes the number of walking steps, and the distance value L1 corresponding to the exercise data is equal to the product of the number of walking steps s and the distance value k (also called step length) of each step. Usually, k is a preset constant value. For example, k=0.6 meters.
示例一,若目标地标是故宫,且故宫周长是3840米,即C1=3840米。并且假设s=10000步,k=0.6米,则m1=(10000*0.6)/3840≈1.5圈,则手机可显示图5中的(a)示出的负一屏界面501。该负一屏界面501中包括运动卡片502,该运动卡片502中包括运动信息1“相当于绕故宫1.5圈”。Example 1, if the target landmark is the Forbidden City, and the perimeter of the Forbidden City is 3840 meters, that is, C1 = 3840 meters. And assuming s=10000 steps, k=0.6 meters, then m1=(10000*0.6)/3840≈1.5 circles, then the mobile phone can display the negative one-
示例二,若目标地标是颐和园,且颐和园的周长是8000米,即C1=8000米。并且假设s=20000步,k=0.6米,则m1=(20000*0.6)/8000≈1.5圈,则手机可显示图5中的(b)示出的负一屏界面503。该负一屏界面503中包括运动卡片504,该运动卡片504中包括运动信息1“相当于绕颐和园1.5圈”。Example 2, if the target landmark is the Summer Palace, and the perimeter of the Summer Palace is 8000 meters, that is, C1 = 8000 meters. And assuming s=20000 steps, k=0.6 meters, then m1=(20000*0.6)/8000≈1.5 circles, then the mobile phone can display the negative one-
在另一种具体的实现方式中,运动数据包括运动距离,例如,步行距离、跑步距离、游泳距离等。相应的,运动数据对应的距离值L1即为该运动距离。例如,跑步距离为2公里,则L1=2000米。In another specific implementation manner, the exercise data includes exercise distance, for example, walking distance, running distance, swimming distance, and the like. Correspondingly, the distance value L1 corresponding to the motion data is the motion distance. For example, if the running distance is 2 kilometers, then L1=2000 meters.
在另一种具体的实现方式中,运动数据包括运动时间,例如,跑步时间、游泳时间等。相应的,运动数据对应的距离值L1等于运动时间和运动配速(也可以称为单位时间的运动距离)的乘积。其中,该运动配速可以是用户在相应运动类型中的历史平均配速。或者,该运动配速可以为与相应运动类型匹配的预设速度值。In another specific implementation manner, the exercise data includes exercise time, for example, running time, swimming time, and the like. Correspondingly, the distance value L1 corresponding to the exercise data is equal to the product of the exercise time and the exercise pace (also referred to as the exercise distance per unit time). Wherein, the exercise pace may be the historical average pace of the user in the corresponding exercise type. Alternatively, the exercise pace may be a preset speed value matched with the corresponding exercise type.
示例性的,运动数据包括跑步时间t。假设t=40分钟,用户在跑步运动中的历史平均配速v≈126米/分钟,则跑步运动对应的距离值L1=126*40≈5.04公里。Exemplarily, the exercise data includes running time t. Assuming that t=40 minutes, and the user's historical average pace v≈126 m/min during running, the distance value corresponding to running is L1=126*40≈5.04 kilometers.
在另一些实施例中,手机可以地标1的长度数据来度量运动数据。相应的,卡片信息1包括运动数据对应的距离值L1相当于地标1的长度的n1倍,n1>0。例如,卡片信息1包括“相当于1/10长城”。In some other embodiments, the mobile phone can measure the movement data by the length data of the
前述关于S304的说明中,主要说明了运动卡片中的运动信息1。而在另一些实施例中,运动卡片中还可以包括运动信息2,运动信息2是地标1(如目标地标)的图片。并且,该地标1(如目标地标)的图片是运动卡片的卡片背景。In the foregoing description about S304, the
示例性的,目标地标是故宫,则手机可显示图6所示的负一屏界面601,该负一屏界面601中包括运动卡片602。该运动卡片602的卡片背景是故宫的图片,即运动信息2是故宫的图片。Exemplarily, if the target landmark is the Forbidden City, the mobile phone may display a negative one-
在另一些实施例中,运动卡片中还可以包括能量信息,能量信息用于以预设食物的能量值来度量运动数据。示例性的,第一运动卡片中包括第一能量信息,第一能量信息用于以预设食物的能量值来度量第一运动数据。例如,图6所示的负一屏界面601中的运动卡片602中包括能量信息“相当于消耗0.6瓶可乐”。如此,手机可以通过更多维度来度量运动数据并呈现给用户。In some other embodiments, the exercise card may also include energy information, which is used to measure the exercise data with the energy value of the preset food. Exemplarily, the first exercise card includes first energy information, and the first energy information is used to measure the first exercise data with the energy value of the preset food. For example, the
在另一些实施例中,运动卡片中还可以包括排名信息,排名信息用于指示运动数据的排名。示例性的,第一运动卡片中包括第一排名信息,第一排名信息用于指示第一运动数据的排名。例如,图6所示的负一屏界面601中的运动卡片602中包括排名信息“击败朝阳区56%的用户”。如此,手机可以通过更多维度来度量运动数据并呈现给用户。In some other embodiments, the sports card may also include ranking information, which is used to indicate the ranking of the sports data. Exemplarily, the first sports card includes first ranking information, and the first ranking information is used to indicate the ranking of the first sports data. For example, the
应理解,运动卡片中同样还可以包括常规的运动信息。例如,运动信息可以包括步行步数、步行距离、消耗卡路里、运动排名等信息。It should be understood that conventional sports information may also be included in the sports card. For example, exercise information may include information such as number of steps taken, walking distance, calories burned, and exercise ranking.
S305、手机显示运动卡片,该运动卡片中包括运动信息3。该运动信息3是以预设标的的尺寸数据来度量运动数据的信息。S305. The mobile phone displays a sports card, and the sports card includes sports information 3. The motion information 3 is information for measuring motion data with preset size data.
在本申请实施例中,针对运动强度较小的运动数据,手机可以在运动卡片中显示以预设标的的尺寸数据来度量运动数据的运动信息3。从而对较小的运动数据,也可以有较合理的度量。也就是说,若运动数据未超过预设运动值,手机显示的运动卡片(也可以称为第四运动卡片)中则会包括以预设标的的尺寸数据来度量运动数据的信息(也可以称为第四信息),即运动信息3可以是第四信息。In the embodiment of the present application, for the exercise data with low exercise intensity, the mobile phone may display the exercise information 3 in which the exercise data is measured by the size data of the preset target in the exercise card. Therefore, a more reasonable measure can also be obtained for smaller motion data. That is to say, if the exercise data does not exceed the preset exercise value, the exercise card (also called the fourth exercise card) displayed on the mobile phone will include the information of measuring the exercise data with the size data of the preset target (also called the fourth exercise card). is the fourth information), that is, the motion information 3 may be the fourth information.
其中,预设标的可以是具有标准尺寸、但是不属于地标的标的。例如,预设标的可以是标准操场、标准足球场等运动场地。Wherein, the preset target may be a target with a standard size but not belonging to a landmark. For example, the preset target may be a standard playground, a standard football field and other sports grounds.
与S304中类似,在一些实施例中,手机可以预设标的周长数据来度量运动数据。相应的,卡片信息3包括运动数据对应的距离值L2可绕预设标的m2圈,m2>0。Similar to S304, in some embodiments, the mobile phone may preset the perimeter data of the target to measure the exercise data. Correspondingly, the distance value L2 corresponding to the card information 3 including the motion data can circle around the preset m2, m2>0.
示例性的,若预设标的是标准操场,且标准操场的内圈周长是400米,步行步数为800步,每步距离为0.6米,则m2=(800*0.6)/400≈1.2圈,则手机可显示图7示出的负一屏界面701。该负一屏界面701中包括运动卡片702,该运动卡片702中包括运动信息3“相当于绕标准操场1.2圈”。Exemplarily, if the preset target is a standard playground, and the inner circumference of the standard playground is 400 meters, the number of walking steps is 800 steps, and the distance per step is 0.6 meters, then m2=(800*0.6)/400≈1.2 circle, the mobile phone can display the negative one-
与S304中类似,在另一些实施例中,手机可以预设标的的长度数据来度量运动数据。相应的,卡片信息3包括运动数据对应的距离值L2相当于预设标的的长度的n2倍,n2>0。Similar to S304, in some other embodiments, the mobile phone may preset the length data of the object to measure the movement data. Correspondingly, the distance value L2 corresponding to the card information 3 including the motion data is equivalent to n2 times the length of the preset target, and n2>0.
与S304中类似,在另一些实施例中,运动卡片中还可以包括运动信息4,运动信息4是预设标的的图片。并且,该预设标的的图片是运动卡片的卡片背景。Similar to S304, in other embodiments, the sports card may further include sports information 4, which is a picture of a preset target. Moreover, the picture of the preset object is the card background of the sports card.
另外,需要说明的是,手机可以定时显示运动卡片。例如,手机在每天21点总结当前的运动数据,显示运动卡片。又如,手机在每天9点,12点,18点,21点等时间中的多个时间显示运动卡片。或者,手机可以长期显示运动卡片,并且,随着运动数据和/或地理位置(或地理区域)的变化,运动卡片中的运动信息(如运动信息1、运动信息2、运动信息3、运动信息4)也随之不断更新。例如,在同一地理区域,随着运动数据的实时变化,运动数据所属的数据范围也在随之变化,从而选择出的目标地标发生变化。最终显示的卡片信息1也在随之变化。In addition, it should be noted that the mobile phone can display sports cards at regular intervals. For example, the mobile phone summarizes the current exercise data at 21 o'clock every day and displays the exercise card. As another example, the mobile phone displays sports cards at multiple times of 9:00, 12:00, 18:00, 21:00, etc. every day. Or, the mobile phone can display the sports card for a long time, and, along with the change of the sports data and/or geographic location (or geographical area), the sports information (such as
前文S302-S305的说明中,首先按照预设运动值划分了运动强度,而后针对不同的运动强度,采用相应的方式来确定卡片信息。而在另一些实施例中,手机也可以不划分运动强度,即S302是可选的。在本实施例中,手机可以直接根据该运动数据和地标1(如目标地标)来显示运动卡片。如此,可以简化显示运动卡片的计算,节省手机的运算资源。In the previous description of S302-S305, the exercise intensity is first divided according to the preset exercise value, and then the card information is determined in a corresponding way for different exercise intensities. However, in some other embodiments, the mobile phone may not divide exercise intensity, that is, S302 is optional. In this embodiment, the mobile phone can directly display the sports card according to the sports data and the landmark 1 (such as the target landmark). In this way, calculations for displaying sports cards can be simplified, and computing resources of the mobile phone can be saved.
综上所述,采用本申请实施例提供的运动信息的显示方法,手机可以在运动卡片中显示,以地标1或者预设标的尺寸数据来度量运动数据的信息,使运动数据更加具象化。在丰富运动卡片的内容的同时,可以方便用户从多方面来衡量运动量的多少。To sum up, using the exercise information display method provided by the embodiment of the present application, the mobile phone can be displayed in the exercise card, and the information of the exercise data can be measured by the size data of the
本申请另一些实施例提供了一种电子设备,该电子设备可以包括:上述显示屏(如触摸屏)、存储器和一个或多个处理器。该显示屏、存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中手机执行的各个功能或者步骤。该电子设备的结构可以参考图2所示的电子设备200的结构。Some other embodiments of the present application provide an electronic device, which may include: the above-mentioned display screen (such as a touch screen), a memory, and one or more processors. The display screen, memory and processor are coupled. The memory is used to store computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device can execute various functions or steps performed by the mobile phone in the foregoing method embodiments. For the structure of the electronic device, reference may be made to the structure of the electronic device 200 shown in FIG. 2 .
本申请实施例还提供一种芯片系统,如图8所示,该芯片系统800包括至少一个处理器801和至少一个接口电路802。处理器801和接口电路802可通过线路互联。例如,接口电路802可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路802可用于向其它装置(例如处理器801)发送信号。示例性的,接口电路802可读取存储器中存储的指令,并将该指令发送给处理器801。当所述指令被处理器801执行时,可使得电子设备执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。The embodiment of the present application also provides a chip system, as shown in FIG. 8 , the
本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中手机执行的各个功能或者步骤。The embodiment of the present application also provides a computer storage medium, the computer storage medium includes computer instructions, and when the computer instructions are run on the above-mentioned electronic device, the electronic device is made to perform the various functions or steps performed by the mobile phone in the above-mentioned method embodiment .
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机执行的各个功能或者步骤。The embodiment of the present application also provides a computer program product, which, when the computer program product is run on a computer, causes the computer to execute each function or step performed by the mobile phone in the method embodiment above.
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be assigned by Completion of different functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . 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 application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The above-mentioned storage medium includes: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, and other various media that can store program codes.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above content is only the specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application shall be covered within the protection scope of the application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110996637.0A CN114461874B (en) | 2021-08-27 | 2021-08-27 | Motion information display method and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110996637.0A CN114461874B (en) | 2021-08-27 | 2021-08-27 | Motion information display method and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114461874A CN114461874A (en) | 2022-05-10 |
| CN114461874B true CN114461874B (en) | 2022-12-13 |
Family
ID=81406124
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110996637.0A Active CN114461874B (en) | 2021-08-27 | 2021-08-27 | Motion information display method and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114461874B (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112235464A (en) * | 2019-06-28 | 2021-01-15 | 华为技术有限公司 | A method and electronic device for calling for help based on fall detection |
Family Cites Families (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| BR112012004986A2 (en) * | 2009-09-04 | 2019-09-24 | Nike International Ltd. | monitoring and tracking athletic activity |
| JP5674566B2 (en) * | 2010-06-28 | 2015-02-25 | ナイキ イノベイト セー. フェー. | How to monitor and track athletic activity |
| CN102889889A (en) * | 2011-07-18 | 2013-01-23 | 神达电脑股份有限公司 | Body-building state monitoring method for user of personal navigation device and related device |
| US9414776B2 (en) * | 2013-03-06 | 2016-08-16 | Navigated Technologies, LLC | Patient permission-based mobile health-linked information collection and exchange systems and methods |
| JP6667233B2 (en) * | 2014-09-02 | 2020-03-18 | ナイキ イノベイト シーブイ | Monitoring health using mobile devices |
| CN104522945B (en) * | 2014-12-31 | 2016-12-07 | 成都云卫康医疗科技有限公司 | A kind of smart motion health care bracelet |
| CN105953812B (en) * | 2016-04-22 | 2019-01-18 | 广东小天才科技有限公司 | Method and system for quantifying motion step number |
| CN106075839A (en) * | 2016-06-08 | 2016-11-09 | 深圳市元征科技股份有限公司 | Workout data monitoring method, Apparatus and system |
| US10453264B1 (en) * | 2018-04-05 | 2019-10-22 | Stone Patents | System for simulating a virtual fitness partner |
| CN109041148B (en) * | 2018-08-27 | 2021-01-08 | 维沃移动通信有限公司 | Mobile terminal operation method and mobile terminal |
| CN109829107A (en) * | 2019-01-23 | 2019-05-31 | 华为技术有限公司 | A kind of recommended method and electronic equipment based on user movement state |
| CN112559098B (en) * | 2019-09-26 | 2022-04-26 | 华为技术有限公司 | Card rendering method and electronic equipment |
| CN111145891A (en) * | 2019-12-24 | 2020-05-12 | 联想(北京)有限公司 | Information processing method and device and electronic equipment |
| CN111326231A (en) * | 2020-02-24 | 2020-06-23 | 广州居家瘦营养健康咨询有限公司 | Health slimming method and package recommendation system |
| CN112612386B (en) * | 2020-12-15 | 2022-08-12 | 青岛海信移动通信技术股份有限公司 | Mobile terminal and display method of application card |
-
2021
- 2021-08-27 CN CN202110996637.0A patent/CN114461874B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112235464A (en) * | 2019-06-28 | 2021-01-15 | 华为技术有限公司 | A method and electronic device for calling for help based on fall detection |
Non-Patent Citations (2)
| Title |
|---|
| Analysis of Performance between Kinect v1 and Kinect v2 for Various Facial Part Movements;Sheng Guang Heng 等;《2019 IEEE 9th International Conference on System Engineering and Technology (ICSET)》;20191121;17-22 * |
| 基于智能手机的健康服务系统的设计与实现;张晨;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160315(第03(2016)期);I138-4101 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114461874A (en) | 2022-05-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12069596B2 (en) | Method and device for measuring amount of user physical activity | |
| US10838894B2 (en) | Electronic device and method for preventing corrosion to connector | |
| EP3324388A1 (en) | Display driving circuit, display driving method and electronic device | |
| EP3352666B1 (en) | Activity information providing method and electronic device supporting the same | |
| KR20170090951A (en) | Electronic device and controlling method thereof | |
| US9948856B2 (en) | Method and apparatus for adjusting a photo-taking direction, mobile terminal | |
| CN111569435B (en) | Ranking list generation method, system, server and storage medium | |
| CN107803030B (en) | Refreshing method and device for resource site on virtual map | |
| US10650596B2 (en) | Electronic device for providing VR image based on polyhedron and image providing method thereof | |
| CN108174275B (en) | Image display method and device and computer readable storage medium | |
| US20170131896A1 (en) | Electronic device and method for selecting area associated with content | |
| CN107810472A (en) | Electronic device and method for controlling display of panoramic images | |
| US20170248424A1 (en) | Electronic device for determining position and method for operating the same | |
| CN112014866B (en) | Motion trail recording method and related equipment | |
| WO2023011477A1 (en) | Method for setting exercise target and related electronic device | |
| CN107409358A (en) | The electronic equipment of power-saving method and execution this method in point to point network | |
| CN107209273A (en) | Method for obtaining location information and electronic device thereof | |
| CN115276190B (en) | Charging reminding method, electronic device and storage medium | |
| CN114209298A (en) | A PPG sensor control method, device and electronic device | |
| CN103092641A (en) | Electronic device | |
| CN113220176A (en) | Display method and device based on widget, electronic equipment and readable storage medium | |
| CN114461874B (en) | Motion information display method and electronic equipment | |
| CN116668951A (en) | A method, electronic device and storage medium for generating geofence | |
| CN112613772A (en) | Information pushing method, device, equipment and storage medium | |
| CN110471614A (en) | Method for storing data, method and device for detecting terminal |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |

