Jump counting method and apparatus, electronic device, and storage medium

By automatically detecting the height relationship between the maximum height of the rope skipping object and the reference jump line, the efficiency and accuracy of rope skipping counting are achieved, and the problems of low counting efficiency and insufficient accuracy in the existing technology are solved.

WO2024216586A1PCT designated stage expired Publication Date: 2024-10-24CHEN DARIN +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/089527
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-20
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

The skipping rope counting method in the existing technology is inefficient and inaccurate. Manual counting is time-consuming and laborious. The special skipping rope shaft is costly and easy to wear and tear. Infrared counting is affected by the environment.

Method used

By detecting the object's jumping process, it automatically counts jumps based on the height relationship between the maximum height of the target part and the reference jump line, and uses cameras, infrared sensors or radars to determine the height relationship to improve counting efficiency and accuracy.

Benefits of technology

It realizes automated skipping rope counting, improves counting efficiency and accuracy, reduces manual intervention and equipment costs, and adapts to a variety of environmental conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023089527_24102024_PF_FP_ABST
    Figure CN2023089527_24102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of artificial intelligence, and discloses a jump counting method and apparatus, an electronic device, and a storage medium. The method comprises: in the process of jumping of a detection object, determining a height relationship between a maximum jump height of a target part of the detection object and the height of a reference jump line, wherein the height of the target part of the detection object when the detection object stands is lower than the height of the reference jump line; and performing jump counting on the detection object according to the height relationship. According to the present application, in the process of jumping of a detection object, jump counting is automatically performed on the detection object according to a height relationship between a maximum height of a target part of the detection object and the height of a reference jump line, thereby improving the efficiency of jump counting.
Need to check novelty before this filing date? Find Prior Art

Description

Jump counting method, device, electronic device and storage medium Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and more specifically, to a jump counting method, device, electronic device, and storage medium. Background Art

[0002] With the development of quality-oriented education, more and more sports are being incorporated into student assessments. Rope skipping has become an important sport for entertainment or competition in many settings. In the related art, most methods for counting rope skipping are manual. This is time-consuming and labor-intensive, and is easily influenced by subjective factors. Therefore, the related art methods for counting rope skipping are inefficient.

[0003] Summary of the Invention

[0004] In view of the above problems, the present application proposes a jump counting method, device, electronic device and storage medium, which can automatically count the jumps of the detection object according to the height relationship between the maximum height of the target part of the detection object and the reference jump line during the jumping process of the detection object, thereby improving the efficiency of jump counting.

[0005] In a first aspect, an embodiment of the present application provides a jump counting method, which includes: during a process in which a detection object jumps, determining a height relationship between a maximum height of a target part of the detection object when the detection object jumps and a height of a reference jump line, wherein a height of the target part of the detection object when the detection object stands is lower than a height of the reference jump line; and counting the jumps of the detection object according to the height relationship.

[0006] In a second aspect, embodiments of the present application provide a jump counting device, comprising: a height relationship determination module and a jump counting module. The height relationship determination module is configured to determine, during a jump of a detection object, a height relationship between a maximum height of a target portion of the detection object when the detection object jumps and a height of a reference jump line, wherein the height of the target portion of the detection object when the detection object is standing is lower than the height of the reference jump line; and the jump counting module is configured to count jumps of the detection object based on the height relationship.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is coupled to the processor, the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code can be called by a processor to execute the above method.

[0009] The jump counting method, device, electronic device and storage medium provided in the embodiments of the present application determine the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of a reference jump line during the detection object jumping, wherein the height of the target part of the detection object when the detection object is standing is lower than the height of the reference jump line; the jumps of the detection object are counted according to the height relationship, and then the jumps of the detection object are automatically counted according to the height relationship between the maximum height of the target part of the detection object and the reference jump line during the detection object jumping, thereby improving the efficiency of jump counting. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0011] FIG1 is a schematic diagram showing a flow chart of a jump counting method provided in an embodiment of the present application;

[0012] FIG2 is a schematic diagram showing the maximum height of a target portion of a detection object and the height of a reference jump line provided by an embodiment of the present application;

[0013] FIG3 is a schematic diagram showing a flow chart of a jump counting method provided in an embodiment of the present application;

[0014] FIG4 shows a schematic diagram of a target site provided by an embodiment of the present application;

[0015] FIG5 is a schematic diagram showing a height difference according to an embodiment of the present application;

[0016] FIG6 is a schematic diagram showing a height difference according to an embodiment of the present application;

[0017] FIG7 shows a schematic diagram of a hand gesture provided by an embodiment of the present application;

[0018] FIG8 is a schematic diagram showing a height relationship provided by an embodiment of the present application;

[0019] FIG9 is a schematic diagram showing a flow chart of a jump counting method provided in an embodiment of the present application;

[0020] FIG10 is a schematic diagram showing a flow chart of a jump counting method provided in an embodiment of the present application;

[0021] FIG11 is a schematic diagram of a video frame provided by an embodiment of the present application;

[0022] FIG12 is a schematic diagram of a video frame provided by an embodiment of the present application;

[0023] FIG13 is a schematic diagram of a video frame provided by an embodiment of the present application;

[0024] FIG14 shows a schematic diagram of a video frame provided by an embodiment of the present application;

[0025] FIG15 is a schematic diagram showing a video frame provided by an embodiment of the present application;

[0026] FIG16 is a schematic diagram showing a flow chart of a jump counting method provided in an embodiment of the present application;

[0027] FIG17 is a schematic diagram of a waiting-for-counting screen provided by an embodiment of the present application;

[0028] FIG18 is a schematic diagram showing a flow chart of a jump counting method provided in an embodiment of the present application;

[0029] FIG19 is a schematic diagram showing a reference jump line provided by an embodiment of the present application;

[0030] FIG20 shows a display screen provided by an embodiment of the present application;

[0031] FIG. 21 shows a block diagram of a jump counting device according to an embodiment of the present application.

[0032] FIG22 shows a block diagram of an electronic device for executing a jump counting method according to an embodiment of the present application;

[0033] FIG23 shows a storage unit for storing or carrying program codes for implementing the jump counting method according to an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0035] Rope skipping is an effective aerobic exercise that can burn fat, enhance physical fitness, improve hand-foot coordination, enhance body metabolism, and promote physical and mental health. In many occasions, rope skipping has become an important part of entertainment or competition.

[0036] In the related art, skipping rope counting methods typically use manual counting, dedicated skipping rope shaft counting, infrared counting, or audio-based counting. However, manual counting is time-consuming and labor-intensive, and is easily interfered with by external factors. Dedicated skipping rope shafts are expensive and prone to wear and tear, and require the physical skipping rope to be present during the skipping process. Infrared counting and audio counting are easily restricted by the environment. Therefore, the related art skipping rope counting methods suffer from low efficiency and accuracy.

[0037] To address the above-mentioned issues, the inventors, after extensive research, have discovered and proposed the jump counting method, device, electronic device, and storage medium provided in the embodiments of this application. These methods automatically count jumps of the object based on the height relationship between the maximum height of the target portion of the object and a reference jump line during the object's jumps, thereby improving jump counting efficiency. The specific jump counting method is described in detail in the subsequent embodiments.

[0038] Please refer to Figure 1, which shows a schematic flow chart of a jump counting method provided by an embodiment of the present application. This jump counting method automatically counts jumps of the detection object according to the height relationship between the maximum height of the target part of the detection object and the reference jump line during the detection object's jump process, thereby improving the efficiency and accuracy of jump counting. In a specific embodiment, this jump counting method can be applied to a jump counting device 200 as shown in Figure 21 and an electronic device 100 (Figure 22) equipped with the jump counting device 200. The specific process of this embodiment will be described below using electronic devices as an example. Of course, it is understandable that the electronic devices used in this embodiment can include smart phones, tablet computers, robots, etc., which are not limited here. The process shown in Figure 1 will be elaborated in detail below. The jump counting method can specifically include the following steps:

[0039] Step S110: During the process of the detection object jumping, determine the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of a reference jumping line, wherein the height of the target part of the detection object when the detection object stands is lower than the height of the reference jumping line.

[0040] In this embodiment, the electronic device can determine, during a jump of the detection object, a height relationship between a maximum height of the target portion of the detection object when the detection object jumps and a height of a reference jump line, wherein the height of the target portion of the detection object when the detection object is standing is lower than the height of the reference jump line.

[0041] For example, please refer to Figure 2, which shows a schematic diagram of the maximum height of the target part of a detection object and the height of a reference jump line provided by an embodiment of the present application. As shown in Figure 2, A represents the height of the reference jump line, and B represents the height of the target part when the detection object is standing. The reference jump line can be a virtual line, and the virtual line can be a visible form or an invisible form, which is not limited here. For example, the virtual line can be drawn in the area faced by the detection object during the jump process of the detection object, and displayed in a visible form. The reference jump line can also be a solid line, which can be displayed during the jump process of the detection object.

[0042] The process of the detection object jumping can be understood as the process of the detection object leaving the ground, and the case where the detection object stands can be understood as the case where the detection object does not leave the ground.

[0043] Among them, the detection object may include human bodies, animals, robots and other living beings or machines that can jump; the target part of the detection object may include the upper edge position, eyes, nose, mouth, etc. of the face of the detection object; among them, the detection object for the electronic device to perform jump counting may include one or more detection objects, which are not limited here.

[0044] As an implementable manner, the electronic device may include a camera. Further, the electronic device may use the camera to collect a video stream during the jumping process of the detection object; further, the electronic device may determine, based on the video stream, the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line.

[0045] As another feasible manner, the electronic device may include an infrared sensor. Further, the electronic device may obtain an infrared signal of the target part of the detection object through the infrared sensor during the jumping of the detection object; further, the electronic device may determine the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line based on the infrared signal.

[0046] As another feasible manner, the electronic device may include a radar. Further, the electronic device may obtain a radar signal corresponding to the height of the target part of the detection object during the jumping of the detection object; further, the electronic device may determine, based on the radar signal, the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of a reference jumping line.

[0047] Among them, the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line may include: the maximum height is the same as the height of the reference jump line, the maximum height is higher than the height of the reference jump line, or the maximum height is lower than the height of the reference jump line.

[0048] As an operative approach, an electronic device may receive a first counting instruction sent by a user, wherein the first counting instruction may include a first jump counting duration. Accordingly, the electronic device may parse the first counting instruction to determine the need for jump counting and the first jump counting duration. Then, during the process of the detection subject jumping, the electronic device may determine the height relationship between the maximum height of the target portion of the detection subject during the first jump counting duration and the height of a reference jump line when the detection subject jumps. The first jump counting duration may be 30 seconds, 1 minute, 2 minutes, etc., without limitation herein.

[0049] As another practicable approach, the first jump count duration is fixed. Based on this, the electronic device may pre-store the first jump count duration. Then, when it is necessary to count jumps of the detection object through the electronic device, the electronic device may receive a second counting instruction sent by the user, wherein the second counting instruction does not carry the first jump count duration. Accordingly, the electronic device may parse the second counting instruction to determine that jump counting is required, and then, during the detection object's jump, determine the height relationship between the maximum height of the target part of the detection object during the first jump count duration when the detection object jumps and the height of the reference jump line.

[0050] In some implementations, the electronic device may be in a dormant state in an initial state, and may be started when jump counting is required.

[0051] Step S120: Counting jumps of the detection object according to the height relationship.

[0052] In this embodiment, when determining the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line, the electronic device can count the jumps of the detection object according to the height relationship.

[0053] The electronic device may count the detection object by increasing the jump count, that is, accumulating the jump number of the detection object; or may keep the jump count unchanged, that is, keep the jump number of the detection object unchanged.

[0054] Optionally, the electronic device counts the jumps of the detection object according to the height relationship. If it is determined based on the height relationship that the maximum height of the target part of the detection object when the detection object jumps is higher than or equal to the height of the reference jump line, the jump count of the detection object is increased based on the jump of the detection object, that is, the jump count of the detection object is accumulated.

[0055] Optionally, the electronic device may count the jumps of the detection object according to the height relationship. If it is determined based on the height relationship that the maximum height of the target part of the detection object when the detection object jumps is lower than the height of the reference jump line, the jump count of the detection object is kept unchanged based on the jump of the detection object, that is, the number of jumps of the detection object is kept unchanged. It can also be understood that the electronic device does not increase the jump count for this jump.

[0056] In some embodiments, the electronic device counts the jumps of the detection object by determining the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line during the rising phase of the detection object's jump, and increasing or keeping the jump count of the detection object's jump unchanged based on the height relationship; the height relationship is not determined during the falling phase of the detection object's jump, and the jump count of the detection object's jump process is completed when it is determined that the detection object has returned to the ground, so as to reduce the power consumption of the electronic device.

[0057] It can be understood that the electronic device of this embodiment can automatically count the jumps of the detection object during the jumping process of the detection object based on the relationship between the maximum height of the target part of the detection object and the height of the reference jump line, thereby improving the efficiency of jump counting and improving the user experience; in addition, the method of counting the jumps of the detection object is determined according to the height relationship (increasing the jump count or keeping the jump count unchanged), thereby improving the objectivity and accuracy of the jump counting.

[0058] An embodiment of the present application provides a jump counting method, which determines, during a jump of the detection object, a height relationship between a maximum height of a target part of the detection object when the detection object jumps and a height of a reference jump line, wherein the height of the target part of the detection object when the detection object is standing is lower than the height of the reference jump line; and counts the jumps of the detection object based on the height relationship. Furthermore, during the jump of the detection object, the jump counting efficiency is improved by automatically counting the jumps of the detection object based on the height relationship between the maximum height of the target part of the detection object and the reference jump line.

[0059] Please refer to Figure 3, which shows a schematic flow chart of a jump counting method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The flow chart shown in Figure 3 will be described in detail below. The jump counting method may specifically include the following steps:

[0060] Step S210: During the process of the detection object jumping, determine the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line, wherein the height of the target part of the detection object when the detection object stands is lower than the height of the reference jumping line.

[0061] In some embodiments, during the process of the detection object jumping, the electronic device determines the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line. This can be by performing face detection on the detection object during the process of the detection object jumping, obtaining the face position of the detection object, determining the upper edge position of the face position as the target part of the detection object, and determining the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line.

[0062] Optionally, the electronic device may include a camera. Furthermore, during the process of the detection object jumping, the electronic device may capture an image including the detection object through the camera. The electronic device may also obtain an image including the detection object during the process of the detection object jumping from an associated cloud or electronic device through wireless communication technology (such as Bluetooth, WiFi, Zigbee, etc.); the electronic device may also obtain an image including the detection object during the process of the detection object jumping from an associated electronic device through a serial communication interface (such as a serial peripheral interface). Furthermore, after the electronic device obtains the image including the detection object, it may perform face detection on the image to obtain the face position of the detection object.

[0063] As an implementable method, during the process of the detection object jumping, the electronic device performs face detection on the detection object. The face position of the detection object can be obtained by capturing a target image including the detection object through a camera during the process of the detection object jumping, inputting the target image into a face detection model, and obtaining the face position of the detection object in the target image output by the face detection model.

[0064] Among them, the face detection model can include the Haar feature model Haar, the directional gradient histogram feature model Hog, the convolutional neural network CNN, the single-step multi-frame target detection model SSD, the multi-task convolutional neural network MTCNN, etc., which are not limited here.

[0065] Exemplarily, after the electronic device obtains a target image including a detection object captured by a camera, it can use a cross-platform computer vision processing open source software library OpenCV in combination with a face detection model (such as a Haarcascade feature model) to perform face detection on the target image, and obtain the face position of the detection object in the target image output by the face detection model. After the target image is input into the Haarcascade feature model, the Haarcascade feature model can divide the target image into feature areas; wherein, the image features can include edge features, linear features, center features, and diagonal features of the image. Furthermore, the Haarcascade feature model can compare the divided feature areas, such as comparing the eyes with the cheeks, the lips with the cheeks, etc., and then determine the face position of the detection object in the target image.

[0066] Optionally, after the electronic device determines the face position of the detection object, it can determine the upper edge position of the face position as the target part of the detection object; the electronic device can also determine the eyes in the face position as the target part of the detection object, and the electronic device can also determine the lips in the face position as the target part of the detection object, which is not limited here.

[0067] For example, please refer to Figure 4, which shows a schematic diagram of a target part provided by one embodiment of the present application. The electronic device can use OpenCV combined with a Haarcascade feature model to perform face detection on a target image, obtaining a detection frame corresponding to the face position of the detection object included in the target image (as shown in Figure 4, C). Furthermore, the electronic device can determine the upper edge of the detection frame as the target part of the detection object (as shown in Figure 4, D).

[0068] As an practicable approach, after the electronic device determines the position of the target portion of the detection object in the target image, it can determine the relationship between the maximum height of the target portion of the detection object in the target image and the height of the reference jump line. For example, the electronic device can establish a plane rectangular coordinate system based on the target image and determine the relationship between the maximum height of the target portion of the detection object in the target image and the height of the reference jump line based on the relationship between the vertical coordinate of the target portion of the detection object in the plane rectangular coordinate system and the vertical coordinate of the reference jump line.

[0069] Step S220: If it is determined based on the height relationship that the maximum height is higher than or equal to the height of the reference jump line, then the jump count of the detection object is increased.

[0070] In this embodiment, after the electronic device determines the height relationship between the maximum height of the target portion of the detection object when the detection object jumps and the height of the reference jump line, if the maximum height is determined to be greater than or equal to the height of the reference jump line based on the height relationship, the electronic device may increase the jump count of the detection object. The electronic device may increase the jump count of the detection object based on a preset increment number.

[0071] Among them, the reference jump line can be understood as the jump qualification line, or the jump count increase standard line. When it is determined based on the height relationship that the maximum height of the target part of the detection object when the detection object jumps is higher than or equal to the height of the reference jump line, it can be determined that the jumping process of the detection object is a qualified jump, and the jump count of the detection object is increased.

[0072] As an practicable approach, if the maximum height is determined to be greater than or equal to the height of the reference jump line based on the height relationship, then increasing the jump count of the detection object may be: if the electronic device determines, based on the height relationship, that the maximum height is greater than or equal to the height of the reference jump line, then further determining the height difference between the maximum height and the height of the reference jump line, and determining a first count value based on the height difference. The first count value is greater than or equal to 1. Furthermore, the electronic device may also increase the jump count of the detection object based on the first count value.

[0073] Optionally, the electronic device can determine the first count value based on the height difference in combination with the relationship between the preset height difference and the first count value. Wherein, the relationship between the preset height difference and the first count value can include a one-to-one mapping relationship table between the preset height difference and the first count value, or it can be a calculation formula for the preset height difference and the first count value (such as, the result of rounding the quotient of the height difference divided by the first multiple threshold as the first count value), or it can be inputting the height difference into a preset first count value determination model (such as, a convolutional neural network, a recurrent neural network, etc.), and obtaining the result of the output of the preset first count value determination model as the first count value. In this embodiment, the method of determining the first count value based on the height difference is not limited here.

[0074] Exemplarily, the electronic device may be pre-set with a relationship between the height difference and the first count value, such as a first count value of 1 corresponding to a height difference of 5 cm, and a first count value of 2 corresponding to a height difference of 10 cm. For example, please refer to FIG5 , which shows a schematic diagram of the height difference provided by an embodiment of the present application. The electronic device can determine that the maximum height is higher than or equal to the height of the reference jump line based on the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line, and determine that the height difference between the maximum height and the height of the reference jump line is 5 cm. Further, the electronic device can determine that the first count value is 1 based on the height difference, and can increase the jump count of the detection object based on the first count value, that is, add 1 to the jump count of the detection object.

[0075] For example, please refer to Figure 6, which shows a schematic diagram of the height difference provided by an embodiment of the present application. In particular, the electronic device can determine that the maximum height is higher than or equal to the height of the reference jump line based on the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line, and determines that the height difference between the maximum height and the height of the reference jump line is 10 cm. Furthermore, the electronic device can determine a first count value of 2 based on the height difference, and can increase the jump count of the detection object based on the first count value, that is, add 2 to the jump count of the detection object.

[0076] It is understandable that, considering that the method of counting jumps of the detection object can be applied to the application of counting rope skipping of the detection object, and in the process of rope skipping of the detection object, there may be double shaking, single shaking, etc. Based on this, in this embodiment, the electronic device can determine the height difference between the maximum height and the height of the reference jump line when the maximum height is determined to be higher than or equal to the height of the reference jump line based on the height relationship, so as to determine a first count value based on the height difference, and increase the rope skipping count of the detection object based on the first count value, thereby improving the efficiency and accuracy of rope skipping counting and enhancing the user experience.

[0077] As another practicable embodiment, if the maximum height is determined to be greater than or equal to the height of the reference jump line based on the height relationship, then increasing the jump count of the detection object may be: if the electronic device determines that the maximum height is greater than or equal to the height of the reference jump line based on the height relationship, then further determining the duration of the maximum height being greater than or equal to the height of the reference jump line, and determining a second count value based on the duration. The second count value is greater than or equal to 1. Furthermore, the electronic device may increase the jump count of the detection object based on the second count value.

[0078] Optionally, the electronic device can determine the second count value based on the preset duration in combination with the relationship between the preset duration and the second count value. The relationship between the preset duration and the second count value can include a one-to-one mapping relationship table between the preset duration and the second count value, or a calculation formula for the preset duration and the second count value (such as rounding the quotient of the duration divided by the second multiple threshold as the second count value), or input the duration into a preset second count value determination model (such as a convolutional neural network, a recurrent neural network, etc.), and obtain the result output by the preset second count value determination model as the first count value. In this embodiment, the method of determining the second count value based on the duration is not limited here.

[0079] Exemplarily, the electronic device may pre-set a relationship between the duration and the second count value, for example, the second count value corresponding to a duration less than 2 seconds is 1, and the second count value corresponding to a duration greater than or equal to 2 seconds is 2.

[0080] It is understandable that, considering that the method of counting jumps of the detection object can be applied to the application of counting rope skipping of the detection object, and that during the process of rope skipping of the detection object, there may be double shaking, single shaking, etc. Based on this, in this embodiment, the electronic device can determine the duration of the maximum height being higher than or equal to the height of the reference jump line based on the height relationship, determine the second count value based on the duration, and increase the rope skipping count of the detection object based on the second count value, thereby improving the efficiency and accuracy of rope skipping counting and enhancing the user experience.

[0081] As another practicable manner, if the maximum height is determined to be greater than or equal to the height of the reference jump line based on the height relationship, then increasing the jump count of the detection object may be: if the maximum height is determined to be greater than or equal to the height of the reference jump line based on the height relationship, then further determining the number of hand rotations of the detection object and determining a third count value based on the number of hand rotations, wherein the third count value is greater than or equal to 1. Furthermore, the electronic device may increase the jump count of the detection object based on the third count value.

[0082] Optionally, the electronic device may determine the third count value based on a preset relationship between the number of hand rotations and the third count value. The preset relationship between the number of hand rotations and the third count value may include a one-to-one mapping relationship table between the number of hand rotations and the third count value, or may be such that the number of hand rotations is equal to the third count value. In this embodiment, the method for determining the third count value based on the number of hand rotations is not limited herein.

[0083] For example, please refer to FIG7 , which shows a schematic diagram of the hand posture provided in an embodiment of the present application. Among them, the electronic device can be pre-set with a relationship that the number of hand rotations is equal to the third count value. Further, if the electronic device determines based on the height relationship that the height between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line is higher than or equal to the height of the reference jump line, the hand posture of the detection object during the jump can be obtained, and the number of hand rotations of the detection object can be determined based on the hand posture. For example, the electronic device determines that the number of hand rotations of the detection object is 1 circle, and further, the electronic device can determine that the third count value is 1; for another example, the electronic device determines that the number of hand rotations of the detection object is 2 circles, and further, the electronic device can determine that the third count value is 2.

[0084] Among them, the way in which the electronic device determines the number of hand rotations of the detection object based on the hand posture can be to obtain a video stream of the detection object during the jumping process through a camera. Furthermore, the electronic device can determine the hand posture of the detection object based on the video stream, and determine the number of hand rotations of the detection object during the jumping process based on the hand posture.

[0085] It is understandable that the method for counting jumps of a detection subject can be applied to the application of counting rope skipping of a detection subject, and that during the rope skipping process of the detection subject, there may be double swings, single swings, etc. Based on this, in this embodiment, the electronic device can determine the number of hand rotations of the detection subject when the maximum height is determined to be higher than or equal to the height of the reference jump line based on the height relationship, determine a third count value based on the number of hand rotations, and increase the rope skipping count of the detection subject based on the third count value, thereby improving the efficiency and accuracy of rope skipping counting and enhancing the user experience.

[0086] Step S230: If it is determined based on the height relationship that the maximum height is lower than the height of the reference jump line, the jump count of the detection object is kept unchanged.

[0087] In some embodiments, if the electronic device determines that the maximum height of the target part of the detection object when the detection object jumps is lower than the height of the reference jump line based on the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line during the detection object jumping process, the jump count of the detection object remains unchanged.

[0088] For example, please refer to Figure 8, which shows a schematic diagram of the height relationship provided by one embodiment of the present application. The maximum height of the target portion is shown as G in Figure 8, and the height of the reference jump line is shown as H in Figure 8. If the maximum height is lower than the height of the reference jump line, the electronic device may determine that the jump of the test object has failed, and the jump count of the test object remains unchanged.

[0089] The jump counting method provided in one embodiment of the present application, compared with the jump counting method shown in Figure 1, can also increase the jump count of the detection object if it is determined based on the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line that the maximum height is higher than or equal to the height of the reference jump line, or keep the jump count of the detection object unchanged if it is determined based on the height relationship that the maximum height is lower than the height of the reference jump line, thereby determining the method of jump counting for the detection object based on the height relationship (increasing the count or keeping the technology unchanged), improving the efficiency and accuracy of jump counting, and also improving the user experience.

[0090] Please refer to Figure 9, which shows a schematic flow chart of a jump counting method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The following will describe the flow chart shown in Figure 9 in detail. The jump counting method may specifically include the following steps:

[0091] Step S310: During the process of the detection object jumping, determine the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line, wherein the height of the target part of the detection object when the detection object stands is lower than the height of the reference jumping line.

[0092] For the detailed description of step S310 , please refer to the detailed description of step S110 above, which will not be repeated here.

[0093] Step S320: determining a counting state of the detection lock according to the height relationship, wherein the counting state of the detection lock includes an open state or a closed state.

[0094] In some embodiments, when counting the number of jumps of a test object based on the height relationship between the maximum height of the target portion of the test object when the test object jumps and the height of a reference jump line, the accuracy of the jump count may be reduced due to repeated jump counting of the test object during a single jump. In this embodiment, a detection lock can be introduced to determine the method for counting the jumps of the test object based on this height relationship, thereby improving the efficiency and accuracy of jump counting.

[0095] In this embodiment, the electronic device can determine the counting state of the detection lock based on the height relationship, wherein the counting state of the detection lock includes an open state or a closed state. Optionally, if the electronic device determines based on the height relationship that the maximum height changes from a height equal to the reference jump line to a height higher than the reference jump line, the counting state of the detection lock is adjusted from an open state to a closed state; if the electronic device determines based on the height relationship that the maximum height changes from a height equal to the reference jump line to a height lower than the reference jump line, the counting state of the detection lock is adjusted from a closed state to an open state.

[0096] That is, during the process of the detection object jumping, in the detection object jumping ascending stage, if the maximum height of the target part of the detection object changes from less than the height of the reference jump line to equal to the height of the reference jump line, the corresponding detection lock counting state is turned on; if the height relationship changes to be higher than the reference jump line, the corresponding detection lock counting state is adjusted from on to off. During the detection object jumping descending stage, if the maximum height of the target part of the detection object changes from being higher than the reference jump line to being equal to the height of the reference jump line, the corresponding detection lock counting state is turned off; if the height relationship changes to be lower than the reference jump line, the corresponding detection lock counting state is adjusted from off to on.

[0097] Step S330: If the counting state of the detection lock is the open state, increase the jump count of the detection object.

[0098] In this embodiment, the electronic device may increase the jump count of the detection object when the detection lock's counting state is open. Optionally, the electronic device may determine a method for counting the jumps of the detection object based on the height relationship between the maximum height of the target portion of the detection object when the detection object jumps and the height of the reference jump line, in combination with the detection lock's counting state. For example, if the detection lock's counting state is open, the jump count of the detection object is increased; if the detection lock's counting state is open and the maximum height of the target portion of the detection object when the detection object jumps is greater than or equal to the height between the reference jump lines, the jump count of the detection object is increased.

[0099] Step S340: If the counting state of the detection lock is the closed state, the jump count of the detection object is kept unchanged.

[0100] In this embodiment, the electronic device keeps the jump count of the detection object unchanged when the detection lock counting state is off. Exemplarily, if the detection lock counting state is off, the jump count of the detection object is kept unchanged.

[0101] It is understandable that the electronic device increases the jump count of the detection object when the detection lock is open. If the detection lock is closed, the electronic device does not increase the jump count of the detection object, thereby improving the accuracy of the jump count.

[0102] The jump counting method provided in one embodiment of the present application, compared with the jump counting method shown in Figure 1, can also determine the counting state of the detection lock based on the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line, wherein the counting state of the detection lock includes an open state or a closed state; if the counting state of the detection lock is an open state, the jump count of the detection object is increased; or if the counting state of the detection lock is a closed state, the jump count of the detection object is kept unchanged, which can effectively determine the method of jump counting for the detection object, improve the efficiency and accuracy of jump counting, and also improve the user experience.

[0103] Please refer to Figure 10, which shows a schematic flow chart of a jump counting method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The flow chart shown in Figure 10 will be described in detail below. The jump counting method may specifically include the following steps:

[0104] Step S410: While the detection object is jumping, a video stream of the detection object is captured by a camera.

[0105] In this embodiment, the electronic device can capture a video stream of the detection object through a camera while the detection object is jumping. The video stream is composed of one or more video frames, and each video frame can include the complete structure of the detection object or a partial structure of the detection object, without limitation.

[0106] For example, please refer to FIG11, which shows a schematic diagram of a video frame provided in one embodiment of the present application. The video frame includes the complete structure of the detection object, as shown in FIG11. For example, please refer to FIG12, which shows a schematic diagram of a video frame provided in one embodiment of the present application. The video frame includes a partial structure of the detection object, as shown in FIG12.

[0107] Step S420: determining, based on the video stream, a height relationship between a maximum height of the target portion of the detection object when the detection object jumps and a height of the reference jump line.

[0108] In this embodiment, after obtaining a video stream, the electronic device can determine, based on the video stream, a height relationship between the maximum height of the target portion of the detection object when the detection object jumps and the height of a reference jump line. Specifically, the electronic device can detect the height between the maximum height of the target portion of the detection object when the detection object jumps and the height of the reference jump line in each video frame included in the video stream, and further determine the height relationship between the maximum height of the target portion of the detection object when the detection object jumps and the height of the reference jump line, such as whether the maximum height is higher than the height of the reference jump line, the maximum height is equal to the height of the reference jump line, or the maximum height is lower than the height of the reference jump line.

[0109] Optionally, if the maximum height of the target part of the detection object in each video frame included in the video stream when the detection object jumps is higher than the height of the reference jump line, the maximum height is determined to be higher than the height of the reference jump line; if the maximum height of the target part of the detection object in each video frame included in the video stream when the detection object jumps is not higher than or equal to the height of the reference jump line, the maximum height is determined to be equal to the height of the reference jump line; if the maximum height of the target part of the detection object in each video frame included in the video stream when the detection object jumps is not higher than the height of the reference jump line and is equal to the height of the reference jump line, the maximum height is determined to be equal to the height of the reference jump line.

[0110] Step S430: Counting jumps of the detection object according to the height relationship.

[0111] In this embodiment, after the electronic device determines the height relationship, it can count the jumps of the detection object according to the height relationship.

[0112] For example, please refer to Figures 13, 14, and 15. An electronic device can capture a video stream of a detection object's jump process using a camera, wherein the video stream includes video frame 1 (as shown in Figure 13), video frame 2 (as shown in Figure 14), and video frame 3 (as shown in Figure 15). The electronic device can perform face detection on the detection object in the video frames to obtain a face detection frame. Furthermore, the electronic device can use the upper edge position of the face detection frame as the target part of the detection object. Based on the video stream, the electronic device can determine the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of a reference jump line. The reference jump line can be in the form of a virtual line, and the electronic device can draw the virtual line in each video frame included in the video stream, as shown by the reference jump line in Figures 13, 14, and 15. If the maximum height of the target part in video frame 2 is higher than the height of the reference jump line, a jump count for the detection object's jump can be increased. The electronic device's count of the detection object's jump can end when it detects that the maximum height of the detection object's target part is lower than the reference jump line (as shown in Figure 15).

[0113] Compared with the jump counting method shown in Figure 1, the jump counting method provided in one embodiment of the present application further captures a video stream of the detection object through a camera during the process of the detection object jumping; based on the video stream, the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line is determined, and then the height relationship is determined through the video stream captured by the camera, thereby improving the efficiency and accuracy of determining the height relationship, thereby improving the efficiency and accuracy of jump counting, and improving the user experience.

[0114] Please refer to Figure 16, which shows a schematic flow chart of a jump counting method provided by an embodiment of the present application. The method is applied to the above-mentioned electronic device. The following will describe the process shown in Figure 16 in detail. The jump counting method may specifically include the following steps:

[0115] Step S510: Capture an image of the detection object through a camera to obtain a picture to be counted.

[0116] In some embodiments, the electronic device may capture a detection image using a camera before the detection object jumps to obtain a frame to be counted, wherein the frame to be counted may include a target part of the detection object, the entire structure of the detection object, or a partial structure of the detection object.

[0117] For example, please refer to Figure 17, which shows a schematic diagram of a to-be-counted screen provided by an embodiment of the present application, wherein the to-be-counted screen includes the complete structure of the detected object.

[0118] Step S520: determining the height of the reference jump line according to the position of the target part of the detection object in the image to be counted.

[0119] In some embodiments, after obtaining the image to be counted, the electronic device can determine the height of the reference jump line based on the position of the target portion of the detection object in the image to be counted. Optionally, the electronic device can pre-set a preset relationship between the height of the target portion of the detection object in the image to be counted and the height of the reference jump line, such as a proportional relationship, a height difference relationship, etc. Further, after determining the height of the target portion of the detection object in the image to be counted, the electronic device can determine the height of the reference jump line in the image to be counted based on the preset relationship, so that the electronic device can count the jumps of the detection object in the image to be counted.

[0120] In some embodiments, the screen to be counted may include multiple detection objects. Optionally, the electronic device may determine the reference jump line corresponding to each detection object based on the target part of each detection object in the screen to be counted; the electronic device may also determine the reference jump line with the highest height as the reference jump line corresponding to the multiple detection objects based on the reference jump lines corresponding to the detection objects, or may determine the reference jump line with the lowest height as the reference jump line corresponding to the multiple detection objects, or may determine the reference jump line with the mode, median, average, etc. of the heights of each reference jump line as the reference jump line corresponding to the multiple detection objects, which is not limited here.

[0121] Step S530: During the process of the detection object jumping, determine the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line, wherein the height of the target part of the detection object when the detection object stands is lower than the height of the reference jumping line.

[0122] Step S540: Counting jumps of the detection object according to the height relationship.

[0123] For the detailed description of step S530 to step S540 , please refer to the detailed description of step S110 to step S120 above, which will not be repeated here.

[0124] Step S550: obtaining the initial position of the detection object in the image to be counted.

[0125] In some embodiments, after the electronic device obtains the picture to be counted, it can perform position detection on the detection object in the picture to be counted based on a preset position detection model (such as Cascade algorithm, HOG algorithm, DPM algorithm, Haar algorithm, SVM algorithm, etc.) to obtain the initial position of the detection object in the picture to be counted.

[0126] The electronic device may determine the center of gravity of the detection object in the image to be counted as the initial position of the detection object, or may determine the center of the target part of the detection object in the image to be counted as the initial position of the detection object, which is not limited here.

[0127] Step S560: while the detection object is jumping, obtaining the current position of the detection object in the picture to be counted.

[0128] In some embodiments, the electronic device may obtain the current position of the detected object in the picture to be counted while the detected object jumps in the picture to be counted. Optionally, the electronic device may perform position detection on the detected object in the picture to be counted based on a preset position detection model (e.g., Cascade algorithm, HOG algorithm, DPM algorithm, Haar algorithm, SVM algorithm, etc.) to obtain the current position of the detected object in the picture to be counted while the detected object jumps in the picture to be counted.

[0129] The current position of the detection object has the same attributes as the initial position of the detection object, and can be the center of gravity of the detection object in the image to be counted, or the center of the target part of the detection object in the image to be counted, without limitation. For example, if the initial position of the detection object is the center of gravity of the detection object, then the current position of the corresponding detection object is also the center of gravity of the detection object.

[0130] Step S570: If the distance between the current position and the initial position is greater than a distance threshold, the direction of the camera is rotated so that the distance between the current position and the initial position is less than or equal to the distance threshold.

[0131] In some embodiments, after the electronic device determines the current position and the initial position of the detection object, it can calculate the distance between the current position and the initial position in the picture to be counted. If the distance between the current position and the initial position is greater than a distance threshold, the direction of the camera is rotated so that the distance between the current position and the initial position in the picture to be counted captured by the camera is less than or equal to the distance threshold.

[0132] The distance threshold may be pre-set in the electronic device or obtained by the electronic device from a related cloud or electronic device. The method of rotating the camera direction may be to pan the camera, adjust the camera angle, or adjust the camera focal length, which is not limited here.

[0133] It can be understood that, considering that there is a process of position movement in the process of detecting the object jumping, in order to improve the accuracy of jump counting, this embodiment improves the accuracy and efficiency of jump counting by ensuring that the distance between the initial position of the detection object in the picture to be counted and the current position in the picture to be counted during the jumping process is less than or equal to the distance threshold; in addition, by automatically adjusting the direction of the camera, the user's cooperation is avoided and the user experience is improved.

[0134] Compared to the jump counting method shown in FIG1 , the jump counting method provided in one embodiment of the present application further includes capturing an image of the detection object through a camera to obtain a frame to be counted; determining the height of a reference jump line based on the position of the target part of the detection object in the frame to be counted; obtaining the initial position of the detection object in the frame to be counted; obtaining the current position of the detection object in the frame to be counted while the detection object is jumping; and if the distance between the current position and the initial position is greater than a distance threshold, rotating the camera so that the distance between the current position and the initial position is less than or equal to the distance between the current position and the initial position, thereby flexibly determining the height of the reference jump line based on the maximum height of the target part of the detection object. This improves the efficiency and accuracy of jump counting while also improving the applicability of the jump counting method. Furthermore, the electronic device can ensure the accuracy of jump counting by automatically adjusting the position of the camera, thereby improving the user experience.

[0135] Please refer to Figure 18, which shows a schematic flow chart of a jump counting method provided by an embodiment of the present application. This method is applied to the above-mentioned electronic device. The following will describe the process shown in Figure 18 in detail. The jump counting method may specifically include the following steps:

[0136] Step S610: Obtain the shooting range of the camera.

[0137] In some embodiments, to reduce power consumption during jump counting of an electronic device, the electronic device may determine a fixed reference jump line relative to the camera's shooting range based on the camera's shooting range, thereby reducing power consumption during the jump counting process. The electronic device may obtain the camera's shooting range to further perform jump counting of detected objects based on the shooting range.

[0138] Step S620: Determine the height of the reference jump line based on a preset aspect ratio and the shooting range.

[0139] In this embodiment, after the electronic device obtains the camera's shooting range, it can determine the height of the reference jump line based on a preset aspect ratio combined with the shooting range. Optionally, the preset aspect ratio can be pre-set in the electronic device or obtained by the electronic device from an associated cloud or electronic device, which is not limited here.

[0140] Among them, the preset screen ratio may include the proportional relationship between the height of the reference jump line and the height of the display screen corresponding to the shooting range, and may also include the distance between the height of the reference jump line and the top of the display screen corresponding to the shooting range, which is not limited here.

[0141] For example, please refer to Figure 19, which shows a schematic diagram of a reference jump line provided in one embodiment of the present application. The preset screen ratio includes a ratio of the height of the reference jump line to the distance from the top of the display screen corresponding to the shooting range and the height of the display screen, such as 20%. The display screen corresponding to the shooting range, as shown in Figure 19, has a height of 5h. The ratio of the height of the reference jump line to the distance from the top of the display screen to the height of the display screen is 20%. As shown in Figure 19, the distance from the height of the reference jump line to the top of the display screen is h.

[0142] In some embodiments, after the electronic device obtains the shooting range of the camera, it can display the shooting range on an associated screen. Furthermore, after the electronic device determines the height of the reference jump line based on a preset screen ratio and the shooting range, it can also draw the reference jump line on the display screen corresponding to the shooting range and display it through the associated screen.

[0143] In one embodiment, the electronic device can display the reference jump line in a target area so that the detection object can jump based on the reference jump line. The target area can be understood as the area facing the detection object, the display screen corresponding to the shooting range, or the area in the display screen corresponding to the shooting range that corresponds to the height of the reference jump line, which is not limited here.

[0144] For example, refer again to Figure 19, which shows a schematic diagram of displaying a reference jump line provided by an embodiment of the present application. The electronic device displays a reference jump line in a target area, allowing the detection object to jump based on the reference jump line. The target area is the area facing the detection object, and can also be understood as a display screen corresponding to the shooting range. Further, refer to Figure 20, which shows a display screen provided by an embodiment of the present application. The detection object can jump based on the reference jump line.

[0145] As an implementable method, the electronic device can also display the standing area of ​​the detection object when displaying the shooting range, or the electronic device can also display the standing area of ​​the detection object when displaying the reference jump line in the target area, so that the user can stand and jump based on the standing area, thereby improving the efficiency and accuracy of jump counting and improving the user experience.

[0146] Step S630: During the process of the detection object jumping, determine the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line, wherein the height of the target part of the detection object when the detection object stands is lower than the height of the reference jumping line.

[0147] For the detailed description of step S630 , please refer to the detailed description of step S110 above, which will not be repeated here.

[0148] Step S640: Counting jumps of the detection object according to the height relationship.

[0149] In some embodiments, the electronic device can perform jump counting on the detection object within a target time period; wherein the length of the target time period can be equal to the first jump counting duration, or can be greater than the first jump counting duration, or can be less than the first jump counting duration; wherein the target time period can be 30 seconds, 1 minute, two minutes, etc., which is not limited here.

[0150] Furthermore, the electronic device may accumulate the jump count of the detected object within the target time period. Optionally, the electronic device may generate a first prompt message based on the jump count of the detected object, wherein the first prompt message may include the number of jumps counted for the detected object or the duration for which the electronic device counted the jumps of the detected object. The first prompt message may be a voice prompt message, a text display prompt message, etc., which is not limited here.

[0151] For example, the electronic device may display the first prompt information in the target area, wherein the first prompt information may be displayed in the upper left corner, lower right corner, etc. of the target area, which is not limited here.

[0152] In some embodiments, the electronic device may determine a change in the jump count of the detected object within a counting period while the detected object is jumping, and generate a second prompt message based on the change. The change in the jump count may include the jump count remaining unchanged or increasing. The counting period may be equal to or less than the target time period, without limitation.

[0153] As an practicable approach, if the electronic device determines based on the change that the jump count for the detected object remains unchanged, a second prompt message is generated. The second prompt message can be used to indicate a jump failure, and the second prompt message can be a voice prompt message, a text display prompt message, etc., which is not limited here.

[0154] For example, the electronic device may display the second prompt information in the target area, wherein the second prompt information may be displayed in the upper left corner, lower right corner, etc. of the target area, which is not limited here.

[0155] The second prompt information may further include the distance between the height of the target part and the height of the reference jump line when the detection object is standing, so that the user can jump based on the prompt information, thereby improving the user experience.

[0156] In some embodiments, the electronic device can obtain the jumping state of the detection object during the jumping process and generate interactive information based on the jumping state. The interactive information can include voice information, animation information, text information, etc., which are not limited here. Exemplarily, the interactive information is animation information, and the electronic device can display the interactive information in the target area.

[0157] The jumping state of the detected object may include the maximum height of the target part during the jumping process of the detected object, the jumping duration of the detected object, etc., which are not limited here. Optionally, the electronic device may generate interactive information based on the jumping state, such as praise-type interactive information or cheer-on interactive information, thereby improving the user experience.

[0158] For example, if it is determined that the maximum height is higher than the encouragement height value, then praise-type interactive information, such as a voice message of "You are awesome", can be generated; if it is determined that the jumping time of the detected object is equal to the encouragement time length value, then cheering-type interactive information, such as a voice message of "Hold on a little longer", can be generated.

[0159] The jump counting method provided in one embodiment of the present application, compared with the jump counting method shown in Figure 1, can also obtain the shooting range of the camera; based on the preset picture ratio and the shooting range, determine the height of the reference jump line, thereby determining the height of the reference jump line based on the shooting range of the camera and the preset picture ratio, and then perform jump counting based on the height, thereby improving the efficiency and accuracy of jump counting and also improving the user experience.

[0160] Please refer to Figure 21, which shows a block diagram of a jump counting device according to an embodiment of the present application. The jump counting device 200 can be applied to the above-mentioned electronic device. The process shown in Figure 21 will be described in detail below. The jump counting device 200 includes: a height relationship determination module 210 and a jump counting module 220, wherein:

[0161] The height relationship determination module 210 is used to determine the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line during the process of the detection object jumping, wherein the height of the target part of the detection object when the detection object is standing is lower than the height of the reference jumping line.

[0162] The jump counting module 220 is configured to count jumps of the detection object according to the height relationship.

[0163] Furthermore, the jump counting module 220 may include: an increment counting unit or a count keeping unchanged unit, wherein:

[0164] An increasing counting unit is configured to increase a jump count of the detection object if it is determined based on the height relationship that the maximum height is higher than or equal to the height of the reference jump line.

[0165] The counting maintaining unit is configured to maintain the jump count of the detection object unchanged if it is determined based on the height relationship that the maximum height is lower than the height of the reference jump line.

[0166] Furthermore, the increasing counting unit may include: a height difference determining unit, a first counting value determining unit, and a first increasing counting unit, wherein:

[0167] A height difference determining unit is configured to determine a height difference between the maximum height and the height of the reference jump line if it is determined based on the height relationship that the maximum height is higher than or equal to the height of the reference jump line.

[0168] A first count value determining unit is configured to determine a first count value based on the height difference, wherein the first count value is greater than or equal to 1.

[0169] The first counting increase unit is configured to increase a jump count of the detection object based on the first counting value.

[0170] Furthermore, the increasing counting unit may include: a duration determining unit, a second counting value determining unit, and a second increasing counting unit, wherein:

[0171] The duration determining unit is configured to determine a duration during which the maximum height is higher than or equal to the height of the reference jump line if it is determined based on the height relationship that the maximum height is higher than or equal to the height of the reference jump line.

[0172] A second count value determining unit is configured to determine a second count value based on the duration, wherein the second count value is greater than or equal to 1.

[0173] The second increasing counting unit is configured to increase the jump count of the detection object based on the second counting value.

[0174] Furthermore, the increment counting unit may include: a hand rotation number determination unit, a third count value determination unit, and a third increment counting unit, wherein:

[0175] The hand rotation number determination unit is configured to determine the number of rotations of the hand of the detection object if the maximum height is determined to be higher than or equal to the height of the reference jump line based on the height relationship.

[0176] A third count value determining unit is configured to determine a third count value based on the number of rotations of the hand, wherein the third count value is greater than or equal to 1.

[0177] The third increasing counting unit is configured to increase the jump count of the detection object based on the third counting value.

[0178] Furthermore, the jump counting module 220 may further include: a counting state determining unit, a counting incrementing unit, and a counting constant unit, wherein:

[0179] A counting state determining unit is configured to determine a counting state of the detection lock according to the height relationship, wherein the counting state of the detection lock includes an open state or a closed state.

[0180] A count increasing unit is configured to increase the jump count of the detection object if the count state of the detection lock is the open state.

[0181] The counting constant unit is used to keep the jump count of the detection object unchanged if the counting state of the detection lock is the closed state.

[0182] Furthermore, the counting state determining unit may include: an open-to-close adjustment unit or a close-to-open adjustment unit, wherein:

[0183] The opening adjustment to closing unit is used to adjust the counting state of the detection lock from the opening state to the closing state if it is determined based on the height relationship that the maximum height changes from being equal to the height of the reference jump line to being higher than the reference jump line.

[0184] The closing adjustment to opening unit is used to adjust the counting state of the detection lock from the closing state to the opening state if it is determined based on the height relationship that the maximum height changes from being equal to the height of the reference jump line to being lower than the height of the reference jump line.

[0185] Furthermore, the height relationship determination module 210 may include: a face position obtaining unit, a target part determination unit, and a height relationship first determination unit, wherein:

[0186] The face position obtaining unit is used to perform face detection on the detection object during the process of the detection object jumping, and obtain the face position of the detection object.

[0187] The target part determination unit is used to determine the upper edge position of the face position as the target part of the detection object.

[0188] The first height relationship determining unit is configured to determine a height relationship between a maximum height of a target portion of the detection object when the detection object jumps and a height of a reference jumping line.

[0189] Furthermore, the face position obtaining unit may include: a target image acquisition unit and a model face detection unit, wherein:

[0190] The target image acquisition unit is used to acquire a target image including the detection object through a camera when the detection object jumps.

[0191] The model face detection unit is used to input the target image into the face detection model and obtain the face position of the detection object in the target image output by the face detection model.

[0192] Furthermore, the height relationship determination module 210 may include: a video stream acquisition unit and a second height relationship determination unit, wherein:

[0193] The video stream acquisition unit is used to acquire the video stream of the detection object through a camera when the detection object jumps.

[0194] A second height relationship determining unit is configured to determine, based on the video stream, a height relationship between a maximum height of a target portion of the detection object when the detection object jumps and a height of the reference jump line.

[0195] Furthermore, before determining the height relationship between the maximum height of the target portion of the detection object when the detection object jumps and the height of the reference jump line during the detection object jumping process, the jump counting device 200 may further include: a module for obtaining a picture to be counted and a module for first determining the height of the reference jump line, wherein:

[0196] The module for obtaining the images to be counted is used to collect images of the detection object through a camera to obtain the images to be counted.

[0197] The first module for determining the height of the reference jump line is configured to determine the height of the reference jump line according to the position of the target part of the detection object in the picture to be counted.

[0198] Furthermore, the jump counting device 200 may further include: an initial position acquisition module, a current position determination module, and a camera rotation module, wherein:

[0199] The initial position acquisition module is used to acquire the initial position of the detection object in the picture to be counted.

[0200] The current position determination module is used to obtain the current position of the detection object in the picture to be counted when the detection object jumps.

[0201] The camera rotation module is used to rotate the direction of the camera if the distance between the current position and the initial position is greater than a distance threshold, so that the distance between the current position and the initial position is less than or equal to the distance threshold.

[0202] Furthermore, during the jump of the detection object, before determining the height relationship between the maximum height of the target portion of the detection object when the detection object jumps and the height of the reference jump line, the jump counting device 200 may further include: a shooting range acquisition module and a second reference jump line height determination module, wherein:

[0203] The shooting range acquisition module is used to obtain the shooting range of the camera.

[0204] The second reference jump line height determination module is configured to determine the height of the reference jump line based on a preset screen ratio and the shooting range.

[0205] Furthermore, before determining the height relationship between the maximum height of the target portion of the detection object when the detection object jumps and the height of the reference jump line during the detection object jumping process, the jump counting device 200 may further include: a reference jump line display module, wherein:

[0206] The reference jump line display module is used to display the reference jump line in a target area so that the detection object jumps based on the reference jump line, wherein the target area is an area facing the detection object.

[0207] Furthermore, the jump counting device 200 may further include: a first prompt information generating module and a first prompt information displaying module, wherein:

[0208] The first prompt information generating module is configured to generate first prompt information according to the jump count of the detection object, wherein the first prompt information includes the number of jumps counted for the detection object.

[0209] The first prompt information display module is configured to display the first prompt information in the target area.

[0210] Furthermore, the jump counting device 200 may further include: a count change determination module, a second prompt information generation module, and a second prompt information display module, wherein:

[0211] The count change determination module is used to determine the change of the jump count of the detection object within the counting time during the process of the detection object jumping.

[0212] The second prompt information generating module is configured to generate second prompt information if it is determined based on the change that the jump count of the detection object remains unchanged, wherein the second prompt information is used to prompt a jump failure.

[0213] The second prompt information display module is used to display the second prompt information in the target area.

[0214] Furthermore, the jump counting device 200 may further include: a jump state acquisition module, an interactive information generation module, and an interactive information display module, wherein:

[0215] The jumping state acquisition module is used to acquire the jumping state of the detection object when the detection object is jumping.

[0216] The interactive information generating module is used to generate interactive information according to the jump state.

[0217] The interactive information display module is used to display the interactive information in the target area.

[0218] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0219] In several embodiments provided in this application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0220] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0221] Please refer to Figure 22, which shows a block diagram of the structure of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 can be an electronic device capable of running applications, such as a smartphone, a tablet computer, or an e-book. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more programs are configured to execute the method described in the aforementioned method embodiment.

[0222] The processor 110 may include one or more processing cores. The processor 110 utilizes various interfaces and circuits to connect various components within the electronic device 100. It executes instructions, programs, code sets, or instruction sets stored in the memory 120, and accesses data stored in the memory 120 to perform various functions and process data within the electronic device 100. Optionally, the processor 110 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing displayed content; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 110 and may be implemented separately via a communication chip.

[0223] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the electronic device 100 during use (such as a phone book, audio and video data, chat history data), etc.

[0224] Please refer to Figure 23, which shows a block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 300 stores program code, which can be called by a processor to execute the method described in the above method embodiment.

[0225] The computer-readable storage medium 300 can be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has storage space for program code 310 for executing any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 310 can be compressed, for example, in a suitable form.

[0226] In summary, the jump counting method, device, electronic device and storage medium provided in the embodiments of the present application determine the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line during the process of the detection object jumping, wherein the height of the target part of the detection object when the detection object is standing is lower than the height of the reference jump line; the jumps of the detection object are counted according to the height relationship, and then the jumps of the detection object are automatically counted according to the height relationship between the maximum height of the target part of the detection object and the reference jump line during the process of the detection object jumping, thereby improving the efficiency of jump counting.

[0227] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A jump counting method, characterized in that: The method comprises: During the process of the detection object jumping, determining the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line, wherein the height of the target part of the detection object when the detection object stands is lower than the height of the reference jumping line; The jump count of the detection object is performed according to the height relationship.

2. The method according to claim 1, characterized in that The step of counting jumps of the detection object according to the height relationship comprises: If it is determined based on the height relationship that the maximum height is higher than or equal to the height of the reference jump line, then increasing the jump count of the detection object; or If it is determined based on the height relationship that the maximum height is lower than the height of the reference jump line, the jump count of the detection object is kept unchanged.

3. The method according to claim 2, characterized in that If it is determined based on the height relationship that the maximum height is higher than or equal to the height of the reference jump line, then increasing the jump count of the detection object comprises: If it is determined based on the height relationship that the maximum height is higher than or equal to the height of the reference jump line, determining a height difference between the maximum height and the height of the reference jump line; Determine a first count value based on the height difference, wherein the first count value is greater than or equal to 1; The jump count of the detection object is increased based on the first count value.

4. The method according to claim 2, characterized in that: If it is determined based on the height relationship that the maximum height is higher than or equal to the height of the reference jump line, then increasing the jump count of the detection object comprises: If it is determined based on the height relationship that the maximum height is higher than or equal to the height of the reference jump line, then determining a duration during which the maximum height is higher than or equal to the height of the reference jump line; Determine a second count value based on the duration, wherein the second count value is greater than or equal to 1; The jump count of the detection object is increased based on the second count value.

5. The method according to claim 2, characterized in that: If it is determined based on the height relationship that the maximum height is higher than or equal to the height of the reference jump line, then increasing the jump count of the detection object comprises: If it is determined based on the height relationship that the maximum height is higher than or equal to the height of the reference jump line, then determining the number of rotations of the hand of the detection object; Determine a third count value based on the number of rotations of the hand, wherein the third count value is greater than or equal to 1; The jump count of the detection object is increased based on the third count value.

6. The method according to claim 1, characterized in that The step of counting jumps of the detection object according to the height relationship comprises: Determining a counting state of the detection lock according to the height relationship, wherein the counting state of the detection lock includes an open state or a closed state; If the count state of the detection lock is the open state, increasing the jump count of the detection object; or If the counting state of the detection lock is the closed state, the jump count of the detection object is kept unchanged.

7. The method according to claim 6, characterized in that Determining the counting state of the detection lock according to the height relationship includes: If it is determined based on the height relationship that the maximum height changes from a height equal to the reference jump line to a height higher than the reference jump line, adjusting the counting state of the detection lock from the open state to the closed state; or If it is determined based on the height relationship that the maximum height changes from being equal to the height of the reference jump line to being lower than the height of the reference jump line, the counting state of the detection lock is adjusted from the closed state to the open state.

8. The method according to any one of claims 1 to 7, characterized in that: The step of determining the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line during the jumping of the detection object comprises: During the jumping of the detection object, performing face detection on the detection object to obtain the face position of the detection object; Determining the upper edge position of the face position as the target part of the detection object; A height relationship between a maximum height of a target portion of the detection object when the detection object jumps and a height of a reference jump line is determined.

9. The method according to claim 8, characterized in that The step of performing face detection on the detection object to obtain the face position of the detection object during the jumping of the detection object includes: During the jumping of the detection object, a target image including the detection object is collected by a camera; The target image is input into a face detection model to obtain the face position of the detection object in the target image output by the face detection model.

10. The method according to any one of claims 1 to 7, characterized in that: The step of determining the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jump line during the jumping of the detection object comprises: During the jumping of the detection object, a video stream of the detection object is collected by a camera; Determine, based on the video stream, a height relationship between a maximum height of a target portion of the detection object when the detection object jumps and a height of the reference jump line.

11. The method according to any one of claims 1 to 7, characterized in that: In the process of the detection object jumping, before determining the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line, the method further includes: Capturing images of the detection object through a camera to obtain images to be counted; The height of the reference jump line is determined according to the position of the target part of the detection object in the picture to be counted.

12. The method according to claim 11, characterized in that The method further comprises: Obtaining the initial position of the detection object in the picture to be counted; During the jump of the detection object, obtaining the current position of the detection object in the picture to be counted; If the distance between the current position and the initial position is greater than a distance threshold, the direction of the camera is rotated so that the distance between the current position and the initial position is less than or equal to the distance threshold.

13. The method according to any one of claims 1 to 7, characterized in that: In the process of the detection object jumping, before determining the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line, the method further includes: Get the shooting range of the camera; Based on a preset screen ratio and the shooting range, a height of the reference jump line is determined.

14. The method according to any one of claims 1 to 7, characterized in that: In the process of the detection object jumping, before determining the height relationship between the maximum height of the target part of the detection object when the detection object jumps and the height of the reference jumping line, the method further includes: The reference jump line is displayed in a target area so that the detection object jumps based on the reference jump line, wherein the target area is an area facing the detection object.

15. The method according to claim 14, characterized in that The method further comprises: Generate first prompt information according to the jump count of the detection object, wherein the first prompt information includes the number of jump counts of the detection object; The first prompt information is displayed in the target area.

16. The method according to claim 14, characterized in that The method further comprises: During the process of the detection object jumping, determining the change of the jump count of the detection object within the counting time; If it is determined based on the change that the jump count of the detection object remains unchanged, generating second prompt information, wherein the second prompt information is used to prompt a jump failure; The second prompt information is displayed in the target area.

17. The method according to claim 14, characterized in that The method further comprises: During the process of the detection object jumping, obtaining the jumping state of the detection object; generating interactive information according to the jumping state; The interactive information is displayed in the target area.

18. A jump counting device, characterized in that: The device comprises: a height relationship determination module, used to determine, during a jump of the detection object, a height relationship between a maximum height of a target part of the detection object when the detection object jumps and a height of a reference jump line, wherein the height of the target part of the detection object when the detection object stands is lower than the height of the reference jump line; A jump counting module is used to count the jumps of the detection object according to the height relationship.

19. An electronic device, characterized in that: include: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1-17.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1 to 17.

Citation Information

Patent Citations

  • Rope skipping exercise counting system with height measuring function

    CN110755798A

  • Jump counting method and device, terminal equipment and storage medium

    CN113378713A

  • Rope skipping counting method and device, computer equipment and storage medium

    CN115546291A

  • Jump counting method for jump rope

    US20200306585A1

  • Determination device, determination method, and recording medium

    WO2021186938A1