User determination method, electronic device and computer readable storage medium
By implementing the user determination method on intelligent electronic devices and using cameras to identify and match user actions, the problem of insufficient user determination is solved, intelligent motion guidance with multi-user participation is realized, and the user experience and the interactive capabilities of the device are improved.
Patent Information
- Application Number
- CN202110815120.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-01-30
AI Technical Summary
When existing smart electronic devices guide users to exercise, the user is determined not to be smart enough, resulting in a poor user experience. Especially when multiple users participate, the device has difficulty intelligently switching and managing users, affecting the user experience.
By implementing user determination methods on electronic devices, using cameras to collect user images, identifying user actions and determining target users based on preset conditions, allowing multiple users to participate in sports events at the same time, and intelligently switching users through action matching and preset conditions , providing a flexible user joining and exiting mechanism.
It improves the user experience, allows multiple users to participate in sports events at the same time, intelligently switches users without affecting the exercise of other users, and enhances the user interaction capabilities and operating efficiency of the device.
Smart Images

Figure CN113655935B
Abstract
Description
Technical Field
[0001] The present application relates to the field of human-computer interaction technology, and in particular to a user determination method, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the development of computer technology, large-screen smart electronic devices equipped with cameras (such as smart TVs) can guide users to exercise, such as guiding users to do fitness, yoga, dancing, Tai Chi, basketball, etc. Taking electronic devices guiding users to do fitness as an example, the electronic devices display coaching videos for users to imitate and learn, collect user images through cameras to identify the user's body posture, and evaluate and guide the user's fitness movements based on the body posture.
[0003] Among the sports provided by electronic devices, some require the cooperation of multiple (referring to two or more) users (such as double rope skipping), while others do not require mutual cooperation between users. At present, for sports that do not require the cooperation of multiple users, electronic devices can usually only identify and guide a user (such as user 1) located in a specific area of the screen to exercise. During the exercise of user 1, if other users (such as user 2) also want to join the current sports project, user 2 can only join after user 1 exits and user 2 is in the specific area. The electronic device is not smart enough to switch users, and the user experience is poor. Summary of the invention
[0004] The present application provides a user determination method, an electronic device and a computer-readable storage medium, which to a certain extent solve the problem in the prior art that the electronic device is not smart enough in determining the user during the process of guiding the user to perform exercise, resulting in a poor user experience.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides a user determination method, which is applied to an electronic device, and the method includes: in response to a first operation of a user, displaying a preset first image and a captured second image; determining a first target user in the second image; displaying first content related to the first target user; while displaying the first content related to the first target user, determining a second target user in the second image; and while displaying the first content, displaying second content related to the second target user.
[0007] In this embodiment, the first operation of the user may be an operation of the user opening a sports project provided by the electronic device. The sports project (e.g., shoulder and neck exercise) refers to a sub-application set in an application that provides sports guidance services. An application usually includes multiple sub-applications, and the electronic device can provide different sports guidance content by running different sub-applications.
[0008] The first image usually includes a display icon specifying an action to be added, and may also include an action of a demonstrator (e.g., a coach). The second image is image information collected by the electronic device through a camera. The second image may include other users in addition to the first target user and the second target user.
[0009] The target user refers to the target user determined by the electronic device for the current sport. For example, if the current sport is fitness, the target user is a fitness user. The content related to the target user can be: a ring indicating that the user is the target user, or the user's exercise time, score, calories consumed, etc.
[0010] Through the user determination method provided in the embodiment of the present application, after determining the first target user, the electronic device can determine other users as second target users, and guide multiple target users to perform exercise at the same time. The addition of the second target user will not affect the first target user, thereby providing a better user experience.
[0011] It should be noted that the user determination method provided in the embodiment of the present application is not limited to the scenario with only two target users. After determining multiple (referring to two or more) target users, the electronic device can continue to determine other target users, such as the third target user, the fourth target user, etc.
[0012] In some embodiments, determining the first target user in the second image includes: when the user in the second image satisfies the first preset condition, determining the user as the first target user. Determining the second target user in the second image includes: when other users in the second image other than the first target user meet the first preset condition, determining the other users as the second target user. It should be understood that in this embodiment, the determination conditions for each target user are the same, and each user can become a target user by completing the first preset condition.
[0013] In some embodiments, the first preset condition is: the user's action matches the designated joining action, and the matching continues for more than a preset time; or the user's action sequence matches the action sequence displayed in the first image, and the matching continues for more than a preset time. The designated joining action is pre-set in the electronic device. The action sequence displayed in the first image is the action sequence performed by the demonstrator.
[0014] Through the method provided in the embodiment of the present application, the user can join the current sports event by performing a specified joining action, or can join the current sports event by imitating the actions of the demonstrator, which provides a good user experience.
[0015] In some embodiments, the method further includes: when the first target user meets the second preset condition, not displaying the first content related to the first target user; or, when the second target user meets the second preset condition, not displaying the second content related to the second target user.
[0016] It should be understood that when the electronic device does not display the first content related to the first target user, the first target user exits the current sports project, and the electronic device no longer guides his exercise. Similarly, when the electronic device does not display the second content related to the second target user, the second target user exits the current sports project, and the electronic device no longer guides his exercise.
[0017] In some embodiments, the second preset condition is: the target user's action matches the specified exit action and continues to match for more than a preset time; or, the target user remains still for more than a preset time and does not match the action sequence displayed in the first image; or, the target user is not in the third image and continues for more than a preset time.
[0018] Through the method provided in the embodiment of the present application, the user can exit the current sports event by performing a designated exit action, by remaining still and not performing a demonstration action, or by leaving the camera shooting range. The user's ways of exiting the current sports event are intelligent, flexible and diverse.
[0019] In some embodiments, the method further includes: when the first target user or the second target user meets the third preset condition, displaying an inquiry message, the inquiry message is used to inquire whether the corresponding target user exits. For example, the inquiry message may be "Do you want to exit the current sports event?" It should be noted that the inquiry message only serves as a prompt, and whether to exit the current sports event is determined according to the choice of the target user.
[0020] In some embodiments, the third preset condition is that the matching degree between the target user's action and the action sequence displayed in the first image is lower than a threshold and lasts for more than a preset time. When the user meets the third condition, it means that the target user is in a poor exercise state or is not actively exercising during the exercise.
[0021] In some embodiments, the upper limit number of target users that the electronic device can determine is T, T≥2. For example, T=3, T=5, etc. For the first type of sports that do not require cooperation between users, T=A, A is the upper limit number of target users that the electronic device can determine. For the second type of sports that require K users to cooperate with each other, T=K.
[0022] For the first type of sports, for electronic devices with insufficient computing power, the operating speed of the electronic devices can be improved to a certain extent by setting an upper limit for target users.
[0023] In some embodiments, the method further includes: for the second type of sports event, when the number of determined target users is P, P<T, a first prompt message is displayed, and the first prompt message is used to prompt that the number of target users is insufficient and the current sports event cannot be started.
[0024] In some embodiments, the method further includes: when the number of determined target users is P, P<T, if it is detected that there are Q users who simultaneously meet the first preset condition, and Q>TP, a second prompt message is displayed, and the second prompt message is used to prompt that the number of current target users exceeds the upper limit T.
[0025] In some embodiments, the method also includes: when the number of determined target users is P, P<T, if it is detected that there are Q users who simultaneously meet the first preset condition, Q>TP, determining the matching degree between the action of each user among the Q users and the specified joining action, or the matching degree between the action sequence of each user and the action sequence displayed in the first image, determining the user with the top TP matching degree as the target user, and displaying content related to the target user.
[0026] Through the method provided in this embodiment, the electronic device can select users on a preferential basis and determine users with relatively standard movement postures as target users.
[0027] In some embodiments, the method also includes: when a user is determined as a target user, recording the time of the determination operation; when the number of determined target users is T, if it is detected that the T+1th user meets the first preset condition, the relevant content of the user with the earliest time of the determination operation among the T target users is not displayed; the T+1th user is determined as the target user; and the content related to the T+1th user is displayed.
[0028] The method provided in this embodiment is based on a "first in, first out" mechanism, which replaces the target user who joins earliest, and can provide each user with the opportunity to exercise as much as possible, thus providing a better user experience.
[0029] In some embodiments, the method also includes: when the number of determined target users is T, if it is detected that the T+1th user satisfies the first preset condition, determining the distance between the user image of the T+1th user on the third image and the user image of each target user; not displaying content related to the target user closest to the T+1th user; determining the T+1th user as the target user; and displaying content related to the T+1th user.
[0030] Through the method provided in this embodiment, a non-target user can replace the target user by standing near the target user to be replaced and making a joining action, thereby providing a better user experience.
[0031] In some embodiments, the method also includes: when the number of determined target users is T, if it is detected that the T+1th user satisfies the first preset condition, the T target users are highlighted in sequence; when highlighting the i-th target user among the T target users, if it is detected that the T+1th user makes a selection action, the content related to the i-th target user is not displayed; the T+1th user is determined as the target user; and the content related to the T+1th user is displayed.
[0032] Through the user determination method provided in this embodiment, non-target users can independently select the target user they want to replace by taking actions, which provides a better user experience.
[0033] In some embodiments, the method further includes: determining whether the target user is a new user; if the target user is a new user, displaying user switching prompt information, wherein the user switching prompt information includes a display icon for specifying a join action.
[0034] For new users, they may not understand the way of switching users of electronic devices. Therefore, through the method provided in this embodiment, the new user can be reminded repeatedly to strengthen the new user's understanding of the switching method, so as to improve the success rate of the user when joining sports events later.
[0035] In some embodiments, determining whether the target user is a new user includes: after determining the target user, collecting facial information of the target user; searching for facial information of the target user in a facial information database of an application server, wherein the facial information database includes facial information of historical target users; if the facial information of the target user is not included in the facial information database, determining that the user is a new user, and storing the facial information of the new user in the facial information database.
[0036] In some embodiments, when the first preset condition is that the user's action matches the specified joining action and the matching continues for more than a preset time, the method further includes: after determining the target user, updating the specified joining action of the target user according to the actual joining action of the target user; wherein the actual joining action is the action actually performed by the target user.
[0037] In some embodiments, based on the actual joining action of the target user, the designated joining action of the target user is updated, including: when the target user is a new user, based on the actual joining action of the target user, creating a template pool for the target user, the template pool storing M action templates generated based on the actual joining action, M<N; N is the maximum number of templates allowed to be stored in the template pool; updating the designated joining action of the target user to: the cluster center of the M action templates.
[0038] Through the method provided in this embodiment, the electronic device creates a template pool for each new user to learn the user's movement habits through the user's actual joining actions, and updates the user's designated joining actions according to the user's movement habits, which can improve the success rate of users joining sports events.
[0039] In some embodiments, based on the actual joining action of the target user, the designated joining action of the target user is updated, including: when the target user is not a new user, if the number of action templates in the template pool of the target user is less than N, then the actual joining action is stored in the template pool of the target user, and the template pool is updated; or, if the number of action templates in the template pool of the target user is equal to N, then the actual joining action is used to replace the action template at the edge of the cluster in the template pool of the user, and the template pool is updated; the designated joining action of the target user is updated to: the cluster center of all action templates in the updated template pool.
[0040] In this embodiment, for old users, the cluster center of the template pool is closest to the user's action habits. As the electronic device clusters and learns the user's actual joining actions, the designated joining action will become closer and closer to the user's action habits. Therefore, determining the joining action corresponding to the cluster center as the designated joining action helps to improve the success rate of user switching and improve user experience.
[0041] In some embodiments, the method further comprises: when the cloud mode is activated, displaying a sports guidance interface, the sports guidance interface including the second image captured by at least two electronic devices. Through the method provided by this embodiment, even if the users are far apart, they can participate in the same sports event through their respective electronic devices at the same time and perform sports exercises together.
[0042] In a second aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.
[0043] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the method described in the first aspect.
[0044] In a fourth aspect, an embodiment of the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to implement the method described in the first aspect.
[0045] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a schematic block diagram of a partial structure of an electronic device provided in an embodiment of the present application;
[0047] Figure 2A This is a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application Figure 1 ;
[0048] Figure 2B This is a second schematic diagram of a display interface of an electronic device provided by an embodiment of the present application;
[0049] Figure 2C This is a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application Figure 3 ;
[0050] Figure 2D This is a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application Figure 4 ;
[0051] Figure 3 is a schematic diagram of a user skeleton node provided in an embodiment of the present application;
[0052] Figure 4 is a flow chart of a user identification and tracking method provided by an embodiment of the present application;
[0053] Figure 5 is a schematic diagram of a user location provided in an embodiment of the present application;
[0054] Fig. 6A This is a user switching scenario provided by the prior art Figure 1 ;
[0055] Figure 6B This is a second schematic diagram of a user switching scenario provided by the prior art;
[0056] Figure 7 is a flow chart of a user determination method provided by an embodiment of the present application;
[0057] Fig. 8A This is a schematic diagram of a display interface when a user joins a fitness session provided by an embodiment of the present application. Figure 1 ;
[0058] Figure 8B This is a second schematic diagram of a display interface when a user joins a fitness session provided by an embodiment of the present application;
[0059] Figure 8C This is a schematic diagram of a display interface when a user joins a fitness session provided by an embodiment of the present application. Figure 3 ;
[0060] Fig.8D This is a schematic diagram of a display interface when a user joins a fitness session provided by an embodiment of the present application. Figure 4 ;
[0061] Fig. 9 is a schematic diagram of an electronic device displaying user switching prompt information provided by an embodiment of the present application;
[0062] Fig. 10A This is a schematic diagram of a display interface when a user exits fitness provided by an embodiment of the present application Figure 1 ;
[0063] Fig. 10B This is a second schematic diagram of a display interface when a user exits fitness provided by an embodiment of the present application;
[0064] Fig. 10C It is a schematic diagram of a display interface of an electronic device asking a user whether to quit fitness provided by an embodiment of the present application;
[0065] Fig. 10D This is a schematic diagram of a display interface when a user exits fitness provided by an embodiment of the present application Figure 3 ;
[0066] Fig.11 This is a schematic diagram of a three-person fitness scene provided by an embodiment of the present application;
[0067] Fig. 12A This is another embodiment of the present application, which provides a display interface for a user to join a fitness program. Figure 1 ;
[0068] Fig. 12B This is a second schematic diagram of a display interface when a user joins a fitness session provided by another embodiment of the present application;
[0069] Fig. 12C This is another embodiment of the present application, which provides a display interface for a user to join a fitness program. Figure 3 ;
[0070] Fig.13A This is a schematic diagram of a display interface for switching users provided by another embodiment of the present application. Figure 1 ;
[0071] Fig. 13B This is a second schematic diagram of a display interface for switching users provided by another embodiment of the present application;
[0072] Fig. 13C This is a schematic diagram of a display interface for switching users provided by another embodiment of the present application. Figure 3 ;
[0073] Fig.13D This is a schematic diagram of user distance calculation provided by an embodiment of the present application;
[0074] Fig.13E This is a schematic diagram of a display interface for switching users provided by another embodiment of the present application. Figure 4 ;
[0075] Fig.14 is a schematic diagram of displaying historical sports information provided by an embodiment of the present application;
[0076] Fig.15A This is a schematic diagram of a display interface of an electronic device provided by another embodiment of the present application Figure 1 ;
[0077] Fig. 15B This is a second schematic diagram of a display interface of an electronic device provided by another embodiment of the present application;
[0078] Fig.16A This is a schematic diagram of a display interface of an electronic device provided by another embodiment of the present application Figure 3 ;
[0079] Fig. 16B This is a schematic diagram of a display interface of an electronic device provided by another embodiment of the present application Figure 4 ;
[0080] Fig. 16C This is a schematic diagram of a display interface of an electronic device provided by another embodiment of the present application Figure 5 ;
[0081] Fig.17 is a schematic diagram of a display interface of a shared gym provided in an embodiment of the present application;
[0082] Fig.18 is a schematic diagram of a scoring ranking list provided in an embodiment of the present application;
[0083] Fig.19 is a schematic diagram of an actual joining action of a user provided in an embodiment of the present application;
[0084] Fig. 20 This is an update flow chart of a specified joining action provided in an embodiment of the present application. DETAILED DESCRIPTION
[0085] With the development of computer technology, large-screen smart electronic devices equipped with cameras (such as smart TVs, smart screens, etc.) can guide users to perform various sports exercises, such as fitness, yoga, dancing, Tai Chi, basketball, and somatosensory games.
[0086] Figure 1 The electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.
[0087] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0088] For example, when the electronic device 200 is a mobile phone or a tablet computer, it may include all the components shown in the figure, or may include only some of the components shown in the figure.
[0089] As an example, when the electronic device 200 is a large-screen device such as a smart TV or a smart screen, it may include all the components shown in the diagram, or it may include only some of the components shown in the diagram.
[0090] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0091] The controller may be the nerve center and command center of the electronic device 200. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0092] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
[0093] In some embodiments, the processor 210 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0094] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 210 may include multiple groups of I2C buses. The processor 210 may be coupled to the touch sensor 280K, the charger, the flash, the camera 293, etc. through different I2C bus interfaces. For example: the processor 210 may be coupled to the touch sensor 280K through the I2C interface, so that the processor 210 communicates with the touch sensor 280K through the I2C bus interface, thereby realizing the touch function of the electronic device 200.
[0095] The I2S interface can be used for audio communication. In some embodiments, the processor 210 can include multiple groups of I2S buses. The processor 210 can be coupled to the audio module 270 via the I2S bus to achieve communication between the processor 210 and the audio module 270. In some embodiments, the audio module 270 can transmit audio signals to the wireless communication module 260 via the I2S interface.
[0096] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 270 and the wireless communication module 260 can be coupled via a PCM bus interface.
[0097] In some embodiments, the audio module 270 may also transmit audio signals to the wireless communication module 260 via a PCM interface. Both the I2S interface and the PCM interface may be used for audio communication.
[0098] The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
[0099] In some embodiments, the UART interface is generally used to connect the processor 210 and the wireless communication module 260. For example, the processor 210 communicates with the Bluetooth module in the wireless communication module 260 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 270 can transmit audio signals to the wireless communication module 260 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0100] The MIPI interface can be used to connect the processor 210 with peripheral devices such as the display screen 294 and the camera 293. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 210 and the camera 293 communicate via the CSI interface to realize the shooting function of the electronic device 200. The processor 210 and the display screen 294 communicate via the DSI interface to realize the display function of the electronic device 200.
[0101] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 210 with the camera 293, the display screen 294, the wireless communication module 260, the audio module 270, the sensor module 280, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0102] The USB interface 230 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 230 can be used to connect a charger to charge the electronic device 200, and can also be used to transfer data between the electronic device 200 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0103] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0104] The charging management module 240 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 may receive charging input from a wired charger through the USB interface 230. In some wireless charging embodiments, the charging management module 240 may receive wireless charging input through a wireless charging coil of the electronic device 200. While the charging management module 240 is charging the battery 242, it may also power the electronic device through the power management module 241.
[0105] The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the display screen 294, the camera 293, and the wireless communication module 260. The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle number, and battery health status (leakage, impedance).
[0106] In some other embodiments, the power management module 241 may also be disposed in the processor 210. In some other embodiments, the power management module 241 and the charging management module 240 may also be disposed in the same device.
[0107] The wireless communication function of the electronic device 200 can be implemented through the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modem processor and the baseband processor.
[0108] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0109] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 200. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
[0110] In some embodiments, at least some functional modules of the mobile communication module 250 may be disposed in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 and at least some modules of the processor 210 may be disposed in the same device.
[0111] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a display screen 294. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 250 or other functional modules.
[0112] The wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 200. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0113] In some embodiments, the antenna 1 of the electronic device 200 is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the electronic device 200 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).
[0114] The electronic device 200 implements the display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.
[0115] The display screen 294 is used to display images, videos, etc. For example, the teaching video and the user action screen video in the embodiment of the present application, the display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 200 may include 1 or N display screens 294, where N is a positive integer greater than 1.
[0116] The electronic device 200 can realize the shooting function through ISP, camera 293, video codec, GPU, display screen 294 and application processor.
[0117] The ISP is used to process the data fed back by the camera 293. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 293.
[0118] The camera 293 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 200 may include 1 or N cameras 293, where N is a positive integer greater than 1.
[0119] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 200 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0120] Video codecs are used to compress or decompress digital videos. The electronic device 200 may support one or more video codecs. Thus, the electronic device 200 may play or record videos in a variety of coding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0121] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of the electronic device 200 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0122] In an embodiment of the present application, the NPU or other processors may be used to perform operations such as analyzing and processing images in a video stored in the electronic device 200 .
[0123] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0124] The internal memory 221 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 210 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 221. The internal memory 221 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.). The data storage area may store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.).
[0125] In addition, the internal memory 221 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0126] The electronic device 200 can implement audio functions through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C, the headphone interface 270D, and the application processor.
[0127] The audio module 270 is used to convert digital audio signals into analog audio signals for output, and is also used to convert analog audio inputs into digital audio signals. The audio module 270 can also be used to encode and decode audio signals. In some embodiments, the audio module 270 can be arranged in the processor 210, or some functional modules of the audio module 270 can be arranged in the processor 210.
[0128] The speaker 270A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 200 can listen to music or listen to hands-free calls through the speaker 270A. For example, the speaker can play the comparison analysis results provided in the embodiment of the present application.
[0129] The receiver 270B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 200 receives a call or voice message, the voice can be received by placing the receiver 270B close to the human ear.
[0130] Microphone 270C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 270C to input the sound signal into the microphone 270C. The electronic device 200 can be provided with at least one microphone 270C. In other embodiments, the electronic device 200 can be provided with two microphones 270C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 200 can also be provided with three, four or more microphones 270C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0131] The earphone interface 270D is used to connect a wired earphone and can be a USB interface 230 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0132] The pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 280A can be set on the display screen 294. There are many types of pressure sensors 280A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 280A, the capacitance between the electrodes changes. The electronic device 200 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 294, the electronic device 200 detects the intensity of the touch operation based on the pressure sensor 280A. The electronic device 200 can also calculate the position of the touch based on the detection signal of the pressure sensor 280A.
[0133] In some embodiments, touch operations acting on the same touch position but with different touch operation strengths may correspond to different operation instructions. For example, when a touch operation with a touch operation strength less than a first pressure threshold acts on a short message application icon, an instruction to view a short message is executed. When a touch operation with a touch operation strength greater than or equal to the first pressure threshold acts on a short message application icon, an instruction to create a new short message is executed.
[0134] The gyro sensor 280B can be used to determine the motion posture of the electronic device 200. In some embodiments, the angular velocity of the electronic device 200 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 280B. The gyro sensor 280B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 280B detects the angle of the electronic device 200 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 200 through reverse movement to achieve anti-shake. The gyro sensor 280B can also be used for navigation and somatosensory game scenes.
[0135] The air pressure sensor 280C is used to measure air pressure. In some embodiments, the electronic device 200 calculates the altitude through the air pressure value measured by the air pressure sensor 280C to assist in positioning and navigation.
[0136] The magnetic sensor 280D includes a Hall sensor. The electronic device 200 can use the magnetic sensor 280D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 200 is a flip phone, the electronic device 200 can detect the opening and closing of the flip cover according to the magnetic sensor 280D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover automatic unlocking and other features are set.
[0137] The acceleration sensor 280E can detect the magnitude of the acceleration of the electronic device 200 in all directions (generally three axes). When the electronic device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0138] The distance sensor 280F is used to measure the distance. The electronic device 200 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 200 can use the distance sensor 280F to measure the distance to achieve fast focusing.
[0139] The proximity light sensor 280G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 200 emits infrared light outward through the light emitting diode. The electronic device 200 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 200. When insufficient reflected light is detected, the electronic device 200 can determine that there is no object near the electronic device 200. The electronic device 200 can use the proximity light sensor 280G to detect that the user holds the electronic device 200 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 280G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0140] The ambient light sensor 280L is used to sense the ambient light brightness. The electronic device 200 can adaptively adjust the brightness of the display screen 294 according to the perceived ambient light brightness. The ambient light sensor 280L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 280L can also cooperate with the proximity light sensor 280G to detect whether the electronic device 200 is in a pocket to prevent accidental touch.
[0141] The fingerprint sensor 280H is used to collect fingerprints. The electronic device 200 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc.
[0142] The temperature sensor 280J is used to detect temperature. In some embodiments, the electronic device 200 uses the temperature detected by the temperature sensor 280J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 280J exceeds a threshold, the electronic device 200 reduces the performance of the processor located near the temperature sensor 280J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 200 heats the battery 242 to avoid abnormal shutdown of the electronic device 200 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 200 performs a boost on the output voltage of the battery 242 to avoid abnormal shutdown caused by low temperature.
[0143] The touch sensor 280K is also called a "touch panel". The touch sensor 280K can be set on the display screen 294, and the touch sensor 280K and the display screen 294 form a touch screen, also called a "touch screen". The touch sensor 280K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 294. In other embodiments, the touch sensor 280K can also be set on the surface of the electronic device 200, which is different from the position of the display screen 294.
[0144] The bone conduction sensor 280M can obtain vibration signals. In some embodiments, the bone conduction sensor 280M can obtain vibration signals of vibrating bones of the human body. The bone conduction sensor 280M can also contact the human body's pulse to receive blood pressure beating signals.
[0145] In some embodiments, the bone conduction sensor 280M can also be set in the earphone to form a bone conduction earphone. The audio module 270 can parse the voice signal based on the vibration signal of the vocal bone obtained by the bone conduction sensor 280M to realize the voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 280M to realize the heart rate detection function.
[0146] The key 290 includes a power key, a volume key, etc. The key 290 can be a mechanical key or a touch key. The electronic device 200 can receive key input and generate key signal input related to user settings and function control of the electronic device 200.
[0147] Motor 291 can generate vibration prompts. Motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 294, motor 291 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0148] Indicator 292 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0149] The SIM card interface 295 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 200 by inserting it into the SIM card interface 295 or pulling it out from the SIM card interface 295. The electronic device 200 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 295 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 295 can also be compatible with different types of SIM cards. The SIM card interface 295 can also be compatible with external memory cards. The electronic device 200 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 200 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 200 and cannot be separated from the electronic device 200.
[0150] The following takes the electronic device being a smart TV as an example, and combines the scenario of the electronic device guiding the user to exercise to exemplify a user determination method and electronic device provided in an embodiment of the present application. It should be understood that the user determination method provided in this embodiment is also applicable to the above-mentioned other sports training scenarios based on human-computer interaction.
[0151] Figure 2A This is a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application Figure 1 The electronic device guides the user to exercise by running a fitness application (application, App). Depending on the different Apps, the sports and exercise items provided by the electronic device are usually different. Figure 2A Taking the artificial intelligence (AI) fitness app shown in the figure as an example, when the electronic device runs the AI fitness app, the sports items provided include not only fitness items (such as "shoulder and neck exercise", "chest expansion exercise", etc.), but also yoga, stretching and relaxation, dance, Tai Chi, etc. Users can choose the sports items they want to do according to their needs, such as "shoulder and neck exercise" in the fitness items.
[0152] The sports items (such as fitness items) involved in this embodiment refer to sub-applications set in an application that provides sports guidance services. An application usually includes multiple sub-applications, and the electronic device can provide different guidance contents by running different sub-applications.
[0153] Optionally, the user can select a sport through a remote control or through voice control. For example, the user can control the electronic device to open the AI Fitness App through a first control voice (such as "Xiaoyi Xiaoyi, open AI Fitness"); and open the "Shoulder and Neck Exercise" through a second control voice "I want to do shoulder and neck exercise". This embodiment does not limit the specific voice control instructions.
[0154] Figure 2B FIG2 is a second schematic diagram of a display interface of an electronic device provided by an embodiment of the present application. Figure 2B As shown in the figure, after the user selects "shoulder and neck exercise" through the remote control, the electronic device can display some basic information of the exercise, such as the project name "shoulder and neck exercise", exercise duration "8 minutes", difficulty "normal", etc. In addition, the electronic device can also display some controls, such as mode options such as "smart mode" and "normal mode". The user controls the electronic device to enter the corresponding exercise mode by operating the mode option.
[0155] It should be noted that in this embodiment, in the smart mode, the electronic device not only plays the coaching video, but also collects the user's image and recognizes the user's movements, thereby providing fitness guidance to the user. In the normal mode, the electronic device only plays the coaching movements for the user to imitate and learn by himself, does not collect the user's image, and does not provide fitness guidance to the user.
[0156] Figure 2C This is a schematic diagram of a display interface of an electronic device provided by an embodiment of the present application Figure 3 See also Figure 2C As shown, in the smart mode, one part of the user interface of the electronic device is used to display the coach's movements, and the other part is used to display the user's movements, so that the user can compare and observe whether his or her movements are standard during the fitness process. In addition, since there may be multiple users within the camera shooting range, some users want to join the fitness, while some users do not want to join the fitness, the electronic device needs to identify and determine the fitness users.
[0157] It should be noted that in this embodiment, each person within the shooting range of the electronic device camera is referred to as a user, and the users who have joined the fitness are referred to as fitness users, and the users who have not joined the fitness are referred to as non-fitness users. In this embodiment, the person image in the coach action display area of the electronic device is referred to as a coach or demonstrator.
[0158] After the electronic device opens the fitness program, the electronic device will use the camera to collect image information in real time and perform skeletal node recognition on all people in the image information (for example, Figure 3As shown), the user's body posture is determined until the electronic device exits the fitness exercise. Therefore, in a possible implementation, after entering the fitness program, the electronic device can display a prompt message to prompt the user to make a specified joining action to join the fitness. After displaying the prompt message, the electronic device collects and recognizes the user's image, determines the user who makes the specified joining action as a fitness user, and tracks and identifies the user, thereby providing fitness guidance for the user. For example, see Figure 2C As shown, the designated action prompted by the electronic device is: clench your fists and bend them upwards, on both sides of your head. When the electronic device detects that the user's action matches the designated action, it determines that the user is a fitness user and guides him to exercise.
[0159] When a user successfully joins a fitness exercise, the electronic device may display a ring under the user's feet to indicate that the user is a fitness user. Figure 2D As shown, when the user moves, the ring will also move with the user.
[0160] In the process of an electronic device guiding a fitness user to exercise, the electronic device determines the user's body posture based on the user image captured by the camera and the human skeleton node recognition algorithm, and then analyzes the user's body posture in combination with the coach's movements and the movement matching algorithm, thereby evaluating and guiding the fitness user's movements. Among them, evaluating the movement includes scoring the movement and determining the evaluation information of the movement. For example, the score can be 50 points, 80 points, or 90 points, and the evaluation information can be comments, such as "very good", "perfect", "come on", "regrettable", etc., or some prompt sounds. Guiding the movement includes correcting problems with the current fitness movement. For example, see Figure 2D As shown, when a fitness user is performing shoulder circle exercise, when the electronic device detects that the speed of the fitness user's arm circle is too fast, a prompt message such as "Don't circle too fast" can be displayed.
[0161] In addition, see Figure 2D As shown in FIG. 1 , during the smart fitness process, the electronic device can also display the number of times the fitness user has completed the current fitness action, and the total number of times the fitness action needs to be completed. Figure 2D For example, for the current coaching action of shoulder and neck circle exercise, "6 / 12" means that the fitness user has currently completed 6 times of shoulder circle exercise, and a total of 12 times of shoulder circle exercise are required.
[0162] In the above embodiment, the electronic device guides the fitness user to perform Figure 2DWhen the shoulder is in orbit, the position of the elbow of the fitness user can be detected in real time by the skeleton node algorithm. If the electronic device detects that the movement trajectory of the elbow of the fitness user is circular, the fitness user is considered to have completed a shoulder orbit movement for each circular trajectory formed, so as to count the number of completions. In addition, when it is detected that the orbit speed of the user's elbow is greater than the orbit speed of the coach's elbow, it is considered that the orbit speed of the fitness user's arm is too fast.
[0163] Figure 4 It is a flowchart of a user identification and tracking method provided by an embodiment of the present application, which specifically includes the following contents.
[0164] S401, the electronic device obtains a user image.
[0165] The user image refers to the image information collected by the camera, which may include one or more users. For example, Figure 7 The user images shown include only one user.
[0166] S402: The electronic device determines the position of the user in the user image.
[0167] Optionally, the electronic device may determine the position (B, C, W, H) of each user in the user image based on an image recognition algorithm or a neural network algorithm. Wherein, (B, C, W, H) is used to describe the position of the rectangular area where the user is located in the user image. For example, see Figure 5 As shown, (B, C, W, H) means that the coordinates of the upper left vertex of the rectangular area are (B, C), and the coordinates of the lower right vertex are (B+W, C+H).
[0168] After determining the position of the user in the user image, the electronic device may display relevant information of the user near the position, such as account information, historical fitness information, fitness score, etc. Optionally, the electronic device may display relevant information of the user in an area above the upper border of the rectangular area.
[0169] S403, the electronic device tracks and identifies each user based on the position of the user in the user image.
[0170] In this embodiment, the electronic device identifies the rectangular area where each user is located in each frame of the user image and determines the position of the skeleton node of each user. In the continuous D frames of user images, the users whose skeleton node positions differ within a preset range are determined to be the same user to achieve tracking and identification of the users, D≥2.
[0171] In addition, the electronic device can also identify each frame of user image as a whole and determine the position of the skeleton nodes of each user. In the continuous D frames of user images, the users whose skeleton node positions differ within a preset range are determined as the same user to achieve tracking and identification of the user, D≥2.
[0172] It can be understood that, compared with recognizing the entire user image, recognizing only the rectangular area where the user is located helps to improve the recognition rate of the skeleton node position, thereby improving the user tracking and recognition rate.
[0173] In the process of identifying the user's skeletal nodes, some abnormal skeletal node recognition may occur in the user image, such as recognition failure or recognition results that are significantly different from adjacent frames. In order to prevent abnormal skeletal node recognition results from affecting the user's tracking and recognition, the electronic device can ignore the abnormal skeletal nodes. For example, in three adjacent frames of user images, if the skeletal node 1 of a user in the second frame of the user image is recognized abnormally, but the remaining skeletal nodes of the user are recognized normally, and there are skeletal nodes with similar positions in the user images of adjacent frames. Then, it can also be explained that in the three consecutive frames of user images, the user is the same user.
[0174] If the electronic device needs to identify the user's posture based on the second frame of the user image and determine the matching degree between the user's posture and the coaching action, the designated joining action, etc., the electronic device needs to estimate and process the abnormal bone node recognition results in combination with the adjacent frames of the user image. For example, in three consecutive frames of user images, for the same user, the electronic device can determine the middle position of the bone node 1 in the first frame and the third frame of the user image, and determine the middle position as the position of the abnormal bone node 1 in the second frame of the user image.
[0175] In addition, in some other embodiments, the electronic device can further track and identify the user based on the deep neural network algorithm and the user's personal characteristics on the basis of tracking and identifying the user through the skeleton nodes, so as to ensure the accuracy of user tracking and identification. The user's personal characteristics include: the length of the user's hair, the user's facial features, the style, color and texture of the user's clothes, the color of the user's shoes, etc.
[0176] Through the user identification and tracking method provided in the embodiment of the present application, the electronic device can quickly and accurately track and identify users, and then guide each user to perform exercise.
[0177] Among the sports programs provided by electronic devices, some require the cooperation of a preset number of users (such as double rope skipping, double dancing, etc.), while others do not require cooperation between users (such as single-person shoulder and neck exercises). At present, for sports programs that do not require the cooperation of multiple users, electronic devices can usually only identify and guide one user (such as user 1) to perform exercise. During the exercise of user 1, if other users (such as user 2) also want to join the current sports program, user 2 can only join after user 1 exits. Taking user 1 performing shoulder and neck exercises as an example, see Fig. 6A As shown, after user 1 has exited the fitness program and successfully exited the fitness program, user 2 can join the current fitness program through the join action. Figure 6B As shown, after user 2 leaves the shooting range of the camera, user 2 can join the current fitness program through the join action, which is a poor user experience. It can be seen that the current electronic device is not smart enough to switch fitness users, and the user experience is poor.
[0178] To this end, the embodiments of the present application provide a user determination method and an electronic device to intelligently switch fitness users and improve user experience.
[0179] First, it should be noted that the present embodiment divides the sports items into the first category and the second category. Among them, the first category does not require cooperation between users, and users can exercise independently, such as shoulder and neck exercises, single Tai Chi, etc. The second category requires a preset number of users to cooperate with each other to exercise, such as double rope skipping, three-person dance, etc.
[0180] The user determination method provided in the embodiment of the present application is described in detail below with reference to an example in which an electronic device guides a user to perform a first type of sports event.
[0181] For the first type of sports, since it does not require mutual cooperation between users, fitness users can exercise independently. Therefore, in this embodiment, when the electronic device guides the user to perform the first type of sports, it can identify the fitness intention of each user based on the image information of the user within the camera shooting range, and independently manage the joining or exit of each user according to the fitness intention of each user, and allow one or more fitness users to exercise at the same time to improve the user experience.
[0182] For example, see Figure 7As shown, after opening the first type of sports project, the electronic device can continuously identify the skeleton nodes of each user within the camera shooting range, and identify the switching actions of each user in real time. In this embodiment, the switching action includes a join action and an exit action. When the electronic device detects that a user makes a join action, it is considered that the user has a fitness intention, and the user is determined as a fitness user, and the fitness action is evaluated and guided. When the electronic device detects that a fitness user makes an exit action, it is considered that the user has no fitness intention, and the user is determined as a non-fitness user, and the fitness action is no longer evaluated and guided.
[0183] The following takes the first type of sports item, which is "shoulder and neck sports" for a single person, as an example, and combines user 1 and user 2 to illustrate the process of switching users of the electronic device.
[0184] (I) User joins fitness
[0185] In this embodiment, the user can join the fitness by performing a designated joining action or a coaching action. The user performing the designated joining action means that the matching degree of the user's action and the designated joining action is greater than or equal to the first threshold and lasts for a preset time. The user performing the coaching action means that the matching degree of the user's action and the coaching action synchronously displayed by the electronic device is greater than or equal to the first threshold and lasts for more than a preset time. Exemplarily, the first threshold can be 80%, 90%, etc., and the preset time can be 1 second, 2 seconds, 3 seconds, etc.
[0186] In some embodiments, see Fig. 8A As shown, after the electronic device opens the fitness project of the first category of sports, in the process of the electronic device determining the fitness users, if user 1 and user 2 want to perform the "shoulder and neck exercise" exercise together, then user 1 and user 2 can perform the designated joining action together according to the prompt information displayed by the electronic device (such as a schematic diagram of the designated joining action, and the prompt "Please complete the illustrated action"). After the electronic device detects that user 1 and user 2 perform the designated joining action together, it determines both user 1 and user 2 as fitness users and starts to guide user 1 and user 2 to exercise.
[0187] Optionally, after detecting that multiple people are performing a designated joining action at the same time, the electronic device may display a countdown prompt message for entering a multi-person fitness mode, such as “3 seconds left to enter the multi-person fitness mode”, and perform a 3-second countdown.
[0188] In some other embodiments, user 1 first adds shoulder and neck movements alone (see Figure 2C ), if user 2 wants to join the current sports event, he can join the fitness by performing a join action. In this embodiment, the join action can be a specified join action, such as Figure 2Cor the joining action may be the coaching action currently displayed by the electronic device. That is, if the electronic device detects that the matching degree of the user 2's action with the designated joining action or coaching action is greater than a first threshold (e.g., 80%), and the duration of the matching degree greater than the first threshold exceeds a preset time (e.g., 3 seconds), it is determined that the user 2 has the intention to join the fitness and is determined as a fitness user.
[0189] For example, when user 1 is doing shoulder and neck exercise, if user 2 wants to join the current exercise, then refer to Figure 8B As shown, user 2 can perform a designated joining action with user 1 to join the fitness together. Specifically, after the electronic device detects that user 1 and user 2 perform a designated joining action at the same time, user 1 and user 2 are both determined as fitness users. Optionally, after the electronic device detects that multiple people perform a designated joining action at the same time, it can display a countdown prompt message for entering the multi-person fitness mode, such as "3 seconds left to enter the multi-person fitness mode", and perform a 3-second countdown.
[0190] For example, see Figure 8C As shown, when user 1 is doing shoulder and neck exercises, if user 2 wants to join the current sports program, user 2 can directly follow the coach to do the coaching movements. After the electronic device detects that the matching degree between user 2's movements and the coach's movements is greater than a first threshold (e.g., 80%), and the duration of the movement is greater than a preset time (e.g., 3 seconds), user 2 is directly identified as a fitness user, and his fitness movements are evaluated and guided. Optionally, while user 2 is doing the coaching movements, the electronic device can also display a countdown prompt message for user 2 to join the fitness, such as "3 seconds left to join the fitness", and count down for 3 seconds.
[0191] For example, see Fig.8D As shown, when user 1 is doing shoulder and neck exercises, if user 2 wants to join the current sports event, while user 1 is doing coaching actions, user 2 can join the current fitness exercise by doing a designated joining action. After the electronic device detects that user 2 has done the designated joining action, it directly identifies user 2 as a fitness user and evaluates and guides his fitness action. Optionally, while user 2 is doing the designated joining action, the electronic device can also display a countdown prompt message for user 2 to join the fitness, such as "3 seconds left to join the fitness", and count down for 3 seconds.
[0192] In the above Figures 8A to 8DIn the illustrated embodiment, after multiple users join the current fitness program, the electronic device may display a prompt message, indicating that the electronic device has entered a multi-person fitness mode and the number of current fitness users. Taking the current fitness users as user 1 and user 2 as an example, the prompt message displayed by the display device may be "successfully entered the multi-person mode, the current fitness users are 2 people".
[0193] In addition, in this embodiment, the electronic device can be connected to the application server of the fitness application, and the basic information of all fitness users is stored in the application server. The basic information includes account name, facial information, etc. After a user becomes a fitness user, the electronic device can query the application server whether the user is a new user (i.e., a user who is doing smart fitness for the first time) based on his facial information. If the user's facial information is not stored in the application server, the user is determined to be a new user. If the user is a new user, the electronic device will display user switching prompt information at preset intervals during the process of guiding the user to exercise. The prompt information includes an icon for specifying a joining action, which is used to prompt the new user on how to join fitness, thereby improving the fitness experience of the new user. For example, see Fig. 9 As shown, user 2 is a new user, so after user 2 joins the current fitness program, the electronic device displays a user switching prompt message once every preset time interval (for example, 10 seconds).
[0194] Optionally, the electronic device may also count the number of times the user successfully joins the fitness program according to the specified joining action. If the number does not exceed a preset number (e.g., 5 times), the electronic device will display the user switching prompt information at intervals (e.g., 1 minute) each time the user becomes a fitness user, so that the user can join the fitness program according to the prompt information. When the electronic device detects that the number of times user 2 successfully joins the fitness program exceeds or is equal to the preset number, the user switching prompt information will no longer be displayed for the user.
[0195] Optionally, as the number of times that the user successfully joins fitness according to the specified joining action gradually increases, the electronic device may gradually increase the display time interval of the user switching prompt information.
[0196] For new users, the electronic device displays user switching prompt information at preset intervals, which can prompt the new users on the user switching method and improve the user experience.
[0197] In this embodiment, after determining multiple fitness users, the electronic device may display a ring under the feet of each fitness user. The colors of the rings may be different for different fitness users. Figure 8B In the figure, the color of the ring of user 1 is red, and the color of the ring of user 2 is green.
[0198] Through the user determination method provided in this embodiment, after the electronic device starts the first type of sports program, each user with fitness intention can be determined as a fitness user at any time, and these fitness users can be guided to exercise at the same time, which has a better user experience.
[0199] (II) User exits fitness
[0200] In the process of one or more fitness users using electronic devices to guide fitness, the electronic device can determine whether the current fitness user intends to exit fitness, that is, whether the fitness user has made an exit action based on the image information collected by the camera. If the fitness user makes an exit action, he or she will be determined as a non-fitness user and will no longer be guided to perform fitness exercises. Optionally, in this embodiment, the exit action can be leaving the shooting range of the camera, or a specified exit action (such as crossing the arms in front of the chest), or the match degree with the coach's action is lower than a preset value, and the user is in a stationary state. Among them, the user making a specified exit action means that the match degree between the user's action and the specified exit action is greater than or equal to the first threshold, and lasts for a preset time.
[0201] The following takes the case where the current fitness users are user 1 and user 2, and user 1 wants to quit the current fitness exercise as an example to illustrate the user determination method provided by this embodiment.
[0202] For example, see Fig. 10A As shown, during the process of user 1 and user 2 exercising together, when user 1 leaves the camera's shooting range for a preset time (e.g., 5 seconds), the electronic device automatically cancels the fitness guidance for user 1 because it cannot recognize user 1. It should be noted that if the user leaves the camera's shooting range for less than the preset time, for example, only leaves for 2 seconds and then returns immediately, the electronic device can continue to track and identify the user and guide him / her to exercise.
[0203] For example, see Fig. 10B As shown, during the process of user 1 and user 2 exercising together, within a preset time (for example, within 3 seconds), if the electronic device detects that user 1 is stationary, and the matching degree between user 1's fitness movements and the coach's movements is lower than a preset value (for example, 60%), it is determined that user 1 intends to exit the current fitness. At this time, the electronic device determines user 1 as a non-fitness user and no longer provides fitness guidance to him. Among them, the electronic device can perform time-series behavior analysis based on the key skeletal nodes corresponding to the current fitness project. If within a preset time (for example, within 3 seconds), the standard deviation of the displacement of each key node is within a threshold range (for example, 3 cm), the user is considered to be stationary.
[0204] It should be noted that, in this embodiment, the skeletal nodes include skeletal nodes at the positions of the shoulder, elbow, wrist, head, knee, hip, ankle, etc. Exemplarily, when the fitness item is "shoulder and neck exercise", the corresponding key skeletal nodes include skeletal nodes at the positions of the shoulder, elbow, wrist, head, etc. When the fitness item is "kicking exercise", the corresponding key skeletal nodes include skeletal nodes at the positions of the knee, hip, ankle, etc.
[0205] For another example, see Fig. 10C As shown, during the process of user 1 and user 2 exercising together, when the electronic device detects that user 1 is not in a stationary state, but within a preset time (for example, within 10 seconds), the matching degree between user 1's current fitness action and the coach's action is lower than a preset value (for example, 40%), it is considered that the user may have the intention to exit the current fitness. Therefore, the electronic device displays an inquiry message to ask user 1 whether to exit the current fitness program. Exemplarily, the inquiry message may be "Your action matching degree is low, do you want to exit fitness?". When the electronic device detects that the user has made a specified exit action, it will no longer provide fitness guidance to user 1. Otherwise, continue to provide fitness guidance to him.
[0206] For example, see Fig. 10D As shown, during the process of user 1 and user 2 exercising together, when the electronic device detects that user 1 makes a designated exit action, it no longer provides fitness guidance to user 1.
[0207] It should be noted that in the above Figures 10A-10D In the illustrated embodiment, after user 1 quits fitness, user 2 can still perform fitness exercises normally without being affected by the quitting of user 1.
[0208] It should be noted that the above embodiment only takes user 1 and user 2 as examples to exemplify the user determination method provided by this embodiment for the first type of sports, and does not limit the number of users to 2. When there are more users within the camera shooting range, the electronic device can also switch users through the user determination method. For example, see Fig.11 As shown, during the fitness process of user 1 and user 2, user 3 can also join or exit the current fitness program based on the user determination method provided in this embodiment.
[0209] In summary, in the process of the electronic device guiding the user to perform the first type of sports, the electronic device can flexibly switch the fitness users according to the fitness intentions of each user within the camera range (i.e., whether the user has made a joining action or a quitting action). This includes determining all users with fitness intentions as fitness users and guiding them to perform fitness exercises, and determining users with quitting intentions as non-fitness users and no longer guiding them to perform fitness exercises, which provides a good user experience.
[0210] The user determination method provided in the embodiment of the present application is described in detail below with reference to an example in which an electronic device guides a user to perform the second type of sports.
[0211] Since the second type of sports event requires a preset number of users to cooperate with each other, the electronic device not only needs to identify the fitness users within the camera shooting range, but also needs to count the number of fitness users. If the current number of fitness users does not reach the preset number, the electronic device displays a first prompt message to prompt that the current number of fitness users is insufficient. The user can join the current sports event in time and start exercise according to the first prompt message.
[0212] Taking the second type of sports project as a two-person fitness project as an example, the electronic device needs to identify two fitness users within the image range captured by the camera before starting the fitness project. Fig. 12A As shown, during the process of user 1 and user 2 joining a two-person fitness program, when user 1 has joined the program but user 2 has not, the number of fitness users has not reached the required preset number 2, and the electronic device displays a first prompt message "One fitness user is missing". After both user 1 and user 2 have joined the program, the electronic device displays a prompt message "Successfully joined the program" and begins to guide the users in fitness.
[0213] Since the number of fitness users in the second type of sports is preset, in actual applications, when a user performs a designated action to trigger fitness, more than the preset number of users may want to join the fitness. For example, in a two-person fitness project, three or more users may want to join the fitness, and the electronic device needs to take certain processing measures for this situation.
[0214] In some embodiments, when the user triggers the electronic device to start fitness guidance, when the sum of the number of users who have joined and the number of users who are currently performing the specified joining action exceeds the number of people required for the fitness program, it means that there are extra users who want to join the fitness program. At this time, the electronic device can display a second prompt message to prompt that the number of fitness users exceeds the preset number. The user can negotiate to join the current sports program according to the second prompt message, which provides a good user experience.
[0215] For example, see Fig. 12B As shown, when user 1, user 2 and user 3 simultaneously make a designated joining action to join a two-person fitness program, since the number of people requesting to join the two-person fitness program exceeds two people, the electronic device may display a second prompt message "Only two fitness users are needed, non-fitness users please put down the action". After any one of user 1, user 2 or user 3 puts down the designated joining action, the electronic device starts to guide the user to perform a two-person fitness program.
[0216] In other embodiments, taking the second type of sports event that requires cooperation between K users as an example, K≥2, when the user triggers the electronic device to start fitness guidance, the number of fitness users determined by the electronic device is P. Subsequently, when the electronic device detects that Q people are doing the designated joining action together, the users corresponding to the KP actions with the highest matching degree of the designated joining action are determined as fitness users, where Q>P. The method provided in this embodiment can determine users with relatively standard postures as fitness users.
[0217] For example, see Fig. 12C As shown, the number of fitness users who have currently joined the two-person fitness is 0, and there are still 2 fitness users missing. When the electronic device detects that user 1, user 2, and user 3 make a designated joining action together to join the two-person fitness, the electronic device detects that the matching degree of the joining actions made by user 1 and user 2 is the top two, and the action matching degree of the joining action made by user 3 is the last, so the electronic device determines user 1 and user 2 as fitness users, and displays prompt information on their images respectively to prompt them to become fitness users. Exemplarily, the prompt information can be "The action matching degree is high, you are a fitness user." Subsequently, the electronic device begins to guide user 1 and user 2 to perform two-person fitness.
[0218] After both user 1 and user 2 join the fitness session, if another user (eg user 3) wants to replace user 1 in joining the fitness session, the user may join the fitness session in any of the following ways.
[0219] Method 1: Join a fitness session after an existing fitness user has exited
[0220] See also Fig.13A As shown in FIG. 1 , during the fitness process of user 1 and user 2, if user 1 exits the current fitness by performing an exit action, user 3 can join the current fitness by performing a join action, thereby achieving the purpose of user 3 replacing user 1 to perform a two-person fitness. It should be noted that in this embodiment, the exiting user (i.e. user 1) can use Fig. 10A , Fig. 10B or Fig. 10D To exit the current fitness exercise, the user who joined (i.e., user 3) can use any of the exit methods shown in Figure 8A-8D A joining method is shown for a person to join a current fitness activity.
[0221] Method 2: Become a fitness user based on the order in which you join the fitness program
[0222] See also Fig. 13BAs shown in FIG. 1 , during the fitness process of user 1 and user 2, user 3 can join the current fitness exercise by performing a join action. The electronic device records the joining time of each fitness user. When user 3 successfully joins, the electronic device automatically controls the fitness user who joined the earliest (e.g. user 1) to exit the fitness exercise. In this embodiment, the joining user (i.e. user 3) can use Figure 8A-8D After user 3 joins the fitness exercise, even if user 1 is currently exercising and the fitness action matching degree is very high, user 1 is determined as a non-fitness user.
[0223] Optionally, when user 3 joins the current fitness exercise by taking a joining action, if the fitness time of the earliest joining user (such as user 1) exceeds a preset time (such as 5 minutes), the electronic device determines user 3 as a fitness user. Otherwise, user 3 is not determined as a fitness user. This method can ensure the exercise time of each user as much as possible.
[0224] The method provided in this embodiment is based on a "first in, first out" mechanism, and can provide every user with fitness intentions with the opportunity to exercise as much as possible, thus providing a good user experience.
[0225] Method 3: Replace the nearest fitness user
[0226] See also Fig. 13C As shown, during the fitness process of user 1 and user 2, when user 3 wants to join the current fitness exercise, he can select a fitness user he wants to replace (for example, user 1), stand close to user 1 and make a designated joining action or coaching action. After the electronic device detects that user 3 has fitness intention, it determines the distance between it and other fitness users (that is, user 1 and user 2), switches the nearest fitness user to a non-fitness user, and determines user 3 as a fitness user. For example, if the electronic device detects that the nearest fitness user to user 3 is user 1, the electronic device switches user 1 to a non-fitness user and user 3 to a fitness user.
[0227] In one example, since the position relationship of the users in the user image is the same as the position relationship of the actual users, the electronic device can characterize the distance relationship of the actual users to a certain extent based on the distance relationship between the user images. Optionally, in the user image, the electronic device can determine the shortest distance between the ankles of two users as the distance between the two users. Based on this, see Fig.13DAs shown, since the left ankle of user 3 is closest to the right ankle of user 1, the distance D1 between the left ankle of user 3 and the right ankle of user 1 is the distance between user 3 and user 1. Similarly, the distance D2 between the left ankle of user 3 and the right ankle of user 2 is the distance between user 3 and user 2. Since D1 is less than D2, the electronic device determines that the user closest to user 3 is user 1, and replaces user 1 with user 3, that is, switches user 1 to a non-fitness user and switches user 3 to a fitness user.
[0228] Through the method provided in this embodiment, a non-fitness user can replace a fitness user by standing near the fitness user to be replaced and making a joining action, thereby providing a better user experience.
[0229] Method 4: The user actively selects the fitness user to be replaced
[0230] See also Fig.13E As shown, during the fitness process of user 1 and user 2, user 3 can control the electronic device to enter the user replacement mode by performing a designated joining action. In the user replacement mode, the electronic device sequentially highlights the images of user 1 and user 2. The highlighting of the user image includes highlighting the user image, flashing the user image, or displaying indication information (e.g. Fig.13E When user 3 wants to replace user 1, when the electronic device highlights user 1, user 3 makes a selection action to replace user 3 as a fitness user. When user 3 wants to replace user 2, when the electronic device highlights user 2, user 3 makes a selection action to replace user 2 as a fitness user. The selection action can be a specified action, or it can be an operation in which the user drops the specified joining action currently being performed.
[0231] Through the method provided in this embodiment, non-fitness users can independently select the fitness users they want to replace, which also provides a good user experience.
[0232] In the above-mentioned methods 1 to 4, after user 1 exits and user 3 joins, the electronic device may display a prompt message to prompt that the user switching is successful. For example, the prompt message may be "user 1 exits, user 3 joins", and the specific form of the prompt message is not limited in this embodiment.
[0233] In summary, in the process of the electronic device guiding the user to perform the second type of sports, the fitness user can be flexibly determined, which helps to improve the user experience.
[0234] In addition, for the first category of sports, although the method provided in the embodiment of the present application can identify each user with fitness intention as a fitness user and guide them to exercise. However, in actual applications, the processing power of some electronic devices may be insufficient. For electronic devices with relatively poor processor capabilities, the number of fitness users that can actually be guided is limited. Therefore, the electronic device can pre-set an upper limit A of the number of fitness users for the first category of sports according to its own computing and processing capabilities, for example, A = 5.
[0235] Unlike the second type of sports, which requires K fitness users to be identified before sports guidance can be started, for electronic devices with an upper limit of A, after starting the first type of sports, as long as one fitness user is identified, fitness guidance can be started. During the guidance process, the electronic device can continue to recognize the user image and identify users with fitness intentions as fitness users at any time, or switch fitness users without fitness intentions to non-fitness users.
[0236] In some embodiments, for the first type of sports, during the process of the electronic device guiding P fitness users to exercise (P<A), when the number of non-fitness users with fitness intentions in the user image is Q and Q≤AP, the electronic device determines these Q non-fitness users as fitness users.
[0237] Taking A=5, P=2, Q=2 as an example, when the upper limit of the number of people for the first type of sports is 5, when the electronic device is guiding two fitness users to exercise, if there are two non-fitness users with fitness intentions in the user image, these two non-fitness users can be determined as fitness users.
[0238] In some other embodiments, for the first type of sports, during the process of the electronic device guiding P fitness users to exercise (P < A), when the number of non-fitness users with fitness intentions in the user image is Q and Q > AP, the electronic device may adopt Fig. 12B or Fig. 12C The method shown determines AP users from Q users.
[0239] Taking A=5, P=2, Q=4 as an example, when the upper limit of the number of people for the first type of sports is 5, when the electronic device is guiding two fitness users to exercise, when there are 4 non-fitness users with fitness intentions in the user image, the electronic device can adopt Fig. 12B The method shown in the figure prompts that there are too many users requesting to join, and asks some users to stop joining. Alternatively, the electronic device can use Fig. 12C The method shown determines the matching degree between the action of each user among the four non-fitness users and the designated joining action or coaching action, and determines the top three users with the highest matching degree as fitness users.
[0240] In some other embodiments, for the first type of sports, during the process of the electronic device guiding A fitness users to exercise, when the number of non-fitness users with fitness intentions in the user image is Q, each of the Q fitness users can use any one of the above-mentioned methods 1 to 4 to switch users, join the first type of sports, and become a fitness user.
[0241] Taking A=5, P=5, Q=2 as an example, when the upper limit of the number of people for the first type of sports is 5, when the electronic device is guiding 5 fitness users to exercise, if there are 2 non-fitness users with fitness intentions in the user image, the electronic device can use any one of methods 1 to 4 for these two users in turn to join the first type of sports and become fitness users.
[0242] When guiding a fitness user to perform the first or second sports, the electronic device may display the fitness user's historical sports information. The historical sports information may be the historical sports information generated when the user participates in the current sports, or the historical sports information of all sports that the user participates in on the day. The historical sports information includes fitness duration, fitness score, and calories consumed.
[0243] In some embodiments, for the first category of sports or the second category of sports, the electronic device can display the historical fitness information of each fitness user on the screen during the process of guiding the user to exercise, and continuously update the historical exercise information according to the user's exercise situation.
[0244] In other embodiments, for the first or second sports program, during the process of guiding the user to exercise, a fitness user may quit the exercise and then join the exercise program again. When the electronic device detects that the quitting fitness user joins the current fitness program again, the electronic device may display the fitness user's historical exercise information of participating in the current fitness program.
[0245] For example, see Fig.14 As shown, during the "shoulder and neck exercise" training of user 1, if the electronic device detects that user 1 quits the current shoulder and neck exercise and then joins the exercise program, the user's historical exercise information of the exercise program will be displayed: fitness time 5 minutes, score 90, calories 10 kcal.
[0246] In other embodiments, for the first category of sports events or the second category of sports events, after the user exits the sports event currently being performed by the electronic device, the historical sports information of the user participating in the sports event may be displayed on the screen.
[0247] In some other embodiments, for some second-type sports events that require multiple fitness users to take turns to perform, such as the "relay race" sports event, the electronic device can accumulate and count the historical sports information of each fitness user. For example, when user 1 is performing the "relay race" sports event, the electronic device displays the historical sports information of user 1 in real time. When user 2 replaces user 1, the electronic device continues to superimpose and count the sports information of user 2 on the basis of the historical sports information of user 1 as the common historical sports information of all participating users of the sports event.
[0248] Through historical exercise information, users can understand their own exercise status, such as historical exercise duration, calories consumed, etc., which helps users to arrange exercise plans reasonably.
[0249] The embodiment of the present application also provides a cloud fitness exercise mode, that is, different users participate in the same fitness program through multiple electronic devices at the same time. The specific content of cloud fitness is described below in conjunction with the accompanying drawings.
[0250] In a possible implementation, taking the example of an electronic device guiding a user to perform shoulder and neck exercises in the first type of sports, see Fig.15A As shown, user 1 can select cloud mode in the mode selection interface of "shoulder and neck exercise" to perform cloud mode exercise for shoulder and neck exercise. After user 1 starts cloud mode exercise, see Fig. 15B In the sports guidance interface shown, the electronic device will create a gym room with a unique room number (e.g., 123456). Other users can join the sports program currently being performed by user 1 according to the room number.
[0251] For example, user 2 joins user 1's current sports event. Fig.16A As shown, user 2 can enter the cloud fitness joining page by operating the "cloud fitness" icon in the main interface of the AI fitness application. Fig. 16B As shown, the cloud fitness joining page may include a room number input area, a "join" icon, and a "return" icon. When user 2 enters the room number in the cloud fitness joining interface and operates the "join" icon, user 2 enters the gym created by user 1 and performs cloud fitness with user 1.
[0252] After user 2 enters the gym created by user 1, see Fig. 16C As shown, the electronic device of user 1 and the electronic device of user 2 can both display a sports guidance interface at the same time, and the sports guidance interface includes coaching movements, image information of user 1 and image information of user 2. In addition, user 1 and user 2 can also communicate by voice.
[0253] In another possible implementation, a user can make an appointment with other users for cloud fitness through a fitness application in an electronic device. The appointment information of cloud fitness includes information such as the name of the fitness project, the duration of the fitness, the fitness user account, the fitness start time, and the fitness joining link. After the appointment is successful, the fitness application notifies the corresponding fitness user account of the appointment information. After the agreed fitness time arrives, the user can join the scheduled fitness project according to the fitness joining link.
[0254] In some other possible implementations, some shared gyms can be pre-set in the fitness application, and any fitness user can enter the gym and participate in the sports provided by the gym with other network fitness users. Fig.17 In the shared gym interface shown, the electronic device provided in this embodiment can set different sports areas for different types of sports, such as fitness area, square dance area, yoga area, Tai Chi area, etc., and users can enter the corresponding room to exercise. Taking the user performing "Fitness Project 1" as an example, the user can enter Room 1 by operating the "Join" icon corresponding to Room 1 in the fitness area and perform "Fitness Project 1" exercise.
[0255] In this embodiment, after the user enters the shared gym, the electronic device may not collect the user's image information to avoid leaking the user's privacy. Alternatively, the electronic device may collect the user's image information to provide fitness guidance, and share the fitness user's fitness information in the room (such as fitness time, score, and calories consumed) with the gym, but not share the fitness user's image information to avoid leaking the user's privacy.
[0256] In addition, in a shared gym, users can also view the ranking list of all users in the gym. For example, the ranking list can be a score ranking list determined based on the user's fitness action score (for example, Fig.18 As shown), it may also be a duration ranking list determined according to the user's fitness duration. This embodiment does not limit the specific type of the ranking list.
[0257] It should be noted that during the user's cloud fitness process (including the first type of sports and the second type of sports), the electronic device can also adopt the user determination method provided in the above-mentioned embodiment of the present application to switch the fitness users within the shooting range of the electronic device's camera.
[0258] Through the cloud fitness technical solution provided in the embodiment of the present application, users can exercise with other users without being restricted by distance, which helps to improve users' enthusiasm for fitness and provides a better user experience.
[0259] In the process of users switching fitness users through the specified join action (see Figure 2C , Fig. 8A , Fig. 12A Due to different understandings of the designated joining action by users, the designated joining action actually performed by the user (referred to as the actual joining action in this implementation) may be quite different from the designated joining action.
[0260] For example, Figure 2C When the user performs the designated joining action shown in the electronic device, the user may perform, for example, Fig.19 (a)~ Fig.19 When the matching degree between the actual joining action and the designated joining action is lower than a preset first threshold (e.g., 85%), the electronic device will not be able to determine the user as a fitness user based on the actual joining action, resulting in the user being unable to join the fitness, which in turn results in a relatively low success rate for the user to join the fitness through the designated joining action.
[0261] To improve the success rate of users switching users through the specified join action, see Fig. 20 As shown, the user determination method provided in the embodiment of the present application may also include the following steps.
[0262] S2001, the electronic device collects the user's facial information.
[0263] For each fitness program, after the electronic device opens the fitness program, the user's facial information can be collected through the camera. In addition, the electronic device will continue to identify the posture of each user within the camera shooting range until the electronic device exits the AI fitness program.
[0264] S2002, the electronic device detects whether the user is a new user based on the face information. The specific method for detecting a new user is described above, and this embodiment will not be repeated here.
[0265] If the user is a new user, the electronic device executes S2003 to S2005 and S2010 to S2012 after S2002. When the user is not a new user, the electronic device executes S2006 to S2012 after S2002. The details are as follows.
[0266] S2003: If the user is a new user, obtain a matching threshold (ie, a first threshold) X1 between the actual joining action of the new user and the designated joining action.
[0267] Normally, the electronic device sets the same matching threshold X for new users and old users, for example, X=85%. The user can only join the fitness program when the matching degree between the user's actual joining action and the designated joining action is greater than or equal to 85%. However, for new users, when they switch users for the first time according to the designated joining action, they may not have an accurate understanding of the designated joining action, and the actual joining action they make may be quite different from the designated joining action, resulting in a low success rate for switching users. Therefore, in this embodiment, the matching threshold for new users is set to a lower value X1 to improve the success rate of new users switching users. Among them, X1 is a value preset by the electronic device for new users, X1<X, for example, X1=70%.
[0268] S2004: When the matching degree between the actual joining action of the user and the designated joining action is ≥ X1, the electronic device determines the user as a fitness user.
[0269] It should be understood that after the electronic device determines that the user is a fitness user, it starts to guide the user to perform exercise.
[0270] S2005, the electronic device generates M action templates according to the actual added action, and stores them in the template pool of the fitness user.
[0271] Optionally, after determining the skeletal node information of the actual added action, the electronic device can offset the point position of the skeletal node in the actual added action to different degrees through the Gaussian noise method to generate M-1 action templates that are similar to but different from the actual added action. Then, the actual added action and the action template are stored together in the template pool (a total of M action templates). Wherein, M is a preset value, for example, M=50.
[0272] S2006: If the user is not a new user, when the matching degree between the actual joining action and the designated joining action is ≥ X2, the electronic device determines that the user is a fitness user.
[0273] It should be noted that each time a user successfully joins, the smart device will update the user's matching threshold, and the updated matching threshold is X2. See S2011 for details, which will not be described here.
[0274] S2007: The electronic device determines whether the number of action templates in the fitness user template pool is less than N, where M<N.
[0275] In this embodiment, the maximum number of action templates contained in the template pool is set to N, M < N, for example, N = 100. It should be noted that, usually, some templates in the template pool are action templates corresponding to the user's actual joining actions, and the other part are templates generated by the electronic device according to the Gaussian noise method.
[0276] S2008: If the number of action templates in the template pool is less than N, the electronic device adds the action template corresponding to the actual added action into the template pool.
[0277] S2008 can increase the number of actions actually added by users in the template pool, which helps the electronic device learn the user's understanding of the actions.
[0278] S2009: If the number of action templates in the template pool is equal to N, the electronic device uses the action template corresponding to the actually added action to replace the action template at the edge of the cluster in the template pool.
[0279] Among them, the action template at the edge of the cluster in the template pool has the greatest difference from the user's action habit, so the electronic device deletes it from the template pool and adds the action template corresponding to the actual added action.
[0280] S2010, the electronic device determines a designated joining action according to a cluster center of the action template in the template pool.
[0281] Among them, the cluster center of the template pool is closest to the user's action habits. As the electronic device clusters and learns the user's actual joining actions, the designated joining action will become closer and closer to the user's action habits. Therefore, determining the joining action corresponding to the cluster center as the designated joining action helps to improve the success rate of user switching and improve user experience.
[0282] S2011, the electronic device determines or updates X2 of the fitness user according to the average matching degree between the actual added action and each action template in the template pool.
[0283] For a new user, the electronic device determines the user's X2 according to S2011. For an old user, the electronic device updates the user's X2 according to S2011. It can be understood that as the designated joining action becomes closer to the user's action habits, the matching degree between the user's actual joining action and the designated joining action becomes higher and higher.
[0284] It should be noted that S2011 is an optional step, and the electronic device may not increase the user's matching threshold.
[0285] S2012, the electronic device updates a display icon for a designated joining action.
[0286] Specifically, the electronic device can generate a display icon of the joining action according to the human body posture corresponding to the designated joining action. It should be understood that as the designated joining action becomes closer to the user's action habits, the display icon of the joining action also becomes closer to the user's actual joining action.
[0287] Through the above steps S2001 to S2012, the electronic device can intelligently update the user's designated joining action and matching threshold, and iteratively learn the user's understanding of the joining action through online machine learning methods, thereby improving the success rate of switching users and improving user experience.
[0288] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0289] Based on the above user determination method, the electronic device provided in this embodiment is configured to execute the user determination method provided in any of the above embodiments. After determining the first target user, the electronic device provided in the embodiment of the present application can determine other users as second target users, and guide multiple target users to perform exercise at the same time, and the addition of the second target user will not affect the first target user, which has a better user experience.
[0290] The present application embodiment also provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the methods described in the above embodiments. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored on a computer-readable medium or transmitted on a computer-readable medium as one or more instructions or codes. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium can be any available medium that can be accessed by a computer.
[0291] As an optional design, the computer-readable medium may include a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of instructions or data structures and can be accessed by the computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks, wherein disks generally reproduce data magnetically, while optical disks reproduce data optically using lasers. The above combinations should also be included in the scope of computer-readable media. The processors mentioned in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0292] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form.
[0293] The embodiment of the present application provides a computer program product, which, when running on an electronic device, enables the electronic device to implement the methods described in the above embodiments. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the process or function described in the above method embodiment is generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device.
[0294] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0295] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0296] In the above, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0297] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0298] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A user identification method, applied to an electronic device, characterized in that: The method comprises: In response to a first operation of a user, a preset first image and a captured second image are displayed; wherein the first image includes an action for guiding the user, and the second image includes the action of the user; Determine a first target user from the users included in the second image, wherein a matching degree between an action of the first target user and an action included in the first image satisfies a first preset condition; displaying first content related to the first target user; When displaying the first content related to the first target user, collecting a third image, wherein the third image includes an action of the user; Determine a second target user from the users included in the third image, the matching degree between an action of the second target user and an action included in the first image meets the first preset condition, and the second target user is different from the first target user; While displaying the first content, second content related to the second target user is displayed.
2. The method according to claim 1, characterized in that The first preset condition is: The user's action matches the specified join action and the matching continues for more than a preset time; or, The user's action sequence matches the action sequence displayed in the first image, and the matching continues for more than a preset time.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: When the first target user meets the second preset condition, the first content related to the first target user is not displayed; or, When the second target user meets the second preset condition, the second content related to the second target user is not displayed.
4. The method according to claim 3, characterized in that: The second preset condition is: The target user's action matches the specified exit action and the matching continues for more than the preset time; or, The target user remains still for more than a preset time and does not match the action sequence shown in the first image; or, The target user is not in the third image and remains so for more than a preset time.
5. The method according to any one of claims 1, 2 and 4, characterized in that The method further comprises: When the first target user or the second target user meets the third preset condition, an inquiry message is displayed, where the inquiry message is used to inquire whether the corresponding target user exits.
6. The method according to claim 5, characterized in that The third preset condition is that the matching degree between the target user's action and the action sequence displayed in the first image is lower than a threshold and lasts for more than a preset time.
7. The method according to claim 1 or 2, characterized in that: The upper limit number of target users that can be determined by the electronic device is T, where T≥2.
8. The method according to claim 7, characterized in that The method further comprises: When the number of determined target users is P, P<T, if it is detected that there are Q users who simultaneously meet the first preset condition, and Q>TP, a second prompt information is displayed, and the second prompt information is used to prompt that the number of current target users exceeds the upper limit.
9. The method according to claim 7, characterized in that: The method further comprises: When the number of determined target users is P, P<T, if it is detected that there are Q users who simultaneously meet the first preset condition, Q>TP, determine the matching degree between the action of each user among the Q users and the specified joining action, or the matching degree between the action sequence of each user and the action sequence displayed in the first image, determine the user with the top TP matching degree as the target user, and display the content related to the target user.
10. The method according to claim 7, characterized in that The method further comprises: When a user is determined to be a target user, the time of the determination operation is recorded; When the number of determined target users is T, if it is detected that the T+1th user meets the first preset condition, the relevant content of the user whose determination operation is the earliest among the T target users is not displayed; Determine the T+1th user as the target user; Display the content related to the T+1th user.
11. The method according to claim 7, characterized in that The method further comprises: When the number of determined target users is T, if it is detected that the T+1th user satisfies the first preset condition, determining the distance between the user image of the T+1th user on the third image and the user image of each target user; The content related to the target user closest to the T+1th user is not displayed; Determine the T+1th user as the target user; Display the content related to the T+1th user.
12. The method according to claim 7, characterized in that The method further comprises: When the number of determined target users is T, if it is detected that the T+1th user meets the first preset condition, the T target users are highlighted in sequence; When highlighting the i-th target user among T target users, if it is detected that the T+1-th user makes a selection action, the content related to the i-th target user is not displayed; Determine the T+1th user as the target user; Display the content related to the T+1th user.
13. The method according to any one of claims 1, 2, 4, 6 and 8 to 12, characterized in that: The method further comprises: Determine whether the target user is a new user; If the target user is a new user, user switching prompt information is displayed, and the user switching prompt information includes a display icon for specifying a joining action.
14. The method according to claim 13, characterized in that The determining whether the target user is a new user includes: After determining the target user, collect the target user's facial information; Searching for facial information of the target user in a facial information database of an application server, wherein the facial information database includes facial information of historical target users; If the face information database does not include the face information of the target user, the user is determined to be a new user, and the face information of the new user is stored in the face information database.
15. The method according to claim 2, characterized in that When the first preset condition is that the user's action matches the specified joining action and the matching continues for more than a preset time, the method further includes: After the target user is determined, the designated joining action of the target user is updated according to the actual joining action of the target user; wherein the actual joining action is an action actually performed by the target user.
16. The method according to claim 15, characterized in that According to the actual joining action of the target user, updating the designated joining action of the target user includes: When the target user is a new user, a template pool of the target user is created according to the actual joining action of the target user, wherein the template pool stores M action templates generated according to the actual joining action, where M<N; N is the maximum number of templates allowed to be stored in the template pool; The designated joining action of the target user is updated to: the cluster center of the M action templates.
17. The method according to claim 15, characterized in that According to the actual joining action of the target user, updating the designated joining action of the target user includes: When the target user is not a new user, if the number of action templates in the template pool of the target user is less than N, the actual joining action is stored in the template pool of the target user, and the template pool is updated; or, If the number of action templates in the template pool of the target user is equal to N, the actual joining action is used to replace the action template at the edge of the cluster in the template pool of the user, and the template pool is updated; The designated joining action of the target user is updated to: the cluster center of all action templates in the updated template pool.
18. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 17 is implemented.
19. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 17 is implemented.
20. A computer program product, characterized in that When the computer program product runs on an electronic device, the electronic device is enabled to implement the method according to any one of claims 1 to 17.
