A method, device, electronic device and storage medium for obtaining skiing mileage

By obtaining the ski blanket and the user's movement data on the ski machine, calculating the user's actual sliding mileage on the ski machine, solving the problem of inaccurate ski mileage statistics in the prior art, and achieving more accurate cumulative sliding mileage statistics.

CN114138843BActive Publication Date: 2025-05-27BEIJING SCHIEMAN INTELLIGENT EQUIP TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111267240.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2025-05-27
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

The prior art is inaccurate when stating the user simulates the cumulative sliding mileage of a ski on a ski machine's ski blanket.

Method used

By obtaining the rolling mileage of the ski blanket between two adjacent turns, the user's parallel and vertical movement mileage on the ski blanket, and combining these data to calculate the user's actual sliding mileage over that period of time, and then calculate the cumulative sliding mileage.

Benefits of technology

The accuracy of the statistical user ski mileage is improved and the accurate reflection of the cumulative sliding mileage is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114138843B_ABST
    Figure CN114138843B_ABST
Patent Text Reader

Abstract

The present invention provides a method, apparatus, electronic device and storage medium for obtaining skiing mileage. When there are multiple turns during the process of a user simulating skiing on the ski blanket of a ski machine, for any two adjacent turns, obtain the rolling mileage of the ski blanket between these two turns. Obtain the first movement mileage of the user on the ski blanket in the direction parallel to the rolling direction of the ski blanket and the second movement mileage in the direction perpendicular to the rolling direction of the ski blanket between the two turns. Obtain the actual sliding mileage of the user on the ski blanket between these two turns according to the rolling mileage, the first movement mileage and the second movement mileage. Obtain the cumulative sliding mileage of the user on the ski blanket during the process of simulating skiing according to the actual sliding mileage of the user on the ski blanket between every two adjacent turns. In this way, the accuracy of the cumulative sliding mileage of the user on the ski blanket during the process of simulating skiing can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular, to a method, device, electronic device, and storage medium for obtaining skiing mileage. Background Art

[0002] As a sport, skiing is deeply loved by the majority of users. However, currently, in a year, users can only go to the ski resort to ski in winter. For users who love skiing, this is very inconvenient and they cannot ski during other seasons except winter.

[0003] Therefore, a ski machine has been developed. The ski machine at least includes a motor, a ski carpet, a front roller, and a rear roller, etc. The motor drives the front roller and the rear roller to roll, and then drives the ski carpet to slide, so as to simulate a skiing scene. Users can wear skiing equipment and slide on the ski carpet to simulate skiing.

[0004] Sometimes, in order to improve the skiing skills of users, relevant training for skiing needs to be carried out on users, and then the skiing level of users is evaluated according to the training situation to see if it can be upgraded. If it can be upgraded, a higher-level certificate for skiing is issued to the users, etc.

[0005] However, currently, when evaluating whether the skiing level of users can be upgraded according to the training situation, it is often necessary to count the cumulative sliding mileage of users simulating skiing on the ski carpet of the ski machine.

[0006] In one way, the rolling mileage of the ski carpet during the process of simulating skiing on the ski carpet of the ski machine can be counted and used as the cumulative sliding mileage of users simulating skiing on the ski carpet of the ski machine.

[0007] However, the inventor found that the cumulative sliding mileage of users simulating skiing on the ski carpet of the ski machine counted by the above method is inaccurate. Summary of the Invention

[0008] In order to improve the accuracy of counting the cumulative sliding mileage of users simulating skiing on the ski carpet of the ski machine, the present application discloses a method, device, electronic device, and storage medium for obtaining skiing mileage.

[0009] In a first aspect, the present application discloses a method for obtaining skiing mileage, the method including:

[0010] In the case where there are multiple turns during the process of a user simulating skiing on the ski carpet of the ski machine, for any two adjacent turns, obtain the rolling mileage of the ski carpet between the two turns;

[0011] Obtain a first moving distance of the user on the ski carpet between the two turns in a direction parallel to the rolling direction of the ski carpet and a second moving distance in a direction perpendicular to the rolling direction of the ski carpet;

[0012] Obtain the actual sliding distance of the user on the ski carpet between the two turns according to the rolling distance, the first moving distance, and the second moving distance;

[0013] Obtain the cumulative sliding distance of the user on the ski carpet during the simulated skiing according to the actual sliding distance of the user on the ski carpet between every two adjacent turns.

[0014] In an optional implementation manner, the obtaining of the rolling distance of the ski carpet between the two turns includes:

[0015] Obtain the time interval between the turning moments of the user during each of the two turns;

[0016] Obtain the rolling speed of the ski carpet between the two turns;

[0017] Obtain the rolling distance according to the time interval and the rolling speed.

[0018] In an optional implementation manner, the obtaining of the first moving distance of the user on the ski carpet between the two turns in a direction parallel to the rolling direction of the ski carpet and the second moving distance in a direction perpendicular to the rolling direction of the ski carpet includes:

[0019] Obtain a first image of the user captured by a camera above the ski machine during the previous turn of the two turns. The first image includes the ski carpet and the user on the ski carpet; identify the first position of the user on the ski carpet during the previous turn according to the first image;

[0020] Obtain a second image of the user captured by the camera during the latter turn of the two turns. The second image includes the ski carpet and the user on the ski carpet; identify the second position of the user on the ski carpet during the latter turn according to the second image;

[0021] Obtain the first moving distance and the second moving distance according to the first position and the second position.

[0022] In an alternative implementation, obtaining the actual sliding distance of the user on the ski carpet between the two turns according to the rolling distance, the first moving distance, and the second moving distance includes:

[0023] Calculating the square of the first sum value between the rolling distance and the first moving distance, and calculating the square of the second moving distance;

[0024] Calculating a second sum value of the square of the first sum value and the square of the second moving distance;

[0025] Calculating the square root of the second sum value and using it as the actual sliding distance.

[0026] In a second aspect, the present application discloses a device for obtaining ski mileage, the device includes:

[0027] A first obtaining module, configured to, when there are multiple turns during the process of a user simulating skiing on the ski carpet of a ski machine, for any two adjacent turns, obtain the rolling distance of the ski carpet between the two turns;

[0028] A second obtaining module, configured to obtain a first moving distance of the user on the ski carpet between the two turns in a direction parallel to the rolling direction of the ski carpet and a second moving distance in a direction perpendicular to the rolling direction of the ski carpet;

[0029] A third obtaining module, configured to obtain the actual sliding distance of the user on the ski carpet between the two turns according to the rolling distance, the first moving distance, and the second moving distance;

[0030] A fourth obtaining module, configured to obtain the cumulative sliding distance of the user on the ski carpet during the process of simulating skiing according to the actual sliding distance of the user on the ski carpet between every two adjacent turns.

[0031] In an alternative implementation, the first obtaining module includes:

[0032] A first obtaining unit, configured to obtain the time interval between the turning moments of the user during each of the two turns;

[0033] A second obtaining unit, configured to obtain the rolling speed of the ski carpet between the two turns;

[0034] A third obtaining unit, configured to obtain the rolling distance according to the time interval and the rolling speed.

[0035] In an alternative implementation, the second obtaining module includes:

[0036] A fourth acquisition unit, configured to acquire a first image of the user during the previous turn of the two turns, which is captured by a camera located above the ski machine, where the first image includes the ski blanket and the user located on the ski blanket; a first recognition unit, configured to recognize a first position of the user on the ski blanket during the previous turn according to the first image;

[0037] A fifth acquisition unit, configured to acquire a second image of the user during the subsequent turn of the two turns, which is captured by the camera, where the second image includes the ski blanket and the user located on the ski blanket; a second recognition unit, configured to recognize a second position of the user on the ski blanket during the subsequent turn according to the second image;

[0038] A sixth acquisition unit, configured to acquire the first movement mileage and the second movement mileage according to the first position and the second position.

[0039] In an optional implementation manner, the third acquisition module includes:

[0040] A first calculation unit, configured to calculate the square of the first sum value between the rolling mileage and the first movement mileage, and calculate the square of the second movement mileage;

[0041] A second calculation unit, configured to calculate a second sum value of the square of the first sum value and the square of the second movement mileage;

[0042] A third calculation unit, configured to calculate the square root of the second sum value and use it as the actual sliding mileage.

[0043] In a third aspect, the present application discloses an electronic device, where the electronic device includes:

[0044] A processor;

[0045] A memory for storing instructions executable by the processor;

[0046] Wherein, the processor is configured to execute the method for acquiring the skiing mileage as described in the first aspect.

[0047] In a fourth aspect, the present application discloses a non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the method for acquiring the skiing mileage as described in the first aspect.

[0048] In a fifth aspect, the present application discloses a computer program product, when the instructions in the computer program product are executed by a processor of an electronic device, enabling the electronic device to execute the method for acquiring the skiing mileage as described in the first aspect.

[0049] The technical solution provided by this application may include the following beneficial effects:

[0050] In this application, when the user simulates skiing on the ski blanket of a ski machine and there are multiple turns, for any two adjacent turns, the rolling mileage of the ski blanket between these two turns is obtained. The first moving mileage of the user on the ski blanket in the direction parallel to the rolling direction of the ski blanket and the second moving mileage in the direction perpendicular to the rolling direction of the ski blanket between the two turns are obtained. The actual sliding mileage of the user on the ski blanket between the two turns is obtained according to the rolling mileage, the first moving mileage, and the second moving mileage. The cumulative sliding mileage of the user on the ski blanket during the simulated skiing process is obtained according to the actual sliding mileage of the user on the ski blanket between each two adjacent turns. Through this application, the accuracy of the cumulative sliding mileage of the user on the ski blanket during the simulated skiing process can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 is a flowchart of the steps of a method for obtaining skiing mileage in this application.

[0052] Figure 2 is a block diagram of the structure of a device for obtaining skiing mileage in this application.

[0053] Figure 3 is a block diagram of an electronic device in this application.

[0054] Figure 4 is a block diagram of an electronic device in this application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0055] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0056] The inventor found that during the process of the user's model sliding on the ski blanket of a ski machine, the absolute position of the user on the ski blanket is not always unchanged, but often changes. For example, when the user moves back and forth left and right on the ski blanket. In this case, relative to the ski blanket, the user not only slides in the direction parallel to the rolling direction of the ski blanket, but also slides in the direction perpendicular to the rolling direction of the ski blanket. Thus, the sliding mileage of the user simulating skiing on the ski blanket of the ski machine is greater than the rolling mileage of the ski blanket.

[0057] Therefore, in order to improve the accuracy of the cumulative sliding distance simulated by the user on the ski blanket of the ski machine, referring to Figure 1 , a step flowchart of a method for obtaining ski mileage according to the present application is shown. This method is applied to an electronic device, and the method may specifically include the following steps:

[0058] In step S101, when there are multiple turns during the process of the user simulating skiing on the ski blanket of the ski machine, for any two adjacent turns, obtain the rolling distance of the ski blanket between the two turns.

[0059] In the present application, when there are multiple turns during the process of the user simulating skiing on the ski blanket of the ski machine, each turn among the multiple turns has an order. For example, the first turn, the second turn, the third turn.... and the Nth turn, etc.

[0060] Among the multiple turns, the first turn is adjacent to the second turn, the second turn is adjacent to the third turn...... and the (N - 1)th turn is adjacent to the Nth turn.

[0061] After the user turns on the ski blanket each time, there may be different time intervals before the user makes the next turn on the ski blanket.

[0062] Or rather, the time of each turn is different, and the time of the turn with a later order is earlier than the time of the turn with a previous order. There is a time interval between two adjacent turn times, and each time interval may be different.

[0063] Therefore, in order to accurately determine the accuracy of the cumulative sliding distance of the user on the ski blanket during the simulated skiing process, in the present application, the process of the user simulating skiing on the ski blanket between any two adjacent turns can be regarded as a simulated skiing cycle. The duration of different simulated skiing cycles may be different, so that the actual sliding distance of the user on the ski blanket may be different in different simulated skiing cycles.

[0064] Therefore, when obtaining the cumulative sliding distance of the user on the ski blanket during the simulated skiing process, the actual sliding distance of the user on the ski blanket in different simulated skiing cycles can be obtained, and the cumulative sliding distance of the user on the ski blanket during the simulated skiing process can be obtained according to the actual sliding distance of the user on the ski blanket in different simulated skiing cycles.

[0065] Among them, in the present application, this step can be implemented through the following process, including:

[0066] 1011. Obtain the time interval between the turning times of the user at each of the two turns.

[0067] In this application, when a user simulates skiing on the ski blanket of a ski machine, the user needs to wear ski boards, with one ski board on each foot. A pressure sensor is provided under each ski board, and the pressure sensor can sense the vertically downward pressure.

[0068] During the process of the user simulating skiing on the ski blanket, if the user needs to turn left when sliding to the right, the user needs to control the orientation of the ski board to turn left. At this time, the user's left foot will exert pressure on the ski blanket. In this way, the pressure sensor provided on the ski board worn by the user's left foot will sense an increase in pressure, and it will be greater than a specific pressure value. While the user's right foot does not need to exert pressure on the ski blanket, so the pressure sensor provided on the ski board worn by the user's right foot will not sense an increase in pressure, and it will not be greater than a specific pressure value.

[0069] Moreover, when the pressure sensor provided on the ski board worn by the user's left foot senses pressure and is greater than a specific pressure value, the pressure sensor provided on the ski board worn by the user's left foot can send a signal to the terminal. After receiving this signal sent by the pressure sensor provided on the ski board worn by the user's left foot, the terminal can determine that the user has made a left turn on the ski board, and the user can use the reception time when receiving this signal as the turning time of this left turn.

[0070] In addition, during the process of the user simulating skiing on the ski blanket, if the user needs to turn right when sliding to the left, the user needs to control the orientation of the ski board to turn right. At this time, the user's right foot will exert pressure on the ski blanket. In this way, the pressure sensor provided on the ski board worn by the user's right foot will sense an increase in pressure, and it will be greater than a specific pressure value. While the user's left foot does not need to exert pressure on the ski blanket, so the pressure sensor provided on the ski board worn by the user's left foot will not sense an increase in pressure, and it will not be greater than a specific pressure value.

[0071] Moreover, when the pressure sensor provided on the ski board worn by the user's right foot senses pressure and is greater than a specific pressure value, the pressure sensor provided on the ski board worn by the user's right foot can send a signal to the terminal. After receiving this signal sent by the pressure sensor provided on the ski board worn by the user's right foot, the terminal can determine that the user has made a right turn on the ski board, and the user can use the reception time when receiving this signal as the turning time of this right turn.

[0072] In addition, the terminal can record each turning time in the order from earliest to latest.

[0073] Thus, when obtaining the time interval between the turning moments at each of the two turns, the order of each of the two turns among all the turns during the simulated skiing process can be obtained. For the order of each of the two turns, when recording the turning moments in the order from early to late, the corresponding turning moments are selected, and the time interval between the two selected turning moments is calculated.

[0074] 1012. Obtain the rolling speed of the ski carpet between the two turns.

[0075] The rolling speed of the ski carpet between the two turns can be obtained based on the rotational speed of the rollers of the ski machine.

[0076] Among them, in one embodiment, the rotational angular velocity of the rollers of the ski machine remains unchanged (constant) between the two turns. The terminal can obtain the rotational angular velocity of the rollers of the ski machine (the ski machine can communicate with the terminal and can send the rotational angular velocity of the rollers of the ski machine to the terminal in real time) and the diameter or radius of the rollers (the terminal can store the diameter or radius of the rollers of the ski machine in advance). Then, the rotational linear velocity of the surface of the rollers can be determined based on the rotational angular velocity of the rollers of the ski machine and the diameter or radius of the rollers. Since the rollers drive the ski carpet of the ski machine to roll, the rotational linear velocity of the surface of the rollers can be used as the rolling speed of the ski carpet.

[0077] Among them, in one embodiment, the rotational angular velocity of the rollers of the ski machine may change between the two turns. The terminal can obtain the rotational angular velocity of the rollers of the ski machine (the ski machine can communicate with the terminal and can send the rotational angular velocity of the rollers of the ski machine to the terminal in real time) and the diameter or radius of the rollers (the terminal can store the diameter or radius of the rollers of the ski machine in advance). Then, the average value between multiple different rotational angular velocities of the rollers of the ski machine can be calculated, and then the rotational linear velocity of the surface of the rollers can be determined based on the average value between multiple different rotational angular velocities of the rollers of the ski machine and the diameter or radius of the rollers. Since the rollers drive the ski carpet of the ski machine to roll, the rotational linear velocity of the surface of the rollers can be used as the rolling speed of the ski carpet.

[0078] 1013. Obtain the rolling mileage of the ski carpet between the two turns according to the time interval between the turning moments at each of the two turns and the rolling speed of the ski carpet between the two turns.

[0079] In this step, the product of the time interval between the turning moments at each of the two turns and the rolling speed of the ski carpet between the two turns can be calculated and used as the rolling mileage of the ski carpet between the two turns.

[0080] In step S102, obtain the first moving distance of the user on the ski carpet in the direction parallel to the rolling direction of the ski carpet and the second moving distance in the direction perpendicular to the rolling direction of the ski carpet between two turns.

[0081] In this application, this step can be implemented through the following process, including:

[0082] 1021. Obtain the first image of the user during the previous turn among two turns collected by a camera located above the ski machine. The first image includes the ski carpet and the user on the ski carpet; identify the first position of the user on the ski carpet during the previous turn according to the first image.

[0083] In this application, a camera is provided above the ski machine. The camera is used to capture an image including the ski machine. The ski machine includes a ski carpet and the user can be located on the ski carpet. Therefore, the image captured by the camera can include the ski carpet of the ski machine and the user on the ski carpet. The shooting direction of the camera can be perpendicular to the plane where the ski carpet is located.

[0084] The position and shooting direction of the camera can remain unchanged, the position of the ski machine remains unchanged, and the position of the ski carpet remains unchanged. Therefore, the size of the ski carpet in the image captured by the camera is fixed. The actual length and actual width of the ski carpet (the ski carpet can be rectangular) can be stored in the terminal in advance. In addition, the terminal can control the camera to capture an image including the ski carpet, obtain the length and width of the ski carpet in the image, and according to the actual length and actual width of the ski carpet and the length and width of the ski carpet in the image, the size ratio between the size of the real ski carpet and the size of the ski carpet in the image can be determined.

[0085] Since the shooting direction of the camera can be perpendicular to the plane where the ski carpet is located, there is an intersection point between the straight line where the shooting direction of the camera is located and the plane where the ski carpet is located. The position of this intersection point on the ski carpet can be set in the terminal in advance, and the distance between the camera and this intersection point can also be set in the terminal.

[0086] The first image can have a coordinate system. The origin of the coordinate system can be the lower left corner of the rectangular ski carpet in the first image, etc. The first image includes the ski carpet and the user on the ski carpet. The position coordinates of the user in the first image can be parsed, so that the two-dimensional coordinates of the user in the first image in the coordinate system can be determined. Then, according to the two-dimensional coordinates of the user in the coordinate system in the first image and the above calculated size ratio, the position coordinates of the user on the real ski carpet (there is also a coordinate system on the real ski carpet, and the origin of the coordinate system can also be the lower left corner of the ski carpet, etc.) can be determined and used as the first position of the user on the ski carpet during the previous turn.

[0087] 1022. Obtain a second image of the user during the second turn among the two turns captured by the camera. The second image includes the ski carpet and the user on the ski carpet. Identify the second position of the user on the ski carpet during the second turn according to the second image.

[0088] The second image may have a coordinate system, and the origin of the coordinate system may be the lower left corner of the rectangular ski carpet in the second image, etc. The second image includes the ski carpet and the user on the ski carpet. The position coordinates of the user in the second image can be parsed, so that the two-dimensional coordinates of the user in the second image in the coordinate system can be determined. Then, according to the two-dimensional coordinates of the user in the coordinate system in the second image and the size ratio calculated above, the position coordinates of the user on the real ski carpet (the real ski carpet also has a coordinate system, and the origin of the coordinate system can also be the lower left corner of the ski carpet, etc.) can be determined and used as the second position of the user on the ski carpet during the second turn.

[0089] 1023. Obtain the first moving distance parallel to the rolling direction of the ski carpet and the second moving distance perpendicular to the rolling direction of the ski carpet of the user on the ski carpet during each of the two turns according to the first position and the second position on the ski carpet.

[0090] The first position is the two-dimensional coordinates in the coordinate system of the ski carpet, and the second position is the two-dimensional coordinates in the coordinate system of the ski carpet.

[0091] The coordinate system of the ski carpet has two coordinate axes, one coordinate axis is parallel to the rolling direction of the ski carpet, and one coordinate axis is perpendicular to the rolling direction of the ski carpet.

[0092] The absolute value of the difference between the coordinate corresponding to the coordinate axis parallel to the rolling direction of the ski carpet in the first position and the coordinate corresponding to the coordinate axis parallel to the rolling direction of the ski carpet in the second position can be calculated, which is the first moving distance parallel to the rolling direction of the ski carpet.

[0093] The absolute value of the difference between the coordinate corresponding to the coordinate axis perpendicular to the rolling direction of the ski carpet in the first position and the coordinate corresponding to the coordinate axis perpendicular to the rolling direction of the ski carpet in the second position can be calculated, which is the second moving distance perpendicular to the rolling direction of the ski carpet.

[0094] In step S103, obtain the actual sliding distance of the user on the ski carpet between the two turns according to the rolling distance, the first moving distance, and the second moving distance.

[0095] In this application, between these two turns, the ski carpet rolls a rolling distance, and the user moves a first moving distance in the direction parallel to the rolling direction of the ski carpet (that is, the absolute position of the user changes). Thus, it is equivalent to the user moving a total of the sum of the rolling distance and the first moving distance in the direction parallel to the rolling direction of the ski carpet.

[0096] And between these two turns, the user moves a second moving distance in the direction perpendicular to the rolling direction of the ski carpet.

[0097] Therefore, when calculating the actual sliding distance of the user on the ski carpet between these two turns, the square of the first sum value between the rolling distance and the first moving distance can be calculated, and the square of the second moving distance can be calculated. Then, the second sum value of the square of the first sum value and the square of the second moving distance is calculated, and the square root of the second sum value is calculated and used as the actual sliding distance.

[0098] In step S104, the cumulative sliding distance of the user on the ski carpet during the simulated skiing is obtained according to the actual sliding distance of the user on the ski carpet between every two adjacent turns.

[0099] By the method of steps S101 to S103, the actual sliding distances of the user on the ski carpet between other two adjacent turns can be calculated respectively. Then, the actual sliding distances of the user on the ski carpet between each two adjacent turns can be summed up to obtain the cumulative sliding distance of the user on the ski carpet during the simulated skiing.

[0100] In this application, when there are multiple turns during the process of the user simulating skiing on the ski carpet of the ski machine, for any two adjacent turns, the rolling distance of the ski carpet between these two turns is obtained. The first moving distance in the direction parallel to the rolling direction of the ski carpet and the second moving distance in the direction perpendicular to the rolling direction of the ski carpet of the user between the two turns are obtained. The actual sliding distance of the user on the ski carpet between these two turns is obtained according to the rolling distance, the first moving distance, and the second moving distance. The cumulative sliding distance of the user on the ski carpet during the simulated skiing is obtained according to the actual sliding distance of the user on the ski carpet between every two adjacent turns. Through this application, the accuracy of the cumulative sliding distance of the user on the ski carpet during the simulated skiing can be improved.

[0101] It should be noted that for method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions involved are not necessarily essential to the present application.

[0102] Referring to Figure 2 , a structural block diagram of an apparatus for obtaining skiing mileage according to the present application is shown, which is applied to a client. The apparatus may specifically include the following modules:

[0103] The first acquisition module 11 is configured to, when there are multiple turns during the process of a user simulating skiing on a skiing blanket of a ski machine, for any two adjacent turns, acquire the rolling mileage of the skiing blanket between the two turns;

[0104] The second acquisition module 12 is configured to acquire a first moving mileage of the user on the skiing blanket in a direction parallel to the rolling direction of the skiing blanket and a second moving mileage in a direction perpendicular to the rolling direction of the skiing blanket between the two turns;

[0105] The third acquisition module 13 is configured to acquire the actual sliding mileage of the user on the skiing blanket between the two turns according to the rolling mileage, the first moving mileage, and the second moving mileage;

[0106] The fourth acquisition module 14 is configured to acquire the cumulative sliding mileage of the user on the skiing blanket during the process of the simulated skiing according to the actual sliding mileage of the user on the skiing blanket between every two adjacent turns.

[0107] In an optional implementation manner, the first acquisition module includes:

[0108] The first acquisition unit is configured to acquire the time interval between the turning moments of the user during each of the two turns;

[0109] The second acquisition unit is configured to acquire the rolling speed of the skiing blanket between the two turns;

[0110] The third acquisition unit is configured to acquire the rolling mileage according to the time interval and the rolling speed.

[0111] In an optional implementation manner, the second acquisition module includes:

[0112] A fourth acquisition unit, configured to acquire a first image of the user during the previous turn of the two turns, which is captured by a camera located above the ski machine, where the first image includes the ski blanket and the user located on the ski blanket; a first recognition unit, configured to recognize a first position of the user on the ski blanket during the previous turn according to the first image;

[0113] A fifth acquisition unit, configured to acquire a second image of the user during the subsequent turn of the two turns, which is captured by the camera, where the second image includes the ski blanket and the user located on the ski blanket; a second recognition unit, configured to recognize a second position of the user on the ski blanket during the subsequent turn according to the second image;

[0114] A sixth acquisition unit, configured to acquire the first moving mileage and the second moving mileage according to the first position and the second position.

[0115] In an optional implementation manner, the third acquisition module includes:

[0116] A first calculation unit, configured to calculate the square of the first sum value between the rolling mileage and the first moving mileage, and calculate the square of the second moving mileage;

[0117] A second calculation unit, configured to calculate a second sum value of the square of the first sum value and the square of the second moving mileage;

[0118] A third calculation unit, configured to calculate the square root of the second sum value and use it as the actual sliding mileage.

[0119] In this application, when there are multiple turns during the process of a user simulating skiing on the ski blanket of a ski machine, for any two adjacent turns, the rolling mileage of the ski blanket between the two turns is acquired. The first moving mileage of the user on the ski blanket in the direction parallel to the rolling direction of the ski blanket and the second moving mileage in the direction perpendicular to the rolling direction of the ski blanket between the two turns are acquired. The actual sliding mileage of the user on the ski blanket between the two turns is acquired according to the rolling mileage, the first moving mileage, and the second moving mileage. The cumulative sliding mileage of the user on the ski blanket during the process of simulating skiing is acquired according to the actual sliding mileage of the user on the ski blanket between each two adjacent turns. Through this application, the accuracy of the cumulative sliding mileage of the user on the ski blanket during the process of simulating skiing can be improved.

[0120] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the related parts, reference can be made to the partial description of the method embodiment.

[0121] Optionally, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, it implements each process of the above-mentioned embodiment of the skiing mileage acquisition method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0122] An embodiment of the present invention further provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by the processor, it implements each process of the above-mentioned embodiment of the skiing mileage acquisition method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here. Among them, the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.

[0123] Figure 3 FIG. is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0124] Refer to Figure 3 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0125] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0126] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, images, videos, and the like. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0127] The power supply component 806 provides power to various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0128] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0129] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0130] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power-on button, and a lock button.

[0131] The sensor assembly 814 includes one or more sensors for providing an assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 can detect the on / off state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor assembly 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. The sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0132] The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 can access a wireless network based on communication standards, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0133] In an exemplary embodiment, the electronic device 800 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0134] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, is also provided. The above instructions can be executed by the processor 820 of the electronic device 800 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0135] Figure 4It is a block diagram of an electronic device 1900 shown in this application. For example, the electronic device 1900 can be provided as a server.

[0136] Referring to Figure 4 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by a memory 1932 for storing instructions executable by the processing component 1922, such as application programs. The application programs stored in the memory 1932 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0137] The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output (I / O) interface 1958. The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.

[0138] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without more limitations, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including that element.

[0139] Through the description of the above embodiments, those skilled in the art can clearly understand that the above method of the embodiment can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present invention.

[0140] The embodiments of the present invention have been described above in conjunction with the accompanying drawings. However, the present invention is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present invention, those of ordinary skill in the art can also make many forms without departing from the spirit and scope protected by the claims of the present invention, and all of them belong to the protection scope of the present invention.

[0141] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0142] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be repeated here.

[0143] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.

[0144] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0145] In addition, the functional units in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0146] When the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or a part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0147] As described above, the above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for obtaining skiing mileage, characterized in that, the method includes: In the case that there are multiple turns during the process of a user simulating skiing on the ski blanket of a skiing machine, for any two adjacent turns, obtaining the rolling mileage of the ski blanket between the two turns; Obtaining the first moving mileage of the user on the ski blanket in the direction parallel to the rolling direction of the ski blanket and the second moving mileage in the direction perpendicular to the rolling direction of the ski blanket between the two turns; Obtaining the actual sliding mileage of the user on the ski blanket between the two turns according to the rolling mileage, the first moving mileage and the second moving mileage; Obtaining the cumulative sliding mileage of the user on the ski blanket during the process of the simulated skiing according to the actual sliding mileage of the user on the ski blanket between each two adjacent turns; The obtaining of the first moving mileage of the user on the ski blanket in the direction parallel to the rolling direction of the ski blanket and the second moving mileage in the direction perpendicular to the rolling direction of the ski blanket between the two turns includes: Obtaining a first image of the user captured by a camera located above the skiing machine at the time of the previous turn of the two turns, the first image including the ski blanket and the user located on the ski blanket; identifying the first position of the user on the ski blanket at the time of the previous turn according to the first image; Obtaining a second image of the user captured by the camera at the time of the latter turn of the two turns, the second image including the ski blanket and the user located on the ski blanket; identifying the second position of the user on the ski blanket at the time of the latter turn according to the second image; Obtaining the first moving mileage and the second moving mileage according to the first position and the second position.

2. The method according to claim 1, characterized in that, the obtaining of the rolling mileage of the ski blanket between the two turns includes: Obtaining the time interval between the turning moments of the user at each of the two turns; Obtaining the rolling speed of the ski blanket between the two turns; Obtaining the rolling mileage according to the time interval and the rolling speed.

3. The method according to claim 1, characterized in that, the obtaining of the actual sliding mileage of the user on the ski blanket between the two turns according to the rolling mileage, the first moving mileage and the second moving mileage includes: Calculating the square of the first sum value between the rolling mileage and the first moving mileage, and calculating the square of the second moving mileage; Calculating the second sum value of the square of the first sum value and the square of the second moving mileage; Calculating the square root of the second sum value and taking it as the actual sliding mileage.

4. A device for obtaining skiing mileage, characterized in that, the device includes: The first acquisition module is configured to, when there are multiple turns during the process of a user simulating skiing on the ski blanket of a ski machine, for any two adjacent turns, acquire the rolling mileage of the ski blanket between the two turns; The second acquisition module is configured to acquire the first movement mileage of the user on the ski blanket in the direction parallel to the rolling direction of the ski blanket and the second movement mileage of the user on the ski blanket in the direction perpendicular to the rolling direction of the ski blanket between the two turns; The third acquisition module is configured to acquire the actual sliding mileage of the user on the ski blanket between the two turns according to the rolling mileage, the first movement mileage, and the second movement mileage; The fourth acquisition module is configured to acquire the cumulative sliding mileage of the user on the ski blanket during the process of the simulated skiing according to the actual sliding mileage of the user on the ski blanket between every two adjacent turns; The second acquisition module includes: The fourth acquisition unit is configured to acquire a first image of the user captured by a camera located above the ski machine during the previous turn of the two turns, where the first image includes the ski blanket and the user on the ski blanket; the first recognition unit is configured to recognize the first position of the user on the ski blanket during the previous turn according to the first image; The fifth acquisition unit is configured to acquire a second image of the user captured by the camera during the subsequent turn of the two turns, where the second image includes the ski blanket and the user on the ski blanket; the second recognition unit is configured to recognize the second position of the user on the ski blanket during the subsequent turn according to the second image; The sixth acquisition unit is configured to acquire the first movement mileage and the second movement mileage according to the first position and the second position.

5. The device according to claim 4, wherein, The first acquisition module includes: The first acquisition unit is configured to acquire the time interval between the turning moments of the user during each of the two turns; The second acquisition unit is configured to acquire the rolling speed of the ski blanket between the two turns; The third acquisition unit is configured to acquire the rolling mileage according to the time interval and the rolling speed.

6. The device according to claim 4, wherein, The third acquisition module includes: The first calculation unit is configured to calculate the square of the first sum value between the rolling mileage and the first movement mileage, and calculate the square of the second movement mileage; The second calculation unit is configured to calculate the second sum value of the square of the first sum value and the square of the second movement mileage; The third calculation unit is configured to calculate the square root of the second sum value and use it as the actual sliding mileage.

7. An electronic device, wherein, it includes: a processor, a memory, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, it implements the steps of the skiing mileage acquisition method according to any one of claims 1 to 3.

8. A computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for obtaining skiing mileage as described in any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Automobile speed measurement and control method and system

    CN104655872A

  • Photographing method and mobile terminal

    WO2020220973A1