Methods and electronic devices for generating motion graphics

By creating personalized motion graphics, the lack of fun and personalization in sports apps is solved, allowing users to intuitively understand their exercise data and improving their sports experience.

CN115599474BActive Publication Date: 2026-05-26HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2021-07-07
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing sports apps lack fun and personalization when providing sports data, making it difficult for users to obtain more engaging sports results from dull data.

Method used

By acquiring user motion data, adjusting brush parameters to draw motion pictures, and combining drawing templates to generate personalized motion pictures, the data changes during the user's movement are displayed.

Benefits of technology

It enhances the fun and personalized experience of sports for users, allowing them to intuitively understand the sports situation through sports pictures, thereby increasing their enthusiasm and interest in sports.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115599474B_ABST
    Figure CN115599474B_ABST
Patent Text Reader

Abstract

This application provides a method for generating motion graphics and an electronic device. In this method, the electronic device can collect or acquire motion data from a user during exercise, and adjust brush parameters based on this motion data. The electronic device can then use the adjusted brush parameters to draw motion graphics. After the user finishes exercising, a motion graphic drawn based on the motion data is generated and displayed. This motion graphic reflects the changes in the user's motion data during exercise and enhances the enjoyment of the exercise. The electronic device can also present users with more personalized exercise results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of mobile terminal technology, and in particular to a method for generating motion graphics and an electronic device. Background Technology

[0002] With the continuous development of the internet, people's lifestyles are constantly changing. Nowadays, mobile phones have become necessities. Influenced by the internet, fitness apps have ridden this wave, gradually becoming essential applications on people's phones. As popular exercise aids, fitness apps provide users with exercise guidance and data reference services, helping them to exercise more scientifically and professionally. However, with the increasing popularity of fitness apps, meeting user needs and providing more fun and personalized exercise services is a pressing issue that needs to be addressed. Summary of the Invention

[0003] This application provides a motion graphics generation method and an electronic device. The motion graphics generation method can draw a motion graphics related to the user's motion data, displaying the user's motion status in the form of motion graphics, thereby enhancing the fun of exercise.

[0004] In a first aspect, embodiments of this application provide a method for generating motion graphics, the method comprising: an electronic device acquiring a first drawing template, the first drawing template indicating the direction of a brush; the electronic device acquiring motion data during a user's movement, the motion data including first motion data at a first time during the movement and second motion data at a second time during the movement; the electronic device determining first brush parameters based on the first motion data, and using the first brush parameters to draw first content according to the direction of the brush; the electronic device determining second brush parameters based on the second motion data, and using the second brush parameters to draw second content according to the direction of the brush; wherein the first brush parameters and the second brush parameters are different; the electronic device displaying the motion graphics, the motion graphics including the first content and the second content.

[0005] By implementing the method provided in the first aspect, motion data during the user's exercise can be obtained, and the brush parameters can be adjusted according to the user's motion data. Using the brush with adjusted brush parameters, a motion picture can be drawn according to the preset brush direction. After the user finishes exercising, the motion picture can be displayed to the user. In this way, the user can understand their own exercise situation based on the motion picture.

[0006] In conjunction with the first aspect, in one possible implementation, the first motion data or the second motion data includes one or more of the following: heart rate, respiratory rate, movement posture, movement speed, body temperature, blood pressure, blood sugar, and location.

[0007] In conjunction with the first aspect, in one possible implementation, the first brush parameter or the second brush parameter includes one or more of the following: brush color, brush size, brush shape, brush flow, brush transparency, brush hardness, brush drawing speed, or brush direction.

[0008] In conjunction with the first aspect, in one possible implementation, the electronic device stores multiple drawing templates, each drawing template describing a corresponding pen stroke; before the electronic device determines first pen parameters based on the first motion data, and uses the first pen parameters to draw first content according to the pen stroke, and before determining second pen parameters based on the second motion data, and using the second pen parameters to draw second content according to the pen stroke, the method further includes: the electronic device selecting the first drawing template from the multiple drawing templates; and the electronic device determining the pen stroke corresponding to the first drawing template as the pen stroke.

[0009] Electronic devices can store multiple drawing templates, each corresponding to a different brush stroke. The electronic device can select different drawing templates to draw motion pictures, thus obtaining a variety of motion pictures with different content, displaying rich motion pictures to users, and enhancing users' interest in sports.

[0010] In conjunction with the first aspect, in one possible implementation, before the electronic device selects a first drawing template from the plurality of drawing templates, the method further includes: the electronic device displaying a plurality of template options, including a first template option, the first template option corresponding to the first drawing template; the electronic device selecting the first drawing template from the plurality of drawing templates specifically includes: the electronic device receiving a first operation applied to the first template option; and in response to the first operation, the electronic device selecting the first drawing template from the plurality of drawing templates.

[0011] In other words, electronic devices can display multiple drawing templates in the user interface, allowing users to choose a template according to their preferences. This results in the electronic device ultimately drawing the motion picture that the user wants, increasing the user's freedom of choice.

[0012] In conjunction with the first aspect, in one possible implementation, the electronic device selects a first drawing template from the plurality of drawing templates, specifically including: the electronic device selects the first drawing template from the plurality of drawing templates based on user information, wherein the user information includes one or more of the following: user exercise days, user exercise dates, age, gender, height, or weight.

[0013] In other words, electronic devices can automatically select a drawing template based on user information, eliminating the need for users to struggle with template selection, providing a more intelligent template recommendation method, and improving the user experience.

[0014] In conjunction with the first aspect, in one possible implementation, before the electronic device acquires motion data during the user's movement, the method further includes: the electronic device receiving a second operation, the second operation being used to trigger the electronic device to acquire the motion data.

[0015] Electronic devices can begin acquiring user movement data after receiving a user's command to start exercising.

[0016] In conjunction with the first aspect, in one possible implementation, before the electronic device displays the moving image, the method further includes: the electronic device receiving a third operation, the third operation being used to trigger the display of the moving image.

[0017] Electronic devices can display motion graphics generated based on the user's motion data after receiving a user's command to end the exercise.

[0018] In conjunction with the first aspect, in one possible implementation, the electronic device displays a motion picture, specifically including: the electronic device displays the drawing process of the motion picture.

[0019] In other words, electronic devices can display motion images in the form of videos or GIFs, allowing users to understand in detail the changes in various aspects of their bodies during exercise.

[0020] In conjunction with the first aspect, in one possible implementation, the first time is a point in time or a period of time, and the second time is a point in time or a period of time.

[0021] In other words, electronic devices can adjust pen parameters based on the user's motion data at a specific point in time. This allows the user to understand whether the motion data reached the set values ​​during the motion process through the drawn motion graph, thus understanding whether the user's motion was standardized. Alternatively, electronic devices can adjust pen parameters based on the user's motion data over a period of time. This allows the user to understand the fluctuations in motion data during the motion process through the drawn motion graph.

[0022] In conjunction with the first aspect, in one possible implementation, the motion data is acquired by the electronic device, and / or by other devices connected to the electronic device.

[0023] In other words, motion data can refer to data collected by electronic devices or other devices that establish a communication connection with electronic devices. In this way, electronic devices can obtain a variety of different data, enabling motion graphics to display rich motion information of the user.

[0024] Secondly, embodiments of this application provide an electronic device, the electronic device comprising: a determining module acquiring a first drawing template, the first drawing template indicating the direction of a brush; a collecting module acquiring motion data during a user's movement, the motion data including first motion data at a first time during the movement and second motion data at a second time during the movement; an adjusting module determining first brush parameters based on the first motion data, a drawing module using the first brush parameters and drawing first content according to the direction of the brush; the adjusting module determining second brush parameters based on the second motion data, the drawing module using the second brush parameters and drawing second content according to the direction of the brush; wherein the first brush parameters and the second brush parameters are different; and a display module displaying a motion drawing, the motion drawing including the first content and the second content.

[0025] In conjunction with the second aspect, in one possible implementation, the first motion data or the second motion data includes one or more of the following: heart rate, respiratory rate, movement posture, movement speed, body temperature, blood pressure, blood sugar, and location.

[0026] In conjunction with the second aspect, in one possible implementation, the first brush parameter or the second brush parameter includes one or more of the following: brush color, brush size, brush shape, brush flow, brush transparency, brush hardness, brush drawing speed, or brush direction.

[0027] In conjunction with the second aspect, in one possible implementation, the electronic device stores multiple drawing templates, each drawing template describing a corresponding pen stroke; the electronic device further includes: the determining module selecting the first drawing template from the multiple drawing templates; the determining module determining the pen stroke corresponding to the first drawing template as the pen stroke.

[0028] In conjunction with the second aspect, in one possible implementation, the electronic device further includes: the determining module displaying a plurality of template options, the plurality of template options including a first template option, the first template option corresponding to the first drawing template; the determining module receiving a first operation applied to the first template option; and in response to the first operation, the determining module selecting the first drawing template from the plurality of drawing templates.

[0029] In conjunction with the second aspect, in one possible implementation, the determining module selects a first drawing template from the plurality of drawing templates based on user information, wherein the user information includes one or more of the following: user exercise days, user exercise dates, age, gender, height, or weight.

[0030] In conjunction with the second aspect, in one possible implementation, the electronic device further includes: the acquisition module receiving a second operation, the second operation being used to trigger the electronic device to acquire the motion data.

[0031] In conjunction with the second aspect, in one possible implementation, the electronic device further includes: the display module receiving a third operation, the third operation being used to trigger the display of the motion picture.

[0032] In conjunction with the second aspect, in one possible implementation, the display module displays the drawing process of the motion picture.

[0033] In conjunction with the second aspect, in one possible implementation, the first time is a point in time or a period of time, and the second time is a point in time or a period of time.

[0034] In conjunction with the second aspect, in one possible implementation, the motion data is acquired by the electronic device and / or by other devices connected to the electronic device.

[0035] Thirdly, embodiments of this application provide an electronic device, including: a display screen, a memory, one or more processors, multiple application programs, and one or more programs; M ≥ 2, where M is a positive integer; wherein the one or more programs are stored in the memory; characterized in that, when the one or more processors execute the one or more programs, the electronic device causes the electronic device to implement the method described in the first aspect or any embodiment of the first aspect.

[0036] Fourthly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the first aspect or any embodiment of the first aspect.

[0037] Fifthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to perform the method described in the first aspect or any embodiment of the first aspect. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below.

[0039] Figure 1 This is a hardware structure diagram of an electronic device provided in an embodiment of this application;

[0040] Figure 2 This is a software structure diagram of an electronic device provided in an embodiment of this application;

[0041] Figures 3A-3I These are some user interfaces implemented on electronic devices as provided in the embodiments of this application;

[0042] Figures 4A-4D This is the process of generating motion graphics provided in the embodiments of this application;

[0043] Figures 5A-5E , Figures 6A-6D These are other user interfaces implemented on electronic devices as provided in the embodiments of the application;

[0044] Figure 7 This is a schematic flowchart of the motion picture generation method provided in the embodiments of this application;

[0045] Figure 8 This is a schematic diagram of the motion graphics generation device provided in the embodiments of this application. Detailed Implementation

[0046] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0047] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0048] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with the user. It realizes the conversion between the internal form of information and the form that the user can accept. The user interface is source code written in a specific computer language such as Java or Extensible Markup Language (XML). The interface source code is parsed and rendered on the electronic device, ultimately presenting content that the user can recognize. A common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed graphically. It can be visible interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of an electronic device.

[0049] As users place greater emphasis on exercise, numerous fitness apps have emerged, offering various exercise modes such as running, walking, cycling, swimming, and climbing. Users can tailor their workouts to different modes. Furthermore, after a user finishes exercising, these apps can display results, including exercise data such as heart rate, pace, calories burned, exercise time, and distance. Alternatively, the results can include analytical data calculated by the electronic device based on the user's exercise data, such as heart rate graphs, exercise trajectory maps, average pace, and average heart rate.

[0050] While these exercise results offer some reference value for users, allowing them to understand their exercise performance based on the data, the data can be rather dry. For users who are not good with numbers, this data is of little reference value. Furthermore, the differences in exercise results between different users are merely numerical variations, failing to provide a personalized experience. Therefore, how to provide users with more engaging and personalized exercise services is a pressing issue that needs to be addressed.

[0051] To address the aforementioned problems, this application provides a method for generating motion graphics. In this method, an electronic device can collect or acquire motion data from a user during exercise. This motion data includes heart rate, respiratory rate, posture, speed, body temperature, blood pressure, blood sugar, location, etc. The device adjusts brush parameters based on this motion data, including brush color, size, shape, flow rate, transparency, hardness, direction, and drawing speed. The electronic device can draw motion graphics using the brush. When the brush parameters change, the display effect of the lines drawn by the electronic device also changes. This display effect can refer to changes in color, size, shape, flow rate, transparency, hardness, direction, drawing speed, etc., associated with the brush parameters. Ultimately, the motion graphics generated by the electronic device consist of multiple lines with different display effects, reflecting the changes in the user's motion data during exercise.

[0052] In a concrete example, a user's heart rate can be correlated with the color of a drawing tool. When the user's heart rate falls into the first zone, the drawing tool is red; when it falls into the second zone, the drawing tool is green. Since a user's heart rate fluctuates in real time during exercise, the electronic device can generate a motion picture with alternating colors by using red when the user's heart rate is in the first zone and green when it's in the second zone. The user can then understand their heart rate fluctuations during exercise based on the color changes in the motion picture.

[0053] As can be seen, this method can adjust the brush parameters based on the user's exercise data. In this way, after the user finishes exercising, the electronic device can display an exercise picture drawn based on the user's exercise data. The user can also understand their exercise status based on the exercise picture. Moreover, different users can display different pictures, so users can get a targeted exercise picture, which enhances the fun of exercise and shows users more personalized exercise results.

[0054] In this embodiment, motion data can be collected by an electronic device or by other devices, which can refer to devices that establish a communication connection with the electronic device. The electronic device can be a device with a display screen, such as a mobile phone, computer, laptop, large screen, etc., which can be used to display motion graphics generated by the electronic device. Other devices can refer to devices capable of collecting user motion data, such as mobile phones, headphones, wristbands, smartwatches, large screens, etc. The electronic device or other devices can collect user motion data using components such as sensors or cameras. Sensors can include gyroscope sensors, accelerometers, bone conduction sensors, etc. For example, the electronic device can use a bone conduction sensor to collect the user's heart rate, a gyroscope sensor to collect the user's movement speed, and a camera to collect the user's movement posture, etc.

[0055] Electronic devices can generate motion graphics in the following two situations:

[0056] 1) Electronic devices generate motion graphics during user movement.

[0057] At this point, the electronic device can acquire the user's motion data in real time and adjust the brush parameters accordingly. Simultaneously, the electronic device draws the motion image in real time based on the adjusted brush parameters. In this way, the electronic device can quickly output the motion image after the user finishes exercising.

[0058] 2) The electronic device generates motion graphics after the user finishes exercising.

[0059] At this point, the electronic device can store motion data during the user's movement and then generate a motion image based on the data after the movement ends. Alternatively, the electronic device can directly retrieve previously stored motion data, which can be stored locally or on a cloud server, and generate a motion image based on this data. This way, the electronic device doesn't have to wait for data collection before drawing the image, shortening the time required to generate a motion image. Alternatively, the user can obtain a motion image based on motion data collected during previous movements.

[0060] Furthermore, the electronic device can predetermine the drawing template to be used. This template describes the content to be drawn using a pen when generating the motion picture; in other words, it describes the pen's direction. For example, when the electronic device selects "cat" as the drawing template, after adjusting the pen parameters based on motion data, it can use the adjusted pen to draw "cat," thus obtaining a motion picture of a cat. The electronic device can provide multiple drawing templates, randomly selecting one, selecting one based on user information, or selecting one based on user actions, etc. Alternatively, the electronic device can not limit the content of the picture; it can draw randomly or determine the pen direction based on motion data. This way, after each user's exercise, the electronic device can obtain a different motion picture, enhancing the fun of the exercise, making the user more interested in viewing the results, and increasing the user's motivation to exercise. A detailed description of the electronic device predetermining the drawing template or not limiting the content of the picture will be provided later; it will not be repeated here.

[0061] The electronic device provided in the embodiments of this application is described below.

[0062] Figure 1 The hardware structure of the electronic device is illustrated as an example.

[0063] The electronic device may be a mobile phone, tablet computer, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), or dedicated camera (such as SLR camera, point-and-shoot camera), etc. This application does not impose any restrictions on the specific type of the electronic device.

[0064] like Figure 1As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0065] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0066] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0067] In some embodiments, the processor 110 is used to adjust the pen parameters according to motion data and draw motion pictures according to the adjusted pen parameters. For details on the process of the electronic device 100 drawing motion pictures, please refer to the following embodiments.

[0068] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0069] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0070] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0071] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0072] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0073] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates 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 processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0074] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0075] In some embodiments, the electronic device 100 can establish a connection with other devices, such as mobile phones, headphones, wristbands, smartwatches, large screens, etc., through the mobile communication module 150 or the wireless communication module 160, and obtain motion data collected or stored by other devices. The motion data includes: heart rate, respiratory rate, exercise posture, exercise speed, body temperature, blood pressure, blood sugar, location, etc. Alternatively, the electronic device 100 can load a drawing template through the mobile communication module 150 or the wireless communication module 160. For a detailed description of the drawing template, please refer to the following content.

[0076] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via 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 technologies, etc. The 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 satellite-based augmentation systems (SBAS). In some embodiments, the electronic device 100 may utilize GPS to acquire the user's movement trajectory.

[0077] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0078] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0079] In some embodiments, the display screen 194 may be used to display the user interface involved in the electronic device 100 running a motion-related application. See the user interface provided in subsequent embodiments for details.

[0080] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM).

[0081] Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, fifth generation DDR SDRAM is generally called DDR5 SDRAM), etc.

[0082] Non-volatile memory can include disk storage devices and flash memory.

[0083] Flash memory can be classified according to its operating principle, including NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.; according to the level of the storage cell, including single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc.; and according to the storage specification, including universal flash storage (UFS) and embedded multimedia card (eMMC), etc.

[0084] The random access memory can be directly read and written by the processor 110. It can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data.

[0085] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 110.

[0086] In some embodiments, the internal memory 121 may be used to store motion data collected or obtained from other devices when the electronic device 100 is running motion applications, as well as drawing templates, a table showing the relationship between motion data and pen parameters, etc.

[0087] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.

[0088] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0089] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0090] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A. In some embodiments, the electronic device 100 can use the speaker 170A to announce the user's movement distance, indicate the magnitude of the user's heart rate fluctuations, etc.

[0091] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals.

[0092] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.

[0093] The 170D headphone jack is used to connect wired headphones.

[0094] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0095] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100's shake, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios. During user movement, when the user moves with the electronic device 100, the motion posture of the electronic device 100 determined by the gyroscope sensor 180B can refer to the user's motion posture.

[0096] A barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation. The electronic device 100 can also determine the user's position during movement using the barometric pressure sensor 180C.

[0097] The accelerometer 180E can detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). When the electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the electronic device, and is applied to applications such as screen orientation switching and pedometers. In some embodiments, the accelerometer 180E can be used to acquire the number of steps taken by the user.

[0098] Touch sensor 180K, also known as a "touch device," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touchscreen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can then transmit 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 display screen 194.

[0099] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180M can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals based on the vibration signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 180M to realize voice functionality. The application processor can parse heart rate information based on the blood pressure signals acquired by the bone conduction sensor 180M to realize heart rate detection functionality. In some embodiments, the bone conduction sensor 180M can be used to acquire the user's heart rate data.

[0100] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0101] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0102] Figure 2 This is a software structure diagram of the electronic device 100 according to an embodiment of this application.

[0103] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.

[0104] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0105] The application layer can include a series of application packages.

[0106] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, music, WLAN, SMS, map, Bluetooth, and video.

[0107] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0108] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0109] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0110] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0111] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0112] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0113] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0114] The notification manager allows applications to display notification information in the status bar. It can be used to convey informational messages and can disappear automatically after a short pause without user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also appear as an icon or scrolling text in the system's top status bar, such as notifications from background applications, or as a dialog window on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, and flashing indicator lights. In this embodiment, when a user's exercise level reaches a fitness goal, the notification manager can be used to notify the user that the fitness goal has been achieved.

[0115] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0116] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0117] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0118] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0119] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0120] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0121] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0122] A 2D graphics engine is a graphics engine for 2D drawing.

[0123] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0124] The following is combined with Figures 3A-3I , Figures 5A-5E , Figures 6A-6D An example of a set of user interfaces implemented on an electronic device 100 is described.

[0125] exist Figures 3A-3I The user interface shown uses Huawei's "Health" application running on electronic device 100 as an example. The "Health" application is a sports application, a sports assistance software suitable for smartphones, tablets, and other electronic devices. This application can be used to collect exercise data during the user's exercise process.

[0126] Figures 3A-3I Examples are shown of some user interfaces involved when an electronic device 100 runs a "Sports Health" application and displays a sports picture after exercise.

[0127] Figure 3A An exemplary user interface 21 for an application menu is shown on an electronic device 100.

[0128] like Figure 3A As shown, the user interface 21 may include: a status bar 211, a calendar indicator 212, a weather indicator 213, and desktop application icons 214. Among them:

[0129] The status bar 211 may include one or more signal strength indicators for mobile communication signals, one or more signal strength indicators for wireless fidelity (WiFi) signals, a battery status indicator, and a time indicator. A calendar indicator 212 can be used to indicate the current time. A weather indicator 213 can be used to indicate the weather type.

[0130] Desktop application icon 214 may include gallery icon 214A and fitness icon 214B. Fitness icon 214B can be used to open the "Fitness" application. Other application icons 214 may also include more application icons, which are not limited in this embodiment.

[0131] The user interface 21 may also include a page indicator 215. Other application icons may be distributed across multiple pages, and the page indicator 215 can be used to indicate which page the user is currently browsing. The user can swipe left or right across the areas of other application icons to browse application icons on other pages. When a user clicks on these application icons, the electronic device 100 can display the user interface of that application.

[0132] In some embodiments, Figure 3A The user interface 21 shown in the example can be the main interface (Home screen).

[0133] refer to Figure 3A The electronic device 100 can detect user actions (such as clicking on the sports and health icon 214B), and in response to the action, launch the "Sports and Health" application corresponding to the sports and health icon 214B and display it. Figure 3B The user interface 31 is shown as an example.

[0134] like Figure 3B As shown, the user interface 31 may include: a first motion parameter bar 311, a second motion parameter bar 312, and a menu bar 313. Wherein:

[0135] The first exercise parameter column 311 can be used to display today's exercise data, such as exercise distance, calories burned, and steps taken.

[0136] The second exercise parameter column 312 can be used to display recent exercise records, heart rate, weight and other data recorded by the electronic device 100.

[0137] The menu bar 313 includes a health icon 313A, a sports icon 313B, a device icon 313C, and a "My" icon 313D.

[0138] Among them, the health icon 313A can be used to switch to the "Health" user interface, which is the initial interface of the "Sports Health" application, namely user interface 31.

[0139] The sports icon 313B can be used to switch to the "sports" user interface, which displays three sports modes (e.g., outdoor running, walking, cycling), and users can choose different sports modes to exercise.

[0140] The device icon 313C can be used to switch to the "Device" user interface, which displays other electronic devices that electronic device 100 has connected to, such as wristbands. Users can perform operations such as deleting or connecting these electronic devices.

[0141] like Figure 3B As shown, the electronic device 100 can detect user actions on the motion icon 313B, and in response to the action, the electronic device 100 displays... Figure 3C The user interface 41 is shown as an example.

[0142] like Figure 3C As shown, the user interface 41 includes exercise options 411. Exercise options 411 include outdoor running option 411A, walking option 411B, and cycling option 411C. Users can select one of these exercise options and then select the corresponding exercise mode to start exercising.

[0143] In this context, the underlined text under the outdoor running option 411A indicates that option 411A is selected. When this option is selected, the user interface 410 may include: an exercise goal setting option 412 and a start exercise control 413. The exercise goal setting option 412 allows the user to set exercise goal parameters, such as distance, time, or calories. The user can set the target parameter value. When the exercise parameter value reaches the user-set target parameter value during exercise, the electronic device 100 can display a prompt message indicating that the current exercise parameter has reached the set target parameter. The electronic device 100 can detect the user's touch operation on the exercise goal setting option 412 and, in response to this operation, the electronic device 100 can... Figure 3DThe user interface displays a sports goal setting window 414. A start-up control 413 can be used to activate the outdoor running mode. The electronic device 100 can detect user actions (e.g., clicks) on the start-up control 413, and in response to this action, the electronic device 100 activates the outdoor running mode.

[0144] It is understandable that electronic device 100 may not set a motion target, and the electronic device 100 may display something like... Figure 3C After the user interface shown is displayed, when the electronic device 100 detects the user's operation on the start motion control 413, it directly displays the following: Figure 3F The user interface 51 begins collecting the user's motion data.

[0145] like Figure 3D The motion target setting window 414 is used to set the target parameters for the motion. The motion target setting window 414 also includes a cancel control 414A and a confirm control 414B. The cancel control 414A can be used by the user to cancel setting the target parameters for the motion, and the confirm control 414B can be used by the user to confirm the set target parameters. Specifically, the user can set the distance target to 1 kilometer. In this case, the target parameter is distance, and the target parameter value is 1 kilometer. After the electronic device 100 detects a touch operation on the confirm control 414B, the electronic device 100 determines that the user-set motion target is a motion of 1 kilometer.

[0146] like Figure 3E As shown, the electronic device 100 can detect user operation on the start exercise control 413. In response to this operation, the electronic device 100 activates the outdoor running mode and begins collecting the user's exercise data. Specifically, this exercise data may refer to the user's heart rate, which the electronic device 100 can obtain through the bone conduction sensor 180M. Furthermore, after activating the outdoor running mode, the electronic device 100 can display... Figure 3F The exemplary user interface 51 displays the user's movement process, such as changes in the user's position, movement time, movement distance, pace, calories burned, etc.

[0147] Understandably, in response to a user action on the start exercise control 413, the electronic device 100 may also instruct other connected devices, such as a wristband, to start outdoor running mode and begin collecting the user's heart rate.

[0148] Optionally, the motion data collected by the electronic device 100 may also refer to: heart rate, respiratory rate, movement posture, movement speed, body temperature, blood pressure, blood sugar, location information, etc.

[0149] like Figure 3FAs shown, the user interface 51 includes a map display area 511, a data display area 512, a pause motion control 513, etc.

[0150] The map display area 511 displays a map that can be updated in real time to show the user's location and movement trajectory. The data display area 512 displays and updates the user's exercise data in real time, such as exercise time, pace, and calories burned.

[0151] The pause motion control 513 can be used to listen for user actions that trigger the pause motion. The electronic device 100 can detect user actions performed on the pause motion control 513, and in response to the action, the electronic device 100 can pause recording the user's motion data.

[0152] like Figure 3G As shown, when the electronic device 100 detects that the user's movement distance has reached the user-set distance target, i.e., 1 kilometer, the electronic device 100 can display a prompt message 514. This prompt message 514 is used to remind the user that the current movement distance has reached the set target parameter. Additionally, the electronic device 100 can detect user operation on the pause movement control 513, and in response to this operation, the pause movement control 513 is updated as follows: Figure 3H The control 515 for ending motion and the control 516 for continuing motion are shown.

[0153] The "End Exercise" control 515 can be used to listen for user actions that trigger the end of exercise. The electronic device 100 can detect the user action on the "End Exercise" control 515 and, in response to this action, the electronic device 100 stops recording the current exercise health data. The "Continue Exercise" control 516 can be used to listen for user actions that trigger the continue exercise. The electronic device 100 can detect the user action on the "Continue Exercise" control 516 and, in response to this action, the electronic device 100 continues recording the user's exercise health data.

[0154] like Figure 3H As shown, the electronic device 100 can detect a user's touch operation on the end-of-motion control 515, such as a long press. In response to this operation, the electronic device 100 ends the current motion recording and displays... Figure 3I The user interface 61 shown is as follows. This user interface 61 includes: a motion parameter bar 611 and a motion display area 612. The motion parameter bar 611 includes: a drawing option 611A, a chart option 611B, and a details option 611C.

[0155] The drawing option 611A can be used to listen for user actions that trigger the viewing of motion graphics. The electronic device 100 can detect user actions applied to the drawing option 611A, and in response to this action, the motion display area 612 displays the motion graphics generated by the electronic device 100 based on motion data. Specifically, after the electronic device 100 receives a touch operation from the user on the end motion control 515, the electronic device 100 can select the drawing option 611A by default, and display the motion graphics generated by the electronic device 100 based on motion data in the motion display area 612.

[0156] Chart option 611B can be used to listen for user actions that trigger the viewing of heart rate. Electronic device 100 can detect user actions performed on chart option 611C, and in response to the action, motion display area 612 displays data related to the user's heart rate.

[0157] Details option 611C can be used to listen for user actions that trigger the viewing of exercise details. Electronic device 100 can detect user actions performed on details option 611D, and in response to this action, the exercise display area 611 displays data related to the user's exercise details.

[0158] like Figure 3I As shown, the exercise display area 612 may include: an exercise image 612A, a save option 612B, an edit option 612C, and a share option 612D. The exercise image 612A is used to display an exercise image related to heart rate generated by the electronic device 100 based on user exercise data, i.e., heart rate, collected during the user's exercise. The save option 612B is used to save the exercise image displayed in the exercise image 612A locally, for example, to a photo library. The edit option 612C can be used to edit the exercise image displayed in the exercise image 612A, such as doodling, changing the image style, adding filters, adding background music, etc. For details regarding the process of editing the exercise image after exercise, please refer to subsequent embodiments; it will not be elaborated here. The share option 612D can be used to share the exercise image displayed in the exercise image 612A to other applications. For the motion picture displayed by the electronic device 100 in the motion picture 612A, the electronic device 100 can use a pen to draw the motion picture, wherein the user's heart rate is related to the pen color. When the user's heart rate changes, the pen color used to draw the motion picture also changes. Thus, the motion picture drawn by the electronic device 100 contains multiple colors.

[0159] It can be seen that the above Figures 3A-3I This example illustrates the process by which an electronic device 100 adjusts the pen color based on the user's heart rate and uses the adjusted pen color to draw motion pictures. Figure 3IThe motion graph shown in 612A is related to the user's heart rate during exercise.

[0160] Optionally, the user's heart rate can also be correlated with other pen parameters. For example, when the user's heart rate is correlated with the pen size, the pen size for drawing motion pictures will change when the user's heart rate changes, resulting in motion pictures drawn by the electronic device 100 containing lines of varying thickness. Alternatively, the electronic device 100 can adjust pen parameters based on other user motion data. For example, the electronic device 100 can adjust the pen color based on the user's movement speed. Or, the electronic device 100 can simultaneously adjust multiple pen parameters based on multiple motion data. For example, it can adjust the pen color based on the user's heart rate, adjust the pen shape based on the user's movement posture, adjust the pen size based on the user's movement speed, and so on. A detailed description of the electronic device 100 adjusting multiple pen parameters based on multiple motion data will be provided later and will not be elaborated here.

[0161] The following is combined with Figures 4A-4D The electronic device 100 adjusts the brush color according to heart rate to generate the above... Figure 3I The process of the motion diagram shown.

[0162] Figure 4A An example is shown: a heart rate curve composed of multiple heart rates collected by the electronic device 100. The electronic device 100 adjusts the pen color according to the heart rate; specifically, when the heart rate is 85-95 beats / minute, the pen color is color 1; when the heart rate is 65-85 beats / minute, the pen color is color 2. Therefore, according to... Figure 4A As shown in the heart rate curve, the pen color for the 0-t1 and t2-t3 phases is color 1, and the pen color for the t1-t2 phase is color 2.

[0163] Figure 4B The example illustrates the content drawn in the first stage when the electronic device 100 begins drawing a motion picture. The content drawn in the first stage corresponds to the user's movement during the 0-t1 stage. Since the user's heart rate is between 85 and 95 beats per minute during the 0-t1 stage, the electronic device 100 uses color 1 as the pen color when drawing the motion picture in the first stage.

[0164] Figure 4CThe example illustrates the content drawn in the second stage when the electronic device 100 continues to draw motion pictures. The content drawn in the second stage is a continuation of the content drawn in the first stage by the electronic device 100. This second stage content corresponds to the user's movement during the t1-t2 stage. Since the user's heart rate is between 65-85 beats per minute during the t1-t2 stage, the pen color used by the electronic device 100 in the second stage is color 2.

[0165] Figure 4D The example illustrates the content drawn in the third stage when the electronic device 100 continues to draw a motion picture. The content drawn in the third stage is a continuation of the content drawn in the second stage by the electronic device 100. This third stage content corresponds to the user's movement during the t2-t3 stage. Since the user's heart rate is between 85-95 beats per minute during the t2-t3 stage, the pen color used by the electronic device 100 in the third stage is color 1. Ultimately, the motion picture generated by the electronic device 100 based on the heart rate is as shown below. Figure 4D The image shown.

[0166] It can be understood that the above Figures 4A-4D The process of generating motion pictures based on heart rate shown by the electronic device 100 is only a specific example of how the electronic device 100 generates motion pictures based on motion data, and does not constitute a limitation on the application. For details on the process of generating motion pictures based on motion data by the electronic device 100, please refer to the description in the following method embodiments.

[0167] Figures 5A-5E The example illustrates parameters for a motion picture preset by an electronic device 100 before the start of motion, and some user interfaces involved in adjusting the motion picture after the end of motion.

[0168] Before starting exercise, the electronic device 100 can preset the parameters of the motion picture, which can refer to drawing style, drawing template, etc. In this way, the user can determine the content and style of the drawing in advance, ensuring that a motion picture that the user wants to obtain can be generated after the user finishes exercising.

[0169] For details regarding the process of presetting the drawing style and template of the motion drawing before the electronic device 100 begins to move, please refer to [link to relevant documentation]. Figures 5A-5C The user interface shown.

[0170] like Figure 5AAs shown, the user interface 41 also includes a motion theme setting option 415, which can be used to set the drawing style and template of motion graphics. When the electronic device 100 detects a user operation on the motion theme setting option 415, in response to the operation, the electronic device 100 displays the following in the user interface 41: Figure 5B The aforementioned sports theme settings window 416.

[0171] like Figure 5B As shown, the motion theme settings window 416 may include: a drawing style selection area 416A, a drawing template selection area 416B, a cancel control 416C, and an confirm control 416D. The drawing style selection area 416A can be used to determine the drawing style of the motion picture. The drawing style can be used to adjust the final effect of the motion picture; for example, the drawing style may include: pencil drawing, ink painting, oil painting, watercolor painting, etc. The drawing template selection area 416B can be used to determine the drawing template of the motion picture. The drawing template can be used to determine the content of the motion picture; for example, the drawing template may include: motion, nature, people, animals, landscape, etc. Specifically, as... Figure 5B When the background color of the first drawing style 4161A is dark, it indicates that the drawing style corresponding to the first drawing style 4161A is selected. The drawing style corresponding to the first drawing style 4161A is "ink painting". When the background color of the first drawing template 4161B is dark, it indicates that the drawing template corresponding to the first drawing template 4161B is selected. The drawing style corresponding to the first drawing template 4161B is "natural". When the electronic device 100 detects a user operation on the determination control 416D, in response to the operation, the electronic device 100 determines that the style of the motion picture to be drawn by the electronic device 100 is "ink painting" and the drawing template is "natural".

[0172] In addition, the drawing template selection area 416B also includes a custom drawing template 4162B, which can be used to customize drawing templates. For example, users can select pictures from the gallery application to create drawing templates, or users can draw their own content to create drawing templates.

[0173] It is understandable that the parameters of motion graphics are not limited to those mentioned above. Figure 5B The drawing style and template shown may include parameters for the motion graphics, which may also include a drawing area. This drawing area can be used to set the position and size of the content drawn by the electronic device 100 on the motion image. This application embodiment does not limit the parameters of the motion graphics.

[0174] Figure 5C An example is shown of electronic device 100 after passing through Figure 5B The motion graph is displayed by the electronic device 100 after setting the parameters and performing the motion, and then stopping the motion. From... Figure 5C It can be seen that the drawing style of the motion picture finally generated by the electronic device 100 is the "ink painting" drawing style set by the electronic device 100 before the motion, and the drawing template of the motion picture finally generated by the electronic device 100 is the "natural" drawing template set by the electronic device 100 before the motion. Finally, the motion picture is presented as a bamboo ink painting.

[0175] After the exercise ends, the electronic device 100 can further edit the generated motion graphics, changing their parameters and content, such as altering the drawing style and adjusting the content. This allows users to modify the motion graphics after the exercise concludes, enhancing their editing freedom over the motion images.

[0176] For details regarding the process of adjusting the motion graph after the electronic device 100 finishes its motion, please refer to [link to relevant documentation]. Figures 5C-5E The user interface described above.

[0177] Figure 5C An exemplary illustration shows a user interface 61 that displays a motion graphic after the electronic device 100 has finished moving. Figure 5C As shown, the electronic device 100 detects a user operation applied to the editing control 612C, and in response to the operation, the electronic device 100 displays as shown. Figure 5D The user interface 71 shown is an editing interface for motion graphics.

[0178] like Figure 5DAs shown, the user interface 71 may include: a drawing display area 711, adjustment options 712, and a parameter selection area 713. The drawing display area 711 is used to display motion graphics generated by the electronic device 100, or motion graphics after the electronic device 100 has changed parameters or content. The adjustment options 712 are used to display adjustable parameter options of the electronic device 100, which may include a style change option 712A and a drawing option 712B. The style change option 712A can be used to change the drawing style of the motion graphics, and the drawing option 712B can be used to add or delete elements in the motion graphics, such as text, stickers, etc. The parameter selection area 713 can be used to display the selected parameter option in the adjustment options 712, including multiple specific parameter options. Specifically, when style change option 712A is selected, the font of style change option 712A can be bolded. The parameter selection area 713 displays a first drawing style 713A, a second drawing style 713B, etc., where the first drawing style 713A corresponds to the "pencil drawing" style, and the second drawing style 713B corresponds to the "ink painting" style. When the electronic device 100 initially displays multiple specific parameter options such as the first drawing style 713A and the second drawing style 713B, the drawing style of the motion picture displayed in the picture display area 711 can be selected by default. Since the electronic device 100 selects "ink painting" as the drawing style for the motion picture before starting the motion, in the motion picture generated by the electronic device 100, when the electronic device 100 first displays the multiple drawing styles provided by style change option 712A, the second drawing style 713B corresponding to "ink painting" is selected, that is, the background color of the second drawing style 713B is dark. When the electronic device 100 detects a user operation applied to the first drawing style 713B, in response to the operation, the electronic device 100 changes the drawing style of the motion graphics displayed in the image display area 711 to the drawing style corresponding to the first drawing style 713B, and displays as shown in the image. Figure 5E The user interface shown is 71.

[0179] like Figure 5E As shown, the background color of the first drawing style 713B is changed to a dark color, and the drawing style of the motion picture displayed in the drawing display area 711 is changed to the "pencil drawing" corresponding to the first drawing style 713B.

[0180] Figures 6A-6D Examples are shown of some user interfaces involved when the electronic device 100 displays motion pictures generated by the electronic device 100 in a video format after the motion has ended.

[0181] In addition to displaying motion images as pictures after exercise, electronic device 100 can also display motion images as videos. In this case, electronic device 100 can show the generation process of the motion image through video. Users can watch the video to understand the generation process of the motion image and the fluctuation of the user's exercise data during exercise, thus enhancing the fun of exercise.

[0182] Figure 6A An exemplary user interface 61 is shown, displaying a motion graphic after the electronic device 100 has finished moving. In this user interface 61, the area containing the motion graphic 612A, in addition to displaying the motion graphic generated by the electronic device 100, may also include a prompt message 613, a playback control 614, and a video duration 615. The prompt message 613 informs the user that the image displayed in the area containing the motion graphic 612A is an image associated with the user's movement. The playback control 614 can be used to trigger the playback of the video corresponding to the motion graphic generated by the electronic device 100, which can be used to demonstrate the process of the electronic device 100 generating the motion graphic. The playback duration 615 can be used to display the corresponding video duration; for example, 0:06 indicates that the video duration is 6 seconds. Figure 6A As shown, when electronic device 100 detects a user operation on playback control 614, in response to the operation, electronic device 100 performs the following actions: Figure 6B The video is played in the area where the motion picture 612A is shown.

[0183] like Figure 6B As shown, the electronic device 100 starts playing a video. The area where the motion graphic 612A is located displays video frame 1, and the video duration 615 is updated to 0:02, indicating that the current video has played for 2 seconds. Among them, video frame 1 contains part of the motion graphic 1 generated by the electronic device 100, and the color of this part of the content 1 is color 1.

[0184] like Figure 6C As shown, the electronic device 100 continues to play the video. The area containing the motion graphic 612A displays video frame 2, and the video duration 615 is updated to 0:04, indicating that the current video has played for 4 seconds. Video frame 2 includes the aforementioned portion 1 and a portion of the motion graphic 2, with the color of this portion 2 being color 2.

[0185] like Figure 6DAs shown, the electronic device 100 continues to play the video. The area where the motion graphic 612A is located displays video frame 3, and the video duration 615 is updated to 0:06, indicating that the current video has played for 6 seconds. At this time, the video frame 3 displays the complete motion graphic. Among them, the video frame 3 contains the aforementioned partial content 1, partial content 2, and partial content 3 of the motion graphic, and the color of this partial content 3 is color 1.

[0186] After the electronic device 100 completes the video display process of the motion graphics, the electronic device 100 can display the user interface 61 that appeared before the video playback, i.e. Figure 6A The user interface shown. That is, after the exercise ends, the electronic device 100 can display, as shown below. Figure 6A The user interface shown can be sequentially displayed by the electronic device 100 after the electronic device 100 detects the user's action of playing a video corresponding to a moving scene. Figures 6B-6D The user interface shown can be displayed by the electronic device 100 after playback is complete, as shown below. Figure 6A The user interface shown allows users to replay the video, or save, edit, or share it.

[0187] from Figures 6B-6D As can be seen, the electronic device 100 can display the drawing process of motion graphics in the form of video. Due to changes in the motion data (e.g., heart rate) collected by the electronic device 100, the pen color changes from color 1 to color 2 and then back to color 1. This results in the motion graphics generated by the electronic device 100 containing multiple parts of different colors: part 1, part 2, and part 3. Assuming color 1 corresponds to heart rate zone 1 and color 2 corresponds to heart rate zone 2, the user can observe the color changes during video playback to understand that during exercise, the user's heart rate changes from a certain heart rate in heart rate zone 1 to a certain heart rate in heart rate zone 2 and then back to a certain heart rate in heart rate zone 1. In this way, the video presentation more vividly and graphically demonstrates the user's exercise.

[0188] In some embodiments, the electronic device 100 may also display the drawing process of the motion picture in the form of an animated image. The present application embodiments do not limit the display process of the motion picture.

[0189] Understandable Figures 3A-3I , Figures 5A-5E , Figures 6A-6D The user interface on the electronic device 100 is merely shown as an example and should not be construed as limiting the embodiments of this application.

[0190] The following is combined with Figure 7 The overall process of the motion picture generation method in the embodiments of this application is described.

[0191] like Figure 7 As shown, the method includes:

[0192] S101, Electronic device 100 acquires the user's motion data.

[0193] Among them, the electronic device 100 can receive a user operation that initiates movement (e.g., acting on...) Figure 3E After the touch operation of the motion control 413 is initiated, the user's motion data is obtained.

[0194] In this embodiment of the application, the user operation of starting movement can also refer to a second operation.

[0195] Motion data refers to data collected by electronic devices 100 or other devices during a user's exercise, which is related to the user's movement. This data may include, but is not limited to: heart rate, respiratory rate, exercise posture, exercise speed, body temperature, blood pressure, blood sugar, location information, etc.

[0196] Location information refers to the geographical location of the user during movement. Movement posture can include: arm posture, leg posture, torso posture, etc. Movement posture can be represented by posture indicators collected by sensors. For example, when the movement posture is a leg posture, the movement indicators are the ground impact force, the outward range of the foot, the ground contact-to-leap ratio, etc. In this case, the electronic device 100 can obtain the user's movement posture through the pressure sensor carried in the smart shoe.

[0197] The electronic device 100 can collect the user's motion data through sensors, such as gyroscope sensors, accelerometers, bone conduction sensors, etc., or cameras, or the electronic device 100 can obtain motion data stored or collected by other devices by establishing a communication connection with other devices.

[0198] The communication connection can be wired or wireless. Wireless connections can be short-range connections such as Wi-Fi, Bluetooth, infrared, NFC, and ZigBee, or long-range connections, including but not limited to those based on 2G, 3G, 4G, 5G, and subsequent standard protocols on mobile networks. For example, electronic device 100 and other devices can log into the same user account (e.g., a Huawei account) and then connect remotely through a server.

[0199] Other devices can refer to cloud servers, which store the user's motion data. Electronic device 100 can access this data by logging into the user's account (e.g., a Huawei account). Alternatively, other devices can refer to wristbands, smartwatches, headphones, mobile phones, smart shoes, and other devices that can collect user motion data. Similarly, these devices can collect user motion data using sensors such as gyroscopes, accelerometers, and bone conduction sensors. In this case, electronic device 100 can obtain the motion data collected by these other devices by establishing a communication connection, such as via Bluetooth.

[0200] The motion data acquired by electronic device 100 may include the following:

[0201] 1) Electronic device 100 acquires some motion data during the user's movement.

[0202] At this time, the electronic device 100 does not need to collect motion data during the user's movement, or the user does not need to obtain all motion data during the user's movement, thus reducing the computational load of the electronic device 100 and reducing the space occupied by motion data in the electronic device 100's storage.

[0203] The electronic device 100 can acquire the user's exercise data at intervals. For example, after the electronic device 100 starts exercising, it can collect or acquire the user's heart rate every 10 minutes. Alternatively, the electronic device 100 can collect only the user's exercise data for a specific period during the exercise process. For example, the electronic device 100 can start collecting the user's heart rate 10 minutes after receiving the user's instruction to start exercising. This is because during the initial period after the user starts exercising, they may be in a preparation phase, and their exercise data may fluctuate significantly; therefore, the electronic device 100 can discard the exercise data from that initial period.

[0204] 2) Electronic device 100 acquires all motion data during the user's movement.

[0205] The electronic device 100 can acquire all motion data during the user's movement, accurately record the changes in motion data during the user's movement, and enable the motion graph finally drawn by the electronic device 100 to reflect the changes in the user's movement throughout the entire movement process in detail.

[0206] In this embodiment of the application, the user's motion data obtained by the electronic device at different times can also refer to first motion data obtained at a first time and second motion data obtained at a second time. For example, when the motion data is heart rate, the first motion data and the second motion data can refer to the user's heart rate obtained by the electronic device when the user starts exercising and when the user ends exercising, respectively.

[0207] S102, Electronic device 100 adjusts brush parameters based on motion data.

[0208] Brush parameters include: brush color, brush size, brush shape, brush flow, brush opacity, brush hardness, brush direction, and brush drawing speed. Brush flow refers to the amount of ink dispensed by the brush; a higher flow results in thicker, darker lines, while a lower flow results in thinner, lighter lines. Brush hardness refers to the stiffness of the brush; a higher hardness produces smoother lines, while a lower hardness produces rougher lines. Brush drawing speed refers to the speed at which the brush draws lines; a higher speed results in faster lines, and a lower speed results in slower lines. Adjusting these brush parameters can change the display effect of lines when the electronic device 100 draws moving pictures using the brush. For example, changing the brush color will change the color of the lines drawn by the electronic device 100, and changing the brush size will change the thickness of the lines drawn by the electronic device 100.

[0209] It is understandable that when the electronic device 100 uses a pen to draw a line or a continuous pattern in a motion picture, if changes in the motion data cause changes in the pen parameters, the line or continuous pattern drawn by the electronic device 100 will contain content drawn by multiple pen parameters. For example, when the electronic device 100 draws a straight line in a motion picture, if the pen color changes from red to green, the straight line will contain both red and green, with the first half of the drawn line being red and the second half being green. Optionally, the pen parameters for the straight line can be determined by the motion data at the beginning of drawing the line. For example, even if the motion data changes during the drawing process, since the line is not yet completed, the entire line is still drawn according to the previously determined pen parameters.

[0210] When the electronic device 100 adjusts the pen parameters based on motion data, it may do so in the following ways:

[0211] 1) Electronic device 100 adjusts brush parameters according to the range of motion data.

[0212] At this point, the electronic device 100 can acquire the user's exercise data over a period of time. The electronic device 100 can set multiple interval ranges for the exercise data. When the exercise data falls within the first interval, the first parameter is used for the drawing; when the exercise data falls within the second interval, the second parameter is used. For example, if the exercise data is heart rate and the drawing parameter is pen color, the electronic device 100 can set the pen color to red when the heart rate is between 65 and 85, and green when the heart rate is between 85 and 95. In this way, the motion graph drawn by the electronic device 100 can reflect the changing trends and conditions of the user's exercise. The user can understand the fluctuations in exercise data during the exercise process through the drawn motion graph, thereby understanding whether the user's exercise is regular. For example, when the electronic device 100 adjusts the pen size according to the user's breathing rate, if the pen size changes regularly (alternating between large and small) over a period of time, it indicates that the user's breathing is regular; if the pen size does not change regularly, it indicates that the user's breathing is irregular.

[0213] 2) Electronic device 100 determines the brush parameters based on the specific values ​​of the motion data.

[0214] At this point, the electronic device 100 can acquire the user's motion data at a specific moment. The electronic device 100 can set the pen parameters to use the first parameter when the motion data is a first value, and the second parameter when the motion data is a second value. For example, if the motion data is heart rate and the pen parameter is pen color, the electronic device 100 can set the pen color to red when the heart rate reaches 100 and green when the heart rate reaches 60. In this way, the motion graph drawn by the electronic device 100 can reflect the user's exercise performance. The user can understand whether the motion data reached the set values ​​during the exercise process through the drawn motion graph, thereby understanding whether the user's exercise is standardized. For example, when the electronic device 100 adjusts the pen color according to the user's foot extension amplitude, and the electronic device 100 sets a certain extension amplitude to correspond to red pen color, and this extension amplitude is an abnormal extension amplitude, indicating that the user's running posture is incorrect, then if the pen color turns red, it means that the user's running posture is incorrect.

[0215] Electronic device 100 can adjust one or more brush parameters based on one or more motion data, specifically including the following situations:

[0216] 1) Electronic device 100 adjusts a brush parameter based on motion data.

[0217] For example, electronic device 100 can adjust the pen color based on heart rate. In this way, electronic device 100 can acquire only the user's heart rate during exercise and adjust the pen color accordingly. The resulting motion graph generated by electronic device 100 can then consist of lines or blocks of various colors. Thus, the motion graph generated by electronic device 100 can intuitively reflect the changes in a user's exercise data.

[0218] 2) Electronic device 100 adjusts multiple brush parameters based on a single motion data point.

[0219] For example, the electronic device 100 can adjust the pen color and pen size based on heart rate. When the heart rate is in the first zone, the pen color is red and the pen size is large; when the heart rate is in the second zone, the pen color is green and the pen size is large; when the heart rate is in the third zone, the pen color is green and the pen size is small; and when the heart rate is in the fourth zone, the pen color is red and the pen size is small. In this way, the electronic device 100 can obtain a relatively rich motion picture with limited motion data.

[0220] 3) Electronic device 100 adjusts the parameters of a paintbrush based on multiple motion data.

[0221] For example, electronic device 100 can adjust the pen color based on heart rate and respiratory rate. When the heart rate is at the first value and the respiratory rate is at the second value, the pen color is red; when the heart rate is at the third value and the respiratory rate is at the fourth value, the pen color is green. In this way, electronic device 100 can combine multiple motion data to adjust a single pen parameter. Electronic device 100 can select correlated motion data for combination. For example, electronic device 100 can combine heart rate and exercise speed to adjust the pen parameter. Higher speed and higher heart rate can be considered anaerobic exercise, while lower speed and lower heart rate can be considered aerobic exercise. Thus, electronic device 100 can distinguish between the user's aerobic and anaerobic exercise based on changes in the pen parameter.

[0222] 4) Electronic device 100 adjusts multiple brush parameters based on multiple motion data.

[0223] In this scenario, one motion data point is associated with one brush parameter. Essentially, the electronic device 100 needs to acquire multiple motion data points, with each data point corresponding to a specific brush parameter. For example, the electronic device 100 can adjust the brush color based on heart rate, the brush shape based on movement posture, and the brush size based on movement speed. In this way, different motion data can be used to adjust different brush parameters, allowing the electronic device 100 to generate richly detailed motion graphics that provide users with a comprehensive understanding of their activity.

[0224] In some embodiments, the electronic device 100 may store a table relating motion data to brush parameters. The electronic device 100 can determine the correlation between motion data and brush parameters through this table, and determine the brush based on the motion data by consulting the table.

[0225] In this embodiment of the application, the electronic device can determine the first pen parameter based on the first motion data and the second pen parameter based on the second motion data. The first pen parameter and the second pen parameter can refer to different parameter sizes within the same pen parameter. For example, both the first pen parameter and the second pen parameter can be pen color. The first pen parameter can refer to the pen color being red, and the second pen parameter can refer to the pen color being green.

[0226] S103, Electronic device 100 generates motion pictures based on the brush after adjusting the brush parameters.

[0227] The motion picture consists of lines drawn by a pen. These lines are drawn by the pen determined by the electronic device 100 based on motion data.

[0228] The electronic device 100 may generate motion graphics in the following ways:

[0229] 1) Electronic device 100 draws motion pictures according to the preset pen strokes.

[0230] The pen stroke describes the direction of the pen stroke and the starting and ending points of the pen stroke. For example, when the electronic device 100 draws a rectangle, the electronic device 100 can preset the pen stroke to be horizontal to the left when drawing the rectangle. At this time, the electronic device 100 first draws a horizontal straight line. Then, the pen stroke is vertical downward, and the electronic device 100 draws a vertical straight line. Then, the pen stroke is horizontal to the right, and the electronic device 100 draws a horizontal straight line. Finally, the pen stroke is vertical upward, and the electronic device 100 draws a vertical straight line. The pen stroke ends at the starting position. In this way, the electronic device 100 can draw a rectangle according to the pen stroke.

[0231] In other words, the electronic device 100 can determine the content of the motion picture before drawing it. Specifically, the electronic device 100 can include multiple drawing templates, which are used to determine the content of the motion picture. The drawing templates can include: motion, nature, people, animals, landscapes, etc. In this way, the electronic device 100 draws the motion picture according to the preset pen strokes. At the same time, during the drawing process, the thickness of the lines or the size of the color blocks, as well as the color, shape, transparency, etc. of the lines or color blocks, can change according to the user's motion data.

[0232] The electronic device 100 may include the following methods for determining the drawing template:

[0233] a) Electronic device 100 randomly determines the drawing template

[0234] In this way, the motion picture generated by the electronic device 100 each time is uncertain. After each exercise, the user can view the randomly generated motion picture, and the content of the motion picture generated each time may be the same or different.

[0235] b) Electronic device 100 determines the drawing template according to the user's selection.

[0236] The electronic device 100 can provide multiple drawing templates for users to choose from, allowing users to select their preferred template. In this way, the electronic device 100 can draw the content the user desires, and the display effect of this content is related to the user's motion data.

[0237] See Figures 5A-5B ,exist Figure 5A In the user interface shown, the electronic device 100 can provide a motion theme setting option 415, which can be used to set the drawing template for motion graphics, such as... Figure 5B The motion theme settings window 416 shown contains a drawing template selection area 416B, which allows the user to define the content of the motion drawing. When the electronic device 100 detects that the user has selected the first drawing template 4161B, after the motion is complete, the electronic device 100 displays the following: Figure 5C The motion drawing shown is a template corresponding to the first drawing template 4161B selected by the user.

[0238] In this embodiment of the application, the user operation of the electronic device 100 receiving the user's selection of the drawing template can also refer to the first operation.

[0239] c) Electronic device 100 determines the drawing template based on user information.

[0240] The user information can refer to the user's age. For example, if the user's age indicates that the user is a teenager, the electronic device 100 can determine that the drawing template is an anime character; if the user's age indicates that the user is middle-aged, the electronic device 100 can determine that the drawing template is a landscape. User information can also refer to the number of consecutive days the user has exercised. For example, the longer the number of consecutive days the user has exercised, the more complex the content of the drawing template determined by the electronic device 100 will be. If the user has only exercised for 3 consecutive days, the drawing template determined by the electronic device 100 could be a sapling; if the user has exercised for 15 consecutive days, the drawing template determined by the electronic device 100 could be a small tree. User information can also refer to the date the user exercised. Specifically, if the user's exercise date is a holiday, the electronic device 100 can determine that the drawing template is a holiday-related template. For example, if the user's exercise is currently on Arbor Day, the electronic device 100 can select a drawing template related to trees.

[0241] It is understood that user information can also refer to the user's gender, height, weight, etc., and this application embodiment does not limit this.

[0242] 2) Electronic device 100 determines the pen direction based on motion data, thereby drawing a motion picture.

[0243] In other words, the electronic device 100 draws motion pictures entirely based on motion data. The electronic device 100 can associate the user's running posture with the direction of the pen. For example, when the user runs to the left, the pen moves to the left, and when the user runs to the right, the pen moves to the right.

[0244] It is understood that, in addition to the two methods of generating motion pictures mentioned above, the electronic device 100 may also draw randomly without limiting the content of the motion pictures, and this application embodiment does not impose any restrictions on this.

[0245] Electronic device 100 can generate motion graphics in the following two situations:

[0246] 1) Electronic device 100 generates motion graphics during the user's movement.

[0247] At this point, the electronic device can acquire the user's motion data in real time during the user's exercise, adjust the pen parameters based on the user's motion data, and then draw the motion picture in real time based on the adjusted pen parameters. In this way, the electronic device can quickly output the motion picture after the user finishes exercising.

[0248] 2) The electronic device generates motion graphics after the user finishes exercising.

[0249] At this point, the electronic device can store the user's motion data during exercise, for example, locally or on a cloud server, and then draw a motion graph based on the stored motion data after the user finishes exercising. In this way, the electronic device does not have to wait for data to be collected before drawing the graph, shortening the time span for drawing the motion graph. In addition, the user can also obtain a motion graph based on the motion data collected during previous exercise.

[0250] It is understood that the content of the motion picture is not limited. The content of the motion picture can be graphic content such as the people, animals, and landscapes mentioned above. The content of the motion picture can also be text content. In this case, the electronic device 100 can use an adjusted pen to draw the text content. During the drawing process of the electronic device 100, the strokes of the text will change the display effect according to the adjustment of the pen parameters. The electronic device 100 can also have multiple preset text templates. The electronic device 100 can automatically determine the text template or determine the text template according to the user's selection. This application embodiment does not limit the form of the content of the motion picture.

[0251] S104, Electronic device 100 displays the generated motion picture.

[0252] Specifically, after receiving a user operation to end the motion, the electronic device 100 can display a user interface for displaying the motion drawing generated by the electronic device 100.

[0253] In this embodiment of the application, the user operation to end the exercise can also refer to a third operation.

[0254] See Figures 3H-3I ,like Figure 3H As shown, the electronic device 100 receives a touch operation from the user on the end motion control 515, ends the motion, and displays as shown. Figure 3I The user interface, such as Figure 3I As shown, the motion display area 612 is used to display motion graphics generated by the electronic device 100.

[0255] In some embodiments, after the electronic device 100 generates a motion picture, the electronic device 100 can also adjust the motion picture, such as adjusting the drawing style of the motion picture, adding or deleting elements in the motion picture, etc. See also Figures 5C-5E ,like Figure 5C As shown, after the electronic device 100 displays the generated motion picture, the user interface 61 includes an editing control 612C, which can be used to adjust the motion picture, such as... Figure 5DAs shown, the electronic device 100 displays an editing interface for motion graphics. This editing interface includes adjustment options 712. The electronic device 100 can receive user operations on the adjustment options 712 to adjust the drawing style of the motion graphics or to doodle on the motion graphics, etc.

[0256] In some embodiments, the motion graphics generated by the electronic device 100 can be displayed to the user as images, for example, such as... Figure 3I The motion graph shown in Figure 612A allows users to quickly and intuitively understand their own movement.

[0257] In other embodiments, the motion graphics generated by the electronic device 100 can be displayed to the user as video or animated graphics, for example, Figure 6A As shown, when the electronic device 100 detects a user operation on the playback control 614, the electronic device 100 starts playing a video or animated image. This video or animated image can be used to demonstrate the process by which the electronic device 100 generates the animated image, and sequentially displays, as shown below. Figures 6B-6D The user interface shown.

[0258] In some embodiments, the electronic device 100 can set a fitness goal before exercise. If the user fails to complete the fitness goal after exercise, the electronic device 100 can display an incomplete fitness drawing. For example, the electronic device 100 can generate only a portion of the fitness drawing template's content, or it can display a prompt message in the fitness drawing to indicate that the fitness goal has not been completed. If the user continues exercising for a period of time after achieving the fitness goal, the electronic device 100 can, in addition to displaying the complete fitness drawing, add stickers, text, or other prompts to the fitness drawing to indicate that the user has exceeded the fitness goal. For details regarding the user interface of the electronic device 100 for setting fitness goals before exercise, please refer to [link to relevant documentation]. Figures 3C-3D The user interface described above.

[0259] In some embodiments, after exercise, in addition to displaying the exercise graph generated based on exercise data, the electronic device 100 can add elements to the exercise graph to enrich the information displayed by the electronic device 100 regarding the exercise results. For example, the element can be a text prompt, which can be used to remind the user of the number of days they have persisted in exercising, their exercise ranking, etc., or the element can be an icon related to weather, landmarks, dates, holidays, etc. Furthermore, when the electronic device 100 displays the exercise graph as a video or GIF, after exercise, the electronic device 100 can also adjust the playback duration or speed of the video or GIF, or extract a portion of the video or GIF. This allows the user to choose the part of the video or GIF they want to keep. Alternatively, the electronic device 100 can provide filters for the user to choose from, and can also provide background music, allowing the user to add their desired background music to the video or GIF, making the displayed exercise graph more vivid and interesting, and enhancing the user's editability.

[0260] The following is combined with Figure 8 A schematic diagram of the motion picture generation device in the embodiments of this application is presented.

[0261] like Figure 8 As shown, the motion picture generation device includes: acquisition module 202, adjustment module 203, drawing module 204, and display module 205.

[0262] The determining module 201 can be used to determine a drawing template for the motion drawing of the electronic device 100 before the user starts exercising. The drawing template describes the pen strokes of the electronic device 100 in drawing the motion drawing. The electronic device 100 may contain multiple drawing templates. The determining module 201 can select a drawing template for generating the motion drawing from multiple drawing templates according to user information, or the determining module 201 can select a drawing template for generating the motion drawing from multiple drawing templates according to the user's selection. The user information may include one or more of the following: number of days the user exercises, date the user exercises, age, gender, height or weight, etc.

[0263] The acquisition module 202 can be used to acquire motion data collected by the electronic device 100 and / or other devices during the user's exercise. The motion data includes one or more of the following: heart rate, respiratory rate, exercise posture, exercise speed, body temperature, blood pressure, blood sugar, location, etc.

[0264] The adjustment module 203 can be used to adjust the brush parameters based on motion data. The brush parameters include one or more of the following: brush color, brush size, brush shape, brush flow, brush transparency, brush hardness, brush direction, brush drawing speed, etc.

[0265] The drawing module 204 can be used to draw motion pictures according to the adjusted brush. The adjusted brush refers to the brush with adjusted brush parameters. When the brush parameters change, the display effect of the lines drawn by the brush will also change. The display effect can refer to the changes in color, size, shape, flow, transparency, hardness, direction, drawing speed, etc., which are related to the brush parameters. In this way, the motion picture drawn by the electronic device 100 using the changed brush parameters contains multiple lines with different display effects.

[0266] The display module 205 can be used to display the drawn motion drawing on the user interface of the electronic device 100 after the user finishes exercising. This allows the user to understand their exercise progress based on the displayed motion drawing. The motion drawing can be displayed in the form of an image, GIF, or video. When the display module 205 displays the motion drawing as an GIF or video, it can also display the drawing process of the motion drawing. Furthermore, the display module 205 can provide multiple user-selectable controls, allowing the user to further adjust the motion drawing, such as changing the drawing style, adjusting video playback speed, cropping video length, adding stickers, adding filters, etc.

[0267] For details regarding any aspects of the motion graphics generation device not mentioned above, please refer to the foregoing content; further details will not be repeated here.

[0268] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.

[0269] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0270] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0271] In summary, the above description is merely an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made according to the disclosure of the present invention should be included within the scope of protection of the present invention.

Claims

1. A moving picture generation method characterized by comprising: The method includes: The electronic device acquires a first drawing template, which indicates the pen direction of a first line and a second line. The pen direction of the first line describes the direction and position when drawing the first line, and the pen direction of the second line describes the direction and position when drawing the second line. The electronic device acquires motion data during the user's movement, the motion data including first motion data at a first time during the movement, and second motion data at a second time during the movement; The electronic device determines the first pen parameters based on the first motion data, and uses the first pen parameters to draw the first content according to the pen stroke direction of the first line; The electronic device determines the second pen parameters based on the second motion data, and uses the second pen parameters to draw the second content according to the pen stroke direction of the second line; wherein the first pen parameters are different from the second pen parameters; The electronic device displays a moving image, which includes the first content and the second content.

2. The method of claim 1, wherein, The first or second motion data includes one or more of the following: heart rate, respiratory rate, movement posture, movement speed, body temperature, blood pressure, blood sugar, and location.

3. The method of claim 1, wherein, The first brush parameter or the second brush parameter includes one or more of the following: brush color, brush size, brush shape, brush flow, brush transparency, brush hardness, brush drawing speed, or brush direction.

4. The method of claim 1, wherein, The electronic device stores multiple drawing templates, and the drawing templates describe the corresponding pen strokes. Before the electronic device determines first brush parameters based on the first motion data and uses the first brush parameters to draw first content according to the brush direction, and before determining second brush parameters based on the second motion data and using the second brush parameters to draw second content according to the brush direction, the method further includes: The electronic device selects the first drawing template from the plurality of drawing templates; The electronic device determines the pen direction corresponding to the first drawing template as the pen direction.

5. The method of claim 4, wherein, Before the electronic device selects a first drawing template from the plurality of drawing templates, the method further includes: The electronic device displays multiple template options, including a first template option, which corresponds to the first drawing template. The electronic device selects a first drawing template from the plurality of drawing templates, specifically including: The electronic device receives a first operation applied to the first template option; In response to the first operation, the electronic device selects a first drawing template from the plurality of drawing templates.

6. The method of claim 4, wherein, The electronic device selects a first drawing template from the plurality of drawing templates, specifically including: The electronic device selects a first drawing template from the plurality of drawing templates based on user information, wherein the user information includes one or more of the following: number of days the user exercises, date the user exercises, age, gender, height or weight.

7. The method of claim 1, wherein, Before the electronic device acquires motion data during the user's movement, the method further includes: The electronic device receives a second operation, which triggers the electronic device to acquire the motion data.

8. The method of claim 1, wherein, Before the electronic device displays the moving image, the method further includes: The electronic device receives a third operation, which triggers the display of the motion picture.

9. The method of claim 1, wherein, The electronic device displays moving images, specifically including: The electronic device displays the drawing process of the motion picture.

10. The method according to claim 1, characterized in that, The first time is a point in time or a period of time, and the second time is a point in time or a period of time.

11. The method according to any one of claims 1 to 10, characterized in that, The motion data is collected by the electronic device and / or by other devices connected to the electronic device.

12. An electronic device, comprising: Display screen, memory, one or more processors, multiple applications, and one or more programs; M≥2, where M is a positive integer; The one or more programs are stored in the memory; characterized in that, when the one or more processors execute the one or more programs, the electronic device causes the electronic device to implement the method as described in any one of claims 1 to 11.

13. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are executed on an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1 to 11.

14. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 11.