WO2018157460A1 - Method and device for counting human motions - Google Patents

Method and device for counting human motions Download PDF

Info

Publication number
WO2018157460A1
WO2018157460A1 PCT/CN2017/081465 CN2017081465W WO2018157460A1 WO 2018157460 A1 WO2018157460 A1 WO 2018157460A1 CN 2017081465 W CN2017081465 W CN 2017081465W WO 2018157460 A1 WO2018157460 A1 WO 2018157460A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
distance
target portion
camera
motion
Prior art date
Application number
PCT/CN2017/081465
Other languages
French (fr)
Chinese (zh)
Inventor
黄晓萍
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201780012496.6A priority Critical patent/CN108885789A/en
Publication of WO2018157460A1 publication Critical patent/WO2018157460A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B71/00Games or sports accessories not covered in groups A63B1/00 - A63B69/00
    • A63B71/06Indicating or scoring devices for games or players, or for other sports activities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion

Definitions

  • the present application relates to the field of information technology, and in particular, to a method and device for counting human motion.
  • the embodiment of the present application provides a counting method and device for human body motion, which realizes human body motion counting through a terminal device, and provides an automatic human body motion counting method, and the person who counts is not paying attention when compared with manual counting. Concentration, it is easy to count the wrong situation, which reduces the counting error rate to some extent.
  • the embodiment of the present application provides a method for counting a human body motion, where the method is applied to a terminal device including a camera, and the method includes: the terminal device is configured to start an instruction for counting a human body motion in response to a user trigger Activating the camera; the terminal device monitors, by the camera, a picture of the human body movement when the camera is aligned with the target part of the user; the terminal device determines that the target part is satisfied once When the ratio change condition of the picture is occupied, the number of times of the human body movement of the user is increased once, and the ratio change condition is that the proportion change of the target part in the picture changes from increasing to decreasing, or The proportion of the target portion in the picture changes from decreasing to increasing; the terminal device notifies the user of the number of times the body movement is finally performed after the body motion is stopped by the camera.
  • the human body motion in the present application refers to a type of motion in which certain parts of the body have a certain position in the relative space when the user is exercising.
  • the target device of the terminal device monitors the proportion change of the target part of the user to the screen, thereby realizing automatic counting by the terminal device, eliminating the need for manual counting, and improving the correct rate of counting to a certain extent.
  • the terminal device When the terminal device notifies the user of the number of times of exercise, the terminal device can display through the interface, and can also pass voice or the like.
  • the user can immediately notify the user of the number of times of the final body movement, and can also save the first time, and receive an instruction triggered by the user for viewing the number of times of the human body movement. By giving the user. It is also possible to notify the user of the number of times the human body moves, set the time, and when the set time is reached, pass the number of times the human body moves to the user.
  • the method further includes: the terminal device responding to the user-triggered instruction for recording the standard motion of the human body motion
  • the terminal device monitors, by the camera, a screen of a standard action of the user to perform the human body motion when the camera is aligned with a target portion of the user; the terminal device records the user corresponding to the standard action a target portion occupies a maximum ratio and a minimum ratio of the picture; the terminal device determines, when each of the target parts accounts for a ratio change condition of the picture, determines a maximum value and a ratio of a ratio that occurs when the ratio change condition is satisfied Minimum a value, the maximum value of the ratio is a maximum value when the target portion accounts for a change in the proportion of the picture from an increase to a decrease, and the ratio minimum value is a change in a ratio of the target portion to the picture.
  • the terminal device determines the user according to a comparison result of the maximum ratio of the proportional maximum value corresponding to the standard action, and a comparison result of the minimum ratio of the ratio minimum value and the standard action The quality of the movement of the human body is notified to the user.
  • the above design provides an automated way to assess the quality of motion.
  • the terminal device When the terminal device notifies the user of the motion quality of the motion, the terminal device can display through the interface, and can also pass voice or the like.
  • the embodiment of the present application provides a method for counting human motion, and the method is applied to a terminal device including an imaging device, including: the terminal device is configured to start counting for a human body motion in response to a user trigger. Instructing to activate the imaging device; the terminal device monitors a change in physical distance between the target portion and the imaging device by the imaging device when the imaging device is aligned with a target portion of the user. The terminal device increases the number of times of the human body motion for the user once the distance change condition of the physical distance between the target portion and the imaging device is satisfied once, and the distance change condition is the target a change in physical distance between the portion and the imaging device is changed from increasing to decreasing, or a change in physical distance between the target portion and the imaging device is changed from decreasing to increasing; the terminal device is photographed After the device detects that the movement of the human body is stopped, the device notifies the user of the number of times the body movement is finally performed.
  • the imaging device is a focusing camera, or the imaging device comprises a camera and a ranging aid.
  • the above design monitors the change of the physical distance between the target part of the user and the imaging device through the imaging device of the terminal device, thereby realizing automatic counting by the terminal device, eliminating the need for manual counting, and improving the counting correctly to a certain extent. rate.
  • the terminal device When the terminal device notifies the user of the number of times of exercise, the terminal device can display through the interface, and can also pass voice or the like.
  • the user can immediately notify the user of the number of times of the final body movement, and can also save the first time, and receive an instruction triggered by the user for viewing the number of times of the human body movement. By giving the user. It is also possible to notify the user of the number of times the human body moves, set the time, and when the set time is reached, pass the number of times the human body moves to the user.
  • the method before the terminal device monitors a change in the physical distance between the target portion and the imaging device by the imaging device, the method further includes:
  • the terminal device is responsive to a user-triggered instruction to record a standard motion of the human body motion
  • the terminal device monitors a distance between the target portion and the imaging device when the user performs a standard motion of the human body motion through the imaging device.
  • the terminal device records a maximum distance and a minimum distance between the target part corresponding to the standard action and the imaging device;
  • the terminal device Determining, by the terminal device, a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied, each time the distance change condition that satisfies the physical distance between the target part and the imaging apparatus is determined, the distance being the largest a value is a maximum value when the physical distance between the target portion and the imaging device changes from increasing to decreasing, and the minimum value is a change in physical distance between the target portion and the imaging device. Reduce the minimum value when it changes to increase;
  • the above design provides an automated way to assess the quality of motion.
  • the terminal device When the terminal device notifies the user of the motion quality of the motion, the terminal device can display through the interface, and can also pass voice or the like.
  • the embodiment of the present application provides a counting device for human motion, including a camera and a processor;
  • the camera is configured to collect a picture of a user doing body motion
  • the processor is configured to start the camera in response to a user-triggered instruction for turning on a motion count for a human body; and monitor the user to perform a human body through the camera when the camera is aligned with a target portion of the user a screen of motion; determining, once each time the target portion meets a condition change ratio of the screen, increasing the number of times of movement of the user's body, the ratio change condition being that the target portion occupies the screen.
  • the change in the ratio changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing; after the camera detects that the movement of the human body is stopped, the movement of the human body is finally Notify the user of the number of times.
  • the processor is further configured to: in response to a user-triggered instruction to record a standard motion of the human motion, before the user monitors a screen of the human motion by the camera; When the camera is aligned with the target portion of the user, the user monitors the screen of the standard motion of the human body movement by the camera; and records the maximum proportion and the minimum ratio of the target portion of the user corresponding to the standard action.
  • the device may further comprise a display device or a speaker;
  • the processor displays to the user through the display interface of the display device when notifying the user; or notifies the user through the speaker.
  • the embodiment of the present application further provides a counting device for human motion, including an imaging device and a processor;
  • the imaging device is configured to monitor a physical distance change between a target part of the user and the imaging device;
  • the processor is configured to start the imaging device in response to a user-triggered instruction for turning on a motion count for a human body; and monitor the image by the imaging device when the imaging device is aligned with the target portion a change in the physical distance between the target portion and the imaging device; when determining a distance change condition that satisfies the physical distance between the target portion and the imaging device once, the number of times the human body movement of the user is increased once
  • the distance change condition is that the physical distance change between the target portion and the imaging device is changed from increasing to decreasing, or the physical distance between the target portion and the imaging device is changed from decreasing After the movement of the human body is stopped by the imaging device, the number of times the final body movement is finally notified to the user.
  • the imaging device is a focusing camera, or the imaging device includes a camera and a ranging aid.
  • the processor is further configured to: in response to a user-triggered instruction to record a standard motion of the human motion; when the camera device is aligned with a target portion of the user, The camera device monitors a distance change between the target portion and the camera device when the user performs the standard action of the human body motion; and records a maximum distance between the target portion and the camera device corresponding to the standard action And the minimum distance; Determining a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied, when the distance change condition of the physical distance between the target portion and the imaging device is once, the distance maximum value is the target portion and a maximum value when the physical distance between the imaging devices changes from increasing to decreasing, the minimum value being a change in physical distance between the target portion and the imaging device from a decrease to an increase a minimum value; determining, according to a comparison result of the distance maximum value and a maximum distance corresponding to the standard action, and a comparison result of the distance minimum value and a minimum distance corresponding to the standard action,
  • the device may further comprise a display device or a speaker;
  • the processor displays to the user through the display interface of the display device when notifying the user; or notifies the user through the speaker.
  • the embodiment of the present application provides a counting device for human body motion, the device is applied to a terminal device including a camera, and the device includes:
  • a triggering module configured to start the camera in response to a user-triggered instruction for turning on a motion count for a human body
  • a monitoring module configured to monitor, by the camera, a picture of the human body movement when the camera is aligned with the target portion of the user
  • a counting module configured to increase the number of times of the human body motion of the user once every time the target part meets the condition change condition of the screen, and the ratio change condition is that the target part occupies the screen
  • the change in the proportion changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing;
  • the notification module is configured to notify the user of the number of times the final body movement is performed after the movement of the human body is stopped by the camera.
  • the triggering module is further configured to respond to a user-triggered instruction for recording a standard motion of the human motion
  • the monitoring module is further configured to monitor, by the camera, a screen of a standard action of the user to perform the human body motion when the camera is aligned with a target portion of the user;
  • a recording module configured to record a maximum proportion and a minimum ratio of the target part of the user corresponding to the standard action to the picture
  • a quality evaluation module configured to determine a ratio maximum value and a ratio minimum value that occur when the ratio change condition of the target portion is satisfied once the target portion is satisfied, and the ratio maximum value is a maximum value at which the target portion occupies a change in the ratio of the picture from an increase to a decrease, and the minimum value of the target portion is a minimum value at which the change in the ratio of the target portion to the picture changes from decreasing to increasing; Determining a comparison result of a maximum ratio of a maximum value corresponding to a standard action, and a comparison result of a minimum ratio of the ratio minimum value and a standard action, determining an action quality of the human body motion of the user;
  • the notification module is further configured to notify the user of the motion quality of the user's human motion.
  • the embodiment of the present application provides a counting device for moving a human body, and the device is applied to a terminal device including an imaging device, including:
  • a triggering module configured to start the imaging device in response to a user-triggered instruction for turning on a motion count for a human body
  • a monitoring module configured to monitor, by the imaging device, a change in a physical distance between the target portion and the imaging device when the imaging device is aligned with a target portion of the user
  • a counting module configured to determine a distance between a physical distance between the target portion and the imaging device every time
  • the condition is changed, the number of times of the human body movement of the user is increased once, the distance change condition is that the physical distance change between the target part and the image capturing apparatus is changed from increasing to decreasing, or the target part is changed.
  • the physical distance change from the imaging device changes from decreasing to increasing;
  • the notification module is configured to notify the user of the number of times the final body movement is performed after the movement of the human body is stopped by the imaging device.
  • the imaging device is a focusing camera, or the imaging device includes a camera and a ranging aid.
  • the triggering module is further configured to respond to a user-triggered instruction for recording a standard motion of the human motion
  • the monitoring module is further configured to: when the camera device is aligned with the target portion of the user, when the camera device monitors a standard motion of the user to perform the human body motion, the target portion and the camera device The distance between them changes;
  • the device also includes:
  • a recording module configured to record a maximum distance and a minimum distance between the target part corresponding to the standard action and the imaging device
  • a quality evaluation module configured to determine a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied, each time a distance change condition that satisfies a physical distance between the target portion and the imaging device is determined.
  • the maximum distance is a maximum value when the physical distance between the target portion and the imaging device changes from increasing to decreasing
  • the minimum value is a physical distance between the target portion and the imaging device. Determining the minimum value when the change is changed from decreasing to increasing; determining the user according to a comparison result of the maximum distance of the distance maximum value corresponding to the standard action, and a comparison result of the minimum distance of the distance minimum value and the standard action.
  • the notification module is further configured to notify the user of the motion quality of the user's human motion.
  • the embodiment of the present application provides a computer readable storage medium, where the software program is stored in a computer readable storage medium, and the software program can implement the above when being read and executed by one or more processors method.
  • FIG. 1 is a schematic structural diagram of a mobile phone according to an embodiment of the present application.
  • FIG. 2 is a flowchart of a first human body motion counting method according to an embodiment of the present application
  • FIG. 3 is a flowchart of a first push-up counting method according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of performing push-up counting by using a terminal device according to an embodiment of the present application
  • FIG. 5A is a schematic diagram of a screen collected by a camera corresponding to a in FIG. 4 according to an embodiment of the present application;
  • FIG. 5A is a schematic diagram of a screen collected by a camera corresponding to a in FIG. 4 according to an embodiment of the present application;
  • FIG. 5B is a schematic diagram of a screen collected by a camera corresponding to b in FIG. 4 according to an embodiment of the present application;
  • FIG. 5B is a schematic diagram of a screen collected by a camera corresponding to b in FIG. 4 according to an embodiment of the present application;
  • FIG. 6 is a schematic diagram of a proportion change of a target part in a screen when a user performs push-ups according to an embodiment of the present application
  • FIG. 7 is a flowchart of a method for evaluating a quality of a first push-up motion according to an embodiment of the present application
  • FIG. 8 is a flowchart of a second human body motion counting method according to an embodiment of the present application.
  • FIG. 9 is a flowchart of a second method for counting push-ups according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram showing changes in physical distance between a target portion and an imaging device when a user performs push-ups according to an embodiment of the present application
  • FIG. 11 is a flowchart of a method for evaluating quality of a second push-up motion according to an embodiment of the present application
  • FIG. 12 is a schematic diagram of a human body motion counting device according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of another human motion counting device according to an embodiment of the present application.
  • the user is doing body exercises (such as push-ups, sit-ups, and high-lifting legs), and some parts of the body have ups and downs in certain points in the space. In some sports, some parts of the body have ups and downs on the ground. For example, when doing push-ups, the upper part of the face or head is close to the ground--away; for example, when raising legs, legs and feet Close to the ground-circulating approach -> away. For example, when doing sit-ups, the upper part of the face or head is close to the head area that the user sits down->away.
  • the applicant captures the proximity and distance of the target part of the target part of the image of the target part of the body through the camera on the terminal device to realize the body movement count.
  • the embodiment of the present application provides a counting method and device for human body motion, which realizes human body motion counting through a terminal device, and provides an automated human body motion counting method, which is compared with manual counting. If the person counting is not focused, it is easy to count the error and reduce the counting error rate to some extent.
  • the method and the device are based on the same inventive concept. Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description is not repeated.
  • the counting scheme for human motion in the embodiments of the present application may be implemented using various terminal devices having a camera, including but not limited to a personal computer, a server computer, a handheld or laptop device, a mobile device (such as a mobile phone, Mobile phones, tablets, personal digital assistants, media players, etc.), consumer electronics, small computers, mainframe computers, and more.
  • a mobile device such as a mobile phone, Mobile phones, tablets, personal digital assistants, media players, etc.
  • consumer electronics small computers, mainframe computers, and more.
  • the mobile phone 100 includes a display device 110, a processor 120, and a memory 130.
  • the memory 130 can be used to store software programs and data, and the processor 120 executes various functional applications and data processing of the mobile phone 100 by running software programs and data stored in the memory 130.
  • the memory 130 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as an image collection function, etc.), and the like; and the storage data area may be stored according to the use of the mobile phone 100.
  • the created data (such as audio data, phone book, exchangeable image file EXIF, etc.).
  • memory 130 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the processor 120 is a control center of the mobile phone 100, and connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions and processing data of the mobile phone 100 by running or executing software programs and/or data stored in the memory 130. In order to monitor the mobile phone as a whole.
  • the processor 120 may include one or more general-purpose processors, and may also include one or more DSPs (Digital Signal Processors) for performing related operations to implement the technical solutions provided by the embodiments of the present application.
  • DSPs Digital Signal Processors
  • the mobile phone 100 also includes a camera 160 for taking a photo or video, and the camera 160 monitors the user's picture of the human body movement.
  • the camera 160 can be a normal camera or a focus camera.
  • the mobile phone 100 may also include an input device 140 for receiving input digital information, character information or contact touch/contactless gestures, and generating signal inputs related to user settings and function control of the handset 100, and the like.
  • the input device 140 may include a touch panel 141.
  • Touch panel 141 also called For the touch screen, a touch operation on or near the user can be collected (such as the user using a finger, a stylus, or the like on any suitable object or accessory on the touch panel 141 or on the touch panel 141), and according to a preset
  • the program drives the corresponding connection device.
  • the touch panel 141 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 120 is provided and can receive commands from the processor 120 and execute them. For example, the user clicks an icon or a legend for opening the push-up count on the touch panel 141 with a finger, the touch detection device detects the signal brought by the click, and then transmits the signal to the touch controller. The touch controller then converts this signal into coordinates and sends it to the processor 120.
  • the processor 120 determines the operation (on) for the icon or legend based on the coordinates and the type of the signal (click or double click), and then determines The memory space required for the operation is performed. If the occupied memory space is smaller than the free memory, the interface after the camera is started is displayed on the display panel 111 included in the display device in full screen, thereby implementing the push-up counting.
  • the touch panel 141 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input device 140 may further include other input devices 142, which may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like. One or more of them.
  • the display device 110 includes a display panel 111 for displaying information input by the user or information provided to the user, and various menu interfaces of the mobile phone 100, etc., which are mainly used to display the camera collected in the mobile phone 100 in the embodiment of the present application. Picture.
  • the display panel can be configured by using a liquid crystal display (English: Liquid Crystal Display, LCD for short) or OLED (Organic Light-Emitting Diode).
  • the touch panel 141 can cover the display panel 111 to form a touch display screen.
  • the handset 100 can also include a power source 150 for powering other modules.
  • the handset 100 may also include one or more sensors 170, such as an accelerometer, a light sensor, a GPS sensor, an infrared sensor, a laser sensor, a position sensor or a lens pointing angle sensor, and the like.
  • the mobile phone 100 may further include a radio frequency (RF) circuit 180 for performing network communication with the wireless network device, and may further include a WiFi module 190 for performing WiFi communication with other devices, and may further include a speaker 210 for Playing music, voice prompts or sounding prompts, etc., may also include ranging aid 220, which may be a laser transmitter, an infrared emitter, or the like.
  • RF radio frequency
  • the counting method for the human body motion provided by the embodiment of the present application may be implemented in the storage software program shown in FIG. 1 , and may be specifically executed by the processor 120 , and the terminal device may include a camera.
  • the first type through the target tracking technology, according to the proportion of the target part of the screen changes, so as to know the body's landing point, to achieve counting.
  • the second type through the autofocus camera, capture the change in the distance between the target part and the terminal device, know the body's landing point, and achieve counting.
  • the third type through the camera and the ranging aid, capture the change in the distance between the target part and the terminal device, know the body's landing point, and achieve counting.
  • the method for counting human motion provided by the embodiment of the present application includes:
  • the terminal device starts the camera in response to a user-triggered instruction for turning on a motion count for a human body.
  • the instructions in the embodiment of the present application may be an instruction triggered by a user clicking a counting icon of a human motion, or an instruction generated by a user for a button for triggering a human body motion counting, and the like.
  • the specific user may trigger an instruction for counting the movement of the human body triggered by the input device 140 or other input device 142.
  • the terminal device monitors, by the camera, a picture of the user's body movement when the camera is aligned with the target part of the user.
  • the terminal device is manually placed to align the camera with the target portion of the user.
  • the terminal device increases the number of times of the human body motion of the user once when determining that the target part occupies a proportional change condition of the screen.
  • the proportional change condition is that the change in the proportion of the target portion in the picture changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing.
  • the terminal device When the terminal device notifies the user of the number of times of exercise, the terminal device can display through the interface, and can also pass voice or the like.
  • the user can immediately notify the user of the number of times of the final body movement, and can also save the first time, and receive an instruction triggered by the user for viewing the number of times of the human body movement. By giving the user. It is also possible to notify the user of the number of times the human body moves, set the time, and when the set time is reached, pass the number of human movements to the user, for example, every night at 10 o'clock.
  • the terminal device starts the camera in response to a user-triggered instruction for turning on a push-up count.
  • S302 The user manually places the terminal device to align the camera with the target portion of the user. See Figure 4.
  • the embodiment of the present application takes the target part as a head as an example.
  • the target part may also be a pattern on the face, lips, or blouse, and the like.
  • the target part may be preset or may be selected by the user in the picture captured by the camera.
  • the terminal device monitors, by using the camera, a picture of a user doing push-ups.
  • the terminal device increases the number of times the user performs push-ups once the distance change condition of the picture is occupied every time the head is occupied.
  • the proportional change condition is that the change in the ratio of the head to the picture changes from increasing to decreasing, or the change in the proportion of the head occupying the picture changes from decreasing to increasing.
  • FIG. 5A and FIG. 5B when the user's body is in the form of a in FIG. 4, the screen collected by the camera in the terminal device is as shown in FIG. 5A, and the user's body is in the form of b in FIG.
  • the picture captured by the camera in the device is shown in Figure 5B.
  • FIG. 5A and FIG. 5B that as the form of the user's body changes from the form of a in FIG. 4 to the form of a, the cycle is repeated, and the ratio of the head in the picture to the entire picture is determined by The increase becomes a decrease and then becomes an increase...
  • the change in the proportion of the head in the specific picture to the entire picture is shown in the curve in FIG.
  • the terminal device monitors, after the user stops performing the push-up by the camera, and performs the push-up of the end user. The number of times is recorded.
  • the user When it is determined that the condition for notifying the user is reached, the user is notified of the number of times the user does push-ups.
  • the condition for notifying the user may be the set time, or an instruction to receive the number of times the user inquires about the push-ups, and the like.
  • the terminal device can also estimate the quality of the action that the user does for each push-up. Specifically, it can be implemented as follows, as shown in FIG. 7.
  • the terminal device responds to a user-triggered instruction for recording a standard action of push-ups.
  • the terminal device monitors, by the camera, a screen for performing a standard action of the push-up by the camera when the camera is aligned with the head of the user.
  • the user manually places the terminal device so that the camera is aimed at the user's head.
  • the terminal device records a maximum proportion and a minimum ratio of a head of the user corresponding to the standard action to the screen.
  • the terminal device determines, when each time the head meets a proportional change condition of the picture, determines a maximum value and a minimum value that occur when the proportional change condition is satisfied.
  • the maximum value of the ratio is a maximum value when the ratio of the head to the picture changes from increasing to decreasing
  • the minimum value of the ratio is that the proportion of the head in the picture changes from decreasing to increasing. The minimum value of the big time.
  • the terminal device determines, according to a comparison result of the maximum ratio of the proportional maximum value corresponding to the standard action, and a comparison result of the minimum ratio of the proportional minimum value and the standard action, determining the motion quality of the user for performing push-ups. And notify the user.
  • the ratio of the head in the specific picture to the entire picture changes to the curve in FIG. 6, it is determined that the values of the adjacent peaks and troughs are respectively compared with the maximum ratio and the minimum ratio corresponding to the standard motion, thereby estimating the user.
  • the quality of the movement of the human body For example, the absolute value of the difference between the maximum ratio corresponding to the standard action and the standard action is not greater than the first threshold, and the absolute value of the difference between the minimum ratio of the proportional minimum and the standard action is not greater than the second threshold. Then it is judged as pass, otherwise it is judged as unqualified.
  • the first threshold and the second threshold are both 5%.
  • the maximum and minimum values determined by the terminal device are 48% and 13%, respectively.
  • the maximum proportion and the minimum ratio corresponding to the standard action are 50% and 10%, respectively, and it is determined that the push-up is qualified.
  • the user's action quality for each push-up and the operation for counting the push-ups can be performed when the user performs push-ups.
  • the method for counting human motion provided by the embodiment of the present application includes:
  • the terminal device starts the focus camera in response to a user-triggered instruction for turning on a count of push-ups.
  • the terminal device monitors, by the focus camera, a change in a physical distance between the target portion and the focus camera when the focus camera is aligned with a target portion of the user.
  • the terminal device increases the number of times of the human body motion of the user once when determining a distance change condition that satisfies a physical distance between the target portion and the focus camera.
  • the distance change condition is that a change in a physical distance between the target portion and the focus camera is changed from an increase to a decrease, or a change in a physical distance between the target portion and the focus camera is changed from a decrease to a decrease Increase.
  • the terminal device notifies the user of the number of times the final body movement is performed after the movement of the human body is stopped by the camera.
  • the terminal device When the terminal device notifies the user of the number of times of exercise, the terminal device can display through the interface, and can also pass voice or the like.
  • the user can immediately notify the user of the number of times of the final body movement, and can also save the first time, and receive an instruction triggered by the user for viewing the number of times of the human body movement. By giving the user. It is also possible to notify the user of the number of times the human body moves, set the time, and when the set time is reached, pass the number of human movements to the user, for example, every night at 10 o'clock.
  • the following also takes the user's push-ups as an example, and specifically describes the second counting method, as shown in FIG.
  • the terminal device starts the focus camera in response to a user-triggered instruction for turning on a push-up count.
  • the terminal device monitors, by the focus camera, a change in a physical distance between the target portion and the focus camera when the focus camera is aligned with a target portion of the user.
  • the target portion is a neck portion as an example.
  • the terminal device increases the number of times the user performs push-ups once when determining a distance change condition that satisfies the physical distance between the neck and the focus camera.
  • the distance change condition is that the physical distance change between the neck and the focus camera is changed from increasing to decreasing, or the physical distance change between the neck and the focus camera is changed from decreasing to Increase.
  • the focus camera in the terminal device determines that the physical distance between the neck and the focus camera is 55 cm, and the user's body is in the form of b in FIG.
  • the focus camera in the middle determines the physical distance between the neck and the focus camera is 35 cm.
  • this cycle reciprocates, and it is determined that the physical distance between the neck and the focus camera changes from decreasing to increasing and then changing. Decrease..., see the curve in Figure 10 for the physical distance change between the specific neck and the focus camera.
  • counting it can be recorded once for each peak, that is, when the physical distance between the neck and the focus camera is changed from increasing to decreasing, and once for each trough, that is, the neck and the focusing camera. The physical distance between them changes from decreasing to increasing.
  • the terminal device records, after the user stops doing push-ups by the camera, records the number of final push-ups.
  • the user When it is determined that the condition for notifying the user is reached, the user is notified of the number of times the user does push-ups.
  • the condition for notifying the user may be the set time, or an instruction to receive the number of times the user inquires about the push-ups, and the like.
  • the terminal device can also estimate the quality of the action that the user does for each push-up. Specifically, it can be implemented as follows, as shown in FIG.
  • S1101 The terminal device responds to a user-triggered instruction to record a standard action of the user doing push-ups.
  • the terminal device monitors, between the neck and the focus camera, a standard motion of the user to perform the push-up by the focus camera. Distance changes.
  • the terminal device records a maximum distance and a minimum distance between the neck corresponding to the standard motion and the focus camera.
  • the terminal device determines, when each time the distance change condition of the physical distance between the neck and the focus camera is satisfied, determines a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied.
  • the maximum distance is a maximum value when the physical distance between the neck and the focus camera changes from increasing to decreasing, and the minimum value is between the neck and the focusing camera. The change in physical distance changes from decreasing to increasing.
  • the terminal device determines, according to a comparison result of the distance maximum value and a maximum distance corresponding to the standard action, and a comparison result of the distance minimum value and a minimum distance corresponding to the standard action, determining, by the user, the push-up motion. Make quality and notify the user.
  • the physical distance between the specific neck and the focusing camera is the curve in FIG. 10, and then the values of the adjacent peaks and troughs are respectively compared with the maximum distance and the minimum distance corresponding to the standard motion, thereby estimating the user's The quality of the movement of the human body.
  • the absolute value of the difference between the maximum distance corresponding to the standard action and the maximum distance is not greater than the third threshold, and the absolute value of the difference between the minimum distance and the minimum distance corresponding to the standard action is not greater than the fourth threshold. Then it is judged as pass, otherwise it is judged as unqualified.
  • the third threshold and the fourth threshold may be the same or different.
  • the maximum and minimum distances determined by the terminal device are 54 cm and 38 cm, respectively, when the user performs a push-up.
  • the maximum distance and the minimum distance corresponding to the standard motion are 55 cm and 35 cm, respectively, and it is determined that the push-up is qualified.
  • the counting method is the same, but the difference is that the capturing distance is changed from the focusing camera to the normal camera and the ranging aid. Therefore, for the third counting method, see Figure 8 ⁇ The counting method for the second type described in FIG. 10 will not be described again for the third type.
  • the embodiment of the present application further provides a counting device for human body motion, which is applied to a terminal device including a camera, and may be implemented by a processor 320 in the smart phone 300.
  • the apparatus may include:
  • the triggering module 1201 is configured to start the camera in response to a user-triggered instruction for turning on the counting of the human body motion
  • the monitoring module 1202 is configured to monitor, by the camera, a picture of the user performing body motion when the camera is aligned with the target portion of the user;
  • the counting module 1203 is configured to increase the number of times of the human body motion of the user once every time the target part meets the proportional change condition of the screen, and the ratio change condition is that the target part accounts for the The change in the proportion of the picture changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing;
  • the notification module 1204 is configured to notify the user of the number of times the final body movement is performed after the movement of the human body is stopped by the camera.
  • the triggering module 1201 is further configured to: in response to a user-triggered instruction to record a standard motion of the human motion;
  • the monitoring module 1202 is further configured to monitor, by the camera, a screen of a standard action of the user to perform the human body motion when the camera is aligned with a target portion of the user;
  • the method further includes a recording module 1205, configured to record a maximum proportion and a minimum ratio of the target part of the user corresponding to the standard action to the screen;
  • the quality evaluation module 1206 is configured to determine, when each of the target parts meets the condition change condition of the screen, determine a maximum value and a minimum value that occur when the proportional change condition is satisfied, and the maximum value is a maximum value when the target portion occupies a change in the ratio of the screen from an increase to a decrease, and the ratio minimum value is a minimum value at which the target portion occupies a change in the ratio of the screen from a decrease to an increase; a comparison result of the maximum ratio of the proportional maximum value corresponding to the standard action, and a comparison result of the minimum ratio of the proportional minimum value and the standard action, determining the motion quality of the human body motion of the user;
  • the notification module 1204 is further configured to notify the user of the motion quality of the human body motion of the user.
  • each functional module in each embodiment of the present application may be integrated into one processing. In the device, it can also be physically existed alone, or two or more modules can be integrated into one module. Integrated above The module can be implemented in the form of hardware or in the form of software functional modules.
  • FIG. 1 When implemented in hardware, the hardware implementation of the terminal can be referred to FIG. 1 and its related description.
  • the camera 160 is configured to collect a picture of a user doing body motion
  • the processor 120 is configured to start the camera in response to a user-triggered instruction for turning on a motion count for a human body; and monitor the user through the camera when the camera is aligned with a target portion of the user a picture of the movement of the human body; the number of times of the human body movement of the user is increased once, each time the target portion is satisfied to meet the condition change condition of the screen, and the ratio change condition is that the target part occupies the picture
  • the change in the proportion changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing; after the camera detects that the movement of the human body is stopped, the human body motion is finally The number of times is notified to the user.
  • the user when the number of times the body movement is finally notified to the user, the user may be notified to the user through the interface displayed by the display device 110, or may be voiced to the user through the speaker 210, or a prompt tone may be presented to the user.
  • the processor 120 is further configured to: in response to a user-triggered instruction to record a standard motion of the human motion, before the user monitors a screen of the human motion by the camera; the camera is aligned with the user When the target part is used, the user monitors the screen of the standard action of the user to perform the human body movement; records the maximum proportion and the minimum ratio of the target part of the user corresponding to the standard action; and determines that each time the content is satisfied When the target portion occupies the condition change condition of the picture, determining a maximum value of the ratio and a ratio minimum value that occur when the ratio change condition is satisfied, and the ratio maximum value is an increase in the proportion of the target portion in the picture.
  • the ratio minimum value being a minimum value when the target portion accounts for a change in the proportion of the picture from a decrease to an increase; according to the maximum ratio of the proportional maximum value corresponding to the standard action Comparing the result, and a comparison result of the minimum ratio of the ratio minimum value to the standard action, determining the user of the user Operation of the quality movement, and notifies the user.
  • the user may be notified by the interface displayed by the display device 110, or may be voiced to the user through the speaker 210, or a prompt tone may be presented to the user.
  • the embodiment of the present application further provides a counting device for human body motion, which is applied to a terminal device including an imaging device, and may be implemented by the processor 120 in the mobile phone 100.
  • the camera device can be a focus camera. Or a normal camera and a range finder.
  • the apparatus may include:
  • the triggering module 1301 is configured to start the imaging device in response to a user-triggered instruction for turning on the counting of the human body motion;
  • the monitoring module 1302 is configured to monitor, by the imaging device, a change in a physical distance between the target portion and the imaging device when the imaging device is aligned with a target portion of the user;
  • the counting module 1303 is configured to increase the number of times of the human body motion of the user once every time the distance change condition of the physical distance between the target part and the imaging device is satisfied, the distance change condition is a change in physical distance between the target portion and the imaging device is changed from increasing to decreasing, or a change in physical distance between the target portion and the imaging device is changed from decreasing to increasing;
  • the notification module 1304 is configured to notify the user of the number of times the final body movement is performed after the motion of the human body is stopped by the imaging device.
  • the triggering module 1301 is further configured to: in response to a user-triggered instruction to record a standard motion of the human body motion;
  • the monitoring module 1302 is further configured to: when the camera device is aligned with a target portion of the user, When the imaging device monitors a standard action of the user to perform the human body motion, a distance between the target portion and the imaging device changes;
  • the device also includes:
  • a recording module 1305, configured to record a maximum distance and a minimum distance between the target part corresponding to the standard action and the imaging device;
  • a quality evaluation module 1306, configured to determine a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied, each time a distance change condition of the physical distance between the target portion and the imaging device is satisfied.
  • the maximum value of the distance is a maximum value when the physical distance between the target portion and the imaging device changes from increasing to decreasing
  • the minimum value is the physical state between the target portion and the imaging device. Determining the minimum value when the distance change is changed from decreasing to increasing; determining the result according to a comparison result of the maximum distance of the distance maximum value corresponding to the standard action, and a comparison result of the distance minimum value and the minimum distance corresponding to the standard action.
  • the notification module 1304 is further configured to notify the user of the motion quality of the user's human motion.
  • each functional module in each embodiment of the present application may be integrated into one processing. In the device, it can also be physically existed alone, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the hardware implementation of the terminal device can refer to FIG. 1 and its related description.
  • the imaging device is configured to monitor a physical distance change between a target portion of the user and the imaging device.
  • the camera device can be a focus camera.
  • the imaging device includes a normal camera and a ranging aid 220.
  • the processor 120 is configured to start the imaging device in response to an instruction triggered by a user for turning on a counting of a human body motion; and monitoring, by the imaging device, when the imaging device is aligned with the target portion a change in a physical distance between the target portion and the imaging device; and an increase in the number of times the human body movement of the user is increased each time a distance change condition of the physical distance between the target portion and the imaging device is satisfied
  • the distance change condition is that the physical distance change between the target portion and the imaging device is changed from increasing to decreasing, or the physical distance between the target portion and the imaging device is decreased by
  • the user when the number of times the body movement is finally notified to the user, the user may be notified to the user through the interface displayed by the display device 110, or may be voiced to the user through the speaker 210, or a prompt tone may be presented to the user.
  • the processor 120 is further configured to: in response to a user-triggered instruction to record a standard motion of the human motion; when the imaging device is aligned with a target portion of the user When the camera device monitors a standard action of the user to perform the human body motion, a distance between the target portion and the image capturing device changes; and a record between the target portion corresponding to the standard action and the camera device is recorded a maximum distance and a minimum distance; determining a distance maximum condition and a distance minimum value that occur when the distance change condition is satisfied, each time a distance change condition that satisfies a physical distance between the target portion and the imaging device is determined
  • the maximum distance is a maximum value when the physical distance between the target portion and the imaging device changes from increasing to decreasing, and the minimum value is a physical distance between the target portion and the imaging device.
  • the boundary displayed by the display device 110 can be displayed.
  • the user is notified to the user, or the user is voiced through the speaker 210, or a prompt tone is presented to the user.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A method and device for counting human motions, which carries out counting of human motions by means of a terminal device. Provided is a method for automatically counting human motions, thus reducing to a certain extent the error rate in counting. The method, applied to a terminal device comprising a camera, comprises: the terminal device starts the camera in response to an instruction triggered by a user for starting counting of human motions; when the camera is aimed at a target part of the user, the terminal device monitors the image of the motions made by the user by means of the camera; every time that the terminal device determines that a proportion of change condition for the target part in the image is met, the terminal device adds one to the number of human motions of the user, the proportion of change condition being that the proportion of the target part in the image changes from increasing to decreasing, or the proportion of the target part in the image changes from decreasing to increasing; and the terminal device informs the user of the final number of human motions after detecting by means of the camera that the human motion has stopped.

Description

一种针对人体运动的计数方法及装置Counting method and device for human body movement
本申请要求在2017年3月3日提交中国专利局、申请号为201710124463.2、发明名称为“一种通过手机摄像头统计俯卧撑个数以及评估动作质量的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on March 3, 2017, the Chinese Patent Office, application number 201710124463.2, the invention titled "a method and equipment for counting the number of push-ups by mobile phone camera and evaluating the quality of motion". The entire contents of this application are incorporated herein by reference.
技术领域Technical field
本申请涉及信息技术领域,尤其涉及一种针对人体运动的计数方法及装置。The present application relates to the field of information technology, and in particular, to a method and device for counting human motion.
背景技术Background technique
目前用户在做运动(比如:俯卧撑、仰卧起坐、高抬腿)时,均由人工来进行计数。进行计数的人如果注意力不集中,很容易出现计数错误。At present, when users are doing sports (such as push-ups, sit-ups, and high-lifting legs), they are counted manually. If the person counting is not focused, it is easy to count errors.
发明内容Summary of the invention
本申请实施例提供了一种针对人体运动的计数方法及装置,通过终端设备实现人体运动计数,提供一种自动化的人体运动计数方法,相比人工来进行计数,进行计数的人如果注意力不集中,很容易出现计数错误的情况,在一定程度上降低了计数错误率。The embodiment of the present application provides a counting method and device for human body motion, which realizes human body motion counting through a terminal device, and provides an automatic human body motion counting method, and the person who counts is not paying attention when compared with manual counting. Concentration, it is easy to count the wrong situation, which reduces the counting error rate to some extent.
第一方面,本申请实施例提供了一种针对人体运动的计数方法,所述方法应用于包括摄像头的终端设备,包括:所述终端设备响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像头;所述终端设备在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做人体运动的画面;所述终端设备在确定每满足一次所述目标部位占所述画面的比例变化条件时,为所述用户的人体运动的次数增加一次,所述比例变化条件为所述目标部位占所述画面的比例变化由增大变到减小、或者所述目标部位占所述画面的比例变化由减小变到增大;所述终端设备通过所述摄像头监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。In a first aspect, the embodiment of the present application provides a method for counting a human body motion, where the method is applied to a terminal device including a camera, and the method includes: the terminal device is configured to start an instruction for counting a human body motion in response to a user trigger Activating the camera; the terminal device monitors, by the camera, a picture of the human body movement when the camera is aligned with the target part of the user; the terminal device determines that the target part is satisfied once When the ratio change condition of the picture is occupied, the number of times of the human body movement of the user is increased once, and the ratio change condition is that the proportion change of the target part in the picture changes from increasing to decreasing, or The proportion of the target portion in the picture changes from decreasing to increasing; the terminal device notifies the user of the number of times the body movement is finally performed after the body motion is stopped by the camera.
本申请中的人体运动是指用户运动时,身体的某些部位相对空间中的某些点有起有落的运动类型。The human body motion in the present application refers to a type of motion in which certain parts of the body have a certain position in the relative space when the user is exercising.
上述设计,通过终端设备的摄像头监控用户的目标部位占所述画面的比例变化,从而实现由终端设备的自动化计数,不再需要人工去计数,在一定程度上提高了计数的正确率。In the above design, the target device of the terminal device monitors the proportion change of the target part of the user to the screen, thereby realizing automatic counting by the terminal device, eliminating the need for manual counting, and improving the correct rate of counting to a certain extent.
终端设备在通知用户运动的次数时,可以通过界面显示,还可以通过语音等等。When the terminal device notifies the user of the number of times of exercise, the terminal device can display through the interface, and can also pass voice or the like.
另外,终端设备通过摄像头监测到所述人体运动停止后,可以立即将最终的人体运动的次数通知给用户,还可以先保存下来,接收到用户触发的用于查看人体运动的次数的指令时,通过给用户。还可以在将人体运动的次数通知给用户,设置时间,在达到设置的时间时,再将人体运动的次数通过给用户。In addition, after the terminal device monitors that the movement of the human body is stopped by the camera, the user can immediately notify the user of the number of times of the final body movement, and can also save the first time, and receive an instruction triggered by the user for viewing the number of times of the human body movement. By giving the user. It is also possible to notify the user of the number of times the human body moves, set the time, and when the set time is reached, pass the number of times the human body moves to the user.
在一种可能的设计中,所述终端设备通过所述摄像头监控用户做人体运动的画面之前,所述方法还包括:所述终端设备响应于用户触发的记录所述人体运动的标准动作的指令;所述终端设备在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做所述人体运动的标准动作的画面;所述终端设备记录标准动作对应的所述用户的目标部位占所述画面的最大比例以及最小比例;所述终端设备确定每满足一次所述目标部位占所述画面的比例变化条件时,确定满足所述比例变化条件时出现的比例最大值以及比例最小 值,所述比例最大值为所述目标部位占所述画面的比例变化由增大变到减小时的最大值,所述比例最小值为所述目标部位占所述画面的比例变化由减少变到增大时的最小值;所述终端设备根据所述比例最大值与标准动作对应的最大比例的比较结果、以及所述比例最小值与标准动作对应的最小比例的比较结果,确定所述用户的人体运动的动作质量,并通知给用户。In a possible design, before the terminal device monitors the user's motion of the human body motion through the camera, the method further includes: the terminal device responding to the user-triggered instruction for recording the standard motion of the human body motion The terminal device monitors, by the camera, a screen of a standard action of the user to perform the human body motion when the camera is aligned with a target portion of the user; the terminal device records the user corresponding to the standard action a target portion occupies a maximum ratio and a minimum ratio of the picture; the terminal device determines, when each of the target parts accounts for a ratio change condition of the picture, determines a maximum value and a ratio of a ratio that occurs when the ratio change condition is satisfied Minimum a value, the maximum value of the ratio is a maximum value when the target portion accounts for a change in the proportion of the picture from an increase to a decrease, and the ratio minimum value is a change in a ratio of the target portion to the picture. a minimum value at the time of the increase; the terminal device determines the user according to a comparison result of the maximum ratio of the proportional maximum value corresponding to the standard action, and a comparison result of the minimum ratio of the ratio minimum value and the standard action The quality of the movement of the human body is notified to the user.
上述设计,提供了一种评估运动质量的自动化方式。The above design provides an automated way to assess the quality of motion.
终端设备在通知用户运动的动作质量时,可以通过界面显示,还可以通过语音等等。When the terminal device notifies the user of the motion quality of the motion, the terminal device can display through the interface, and can also pass voice or the like.
第二方面,本申请实施例提供了一种针对人体运动的计数方法,所述方法应用于包括摄像设备的终端设备,包括:所述终端设备响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像设备;所述终端设备在所述摄像设备对准于所述用户的目标部位时,通过所述摄像设备监控所述目标部位与所述摄像设备之间的物理距离的变化;所述终端设备在确定每满足一次所述目标部位与所述摄像设备之间物理距离的距离变化条件时,为所述用户的人体运动的次数增加一次,所述距离变化条件为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小、或者所述目标部位与所述摄像设备之间的物理距离变化由减小变到增大;所述终端设备通过摄像设备监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。In a second aspect, the embodiment of the present application provides a method for counting human motion, and the method is applied to a terminal device including an imaging device, including: the terminal device is configured to start counting for a human body motion in response to a user trigger. Instructing to activate the imaging device; the terminal device monitors a change in physical distance between the target portion and the imaging device by the imaging device when the imaging device is aligned with a target portion of the user The terminal device increases the number of times of the human body motion for the user once the distance change condition of the physical distance between the target portion and the imaging device is satisfied once, and the distance change condition is the target a change in physical distance between the portion and the imaging device is changed from increasing to decreasing, or a change in physical distance between the target portion and the imaging device is changed from decreasing to increasing; the terminal device is photographed After the device detects that the movement of the human body is stopped, the device notifies the user of the number of times the body movement is finally performed.
其中,所述摄像设备为对焦摄像头,或者,所述摄像设备包括摄像头以及测距辅助装置。Wherein, the imaging device is a focusing camera, or the imaging device comprises a camera and a ranging aid.
上述设计,通过终端设备的摄像设备监控用户的目标部位与摄像设备之间的物理距离的变化,从而实现由终端设备的自动化计数,不再需要人工去计数,在一定程度上提高了计数的正确率。The above design monitors the change of the physical distance between the target part of the user and the imaging device through the imaging device of the terminal device, thereby realizing automatic counting by the terminal device, eliminating the need for manual counting, and improving the counting correctly to a certain extent. rate.
终端设备在通知用户运动的次数时,可以通过界面显示,还可以通过语音等等。When the terminal device notifies the user of the number of times of exercise, the terminal device can display through the interface, and can also pass voice or the like.
另外,终端设备通过摄像头监测到所述人体运动停止后,可以立即将最终的人体运动的次数通知给用户,还可以先保存下来,接收到用户触发的用于查看人体运动的次数的指令时,通过给用户。还可以在将人体运动的次数通知给用户,设置时间,在达到设置的时间时,再将人体运动的次数通过给用户。In addition, after the terminal device monitors that the movement of the human body is stopped by the camera, the user can immediately notify the user of the number of times of the final body movement, and can also save the first time, and receive an instruction triggered by the user for viewing the number of times of the human body movement. By giving the user. It is also possible to notify the user of the number of times the human body moves, set the time, and when the set time is reached, pass the number of times the human body moves to the user.
在一种可能的设计中,所述终端设备通过所述摄像设备监控所述目标部位与所述摄像设备之间的物理距离的变化之前,所述方法还包括:In a possible design, before the terminal device monitors a change in the physical distance between the target portion and the imaging device by the imaging device, the method further includes:
所述终端设备响应于用户触发的记录所述人体运动的标准动作的指令;The terminal device is responsive to a user-triggered instruction to record a standard motion of the human body motion;
所述终端设备在所述摄像设备对准于所述用户的目标部位时,通过所述摄像设备监控用户做所述人体运动的标准动作时,所述目标部位与所述摄像设备之间的距离变化;When the imaging device is aligned with the target portion of the user, the terminal device monitors a distance between the target portion and the imaging device when the user performs a standard motion of the human body motion through the imaging device. Variety;
所述终端设备记录标准动作对应的所述目标部位与所述摄像设备之间的最大距离以及最小距离;The terminal device records a maximum distance and a minimum distance between the target part corresponding to the standard action and the imaging device;
所述终端设备确定每满足一次所述目标部位与所述摄像设备之间的物理距离的距离变化条件时,确定满足所述距离变化条件时出现的距离最大值以及距离最小值,所述距离最大值为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小时的最大值,所述距离最小值为所述目标部位与所述摄像设备之间的物理距离变化由减少变到增大时的最小值;Determining, by the terminal device, a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied, each time the distance change condition that satisfies the physical distance between the target part and the imaging apparatus is determined, the distance being the largest a value is a maximum value when the physical distance between the target portion and the imaging device changes from increasing to decreasing, and the minimum value is a change in physical distance between the target portion and the imaging device. Reduce the minimum value when it changes to increase;
所述终端设备根据所述距离最大值与标准动作对应的最大距离的比较结果、以及所述距离最小值与标准动作对应的最小距离的比较结果,确定所述用户的人体运动的动作质 量,并通知给用户。Determining, by the terminal device, the action quality of the user's human body motion according to a comparison result of the distance maximum value corresponding to the maximum distance corresponding to the standard action and a comparison result of the distance minimum value and the minimum distance corresponding to the standard action Quantity and notify the user.
上述设计,提供了一种评估运动质量的自动化方式。The above design provides an automated way to assess the quality of motion.
终端设备在通知用户运动的动作质量时,可以通过界面显示,还可以通过语音等等。When the terminal device notifies the user of the motion quality of the motion, the terminal device can display through the interface, and can also pass voice or the like.
第三方面,本申请实施例提供了一种针对人体运动的计数装置,包括摄像头、处理器;In a third aspect, the embodiment of the present application provides a counting device for human motion, including a camera and a processor;
所述摄像头,用于采集用户做人体运动的画面;The camera is configured to collect a picture of a user doing body motion;
所述处理器,用于响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像头;在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做人体运动的画面;在确定每满足一次所述目标部位占所述画面的比例变化条件时,为所述用户的人体运动的次数增加一次,所述比例变化条件为所述目标部位占所述画面的比例变化由增大变到减小、或者所述目标部位占所述画面的比例变化由减小变到增大;通过所述摄像头监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。The processor is configured to start the camera in response to a user-triggered instruction for turning on a motion count for a human body; and monitor the user to perform a human body through the camera when the camera is aligned with a target portion of the user a screen of motion; determining, once each time the target portion meets a condition change ratio of the screen, increasing the number of times of movement of the user's body, the ratio change condition being that the target portion occupies the screen The change in the ratio changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing; after the camera detects that the movement of the human body is stopped, the movement of the human body is finally Notify the user of the number of times.
在一种可能的设计中,所述处理器,还用于:在通过所述摄像头监控用户做人体运动的画面之前,响应于用户触发的记录所述人体运动的标准动作的指令;在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做所述人体运动的标准动作的画面;记录标准动作对应的所述用户的目标部位占所述画面的最大比例以及最小比例;确定每满足一次所述目标部位占所述画面的比例变化条件时,确定满足所述比例变化条件时出现的比例最大值以及比例最小值,所述比例最大值为所述目标部位占所述画面的比例变化由增大变到减小时的最大值,所述比例最小值为所述目标部位占所述画面的比例变化由减少变到增大时的最小值;根据所述比例最大值与标准动作对应的最大比例的比较结果、以及所述比例最小值与标准动作对应的最小比例的比较结果,确定所述用户的人体运动的动作质量,并通知给用户。In a possible design, the processor is further configured to: in response to a user-triggered instruction to record a standard motion of the human motion, before the user monitors a screen of the human motion by the camera; When the camera is aligned with the target portion of the user, the user monitors the screen of the standard motion of the human body movement by the camera; and records the maximum proportion and the minimum ratio of the target portion of the user corresponding to the standard action. Determining, when each of the target parts accounts for a ratio change condition of the picture, determining a maximum value of the ratio and a ratio minimum value that occur when the ratio change condition is satisfied, the ratio maximum value being that the target part accounts for a maximum value when the scale change of the screen changes from an increase to a decrease, wherein the minimum value is a minimum value when the target portion accounts for a change in the ratio of the screen from a decrease to an increase; The comparison result of the maximum ratio corresponding to the standard action, and the comparison result of the minimum ratio of the ratio minimum value and the standard action Determining the quality of operation of the body movement of the user, and notifies the user.
一种可能的设计中,所述装置还可以包括显示设备或者扬声器;In a possible design, the device may further comprise a display device or a speaker;
所述处理器在通知用户时,通过显示设备的显示界面显示给用户;或者通过扬声器通知给用户。The processor displays to the user through the display interface of the display device when notifying the user; or notifies the user through the speaker.
第四方面,本申请实施例还提供了一种针对人体运动的计数装置,包括摄像设备、处理器;In a fourth aspect, the embodiment of the present application further provides a counting device for human motion, including an imaging device and a processor;
所述摄像设备,用于监控用户的目标部位与所述摄像设备之间的物理距离变化;The imaging device is configured to monitor a physical distance change between a target part of the user and the imaging device;
所述处理器,用于响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像设备;在所述摄像设备对准于所述目标部位时,通过所述摄像设备监控所述目标部位与所述摄像设备之间的物理距离的变化;在确定每满足一次所述目标部位与所述摄像设备之间物理距离的距离变化条件时,为所述用户的人体运动的次数增加一次,所述距离变化条件为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小、或者所述目标部位与所述摄像设备之间的物理距离变化由减小变到增大;通过所述摄像设备监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。The processor is configured to start the imaging device in response to a user-triggered instruction for turning on a motion count for a human body; and monitor the image by the imaging device when the imaging device is aligned with the target portion a change in the physical distance between the target portion and the imaging device; when determining a distance change condition that satisfies the physical distance between the target portion and the imaging device once, the number of times the human body movement of the user is increased once The distance change condition is that the physical distance change between the target portion and the imaging device is changed from increasing to decreasing, or the physical distance between the target portion and the imaging device is changed from decreasing After the movement of the human body is stopped by the imaging device, the number of times the final body movement is finally notified to the user.
在一种可能的设计中,所述摄像设备为对焦摄像头,或者,所述摄像设备包括摄像头以及测距辅助装置。In one possible design, the imaging device is a focusing camera, or the imaging device includes a camera and a ranging aid.
在一种可能的设计中,所述处理器,还用于:响应于用户触发的记录所述人体运动的标准动作的指令;在所述摄像设备对准于所述用户的目标部位时,通过所述摄像设备监控用户做所述人体运动的标准动作时,所述目标部位与所述摄像设备之间的距离变化;记录标准动作对应的所述目标部位与所述摄像设备之间的最大距离以及最小距离;确定每满足 一次所述目标部位与所述摄像设备之间的物理距离的距离变化条件时,确定满足所述距离变化条件时出现的距离最大值以及距离最小值,所述距离最大值为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小时的最大值,所述距离最小值为所述目标部位与所述摄像设备之间的物理距离变化由减少变到增大时的最小值;根据所述距离最大值与标准动作对应的最大距离的比较结果、以及所述距离最小值与标准动作对应的最小距离的比较结果,确定所述用户的人体运动的动作质量,并通知给用户。In a possible design, the processor is further configured to: in response to a user-triggered instruction to record a standard motion of the human motion; when the camera device is aligned with a target portion of the user, The camera device monitors a distance change between the target portion and the camera device when the user performs the standard action of the human body motion; and records a maximum distance between the target portion and the camera device corresponding to the standard action And the minimum distance; Determining a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied, when the distance change condition of the physical distance between the target portion and the imaging device is once, the distance maximum value is the target portion and a maximum value when the physical distance between the imaging devices changes from increasing to decreasing, the minimum value being a change in physical distance between the target portion and the imaging device from a decrease to an increase a minimum value; determining, according to a comparison result of the distance maximum value and a maximum distance corresponding to the standard action, and a comparison result of the distance minimum value and a minimum distance corresponding to the standard action, determining an action quality of the user's body motion, and notifying To the user.
一种可能的设计中,所述装置还可以包括显示设备或者扬声器;In a possible design, the device may further comprise a display device or a speaker;
所述处理器在通知用户时,通过显示设备的显示界面显示给用户;或者通过扬声器通知给用户。The processor displays to the user through the display interface of the display device when notifying the user; or notifies the user through the speaker.
第五方面,本申请实施例提供了一种针对人体运动的计数装置,所述装置应用于包括摄像头的终端设备,所述装置包括:In a fifth aspect, the embodiment of the present application provides a counting device for human body motion, the device is applied to a terminal device including a camera, and the device includes:
触发模块,用于响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像头;a triggering module, configured to start the camera in response to a user-triggered instruction for turning on a motion count for a human body;
监控模块,用于在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做人体运动的画面;a monitoring module, configured to monitor, by the camera, a picture of the human body movement when the camera is aligned with the target portion of the user;
计数模块,用于在确定每满足一次所述目标部位占所述画面的比例变化条件时,为所述用户的人体运动的次数增加一次,所述比例变化条件为所述目标部位占所述画面的比例变化由增大变到减小、或者所述目标部位占所述画面的比例变化由减小变到增大;a counting module, configured to increase the number of times of the human body motion of the user once every time the target part meets the condition change condition of the screen, and the ratio change condition is that the target part occupies the screen The change in the proportion changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing;
通知模块,用于通过所述摄像头监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。The notification module is configured to notify the user of the number of times the final body movement is performed after the movement of the human body is stopped by the camera.
在一种可能的设计中,所述触发模块,还用于响应于用户触发的记录所述人体运动的标准动作的指令;In a possible design, the triggering module is further configured to respond to a user-triggered instruction for recording a standard motion of the human motion;
所述监控模块,还用于在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做所述人体运动的标准动作的画面;The monitoring module is further configured to monitor, by the camera, a screen of a standard action of the user to perform the human body motion when the camera is aligned with a target portion of the user;
还包括记录模块,用于记录标准动作对应的所述用户的目标部位占所述画面的最大比例以及最小比例;And a recording module, configured to record a maximum proportion and a minimum ratio of the target part of the user corresponding to the standard action to the picture;
质量评估模块,用于确定每满足一次所述目标部位占所述画面的比例变化条件时,确定满足所述比例变化条件时出现的比例最大值以及比例最小值,所述比例最大值为所述目标部位占所述画面的比例变化由增大变到减小时的最大值,所述比例最小值为所述目标部位占所述画面的比例变化由减少变到增大时的最小值;根据所述比例最大值与标准动作对应的最大比例的比较结果、以及所述比例最小值与标准动作对应的最小比例的比较结果,确定所述用户的人体运动的动作质量;a quality evaluation module, configured to determine a ratio maximum value and a ratio minimum value that occur when the ratio change condition of the target portion is satisfied once the target portion is satisfied, and the ratio maximum value is a maximum value at which the target portion occupies a change in the ratio of the picture from an increase to a decrease, and the minimum value of the target portion is a minimum value at which the change in the ratio of the target portion to the picture changes from decreasing to increasing; Determining a comparison result of a maximum ratio of a maximum value corresponding to a standard action, and a comparison result of a minimum ratio of the ratio minimum value and a standard action, determining an action quality of the human body motion of the user;
所述通知模块,还用于将所述用户的人体运动的动作质量通知给用户。The notification module is further configured to notify the user of the motion quality of the user's human motion.
第六方面,本申请实施例提供了一种针对人体运动的计数装置,所述装置应用于包括摄像设备的终端设备,包括:In a sixth aspect, the embodiment of the present application provides a counting device for moving a human body, and the device is applied to a terminal device including an imaging device, including:
触发模块,用于响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像设备;a triggering module, configured to start the imaging device in response to a user-triggered instruction for turning on a motion count for a human body;
监控模块,用于在所述摄像设备对准于所述用户的目标部位时,通过所述摄像设备监控所述目标部位与所述摄像设备之间的物理距离的变化;a monitoring module, configured to monitor, by the imaging device, a change in a physical distance between the target portion and the imaging device when the imaging device is aligned with a target portion of the user;
计数模块,用于在确定每满足一次所述目标部位与所述摄像设备之间物理距离的距离 变化条件时,为所述用户的人体运动的次数增加一次,所述距离变化条件为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小、或者所述目标部位与所述摄像设备之间的物理距离变化由减小变到增大;a counting module, configured to determine a distance between a physical distance between the target portion and the imaging device every time When the condition is changed, the number of times of the human body movement of the user is increased once, the distance change condition is that the physical distance change between the target part and the image capturing apparatus is changed from increasing to decreasing, or the target part is changed. The physical distance change from the imaging device changes from decreasing to increasing;
通知模块,用于通过摄像设备监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。The notification module is configured to notify the user of the number of times the final body movement is performed after the movement of the human body is stopped by the imaging device.
在一种可能的设计中,所述摄像设备为对焦摄像头,或者,所述摄像设备包括摄像头以及测距辅助装置。In one possible design, the imaging device is a focusing camera, or the imaging device includes a camera and a ranging aid.
在一种可能的设计中,所述触发模块,还用于响应于用户触发的记录所述人体运动的标准动作的指令;In a possible design, the triggering module is further configured to respond to a user-triggered instruction for recording a standard motion of the human motion;
所述监控模块,还用于在所述摄像设备对准于所述用户的目标部位时,通过所述摄像设备监控用户做所述人体运动的标准动作时,所述目标部位与所述摄像设备之间的距离变化;The monitoring module is further configured to: when the camera device is aligned with the target portion of the user, when the camera device monitors a standard motion of the user to perform the human body motion, the target portion and the camera device The distance between them changes;
所述装置还包括:The device also includes:
记录模块,用于记录标准动作对应的所述目标部位与所述摄像设备之间的最大距离以及最小距离;a recording module, configured to record a maximum distance and a minimum distance between the target part corresponding to the standard action and the imaging device;
质量评估模块,用于确定每满足一次所述目标部位与所述摄像设备之间的物理距离的距离变化条件时,确定满足所述距离变化条件时出现的距离最大值以及距离最小值,所述距离最大值为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小时的最大值,所述距离最小值为所述目标部位与所述摄像设备之间的物理距离变化由减少变到增大时的最小值;根据所述距离最大值与标准动作对应的最大距离的比较结果、以及所述距离最小值与标准动作对应的最小距离的比较结果,确定所述用户的人体运动的动作质量;a quality evaluation module, configured to determine a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied, each time a distance change condition that satisfies a physical distance between the target portion and the imaging device is determined The maximum distance is a maximum value when the physical distance between the target portion and the imaging device changes from increasing to decreasing, and the minimum value is a physical distance between the target portion and the imaging device. Determining the minimum value when the change is changed from decreasing to increasing; determining the user according to a comparison result of the maximum distance of the distance maximum value corresponding to the standard action, and a comparison result of the minimum distance of the distance minimum value and the standard action The quality of the movement of the human body;
所述通知模块,还用于将所述用户的人体运动的动作质量通知给用户。The notification module is further configured to notify the user of the motion quality of the user's human motion.
第七方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储软件程序,所述软件程序在被一个或多个处理器读取并执行时可实现上述方法。In a seventh aspect, the embodiment of the present application provides a computer readable storage medium, where the software program is stored in a computer readable storage medium, and the software program can implement the above when being read and executed by one or more processors method.
附图说明DRAWINGS
图1为本申请实施例提供的手机结构示意图;FIG. 1 is a schematic structural diagram of a mobile phone according to an embodiment of the present application;
图2为本申请实施例提供的第一种人体运动计数方法流程图;2 is a flowchart of a first human body motion counting method according to an embodiment of the present application;
图3为本申请实施例提供的第一种俯卧撑计数方法流程图;3 is a flowchart of a first push-up counting method according to an embodiment of the present application;
图4为本申请实施例提供的采用终端设备进行俯卧撑计数的示意图;4 is a schematic diagram of performing push-up counting by using a terminal device according to an embodiment of the present application;
图5A为本申请实施例提供的图4中a对应的摄像头采集到的画面示意图;FIG. 5A is a schematic diagram of a screen collected by a camera corresponding to a in FIG. 4 according to an embodiment of the present application; FIG.
图5B为本申请实施例提供的图4中b对应的摄像头采集到的画面示意图;FIG. 5B is a schematic diagram of a screen collected by a camera corresponding to b in FIG. 4 according to an embodiment of the present application; FIG.
图6为本申请实施例提供的用户做俯卧撑时目标部位占画面的比例变化示意图;FIG. 6 is a schematic diagram of a proportion change of a target part in a screen when a user performs push-ups according to an embodiment of the present application;
图7为本申请实施例提供的第一种俯卧撑动作质量评估方法流程图;FIG. 7 is a flowchart of a method for evaluating a quality of a first push-up motion according to an embodiment of the present application;
图8为本申请实施例提供的第二种人体运动计数方法流程图;FIG. 8 is a flowchart of a second human body motion counting method according to an embodiment of the present application;
图9为本申请实施例提供的第二种俯卧撑计数方法流程图;FIG. 9 is a flowchart of a second method for counting push-ups according to an embodiment of the present application;
图10为本申请实施例提供的用户做俯卧撑时目标部位与摄像设备之间的物理距离变化示意图;FIG. 10 is a schematic diagram showing changes in physical distance between a target portion and an imaging device when a user performs push-ups according to an embodiment of the present application;
图11为本申请实施例提供的第二种俯卧撑动作质量评估方法流程图;FIG. 11 is a flowchart of a method for evaluating quality of a second push-up motion according to an embodiment of the present application;
图12为本申请实施例提供的一种人体运动计数装置示意图; FIG. 12 is a schematic diagram of a human body motion counting device according to an embodiment of the present application;
图13为本申请实施例提供的另一种人体运动计数装置示意图。FIG. 13 is a schematic diagram of another human motion counting device according to an embodiment of the present application.
具体实施方式detailed description
用户在做人体运动(比如:俯卧撑、仰卧起坐、高抬腿),身体的某些部位相对空间中的某些点有起有落。有些运动,身体的某些部位相对的地面有起落,比如做俯卧撑时,脸部或者头部等上身部位相对于地面循环式的接近->远离;比如做高抬腿时,腿部以及脚部相对于地面循环式的接近->远离。比如做仰卧起做时,脸部或者头部等上身部位相对用户坐下来的头部区域循环式的接近->远离。The user is doing body exercises (such as push-ups, sit-ups, and high-lifting legs), and some parts of the body have ups and downs in certain points in the space. In some sports, some parts of the body have ups and downs on the ground. For example, when doing push-ups, the upper part of the face or head is close to the ground--away; for example, when raising legs, legs and feet Close to the ground-circulating approach -> away. For example, when doing sit-ups, the upper part of the face or head is close to the head area that the user sits down->away.
通过上述发现的规律,申请人通过终端设备上的摄像头捕捉身体的目标部位的图像中目标部位的对于终端设备的靠近与远离,实现人体运动计数。另外,还可以在计数前做一个标准动作,然后在实际做运动时,通过每次运动动作与标准动作作对比,来评估运动动作的质量。Through the above-mentioned discovery rule, the applicant captures the proximity and distance of the target part of the target part of the image of the target part of the body through the camera on the terminal device to realize the body movement count. In addition, you can also do a standard action before counting, and then evaluate the quality of the motion action by comparing each motion action with the standard action when actually doing the exercise.
基于此,本申请实施例提供一种针对人体运动的计数方法及装置,通过终端设备实现人体运动计数,提供一种自动化的人体运动计数方法,相比人工来进行计数。进行计数的人如果注意力不集中,很容易出现计数错误的情况,在一定程度上降低了计数错误率。其中,方法和装置是基于同一发明构思的,由于方法及装置解决问题的原理相似,因此装置与方法的实施可以相互参见,重复之处不再赘述。Based on this, the embodiment of the present application provides a counting method and device for human body motion, which realizes human body motion counting through a terminal device, and provides an automated human body motion counting method, which is compared with manual counting. If the person counting is not focused, it is easy to count the error and reduce the counting error rate to some extent. The method and the device are based on the same inventive concept. Since the principles of the method and the device for solving the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated description is not repeated.
本申请实施例的针对人体运动的计数方案可使用各种具有摄像头的终端设备进行实施,该终端设备包括但不限于个人计算机、服务器计算机、手持式或膝上型设备、移动设备(比如手机、移动电话、平板电脑、个人数字助理、媒体播放器等等)、消费型电子设备、小型计算机、大型计算机,等等。下面以手机为例对本申请实施例提供的方案进行具体描述。The counting scheme for human motion in the embodiments of the present application may be implemented using various terminal devices having a camera, including but not limited to a personal computer, a server computer, a handheld or laptop device, a mobile device (such as a mobile phone, Mobile phones, tablets, personal digital assistants, media players, etc.), consumer electronics, small computers, mainframe computers, and more. The solution provided by the embodiment of the present application is specifically described below by taking a mobile phone as an example.
参考图1所示,为本申请实施例应用的手机的硬件结构示意图。如图1所示,手机100包括显示设备110、处理器120以及存储器130。存储器130可用于存储软件程序以及数据,处理器120通过运行存储在存储器130的软件程序以及数据,从而执行手机100的各种功能应用以及数据处理。存储器130可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如图像采集功能等)等;存储数据区可存储根据手机100的使用所创建的数据(比如音频数据、电话本、可交换图像文件EXIF等)等。此外,存储器130可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。处理器120是手机100的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器130内的软件程序和/或数据,执行手机100的各种功能和处理数据,从而对手机进行整体监控。处理器120可以包括一个或多个通用处理器,还可包括一个或多个DSP(Digital Signal Processor,数字信号处理器),用于执行相关操作,以实现本申请实施例所提供的技术方案。Referring to FIG. 1 , it is a schematic diagram of a hardware structure of a mobile phone applied to an embodiment of the present application. As shown in FIG. 1, the mobile phone 100 includes a display device 110, a processor 120, and a memory 130. The memory 130 can be used to store software programs and data, and the processor 120 executes various functional applications and data processing of the mobile phone 100 by running software programs and data stored in the memory 130. The memory 130 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as an image collection function, etc.), and the like; and the storage data area may be stored according to the use of the mobile phone 100. The created data (such as audio data, phone book, exchangeable image file EXIF, etc.). Moreover, memory 130 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The processor 120 is a control center of the mobile phone 100, and connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions and processing data of the mobile phone 100 by running or executing software programs and/or data stored in the memory 130. In order to monitor the mobile phone as a whole. The processor 120 may include one or more general-purpose processors, and may also include one or more DSPs (Digital Signal Processors) for performing related operations to implement the technical solutions provided by the embodiments of the present application.
手机100中还包括用于拍摄照片或视频的摄像头160,摄像头160监控用户做人体运动的画面。摄像头160可以是普通摄像头,也可以是对焦摄像头。The mobile phone 100 also includes a camera 160 for taking a photo or video, and the camera 160 monitors the user's picture of the human body movement. The camera 160 can be a normal camera or a focus camera.
手机100还可以包括输入设备140,用于接收输入的数字信息、字符信息或接触式触摸操作/非接触式手势,以及产生与手机100的用户设置以及功能控制有关的信号输入等。具体地,本申请实施例中,该输入设备140可以包括触控面板141。触控面板141,也称 为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板141上或在触控面板141的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板141可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器120,并能接收处理器120发来的命令并加以执行。例如,用户在触控面板141上用手指单击用于开启俯卧撑计数的图标或者图例等等,触摸检测装置检测到此次单击带来的这个信号,然后将该信号传送给触摸控制器,触摸控制器再将这个信号转换成坐标发送给处理器120,处理器120根据该坐标和该信号的类型(单击或双击)确定对该图标或者图例所执行的操作(开启),然后,确定执行该操作所需要占用的内存空间,若需要占用的内存空间小于空闲内存,则将该摄像头启动后的界面全屏显示在显示设备包括的显示面板111上,从而实现启动俯卧撑计数。The mobile phone 100 may also include an input device 140 for receiving input digital information, character information or contact touch/contactless gestures, and generating signal inputs related to user settings and function control of the handset 100, and the like. Specifically, in the embodiment of the present application, the input device 140 may include a touch panel 141. Touch panel 141, also called For the touch screen, a touch operation on or near the user can be collected (such as the user using a finger, a stylus, or the like on any suitable object or accessory on the touch panel 141 or on the touch panel 141), and according to a preset The program drives the corresponding connection device. Optionally, the touch panel 141 may include two parts: a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 120 is provided and can receive commands from the processor 120 and execute them. For example, the user clicks an icon or a legend for opening the push-up count on the touch panel 141 with a finger, the touch detection device detects the signal brought by the click, and then transmits the signal to the touch controller. The touch controller then converts this signal into coordinates and sends it to the processor 120. The processor 120 determines the operation (on) for the icon or legend based on the coordinates and the type of the signal (click or double click), and then determines The memory space required for the operation is performed. If the occupied memory space is smaller than the free memory, the interface after the camera is started is displayed on the display panel 111 included in the display device in full screen, thereby implementing the push-up counting.
触控面板141可以采用电阻式、电容式、红外线以及表面声波等多种类型实现。除了触控面板141,输入设备140还可以包括其他输入设备142,其他输入设备142可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The touch panel 141 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 141, the input device 140 may further include other input devices 142, which may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like. One or more of them.
显示设备110,包括的显示面板111,用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单界面等,在本申请实施例中主要用于显示手机100中摄像头采集到的画面。可选的,显示面板可以采用液晶显示器(英文:Liquid Crystal Display,简称:LCD)或OLED(英文:Organic Light-Emitting Diode,简称:有机发光二极管)等形式来配置显示面板111。在其他一些实施例中,触控面板141可覆盖显示面板111上,形成触摸显示屏。The display device 110 includes a display panel 111 for displaying information input by the user or information provided to the user, and various menu interfaces of the mobile phone 100, etc., which are mainly used to display the camera collected in the mobile phone 100 in the embodiment of the present application. Picture. Optionally, the display panel can be configured by using a liquid crystal display (English: Liquid Crystal Display, LCD for short) or OLED (Organic Light-Emitting Diode). In some other embodiments, the touch panel 141 can cover the display panel 111 to form a touch display screen.
除以上之外,手机100还可以包括用于给其他模块供电的电源150。手机100还可以包括一个或多个传感器170,例如加速度传感器、光线传感器、GPS传感器、红外传感器、激光传感器、位置传感器或镜头指向角度传感器等。手机100还可以包括无线射频(Radio Frequency,RF)电路180,用于与无线网络设备进行网络通信,还可以包括WiFi模块190,用于与其他设备进行WiFi通信,还可以包括扬声器210,用于播放音乐、语音提示或者发出提示音等等,还可以包括测距辅助装置220,测距辅助装置220可以为激光发射器、红外发射器等等。In addition to the above, the handset 100 can also include a power source 150 for powering other modules. The handset 100 may also include one or more sensors 170, such as an accelerometer, a light sensor, a GPS sensor, an infrared sensor, a laser sensor, a position sensor or a lens pointing angle sensor, and the like. The mobile phone 100 may further include a radio frequency (RF) circuit 180 for performing network communication with the wireless network device, and may further include a WiFi module 190 for performing WiFi communication with other devices, and may further include a speaker 210 for Playing music, voice prompts or sounding prompts, etc., may also include ranging aid 220, which may be a laser transmitter, an infrared emitter, or the like.
本申请实施例提供的针对人体运动的计数方法可以实现在图1所示的存储软件程序中,具体可以由处理器120来执行,该终端设备可以包括摄像头。The counting method for the human body motion provided by the embodiment of the present application may be implemented in the storage software program shown in FIG. 1 , and may be specifically executed by the processor 120 , and the terminal device may include a camera.
本申请实施例中提供以下几种针对人体运动的计数方法:The following methods for counting human motion are provided in the embodiments of the present application:
第一种:通过目标跟踪技术,根据目标部位所占画面的比例变化,从而知道身体的起落点,实现计数。The first type: through the target tracking technology, according to the proportion of the target part of the screen changes, so as to know the body's landing point, to achieve counting.
第二种:通过自动对焦摄像头,捕捉目标部位与终端设备之间的距离变化,知道身体的起落点,实现计数。The second type: through the autofocus camera, capture the change in the distance between the target part and the terminal device, know the body's landing point, and achieve counting.
第三种:通过摄像头以及测距辅助装置,捕捉目标部位与终端设备之间的距离变化,知道身体的起落点,实现计数。The third type: through the camera and the ranging aid, capture the change in the distance between the target part and the terminal device, know the body's landing point, and achieve counting.
针对第一种,如图2所示,为本申请实施例提供的针对人体运动的计数方法,包括: For the first type, as shown in FIG. 2, the method for counting human motion provided by the embodiment of the present application includes:
S201,所述终端设备响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像头。S201. The terminal device starts the camera in response to a user-triggered instruction for turning on a motion count for a human body.
本申请实施例中的指令可以是用户点击人体运动的计数图标触发的指令,或者用户针对预先设置好的用于触发人体运动计数的按键产生的指令,等等。具体用户可以通过输入设备140或者其他输入设备142触发的用于开启针对人体运动计数的指令。The instructions in the embodiment of the present application may be an instruction triggered by a user clicking a counting icon of a human motion, or an instruction generated by a user for a button for triggering a human body motion counting, and the like. The specific user may trigger an instruction for counting the movement of the human body triggered by the input device 140 or other input device 142.
S202,所述终端设备在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做人体运动的画面。S202. The terminal device monitors, by the camera, a picture of the user's body movement when the camera is aligned with the target part of the user.
具体的,通过手动放置终端设备,使其摄像头对准用户的目标部位。Specifically, the terminal device is manually placed to align the camera with the target portion of the user.
S203,所述终端设备在确定每满足一次所述目标部位占所述画面的比例变化条件时,为所述用户的人体运动的次数增加一次。S203. The terminal device increases the number of times of the human body motion of the user once when determining that the target part occupies a proportional change condition of the screen.
所述比例变化条件为所述目标部位占所述画面的比例变化由增大变到减小、或者所述目标部位占所述画面的比例变化由减小变到增大。The proportional change condition is that the change in the proportion of the target portion in the picture changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing.
S204,所述终端设备通过摄像头监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。S204: After detecting, by the camera, the terminal device stops the movement of the human body, and notifies the user of the number of times the body movement is finally performed.
终端设备在通知用户运动的次数时,可以通过界面显示,还可以通过语音等等。When the terminal device notifies the user of the number of times of exercise, the terminal device can display through the interface, and can also pass voice or the like.
另外,终端设备通过摄像头监测到所述人体运动停止后,可以立即将最终的人体运动的次数通知给用户,还可以先保存下来,接收到用户触发的用于查看人体运动的次数的指令时,通过给用户。还可以在将人体运动的次数通知给用户,设置时间,在达到设置的时间时,再将人体运动的次数通过给用户,比如每天晚上10点。In addition, after the terminal device monitors that the movement of the human body is stopped by the camera, the user can immediately notify the user of the number of times of the final body movement, and can also save the first time, and receive an instruction triggered by the user for viewing the number of times of the human body movement. By giving the user. It is also possible to notify the user of the number of times the human body moves, set the time, and when the set time is reached, pass the number of human movements to the user, for example, every night at 10 o'clock.
下面以用户做俯卧撑为例,针对第一种的计数方法进行具体说明,参见图3所示。In the following, the user performs push-ups as an example, and the first counting method is specifically described, as shown in FIG.
S301,所述终端设备响应于用户触发的用于开启针对俯卧撑计数的指令,启动所述摄像头。S301. The terminal device starts the camera in response to a user-triggered instruction for turning on a push-up count.
S302,用户手动放置终端设备,使其摄像头对准用户的目标部位。参见图4所示。本申请实施例在此以目标部位为头部为例。其中目标部位还可以是面部、嘴唇、或者上衣上的一个图案等等。其中,目标部位可以是预先设置好的,还可以是用户在摄像头拍摄到的画面内选择到的。S302: The user manually places the terminal device to align the camera with the target portion of the user. See Figure 4. The embodiment of the present application takes the target part as a head as an example. The target part may also be a pattern on the face, lips, or blouse, and the like. The target part may be preset or may be selected by the user in the picture captured by the camera.
S303,所述终端设备通过所述摄像头监控用户做俯卧撑的画面。S303. The terminal device monitors, by using the camera, a picture of a user doing push-ups.
S304,所述终端设备在确定每满足一次所述头部占所述画面的比例变化条件时,为所述用户的做俯卧撑的次数增加一次,S304. The terminal device increases the number of times the user performs push-ups once the distance change condition of the picture is occupied every time the head is occupied.
所述比例变化条件为所述头部占所述画面的比例变化由增大变到减小、或者所述头部占所述画面的比例变化由减小变到增大。The proportional change condition is that the change in the ratio of the head to the picture changes from increasing to decreasing, or the change in the proportion of the head occupying the picture changes from decreasing to increasing.
参见图5A和图5B所示,用户的身体处在图4中a的形态时,终端设备中的摄像头采集到的画面如图5A所示,用户的身体处于图4中b的形态时,终端设备中的摄像头采集到的画面如图5B所示。从图5A和图5B中可以看出随着用户的身体由图4中a的形态变为b的形态再变为a的形态,这种循环往复,画面中的头部占整个画面的比例由增大变为减小再变为增大……,具体的画面中的头部占整个画面的比例变化参见图6中的曲线。在计数时,可以针对每个波峰记为一次,即画面中的头部占整个画面的比例由增大变为减小时记一次,还可以针对每个波谷记为一次,即画面中的头部占整个画面的比例由减小变为增大时记一次。Referring to FIG. 5A and FIG. 5B, when the user's body is in the form of a in FIG. 4, the screen collected by the camera in the terminal device is as shown in FIG. 5A, and the user's body is in the form of b in FIG. The picture captured by the camera in the device is shown in Figure 5B. It can be seen from FIG. 5A and FIG. 5B that as the form of the user's body changes from the form of a in FIG. 4 to the form of a, the cycle is repeated, and the ratio of the head in the picture to the entire picture is determined by The increase becomes a decrease and then becomes an increase... The change in the proportion of the head in the specific picture to the entire picture is shown in the curve in FIG. When counting, it can be recorded once for each peak, that is, the ratio of the head in the picture to the entire picture is counted once from increasing to decreasing, and can also be recorded once for each trough, that is, the head in the picture. It is recorded once when the proportion of the entire screen changes from decreasing to increasing.
S305,所述终端设备通过摄像头监测到用户停止做俯卧撑后,将最终用户做俯卧撑的 次数记录下来。S305. The terminal device monitors, after the user stops performing the push-up by the camera, and performs the push-up of the end user. The number of times is recorded.
在确定达到通知用户的条件时,将用户做俯卧撑的次数通知给用户。通知用户的条件可以是设定的时间,或者接收到用户查询俯卧撑的次数的指令等等。When it is determined that the condition for notifying the user is reached, the user is notified of the number of times the user does push-ups. The condition for notifying the user may be the set time, or an instruction to receive the number of times the user inquires about the push-ups, and the like.
在一种可能的设计中,所述终端设备还可以估计用户做每个俯卧撑的动作质量。具体的,可以通过如下方式实现,参见图7所示。In one possible design, the terminal device can also estimate the quality of the action that the user does for each push-up. Specifically, it can be implemented as follows, as shown in FIG. 7.
S701,所述终端设备响应于用户触发的记录俯卧撑的标准动作的指令。S701. The terminal device responds to a user-triggered instruction for recording a standard action of push-ups.
S702,所述终端设备在所述摄像头对准于所述用户的头部时,通过所述摄像头监控用户做所述俯卧撑的标准动作的画面。S702. The terminal device monitors, by the camera, a screen for performing a standard action of the push-up by the camera when the camera is aligned with the head of the user.
用户手动放置终端设备,使其摄像头对准用户的头部。The user manually places the terminal device so that the camera is aimed at the user's head.
S703,所述终端设备记录标准动作对应的所述用户的头部占所述画面的最大比例以及最小比例。S703. The terminal device records a maximum proportion and a minimum ratio of a head of the user corresponding to the standard action to the screen.
S704,所述终端设备确定每满足一次所述头部占所述画面的比例变化条件时,确定满足所述比例变化条件时出现的比例最大值以及比例最小值。所述比例最大值为所述头部占所述画面的比例变化由增大变到减小时的最大值,所述比例最小值为所述头部占所述画面的比例变化由减少变到增大时的最小值。S704. The terminal device determines, when each time the head meets a proportional change condition of the picture, determines a maximum value and a minimum value that occur when the proportional change condition is satisfied. The maximum value of the ratio is a maximum value when the ratio of the head to the picture changes from increasing to decreasing, and the minimum value of the ratio is that the proportion of the head in the picture changes from decreasing to increasing. The minimum value of the big time.
S705,所述终端设备根据所述比例最大值与标准动作对应的最大比例的比较结果、以及所述比例最小值与标准动作对应的最小比例的比较结果,确定所述用户的做俯卧撑的动作质量,并通知给用户。S705. The terminal device determines, according to a comparison result of the maximum ratio of the proportional maximum value corresponding to the standard action, and a comparison result of the minimum ratio of the proportional minimum value and the standard action, determining the motion quality of the user for performing push-ups. And notify the user.
比如,具体的画面中的头部占整个画面的比例变化为图6中的曲线,则确定相邻的波峰与波谷的值分别与标准动作对应的最大比例与最小比例对比,从而估算所述用户的人体运动的动作质量。例如,在确定某次的比例最大值与标准动作对应的最大比例的差的绝对值不大于第一阈值,且比例最小值与标准动作对应的最小比例的差的绝对值不大于第二阈值,则判定为合格,否则判定为不合格。比如,第一阈值与第二阈值均为5%,在用户某次做俯卧撑时,终端设备确定的比例最大值与最小值分别为48%、13%。而标准动作对应的最大比例以及最小比例分别为50%、10%,则确定该次俯卧撑为合格。For example, if the ratio of the head in the specific picture to the entire picture changes to the curve in FIG. 6, it is determined that the values of the adjacent peaks and troughs are respectively compared with the maximum ratio and the minimum ratio corresponding to the standard motion, thereby estimating the user. The quality of the movement of the human body. For example, the absolute value of the difference between the maximum ratio corresponding to the standard action and the standard action is not greater than the first threshold, and the absolute value of the difference between the minimum ratio of the proportional minimum and the standard action is not greater than the second threshold. Then it is judged as pass, otherwise it is judged as unqualified. For example, the first threshold and the second threshold are both 5%. When the user performs a push-up for a certain time, the maximum and minimum values determined by the terminal device are 48% and 13%, respectively. The maximum proportion and the minimum ratio corresponding to the standard action are 50% and 10%, respectively, and it is determined that the push-up is qualified.
其中,估计用户做每个俯卧撑的动作质量以及针对俯卧撑计数的操作可以在用户做俯卧撑时均执行。Among them, it is estimated that the user's action quality for each push-up and the operation for counting the push-ups can be performed when the user performs push-ups.
针对第二种,如图8所示,为本申请实施例提供的针对人体运动的计数方法,包括:For the second method, as shown in FIG. 8 , the method for counting human motion provided by the embodiment of the present application includes:
S801,所述终端设备响应于用户触发的用于开启针对俯卧撑计数的指令,启动所述对焦摄像头。S801. The terminal device starts the focus camera in response to a user-triggered instruction for turning on a count of push-ups.
S802,所述终端设备在所述对焦摄像头对准于所述用户的目标部位时,通过所述对焦摄像头监控所述目标部位与所述对焦摄像头之间的物理距离的变化。S802. The terminal device monitors, by the focus camera, a change in a physical distance between the target portion and the focus camera when the focus camera is aligned with a target portion of the user.
S803,所述终端设备在确定每满足一次所述目标部位与所述对焦摄像头之间物理距离的距离变化条件时,为所述用户的人体运动的次数增加一次。所述距离变化条件为所述目标部位与所述对焦摄像头之间的物理距离变化由增大变到减小、或者所述目标部位与所述对焦摄像头之间的物理距离变化由减小变到增大。S803. The terminal device increases the number of times of the human body motion of the user once when determining a distance change condition that satisfies a physical distance between the target portion and the focus camera. The distance change condition is that a change in a physical distance between the target portion and the focus camera is changed from an increase to a decrease, or a change in a physical distance between the target portion and the focus camera is changed from a decrease to a decrease Increase.
S804,所述终端设备通过摄像头监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。S804, the terminal device notifies the user of the number of times the final body movement is performed after the movement of the human body is stopped by the camera.
终端设备在通知用户运动的次数时,可以通过界面显示,还可以通过语音等等。 When the terminal device notifies the user of the number of times of exercise, the terminal device can display through the interface, and can also pass voice or the like.
另外,终端设备通过摄像头监测到所述人体运动停止后,可以立即将最终的人体运动的次数通知给用户,还可以先保存下来,接收到用户触发的用于查看人体运动的次数的指令时,通过给用户。还可以在将人体运动的次数通知给用户,设置时间,在达到设置的时间时,再将人体运动的次数通过给用户,比如每天晚上10点。In addition, after the terminal device monitors that the movement of the human body is stopped by the camera, the user can immediately notify the user of the number of times of the final body movement, and can also save the first time, and receive an instruction triggered by the user for viewing the number of times of the human body movement. By giving the user. It is also possible to notify the user of the number of times the human body moves, set the time, and when the set time is reached, pass the number of human movements to the user, for example, every night at 10 o'clock.
下面也以用户做俯卧撑为例,针对第二种的计数方法进行具体说明,参见图9所示。The following also takes the user's push-ups as an example, and specifically describes the second counting method, as shown in FIG.
S901,所述终端设备响应于用户触发的用于开启针对俯卧撑计数的指令,启动所述对焦摄像头。S901. The terminal device starts the focus camera in response to a user-triggered instruction for turning on a push-up count.
S902,所述终端设备在所述对焦摄像头对准于所述用户的目标部位时,通过所述对焦摄像头监控所述目标部位与所述对焦摄像头之间的物理距离的变化。本申请实施例中以目标部位为颈部为例。S902. The terminal device monitors, by the focus camera, a change in a physical distance between the target portion and the focus camera when the focus camera is aligned with a target portion of the user. In the embodiment of the present application, the target portion is a neck portion as an example.
S903,所述终端设备在确定每满足一次所述颈部与所述对焦摄像头之间物理距离的距离变化条件时,为所述用户的做俯卧撑的次数增加一次。所述距离变化条件为所述颈部与所述对焦摄像头之间的物理距离变化由增大变到减小、或者所述颈部与所述对焦摄像头之间的物理距离变化由减小变到增大。S903. The terminal device increases the number of times the user performs push-ups once when determining a distance change condition that satisfies the physical distance between the neck and the focus camera. The distance change condition is that the physical distance change between the neck and the focus camera is changed from increasing to decreasing, or the physical distance change between the neck and the focus camera is changed from decreasing to Increase.
比如,用户的身体处在图4中a的形态时,终端设备中的对焦摄像头确定颈部与对焦摄像头之间的物理距离为55厘米,用户的身体处于图4中b的形态时,终端设备中的对焦摄像头确定颈部与对焦摄像头之间的物理距离为35厘米。随着用户的身体由图4中a的形态变为b的形态再变为a的形态,这种循环往复,确定颈部与对焦摄像头之间的物理距离由减小变为增大再变为减小……,具体的颈部与对焦摄像头之间的物理距离变化参见图10中的曲线。在计数时,可以针对每个波峰记为一次,即颈部与对焦摄像头之间的物理距离由增大变为减小时记一次,还可以针对每个波谷记为一次,即颈部与对焦摄像头之间的物理距离由减小变为增大时记一次。For example, when the user's body is in the form of a in FIG. 4, the focus camera in the terminal device determines that the physical distance between the neck and the focus camera is 55 cm, and the user's body is in the form of b in FIG. The focus camera in the middle determines the physical distance between the neck and the focus camera is 35 cm. As the user's body changes from the form of a in FIG. 4 to the form of b and then changes to the form of a, this cycle reciprocates, and it is determined that the physical distance between the neck and the focus camera changes from decreasing to increasing and then changing. Decrease..., see the curve in Figure 10 for the physical distance change between the specific neck and the focus camera. When counting, it can be recorded once for each peak, that is, when the physical distance between the neck and the focus camera is changed from increasing to decreasing, and once for each trough, that is, the neck and the focusing camera. The physical distance between them changes from decreasing to increasing.
S904,所述终端设备通过摄像头监测到用户做俯卧撑停止后,将最终所述俯卧撑的次数记录下来。S904. The terminal device records, after the user stops doing push-ups by the camera, records the number of final push-ups.
在确定达到通知用户的条件时,将用户做俯卧撑的次数通知给用户。通知用户的条件可以是设定的时间,或者接收到用户查询俯卧撑的次数的指令等等。When it is determined that the condition for notifying the user is reached, the user is notified of the number of times the user does push-ups. The condition for notifying the user may be the set time, or an instruction to receive the number of times the user inquires about the push-ups, and the like.
在一种可能的设计中,所述终端设备还可以估计用户做每个俯卧撑的动作质量。具体的,可以通过如下方式实现,参见图11所示。In one possible design, the terminal device can also estimate the quality of the action that the user does for each push-up. Specifically, it can be implemented as follows, as shown in FIG.
S1101,所述终端设备响应于用户触发的记录用户做俯卧撑的标准动作的指令。S1101: The terminal device responds to a user-triggered instruction to record a standard action of the user doing push-ups.
S1102,所述终端设备在所述对焦摄像头对准于所述用户的颈部时,通过所述对焦摄像头监控用户做所述俯卧撑的标准动作时,所述颈部与所述对焦摄像头之间的距离变化。S1102. When the focus camera is aligned with the neck of the user, the terminal device monitors, between the neck and the focus camera, a standard motion of the user to perform the push-up by the focus camera. Distance changes.
S1103,所述终端设备记录标准动作对应的所述颈部与所述对焦摄像头之间的最大距离以及最小距离。S1103. The terminal device records a maximum distance and a minimum distance between the neck corresponding to the standard motion and the focus camera.
S1104,所述终端设备确定每满足一次所述颈部与所述对焦摄像头之间的物理距离的距离变化条件时,确定满足所述距离变化条件时出现的距离最大值以及距离最小值。所述距离最大值为所述颈部与所述对焦摄像头之间的物理距离变化由增大变到减小时的最大值,所述距离最小值为所述颈部与所述对焦摄像头之间的物理距离变化由减少变到增大时的最小值。S1104. The terminal device determines, when each time the distance change condition of the physical distance between the neck and the focus camera is satisfied, determines a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied. The maximum distance is a maximum value when the physical distance between the neck and the focus camera changes from increasing to decreasing, and the minimum value is between the neck and the focusing camera. The change in physical distance changes from decreasing to increasing.
S1105,所述终端设备根据所述距离最大值与标准动作对应的最大距离的比较结果、以及所述距离最小值与标准动作对应的最小距离的比较结果,确定所述用户做俯卧撑的动 作质量,并通知给用户。S1105. The terminal device determines, according to a comparison result of the distance maximum value and a maximum distance corresponding to the standard action, and a comparison result of the distance minimum value and a minimum distance corresponding to the standard action, determining, by the user, the push-up motion. Make quality and notify the user.
比如,具体的颈部与对焦摄像头之间的物理距离为图10中的曲线,则确定相邻的波峰与波谷的值分别与标准动作对应的最大距离与最小距离对比,从而估算所述用户的人体运动的动作质量。例如,在确定某次的距离最大值与标准动作对应的最大距离的差的绝对值不大于第三阈值,且距离最小值与标准动作对应的最小距离的差的绝对值不大于第四阈值,则判定为合格,否则判定为不合格。其中,第三阈值与第四阈值可以相同也可以不同。比如,第三阈值与第四阈值均为5cm,则在用户某次做俯卧撑时,终端设备确定的距离最大值与最小值分别为54cm、38cm。而标准动作对应的最大距离以及最小距离分别为55cm、35cm,则确定该次俯卧撑为合格。For example, the physical distance between the specific neck and the focusing camera is the curve in FIG. 10, and then the values of the adjacent peaks and troughs are respectively compared with the maximum distance and the minimum distance corresponding to the standard motion, thereby estimating the user's The quality of the movement of the human body. For example, the absolute value of the difference between the maximum distance corresponding to the standard action and the maximum distance is not greater than the third threshold, and the absolute value of the difference between the minimum distance and the minimum distance corresponding to the standard action is not greater than the fourth threshold. Then it is judged as pass, otherwise it is judged as unqualified. The third threshold and the fourth threshold may be the same or different. For example, if the third threshold and the fourth threshold are both 5 cm, the maximum and minimum distances determined by the terminal device are 54 cm and 38 cm, respectively, when the user performs a push-up. The maximum distance and the minimum distance corresponding to the standard motion are 55 cm and 35 cm, respectively, and it is determined that the push-up is qualified.
针对第三种与第二种计数所采用的计数方式相同,但不同的是捕捉距离变化由对焦摄像头变换为普通摄像头以及测距辅助装置,因此,针对第三种的计数方式可以参见图8~图10中所描述的针对第二种的计数方式,针对第三种这里不再赘述。For the third and second counting, the counting method is the same, but the difference is that the capturing distance is changed from the focusing camera to the normal camera and the ranging aid. Therefore, for the third counting method, see Figure 8~ The counting method for the second type described in FIG. 10 will not be described again for the third type.
基于与方法实施例同样的发明构思,本申请实施例还提供了一种针对人体运动的计数装置,该装置应用于包括摄像头的终端设备,具体可以由智能手机300中的处理器320来实现。如图12所示,所述装置可以包括:Based on the same inventive concept as the method embodiment, the embodiment of the present application further provides a counting device for human body motion, which is applied to a terminal device including a camera, and may be implemented by a processor 320 in the smart phone 300. As shown in FIG. 12, the apparatus may include:
触发模块1201,用于响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像头;The triggering module 1201 is configured to start the camera in response to a user-triggered instruction for turning on the counting of the human body motion;
监控模块1202,用于在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做人体运动的画面;The monitoring module 1202 is configured to monitor, by the camera, a picture of the user performing body motion when the camera is aligned with the target portion of the user;
计数模块1203,用于在确定每满足一次所述目标部位占所述画面的比例变化条件时,为所述用户的人体运动的次数增加一次,所述比例变化条件为所述目标部位占所述画面的比例变化由增大变到减小、或者所述目标部位占所述画面的比例变化由减小变到增大;The counting module 1203 is configured to increase the number of times of the human body motion of the user once every time the target part meets the proportional change condition of the screen, and the ratio change condition is that the target part accounts for the The change in the proportion of the picture changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing;
通知模块1204,用于通过所述摄像头监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。The notification module 1204 is configured to notify the user of the number of times the final body movement is performed after the movement of the human body is stopped by the camera.
在一种可能的实现方式中,所述触发模块1201,还用于响应于用户触发的记录所述人体运动的标准动作的指令;In a possible implementation, the triggering module 1201 is further configured to: in response to a user-triggered instruction to record a standard motion of the human motion;
所述监控模块1202,还用于在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做所述人体运动的标准动作的画面;The monitoring module 1202 is further configured to monitor, by the camera, a screen of a standard action of the user to perform the human body motion when the camera is aligned with a target portion of the user;
还包括记录模块1205,用于记录标准动作对应的所述用户的目标部位占所述画面的最大比例以及最小比例;The method further includes a recording module 1205, configured to record a maximum proportion and a minimum ratio of the target part of the user corresponding to the standard action to the screen;
质量评估模块1206,用于确定每满足一次所述目标部位占所述画面的比例变化条件时,确定满足所述比例变化条件时出现的比例最大值以及比例最小值,所述比例最大值为所述目标部位占所述画面的比例变化由增大变到减小时的最大值,所述比例最小值为所述目标部位占所述画面的比例变化由减少变到增大时的最小值;根据所述比例最大值与标准动作对应的最大比例的比较结果、以及所述比例最小值与标准动作对应的最小比例的比较结果,确定所述用户的人体运动的动作质量;The quality evaluation module 1206 is configured to determine, when each of the target parts meets the condition change condition of the screen, determine a maximum value and a minimum value that occur when the proportional change condition is satisfied, and the maximum value is a maximum value when the target portion occupies a change in the ratio of the screen from an increase to a decrease, and the ratio minimum value is a minimum value at which the target portion occupies a change in the ratio of the screen from a decrease to an increase; a comparison result of the maximum ratio of the proportional maximum value corresponding to the standard action, and a comparison result of the minimum ratio of the proportional minimum value and the standard action, determining the motion quality of the human body motion of the user;
所述通知模块1204,还用于将所述用户的人体运动的动作质量通知给用户。The notification module 1204 is further configured to notify the user of the motion quality of the human body motion of the user.
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的 模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。The division of the modules in the embodiment of the present application is schematic, and is only a logical function division. In actual implementation, there may be another division manner. In addition, each functional module in each embodiment of the present application may be integrated into one processing. In the device, it can also be physically existed alone, or two or more modules can be integrated into one module. Integrated above The module can be implemented in the form of hardware or in the form of software functional modules.
采用硬件实现时,该终端的硬件实现可参考图1及其相关描述。When implemented in hardware, the hardware implementation of the terminal can be referred to FIG. 1 and its related description.
所述摄像头160,用于采集用户做人体运动的画面;The camera 160 is configured to collect a picture of a user doing body motion;
所述处理器120,用于响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像头;在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做人体运动的画面;在确定每满足一次所述目标部位占所述画面的比例变化条件时,为所述用户的人体运动的次数增加一次,所述比例变化条件为所述目标部位占所述画面的比例变化由增大变到减小、或者所述目标部位占所述画面的比例变化由减小变到增大;通过所述摄像头监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。The processor 120 is configured to start the camera in response to a user-triggered instruction for turning on a motion count for a human body; and monitor the user through the camera when the camera is aligned with a target portion of the user a picture of the movement of the human body; the number of times of the human body movement of the user is increased once, each time the target portion is satisfied to meet the condition change condition of the screen, and the ratio change condition is that the target part occupies the picture The change in the proportion changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing; after the camera detects that the movement of the human body is stopped, the human body motion is finally The number of times is notified to the user.
其中,在最终所述人体运动的次数通知给用户时,可以通过显示设备110显示的界面通知给用户,或者通过扬声器210语音提示给用户,或者发出提示音提示用户等。Wherein, when the number of times the body movement is finally notified to the user, the user may be notified to the user through the interface displayed by the display device 110, or may be voiced to the user through the speaker 210, or a prompt tone may be presented to the user.
所述处理器120,还用于:在通过所述摄像头监控用户做人体运动的画面之前,响应于用户触发的记录所述人体运动的标准动作的指令;在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做所述人体运动的标准动作的画面;记录标准动作对应的所述用户的目标部位占所述画面的最大比例以及最小比例;确定每满足一次所述目标部位占所述画面的比例变化条件时,确定满足所述比例变化条件时出现的比例最大值以及比例最小值,所述比例最大值为所述目标部位占所述画面的比例变化由增大变到减小时的最大值,所述比例最小值为所述目标部位占所述画面的比例变化由减少变到增大时的最小值;根据所述比例最大值与标准动作对应的最大比例的比较结果、以及所述比例最小值与标准动作对应的最小比例的比较结果,确定所述用户的人体运动的动作质量,并通知给用户。The processor 120 is further configured to: in response to a user-triggered instruction to record a standard motion of the human motion, before the user monitors a screen of the human motion by the camera; the camera is aligned with the user When the target part is used, the user monitors the screen of the standard action of the user to perform the human body movement; records the maximum proportion and the minimum ratio of the target part of the user corresponding to the standard action; and determines that each time the content is satisfied When the target portion occupies the condition change condition of the picture, determining a maximum value of the ratio and a ratio minimum value that occur when the ratio change condition is satisfied, and the ratio maximum value is an increase in the proportion of the target portion in the picture. Changing to a maximum value at the time of decrease, the ratio minimum value being a minimum value when the target portion accounts for a change in the proportion of the picture from a decrease to an increase; according to the maximum ratio of the proportional maximum value corresponding to the standard action Comparing the result, and a comparison result of the minimum ratio of the ratio minimum value to the standard action, determining the user of the user Operation of the quality movement, and notifies the user.
其中,在将所述人体运动的动作质量通知给用户时,可以通过显示设备110显示的界面通知给用户,或者通过扬声器210语音提示给用户,或者发出提示音提示用户等。When the quality of the motion of the human body motion is notified to the user, the user may be notified by the interface displayed by the display device 110, or may be voiced to the user through the speaker 210, or a prompt tone may be presented to the user.
基于与方法实施例同样的发明构思,本申请实施例还提供了一种针对人体运动的计数装置,该装置应用于包括摄像设备的终端设备,具体可以由手机100中的处理器120来实现。摄像设备可以是对焦摄像头。或者普通摄像头以及测距辅助装置。如图13所示,所述装置可以包括:Based on the same inventive concept as the method embodiment, the embodiment of the present application further provides a counting device for human body motion, which is applied to a terminal device including an imaging device, and may be implemented by the processor 120 in the mobile phone 100. The camera device can be a focus camera. Or a normal camera and a range finder. As shown in FIG. 13, the apparatus may include:
触发模块1301,用于响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像设备;The triggering module 1301 is configured to start the imaging device in response to a user-triggered instruction for turning on the counting of the human body motion;
监控模块1302,用于在所述摄像设备对准于所述用户的目标部位时,通过所述摄像设备监控所述目标部位与所述摄像设备之间的物理距离的变化;The monitoring module 1302 is configured to monitor, by the imaging device, a change in a physical distance between the target portion and the imaging device when the imaging device is aligned with a target portion of the user;
计数模块1303,用于在确定每满足一次所述目标部位与所述摄像设备之间物理距离的距离变化条件时,为所述用户的人体运动的次数增加一次,所述距离变化条件为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小、或者所述目标部位与所述摄像设备之间的物理距离变化由减小变到增大;The counting module 1303 is configured to increase the number of times of the human body motion of the user once every time the distance change condition of the physical distance between the target part and the imaging device is satisfied, the distance change condition is a change in physical distance between the target portion and the imaging device is changed from increasing to decreasing, or a change in physical distance between the target portion and the imaging device is changed from decreasing to increasing;
通知模块1304,用于通过摄像设备监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。The notification module 1304 is configured to notify the user of the number of times the final body movement is performed after the motion of the human body is stopped by the imaging device.
可选地,所述触发模块1301,还用于响应于用户触发的记录所述人体运动的标准动作的指令;Optionally, the triggering module 1301 is further configured to: in response to a user-triggered instruction to record a standard motion of the human body motion;
所述监控模块1302,还用于在所述摄像设备对准于所述用户的目标部位时,通过所述 摄像设备监控用户做所述人体运动的标准动作时,所述目标部位与所述摄像设备之间的距离变化;The monitoring module 1302 is further configured to: when the camera device is aligned with a target portion of the user, When the imaging device monitors a standard action of the user to perform the human body motion, a distance between the target portion and the imaging device changes;
所述装置还包括:The device also includes:
记录模块1305,用于记录标准动作对应的所述目标部位与所述摄像设备之间的最大距离以及最小距离;a recording module 1305, configured to record a maximum distance and a minimum distance between the target part corresponding to the standard action and the imaging device;
质量评估模块1306,用于确定每满足一次所述目标部位与所述摄像设备之间的物理距离的距离变化条件时,确定满足所述距离变化条件时出现的距离最大值以及距离最小值,所述距离最大值为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小时的最大值,所述距离最小值为所述目标部位与所述摄像设备之间的物理距离变化由减少变到增大时的最小值;根据所述距离最大值与标准动作对应的最大距离的比较结果、以及所述距离最小值与标准动作对应的最小距离的比较结果,确定所述用户的人体运动的动作质量;a quality evaluation module 1306, configured to determine a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied, each time a distance change condition of the physical distance between the target portion and the imaging device is satisfied The maximum value of the distance is a maximum value when the physical distance between the target portion and the imaging device changes from increasing to decreasing, and the minimum value is the physical state between the target portion and the imaging device. Determining the minimum value when the distance change is changed from decreasing to increasing; determining the result according to a comparison result of the maximum distance of the distance maximum value corresponding to the standard action, and a comparison result of the distance minimum value and the minimum distance corresponding to the standard action The quality of the user's movement of the human body;
所述通知模块1304,还用于将所述用户的人体运动的动作质量通知给用户。The notification module 1304 is further configured to notify the user of the motion quality of the user's human motion.
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。The division of the modules in the embodiment of the present application is schematic, and is only a logical function division. In actual implementation, there may be another division manner. In addition, each functional module in each embodiment of the present application may be integrated into one processing. In the device, it can also be physically existed alone, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
采用硬件实现时,该终端设备的硬件实现可参考图1及其相关描述。When implemented in hardware, the hardware implementation of the terminal device can refer to FIG. 1 and its related description.
所述摄像设备,用于监控用户的目标部位与所述摄像设备之间的物理距离变化。The imaging device is configured to monitor a physical distance change between a target portion of the user and the imaging device.
摄像设备可以是对焦摄像头。或者摄像设备包括普通摄像头以及测距辅助装置220。The camera device can be a focus camera. Or the imaging device includes a normal camera and a ranging aid 220.
所述处理器120,用于响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像设备;在所述摄像设备对准于所述目标部位时,通过所述摄像设备监控所述目标部位与所述摄像设备之间的物理距离的变化;在确定每满足一次所述目标部位与所述摄像设备之间物理距离的距离变化条件时,为所述用户的人体运动的次数增加一次,所述距离变化条件为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小、或者所述目标部位与所述摄像设备之间的物理距离变化由减小变到增大;通过所述摄像设备监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。The processor 120 is configured to start the imaging device in response to an instruction triggered by a user for turning on a counting of a human body motion; and monitoring, by the imaging device, when the imaging device is aligned with the target portion a change in a physical distance between the target portion and the imaging device; and an increase in the number of times the human body movement of the user is increased each time a distance change condition of the physical distance between the target portion and the imaging device is satisfied Once, the distance change condition is that the physical distance change between the target portion and the imaging device is changed from increasing to decreasing, or the physical distance between the target portion and the imaging device is decreased by When the movement of the human body is stopped by the imaging device, the number of times the final movement of the human body is notified is notified to the user.
其中,在最终所述人体运动的次数通知给用户时,可以通过显示设备110显示的界面通知给用户,或者通过扬声器210语音提示给用户,或者发出提示音提示用户等。Wherein, when the number of times the body movement is finally notified to the user, the user may be notified to the user through the interface displayed by the display device 110, or may be voiced to the user through the speaker 210, or a prompt tone may be presented to the user.
在一种可能的实现方式中,所述处理器120,还用于:响应于用户触发的记录所述人体运动的标准动作的指令;在所述摄像设备对准于所述用户的目标部位时,通过所述摄像设备监控用户做所述人体运动的标准动作时,所述目标部位与所述摄像设备之间的距离变化;记录标准动作对应的所述目标部位与所述摄像设备之间的最大距离以及最小距离;确定每满足一次所述目标部位与所述摄像设备之间的物理距离的距离变化条件时,确定满足所述距离变化条件时出现的距离最大值以及距离最小值,所述距离最大值为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小时的最大值,所述距离最小值为所述目标部位与所述摄像设备之间的物理距离变化由减少变到增大时的最小值;根据所述距离最大值与标准动作对应的最大距离的比较结果、以及所述距离最小值与标准动作对应的最小距离的比较结果,确定所述用户的人体运动的动作质量,并通知给用户。In a possible implementation, the processor 120 is further configured to: in response to a user-triggered instruction to record a standard motion of the human motion; when the imaging device is aligned with a target portion of the user When the camera device monitors a standard action of the user to perform the human body motion, a distance between the target portion and the image capturing device changes; and a record between the target portion corresponding to the standard action and the camera device is recorded a maximum distance and a minimum distance; determining a distance maximum condition and a distance minimum value that occur when the distance change condition is satisfied, each time a distance change condition that satisfies a physical distance between the target portion and the imaging device is determined The maximum distance is a maximum value when the physical distance between the target portion and the imaging device changes from increasing to decreasing, and the minimum value is a physical distance between the target portion and the imaging device. The minimum value when the change is changed from decreasing to increasing; the comparison result of the maximum distance corresponding to the standard action according to the maximum value of the distance, and From the comparison result of the minimum value and the minimum distance corresponding to the standard operation, the operation of determining the mass of the body movement of the user, and notifies the user.
其中,在将所述人体运动的动作质量通知给用户时,可以通过显示设备110显示的界 面通知给用户,或者通过扬声器210语音提示给用户,或者发出提示音提示用户等。Wherein, when the motion quality of the human body motion is notified to the user, the boundary displayed by the display device 110 can be displayed. The user is notified to the user, or the user is voiced through the speaker 210, or a prompt tone is presented to the user.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请实施例的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, it is intended that the present invention cover the modifications and variations of the embodiments of the present invention.

Claims (11)

  1. 一种针对人体运动的计数方法,其特征在于,所述方法应用于包括摄像头的终端设备,包括:A method for counting human motion, characterized in that the method is applied to a terminal device including a camera, comprising:
    所述终端设备响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像头;The terminal device starts the camera in response to an instruction triggered by the user for turning on the counting of the movement of the human body;
    所述终端设备在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做人体运动的画面;When the camera is aligned with the target part of the user, the terminal device monitors, by the camera, a picture of the user doing body motion;
    所述终端设备在确定每满足一次所述目标部位占所述画面的比例变化条件时,为所述用户的人体运动的次数增加一次,所述比例变化条件为所述目标部位占所述画面的比例变化由增大变到减小、或者所述目标部位占所述画面的比例变化由减小变到增大;The terminal device increases the number of times of the human body motion of the user once every time the target portion meets the condition change condition of the screen, and the ratio change condition is that the target portion occupies the screen The change in the ratio changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing;
    所述终端设备通过所述摄像头监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。After the terminal device detects that the human body motion stops by the camera, the terminal device notifies the user of the number of times the body motion is finally performed.
  2. 如权利要求1所述的方法,其特征在于,所述终端设备通过所述摄像头监控用户做人体运动的画面之前,所述方法还包括:The method according to claim 1, wherein the method further comprises: before the terminal device monitors, by the camera, a screen of a human body movement, the method further comprising:
    所述终端设备响应于用户触发的记录所述人体运动的标准动作的指令;The terminal device is responsive to a user-triggered instruction to record a standard motion of the human body motion;
    所述终端设备在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做所述人体运动的标准动作的画面;The terminal device monitors, by the camera, a screen of a standard action of the user to perform the human body motion when the camera is aligned with a target portion of the user;
    所述终端设备记录标准动作对应的所述用户的目标部位占所述画面的最大比例以及最小比例;The terminal device records a maximum proportion and a minimum ratio of the target part of the user corresponding to the standard action to the screen;
    所述终端设备确定每满足一次所述目标部位占所述画面的比例变化条件时,确定满足所述比例变化条件时出现的比例最大值以及比例最小值,所述比例最大值为所述目标部位占所述画面的比例变化由增大变到减小时的最大值,所述比例最小值为所述目标部位占所述画面的比例变化由减少变到增大时的最小值;Determining, by the terminal device, a ratio maximum value and a ratio minimum value that are generated when the ratio change condition of the target portion is satisfied, and determining a ratio change condition that satisfies the proportional change condition, wherein the maximum value is the target portion a maximum value when the proportion change of the picture changes from an increase to a decrease, and the minimum value of the ratio is a minimum value when the target portion accounts for a change in the proportion of the picture from a decrease to an increase;
    所述终端设备根据所述比例最大值与标准动作对应的最大比例的比较结果、以及所述比例最小值与标准动作对应的最小比例的比较结果,确定所述用户的人体运动的动作质量,并通知给用户。Determining, by the terminal device, the action quality of the human body motion according to a comparison result of the maximum ratio of the proportional maximum value corresponding to the standard action and a comparison result of the minimum ratio of the proportional minimum value and the standard action, and Notify the user.
  3. 一种针对人体运动的计数方法,其特征在于,所述方法应用于包括摄像设备的终端设备,包括:A method for counting human motion, wherein the method is applied to a terminal device including an imaging device, including:
    所述终端设备响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像设备;The terminal device starts the imaging device in response to an instruction triggered by the user for turning on the counting of the motion of the human body;
    所述终端设备在所述摄像设备对准于所述用户的目标部位时,通过所述摄像设备监控所述目标部位与所述摄像设备之间的物理距离的变化;The terminal device monitors, by the imaging device, a change in a physical distance between the target portion and the imaging device when the imaging device is aligned with a target portion of the user;
    所述终端设备在确定每满足一次所述目标部位与所述摄像设备之间物理距离的距离变化条件时,为所述用户的人体运动的次数增加一次,所述距离变化条件为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小、或者所述目标部位与所述摄像设备之间的物理距离变化由减小变到增大;The terminal device increases the number of times of the human body motion of the user once every time the distance change condition of the physical distance between the target portion and the imaging device is satisfied, and the distance change condition is the target portion a change in physical distance from the imaging device is changed from an increase to a decrease, or a change in a physical distance between the target portion and the image pickup device is changed from a decrease to an increase;
    所述终端设备通过摄像设备监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。After the terminal device detects that the human body motion stops by the imaging device, the terminal device notifies the user of the number of times the human body motion is finally performed.
  4. 如权利要求3所述的方法,其特征在于,所述摄像设备为对焦摄像头,或者,所 述摄像设备包括摄像头以及测距辅助装置。The method according to claim 3, wherein said image pickup device is a focus camera, or The imaging device includes a camera and a ranging aid.
  5. 如权利要求3或4所述的方法,其特征在于,所述终端设备通过所述摄像设备监控所述目标部位与所述摄像设备之间的物理距离的变化之前,所述方法还包括:The method according to claim 3 or 4, wherein the method further comprises: before the terminal device monitors a change in a physical distance between the target portion and the image capturing device by the image capturing device, the method further comprising:
    所述终端设备响应于用户触发的记录所述人体运动的标准动作的指令;The terminal device is responsive to a user-triggered instruction to record a standard motion of the human body motion;
    所述终端设备在所述摄像设备对准于所述用户的目标部位时,通过所述摄像设备监控用户做所述人体运动的标准动作时,所述目标部位与所述摄像设备之间的距离变化;When the imaging device is aligned with the target portion of the user, the terminal device monitors a distance between the target portion and the imaging device when the user performs a standard motion of the human body motion through the imaging device. Variety;
    所述终端设备记录标准动作对应的所述目标部位与所述摄像设备之间的最大距离以及最小距离;The terminal device records a maximum distance and a minimum distance between the target part corresponding to the standard action and the imaging device;
    所述终端设备确定每满足一次所述目标部位与所述摄像设备之间的物理距离的距离变化条件时,确定满足所述距离变化条件时出现的距离最大值以及距离最小值,所述距离最大值为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小时的最大值,所述距离最小值为所述目标部位与所述摄像设备之间的物理距离变化由减少变到增大时的最小值;Determining, by the terminal device, a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied, each time the distance change condition that satisfies the physical distance between the target part and the imaging apparatus is determined, the distance being the largest a value is a maximum value when the physical distance between the target portion and the imaging device changes from increasing to decreasing, and the minimum value is a change in physical distance between the target portion and the imaging device. Reduce the minimum value when it changes to increase;
    所述终端设备根据所述距离最大值与标准动作对应的最大距离的比较结果、以及所述距离最小值与标准动作对应的最小距离的比较结果,确定所述用户的人体运动的动作质量,并通知给用户。Determining, by the terminal device, a motion quality of the user's body motion according to a comparison result of the distance maximum value and a maximum distance corresponding to the standard motion, and a comparison result of the distance minimum value and a minimum distance corresponding to the standard motion, and Notify the user.
  6. 一种针对人体运动的计数装置,其特征在于,包括摄像头、处理器;A counting device for human body movement, comprising: a camera and a processor;
    所述摄像头,用于采集用户做人体运动的画面;The camera is configured to collect a picture of a user doing body motion;
    所述处理器,用于响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄像头;在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做人体运动的画面;在确定每满足一次所述目标部位占所述画面的比例变化条件时,为所述用户的人体运动的次数增加一次,所述比例变化条件为所述目标部位占所述画面的比例变化由增大变到减小、或者所述目标部位占所述画面的比例变化由减小变到增大;通过所述摄像头监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。The processor is configured to start the camera in response to a user-triggered instruction for turning on a motion count for a human body; and monitor the user to perform a human body through the camera when the camera is aligned with a target portion of the user a screen of motion; determining, once each time the target portion meets a condition change ratio of the screen, increasing the number of times of movement of the user's body, the ratio change condition being that the target portion occupies the screen The change in the ratio changes from increasing to decreasing, or the change in the proportion of the target portion in the picture changes from decreasing to increasing; after the camera detects that the movement of the human body is stopped, the movement of the human body is finally Notify the user of the number of times.
  7. 如权利要求6所述的装置,其特征在于,所述处理器,还用于:The device according to claim 6, wherein the processor is further configured to:
    在通过所述摄像头监控用户做人体运动的画面之前,响应于用户触发的记录所述人体运动的标准动作的指令;An instruction to record a standard motion of the human motion in response to a user trigger before monitoring, by the camera, a screen in which the user performs a human motion;
    在所述摄像头对准于所述用户的目标部位时,通过所述摄像头监控用户做所述人体运动的标准动作的画面;记录标准动作对应的所述用户的目标部位占所述画面的最大比例以及最小比例;When the camera is aligned with the target portion of the user, the camera monitors a screen of the standard motion of the user to perform the human motion; and records the maximum proportion of the target portion of the user corresponding to the standard motion. And the minimum ratio;
    确定每满足一次所述目标部位占所述画面的比例变化条件时,确定满足所述比例变化条件时出现的比例最大值以及比例最小值,所述比例最大值为所述目标部位占所述画面的比例变化由增大变到减小时的最大值,所述比例最小值为所述目标部位占所述画面的比例变化由减少变到增大时的最小值;Determining, when each of the target parts accounts for a ratio change condition of the screen, determining a maximum value and a ratio minimum value that occur when the proportional change condition is satisfied, wherein the maximum value is the target part occupying the screen a change in the ratio of the change from an increase to a decrease, the minimum value being a minimum value when the target portion accounts for a change in the ratio of the picture from a decrease to an increase;
    根据所述比例最大值与标准动作对应的最大比例的比较结果、以及所述比例最小值与标准动作对应的最小比例的比较结果,确定所述用户的人体运动的动作质量,并通知给用户。The action quality of the human body motion of the user is determined according to a comparison result of the maximum ratio of the proportional maximum value corresponding to the standard action and a comparison result of the minimum ratio of the proportional minimum value and the standard action, and is notified to the user.
  8. 一种针对人体运动的计数装置,其特征在于,包括摄像设备、处理器;A counting device for human body movement, characterized in that it comprises an imaging device and a processor;
    所述摄像设备,用于监控用户的目标部位与所述摄像设备之间的物理距离变化;The imaging device is configured to monitor a physical distance change between a target part of the user and the imaging device;
    所述处理器,用于响应于用户触发的用于开启针对人体运动计数的指令,启动所述摄 像设备;在所述摄像设备对准于所述目标部位时,通过所述摄像设备监控所述目标部位与所述摄像设备之间的物理距离的变化;在确定每满足一次所述目标部位与所述摄像设备之间物理距离的距离变化条件时,为所述用户的人体运动的次数增加一次,所述距离变化条件为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小、或者所述目标部位与所述摄像设备之间的物理距离变化由减小变到增大;通过所述摄像设备监测到所述人体运动停止后,将最终所述人体运动的次数通知给用户。The processor is configured to start the photographing in response to a user-triggered instruction for turning on a counting of a human body motion The image device monitors a change in a physical distance between the target portion and the image pickup device when the image pickup device is aligned with the target portion; and determines that the target portion is satisfied once each time When the distance of the physical distance between the imaging devices changes, the number of times of the human body movement of the user is increased once, and the distance change condition is that the physical distance between the target portion and the imaging device changes by an increase. Changing to decrease, or a change in physical distance between the target portion and the imaging device is changed from decreasing to increasing; after the imaging device detects that the movement of the human body is stopped, the human body is finally moved. Notify the user of the number of times.
  9. 如权利要求8所述的装置,其特征在于,所述摄像设备为对焦摄像头,或者,所述摄像设备包括摄像头以及测距辅助装置。The apparatus according to claim 8, wherein said image pickup apparatus is a focus camera, or said image pickup apparatus comprises a camera and a distance measuring assisting means.
  10. 如权利要求8或9所述的装置,其特征在于,所述处理器,还用于:The device according to claim 8 or 9, wherein the processor is further configured to:
    响应于用户触发的记录所述人体运动的标准动作的指令;An instruction to record a standard action of the human motion in response to a user trigger;
    在所述摄像设备对准于所述用户的目标部位时,通过所述摄像设备监控用户做所述人体运动的标准动作时,所述目标部位与所述摄像设备之间的距离变化;When the camera device is aligned with the target portion of the user, when the camera device monitors a standard action of the user to perform the body motion, a distance between the target portion and the camera device changes;
    记录标准动作对应的所述目标部位与所述摄像设备之间的最大距离以及最小距离;Recording a maximum distance and a minimum distance between the target portion corresponding to the standard action and the imaging device;
    确定每满足一次所述目标部位与所述摄像设备之间的物理距离的距离变化条件时,确定满足所述距离变化条件时出现的距离最大值以及距离最小值,所述距离最大值为所述目标部位与所述摄像设备之间的物理距离变化由增大变到减小时的最大值,所述距离最小值为所述目标部位与所述摄像设备之间的物理距离变化由减少变到增大时的最小值;Determining, for each time a distance change condition that satisfies a physical distance between the target portion and the imaging device, determining a distance maximum value and a distance minimum value that occur when the distance change condition is satisfied, the distance maximum value being a maximum value when the physical distance between the target portion and the imaging device changes from increasing to decreasing, the minimum value being a change in physical distance between the target portion and the imaging device from decreasing to increasing The minimum value of the time;
    根据所述距离最大值与标准动作对应的最大距离的比较结果、以及所述距离最小值与标准动作对应的最小距离的比较结果,确定所述用户的人体运动的动作质量,并通知给用户。And determining, according to a comparison result of the distance maximum value and a maximum distance corresponding to the standard action, and a comparison result of the distance minimum value and a minimum distance corresponding to the standard action, determining an action quality of the human body motion of the user, and notifying the user.
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储软件程序,所述软件程序在被一个或多个处理器读取并执行时可实现权利要求1~5任一项所述的方法。 A computer readable storage medium, wherein the computer readable storage medium stores a software program that, when read and executed by one or more processors, implements any of claims 1 to 5 The method described in the item.
PCT/CN2017/081465 2017-03-03 2017-04-21 Method and device for counting human motions WO2018157460A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201780012496.6A CN108885789A (en) 2017-03-03 2017-04-21 A kind of method of counting and device for human motion

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710124463.2 2017-03-03
CN201710124463 2017-03-03

Publications (1)

Publication Number Publication Date
WO2018157460A1 true WO2018157460A1 (en) 2018-09-07

Family

ID=63369555

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/081465 WO2018157460A1 (en) 2017-03-03 2017-04-21 Method and device for counting human motions

Country Status (2)

Country Link
CN (1) CN108885789A (en)
WO (1) WO2018157460A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113379024B (en) * 2021-06-25 2023-06-30 杨洋 Squatting movement counting method, squatting movement counting system, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130141607A1 (en) * 2011-12-01 2013-06-06 Canon Kabushiki Kaisha Video generating apparatus and method
CN103426025A (en) * 2013-08-23 2013-12-04 华南理工大学 Non-contact push-up count method based on smart phone platform
CN204815537U (en) * 2015-08-17 2015-12-02 温州大学城市学院 Sit up device with counter mechanism
CN105597294A (en) * 2014-11-21 2016-05-25 中国移动通信集团公司 Lying-prostrating movement parameter estimation and evaluation method, device and intelligent terminal
CN105894540A (en) * 2016-04-11 2016-08-24 上海斐讯数据通信技术有限公司 Method and system for counting vertical reciprocating movements based on mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10057593B2 (en) * 2014-07-08 2018-08-21 Brain Corporation Apparatus and methods for distance estimation using stereo imagery
CN106408080B (en) * 2015-07-31 2019-01-01 富士通株式会社 The counting device and method of moving object

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130141607A1 (en) * 2011-12-01 2013-06-06 Canon Kabushiki Kaisha Video generating apparatus and method
CN103426025A (en) * 2013-08-23 2013-12-04 华南理工大学 Non-contact push-up count method based on smart phone platform
CN105597294A (en) * 2014-11-21 2016-05-25 中国移动通信集团公司 Lying-prostrating movement parameter estimation and evaluation method, device and intelligent terminal
CN204815537U (en) * 2015-08-17 2015-12-02 温州大学城市学院 Sit up device with counter mechanism
CN105894540A (en) * 2016-04-11 2016-08-24 上海斐讯数据通信技术有限公司 Method and system for counting vertical reciprocating movements based on mobile terminal

Also Published As

Publication number Publication date
CN108885789A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN110637270B (en) Displaying a scrollable affordance list associated with a physical activity
WO2018027501A1 (en) Terminal, touch response method, and device
CN106406710B (en) Screen recording method and mobile terminal
JP6496752B2 (en) Input device and user interface interaction
TWI539363B (en) Mobile device, press detection method and computer-readable recording medium
WO2017124773A1 (en) Gesture recognition method and device
WO2019033957A1 (en) Interaction position determination method and system, storage medium and smart terminal
US10860857B2 (en) Method for generating video thumbnail on electronic device, and electronic device
US20150268789A1 (en) Method for preventing accidentally triggering edge swipe gesture and gesture triggering
US20150035781A1 (en) Electronic device
CN104049734A (en) Method and devices for displaying graphical user interfaces based on user contact
KR20130058752A (en) Apparatus and method for proximity based input
WO2017124768A1 (en) Gesture recognition method and device
WO2017161825A1 (en) Scrolling screenshot use method and terminal
KR101763270B1 (en) Method, apparatus, program and computer-readable recording medium for determining character
WO2017161827A1 (en) Method for adjusting focus of camera and terminal
CA3050554C (en) Step counting method and apparatus for treadmill
JP2013240000A (en) Electronic apparatus, recording control program, and recording control method
TWI622900B (en) Portable electronic device, operating method for the same, and non-transitory computer readable recording
EP3046317A1 (en) Method and apparatus for capturing images
CN114449162A (en) Method and device for playing panoramic video, computer equipment and storage medium
US11886643B2 (en) Information processing apparatus and information processing method
US9148537B1 (en) Facial cues as commands
CN109753199B (en) Application page display method and mobile terminal
CN107943406B (en) touch point determining method of touch screen and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17898569

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17898569

Country of ref document: EP

Kind code of ref document: A1