WO2023280169A1 - Movement picture generation method and electronic device - Google Patents

Movement picture generation method and electronic device Download PDF

Info

Publication number
WO2023280169A1
WO2023280169A1 PCT/CN2022/103959 CN2022103959W WO2023280169A1 WO 2023280169 A1 WO2023280169 A1 WO 2023280169A1 CN 2022103959 W CN2022103959 W CN 2022103959W WO 2023280169 A1 WO2023280169 A1 WO 2023280169A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
brush
user
motion
exercise
Prior art date
Application number
PCT/CN2022/103959
Other languages
French (fr)
Chinese (zh)
Inventor
刘亮
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023280169A1 publication Critical patent/WO2023280169A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation

Definitions

  • the present application relates to the technical field of mobile terminals, in particular to a method for generating motion pictures and electronic equipment.
  • the present application provides a motion picture generation method and electronic equipment.
  • the motion picture generation method can draw a motion picture related to the user's motion data, display the user's motion situation in the form of a motion picture, and enhance the fun of sports.
  • an embodiment of the present application provides a method for generating a motion picture, the method comprising: the electronic device acquires a first drawing template, and the first drawing template indicates the direction of a brush; the electronic device acquires the user's motion process In the exercise data, the exercise data includes the first exercise data at the first time during the exercise, and the second exercise data at the second time during the exercise; the electronic device according to the first exercise data to determine the first brush parameters, and use the first brush parameters to draw the first content according to the direction of the brush; the electronic device determines the second brush parameters according to the second motion data, and uses the second Brush parameters, drawing second content according to the direction of the brush; wherein, the first brush parameters are different from the second brush parameters; the electronic device displays a moving picture, and the moving picture includes the first content and the second content.
  • the motion data during the user’s motion can be obtained, and the brush parameters can be adjusted according to the user’s motion data.
  • the motion picture can be drawn according to the preset brush direction, and can be drawn during the user’s motion.
  • the motion picture is displayed to the user, so that the user can understand his own motion during the motion according to the motion picture.
  • the first exercise data or the second exercise data include one or more of the following: heart rate, respiratory rate, exercise posture, exercise speed, body temperature, blood pressure , blood sugar, location.
  • the first brush parameter or the second brush parameter includes one or more of the following: brush color, brush size, brush shape, brush flow rate, and brush transparency , Pen Hardness, Pen Drawing Speed, or Pen Direction.
  • the electronic device stores a plurality of drawing templates, and the drawing templates describe a corresponding brush direction; the electronic device determines a first Brush parameters, and use the first brush parameters to draw the first content according to the brush direction, determine the second brush parameters according to the second motion data, and use the second brush parameters to draw according to the brush direction Before the second content, the method further includes: the electronic device selecting the first drawing template from the plurality of drawing templates; the electronic device determining the direction of the brush corresponding to the first drawing template as the selected Describe the direction of the brush.
  • the electronic device can store multiple drawing templates. These drawing templates correspond to different brush orientations.
  • the electronic device can select different drawing templates to draw motion pictures. In this way, the electronic device can obtain a variety of motion pictures with different contents and display them to the user. Rich sports pictures can enhance users' interest in sports.
  • the method further includes: the electronic device displays a plurality of template options, the The multiple template options include a first template option, and the first template option corresponds to the first drawing template; the electronic device selects the first drawing template from the multiple drawing templates, specifically including: the The electronic device receives a first operation acting on the first template option; in response to the first operation, the electronic device selects a first drawing template from the plurality of drawing templates.
  • the electronic device can display a plurality of drawing templates in the user interface, and the user can select a drawing template according to his own preferences.
  • the motion picture finally drawn by the electronic device is the motion picture that the user wants to obtain, which improves the user's choice. degrees of freedom.
  • the electronic device selects a first drawing template from the plurality of drawing templates, which specifically includes: the electronic device selects a first drawing template from the plurality of drawing templates according to user information
  • the first drawing template is selected, wherein the user information includes one or more of the following: days of user's exercise, date of user's exercise, age, gender, height or weight.
  • the electronic device can automatically select a drawing template according to the user information, without the need for the user to be entangled in the selection of the drawing template, and provide a smarter drawing template recommendation method to improve the user experience.
  • the method further includes: the electronic device receives a second operation, and the second operation is used to trigger The electronic device acquires the motion data.
  • the electronic device may start to acquire the user's exercise data after receiving the user's operation of starting exercise.
  • the method further includes: the electronic device receives a third operation, and the third operation is used to trigger display of the moving picture. motion drawing.
  • the electronic device may display the exercise picture generated according to the user's exercise data.
  • the displaying the moving picture by the electronic device specifically includes: displaying, by the electronic device, a drawing process of the moving picture.
  • the electronic device can display motion pictures in the form of video or animation, so that the user can learn in detail the changes in various aspects of the user's body during the user's exercise process through the video or animation.
  • the first time is a time point or a time period
  • the second time is a time point or a time period
  • the electronic device can adjust the brush parameters according to the user's motion data at a certain point in time, so that the user can know whether the motion data reaches the set value during the motion process through the motion picture drawn, so as to know whether the user's motion is standardized
  • the electronic device can adjust brush parameters according to the user's exercise data for a period of time, so that the user can understand the movement data fluctuations during the exercise process through the drawn exercise picture.
  • the motion data is collected by the electronic device, and/or collected by other devices connected to the electronic device.
  • exercise data can refer to data collected by electronic devices or other devices that establish a communication connection with electronic devices.
  • electronic devices can obtain a variety of different data, so that sports pictures can display rich sports information of users.
  • an embodiment of the present application provides an electronic device, the electronic device includes: a determination module acquires a first drawing template, and the first drawing template indicates the direction of a brush;
  • the motion data includes the first motion data at the first time during the motion, and the second motion data at the second time during the motion;
  • the adjustment module determines the first brush parameters according to the first motion data, and draws The module uses the first brush parameters to draw the first content according to the direction of the brush;
  • the adjustment module determines the second brush parameters according to the second movement data, and the drawing module uses the second brush parameters according to the The direction of the brush draws the second content; wherein, the first brush parameter is different from the second brush parameter;
  • the display module displays a moving picture, and the moving picture includes the first content and the second content.
  • the first exercise data or the second exercise data include one or more of the following: heart rate, respiratory rate, exercise posture, exercise speed, body temperature, blood pressure , blood sugar, location.
  • the first brush parameter or the second brush parameter includes one or more of the following: brush color, brush size, brush shape, brush flow rate, and brush transparency , Pen Hardness, Pen Drawing Speed, or Pen Direction.
  • the electronic device stores a plurality of drawing templates, and the drawing templates describe the corresponding brush direction; the electronic device further includes: the determining module obtains from the The first drawing template is selected from a plurality of drawing templates; the determination module determines the brush direction corresponding to the first drawing template as the brush direction.
  • the electronic device further includes: the determining module displays a plurality of template options, the plurality of template options include a first template option, and the first template option Corresponding to the first drawing template; the determining module receives a first operation acting on the first template option; in response to the first operation, the determining module selects the first drawing template from the plurality of drawing templates A drawing template.
  • the determining module selects a first drawing template from the plurality of drawing templates according to user information, where the user information includes one or more of the following: user Days of exercise, dates of user exercise, age, gender, height or weight.
  • the electronic device further includes: the collection module receives a second operation, and the second operation is used to trigger the electronic device to obtain the motion data.
  • the electronic device further includes: the display module receives a third operation, and the third operation is used to trigger display of the motion picture.
  • the display module displays a drawing process of the motion picture.
  • the first time is a time point or a time period
  • the second time is a time point or a time period
  • the motion data is collected by the electronic device, and/or collected by other devices connected to the electronic device.
  • the embodiment of the present application provides an electronic device, including: a display screen, a memory, one or more processors, multiple application programs, and one or more programs; M ⁇ 2, M is a positive integer; wherein The one or more programs are stored in the memory; it is characterized in that, when the one or more processors execute the one or more programs, the electronic device realizes the first aspect or the first aspect The method described in any one of the embodiments of an aspect.
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium includes instructions, and when the instructions are run on an electronic device, the electronic device executes the first aspect or the first aspect. The method described in any one of the embodiments.
  • the embodiments of the present application provide a computer program product, which, when running on a computer, causes the computer to execute the method described in the first aspect or any implementation manner of the first aspect.
  • FIG. 1 is a hardware structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a software structure diagram of an electronic device provided in an embodiment of the present application.
  • Fig. 3A-Fig. 3I are some user interfaces implemented on the electronic equipment provided by the embodiment of the present application.
  • Fig. 4A-Fig. 4D are the generation process of the motion picture provided by the embodiment of the present application.
  • Fig. 5A-Fig. 5E, Fig. 6A-Fig. 6D are other user interfaces implemented on electronic devices provided by the application embodiment;
  • FIG. 7 is a schematic flowchart of a method for generating a moving picture provided in an embodiment of the present application.
  • Fig. 8 is a schematic structural diagram of a moving picture generation device provided by an embodiment of the present application.
  • first and second are used for descriptive purposes only, and cannot be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, the “multiple” The meaning is two or more.
  • UI user interface
  • the term "user interface (UI)” in the following embodiments of this application is a medium interface for interaction and information exchange between an application program or an operating system and a user, and it realizes the difference between the internal form of information and the form acceptable to the user. conversion between.
  • the user interface is the source code written in a specific computer language such as java and extensible markup language (XML).
  • the source code of the interface is parsed and rendered on the electronic device, and finally presented as content that can be recognized by the user.
  • the commonly used form of user interface is the graphical user interface (graphic user interface, GUI), which refers to the user interface related to computer operation displayed in a graphical way. It may be text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, and other visible interface elements displayed on the display screen of the electronic device.
  • these sports applications can provide various sports modes, such as running, walking, cycling, swimming, climbing and other sports modes. Users can perform targeted exercises according to different exercise modes.
  • these sports applications can display the exercise results, which can include the user's exercise data during the exercise, such as heart rate, exercise pace, calories burned, exercise time, exercise distance, etc.
  • the exercise result may include analysis data calculated by the electronic device based on the user's exercise data, for example, heart rate graph, exercise trajectory graph, average pace, average heart rate, and the like.
  • an embodiment of the present application provides a motion picture generation method.
  • the electronic device can collect or obtain the motion data of the user during the motion, wherein the motion data includes: heart rate, breathing rate, motion Posture, motion speed, body temperature, blood pressure, blood sugar, position, etc., and adjust the brush parameters according to the motion data.
  • the brush parameters include: brush color, brush size, brush shape, brush flow, brush transparency, brush hardness, brush direction, Brush drawing speed and more.
  • the electronic device can draw motion pictures through a brush.
  • the display effect of the lines drawn by the electronic device through the brush will also change, wherein the display effect can refer to the color, size and , shape, flow, transparency, hardness, direction, drawing speed, and more.
  • the motion picture generated by the electronic device is composed of multiple lines with different display effects, and the motion picture reflects the changes of the user's motion data during the motion process.
  • a user's heart rate may be correlated with the color of a brush.
  • the color of the brush is red
  • the color of the brush is green. Since the user's heart rate fluctuates in real time during the actual exercise, when the user's heart rate is in the first interval, the brush color of the electronic device when drawing is red; when the user's heart rate is in the second interval, the brush color of the electronic device when drawing The color is green so that the electronic device can generate a moving picture of alternating colors. Users can also know their heart rate fluctuations during exercise according to the color change of the exercise picture.
  • this method can adjust brush parameters according to the user's motion data, so that after the user finishes exercising, the electronic device can display a motion picture drawn according to the user's motion data, and the user can also understand the motion picture based on the motion picture.
  • the pictures displayed by different users can also be different. Users can obtain a targeted sports picture, which enhances the fun of sports and shows users more personalized sports results.
  • the exercise data may be collected by an electronic device, or may be collected by other devices, and the other device may refer to a device that establishes a communication connection with the electronic device.
  • the electronic device may refer to a device with a display screen, such as a mobile phone, a computer, a notebook, a large screen, etc.
  • the display screen may be used to display motion pictures generated by the electronic device
  • other devices may refer to devices capable of collecting user motion data.
  • Electronic devices such as mobile phones, earphones, bracelets, smart watches, large screens, etc.
  • electronic devices or other devices can use sensors or cameras to collect user motion data
  • the sensors can include: gyroscope sensors, acceleration sensors, Bone conduction sensors, etc.
  • electronic devices can use bone conduction sensors to collect user's heart rate, use gyroscope sensors to collect user's movement speed, use cameras to collect user's movement posture and so on.
  • Electronic devices can generate motion pictures in two situations:
  • the electronic device generates motion pictures during the user's motion
  • the electronic device can acquire the motion data of the user in real time, and adjust the parameters of the brush according to the motion data of the user. At the same time, the electronic device draws motion pictures in real time according to the adjusted parameters of the brush. In this way, after the user ends the exercise, the electronic device can quickly output the exercise picture.
  • the electronic device generates a motion picture after the user's motion is over
  • the electronic device can store the motion data during the user's exercise, and then generate a motion picture based on the motion data after the exercise is over, or the electronic device can directly obtain the previously stored motion data, the stored motion data It can be stored locally or on a cloud server, and motion pictures are generated based on previously stored motion data. In this way, the electronic device does not need to wait for the data to be collected before drawing a picture, which shortens the span time for the electronic device to generate a motion picture, or the user can obtain a motion picture according to the motion data collected during the previous exercise.
  • the electronic device may determine in advance the drawing template to be drawn, and the drawing template describes the content to be drawn with the brush when the electronic device generates the motion picture, in other words, the drawing template describes the direction of the brush.
  • the electronic device selects "cat" as the picture template, after the electronic device adjusts the brush parameters according to the motion data, the electronic device can use the brush after adjusting the brush parameters to draw "cat", so as to obtain a picture whose content is the movement of the cat. picture.
  • the electronic device may provide multiple drawing templates, and the electronic device may randomly select a drawing template from the multiple drawing templates, or select a drawing template according to user information, or select a drawing template according to user operations, and so on.
  • the electronic device may not limit the content of the picture, and the electronic device may draw randomly or determine the direction of the brush according to the motion data. In this way, after each exercise of the user, the electronic device can obtain a motion picture with different content, which enhances the interest of the motion. , so that users are more interested in viewing exercise results, and improve users' enthusiasm for exercise.
  • the electronic device may not limit the content of the picture, and the electronic device may draw randomly or determine the direction of the brush according to the motion data. In this way, after each exercise of the user, the electronic device can obtain a motion picture with different content, which enhances the interest of the motion. , so that users are more interested in viewing exercise results, and improve users' enthusiasm for exercise.
  • the electronic device provided by the embodiment of the present application is introduced below.
  • Fig. 1 schematically shows the hardware structure of the electronic device.
  • the electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA) or special camera (such as single-lens reflex camera, card camera), etc., this application does not impose any restrictions on the specific type of the electronic device.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the processor 110 is configured to adjust the parameters of the brush according to the motion data, and draw a motion picture according to the brush after adjusting the parameters of the brush.
  • the processor 110 is configured to adjust the parameters of the brush according to the motion data, and draw a motion picture according to the brush after adjusting the parameters of the brush.
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • the wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is passed to the application processor after being processed by the baseband processor.
  • the application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100.
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the electronic device 100 can establish a connection with other devices, such as mobile phones, earphones, wristbands, smart watches, large screens, etc., through the mobile communication module 150 or wireless communication module 160, and obtain motion data collected or stored by other devices.
  • the exercise data includes: heart rate, respiratory rate, exercise posture, exercise speed, body temperature, blood pressure, blood sugar, location, etc., or, the electronic device 100 can load a drawing template through the mobile communication module 150 or wireless communication module 160, specifically about The description of the drawing template can be found in the following content.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • Beidou navigation satellite system beidou navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 can use GPS to obtain the user's movement track.
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the display screen 194 may be used to display user interfaces involved in the running of the sports application by the electronic device 100 .
  • the display screen 194 may be used to display user interfaces involved in the running of the sports application by the electronic device 100 .
  • the user interface provided in the subsequent embodiments.
  • the internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (non-volatile memory, NVM).
  • RAM random access memory
  • NVM non-volatile memory
  • Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (synchronous dynamic random access memory, SDRAM), double data rate synchronous Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as the fifth generation DDR SDRAM is generally called DDR5SDRAM), etc.;
  • SRAM static random-access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • SDRAM synchronous dynamic random access memory
  • double data rate synchronous Dynamic random access memory double data rate synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • DDR SDRAM double data rate synchronous dynamic random access memory
  • DDR5SDRAM double data rate synchronous dynamic random access memory
  • Non-volatile memory may include magnetic disk storage devices, flash memory (flash memory).
  • flash memory can include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.
  • it can include single-level storage cells (single-level cell, SLC), multi-level storage cells (multi-level cell, MLC), triple-level cell (TLC), quad-level cell (QLC), etc.
  • SLC single-level storage cells
  • MLC multi-level storage cells
  • TLC triple-level cell
  • QLC quad-level cell
  • UFS universal flash storage
  • embedded multimedia memory card embedded multi media Card
  • the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of an operating system or other running programs, and can also be used to store data of users and application programs.
  • the non-volatile memory can also store executable programs and data of users and application programs, etc., and can be loaded into the random access memory in advance for the processor 110 to directly read and write.
  • the internal memory 121 can be used to store motion data and drawing templates, a relationship table between motion data and brush parameters, etc. collected when the electronic device 100 runs a motion application or obtained from other devices.
  • the external memory interface 120 can be used to connect an external non-volatile memory, so as to expand 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 implement a data storage function. For example, files such as music and video are stored in an external non-volatile memory.
  • the electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 may also be used to encode and decode audio signals.
  • the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
  • Speaker 170A also referred to as a "horn" is used to convert audio electrical signals into sound signals.
  • Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls. In some embodiments, the electronic device 100 can use the speaker 170A to announce the user's exercise distance, prompt the user's heart rate fluctuation, and so on.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the earphone interface 170D is used for connecting wired earphones.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of the electronic device 100 around three axes may be determined by the gyro sensor 180B.
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the motion posture of the electronic device 100 determined by the electronic device 100 through the gyro sensor 180B may refer to the user's motion posture.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the electronic device 100 can determine the position of the user during the movement through the air pressure sensor 180C.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc. In some embodiments, the acceleration sensor 180E can be used to obtain the user's motion steps.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, and realize the heart rate detection function.
  • bone conduction sensor 180M may be used to acquire heart rate data of the user.
  • the motor 191 can generate a vibrating reminder.
  • the motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • the motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • FIG. 2 is a software structure diagram of the electronic device 100 according to the embodiment of the present application.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the software structure of the electronic device 100 is exemplarily described by taking an Android system with a layered architecture as an example.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
  • the application layer can consist of a series of application packages.
  • the application package may include camera, gallery, calendar, call, music, WLAN, short message, map, bluetooth, video and other applications.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, and so on.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • the notification manager may be used to prompt the user that the exercise goal has been completed.
  • the Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application program layer and the application program framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • a set of user interfaces implemented on the electronic device 100 will be exemplarily introduced below with reference to FIGS. 3A-3I , FIGS. 5A-5E , and 6A-6D .
  • the electronic device 100 runs Huawei's "Sports and Health” application program as an example for illustration.
  • the "Sports Health” application is a sports application, which is an exercise assistance software suitable for electronic devices such as smart phones and tablet computers. This application can be used to obtain exercise data during the user's exercise process.
  • 3A-3I exemplarily show some user interfaces involved when the electronic device 100 runs the "sports and health" application program and displays sports pictures after the exercise ends.
  • FIG. 3A exemplarily shows an exemplary user interface 21 for an application menu on the electronic device 100 .
  • the user interface 21 may include: a status bar 211 , a calendar indicator 212 , a weather indicator 213 , and a desktop application icon 214 . in:
  • 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.
  • Calendar indicator 212 may be used to indicate the current time.
  • Weather indicator 213 may be used to indicate the type of weather.
  • Desktop application icons 214 may include a gallery icon 214A, an exercise and fitness icon 214B. Among them, the sports and health icon 214B can be used to open the "sports and health" application program. Other application program icons 214 may also include more application program icons, which is not limited in this embodiment of the present application.
  • the user interface 21 may also include a page indicator 215 . Icons of other application programs may be distributed on multiple pages, and the page indicator 215 may be used to indicate the application program on which page the user is currently browsing. The user can slide the area of other application icons left and right to browse the application icons in other pages. When detecting that the user clicks on these application program icons, the electronic device 100 may display the user interface of the application program.
  • the user interface 21 exemplarily shown in FIG. 3A may be a main interface (Home screen).
  • the electronic device 100 can detect a user operation acting on the sports and health icon 214B (such as a click operation on the sports and health icon 214B), and in response to the operation, start the "sports and health" application program corresponding to the sports and health icon 214B , and display the user interface 31 exemplarily shown in FIG. 3B .
  • a user operation acting on the sports and health icon 214B such as a click operation on the sports and health icon 214B
  • the user interface 31 may include: a first exercise parameter bar 311 , a second exercise parameter bar 312 , and a menu bar 313 . in:
  • the first exercise parameter column 311 can be used to display today's exercise data, such as exercise distance, exercise calories, exercise steps and other data.
  • the second exercise parameter column 312 can be used to display data such as exercise records, heart rate, and weight recently recorded by the electronic device 100 .
  • the menu bar 313 includes a health icon 313A, an exercise icon 313B, a device icon 313C, and a my icon 313D.
  • the health icon 313A can be used to switch to the “health” user interface, which is the initial interface of the “sports and health” application program, namely the user interface 31 .
  • the exercise icon 313B can be used to switch to the "exercise" user interface, which can display three exercise modes (for example, outdoor running, walking, cycling), and the user can choose different exercise modes to exercise.
  • three exercise modes for example, outdoor running, walking, cycling
  • the device icon 313C can be used to switch to the "device" user interface, which can display other electronic devices connected to the electronic device 100, such as wristbands. Users can delete or connect these electronic devices.
  • the electronic device 100 may detect a user operation on the motion icon 313B by the user, and in response to the operation, the electronic device 100 displays the user interface 41 exemplarily shown in FIG. 3C .
  • the user interface 41 includes exercise options 411 .
  • Sports options 411 include outdoor running options 411A, walking options 411B, and cycling options 411C. The user can select one of the exercise options, and then select the corresponding exercise mode to start exercising.
  • the underline under the outdoor running option 411A indicates that the outdoor running option 411A is selected, and 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 may be used for the user to set exercise goal parameters, such as distance goals, time goals, and calorie goals.
  • the user can set the size of the target parameter.
  • the electronic device 100 can display a prompt message to remind the user that the current exercise parameter has reached the set target parameter.
  • the electronic device 100 may detect a user's touch operation on the sport goal setting option 412 , and in response to the operation, the electronic device 100 displays a sport goal setting window 414 in the user interface as shown in FIG. 3D .
  • Start motion control 413 can be used to start outdoor running mode.
  • the electronic device 100 may detect a user operation (for example, a click operation) on the start exercise control 413 by the user, and in response to the operation, the electronic device 100 starts the outdoor running mode.
  • the electronic device 100 may not set a motion target. After the electronic device 100 displays the user interface shown in FIG.
  • the user interface 51 shown in FIG. 3F starts to collect the user's exercise data.
  • the motion target setting window 414 is used to set the target parameters of the motion.
  • the motion target setting window 414 also includes a cancel control 414A and a confirmation control 414B.
  • the cancellation control 414A can be used for the user to cancel the target parameter setting of the motion, and the determination control 414B A target parameter that can be used by the user to determine settings.
  • the user can set the distance to the target as 1 kilometer.
  • the target parameter is the distance
  • the size of the target parameter is 1 kilometer.
  • the electronic device 100 determines the user's setting.
  • the exercise goal is to exercise 1 km.
  • the electronic device 100 may detect a user operation acting on the exercise start control 413 , and in response to the operation, the electronic device 100 starts an outdoor running mode and starts collecting user's exercise data.
  • the exercise data may refer to the user's heart rate
  • the electronic device 100 may acquire the user's heart rate through the bone conduction sensor 180M.
  • the electronic device 100 may display a user interface 51 as exemplarily shown in FIG. Exercise distance, pace, calories, etc.
  • the electronic device 100 may also instruct other connected devices, such as a wristband, to start the outdoor running mode and start collecting the user's heart rate.
  • the exercise data collected by the electronic device 100 may also refer to: heart rate, breathing rate, exercise posture, exercise speed, body temperature, blood pressure, blood sugar, location information, and the like.
  • the user interface 51 includes a map display area 511 , a data display area 512 , a motion pause control 513 and the like.
  • the map display area 511 can display a map in which the user's location can be updated in real time and the user's movement track can be displayed.
  • the data display area 512 can display and update the user's exercise data in real time, such as exercise time, pace, calories, etc.
  • Pause motion control 513 may be used to listen for user operations that trigger pausing motion.
  • the electronic device 100 may detect a user operation acting on the pause exercise control 513, and in response to the operation, the electronic device 100 may suspend recording the user's exercise data.
  • the electronic device 100 may display prompt information 514, which is used to prompt the user for the current distance of the user's motion. distance to reach the set target parameter size.
  • the electronic device 100 may detect a user operation on the pause motion control 513 by the user, and in response to the operation, the pause motion control 513 is updated to an end motion control 515 and a continue motion control 516 as shown in FIG. 3H .
  • the end motion control 515 can be used to monitor the user operation that triggers the end motion.
  • the electronic device 100 may detect a user operation acting on the end exercise control 515, and in response to the operation, the electronic device 100 ends the recording of the exercise health data.
  • the continue motion control 516 can be used to listen for user operations that trigger the continue motion.
  • the electronic device 100 may detect a user operation on the continue exercise control 516, and in response to the operation, the electronic device 100 continues to record the user's exercise health data.
  • the electronic device 100 can detect the user's touch operation on the end motion control 515, for example, a long press operation. In response to this operation, the electronic device 100 ends the motion recording, and displays the user interface61.
  • the user interface 61 includes: a sports parameter column 611 and a sports display area 612 .
  • the exercise parameter column 611 includes: picture option 611A, chart option 611B, and detail option 611C.
  • the picture option 611A may be used to listen for user actions that trigger viewing of motion pictures.
  • the electronic device 100 may detect a user operation on the picture option 611A, and in response to the operation, the motion display area 612 displays a motion picture generated by the electronic device 100 according to the motion data. Among them, after the electronic device 100 receives the user's touch operation on the end motion control 515, the electronic device 100 can select the picture option 611A by default, and display the motion picture generated by the electronic device 100 according to the motion data in the motion display area 612.
  • Graph option 61 IB can be used to listen for user actions that trigger viewing of heart rate.
  • the electronic device 100 may detect a user operation on the graph option 611C, and in response to the operation, the exercise display area 612 displays data related to the user's heart rate.
  • the details option 611C can be used to monitor user operations that trigger viewing of exercise details.
  • the electronic device 100 may detect a user operation on the detail option 611D, and in response to the operation, the exercise display area 611 displays data related to the user's exercise details.
  • the motion display area 612 may include: a motion picture 612A, a save option 612B, an edit option 612C, and a share option 612D.
  • the motion picture 612A is used to display the motion picture related to the heart rate generated by the electronic device 100 according to the user's motion data collected during the user's motion, that is, the heart rate.
  • the save option 612B is used to save the motion picture displayed in the motion picture 612A locally, for example, to a gallery.
  • the edit option 612C can be used to edit the motion picture displayed in the motion picture 612A, for example, graffiti, change the picture style, add a filter, add background music, etc.
  • Share option 612D may be used to share the motion graphics shown in motion graphics 612A to other applications.
  • the electronic device 100 can use a brush to draw the motion picture, wherein the user's heart rate is associated with the color of the brush, and when the user's heart rate changes, the color of the brush used to draw the motion picture Changes also occur, so that there are multiple colors in the motion picture drawn by the electronic device 100 .
  • FIG. 3A-FIG. 3I exemplarily show the process in which the electronic device 100 adjusts the brush color according to the user's heart rate, and uses the brush after adjusting the brush color to draw a moving picture.
  • the moving picture shown in FIG. 3I 612A shows the exercise picture related to the user's heart rate during exercise.
  • the user's heart rate can also be associated with other brush parameters.
  • the electronic device 100 may adjust brush parameters according to other motion data of the user, for example, the electronic device 100 adjusts the brush color according to the user's motion speed.
  • the electronic device 100 may simultaneously adjust multiple brush parameters according to multiple motion data, for example, adjust the brush color according to the user's heart rate, adjust the brush shape according to the user's motion posture, adjust the brush size according to the user's motion speed, etc., specifically For a description of the electronic device 100 adjusting multiple brush parameters according to multiple motion data, please refer to the subsequent content, and details will not be repeated here.
  • the following describes the process of the electronic device 100 adjusting the brush color according to the heart rate and generating the motion picture shown in FIG. 3I with reference to FIGS. 4A-4D.
  • FIG. 4A exemplarily shows a heart rate graph composed of multiple heart rates collected by the electronic device 100 .
  • the electronic device 100 adjusts the brush color according to the heart rate, specifically, when the heart rate value is 85-95 (times/minute), the brush color is color 1, and when the heart rate value is 65-85 (times/minute), the brush color is color 2 .
  • the color of the brush in the stages 0-t1 and t2-t3 is color 1
  • the color of the brush in the stage t1-t2 is color 2.
  • FIG. 4B exemplarily shows the content drawn in the first stage when the electronic device 100 starts to draw the motion picture.
  • the content drawn in the first stage corresponds to the user's exercise situation in the 0-t1 stage. Since the user's heart rate is at 85-95 (times/minute) in the 0-t1 stage, the electronic device 100 draws motion pictures in the first stage , the brush color is color 1.
  • FIG. 4C exemplarily shows the content drawn in the second stage when the electronic device 100 continues to draw the motion picture.
  • the content drawn in the second stage is to continue to draw on the content drawn in the first stage of the electronic device 100.
  • the content drawn in the second stage corresponds to the user's exercise situation in the t1-t2 stage. Due to the t1-t2 stage, the user's heart rate It is between 65-85 (times/minute). Therefore, when the electronic device 100 draws the motion picture in the second stage, the brush color is color 2.
  • FIG. 4D exemplarily shows content drawn in the third stage when the electronic device 100 continues to draw the motion picture.
  • the content drawn in the third stage is actually drawn on the content drawn in the second stage of the electronic device 100.
  • the content drawn in the third stage corresponds to the user's exercise situation in the t2-t3 stage. Due to the t2-t3 stage, the user's heart rate is at 85-95 (times/minute), therefore, when the electronic device 100 draws the motion picture in the third stage, the brush color is color 1.
  • the motion picture generated by the electronic device 100 according to the heart rate is the image shown in FIG. 4D .
  • 5A-5E exemplarily show the electronic device 100 preset the parameters of the motion picture before starting the exercise, and some user interfaces involved in adjusting the motion picture after the end of the exercise.
  • the electronic device 100 may preset parameters of the motion picture, wherein the parameters of the motion picture may refer to: drawing style, drawing template and so on. In this way, the user can determine the content and style of drawing in advance to ensure that after the user finishes exercising, a motion picture that the user wants to obtain can be generated.
  • the user interface 41 also includes a sports theme setting option 415, which can be used to set the drawing style and drawing template of the sports picture.
  • the electronic device 100 displays the sports theme setting window 416 in the user interface 41 as shown in FIG. 5B .
  • the sports theme setting window 416 may include: a drawing style selection area 416A, a drawing template selection area 416B, a cancel control 416C, and a confirmation control 416D.
  • the drawing style selection area 416A can be used to determine the drawing style of the moving picture, wherein, the drawing style can be used to adjust the effect of the final presentation of the moving picture, for example, the drawing style can include: pencil drawing, ink painting, oil painting, watercolor painting, etc.
  • drawing template selection The area 416B can be used to determine the drawing template of the moving picture, wherein the drawing template can be used to determine the content of the moving picture, for example, the drawing template can include: sports, nature, characters, animals, scenery and so on.
  • the electronic device 100 detects a user operation acting 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”.
  • the drawing template selection area 416B also includes a custom drawing template 4162B.
  • the custom drawing template 4162B can be used to customize the drawing template. For example, the user can select a picture from a gallery application program to make a drawing template, or the user can draw the content by himself to create a drawing template.
  • the parameters of the moving picture may not be limited to the drawing style and drawing template shown in FIG. 5B above, and the parameters of the moving picture may also include a drawing area, which can be used to set the content drawn by the electronic device 100 on the moving image. position and size.
  • the embodiment of the present application does not limit the parameters of the motion picture.
  • FIG. 5C exemplarily shows the motion picture displayed by the electronic device 100 when the electronic device 100 ends the motion after setting the parameters of the motion picture as shown in FIG. 5B and performing the motion.
  • 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 movement
  • the drawing template of the motion picture finally generated by the electronic device 100 is the electronic device 100.
  • the exercise drawing is presented as a bamboo ink painting.
  • the electronic device 100 can further edit the generated motion picture, change the parameters and content of the motion picture, for example, change the drawing style of the motion picture, adjust the content contained in the motion picture, and so on. In this way, the user can change the motion picture after finishing the motion, which enhances the user's degree of freedom in editing the motion picture.
  • FIG. 5C exemplarily shows the user interface 61 displaying motion pictures after the electronic device 100 ends the motion.
  • the electronic device 100 detects a user operation acting on the edit control 612C, and in response to the operation, the electronic device 100 displays the user interface 71 shown in FIG. 5D , which is an editing interface for moving pictures.
  • the user interface 71 may include: a picture display area 711 , adjustment options 712 , and a parameter selection area 713 .
  • the picture display area 711 is used to display the motion picture generated by the electronic device 100, or the motion picture after the electronic device 100 changes parameters or content
  • the adjustment option 712 is used to display the adjustable parameter options of the electronic device 100, wherein the parameter options It may include a change style option 712A and a graffiti option 712B.
  • the change style option 712A can be used to change the drawing style of the motion picture
  • the graffiti option 712B can be used to add or delete elements in the motion picture, and the elements can refer to text, stickers, etc.
  • the parameter selection area 713 can be used to display the parameter option selected in the adjustment option 712, including multiple specific parameter options. Specifically, when the change style option 712A is selected, the font of the change style option 712A can be in a bold state, and the parameter selection area 713 displays a first drawing style 713A, a second drawing style 713B, etc., wherein the first The drawing style 713A may correspond to the drawing style of "pencil drawing", and the second drawing style 713B may correspond to the drawing style of "ink painting".
  • the drawing style of the moving picture displayed in the picture display area 711 may be selected by default.
  • the electronic device 100 Since the electronic device 100 selects "ink painting" as the drawing style of the motion picture drawn this time before starting the exercise, in the motion picture generated by the electronic device 100, when the electronic device 100 first displays the multiple options provided by the change style option 712A In the drawing style, the second drawing style 713B corresponding to "ink painting" is selected, that is, the background color of the second drawing style 713B is dark.
  • the electronic device 100 detects a user operation acting on the first drawing style 713B, in response to the operation, the electronic device 100 changes the drawing style of the moving picture displayed in the picture display area 711 to the drawing style corresponding to the first drawing style 713B. , and display the user interface 71 as shown in FIG. 5E.
  • the background color of the first drawing style 713B is changed to a dark color
  • the drawing style of the moving picture displayed in the picture display area 711 is changed to "pencil drawing" corresponding to the first drawing style 713B.
  • FIGS. 6A-6D exemplarily show some user interfaces involved when the electronic device 100 displays the motion picture generated by the electronic device 100 in a video mode after the motion is finished.
  • the electronic device 100 can not only display the moving picture in the form of a picture after the exercise is over, but also display the moving picture in the form of a video. At this time, the electronic device 100 can show the generation process of the moving picture through the video, and the user can use By watching this video, you can learn about the generation process of motion pictures and the fluctuation of motion data during the user's motion to enhance the fun of motion.
  • FIG. 6A exemplarily shows a user interface 61 displaying motion pictures after the electronic device 100 ends the motion.
  • the user interface 61 in the area where the moving picture 612A is located, in addition to displaying the moving picture generated by the electronic device 100 , it may also include prompt information 613 , play control 614 , and video duration 615 .
  • the prompt information 613 is used to prompt the user that the image displayed in the area where the motion picture 612A is located is an image associated with the user's motion.
  • the play control 614 can be used to trigger the playing of a video corresponding to the moving picture generated by the electronic device 100 , and the video can be used to show the process of the electronic device 100 generating the moving picture.
  • Playing duration 615 may be used to display the corresponding duration of the video, for example, 0:06 means that the duration of the video is 6 seconds.
  • 0:06 means that the duration of the video is 6 seconds.
  • the electronic device 100 starts to play the video, the video frame 1 is displayed in the area where the motion picture 612A is located, and the video duration 615 is updated and displayed as 0:02, indicating that the current video has been played for 2 seconds.
  • the video frame 1 includes part content 1 of the moving picture generated by the electronic device 100 , and the color of the part content 1 is color 1 .
  • the electronic device 100 continues to play the video, the video frame 2 is displayed in the area where the motion picture 612A is located, and the video duration 615 is updated and displayed as 0:04, indicating that the current video has been played for 4 seconds.
  • the video picture 2 includes the above-mentioned partial content 1 and the partial content 2 of the motion picture, and the color of the partial content 2 is color 2 .
  • the electronic device 100 continues to play the video, and the video frame 3 is displayed in the area where the motion picture 612A is located, and the video duration 615 is updated and displayed as 0:06, indicating that the current video has been played for 6 seconds.
  • the video frame 3 A full motion picture is shown in .
  • the video picture 3 includes the above-mentioned partial content 1 , partial content 2 and partial content 3 of moving pictures, and the color of the partial content 3 is color 1 .
  • the electronic device 100 may display the user interface 61 before playing the video, that is, the user interface shown in FIG. 6A . That is to say, after the exercise ends, the electronic device 100 can display the user interface as shown in FIG. 6A , and after the electronic device 100 detects the user's operation of playing the video corresponding to the moving picture, the electronic device 100 can sequentially display the user interface shown in FIG. 6B - 6D , after the electronic device 100 finishes playing, the electronic device 100 may display the user interface as shown in FIG. 6A . This way, the user can play the video repeatedly, or save, edit or share the video.
  • the electronic device 100 can display the drawing process of the motion picture in the form of video. Due to changes in the motion data (for example, heart rate) collected by the electronic device 100, the color of the brush is changed from color 1 to color 2, and then changed to color 1, so that in the motion picture generated by the electronic device 100, there are multiple different colors. Partial content, i.e. partial content 1, partial content 2, partial content 3. Assuming that color 1 corresponds to heart rate zone 1, and color 2 corresponds to heart rate zone 2, the user can know by observing the color change during video playback that the user's heart rate changes from a certain heart rate in heart rate zone 1 to heart rate during exercise. A certain heart rate in zone 2, then changes to a certain heart rate in heart rate zone 1. In this way, the motion of the user is displayed more vividly by way of video display.
  • the motion data for example, heart rate
  • the electronic device 100 may also display the drawing process of the moving picture in the form of a moving picture, and this embodiment of the present application does not limit the display process of the moving picture.
  • FIGS. 3A-3I , 5A-5E, and 6A-6D are only exemplary illustrations of user interfaces on the electronic device 100 , and should not be construed as limiting the embodiment of the present application.
  • the method includes:
  • the electronic device 100 acquires exercise data of a user.
  • the electronic device 100 may acquire the motion data of the user after receiving a user operation (for example, a touch operation acting on the motion start control 413 as described in FIG. 3E ) of the user starting motion.
  • a user operation for example, a touch operation acting on the motion start control 413 as described in FIG. 3E .
  • the user operation that the user starts exercising may also refer to the second operation.
  • Exercise data refers to the data associated with the user's operation collected by the electronic device 100 or other devices during the user's exercise, which may include but not limited to: heart rate, breathing rate, exercise posture, exercise speed, body temperature, blood pressure , blood sugar, location information, etc.
  • the location information refers to the geographic location where the user is moving.
  • the motion posture can include: arm posture, leg posture, torso posture, etc.
  • the motion posture can be represented by the posture index collected by the sensor.
  • the motion indicators include impact force on the ground, foot extension, ground-to-air ratio, etc.
  • the electronic device 100 can obtain the user's motion posture through the pressure sensor carried in the smart shoe.
  • the electronic device 100 can collect the user's motion data through sensors, such as gyroscope sensors, acceleration sensors, bone conduction sensors, etc. or cameras, or the electronic device 100 can establish a communication connection with other devices, based on the communication Connect to obtain exercise data stored or collected by other devices.
  • sensors such as gyroscope sensors, acceleration sensors, bone conduction sensors, etc. or cameras
  • the electronic device 100 can establish a communication connection with other devices, based on the communication Connect to obtain exercise data stored or collected by other devices.
  • the communication connection may refer to a wired connection or a wireless connection.
  • the wireless connection can be a high-fidelity wireless communication (wireless fidelity, Wi-Fi) connection, Bluetooth connection, infrared connection, NFC connection, ZigBee connection and other short-distance connections, and can also be a long-distance connection.
  • Long-distance connections include but are not limited to 2G-based , 3G, 4G, 5G and the long-distance connection of the mobile network of the follow-up standard protocol.
  • the electronic device 100 and other devices can log in to the same user account (such as a Huawei account), and then perform a remote connection through the server.
  • the other device may refer to a cloud server.
  • the cloud server may store the user's exercise data
  • the electronic device 100 may obtain the exercise data stored in the cloud server by logging in the user account (such as a Huawei account).
  • other devices may refer to devices such as wristbands, smart watches, earphones, mobile phones, and smart shoes that can collect user's motion data.
  • other devices may use sensors such as gyro sensors, acceleration sensors, bone conduction
  • the electronic device 100 may establish a communication connection with other devices, such as a Bluetooth connection, to obtain the exercise data collected by other devices.
  • the exercise data acquired by the electronic device 100 may include the following situations:
  • the electronic device 100 acquires part of the motion data during the user's motion.
  • the electronic device 100 does not need to collect the motion data during the user's exercise at all times, or the user does not need to obtain all the motion data during the user's exercise, so as to reduce the computational load of the electronic device 100 and reduce the storage space occupied by the motion data on the electronic device 100 .
  • the electronic device 100 may acquire the user's exercise data at intervals. For example, after the electronic device 100 starts exercising, the electronic device 100 may collect or acquire the user's heart rate every 10 minutes. Alternatively, the electronic device 100 may only collect exercise data within a period of time during the user's exercise. For example, the electronic device 100 may start to collect the user's heart rate 10 minutes after receiving the user's operation to start exercise. The electronic device 100 may discard exercise data within a period of time when the user starts exercise.
  • the electronic device 100 acquires all motion data during the user's motion.
  • the electronic device 100 can acquire all the motion data during the user's exercise process, and accurately record the changes of the user's motion data during the user's exercise process, so that the motion picture finally drawn by the electronic device 100 can reflect in detail the user's motion changes during the entire exercise process .
  • the exercise data of the user obtained by the electronic device at different times may also refer to the first exercise data obtained at the first time and the second exercise data obtained at the second time.
  • the exercise data is heart rate
  • the first exercise data and the second exercise data may refer to the user's heart rate respectively obtained by the electronic device when the user starts exercising and ends exercising.
  • the electronic device 100 adjusts brush parameters according to the motion data.
  • Brush parameters include: brush color, brush size, brush shape, brush flow, brush transparency, brush hardness, brush direction, brush drawing speed, etc.
  • the flow rate of the brush refers to the amount of ink output by the brush. When the flow rate of the brush is larger, the drawn line is thicker and the color is darker. The smaller the flow rate of the brush is, the drawn line is thinner and the color is lighter.
  • Brush hardness refers to the hardness of the brush. The greater the hardness of the brush, the smoother the edge of the drawn line, and the smaller the hardness of the brush, the rougher the edge of the drawn line.
  • the brush drawing speed refers to the speed when the brush draws lines.
  • the adjustment of the brush parameters can change the display effect of the lines when the electronic device 100 uses the brush to draw a moving picture. For example, when the color of the brush changes, the color of the lines drawn by the electronic device 100 through the brush will also change. When the size of the brush changes , the thickness of the line drawn by the electronic device 100 through the brush will also change.
  • the electronic device 100 uses a paintbrush to draw a line or a certain continuous pattern of a moving picture
  • the line or the continuous pattern drawn by the electronic device 100 contains multiple The content drawn by brush parameters, for example, when the electronic device 100 draws a straight line of a motion picture, when the color of the brush changes from red to green, the straight line will contain red and green, and the part of the straight line drawn in the first half is red, and Part of the line drawn in half is green.
  • the brush parameters of the straight line can be determined by the motion data that starts to draw the straight line. For example, even if the motion data changes during the drawing of the straight line, since the straight line is not drawn, the drawing of the entire straight line is still completed according to the previously determined brush parameters .
  • the electronic device 100 adjusts brush parameters according to the range of motion data
  • the electronic device 100 may acquire the user's exercise data within a period of time.
  • the electronic device 100 can set multiple ranges of motion data.
  • the brush parameters use the first parameter; when the motion data is in the second range, the brush parameters use the second parameter.
  • the electronic device 100 can set the brush color to be red when the heart rate value is between 65-85, and green when the heart rate value is between 85-95.
  • the motion picture drawn by the electronic device 100 can reflect the changing trend and situation of the user's motion. The user can understand the fluctuation of motion data during the motion process through the motion picture drawn, so as to know whether the user's motion is regular.
  • the device 100 adjusts the size of the brush according to the breathing rate of the user. If the size of the brush changes regularly (changes in size alternately) within a period of time, it indicates the user's breathing pattern. If the size of the brush does not change regularly, it indicates the user's breathing. irregular.
  • the electronic device 100 determines the parameters of the brush according to the specific value of the motion data
  • the electronic device 100 may acquire the motion data of the user at a certain moment.
  • the electronic device 100 may set that when the motion data is the first value, the brush parameter uses the first parameter, and when the motion data is the second value, the brush parameter uses the second parameter.
  • the electronic device 100 can set the brush color to be red when the heart rate value reaches 100, and the brush color to be green when the heart rate value reaches 60.
  • the exercise picture drawn by the electronic device 100 can reflect the exercise situation achieved by the user. The user can know whether the exercise data reaches the set value during the exercise process through the drawn exercise picture, so as to know whether the user's exercise is standardized.
  • the electronic device 100 adjusts the color of the brush according to the range of the user's feet, and the electronic device 100 sets a certain range of the range to correspond to the red color of the brush, and the certain range is an abnormal range. If the user's running posture is incorrect, then if the color of the brush turns red, it means that the user's running posture is incorrect.
  • the electronic device 100 may adjust one or more brush parameters according to one or more motion data, specifically including the following situations:
  • the electronic device 100 adjusts a brush parameter according to a motion data
  • the electronic device 100 may adjust the paintbrush color according to the heart rate. In this way, the electronic device 100 can only acquire the user's heart rate during exercise, and adjust the color of the brush according to the heart rate.
  • the motion picture finally generated by the electronic device 100 can be composed of lines or blocks of various colors. In this way, the motion picture generated by the electronic device 100 can intuitively reflect the change of a piece of motion data of the user.
  • the electronic device 100 adjusts multiple brush parameters according to one motion data
  • the electronic device 100 may adjust the color and size of the brush according to the heart rate.
  • the heart rate is in the first interval, the color of the brush is red and the size of the brush is large.
  • the heart rate is in the second interval, the color of the brush is green and the size of the brush is large.
  • the heart rate is in the third interval, the color of the brush is green and the size of the brush is large.
  • the size is small, when the heart rate is in the third interval, the color of the brush is red, and the size of the brush is small. In this way, the electronic device 100 can obtain a motion picture with richer picture content based on less motion data.
  • the electronic device 100 adjusts a brush parameter according to multiple motion data
  • the electronic device 100 can adjust the brush color according to heart rate and breathing rate. When the heart rate is the first value and the respiratory rate is the second value, the brush color is red; when the heart rate is the third value and the respiratory rate is the fourth value, the brush color is green.
  • the electronic device 100 can combine multiple motion data to adjust a paintbrush parameter, wherein the electronic device 100 can select relevant motion data to combine, for example, the electronic device 100 can adjust the brush parameters in combination with the heart rate and motion speed, and the speed
  • the speed is large and the heart rate is high, it can be considered as anaerobic exercise; when the speed is small and the heart rate is low, it can be considered as aerobic exercise. In this way, the electronic device 100 can distinguish the user's aerobic and Anaerobic exercise conditions.
  • the electronic device 100 adjusts multiple brush parameters according to multiple motion data
  • one piece of motion data is associated with one brush parameter, in this case, it is equivalent to that the electronic device 100 needs to acquire multiple pieces of motion data, and one piece of motion data corresponds to one brush parameter.
  • the electronic device 100 may adjust the color of the brush according to the heart rate, adjust the shape of the brush according to the motion posture, and adjust the size of the brush according to the speed of motion. In this way, different brush parameters can be adjusted for different motion data, and the electronic device 100 can generate a motion picture with rich content, through which the user can learn about the user's detailed motion situation.
  • the electronic device 100 may store a relationship table between motion data and brush parameters.
  • the electronic device 100 can determine the correlation between motion data and brush parameters through the relationship table, and determine the brush according to the motion data by checking the relationship table.
  • the electronic device may determine the first brush parameter according to the first motion data, and determine the second brush parameter according to the second motion data, wherein the first brush parameter and the second brush parameter may refer to the same brush parameter
  • the first brush parameter and the second brush parameter are both brush colors
  • the first brush parameter may indicate that the brush color is red
  • the second brush parameter may indicate that the brush color is green.
  • the electronic device 100 generates a motion picture according to the brush after brush parameter adjustment.
  • Motion drawings consist of lines drawn with a brush. These lines are drawn by the brush determined by the electronic device 100 according to the motion data.
  • the manners for the electronic device 100 to generate motion pictures may include the following:
  • the electronic device 100 draws a motion picture according to a preset brush direction
  • the direction of the brush describes the direction of the drawing of the brush and the positions of the starting point and the end point of the drawing of the brush. is horizontal to the left, at this time, the electronic device 100 first draws a straight line horizontally, and then the brush moves vertically downward, at this time, the electronic device 100 draws a straight line vertically, and then the brush moves horizontally to the right, and the electronic device 100 moves horizontally Draw a straight line. Finally, the direction of the brush is vertically upward. At this time, the electronic device 100 draws a straight line vertically, and the position where the brush ends returns to the position where the brush starts to draw. In this way, the electronic device 100 can draw a rectangle according to the direction of the brush.
  • the electronic device 100 may determine the content of the moving picture before drawing the moving picture.
  • the electronic device 100 may include multiple drawing templates, which are used to determine the content of the motion picture, and the drawing templates may include: sports, nature, characters, animals, landscapes, and so on.
  • the electronic device 100 draws a moving picture according to the preset brush direction.
  • the thickness of the line drawn by the brush or the size of the color block, the color, shape, transparency, etc. of the line or color block can follow the user's direction. Movement data changes.
  • the electronic device 100 may include the following ways of determining the drawing template:
  • each motion picture generated by the electronic device 100 is uncertain, and the user can view the randomly generated motion picture after each exercise, and the content of each generated motion picture may be the same or different.
  • the electronic device 100 determines the drawing template according to the user's selection
  • the electronic device 100 may provide multiple drawing templates for the user to choose from, and the user may choose his favorite drawing template according to his preference. In this way, the electronic device 100 can draw the content desired by the user, and at the same time, the display effect of the content is related to the motion data of the user.
  • the electronic device 100 can provide a sports theme setting option 415, which can be used to set a drawing template for a sports picture, such as the sports theme shown in Figure 5B
  • Theme setting window 416, the drawing template selection area 416B in the motion theme setting window 416 can be used for the user to determine the content of the motion picture.
  • the electronic device 100 detects that the user selects the first drawing template 4161B, after the exercise ends, the electronic device 100 displays a moving picture as shown in FIG. 5C , and the content of the moving picture is a template corresponding to the first drawing template 4161B selected by the user.
  • the electronic device 100 receiving a user operation of selecting a drawing template by the user may also refer to a first operation.
  • the electronic device 100 determines the drawing template according to the user information
  • the user information may refer to the age of the user. For example, when the user age indicates that the active user is a teenager, the electronic device 100 may determine that the drawing template is an anime character; when the user age indicates that the active user is a middle-aged person, the electronic device 100
  • the drawing template can be determined to be landscape.
  • the user information may also refer to the number of days the user has been exercising continuously. For example, the greater the number of days the user has been exercising, the more complex the content of the drawing template determined by the electronic device 100 is. It may be a sapling. When the user has been exercising continuously for 15 days, the drawing template determined by the electronic device 100 may be a small tree.
  • the user information may also refer to the date of the user's exercise.
  • the electronic device 100 may determine the drawing template as a drawing template related to the festival according to the festival. For example, when the user activity is currently Arbor Day, the electronic device 100 may select a drawing template related to trees.
  • the user information may also refer to the user's gender, height, weight, etc., which is not limited in this embodiment of the present application.
  • the electronic device 100 determines the direction of the brush according to the motion data, so as to draw a motion picture
  • the electronic device 100 draws sports pictures completely based on the motion data, and the electronic device 100 can associate the user's running posture with the direction of the brush. For example, when the user runs to the left, the brush moves to the left; when the user runs to the right, The brush moves to the right.
  • the electronic device 100 is not limited to the above two ways of generating the moving picture, and the content of the moving picture may be drawn randomly, which is not limited in this embodiment of the present application.
  • the electronic device 100 can generate motion pictures in the following two situations:
  • the electronic device 100 generates a moving picture during the user's movement
  • the electronic device can obtain the user's motion data in real time during the user's motion, and adjust the brush parameters according to the user's motion data, and meanwhile, the electronic device can draw motion pictures in real time according to the adjusted brush parameters. In this way, after the user ends the exercise, the electronic device can quickly output the exercise picture.
  • the electronic device generates a motion picture after the user's motion is over
  • the electronic device may store the exercise data during the user's exercise, for example, locally or in a cloud server, and then draw an exercise picture according to the stored exercise data after the user finishes exercising. In this way, the electronic device does not need to wait for the data to be collected before drawing a picture, which shortens the span time for the electronic device to draw a motion picture.
  • the user can also obtain a motion picture according to the motion data collected during the previous exercise.
  • the content of the moving picture is not limited, and the content of the moving picture can be expressed as the above-mentioned graphic content such as characters, animals, and scenery, and the content of the moving picture can also be expressed as text content.
  • the electronic device 100 can Use the adjusted brush to draw text content. During the drawing process of the electronic device 100, the strokes of the text will follow the adjustment of the brush parameters to change the display effect.
  • the electronic device 100 can also be preset with multiple text templates, and the electronic device 100 can automatically To determine the text template, or to determine the text template according to the user's selection, the embodiment of the present application does not limit the expression form of the content of the motion picture.
  • the electronic device 100 displays the generated motion picture.
  • the electronic device 100 may display a user interface for displaying the motion picture generated by the electronic device 100 after receiving the user operation of the user ending the exercise.
  • the user operation of ending the exercise by the user may also refer to a third operation.
  • the electronic device 100 receives the user’s touch operation on the end motion control 515, ends the motion, and displays the user interface as shown in FIG. 3I.
  • the motion The display area 612 is used to display motion pictures generated by the electronic device 100 .
  • the electronic device 100 may also adjust the moving picture, such as adjusting the drawing style of the moving picture, adding or deleting elements in the moving picture, and so on.
  • the user interface 61 includes an edit control 612C, which can be used to adjust the motion picture, as shown in Figure 5D
  • the electronic The device 100 displays an editing interface of the moving picture, in which the editing interface includes an adjustment option 712, and the electronic device 100 may receive the user's operation on the adjustment option 712, adjust the drawing style of the moving picture, or perform graffiti on the moving picture, etc. Wait.
  • the motion picture generated by the electronic device 100 may be displayed to the user in the form of a picture, for example, the motion picture shown in the motion picture 612A shown in FIG. 3I . Users can quickly and intuitively understand their own sports through pictures.
  • the moving picture generated by the electronic device 100 may be displayed to the user in the form of video or animation, for example, as shown in FIG.
  • the electronic device 100 starts to play a video or animation, which can be used to show the process of the electronic device 100 generating the motion picture, and sequentially display the user interface as shown in FIGS. 6B-6D .
  • the electronic device 100 can set the exercise goal before exercising. In this way, when the user does not complete the exercise goal after exercising, the electronic device 100 can display the picture of the unfinished exercise. For example, the electronic device 100 can only generate the drawing In the template, part of the content corresponds to a sports picture, or the electronic device 100 may display prompt information in the sports picture to remind the user that the sports goal has not been completed. When the user continues to exercise for a period of time after reaching the sports goal, the electronic device 100 will In addition to displaying the complete exercise picture, you can also add additional prompt information such as stickers and text on the exercise picture to remind the user to exceed the exercise goal. For details about the user interface of the electronic device 100 for setting the exercise goal before exercise, refer to the user interface described in FIG. 3C-FIG. 3D.
  • the electronic device 100 may add some elements to the exercise picture in addition to displaying the exercise picture generated according to the exercise data, so that the information of the exercise result displayed by the electronic device 100 is richer, for example,
  • the element may be text prompt information, and the text prompt information may be used to remind the user of the current number of days of exercising, exercise ranking, etc., or the element may be icons related to weather, landmarks, dates, festivals, and the like.
  • the electronic device 100 when the electronic device 100 displays a moving picture in the form of a video or moving picture, after the movement is over, the electronic device 100 can also adjust the playing time or speed of the video or moving picture, or intercept the video or moving picture Part of the content, so that the user can choose the part of the video or part of the animation that the user wants to keep the most, or the electronic device 100 can provide filters for the user to choose, and the electronic device 100 can also provide background music.
  • the background music you want makes the displayed motion pictures more vivid and interesting, and enhances the editability of users.
  • FIG. 8 A schematic structural diagram of a moving picture generation device in an embodiment of the present application will be introduced below with reference to FIG. 8 .
  • the motion picture generation device includes: a collection module 202 , an adjustment module 203 , a drawing module 204 , and a display module 205 .
  • the determination module 201 can be used to determine the drawing template for drawing the sports picture by the electronic device 100 before the user starts exercising.
  • the determining module 201 may select a drawing template for generating a moving picture from a plurality of drawing templates according to user information, or the determining module 201 may select a drawing template for generating a moving picture from a plurality of drawing templates according to user selection.
  • the user information may include one or more of the following: the number of days the user exercises, the date of the user's exercise, age, gender, height or weight, and so on.
  • the collection module 202 can be used to obtain motion data collected by the electronic device 100 and/or other devices during the user's motion.
  • the motion data includes one or more of the following: heart rate, breathing rate, motion posture, motion speed, body temperature, blood pressure, blood sugar , location, etc.
  • the adjustment module 203 can be used to adjust brush parameters according to the 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.
  • the drawing module 204 can be used to draw a motion picture according to the adjusted brush.
  • the adjusted brush refers to the brush whose parameters have been adjusted.
  • the display effect can be Refers to the change effect on the color, size, shape, flow, transparency, hardness, direction, drawing speed, etc. associated with the brush parameters, so that the motion picture drawn by the electronic device 100 using the changed brush parameters includes multiple display Lines with different effects.
  • the display module 205 can be used to display the drawn sports picture on the user interface of the electronic device 100 after the user finishes exercising, so that the user can know the user's sports situation according to the displayed sports picture.
  • the motion picture can be displayed in the form of picture, animation, video, etc.
  • the display module 205 can be used to display the drawing process of the motion picture.
  • the display module 205 can also be used to provide multiple controls that can be selected by the user, through which the user can further adjust the motion picture, for example, change the drawing style, adjust the video playback speed, crop the video length, add stickers, add filters, etc. Wait.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.
  • the processes can be completed by computer programs to instruct related hardware.
  • the programs can be stored in computer-readable storage media.
  • When the programs are executed may include the processes of the foregoing method embodiments.
  • the aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application provides a movement picture generation method and an electronic device. In the method, an electronic device can collect or obtain movement data of a user during movement, and adjust a stylus parameter according to the movement data; the electronic device can draw a movement picture by means of a stylus of which the stylus parameter is adjusted, and after the movement of the user is over, the electronic device generates and displays the movement picture that is drawn according to the movement data. The movement picture can reflect a change in the movement data of the user during the movement, and increase the interestingness of movement; and the electronic device can show the user a more personalized movement result.

Description

运动图画生成方法及电子设备Motion picture generation method and electronic device
本申请要求于2021年07月07日提交中国专利局、申请号为202110769712.X、申请名称为“运动图画生成方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110769712.X and the application title "Moving Picture Generation Method and Electronic Device" filed with the China Patent Office on July 07, 2021, the entire contents of which are incorporated herein by reference Applying.
技术领域technical field
本申请涉及移动终端技术领域,尤其涉及运动图画生成方法及电子设备。The present application relates to the technical field of mobile terminals, in particular to a method for generating motion pictures and electronic equipment.
背景技术Background technique
随着互联网的不断发展,人们的生活方式也在不断变化。现如今,手机已经成为人们的生活必须品。在互联网的影响下,运动类应用搭上了互联网的顺风车,逐渐成为人们手机中的必备应用。运动类应用作为用户喜爱的运动辅助工具,它能够为用户提供运动指导和数据参考服务,帮助用户进行更加科学、专业的运动。但是,随着运动类应用的不断推广,如果满足用户的需求,为用户提供更具趣味性,个性化的运动服务,是目前亟待解决的问题。With the continuous development of the Internet, people's lifestyles are also constantly changing. Nowadays, mobile phones have become a necessity of people's life. Under the influence of the Internet, sports applications have caught the ride of the Internet and gradually become a must-have application in people's mobile phones. As a favorite sports aid tool for users, sports applications can provide users with sports guidance and data reference services to help users perform more scientific and professional sports. However, with the continuous promotion of sports applications, it is an urgent problem to be solved to provide users with more interesting and personalized sports services if the needs of users are met.
发明内容Contents of the invention
本申请提供了运动图画生成方法及电子设备,该运动图画生成方法能够绘制出一幅与用户运动数据有关的运动图画,将用户的运动情况通过运动图画的形式展示出来,增强运动的趣味性。The present application provides a motion picture generation method and electronic equipment. The motion picture generation method can draw a motion picture related to the user's motion data, display the user's motion situation in the form of a motion picture, and enhance the fun of sports.
第一方面,本申请实施例提供了一种运动图画生成方法,所述方法包括:所述电子设备获取第一绘图模板,所述第一绘图模板指示画笔走向;所述电子设备获取用户运动过程中的运动数据,所述运动数据包括所述运动过程中第一时间的第一运动数据,和,所述运动过程中第二时间的第二运动数据;所述电子设备根据所述第一运动数据确定第一画笔参数,并使用所述第一画笔参数,根据所述画笔走向,绘制第一内容;所述电子设备根据所述第二运动数据确定第二画笔参数,并使用所述第二画笔参数,根据所述画笔走向,绘制第二内容;其中,所述第一画笔参数与所述第二画笔参数不同;所述电子设备显示运动图画,所述运动图画包括所述第一内容以及所述第二内容。In the first aspect, an embodiment of the present application provides a method for generating a motion picture, the method comprising: the electronic device acquires a first drawing template, and the first drawing template indicates the direction of a brush; the electronic device acquires the user's motion process In the exercise data, the exercise data includes the first exercise data at the first time during the exercise, and the second exercise data at the second time during the exercise; the electronic device according to the first exercise data to determine the first brush parameters, and use the first brush parameters to draw the first content according to the direction of the brush; the electronic device determines the second brush parameters according to the second motion data, and uses the second Brush parameters, drawing second content according to the direction of the brush; wherein, the first brush parameters are different from the second brush parameters; the electronic device displays a moving picture, and the moving picture includes the first content and the second content.
实施第一方面提供的方法,可以获取用户运动过程中的运动数据,并根据用户的运动数据调整画笔参数,使用调整画笔参数后的画笔,按照预设的画笔走向绘制运动图画,并在用户运动结束后,将该运动图画展示给用户,这样,用户可以根据运动图画了解运动过程中自己的运动情况。By implementing the method provided in the first aspect, the motion data during the user’s motion can be obtained, and the brush parameters can be adjusted according to the user’s motion data. Using the brush after adjusting the brush parameters, the motion picture can be drawn according to the preset brush direction, and can be drawn during the user’s motion. After the exercise is finished, the motion picture is displayed to the user, so that the user can understand his own motion during the motion according to the motion picture.
结合第一方面,在一种可能的实现方式中,所述第一运动数据或所述第二运动数据,包括以下一项或多项:心率、呼吸频率、运动姿态、运动速度、体温、血压、血糖、位置。With reference to the first aspect, in a possible implementation manner, the first exercise data or the second exercise data include one or more of the following: heart rate, respiratory rate, exercise posture, exercise speed, body temperature, blood pressure , blood sugar, location.
结合第一方面,在一种可能的实现方式中,所述第一画笔参数或所述第二画笔参数,包括以下一项或多项:画笔颜色、画笔大小、画笔形状、画笔流量、画笔透明度、画笔硬度、画笔绘制速度或画笔方向。With reference to the first aspect, in a possible implementation manner, the first brush parameter or the second brush parameter includes one or more of the following: brush color, brush size, brush shape, brush flow rate, and brush transparency , Pen Hardness, Pen Drawing Speed, or Pen Direction.
结合第一方面,在一种可能的实现方式中,所述电子设备存储有多个绘图模板,所述绘图模板描述了对应的画笔走向;所述电子设备根据所述第一运动数据确定第一画笔参数,并使用所述第一画笔参数,根据所述画笔走向,绘制第一内容,根据第二运动数据确定第二画 笔参数,并使用所述第二画笔参数,根据所述画笔走向,绘制第二内容之前,所述方法还包括:所述电子设备从所述多个绘图模板中选择所述第一绘图模板;所述电子设备将所述第一绘图模板对应的画笔走向,确定为所述画笔走向。With reference to the first aspect, in a possible implementation manner, the electronic device stores a plurality of drawing templates, and the drawing templates describe a corresponding brush direction; the electronic device determines a first Brush parameters, and use the first brush parameters to draw the first content according to the brush direction, determine the second brush parameters according to the second motion data, and use the second brush parameters to draw according to the brush direction Before the second content, the method further includes: the electronic device selecting the first drawing template from the plurality of drawing templates; the electronic device determining the direction of the brush corresponding to the first drawing template as the selected Describe the direction of the brush.
电子设备可以存储有多个绘图模板,这些绘图模板对应有不同的画笔走向,电子设备可以选择不同的绘图模板来绘制运动图画,这样,电子设备可以获得多种内容不同的运动图画,为用户展示丰富的运动图画,增强用户对运动的兴趣。The electronic device can store multiple drawing templates. These drawing templates correspond to different brush orientations. The electronic device can select different drawing templates to draw motion pictures. In this way, the electronic device can obtain a variety of motion pictures with different contents and display them to the user. Rich sports pictures can enhance users' interest in sports.
结合第一方面,在一种可能的实现方式中,所述电子设备从所述多个绘图模板中选择第一绘图模板之前,所述方法还包括:所述电子设备显示多个模板选项,所述多个模板选项中包括第一模板选项,所述第一模板选项对应于所述第一绘图模板;所述电子设备从所述多个绘图模板中选择第一绘图模板,具体包括:所述电子设备接收到作用于所述第一模板选项的第一操作;响应于所述第一操作,所述电子设备从所述多个绘图模板中选择第一绘图模板。With reference to the first aspect, in a possible implementation manner, before the electronic device selects a first drawing template from the plurality of drawing templates, the method further includes: the electronic device displays a plurality of template options, the The multiple template options include a first template option, and the first template option corresponds to the first drawing template; the electronic device selects the first drawing template from the multiple drawing templates, specifically including: the The electronic device receives a first operation acting on the first template option; in response to the first operation, the electronic device selects a first drawing template from the plurality of drawing templates.
也就是说,电子设备可以将多个绘图模板显示在用户界面中,用户可以根据自己的喜好选择绘图模板,这样,电子设备最终绘制的运动图画为用户想要获得的运动图画,提升了用户选择的自由度。That is to say, the electronic device can display a plurality of drawing templates in the user interface, and the user can select a drawing template according to his own preferences. In this way, the motion picture finally drawn by the electronic device is the motion picture that the user wants to obtain, which improves the user's choice. degrees of freedom.
结合第一方面,在一种可能的实现方式中,所述电子设备从所述多个绘图模板中选择第一绘图模板,具体包括:所述电子设备根据用户信息从所述多个绘图模板中选择第一绘图模板,其中,所述用户信息包括以下一项或多项:用户运动天数、用户运动日期、年龄、性别、身高或体重。With reference to the first aspect, in a possible implementation manner, the electronic device selects a first drawing template from the plurality of drawing templates, which specifically includes: the electronic device selects a first drawing template from the plurality of drawing templates according to user information The first drawing template is selected, wherein the user information includes one or more of the following: days of user's exercise, date of user's exercise, age, gender, height or weight.
也就是说,电子设备可以根据用户信息自动选择一个绘图模板,无需用户纠结绘图模板的挑选,提供更加智能的绘图模板推荐方式,提升用户的体验感。That is to say, the electronic device can automatically select a drawing template according to the user information, without the need for the user to be entangled in the selection of the drawing template, and provide a smarter drawing template recommendation method to improve the user experience.
结合第一方面,在一种可能的实现方式中,电子设备获取用户运动过程中的运动数据之前,所述方法还包括:所述电子设备接收到第二操作,所述第二操作用于触发所述电子设备获取所述运动数据。With reference to the first aspect, in a possible implementation manner, before the electronic device acquires the exercise data during the user's exercise, the method further includes: the electronic device receives a second operation, and the second operation is used to trigger The electronic device acquires the motion data.
电子设备可以在接收到用户开始运动的操作后,开始获取用户的运动数据。The electronic device may start to acquire the user's exercise data after receiving the user's operation of starting exercise.
结合第一方面,在一种可能的实现方式中,所述电子设备显示运动图画之前,所述方法还包括:所述电子设备接收到第三操作,所述第三操作用于触发显示所述运动图画。With reference to the first aspect, in a possible implementation manner, before the electronic device displays the moving picture, the method further includes: the electronic device receives a third operation, and the third operation is used to trigger display of the moving picture. motion drawing.
电子设备可以在接收到用户结束运动的操作后,展示根据用户的运动数据生成的运动图画。After receiving the user's operation to end the exercise, the electronic device may display the exercise picture generated according to the user's exercise data.
结合第一方面,在一种可能的实现方式中,所述电子设备显示运动图画,具体包括:所述电子设备显示所述运动图画的绘制过程。With reference to the first aspect, in a possible implementation manner, the displaying the moving picture by the electronic device specifically includes: displaying, by the electronic device, a drawing process of the moving picture.
也就是说,电子设备可以以视频或者动图的方式展示运动图画,使用户能够通过视频或者动图的方式详细了解到用户运动过程中,用户身体各方面变化的情况。That is to say, the electronic device can display motion pictures in the form of video or animation, so that the user can learn in detail the changes in various aspects of the user's body during the user's exercise process through the video or animation.
结合第一方面,在一种可能的实现方式中,所述第一时间为时间点或时间段,所述第二时间为时间点或时间段。With reference to the first aspect, in a possible implementation manner, the first time is a time point or a time period, and the second time is a time point or a time period.
也就是说,电子设备可以根据用户某一时间点的运动数据调整画笔参数,这样,用户可以通过绘制的运动图画,了解运动过程中,运动数据是否达到设定值,从而了解用户的运动是否规范,或者,电子设备可以根据用户一段时间的运动数据调整画笔参数,这样,用户可以通过绘制的运动图画,了解运动过程中,运动数据波动情况。That is to say, the electronic device can adjust the brush parameters according to the user's motion data at a certain point in time, so that the user can know whether the motion data reaches the set value during the motion process through the motion picture drawn, so as to know whether the user's motion is standardized Alternatively, the electronic device can adjust brush parameters according to the user's exercise data for a period of time, so that the user can understand the movement data fluctuations during the exercise process through the drawn exercise picture.
结合第一方面,在一种可能的实现方式中,所述运动数据由所述电子设备采集,和/或,与所述电子设备连接的其他设备采集获得。With reference to the first aspect, in a possible implementation manner, the motion data is collected by the electronic device, and/or collected by other devices connected to the electronic device.
也就是说,运动数据可以是指电子设备或者与电子设备建立通信连接的其他设备采集的 数据,这样,电子设备可以获得多种不同的数据,使运动图画能够展示用户丰富的运动信息。That is to say, exercise 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, so that sports pictures can display rich sports information of users.
第二方面,本申请实施例提供一种电子设备,所述电子设备包括:确定模块获取第一绘图模板,所述第一绘图模板指示画笔走向;采集模块获取用户运动过程中的运动数据,所述运动数据包括所述运动过程中第一时间的第一运动数据,和,所述运动过程中第二时间的第二运动数据;调整模块根据所述第一运动数据确定第一画笔参数,绘制模块使用所述第一画笔参数,根据所述画笔走向,绘制第一内容;所述调整模块根据所述第二运动数据确定第二画笔参数,所述绘制模块使用所述第二画笔参数,根据所述画笔走向,绘制第二内容;其中,所述第一画笔参数与所述第二画笔参数不同;显示模块显示运动图画,所述运动图画包括所述第一内容以及所述第二内容。In the second aspect, an embodiment of the present application provides an electronic device, the electronic device includes: a determination module acquires a first drawing template, and the first drawing template indicates the direction of a brush; The motion data includes the first motion data at the first time during the motion, and the second motion data at the second time during the motion; the adjustment module determines the first brush parameters according to the first motion data, and draws The module uses the first brush parameters to draw the first content according to the direction of the brush; the adjustment module determines the second brush parameters according to the second movement data, and the drawing module uses the second brush parameters according to the The direction of the brush draws the second content; wherein, the first brush parameter is different from the second brush parameter; the display module displays a moving picture, and the moving picture includes the first content and the second content.
结合第二方面,在一种可能的实现方式中,所述第一运动数据或所述第二运动数据,包括以下一项或多项:心率、呼吸频率、运动姿态、运动速度、体温、血压、血糖、位置。With reference to the second aspect, in a possible implementation manner, the first exercise data or the second exercise data include one or more of the following: heart rate, respiratory rate, exercise posture, exercise speed, body temperature, blood pressure , blood sugar, location.
结合第二方面,在一种可能的实现方式中,所述第一画笔参数或所述第二画笔参数,包括以下一项或多项:画笔颜色、画笔大小、画笔形状、画笔流量、画笔透明度、画笔硬度、画笔绘制速度或画笔方向。With reference to the second aspect, in a possible implementation manner, the first brush parameter or the second brush parameter includes one or more of the following: brush color, brush size, brush shape, brush flow rate, and brush transparency , Pen Hardness, Pen Drawing Speed, or Pen Direction.
结合第二方面,在一种可能的实现方式中,所述电子设备存储有多个绘图模板,所述绘图模板描述了对应的画笔走向;所述电子设备还包括:所述确定模块从所述多个绘图模板中选择所述第一绘图模板;所述确定模块将所述第一绘图模板对应的画笔走向,确定为所述画笔走向。With reference to the second aspect, in a possible implementation manner, the electronic device stores a plurality of drawing templates, and the drawing templates describe the corresponding brush direction; the electronic device further includes: the determining module obtains from the The first drawing template is selected from a plurality of drawing templates; the determination module determines the brush direction corresponding to the first drawing template as the brush direction.
结合第二方面,在一种可能的实现方式中,所述电子设备还包括:所述确定模块显示多个模板选项,所述多个模板选项中包括第一模板选项,所述第一模板选项对应于所述第一绘图模板;所述确定模块接收到作用于所述第一模板选项的第一操作;响应于所述第一操作,所述确定模块从所述多个绘图模板中选择第一绘图模板。With reference to the second aspect, in a possible implementation manner, the electronic device further includes: the determining module displays a plurality of template options, the plurality of template options include a first template option, and the first template option Corresponding to the first drawing template; the determining module receives a first operation acting on the first template option; in response to the first operation, the determining module selects the first drawing template from the plurality of drawing templates A drawing template.
结合第二方面,在一种可能的实现方式中,所述确定模块根据用户信息从所述多个绘图模板中选择第一绘图模板,其中,所述用户信息包括以下一项或多项:用户运动天数、用户运动日期、年龄、性别、身高或体重。With reference to the second aspect, in a possible implementation manner, the determining module selects a first drawing template from the plurality of drawing templates according to user information, where the user information includes one or more of the following: user Days of exercise, dates of user exercise, age, gender, height or weight.
结合第二方面,在一种可能的实现方式中,所述电子设备还包括:所述采集模块接收到第二操作,所述第二操作用于触发所述电子设备获取所述运动数据。With reference to the second aspect, in a possible implementation manner, the electronic device further includes: the collection module receives a second operation, and the second operation is used to trigger the electronic device to obtain the motion data.
结合第二方面,在一种可能的实现方式中,所述电子设备还包括:所述显示模块接收到第三操作,所述第三操作用于触发显示所述运动图画。With reference to the second aspect, in a possible implementation manner, the electronic device further includes: the display module receives a third operation, and the third operation is used to trigger display of the motion picture.
结合第二方面,在一种可能的实现方式中,所述显示模块显示所述运动图画的绘制过程。With reference to the second aspect, in a possible implementation manner, the display module displays a drawing process of the motion picture.
结合第二方面,在一种可能的实现方式中,所述第一时间为时间点或时间段,所述第二时间为时间点或时间段。With reference to the second aspect, in a possible implementation manner, the first time is a time point or a time period, and the second time is a time point or a time period.
结合第二方面,在一种可能的实现方式中,所述运动数据由所述电子设备采集,和/或,与所述电子设备连接的其他设备采集获得。With reference to the second aspect, in a possible implementation manner, the motion data is collected by the electronic device, and/or collected by other devices connected to the electronic device.
第三方面,本申请实施例提供一种电子设备,包括:显示屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;M≥2,M为正整数;其中所述一个或多个程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如第一方面或第一方面的任意一种实施方式所描述的方法。In the third aspect, the embodiment of the present application provides an electronic device, including: a display screen, a memory, one or more processors, multiple application programs, and one or more programs; M≥2, M is a positive integer; wherein The one or more programs are stored in the memory; it is characterized in that, when the one or more processors execute the one or more programs, the electronic device realizes the first aspect or the first aspect The method described in any one of the embodiments of an aspect.
第四方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中包括指令,当该指令在电子设备上运行时,使得该电子设备执行如第一方面或第一方面的任意一种实施方式所描述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium includes instructions, and when the instructions are run on an electronic device, the electronic device executes the first aspect or the first aspect. The method described in any one of the embodiments.
第五方面,本申请实施例提供一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行如第一方面或第一方面的任意一种实施方式所描述的方法。In the fifth aspect, the embodiments of the present application provide a computer program product, which, when running on a computer, causes the computer to execute the method described in the first aspect or any implementation manner of the first aspect.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments.
图1是本申请实施例提供的一种电子设备的硬件结构图;FIG. 1 is a hardware structural diagram of an electronic device provided by an embodiment of the present application;
图2是本申请实施例提供的一种电子设备的软件结构图;FIG. 2 is a software structure diagram of an electronic device provided in an embodiment of the present application;
图3A-图3I是本申请实施例提供的在电子设备上实现的一些用户界面;Fig. 3A-Fig. 3I are some user interfaces implemented on the electronic equipment provided by the embodiment of the present application;
图4A-图4D是本申请实施例提供的运动图画的生成过程;Fig. 4A-Fig. 4D are the generation process of the motion picture provided by the embodiment of the present application;
图5A-图5E、图6A-图6D是申请实施例提供的在电子设备上实现的另一些用户界面;Fig. 5A-Fig. 5E, Fig. 6A-Fig. 6D are other user interfaces implemented on electronic devices provided by the application embodiment;
图7是本申请实施例提供的运动图画生成方法的流程示意图;FIG. 7 is a schematic flowchart of a method for generating a moving picture provided in an embodiment of the present application;
图8是本申请实施例提供的运动图画生成装置的结构示意图。Fig. 8 is a schematic structural diagram of a moving picture generation device provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in the text is only a description of associated objects The association relationship indicates that there may be three kinds of relationships, for example, A and/or B, which may indicate: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiment of the present application , "plurality" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present application, unless otherwise specified, the "multiple" The meaning is two or more.
本申请以下实施例中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析,渲染,最终呈现为用户可以识别的内容。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。The term "user interface (UI)" in the following embodiments of this application is a medium interface for interaction and information exchange between an application program or an operating system and a user, and it realizes the difference between the internal form of information and the form acceptable to the user. conversion between. The user interface is the source code written in a specific computer language such as java and extensible markup language (XML). The source code of the interface is parsed and rendered on the electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is the graphical user interface (graphic user interface, GUI), which refers to the user interface related to computer operation displayed in a graphical way. It may be text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, and other visible interface elements displayed on the display screen of the electronic device.
随着用户对运动的重视,众多运动类应用脱颖而出,这些运动类应用可以提供多种运动模式,例如,跑步、步行、骑行、游泳、攀爬等等运动模式。用户可以根据不同的运动模式进行针对性地运动。同时,在用户结束运动之后,这些运动类应用可以展示运动结果,该运动结果可以包括用户在运动过程中的运动数据,例如,心率、运动配速、消耗的热量、运动时间、运动距离等等,或者,该运动结果可以包括电子设备根据用户的运动数据计算获得的分析数据,例如,心率曲线图、运动轨迹图、平均配速、平均心率等等。As users attach importance to sports, many sports applications stand out, and these sports applications can provide various sports modes, such as running, walking, cycling, swimming, climbing and other sports modes. Users can perform targeted exercises according to different exercise modes. At the same time, after the user finishes exercising, these sports applications can display the exercise results, which can include the user's exercise data during the exercise, such as heart rate, exercise pace, calories burned, exercise time, exercise distance, etc. Alternatively, the exercise result may include analysis data calculated by the electronic device based on the user's exercise data, for example, heart rate graph, exercise trajectory graph, average pace, average heart rate, and the like.
虽然这些运动结果对用户的运动具有一定的参考价值,用户可以根据这些运动数据或分析数据得知自己运动的情况,但是,这些数据较为枯燥,对于一些对数字不敏感的用户,这 些数据对用户的参考价值并不大,且不同用户运动后获得的运动结果,仅仅只是数据上的数值大小不同,并没有为不同的用户提供更加个性化的运动结果。那么,如何为用户提供更具趣味性、个性化的运动服务,是目前亟待解决的问题。Although these exercise results have a certain reference value for the user's exercise, the user can know the situation of his exercise based on these exercise data or analysis data, but these data are relatively boring. For some users who are not sensitive to numbers, these data are of great importance to users The reference value of is not great, and the sports results obtained by different users after exercising are only different in numerical values on the data, and do not provide more personalized sports results for different users. Then, how to provide users with more interesting and personalized sports services is an urgent problem to be solved.
为了解决上述问题,本申请实施例提供了一种运动图画生成方法,在该方法中,电子设备能够采集或获取用户在运动过程中的运动数据,其中,运动数据包括:心率、呼吸频率、运动姿态、运动速度、体温、血压、血糖、位置等等,并根据运动数据调整画笔参数,其中,画笔参数包括:画笔颜色、画笔大小、画笔形状、画笔流量、画笔透明度、画笔硬度、画笔方向、画笔绘制速度等等。电子设备可以通过画笔绘制运动图画,当画笔的画笔参数发生变化时,电子设备通过画笔绘制的线条的显示效果也会发生变化,其中,该显示效果可以是指与画笔参数相关联的颜色、大小、形状、流量、透明度、硬度、方向、绘制速度等等上的变化效果。最终,电子设备生成的运动图画由多段显示效果不同的线条组成,该运动图画反映了用户在运动过程中,运动数据的变化情况。In order to solve the above problems, an embodiment of the present application provides a motion picture generation method. In this method, the electronic device can collect or obtain the motion data of the user during the motion, wherein the motion data includes: heart rate, breathing rate, motion Posture, motion speed, body temperature, blood pressure, blood sugar, position, etc., and adjust the brush parameters according to the motion data. The brush parameters include: brush color, brush size, brush shape, brush flow, brush transparency, brush hardness, brush direction, Brush drawing speed and more. The electronic device can draw motion pictures through a brush. When the brush parameters of the brush change, the display effect of the lines drawn by the electronic device through the brush will also change, wherein the display effect can refer to the color, size and , shape, flow, transparency, hardness, direction, drawing speed, and more. Finally, the motion picture generated by the electronic device is composed of multiple lines with different display effects, and the motion picture reflects the changes of the user's motion data during the motion process.
在一个具体的例子中,可以将用户的心率与画笔的颜色相关联。当用户的心率为第一区间时,画笔颜色为红色,用户的心率为第二区间时,画笔颜色为绿色。由于用户在实际运动过程中,心率是实时波动的,当用户的心率位于第一区间时,电子设备绘图时的画笔颜色为红色,当用户的心率位于第二区间时,电子设备绘图时的画笔颜色为绿色,这样,电子设备可以生成一幅颜色交错出现的运动图画。用户也可以根据运动图画的颜色变化情况得知自己在运动过程中的心率波动情况。In one specific example, a user's heart rate may be correlated with the color of a brush. When the heart rate of the user is in the first interval, the color of the brush is red, and when the heart rate of the user is in the second interval, the color of the brush is green. Since the user's heart rate fluctuates in real time during the actual exercise, when the user's heart rate is in the first interval, the brush color of the electronic device when drawing is red; when the user's heart rate is in the second interval, the brush color of the electronic device when drawing The color is green so that the electronic device can generate a moving picture of alternating colors. Users can also know their heart rate fluctuations during exercise according to the color change of the exercise picture.
可以看出,该方法能够根据用户的运动数据,调整画笔参数,这样,在用户结束运动后,电子设备可以展示一幅根据用户的运动数据绘制的运动图画,用户也可以根据该运动图画,了解到自己的运动情况,且不同的用户展示的图画也可以不相同,用户能够获得一幅具有针对性的运动图画,增强了运动的趣味性,向用户展示更具个性化的运动结果。It can be seen that this method can adjust brush parameters according to the user's motion data, so that after the user finishes exercising, the electronic device can display a motion picture drawn according to the user's motion data, and the user can also understand the motion picture based on the motion picture. The pictures displayed by different users can also be different. Users can obtain a targeted sports picture, which enhances the fun of sports and shows users more personalized sports results.
在本申请实施例中,运动数据可以由电子设备采集获得,或者,由其他设备采集获得,该其他设备可以是指与电子设备建立通信连接的设备。其中,电子设备可以是指具有显示屏的设备,例如,手机、电脑、笔记本、大屏等等,该显示屏可用于显示电子设备生成的运动图画,其他设备可以是指能够采集用户运动数据的设备,例如,手机、耳机、手环、智能手表、大屏等等,电子设备或其他设备可以利用传感器或者摄像头等部件采集用户的运动数据,其中,传感器可以包括:陀螺仪传感器、加速度传感器、骨传导传感器等等,例如,电子设备可以利用骨传导传感器采集用户的心率,利用陀螺仪传感器采集用户的运动速度,利用摄像头采集用户的运动姿态等等。In the embodiment of the present application, the exercise data may be collected by an electronic device, or may be collected by other devices, and the other device may refer to a device that establishes a communication connection with the electronic device. Among them, the electronic device may refer to a device with a display screen, such as a mobile phone, a computer, a notebook, a large screen, etc., and the display screen may be used to display motion pictures generated by the electronic device, and other devices may refer to devices capable of collecting user motion data. Devices, such as mobile phones, earphones, bracelets, smart watches, large screens, etc., electronic devices or other devices can use sensors or cameras to collect user motion data, where the sensors can include: gyroscope sensors, acceleration sensors, Bone conduction sensors, etc., for example, electronic devices can use bone conduction sensors to collect user's heart rate, use gyroscope sensors to collect user's movement speed, use cameras to collect user's movement posture and so on.
电子设备可以在以下两种情况生成运动图画:Electronic devices can generate motion pictures in two situations:
1)电子设备在用户运动的过程中生成运动图画1) The electronic device generates motion pictures during the user's motion
这时,电子设备可以实时获取用户的运动数据,并根据用户的运动数据调整画笔参数,同时,电子设备再根据调整后的画笔参数实时绘制运动图画。这样,在用户结束运动后,电子设备可以快速输出运动图画。At this time, the electronic device can acquire the motion data of the user in real time, and adjust the parameters of the brush according to the motion data of the user. At the same time, the electronic device draws motion pictures in real time according to the adjusted parameters of the brush. In this way, after the user ends the exercise, the electronic device can quickly output the exercise picture.
2)电子设备在用户运动结束后生成运动图画2) The electronic device generates a motion picture after the user's motion is over
这时,电子设备可以在用户运动的过程中,将运动数据存储起来,再运动结束后,再根据运动数据生成运动图画,或者,电子设备可以直接获取之前存储的运动数据,该存储的运动数据可以存储在本地,或者存储在云端服务器,并根据之前存储的运动数据生成运动图画。这样,电子设备不必等待采集到数据后再绘制图画,缩短电子设备生成运动图画的跨度时间, 或者,用户可以根据之前运动时采集的运动数据来获得运动图画。At this time, the electronic device can store the motion data during the user's exercise, and then generate a motion picture based on the motion data after the exercise is over, or the electronic device can directly obtain the previously stored motion data, the stored motion data It can be stored locally or on a cloud server, and motion pictures are generated based on previously stored motion data. In this way, the electronic device does not need to wait for the data to be collected before drawing a picture, which shortens the span time for the electronic device to generate a motion picture, or the user can obtain a motion picture according to the motion data collected during the previous exercise.
另外,电子设备可以提前确定要绘制的绘图模板,该绘图模板描述了电子设备生成运动图画时,使用画笔所要绘制的内容,换句话说,该绘图模板描述了画笔走向。例如,当电子设备选择“猫”作为图画模板时,在电子设备根据运动数据调整画笔参数后,电子设备可以使用调整画笔参数后的画笔绘制“猫”,从而获得一张图画内容为猫的运动图画。其中,电子设备可以提供多个绘图模板,电子设备可以从这多个绘图模板中随机选择绘图模板,或者,根据用户信息选择绘图模板,或者,根据用户操作选择绘图模板等等。或者,电子设备可以不限定图画的内容,电子设备可以随机作画或者根据运动数据来确定画笔走向,这样,用户每一次运动结束后,电子设备都能获得内容不同的运动图画,增强运动的趣味性,使用户对查看运动结果更感兴趣,提升用户对运动的积极性。具体关于电子设备提前确定绘图模板或者不限定图画的内容的详细描述可以参考后续内容,这里先不赘述。In addition, the electronic device may determine in advance the drawing template to be drawn, and the drawing template describes the content to be drawn with the brush when the electronic device generates the motion picture, in other words, the drawing template describes the direction of the brush. For example, when the electronic device selects "cat" as the picture template, after the electronic device adjusts the brush parameters according to the motion data, the electronic device can use the brush after adjusting the brush parameters to draw "cat", so as to obtain a picture whose content is the movement of the cat. picture. The electronic device may provide multiple drawing templates, and the electronic device may randomly select a drawing template from the multiple drawing templates, or select a drawing template according to user information, or select a drawing template according to user operations, and so on. Alternatively, the electronic device may not limit the content of the picture, and the electronic device may draw randomly or determine the direction of the brush according to the motion data. In this way, after each exercise of the user, the electronic device can obtain a motion picture with different content, which enhances the interest of the motion. , so that users are more interested in viewing exercise results, and improve users' enthusiasm for exercise. For a detailed description about the content of the electronic device determining the drawing template or not limiting the picture in advance, please refer to the subsequent content, and details will not be repeated here.
下面介绍本申请实施例提供的电子设备。The electronic device provided by the embodiment of the present application is introduced below.
图1示例性示出了该电子设备的硬件结构。Fig. 1 schematically shows the hardware structure of the electronic device.
该电子设备可以是手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personaldigital assistant,PDA)或专门的照相机(例如单反相机、卡片式相机)等,本申请对该电子设备的具体类型不作任何限制。The electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, personal digital assistant (personal digital assistant, PDA) or special camera (such as single-lens reflex camera, card camera), etc., this application does not impose any restrictions on the specific type of the electronic device.
如图1所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。As shown in Figure 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, and a battery 142 , antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , a display screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
在一些实施例中,处理器110用于根据运动数据调整画笔参数,并根据调整画笔参数后的画笔绘制运动图画,具体关于电子设备100绘制运动图画的过程可以参见后续实施例。In some embodiments, the processor 110 is configured to adjust the parameters of the brush according to the motion data, and draw a motion picture according to the brush after adjusting the parameters of the brush. For details about the process of drawing a motion picture by the electronic device 100, please refer to the subsequent embodiments.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110 中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be realized by the antenna 1 , the antenna 2 , the mobile communication module 150 , the wireless communication module 160 , a modem processor, a baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。 Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent of the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wireless Fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite, etc. applied on the electronic device 100. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100可以通过移动通信模块150或无线通信模块160与其他设备,例如手机、耳机、手环、智能手表、大屏等,建立连接,获取其他设备采集或存储的运动数据,该运动数据包括:心率、呼吸频率、运动姿态、运动速度、体温、血压、血糖、位置等等,或者,电子设备100可以通过移动通信模块150或无线通信模块160加载绘图模板,具体关于绘图模板的描述可以参见后续内容。In some embodiments, the electronic device 100 can establish a connection with other devices, such as mobile phones, earphones, wristbands, smart watches, large screens, etc., through the mobile communication module 150 or wireless communication module 160, and obtain motion data collected or stored by other devices. data, the exercise data includes: heart rate, respiratory rate, exercise posture, exercise speed, body temperature, blood pressure, blood sugar, location, etc., or, the electronic device 100 can load a drawing template through the mobile communication module 150 or wireless communication module 160, specifically about The description of the drawing template can be found in the following content.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。在一些实施例中,电子设备100可利用GPS获取用户的运动轨迹。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR techniques, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS). In some embodiments, the electronic device 100 can use GPS to obtain the user's movement track.
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
在一些实施例中,显示屏194可用于显示电子设备100在运行运动类应用的过程中涉及的用户界面。具体可参见后续实施例提供的用户界面。In some embodiments, the display screen 194 may be used to display user interfaces involved in the running of the sports application by the electronic device 100 . For details, refer to the user interface provided in the subsequent embodiments.
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。The internal memory 121 may include one or more random access memories (random access memory, RAM) and one or more non-volatile memories (non-volatile memory, NVM).
随机存取存储器可以包括静态随机存储器(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,例如第五代DDR SDRAM一般称为DDR5SDRAM)等;Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (synchronous dynamic random access memory, SDRAM), double data rate synchronous Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, such as the fifth generation DDR SDRAM is generally called DDR5SDRAM), etc.;
非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。Non-volatile memory may include magnetic disk storage devices, flash memory (flash memory).
快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(single-level cell,SLC)、多阶存储单元(multi-level cell,MLC)、三阶储存单元(triple-level cell,TLC)、四阶储存单元(quad-level cell,QLC)等,按照存储规范划分可以包括通用闪存存储(英文:universal flash storage,UFS)、嵌入式多媒体存储卡(embedded multi media Card,eMMC)等。According to the operating principle, flash memory can include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. According to the potential order of storage cells, it can include single-level storage cells (single-level cell, SLC), multi-level storage cells (multi-level cell, MLC), triple-level cell (TLC), quad-level cell (QLC), etc., can include universal flash storage (English: universal flash storage, UFS) according to storage specifications , embedded multimedia memory card (embedded multi media Card, eMMC), etc.
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of an operating system or other running programs, and can also be used to store data of users and application programs.
非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。The non-volatile memory can also store executable programs and data of users and application programs, etc., and can be loaded into the random access memory in advance for the processor 110 to directly read and write.
在一些实施例中,内部存储器121可用于存储电子设备100运行运动类应用时采集或从其他设备获取到的运动数据以及绘图模板,运动数据与画笔参数的关系表等等。In some embodiments, the internal memory 121 can be used to store motion data and drawing templates, a relationship table between motion data and brush parameters, etc. collected when the electronic device 100 runs a motion application or obtained from other devices.
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。The external memory interface 120 can be used to connect an external non-volatile memory, so as to expand 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 implement a data storage function. For example, files such as music and video are stored in an external non-volatile memory.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170 , the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转 换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be set in the processor 110 , or some functional modules of the audio module 170 may be set in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。在一些实施例中,电子设备100可以利用扬声器170A播报用户的运动距离,提示用户的心率波动幅度大小等等。 Speaker 170A, also referred to as a "horn", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music through speaker 170A, or listen to hands-free calls. In some embodiments, the electronic device 100 can use the speaker 170A to announce the user's exercise distance, prompt the user's heart rate fluctuation, and so on.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.
耳机接口170D用于连接有线耳机。The earphone interface 170D is used for connecting wired earphones.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may 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 be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。在用户运动的过程中,当用户携带电子设备100一起运动,电子设备100通过陀螺仪传感器180B确定的电子设备100的运动姿态,可以是指用户的运动姿态。The gyro sensor 180B can be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes. During the user's movement, when the user moves with the electronic device 100 , the motion posture of the electronic device 100 determined by the electronic device 100 through the gyro sensor 180B may refer to the user's motion posture.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。电子设备100可以通过气压传感器180C确定用户运动过程中的位置。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation. The electronic device 100 can determine the position of the user during the movement through the air pressure sensor 180C.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。在一些实施例中,加速传感器180E可用于获取用户的运动步数。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc. In some embodiments, the acceleration sensor 180E can be used to obtain the user's motion steps.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。The touch sensor 180K is also called "touch device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解 析心率信息,实现心率检测功能。在一些实施例中,骨传导传感器180M可用于获取用户的心率数据。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, and realize the heart rate detection function. In some embodiments, bone conduction sensor 180M may be used to acquire heart rate data of the user.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects for touch operations acting on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
图2是本申请实施例的电子设备100的软件结构图。FIG. 2 is a software structure diagram of the electronic device 100 according to the embodiment of the present application.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the software structure of the electronic device 100 is exemplarily described by taking an Android system with a layered architecture as an example.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces. In some embodiments, the Android system is divided into four layers, which are respectively the application program layer, the application program framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer from top to bottom.
应用程序层可以包括一系列应用程序包。The application layer can consist of a series of application packages.
如图2所示,应用程序包可以包括相机,图库,日历,通话,音乐,WLAN,短信息,地图,蓝牙,视频等应用程序。As shown in Figure 2, the application package may include camera, gallery, calendar, call, music, WLAN, short message, map, bluetooth, video and other applications.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 2, the application framework layer can include window managers, content providers, view systems, phone managers, resource managers, notification managers, and so on.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. The view system can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100 . For example, the management of call status (including connected, hung up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。在本申请实施例中,当用户的运动量达到运动目标时,通知管理器可用于提示用户当前已完成运动目标。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the download completion, message reminder, etc. The notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc. In the embodiment of the present application, when the amount of exercise of the user reaches the exercise goal, the notification manager may be used to prompt the user that the exercise goal has been completed.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core library and virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application program layer and the application program framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple function modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
下面结合图3A-图3I、图5A-图5E、图6A-图6D示例性介绍电子设备100上实现的一组用户界面。A set of user interfaces implemented on the electronic device 100 will be exemplarily introduced below with reference to FIGS. 3A-3I , FIGS. 5A-5E , and 6A-6D .
在图3A-图3I所示的用户界面中,以电子设备100运行华为的“运动健康”应用程序为例进行说明。其中,“运动健康”应用程序为运动类应用,是适用于智能手机、平板电脑等电子设备的运动辅助软件,该应用可用于获取用户运动过程的运动数据。In the user interface shown in FIGS. 3A-3I , the electronic device 100 runs Huawei's "Sports and Health" application program as an example for illustration. Among them, the "Sports Health" application is a sports application, which is an exercise assistance software suitable for electronic devices such as smart phones and tablet computers. This application can be used to obtain exercise data during the user's exercise process.
图3A-图3I示例性示出了电子设备100运行“运动健康”应用程序,并在运动结束后显示运动图画时,涉及到的一些用户界面。3A-3I exemplarily show some user interfaces involved when the electronic device 100 runs the "sports and health" application program and displays sports pictures after the exercise ends.
图3A示例性示出了电子设备100上的用于应用程序菜单的示例性用户界面21。FIG. 3A exemplarily shows an exemplary user interface 21 for an application menu on the electronic device 100 .
如图3A所示,用户界面21可包括:状态栏211、日历指示符212、天气指示符213以及桌面应用程序图标214。其中:As shown in FIG. 3A , the user interface 21 may include: a status bar 211 , a calendar indicator 212 , a weather indicator 213 , and a desktop application icon 214 . in:
状态栏211可包括移动通信信号的一个或多个信号强度指示符、无线高保真(wirelessfidelity,WiFi)信号的一个或多个信号强度指示符、电池状态指示符以及时间指示符。日历指示符212可用于指示当前时间。天气指示符213可用于指示天气类型。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. Calendar indicator 212 may be used to indicate the current time. Weather indicator 213 may be used to indicate the type of weather.
桌面应用程序图标214可包括图库图标214A、运动健康图标214B。其中,运动健康图标214B可用于开启“运动健康”应用程序。其他应用程序图标214还可以包括更多的应用程序图标,本申请实施例对此不作限定。 Desktop application icons 214 may include a gallery icon 214A, an exercise and fitness icon 214B. Among them, the sports and health icon 214B can be used to open the "sports and health" application program. Other application program icons 214 may also include more application program icons, which is not limited in this embodiment of the present application.
用户界面21还可包括页面指示符215。其他应用程序图标可分布在多个页面,页面指示符215可用于指示用户当前浏览的是哪一个页面中的应用程序。用户可以左右滑动其他应用程序图标的区域,来浏览其他页面中的应用程序图标。当检测到用户点击这些应用程序图标时,电子设备100可显示该应用程序的用户界面。The user interface 21 may also include a page indicator 215 . Icons of other application programs may be distributed on multiple pages, and the page indicator 215 may be used to indicate the application program on which page the user is currently browsing. The user can slide the area of other application icons left and right to browse the application icons in other pages. When detecting that the user clicks on these application program icons, the electronic device 100 may display the user interface of the application program.
在一些实施例中,图3A示例性所示的用户界面21可以为主界面(Home screen)。In some embodiments, the user interface 21 exemplarily shown in FIG. 3A may be a main interface (Home screen).
参考图3A,电子设备100可以检测到作用于运动健康图标214B的用户操作(如在运动健康图标214B上的点击操作),响应于该操作,启动运动健康图标214B对应的“运动健康”应用程序,并显示图3B示例性示出的用户界面31。Referring to FIG. 3A , the electronic device 100 can detect a user operation acting on the sports and health icon 214B (such as a click operation on the sports and health icon 214B), and in response to the operation, start the "sports and health" application program corresponding to the sports and health icon 214B , and display the user interface 31 exemplarily shown in FIG. 3B .
如图3B所示,用户界面31可包括:第一运动参数栏311,第二运动参数栏312,菜单栏313。其中:As shown in FIG. 3B , the user interface 31 may include: a first exercise parameter bar 311 , a second exercise parameter bar 312 , and a menu bar 313 . in:
第一运动参数栏311可用于展示今日运动数据,比如运动距离、运动热量、运动步数等数据。The first exercise parameter column 311 can be used to display today's exercise data, such as exercise distance, exercise calories, exercise steps and other data.
第二运动参数栏312可用于展示电子设备100近期记录的运动记录、心率、体重等数据。The second exercise parameter column 312 can be used to display data such as exercise records, heart rate, and weight recently recorded by the electronic device 100 .
菜单栏313包括健康图标313A、运动图标313B、设备图标313C、我的图标313D。The menu bar 313 includes a health icon 313A, an exercise icon 313B, a device icon 313C, and a my icon 313D.
其中,健康图标313A可用于切换到“健康”用户界面,该用户界面为“运动健康”应用程序的初始界面,即为用户界面31。Among them, the health icon 313A can be used to switch to the “health” user interface, which is the initial interface of the “sports and health” application program, namely the user interface 31 .
运动图标313B可用于切换到“运动”用户界面,该用户界面可展示三种运动模式(例如,户外跑步、步行、骑行),用户可以选择不同的运动模式进行运动。The exercise icon 313B can be used to switch to the "exercise" user interface, which can display three exercise modes (for example, outdoor running, walking, cycling), and the user can choose different exercise modes to exercise.
设备图标313C可用于切换到“设备”用户界面,该用户界面可展示电子设备100连接过的其他电子设备,例如手环。用户可以对这些电子设备进行删除或连接等操作。The device icon 313C can be used to switch to the "device" user interface, which can display other electronic devices connected to the electronic device 100, such as wristbands. Users can delete or connect these electronic devices.
如图3B所示,电子设备100可以检测到用户作用于运动图标313B的用户操作,响应于该操作,电子设备100显示图3C示例性示出的用户界面41。As shown in FIG. 3B , the electronic device 100 may detect a user operation on the motion icon 313B by the user, and in response to the operation, the electronic device 100 displays the user interface 41 exemplarily shown in FIG. 3C .
如图3C所示,用户界面41中包括运动选项411。运动选项411包括户外跑步选项411A、步行选项411B、骑行选项411C。用户可以选择其中的一个运动选项,进而选择对应的运动模式开始运动。As shown in FIG. 3C , the user interface 41 includes exercise options 411 . Sports options 411 include outdoor running options 411A, walking options 411B, and cycling options 411C. The user can select one of the exercise options, and then select the corresponding exercise mode to start exercising.
其中,户外跑步选项411A下的下划线表示户外跑步选项411A被选中,在该选项被选中时,用户界面410中可包括:运动目标设置选项412、开始运动控件413。其中,运动目标设置选项412可用于用户设置运动的目标参数,例如,距离目标、时间目标、热量目标。用户可以设置目标参数的大小,当用户运动的过程中,运动的参数值达到了用户设置的目标参数大小时,电子设备100可以显示提示信息,提示用户当前的运动参数已达到设置的目标参数。电子设备100可以检测到用户作用于运动目标设置选项412的触控操作,响应于该操作,电子设备100在如图3D所述的用户界面中显示运动目标设置窗口414。开始运动控件413可用于开启户外跑步模式。电子设备100可以检测到用户作用于开始运动控件413的用户操作(例如点击操作),响应于该操作,电子设备100启动户外跑步模式。Wherein, the underline under the outdoor running option 411A indicates that the outdoor running option 411A is selected, and when this option is selected, the user interface 410 may include: an exercise goal setting option 412 and a start exercise control 413 . Among them, the exercise goal setting option 412 may be used for the user to set exercise goal parameters, such as distance goals, time goals, and calorie goals. The user can set the size of the target parameter. When the user is exercising, and the value of the exercise parameter reaches the target parameter set by the user, the electronic device 100 can display a prompt message to remind the user that the current exercise parameter has reached the set target parameter. The electronic device 100 may detect a user's touch operation on the sport goal setting option 412 , and in response to the operation, the electronic device 100 displays a sport goal setting window 414 in the user interface as shown in FIG. 3D . Start motion control 413 can be used to start outdoor running mode. The electronic device 100 may detect a user operation (for example, a click operation) on the start exercise control 413 by the user, and in response to the operation, the electronic device 100 starts the outdoor running mode.
可以理解的是,电子设备100可以不设置运动目标,在电子设备100显示如图3C所示的用户界面后,当电子设备100检测到用户作用于开始运动控件413的用户操作后,直接显示如图3F所述的用户界面51,开始采集用户的运动数据。It can be understood that the electronic device 100 may not set a motion target. After the electronic device 100 displays the user interface shown in FIG. The user interface 51 shown in FIG. 3F starts to collect the user's exercise data.
如图3D所述,运动目标设置窗口414用于设置运动的目标参数,运动目标设置窗口414还包括取消控件414A和确定控件414B,取消控件414A可用于用户取消设置运动的目标参数,确定控件414B可用于用户确定设置的目标参数。具体地,用户可以设置距离目标为1公里,此时目标参数为距离,目标参数的大小为1公里,在电子设备100检测到作用于确定控件414B的触控操作之后,电子设备100确定用户设置的运动目标为运动1公里。As shown in FIG. 3D , the motion target setting window 414 is used to set the target parameters of the motion. The motion target setting window 414 also includes a cancel control 414A and a confirmation control 414B. The cancellation control 414A can be used for the user to cancel the target parameter setting of the motion, and the determination control 414B A target parameter that can be used by the user to determine settings. Specifically, the user can set the distance to the target as 1 kilometer. At this time, the target parameter is the distance, and the size of the target parameter is 1 kilometer. After the electronic device 100 detects the touch operation acting on the determination control 414B, the electronic device 100 determines the user's setting. The exercise goal is to exercise 1 km.
如图3E所示,电子设备100可以检测到作用于开始运动控件413的用户操作,响应于该操作,电子设备100开启户外跑步模式,开始采集用户的运动数据。具体地,该运动数据可以是指用户的心率,电子设备100可以通过骨传导传感器180M获取用户的心率。并且,在开启户外跑步模式后,电子设备100可以显示如图3F示例性示出的用户界面51,该用户界面51用户展示用户运动过程的运动情况,例如,用户的位置变化情况,运动时间,运动的距离、配速、热量等等。As shown in FIG. 3E , the electronic device 100 may detect a user operation acting on the exercise start control 413 , and in response to the operation, the electronic device 100 starts an outdoor running mode and starts collecting user's exercise data. Specifically, the exercise data may refer to the user's heart rate, and the electronic device 100 may acquire the user's heart rate through the bone conduction sensor 180M. Moreover, after the outdoor running mode is turned on, the electronic device 100 may display a user interface 51 as exemplarily shown in FIG. Exercise distance, pace, calories, etc.
可以理解的是,响应于用户作用于开始运动控件413的用户操作,电子设备100还可以指示连接的其他设备,例如手环启动户外跑步模式,开始采集用户的心率。It can be understood that, in response to the user's operation on the start exercise control 413, the electronic device 100 may also instruct other connected devices, such as a wristband, to start the outdoor running mode and start collecting the user's heart rate.
可选的,电子设备100采集的运动数据还可以是指:心率、呼吸频率、运动姿态、运动 速度、体温、血压、血糖、位置信息等等。Optionally, the exercise data collected by the electronic device 100 may also refer to: heart rate, breathing rate, exercise posture, exercise speed, body temperature, blood pressure, blood sugar, location information, and the like.
如图3F所示,用户界面51包括地图显示区域511、数据展示区512、暂停运动控件513等。As shown in FIG. 3F , the user interface 51 includes a map display area 511 , a data display area 512 , a motion pause control 513 and the like.
其中,地图显示区域511可以显示地图,该地图中可以实时更新用户所在位置,并显示用户的运动轨迹。数据展示区512可以显示并实时更新用户的运动数据,比如运动时间、配速、热量等。Wherein, the map display area 511 can display a map in which the user's location can be updated in real time and the user's movement track can be displayed. The data display area 512 can display and update the user's exercise data in real time, such as exercise time, pace, calories, etc.
暂停运动控件513可用于监听触发暂停运动的用户操作。电子设备100可以检测到作用于暂停运动控件513的用户操作,响应于该操作,电子设备100可以暂停记录用户的运动数据。 Pause motion control 513 may be used to listen for user operations that trigger pausing motion. The electronic device 100 may detect a user operation acting on the pause exercise control 513, and in response to the operation, the electronic device 100 may suspend recording the user's exercise data.
如图3G所示,当电子设备100采集到用户的运动距离达到用户设置的距离目标时,即,1公里,电子设备100可以显示提示信息514,该提示信息514用于提示用户当前用户运动的距离以达到设置的目标参数大小。另外,电子设备100可以检测到用户作用于暂停运动控件513的用户操作,响应于该操作,暂停运动控件513更新为如图3H所示的结束运动控件515和继续运动控件516。As shown in FIG. 3G , when the electronic device 100 collects that the user's motion distance reaches the distance target set by the user, that is, 1 kilometer, the electronic device 100 may display prompt information 514, which is used to prompt the user for the current distance of the user's motion. distance to reach the set target parameter size. In addition, the electronic device 100 may detect a user operation on the pause motion control 513 by the user, and in response to the operation, the pause motion control 513 is updated to an end motion control 515 and a continue motion control 516 as shown in FIG. 3H .
其中,结束运动控件515可用于监听触发结束运动的用户操作。电子设备100可以检测到作用于结束运动控件515的用户操作,响应于该操作,电子设备100结束此次运动健康数据的记录。继续运动控件516可用于监听触发继续运动的用户操作。电子设备100可以检测到作用于继续运动控件516的用户操作,响应于该操作,电子设备100继续记录用户的运动健康数据。Wherein, the end motion control 515 can be used to monitor the user operation that triggers the end motion. The electronic device 100 may detect a user operation acting on the end exercise control 515, and in response to the operation, the electronic device 100 ends the recording of the exercise health data. The continue motion control 516 can be used to listen for user operations that trigger the continue motion. The electronic device 100 may detect a user operation on the continue exercise control 516, and in response to the operation, the electronic device 100 continues to record the user's exercise health data.
如图3H所示,电子设备100可以检测到用户作用于结束运动控件515的触控操作,例如,长按操作,响应于该操作,电子设备100结束此次运动记录,显示图3I所示的用户界面61。该用户界面61包括:运动参数栏611、运动展示区612。其中,运动参数栏611包括:图画选项611A、图表选项611B、详情选项611C。As shown in FIG. 3H , the electronic device 100 can detect the user's touch operation on the end motion control 515, for example, a long press operation. In response to this operation, the electronic device 100 ends the motion recording, and displays the user interface61. The user interface 61 includes: a sports parameter column 611 and a sports display area 612 . Wherein, the exercise parameter column 611 includes: picture option 611A, chart option 611B, and detail option 611C.
图画选项611A可用于监听触发查看运动图画的用户操作。电子设备100可以检测到作用于图画选项611A的用户操作,响应于该操作,运动展示区612显示电子设备100根据运动数据生成的运动图画。其中,在电子设备100接收到到用户作用于结束运动控件515的触控操作后,电子设备100可以默认选中图画选项611A,在运动展示区612中显示电子设备100根据运动数据生成的运动图画。The picture option 611A may be used to listen for user actions that trigger viewing of motion pictures. The electronic device 100 may detect a user operation on the picture option 611A, and in response to the operation, the motion display area 612 displays a motion picture generated by the electronic device 100 according to the motion data. Among them, after the electronic device 100 receives the user's touch operation on the end motion control 515, the electronic device 100 can select the picture option 611A by default, and display the motion picture generated by the electronic device 100 according to the motion data in the motion display area 612.
图表选项611B可用于监听触发查看心率的用户操作。电子设备100可以检测到作用于图表选项611C的用户操作,响应于该操作,运动展示区612显示与用户的心率有关的数据。Graph option 61 IB can be used to listen for user actions that trigger viewing of heart rate. The electronic device 100 may detect a user operation on the graph option 611C, and in response to the operation, the exercise display area 612 displays data related to the user's heart rate.
详情选项611C可用于监听触发查看运动详情的用户操作。电子设备100可以检测到作用于详情选项611D的用户操作,响应于该操作,运动展示区611显示与用户的运动详情有关的数据。The details option 611C can be used to monitor user operations that trigger viewing of exercise details. The electronic device 100 may detect a user operation on the detail option 611D, and in response to the operation, the exercise display area 611 displays data related to the user's exercise details.
如图3I所示,运动展示区612可以包括:运动图画612A、保存选项612B、编辑选项612C、分享选项612D。其中,运动图画612A用于展示电子设备100根据用户运动过程中,采集到的用户运动数据,即心率,生成的与心率有关的运动图画。保存选项612B用于将运动图画612A中展示的运动图画保存到本地,例如,保存到图库中。编辑选项612C可用于编辑运动图画612A中展示的运动图画,例如,涂鸦,更换图画风格、添加滤镜、添加背景音乐等等,具体关于电子设备100在运动结束后,编辑运动图画的过程可以参考后续实施例,这里先不赘述。分享选项612D可用于将运动图画612A中展示的运动图画分享到其他应用程序中。对于电子设备100在运动图画612A中展示的运动图画,电子设备100可以使用画笔绘制该运 动图画,其中,用户的心率与画笔颜色相关联,当用户的心率发生变化时,绘制运动图画的画笔颜色也会发生变化,从而,电子设备100绘制的运动图画中存在多种颜色。As shown in FIG. 3I , the motion display area 612 may include: a motion picture 612A, a save option 612B, an edit option 612C, and a share option 612D. Among them, the motion picture 612A is used to display the motion picture related to the heart rate generated by the electronic device 100 according to the user's motion data collected during the user's motion, that is, the heart rate. The save option 612B is used to save the motion picture displayed in the motion picture 612A locally, for example, to a gallery. The edit option 612C can be used to edit the motion picture displayed in the motion picture 612A, for example, graffiti, change the picture style, add a filter, add background music, etc. For details about the process of editing the motion picture of the electronic device 100 after the end of the motion, please refer to Subsequent embodiments will not be described in detail here. Share option 612D may be used to share the motion graphics shown in motion graphics 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 brush to draw the motion picture, wherein the user's heart rate is associated with the color of the brush, and when the user's heart rate changes, the color of the brush used to draw the motion picture Changes also occur, so that there are multiple colors in the motion picture drawn by the electronic device 100 .
可以看出,上述图3A-图3I示例性示出了电子设备100根据用户的心率调整画笔颜色,并使用调整画笔颜色后的画笔绘制运动图画的过程,这时,图3I所示的运动图画612A展示的运动图画与用户运动过程中的心率有关。It can be seen that the above-mentioned FIG. 3A-FIG. 3I exemplarily show the process in which the electronic device 100 adjusts the brush color according to the user's heart rate, and uses the brush after adjusting the brush color to draw a moving picture. At this time, the moving picture shown in FIG. 3I 612A shows the exercise picture related to the user's heart rate during exercise.
可选地,用户的心率还可以与其他画笔参数相关联,例如,用户的心率与画笔大小相关联时,当用户的心率发生变化时,绘制运动图画的画笔大小也会发生变化,从而,电子设备100绘制的运动图画中存在粗细不同的线条。或者,电子设备100可以根据用户的其他运动数据来调整画笔参数,例如,电子设备100根据用户的运动速度调整画笔颜色。或者,电子设备100可以同时根据多个运动数据来调整多个画笔参数,例如,根据用户的心率调整画笔颜色,根据用户的运动姿态调整画笔形状,根据用户的运动速度调整画笔大小等等,具体关于电子设备100根据多个运动数据来调整多个画笔参数的描述可以参见后续内容,这里先不赘述。Optionally, the user's heart rate can also be associated with other brush parameters. For example, when the user's heart rate is associated with the size of the brush, when the user's heart rate changes, the size of the brush used to draw sports pictures will also change. Therefore, the electronic Lines of different thicknesses exist in the motion picture drawn by the device 100 . Alternatively, the electronic device 100 may adjust brush parameters according to other motion data of the user, for example, the electronic device 100 adjusts the brush color according to the user's motion speed. Alternatively, the electronic device 100 may simultaneously adjust multiple brush parameters according to multiple motion data, for example, adjust the brush color according to the user's heart rate, adjust the brush shape according to the user's motion posture, adjust the brush size according to the user's motion speed, etc., specifically For a description of the electronic device 100 adjusting multiple brush parameters according to multiple motion data, please refer to the subsequent content, and details will not be repeated here.
下面结合图4A-图4D介绍电子设备100根据心率调整画笔颜色,生成上述图3I所示的运动图画的过程。The following describes the process of the electronic device 100 adjusting the brush color according to the heart rate and generating the motion picture shown in FIG. 3I with reference to FIGS. 4A-4D.
图4A示例性示出了电子设备100采集到的多个心率组成的心率曲线图。当电子设备100根据心率调整画笔颜色,具体地,心率值为85-95(次/分钟)时,画笔颜色为颜色1,心率值为65-85(次/分钟)时,画笔颜色为颜色2。那么,根据图4A所示的心率曲线图可以看出,0-t1、t2-t3阶段的画笔颜色为颜色1,t1-t2阶段的画笔颜色为颜色2。FIG. 4A exemplarily shows a heart rate graph composed of multiple heart rates collected by the electronic device 100 . When the electronic device 100 adjusts the brush color according to the heart rate, specifically, when the heart rate value is 85-95 (times/minute), the brush color is color 1, and when the heart rate value is 65-85 (times/minute), the brush color is color 2 . Then, according to the heart rate graph shown in FIG. 4A , it can be seen that the color of the brush in the stages 0-t1 and t2-t3 is color 1, and the color of the brush in the stage t1-t2 is color 2.
图4B示例性示出了电子设备100开始绘制运动图画时,第一阶段绘制的内容。其中,第一阶段绘制的内容对应用户在0-t1阶段的运动情况,由于0-t1阶段,用户的心率位于85-95(次/分钟),所以,电子设备100在第一阶段绘制运动图画时,画笔颜色为颜色1。FIG. 4B exemplarily shows the content drawn in the first stage when the electronic device 100 starts to draw the motion picture. Among them, the content drawn in the first stage corresponds to the user's exercise situation in the 0-t1 stage. Since the user's heart rate is at 85-95 (times/minute) in the 0-t1 stage, the electronic device 100 draws motion pictures in the first stage , the brush color is color 1.
图4C示例性示出了电子设备100继续绘制运动图画时,第二阶段绘制的内容。其中,第二阶段绘制的内容是在电子设备100第一阶段绘制的内容上继续绘制,该第二阶段绘制的内容对应用户在t1-t2阶段的运动情况,由于t1-t2阶段,用户的心率位于65-85(次/分钟),所以,电子设备100在第二阶段绘制运动图画时,画笔颜色为颜色2。FIG. 4C exemplarily shows the content drawn in the second stage when the electronic device 100 continues to draw the motion picture. Among them, the content drawn in the second stage is to continue to draw on the content drawn in the first stage of the electronic device 100. The content drawn in the second stage corresponds to the user's exercise situation in the t1-t2 stage. Due to the t1-t2 stage, the user's heart rate It is between 65-85 (times/minute). Therefore, when the electronic device 100 draws the motion picture in the second stage, the brush color is color 2.
图4D示例性示出了电子设备100继续绘制运动图画时,第三阶段绘制的内容。其中,第三阶段绘制的内容实在电子设备100第二阶段绘制的内容上继续绘制,该第三阶段绘制的内容对应用户在t2-t3阶段的运动情况,由于t2-t3阶段,用户的心率位于85-95(次/分钟),所以,电子设备100在第三阶段绘制运动图画时,画笔颜色为颜色1。最终,电子设备100根据心率生成的运动图画即为如图4D所示的图像。FIG. 4D exemplarily shows content drawn in the third stage when the electronic device 100 continues to draw the motion picture. Among them, the content drawn in the third stage is actually drawn on the content drawn in the second stage of the electronic device 100. The content drawn in the third stage corresponds to the user's exercise situation in the t2-t3 stage. Due to the t2-t3 stage, the user's heart rate is at 85-95 (times/minute), therefore, when the electronic device 100 draws the motion picture in the third stage, the brush color is color 1. Finally, the motion picture generated by the electronic device 100 according to the heart rate is the image shown in FIG. 4D .
可以理解是,上述图4A-图4D示出的电子设备100根据心率生成运动图画的过程只是电子设备100根据运动数据生成运动图画的一个具体例子,不构成对申请的限定,具体关于电子设备100根据运动数据生成运动图画的过程可以参见下述方法实施例中的描述。It can be understood that the process of electronic device 100 generating motion pictures according to heart rate shown in FIGS. For the process of generating a motion picture according to motion data, reference may be made to the description in the following method embodiments.
图5A-图5E示例性示出了电子设备100在开始运动前预设运动图画的参数,以及在结束运动后调整运动图画所涉及到的一些用户界面。5A-5E exemplarily show the electronic device 100 preset the parameters of the motion picture before starting the exercise, and some user interfaces involved in adjusting the motion picture after the end of the exercise.
在开始运动前,电子设备100可以预设运动图画的参数,其中,运动图画的参数可以是指:绘图风格、绘图模板等等。这样,用户可以提前确定想要绘制的内容,绘制的风格,保证用户结束运动后,能够生成一幅用户想要获得的运动图画。Before starting the exercise, the electronic device 100 may preset parameters of the motion picture, wherein the parameters of the motion picture may refer to: drawing style, drawing template and so on. In this way, the user can determine the content and style of drawing in advance to ensure that after the user finishes exercising, a motion picture that the user wants to obtain can be generated.
具体关于电子设备100在开始运动前,预设运动图画的绘图风格以及绘图模板的过程可以参见图5A-图5C所示的用户界面。For details about the process of preset drawing style and drawing template of the sports picture before the electronic device 100 starts to exercise, please refer to the user interface shown in FIGS. 5A-5C .
如图5A所示,用户界面41还包括运动主题设置选项415,该运动主题设置选项415可用于设置运动图画的绘制风格以及绘制模板,当电子设备100检测到作用于运动主题设置选项415的用户操作时,响应于该操作,电子设备100在用户界面41中显示如图5B所述的运动主题设置窗口416。As shown in Figure 5A, the user interface 41 also includes a sports theme setting option 415, which can be used to set the drawing style and drawing template of the sports picture. In operation, in response to the operation, the electronic device 100 displays the sports theme setting window 416 in the user interface 41 as shown in FIG. 5B .
如图5B所示,运动主题设置窗口416可以包括:绘图风格选择区域416A、绘图模板选择区域416B,取消控件416C、确定控件416D。其中,绘图风格选择区域416A可用于确定运动图画的绘图风格,其中,绘图风格可用于调整运动图画最终呈现的效果,例如,绘图风格可以包括:铅笔画、水墨画、油画、水彩画等等,绘图模板选择区域416B可用于确定运动图画的绘图模板,其中,绘图模板可用于确定运动图画的内容,例如,绘图模板可以包括:运动、自然、人物、动物、风景等等。具体地,如图5B所述,当第一绘图风格4161A的背景色为深色时,则说明该第一绘图风格4161A对应的绘图风格处于选中状态,其中,该第一绘图风格4161A对应的绘图风格为“水墨画”,当第一绘图模板4161B的背景色为深色时,则说明该第一绘图模板4161B对应的绘图模板处于选中状态,其中,该第一绘图模板4161B对应的绘图风格为“自然”。当电子设备100检测到作用于确定控件416D的用户操作时,响应于该操作,电子设备100确定电子设备100需要绘制的运动图画的风格为“水墨画”,绘图模板为“自然”。As shown in FIG. 5B , the sports theme setting window 416 may include: a drawing style selection area 416A, a drawing template selection area 416B, a cancel control 416C, and a confirmation control 416D. Among them, the drawing style selection area 416A can be used to determine the drawing style of the moving picture, wherein, the drawing style can be used to adjust the effect of the final presentation of the moving picture, for example, the drawing style can include: pencil drawing, ink painting, oil painting, watercolor painting, etc., drawing template selection The area 416B can be used to determine the drawing template of the moving picture, wherein the drawing template can be used to determine the content of the moving picture, for example, the drawing template can include: sports, nature, characters, animals, scenery and so on. Specifically, as shown in FIG. 5B , when the background color of the first drawing style 4161A is dark, it means that the drawing style corresponding to the first drawing style 4161A is selected, wherein the drawing corresponding to the first drawing style 4161A The style is "ink painting", when the background color of the first drawing template 4161B is dark, it means that the drawing template corresponding to the first drawing template 4161B is selected, and the drawing style corresponding to the first drawing template 4161B is " nature". When the electronic device 100 detects a user operation acting 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".
另外,绘图模板选择区域416B还包括自定义绘图模板4162B,自定义绘图模板4162B可用于自定义绘图模板,例如,用户可以从图库应用程序中选择图片来制作绘图模板,或者,用户可以自己绘制内容来制作绘图模板。In addition, the drawing template selection area 416B also includes a custom drawing template 4162B. The custom drawing template 4162B can be used to customize the drawing template. For example, the user can select a picture from a gallery application program to make a drawing template, or the user can draw the content by himself to create a drawing template.
可以理解的是,运动图画的参数可以不限于上述图5B所示的绘图风格以及绘图模板,运动图画的参数还可以包括绘图区域,该绘图区域可用于设置电子设备100绘制的内容在运动图像上的位置以及大小。本申请实施例对运动图画的参数不作限制。It can be understood that the parameters of the moving picture may not be limited to the drawing style and drawing template shown in FIG. 5B above, and the parameters of the moving picture may also include a drawing area, which can be used to set the content drawn by the electronic device 100 on the moving image. position and size. The embodiment of the present application does not limit the parameters of the motion picture.
图5C示例性示出了电子设备100在经过图5B所示设置运动图画的参数并进行运动后,结束运动时,电子设备100展示的运动图画。从图5C可以看出,电子设备100最终生成的运动图画的绘图风格为电子设备100在运动前,设置的“水墨画”绘图风格,电子设备100最终生成的运动图画的绘图模板为电子设备100在运动前,设置的“自然”绘图模板,最终,该运动图画呈现为一幅竹子水墨画。FIG. 5C exemplarily shows the motion picture displayed by the electronic device 100 when the electronic device 100 ends the motion after setting the parameters of the motion picture as shown in FIG. 5B and performing the motion. It can be seen from FIG. 5C 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 movement, and the drawing template of the motion picture finally generated by the electronic device 100 is the electronic device 100. Before the exercise, the "natural" drawing template is set, and finally, the exercise drawing is presented as a bamboo ink painting.
在结束运动后,电子设备100可以进一步编辑生成的运动图画,更改运动图画的参数和内容,例如,更改运动图画的绘图风格,调整运动图画中包含的内容等等。这样,用户可以在结束运动后,更改运动图画,增强用户对运动图像的编辑自由度。After the exercise ends, the electronic device 100 can further edit the generated motion picture, change the parameters and content of the motion picture, for example, change the drawing style of the motion picture, adjust the content contained in the motion picture, and so on. In this way, the user can change the motion picture after finishing the motion, which enhances the user's degree of freedom in editing the motion picture.
具体关于电子设备100在结束运动后,调整运动图画的过程可以参见图5C-图5E所述的用户界面。For details about the process of adjusting the motion picture after the electronic device 100 ends the motion, please refer to the user interface described in FIG. 5C-FIG. 5E.
图5C示例性示出了电子设备100结束运动后,展示运动图画的用户界面61。如图5C所示,电子设备100检测到作用于编辑控件612C的用户操作,响应于该操作,电子设备100显示如图5D所示的用户界面71,该用户界面71为运动图画的编辑界面。FIG. 5C exemplarily shows the user interface 61 displaying motion pictures after the electronic device 100 ends the motion. As shown in FIG. 5C , the electronic device 100 detects a user operation acting on the edit control 612C, and in response to the operation, the electronic device 100 displays the user interface 71 shown in FIG. 5D , which is an editing interface for moving pictures.
如图5D所示,用户界面71可包括:图画展示区域711、调整选项712、参数选择区域713。其中,图画展示区域711用于展示电子设备100生成的运动图画,或者,电子设备100更改参数或内容后的运动图画,调整选项712用于展示电子设备100可调整的参数选项,其中该参数选项可包括更改风格选项712A、涂鸦选项712B,更改风格选项712A可用于更改运 动图画的绘图风格,涂鸦选项712B可用于在运动图画中添加或删除元素,该元素可以是指文字、贴图等等。参数选择区域713可用于展示调整选项712中选中的参数选项,包含的多个具体参数选项。具体地,当更改风格选项712A处于选中状态时,该更改风格选项712A的字体可以处于加粗状态,参数选择区域713中展示有第一绘图风格713A、第二绘图风格713B等等,其中第一绘图风格713A可以对应“铅笔画”的绘图风格,第二绘图风格713B可以对应“水墨画”的绘图风格。在电子设备100初始显示第一绘图风格713A、第二绘图风格713B等等多个具体参数选项时,图画展示区域711中展示的运动图画的绘图风格可以默认处于选中状态。由于电子设备100在开始运动前,选中“水墨画”作为本次绘制的运动图画的绘图风格,所以在电子设备100生成的运动图画中,当电子设备100首次显示更改风格选项712A所提供的多个绘图风格时,“水墨画”所对应的第二绘图风格713B处于选中状态,即第二绘图风格713B的背景色为深色。当电子设备100检测到作用于第一绘图风格713B的用户操作时,响应于该操作,电子设备100将图画展示区域711中展示的运动图画的绘图风格更改为第一绘图风格713B对应的绘图风格,并显示如图5E所示的用户界面71。As shown in FIG. 5D , the user interface 71 may include: a picture display area 711 , adjustment options 712 , and a parameter selection area 713 . Among them, the picture display area 711 is used to display the motion picture generated by the electronic device 100, or the motion picture after the electronic device 100 changes parameters or content, and the adjustment option 712 is used to display the adjustable parameter options of the electronic device 100, wherein the parameter options It may include a change style option 712A and a graffiti option 712B. The change style option 712A can be used to change the drawing style of the motion picture, and the graffiti option 712B can be used to add or delete elements in the motion picture, and the elements can refer to text, stickers, etc. The parameter selection area 713 can be used to display the parameter option selected in the adjustment option 712, including multiple specific parameter options. Specifically, when the change style option 712A is selected, the font of the change style option 712A can be in a bold state, and the parameter selection area 713 displays a first drawing style 713A, a second drawing style 713B, etc., wherein the first The drawing style 713A may correspond to the drawing style of "pencil drawing", and the second drawing style 713B may correspond to the drawing style of "ink painting". 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 moving picture displayed in the picture display area 711 may be selected by default. Since the electronic device 100 selects "ink painting" as the drawing style of the motion picture drawn this time before starting the exercise, in the motion picture generated by the electronic device 100, when the electronic device 100 first displays the multiple options provided by the change style option 712A In the drawing style, 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 acting on the first drawing style 713B, in response to the operation, the electronic device 100 changes the drawing style of the moving picture displayed in the picture display area 711 to the drawing style corresponding to the first drawing style 713B. , and display the user interface 71 as shown in FIG. 5E.
如图5E所示,第一绘图风格713B背景色更改为深色,图画展示区域711中展示的运动图画的绘图风格更改会第一绘图风格713B对应的“铅笔画”。As shown in FIG. 5E , the background color of the first drawing style 713B is changed to a dark color, and the drawing style of the moving picture displayed in the picture display area 711 is changed to "pencil drawing" corresponding to the first drawing style 713B.
图6A-图6D示例性示出了电子设备100在结束运动后以视频的方式展示电子设备100生成的运动图画时,涉及的一些用户界面。FIGS. 6A-6D exemplarily show some user interfaces involved when the electronic device 100 displays the motion picture generated by the electronic device 100 in a video mode after the motion is finished.
电子设备100除了可以在结束运动后,通过图片的形式展示运动图画外,还可以以视频的形式展示运动图画,这时,电子设备100可以通过视频展示出该运动图画的生成过程,用户可以用过观看该视频,了解运动图画的生成过程,以及用户在运动过程中,运动数据的波动情况,增强运动的趣味性。The electronic device 100 can not only display the moving picture in the form of a picture after the exercise is over, but also display the moving picture in the form of a video. At this time, the electronic device 100 can show the generation process of the moving picture through the video, and the user can use By watching this video, you can learn about the generation process of motion pictures and the fluctuation of motion data during the user's motion to enhance the fun of motion.
图6A示例性示出了电子设备100结束运动之后,展示运动图画的用户界面61。在该用户界面61中,运动图画612A所在的区域中,除了可以显示电子设备100生成的运动图画,还可以包括提示信息613,播放控件614、视频时长615。提示信息613用于提示用户,运动图画612A所在的区域中显示图像为根据用户的运动相关联的图像。播放控件614可用于触发播放电子设备100生成的运动图画所对应的视频,该视频可用于展示电子设备100生成该运动图画的过程。播放时长615可用于展示视频对应的时长,例如,0:06即表示为该视频的时长为6秒。如图6A所示,当电子设备100检测到作用于播放控件614的用户操作时,响应于该操作,电子设备100在如图6B所示的运动图画612A所在的区域中播放视频。FIG. 6A exemplarily shows a user interface 61 displaying motion pictures after the electronic device 100 ends the motion. In the user interface 61 , in the area where the moving picture 612A is located, in addition to displaying the moving picture generated by the electronic device 100 , it may also include prompt information 613 , play control 614 , and video duration 615 . The prompt information 613 is used to prompt the user that the image displayed in the area where the motion picture 612A is located is an image associated with the user's motion. The play control 614 can be used to trigger the playing of a video corresponding to the moving picture generated by the electronic device 100 , and the video can be used to show the process of the electronic device 100 generating the moving picture. Playing duration 615 may be used to display the corresponding duration of the video, for example, 0:06 means that the duration of the video is 6 seconds. As shown in FIG. 6A , when the electronic device 100 detects a user operation on the playback control 614 , in response to the operation, the electronic device 100 plays the video in the area where the motion picture 612A shown in FIG. 6B is located.
如图6B所示,电子设备100开始播放视频,运动图画612A所在的区域中显示有视频画面1,视频时长615更新显示为0:02,表示当前视频播放了2秒。其中,视频画面1包含电子设备100生成的运动图画的部分内容1,且该部分内容1的颜色为颜色1。As shown in FIG. 6B , the electronic device 100 starts to play the video, the video frame 1 is displayed in the area where the motion picture 612A is located, and the video duration 615 is updated and displayed as 0:02, indicating that the current video has been played for 2 seconds. Wherein, the video frame 1 includes part content 1 of the moving picture generated by the electronic device 100 , and the color of the part content 1 is color 1 .
如图6C所示,电子设备100继续播放视频,运动图画612A所在的区域中显示有视频画面2,视频时长615更新显示为0:04,表示当前视频播放了4秒。其中,视频画面2包含有上述部分内容1以及运动图画的部分内容2,该部分内容2的颜色为颜色2。As shown in FIG. 6C , the electronic device 100 continues to play the video, the video frame 2 is displayed in the area where the motion picture 612A is located, and the video duration 615 is updated and displayed as 0:04, indicating that the current video has been played for 4 seconds. Wherein, the video picture 2 includes the above-mentioned partial content 1 and the partial content 2 of the motion picture, and the color of the partial content 2 is color 2 .
如图6D所示,电子设备100继续播放视频,运动图画612A所在的区域中显示有视频画面3,视频时长615更新显示为0:06,表示当前视频播放了6秒,这时,视频画面3中显示有完整的运动图画。其中,视频画面3包含有上述部分内容1、部分内容2以及运动图画的部分内容3,该部分内容3的颜色为颜色1。As shown in FIG. 6D , the electronic device 100 continues to play the video, and the video frame 3 is displayed in the area where the motion picture 612A is located, and the video duration 615 is updated and displayed as 0:06, indicating that the current video has been played for 6 seconds. At this time, the video frame 3 A full motion picture is shown in . Wherein, the video picture 3 includes the above-mentioned partial content 1 , partial content 2 and partial content 3 of moving pictures, and the color of the partial content 3 is color 1 .
在电子设备100完成运动图画的视频展示过程之后,电子设备100可以显示播放视频前 的用户界面61,即图6A所示的用户界面。也就是说,在结束运动后,电子设备100可以显示如图6A所示的用户界面,在电子设备100检测到用户播放运动画面对应的视频的操作后,电子设备100可以依次显示图6B-图6D所示的用户界面,在电子设备100播放完成后,电子设备100可以显示如图6A所示的用户界面。这样,用户可以重复播放该视频,或者保存、编辑或分享该视频。After the electronic device 100 completes the video display process of the motion picture, the electronic device 100 may display the user interface 61 before playing the video, that is, the user interface shown in FIG. 6A . That is to say, after the exercise ends, the electronic device 100 can display the user interface as shown in FIG. 6A , and after the electronic device 100 detects the user's operation of playing the video corresponding to the moving picture, the electronic device 100 can sequentially display the user interface shown in FIG. 6B - 6D , after the electronic device 100 finishes playing, the electronic device 100 may display the user interface as shown in FIG. 6A . This way, the user can play the video repeatedly, or save, edit or share the video.
从图6B-图6D可以看出,电子设备100可以以视频的形式展示运动图画的绘制过程。由于电子设备100采集的运动数据(例如,心率)的变化,导致画笔颜色从颜色1更改为颜色2,再更改为颜色1,从而使电子设备100生成的运动图画中,存在颜色不同的多个部分内容,即部分内容1,部分内容2,部分内容3。假设颜色1对应心率区间1,颜色2对应心率区间2,则用户通过观察视频播放过程中颜色的变化即可得知,用户在运动过程中,心率由心率区间1中的某一心率变为心率区间2中的某一心率,再变为心率区间1中的某一心率。这样,通过视频展示的方式更加生动形象地展现了用户的运动情况。It can be seen from FIG. 6B-FIG. 6D that the electronic device 100 can display the drawing process of the motion picture in the form of video. Due to changes in the motion data (for example, heart rate) collected by the electronic device 100, the color of the brush is changed from color 1 to color 2, and then changed to color 1, so that in the motion picture generated by the electronic device 100, there are multiple different colors. Partial content, i.e. partial content 1, partial content 2, partial content 3. Assuming that color 1 corresponds to heart rate zone 1, and color 2 corresponds to heart rate zone 2, the user can know by observing the color change during video playback that the user's heart rate changes from a certain heart rate in heart rate zone 1 to heart rate during exercise. A certain heart rate in zone 2, then changes to a certain heart rate in heart rate zone 1. In this way, the motion of the user is displayed more vividly by way of video display.
在一些实施例中,电子设备100还可以以动图的形式展示运动图画的绘制过程,本申请实施例对运动图画的展示过程不作限制。In some embodiments, the electronic device 100 may also display the drawing process of the moving picture in the form of a moving picture, and this embodiment of the present application does not limit the display process of the moving picture.
可以理解的是,图3A-图3I、图5A-图5E、图6A-图6D仅仅示例性示出了电子设备100上的用户界面,不应构成对本申请实施例的限定。It can be understood that, FIGS. 3A-3I , 5A-5E, and 6A-6D are only exemplary illustrations of user interfaces on the electronic device 100 , and should not be construed as limiting the embodiment of the present application.
下面结合图7介绍本申请实施例中的运动图画生成方法的整体流程。The following describes the overall flow of the motion picture generation method in the embodiment of the present application with reference to FIG. 7 .
如图7所示,该方法包括:As shown in Figure 7, the method includes:
S101、电子设备100获取用户的运动数据。S101. The electronic device 100 acquires exercise data of a user.
其中,电子设备100可以在接收到用户开始运动的用户操作(例如,作用于如图3E所述的开始运动控件413的触控操作)后获取用户的运动数据。Wherein, the electronic device 100 may acquire the motion data of the user after receiving a user operation (for example, a touch operation acting on the motion start control 413 as described in FIG. 3E ) of the user starting motion.
在本申请实施例中,用户开始运动的用户操作还可以是指第二操作。In this embodiment of the present application, the user operation that the user starts exercising may also refer to the second operation.
运动数据是指在用户运动的过程中,电子设备100或其他设备采集到的与用户运行相关联的数据,这些数据可以包括但不限于:心率、呼吸频率、运动姿态、运动速度、体温、血压、血糖、位置信息等等。Exercise data refers to the data associated with the user's operation collected by the electronic device 100 or other devices during the user's exercise, which may include but not limited to: heart rate, breathing rate, exercise posture, exercise speed, body temperature, blood pressure , blood sugar, location information, etc.
位置信息是指用户运动过程所在的地理位置,运动姿态可以包括:手臂姿态、腿部姿态、躯干姿态等等,运动姿态可以用传感器采集到的姿态指标来表示,例如,当运动姿态为腿部姿态时,该运动指标为着地冲击力、脚的外放幅度、触地腾空比等等,这时,电子设备100可以通过智能鞋中携带的压力传感器来获取用户的运动姿态。The location information refers to the geographic location where the user is moving. The motion posture can include: arm posture, leg posture, torso posture, etc. The motion posture can be represented by the posture index collected by the sensor. For example, when the motion posture is the leg In posture, the motion indicators include impact force on the ground, foot extension, ground-to-air ratio, etc. At this time, the electronic device 100 can obtain the user's motion posture through the pressure sensor carried in the smart shoe.
其中,电子设备100可以通过传感器,例如,陀螺仪传感器、加速度传感器、骨传导传感器等等或者摄像头等器件采集用户的运动数据,或者,电子设备100可以通过与其他设备建立通信连接,基于该通信连接获得其他设备存储或采集的运动数据。Among them, the electronic device 100 can collect the user's motion data through sensors, such as gyroscope sensors, acceleration sensors, bone conduction sensors, etc. or cameras, or the electronic device 100 can establish a communication connection with other devices, based on the communication Connect to obtain exercise data stored or collected by other devices.
该通信连接可以是指有线连接、无线连接。无线连接可以是高保真无线通信(wireless fidelity,Wi-Fi)连接、蓝牙连接、红外线连接、NFC连接、ZigBee连接等近距离连接,也可以是远距离连接,远距离连接包括但不限于基于2G,3G,4G,5G以及后续标准协议的移动网络的远距离连接。例如,电子设备100和其他设备可以登录同一用户账号(例如华为账号),然后通过服务器进行远距离连接。The communication connection may refer to a wired connection or a wireless connection. The wireless connection can be a high-fidelity wireless communication (wireless fidelity, Wi-Fi) connection, Bluetooth connection, infrared connection, NFC connection, ZigBee connection and other short-distance connections, and can also be a long-distance connection. Long-distance connections include but are not limited to 2G-based , 3G, 4G, 5G and the long-distance connection of the mobile network of the follow-up standard protocol. For example, the electronic device 100 and other devices can log in to the same user account (such as a Huawei account), and then perform a remote connection through the server.
其他设备可以是指云端服务器,这时,云端服务器中可以存储有用户的运动数据,电子设备100可以通过登录用户账号(例如华为账号),获取云端服务器中存储的运动数据。或者,其他设备可以是指手环、智能手表、耳机、手机,智能鞋等等可以采集用户的运动数据的设 备,类似地,其他设备可以通过陀螺仪传感器、加速度传感器、骨传导传感器等等传感器采集用户的运动数据,这时,电子设备100可以通过与其他设备建立通信连接,例如蓝牙连接,获取其他设备采集的运动数据。The other device may refer to a cloud server. At this time, the cloud server may store the user's exercise data, and the electronic device 100 may obtain the exercise data stored in the cloud server by logging in the user account (such as a Huawei account). Alternatively, other devices may refer to devices such as wristbands, smart watches, earphones, mobile phones, and smart shoes that can collect user's motion data. Similarly, other devices may use sensors such as gyro sensors, acceleration sensors, bone conduction To collect the exercise data of the user, at this time, the electronic device 100 may establish a communication connection with other devices, such as a Bluetooth connection, to obtain the exercise data collected by other devices.
电子设备100获取的运动数据可以包括以下几种情况:The exercise data acquired by the electronic device 100 may include the following situations:
1)电子设备100获取用户运动过程中的部分运动数据。1) The electronic device 100 acquires part of the motion data during the user's motion.
这时,电子设备100无需时刻采集用户运动过程中的运动数据,或者,用户无需获取用户运动过程中的全部运动数据,减轻电子设备100的运算量,减少运动数据对电子设备100存储空间的占用。At this time, the electronic device 100 does not need to collect the motion data during the user's exercise at all times, or the user does not need to obtain all the motion data during the user's exercise, so as to reduce the computational load of the electronic device 100 and reduce the storage space occupied by the motion data on the electronic device 100 .
其中,电子设备100可以通过间隔一段时间来获取用户的运动数据。例如,在电子设备100开启运动后,电子设备100可以每间隔10分钟采集或获取用户的心率。或者,电子设备100可以只采集用户运动过程中,一段时间内的运动数据。例如,电子设备100可以在接收到开始运动的用户操作后的10分钟后,开始采集用户心率,这是由于用户开启运动的一段时间内,可能正处于准备阶段,用户的运动数据波动较大,电子设备100可以摒弃用户开启运动的一段时间内的运动数据。Wherein, the electronic device 100 may acquire the user's exercise data at intervals. For example, after the electronic device 100 starts exercising, the electronic device 100 may collect or acquire the user's heart rate every 10 minutes. Alternatively, the electronic device 100 may only collect exercise data within a period of time during the user's exercise. For example, the electronic device 100 may start to collect the user's heart rate 10 minutes after receiving the user's operation to start exercise. The electronic device 100 may discard exercise data within a period of time when the user starts exercise.
2)电子设备100获取用户运动过程中的全部运动数据。2) The electronic device 100 acquires all motion data during the user's motion.
电子设备100可以获取用户运动过程中的全部运动数据,精准记录用户运动过程中,运动数据的变化情况,使电子设备100最终绘制的运动图画,能够详细反映出用户整个运动过程中的运动变化情况。The electronic device 100 can acquire all the motion data during the user's exercise process, and accurately record the changes of the user's motion data during the user's exercise process, so that the motion picture finally drawn by the electronic device 100 can reflect in detail the user's motion changes during the entire exercise process .
在本申请实施例中,电子设备获得的用户不同时间的运动数据还可以是指在第一时间获得的第一运动数据,在第二时间获得的第二运动数据。例如,当该运动数据为心率时,第一运动数据和第二运动数据可以是指电子设备在用户开始运动时和结束运动时分别获取的用户心率。In this embodiment of the present application, the exercise data of the user obtained by the electronic device at different times may also refer to the first exercise data obtained at the first time and the second exercise data obtained at the second time. For example, when the exercise data is heart rate, the first exercise data and the second exercise data may refer to the user's heart rate respectively obtained by the electronic device when the user starts exercising and ends exercising.
S102、电子设备100根据运动数据调整画笔参数。S102. The electronic device 100 adjusts brush parameters according to the motion data.
画笔参数包括:画笔颜色、画笔大小、画笔形状、画笔流量、画笔透明度、画笔硬度、画笔方向、画笔绘制速度等等。其中,画笔流量是指画笔的出墨量,当画笔流量越大,绘制的线条越粗,颜色越深,画笔流量越小,绘制的线条越细,颜色越浅。画笔硬度是指画笔的硬度,画笔硬度越大,绘制的线条边缘越平整,画笔硬度越小,绘制的边缘越粗糙。画笔绘制速度是指画笔绘制线条时的速度,画笔绘制速度越大,线条绘制的速度越快,画笔绘制速度越小,线条绘制的速度越慢。画笔参数的调整可以改变电子设备100使用画笔绘制运动图画时,线条的显示效果,例如,当画笔颜色发生变化时,电子设备100通过画笔绘制的线条的颜色也会发生改变,当画笔大小发生变化时,电子设备100通过画笔绘制的线条的粗细也会发生改变。Brush parameters include: brush color, brush size, brush shape, brush flow, brush transparency, brush hardness, brush direction, brush drawing speed, etc. Among them, the flow rate of the brush refers to the amount of ink output by the brush. When the flow rate of the brush is larger, the drawn line is thicker and the color is darker. The smaller the flow rate of the brush is, the drawn line is thinner and the color is lighter. Brush hardness refers to the hardness of the brush. The greater the hardness of the brush, the smoother the edge of the drawn line, and the smaller the hardness of the brush, the rougher the edge of the drawn line. The brush drawing speed refers to the speed when the brush draws lines. The larger the brush drawing speed, the faster the line drawing speed, and the smaller the brush drawing speed, the slower the line drawing speed. The adjustment of the brush parameters can change the display effect of the lines when the electronic device 100 uses the brush to draw a moving picture. For example, when the color of the brush changes, the color of the lines drawn by the electronic device 100 through the brush will also change. When the size of the brush changes , the thickness of the line drawn by the electronic device 100 through the brush will also change.
可以理解的是,在电子设备100使用画笔绘制运动图画的一条线条或某一个连续图案时,如果运动数据的改变导致画笔参数发生改变,则电子设备100绘制的该线条或该连续图案包含多个画笔参数绘制的内容,例如,当电子设备100绘制运动图画的一条直线时,当画笔颜色由红色变为绿色,则该直线会包含红色和绿色,且该前半部分绘制的部分直线为红色,后半部分绘制的部分直线为绿色。可选的,该直线的画笔参数可以由开始绘制该直线的运动数据确定,如,即使绘制直线的过程中运动数据变化,由于直线未绘制完成,依旧按照之前确定的画笔参数完成整个直线的绘制。It can be understood that when the electronic device 100 uses a paintbrush to draw a line or a certain continuous pattern of a moving picture, if the change of the motion data causes the parameters of the brush to change, the line or the continuous pattern drawn by the electronic device 100 contains multiple The content drawn by brush parameters, for example, when the electronic device 100 draws a straight line of a motion picture, when the color of the brush changes from red to green, the straight line will contain red and green, and the part of the straight line drawn in the first half is red, and Part of the line drawn in half is green. Optionally, the brush parameters of the straight line can be determined by the motion data that starts to draw the straight line. For example, even if the motion data changes during the drawing of the straight line, since the straight line is not drawn, the drawing of the entire straight line is still completed according to the previously determined brush parameters .
电子设备100根据运动数据调整画笔参数时,可以包括以下几种方式:When the electronic device 100 adjusts brush parameters according to motion data, the following methods may be included:
1)电子设备100根据运动数据的范围调整画笔参数1) The electronic device 100 adjusts brush parameters according to the range of motion data
这时,电子设备100可以获取一段时间内用户的运动数据。电子设备100可以设定运动数据的多个区间范围,当运动数据位于第一区间时,画笔参数使用第一参数,当运动数据位于第二区间时,画笔参数使用第二参数。例如,运动数据为心率,画笔参数为画笔颜色时,电子设备100可以设置当心率值位于65-85时,画笔颜色为红色,当心率值位于85-95时,画笔颜色为绿色。这样,电子设备100绘制的运动图画可以反映用户运动的变化趋势和变化情况,用户可以通过绘制的运动图画,了解运动过程中,运动数据波动情况,从而了解用户的运动是否规律,例如,当电子设备100根据用户的呼吸频率调整画笔大小,如果一段时间内,画笔大小是规律性改变大小(大小交替改变),则说明用户的呼吸规律,如果画笔大小不是规律性改变大小,则说明用户的呼吸不规律。At this time, the electronic device 100 may acquire the user's exercise data within a period of time. The electronic device 100 can set multiple ranges of motion data. When the motion data is in the first range, the brush parameters use the first parameter; when the motion data is in the second range, the brush parameters use the second parameter. For example, when the motion data is heart rate and the brush parameter is the brush color, the electronic device 100 can set the brush color to be red when the heart rate value is between 65-85, and green when the heart rate value is between 85-95. In this way, the motion picture drawn by the electronic device 100 can reflect the changing trend and situation of the user's motion. The user can understand the fluctuation of motion data during the motion process through the motion picture drawn, so as to know whether the user's motion is regular. The device 100 adjusts the size of the brush according to the breathing rate of the user. If the size of the brush changes regularly (changes in size alternately) within a period of time, it indicates the user's breathing pattern. If the size of the brush does not change regularly, it indicates the user's breathing. irregular.
2)电子设备100根据运动数据的具体值确定画笔参数2) The electronic device 100 determines the parameters of the brush according to the specific value of the motion data
这时,电子设备100可以获取某一时刻用户的运动数据。电子设备100可以设定运动数据为第一值时,画笔参数使用第一参数,运动数据为第二值时,画笔参数使用第二参数。例如,运动数据为心率,画笔参数为画笔颜色时,电子设备100可以设置当心率值达到100时,画笔颜色为红色,当心率值达到60时,画笔颜色为绿色。这样,电子设备100绘制的运动图画可以反映用户达成的运动情况,用户可以通过绘制的运动图画,了解运动过程中,运动数据是否达到设定值,从而了解用户的运动是否规范,例如,当电子设备100根据用户的脚的外放幅度调整画笔颜色,并且,电子设备100设置某一外放幅度对应画笔的红色,且该某一外放幅度为不正常的外放幅度,在该外放幅度下用户的跑步姿态不正确,那么,如果画笔颜色变为红色,则说明用户的跑步姿态不正确。At this time, the electronic device 100 may acquire the motion data of the user at a certain moment. The electronic device 100 may set that when the motion data is the first value, the brush parameter uses the first parameter, and when the motion data is the second value, the brush parameter uses the second parameter. For example, when the exercise data is heart rate and the brush parameter is brush color, the electronic device 100 can set the brush color to be red when the heart rate value reaches 100, and the brush color to be green when the heart rate value reaches 60. In this way, the exercise picture drawn by the electronic device 100 can reflect the exercise situation achieved by the user. The user can know whether the exercise data reaches the set value during the exercise process through the drawn exercise picture, so as to know whether the user's exercise is standardized. For example, when the electronic device 100 The device 100 adjusts the color of the brush according to the range of the user's feet, and the electronic device 100 sets a certain range of the range to correspond to the red color of the brush, and the certain range is an abnormal range. If the user's running posture is incorrect, then if the color of the brush turns red, it means that the user's running posture is incorrect.
电子设备100可以根据一个或多个运动数据调整一个或多个画笔参数,具体包括以下几种情况:The electronic device 100 may adjust one or more brush parameters according to one or more motion data, specifically including the following situations:
1)电子设备100根据一个运动数据调整一个画笔参数1) The electronic device 100 adjusts a brush parameter according to a motion data
例如,电子设备100可以根据心率调整画笔颜色。这样,电子设备100可以只获取用户运动过程中的心率,并根据心率调整画笔颜色,这时,电子设备100最终生成的运动图画,可以由多种不同颜色的线条或色块组成。这样,电子设备100生成的运动图画,可以直观地反映用户的一个运动数据的变化情况。For example, the electronic device 100 may adjust the paintbrush color according to the heart rate. In this way, the electronic device 100 can only acquire the user's heart rate during exercise, and adjust the color of the brush according to the heart rate. At this time, the motion picture finally generated by the electronic device 100 can be composed of lines or blocks of various colors. In this way, the motion picture generated by the electronic device 100 can intuitively reflect the change of a piece of motion data of the user.
2)电子设备100根据一个运动数据调整多个画笔参数2) The electronic device 100 adjusts multiple brush parameters according to one motion data
例如,电子设备100可以根据心率调整画笔颜色以及画笔大小。当心率位于第一区间时,画笔颜色为红色,画笔大小为大,当心率位于第二区间时,画笔颜色为绿色,画笔大小为大,当心率位于第三区间时,画笔颜色为绿色,画笔大小为小,当心率位于第三区间时,画笔颜色为红色,画笔大小为小。这样,电子设备100可以根据较少的运动数据获得画面内容较为丰富的运动图画。For example, the electronic device 100 may adjust the color and size of the brush according to the heart rate. When the heart rate is in the first interval, the color of the brush is red and the size of the brush is large. When the heart rate is in the second interval, the color of the brush is green and the size of the brush is large. When the heart rate is in the third interval, the color of the brush is green and the size of the brush is large. The size is small, when the heart rate is in the third interval, the color of the brush is red, and the size of the brush is small. In this way, the electronic device 100 can obtain a motion picture with richer picture content based on less motion data.
3)电子设备100根据多个运动数据调整一个画笔参数3) The electronic device 100 adjusts a brush parameter according to multiple motion data
例如,电子设备100可以根据心率、呼吸频率调整画笔颜色。当心率为第一值,呼吸频率为第二值时,画笔颜色为红色,当心率为第三值,呼吸频率为第四值时,画笔颜色为绿色。这样,电子设备100可以组合多个运动数据来调整一个画笔参数,其中,电子设备100可以选择具有关联性的运动数据进行组合,例如,电子设备100可以结合心率和运动速度来调整画笔参数,速度较大,且心率较高时,可以认为是无氧运动,速度较小,且心率较低时,可以认为是有氧运动,这样,电子设备100可以根据画笔参数的变化区分用户的有氧和无氧运动情况。For example, the electronic device 100 can adjust the brush color according to heart rate and breathing rate. When the heart rate is the first value and the respiratory rate is the second value, the brush color is red; when the heart rate is the third value and the respiratory rate is the fourth value, the brush color is green. In this way, the electronic device 100 can combine multiple motion data to adjust a paintbrush parameter, wherein the electronic device 100 can select relevant motion data to combine, for example, the electronic device 100 can adjust the brush parameters in combination with the heart rate and motion speed, and the speed When the speed is large and the heart rate is high, it can be considered as anaerobic exercise; when the speed is small and the heart rate is low, it can be considered as aerobic exercise. In this way, the electronic device 100 can distinguish the user's aerobic and Anaerobic exercise conditions.
4)电子设备100根据多个运动数据调整多个画笔参数4) The electronic device 100 adjusts multiple brush parameters according to multiple motion data
其中,一个运动数据与一个画笔参数相关联,这种情况下,相当于,电子设备100需要获取多个运动数据,一个运动数据对应一个画笔参数。例如,电子设备100可以根据心率调整画笔颜色,根据运动姿态调整画笔形状,根据运动速度调整画笔大小。这样,不同的运动数据可以调整不同的画笔参数,电子设备100可以生成内容丰富的运动图画,用户可以通过该运动图画了解用户详细的运动情况。Wherein, one piece of motion data is associated with one brush parameter, in this case, it is equivalent to that the electronic device 100 needs to acquire multiple pieces of motion data, and one piece of motion data corresponds to one brush parameter. For example, the electronic device 100 may adjust the color of the brush according to the heart rate, adjust the shape of the brush according to the motion posture, and adjust the size of the brush according to the speed of motion. In this way, different brush parameters can be adjusted for different motion data, and the electronic device 100 can generate a motion picture with rich content, through which the user can learn about the user's detailed motion situation.
在一些实施例中,电子设备100可以存储有运动数据与画笔参数的关系表。电子设备100通过该关系表即可确定运动数据与画笔参数的关联性,并通过查看该关系表,根据运动数据确定画笔。In some embodiments, the electronic device 100 may store a relationship table between motion data and brush parameters. The electronic device 100 can determine the correlation between motion data and brush parameters through the relationship table, and determine the brush according to the motion data by checking the relationship table.
在本申请实施例中,电子设备可以根据第一运动数据确定第一画笔参数,根据第二运动数据确定第二画笔参数,其中,第一画笔参数和第二画笔参数可以是指同一画笔参数中的不同参数大小,例如,第一画笔参数和第二画笔参数都为画笔颜色,第一画笔参数可以是指画笔颜色为红色,第二画笔参数可以是指画笔颜色为绿色。In the embodiment of the present application, the electronic device may determine the first brush parameter according to the first motion data, and determine the second brush parameter according to the second motion data, wherein the first brush parameter and the second brush parameter may refer to the same brush parameter For example, the first brush parameter and the second brush parameter are both brush colors, the first brush parameter may indicate that the brush color is red, and the second brush parameter may indicate that the brush color is green.
S103、电子设备100根据画笔参数调整后的画笔生成运动图画。S103. The electronic device 100 generates a motion picture according to the brush after brush parameter adjustment.
运动图画由画笔绘制的线条组成。这些线条由电子设备100根据运动数据确定的画笔绘出。Motion drawings consist of lines drawn with a brush. These lines are drawn by the brush determined by the electronic device 100 according to the motion data.
电子设备100生成运动图画的方式可以包括以下几种:The manners for the electronic device 100 to generate motion pictures may include the following:
1)电子设备100根据预设的画笔走向绘制运动图画1) The electronic device 100 draws a motion picture according to a preset brush direction
其中,画笔走向描述了画笔绘制的方向以及画笔绘图时的起点和终点所在的位置,例如,电子设备100绘制的内容为矩形时,电子设备100可以预设电子设备100在绘制矩形时,画笔走向为横向向左,此时电子设备100先横向绘制一条直线,之后,画笔走向为纵向向下,此时电子设备100再纵向绘制一条直线,之后,画笔走向为横向向右,电子设备100再横向绘制一条直线,最后,画笔走向为纵向向上,此时电子设备100纵向绘制一条直线,且画笔结束的位置回到画笔开始绘制的位置,这样,电子设备100即可根据画笔走向绘制出一个矩形。Wherein, the direction of the brush describes the direction of the drawing of the brush and the positions of the starting point and the end point of the drawing of the brush. is horizontal to the left, at this time, the electronic device 100 first draws a straight line horizontally, and then the brush moves vertically downward, at this time, the electronic device 100 draws a straight line vertically, and then the brush moves horizontally to the right, and the electronic device 100 moves horizontally Draw a straight line. Finally, the direction of the brush is vertically upward. At this time, the electronic device 100 draws a straight line vertically, and the position where the brush ends returns to the position where the brush starts to draw. In this way, the electronic device 100 can draw a rectangle according to the direction of the brush.
也就是说,电子设备100可以在绘制运动图画之前确定该运动图画的内容。具体地,电子设备100可以包括多个绘图模板,这多个绘图模板用于确定运动图画的内容,绘图模板可以包括:运动、自然、人物、动物、风景等等。这样,电子设备100根据预设的画笔走向绘制运动图画,同时,在绘制的过程中,画笔绘出的线条粗细或色块大小,线条或色块的颜色、形状、透明度等等可以跟随用户的运动数据发生变化。That is, the electronic device 100 may determine the content of the moving picture before drawing the moving picture. Specifically, the electronic device 100 may include multiple drawing templates, which are used to determine the content of the motion picture, and the drawing templates may include: sports, nature, characters, animals, landscapes, and so on. In this way, the electronic device 100 draws a moving picture according to the preset brush direction. At the same time, during the drawing process, the thickness of the line drawn by the brush or the size of the color block, the color, shape, transparency, etc. of the line or color block can follow the user's direction. Movement data changes.
其中,电子设备100可以包括以下几种确定绘图模板的方式:Among them, the electronic device 100 may include the following ways of determining the drawing template:
a)电子设备100随机确定绘图模板a) The electronic device 100 randomly determines the drawing template
这样,电子设备100每次生成的运动图画都具有不确定性,用户在每次结束运动后,都可以查看到随机生成的运动图画,且每次生成的运动图画的内容可能相同也可能不同。In this way, each motion picture generated by the electronic device 100 is uncertain, and the user can view the randomly generated motion picture after each exercise, and the content of each generated motion picture may be the same or different.
b)电子设备100根据用户的选择确定绘图模板b) The electronic device 100 determines the drawing template according to the user's selection
电子设备100可以提供多个绘图模板以供用户选择,用户可以根据自己的喜好选择自己喜欢的绘图模板。这样,电子设备100可以绘制出用户想要的内容,同时该内容的显示效果与用户的运动数据有关。The electronic device 100 may provide multiple drawing templates for the user to choose from, and the user may choose his favorite drawing template according to his preference. In this way, the electronic device 100 can draw the content desired by the user, and at the same time, the display effect of the content is related to the motion data of the user.
参见图5A-图5B,在图5A所示的用户界面中,电子设备100可以提供运动主题设置选项415,该运动主题设置选项415可用于设置运动图画的绘制模板,如图5B所示的运动主题 设置窗口416,运动主题设置窗口416中的绘图模板选择区域416B可用于用户确定运动图画的内容。在电子设备100检测到用户选择第一绘图模板4161B时,运动结束后,电子设备100显示如图5C所示的运动图画,该运动图画的内容为用户选择的第一绘图模板4161B对应的模板。Referring to Figures 5A-5B, in the user interface shown in Figure 5A, the electronic device 100 can provide a sports theme setting option 415, which can be used to set a drawing template for a sports picture, such as the sports theme shown in Figure 5B Theme setting window 416, the drawing template selection area 416B in the motion theme setting window 416 can be used for the user to determine the content of the motion picture. When the electronic device 100 detects that the user selects the first drawing template 4161B, after the exercise ends, the electronic device 100 displays a moving picture as shown in FIG. 5C , and the content of the moving picture is a template corresponding to the first drawing template 4161B selected by the user.
在本申请实施例中,电子设备100接收到用户选择绘图模板的用户操作还可以是指第一操作。In this embodiment of the present application, the electronic device 100 receiving a user operation of selecting a drawing template by the user may also refer to a first operation.
c)电子设备100根据用户信息确定绘图模板c) The electronic device 100 determines the drawing template according to the user information
其中,用户信息可以是指用户年龄,例如,当用户年龄指示运动的用户为青少年时,电子设备100可以确定绘图模板为动漫人物,当用户年龄指示运动的用户为中年人时,电子设备100可以确定绘图模板为风景。用户信息还可以是指用户连续运动的天数,例如,当用户运动的天数越大,电子设备100确定的绘图模板的内容越复杂,当用户只连续运动了3天,电子设备100确定的绘图模板可以为树苗,当用户连续运动了15天,电子设备100确定的绘图模板可以为小树。用户信息还可以是指用户运动时的日期,具体地,当用户运动的日期为节日时,电子设备100可以根据节日确定绘图模板为与节日相关的绘图模板。例如,当用户运动当前为植树节,电子设备100可以选择与树木相关的绘图模板。Wherein, the user information may refer to the age of the user. For example, when the user age indicates that the active user is a teenager, the electronic device 100 may determine that the drawing template is an anime character; when the user age indicates that the active user is a middle-aged person, the electronic device 100 The drawing template can be determined to be landscape. The user information may also refer to the number of days the user has been exercising continuously. For example, the greater the number of days the user has been exercising, the more complex the content of the drawing template determined by the electronic device 100 is. It may be a sapling. When the user has been exercising continuously for 15 days, the drawing template determined by the electronic device 100 may be a small tree. The user information may also refer to the date of the user's exercise. Specifically, when the date of the user's exercise is a festival, the electronic device 100 may determine the drawing template as a drawing template related to the festival according to the festival. For example, when the user activity is currently Arbor Day, the electronic device 100 may select a drawing template related to trees.
可以理解的是,用户信息还可以是指用户的性别、身高、体重等等,本申请实施例对此不作限制。It can be understood that the user information may also refer to the user's gender, height, weight, etc., which is not limited in this embodiment of the present application.
2)电子设备100根据运动数据确定画笔走向,从而绘制运动图画2) The electronic device 100 determines the direction of the brush according to the motion data, so as to draw a motion picture
也就是说,电子设备100完全根据运动数据来绘制运动图画,电子设备100可以将用户的跑步姿态与画笔走向相关联,例如,当用户向左跑,画笔走向向左,当用户向右跑,画笔走向向右。That is to say, the electronic device 100 draws sports pictures completely based on the motion data, and the electronic device 100 can associate the user's running posture with the direction of the brush. For example, when the user runs to the left, the brush moves to the left; when the user runs to the right, The brush moves to the right.
可以理解的是,不限于上述两种生成运动图画的方式,电子设备100还可以不限定运动图画的内容,随机作画,本申请实施例对此不作限制。It can be understood that the electronic device 100 is not limited to the above two ways of generating the moving picture, and the content of the moving picture may be drawn randomly, which is not limited in this embodiment of the present application.
电子设备100可以在以下两种情况下生成运动图画:The electronic device 100 can generate motion pictures in the following two situations:
1)电子设备100在用户运动的过程中生成运动图画1) The electronic device 100 generates a moving picture during the user's movement
这时,电子设备可以在用户运动的过程中实时获取用户的运动数据,并根据用户的运动数据调整画笔参数,同时,电子设备再根据调整后的画笔参数实时绘制运动图画。这样,在用户结束运动后,电子设备可以快速输出运动图画。At this time, the electronic device can obtain the user's motion data in real time during the user's motion, and adjust the brush parameters according to the user's motion data, and meanwhile, the electronic device can draw motion pictures in real time according to the adjusted brush parameters. In this way, after the user ends the exercise, the electronic device can quickly output the exercise picture.
2)电子设备在用户运动结束后生成运动图画2) The electronic device generates a motion picture after the user's motion is over
这时,电子设备可以将用户运动过程中的运动数据存储起来,例如,存储在本地,或者存储在云端服务器,在用户结束运动后再根据存储的运动数据绘制运动图画。这样,电子设备不必等待采集到数据后再绘制图画,缩短电子设备绘制运动图画的跨度时间,另外,用户也可以根据之前运动时采集的运动数据来获得运动图画。At this time, the electronic device may store the exercise data during the user's exercise, for example, locally or in a cloud server, and then draw an exercise picture according to the stored exercise data after the user finishes exercising. In this way, the electronic device does not need to wait for the data to be collected before drawing a picture, which shortens the span time for the electronic device to draw a motion picture. In addition, the user can also obtain a motion picture according to the motion data collected during the previous exercise.
可以理解的是,不限制运动图画的内容,运动图画的内容可以表现为上述提及的人物、动物、风景等图形内容,运动图画的内容还可以表现为文字内容,这时,电子设备100可以使用调整后的画笔绘制文字内容,在电子设备100绘制的过程中,文字的笔画会跟随画笔参数的调整而改变显示效果,电子设备100同样可以预置有多个文字模板,电子设备100可以自动确定文字模板,或根据用户选择确定文字模板,本申请实施例对运动图画的内容的表现形式不做限制。It can be understood that the content of the moving picture is not limited, and the content of the moving picture can be expressed as the above-mentioned graphic content such as characters, animals, and scenery, and the content of the moving picture can also be expressed as text content. At this time, the electronic device 100 can Use the adjusted brush to draw text content. During the drawing process of the electronic device 100, the strokes of the text will follow the adjustment of the brush parameters to change the display effect. The electronic device 100 can also be preset with multiple text templates, and the electronic device 100 can automatically To determine the text template, or to determine the text template according to the user's selection, the embodiment of the present application does not limit the expression form of the content of the motion picture.
S104、电子设备100显示生成的运动图画。S104. The electronic device 100 displays the generated motion picture.
具体地,电子设备100可以在接收到用户结束运动的用户操作后,显示一个用户界面,该用户界面用于显示电子设备100生成的运动图画。Specifically, the electronic device 100 may display a user interface for displaying the motion picture generated by the electronic device 100 after receiving the user operation of the user ending the exercise.
在本申请实施例中,用户结束运动的用户操作还可以是指第三操作。In this embodiment of the present application, the user operation of ending the exercise by the user may also refer to a third operation.
参见图3H-图3I,如图3H所示,电子设备100接收到用户作用于结束运动控件515的触控操作,结束运动,显示如图3I所述的用户界面,如图3I所示,运动展示区612用于展示电子设备100生成的运动图画。Referring to FIG. 3H-FIG. 3I, as shown in FIG. 3H, the electronic device 100 receives the user’s touch operation on the end motion control 515, ends the motion, and displays the user interface as shown in FIG. 3I. As shown in FIG. 3I, the motion The display area 612 is used to display motion pictures generated by the electronic device 100 .
在一些实施例中,在电子设备100生成运动图画之后,电子设备100还可以调整运动图画,例如调整运动图画的绘图风格,在运动图画中添加或删除元素等等。参见图5C-图5E,如图5C所示,在电子设备100显示生成的运动图画后,用户界面61中包括编辑控件612C,该编辑控件612C可用于调整运动图画,如图5D所示,电子设备100显示运动图画的编辑界面,在该编辑界面中,包括调整选项712,电子设备100可以接收到用户作用于调整选项712的操作,调整运动图画的绘图风格,或者在运动图画上进行涂鸦等等。In some embodiments, after the electronic device 100 generates the moving picture, the electronic device 100 may also adjust the moving picture, such as adjusting the drawing style of the moving picture, adding or deleting elements in the moving picture, and so on. Referring to Figures 5C-5E, as shown in Figure 5C, after the electronic device 100 displays the generated motion picture, the user interface 61 includes an edit control 612C, which can be used to adjust the motion picture, as shown in Figure 5D, the electronic The device 100 displays an editing interface of the moving picture, in which the editing interface includes an adjustment option 712, and the electronic device 100 may receive the user's operation on the adjustment option 712, adjust the drawing style of the moving picture, or perform graffiti on the moving picture, etc. Wait.
在一些实施例中,电子设备100生成的运动图画可以以图片的方式展示给用户,例如,如图3I所示的运动图画612A中展示的运动图画。用户可以通过图片更加快速直观地了解到自己运动的情况。In some embodiments, the motion picture generated by the electronic device 100 may be displayed to the user in the form of a picture, for example, the motion picture shown in the motion picture 612A shown in FIG. 3I . Users can quickly and intuitively understand their own sports through pictures.
在另一些实施例中,电子设备100生成的运动图画可以以视频或动图的方式展示给用户,例如,如图6A所示,当电子设备100检测到作用于播放控件614的用户操作时,电子设备100开始播放视频或动图,该视频或动图可用于展示电子设备100生成该运动图画的过程,并依次显示如图6B-图6D所示的用户界面。In some other embodiments, the moving picture generated by the electronic device 100 may be displayed to the user in the form of video or animation, for example, as shown in FIG. The electronic device 100 starts to play a video or animation, which can be used to show the process of the electronic device 100 generating the motion picture, and sequentially display the user interface as shown in FIGS. 6B-6D .
在一些实施例中,电子设备100可以在运动前设置运动目标,这样,当用户运动结束后未完成运动目标时,电子设备100可以显示未完成的运动图画,例如,电子设备100可以只生成绘图模板中,部分内容对应的运动图画,或者,电子设备100可以在运动图画中显示提示信息,提示用户未完成运动目标,当用户在已达到运动目标后,继续运动了一段时间,电子设备100除了显示完整的运动图画外,还可以额外在运动图画上添加贴图、文字等提示信息,提示用户超额完成运动目标。具体关于电子设备100在运动前设置运动目标的用户界面可以参见图3C-图3D所述的用户界面。In some embodiments, the electronic device 100 can set the exercise goal before exercising. In this way, when the user does not complete the exercise goal after exercising, the electronic device 100 can display the picture of the unfinished exercise. For example, the electronic device 100 can only generate the drawing In the template, part of the content corresponds to a sports picture, or the electronic device 100 may display prompt information in the sports picture to remind the user that the sports goal has not been completed. When the user continues to exercise for a period of time after reaching the sports goal, the electronic device 100 will In addition to displaying the complete exercise picture, you can also add additional prompt information such as stickers and text on the exercise picture to remind the user to exceed the exercise goal. For details about the user interface of the electronic device 100 for setting the exercise goal before exercise, refer to the user interface described in FIG. 3C-FIG. 3D.
在一些实施例中,电子设备100在运动结束后,除了展示根据运动数据生成的运动图画外,还可以在运动图画中添加一些元素,使电子设备100展示的运动结果的信息更加丰富,例如,该元素可以为文字提示信息,该文字提示信息可用于提示用户当前已坚持运动的天数,运动排名等等,或者该元素可以为与天气、地标、日期、节日等等相关的图标。另外,当电子设备100以视频或动图的方式展示运动图画时,在运动结束后,电子设备100还可以调整该视频或动图的播放时长或播放速度,或者,截取视频或动图中的部分内容,这样,用户可以自己选择最想保留的部分视频或部分动图,或者,电子设备100可以提供滤镜供用户选择,电子设备100还可以提供背景音乐,用户可以为视频获得动图添加自己想要的背景音乐,使展示的运动图画更加生动有趣,增强用户的可编辑性。In some embodiments, after the exercise ends, the electronic device 100 may add some elements to the exercise picture in addition to displaying the exercise picture generated according to the exercise data, so that the information of the exercise result displayed by the electronic device 100 is richer, for example, The element may be text prompt information, and the text prompt information may be used to remind the user of the current number of days of exercising, exercise ranking, etc., or the element may be icons related to weather, landmarks, dates, festivals, and the like. In addition, when the electronic device 100 displays a moving picture in the form of a video or moving picture, after the movement is over, the electronic device 100 can also adjust the playing time or speed of the video or moving picture, or intercept the video or moving picture Part of the content, so that the user can choose the part of the video or part of the animation that the user wants to keep the most, or the electronic device 100 can provide filters for the user to choose, and the electronic device 100 can also provide background music. The background music you want makes the displayed motion pictures more vivid and interesting, and enhances the editability of users.
下面结合图8介绍本申请实施例中的运动图画生成装置的结构示意图。A schematic structural diagram of a moving picture generation device in an embodiment of the present application will be introduced below with reference to FIG. 8 .
如图8所示,运动图画生成装置包括:采集模块202、调整模块203、绘制模块204、显示模块205。As shown in FIG. 8 , the motion picture generation device includes: a collection module 202 , an adjustment module 203 , a drawing module 204 , and a display module 205 .
其中,确定模块201可用于在用户开始运动之前,确定电子设备100绘制运动图画的绘图模板,该绘图模板描述了电子设备100绘制运动图画的画笔走向,其中,电子设备100可以包含多个绘图模板,确定模块201可以根据用户信息从多个绘制模板中选择用于生成运动 图画的绘制模板,或者,确定模块201可以根据用户的选择从多个绘制模板中选择用于生成运动图画的绘制模板,用户信息可以包括以下一项或多项:用户运动天数、用户运动日期、年龄、性别、身高或体重等等。Among them, the determination module 201 can be used to determine the drawing template for drawing the sports picture by the electronic device 100 before the user starts exercising. , the determining module 201 may select a drawing template for generating a moving picture from a plurality of drawing templates according to user information, or the determining module 201 may select a drawing template for generating a moving picture from a plurality of drawing templates according to user selection, The user information may include one or more of the following: the number of days the user exercises, the date of the user's exercise, age, gender, height or weight, and so on.
采集模块202可用于获取用户运动过程中,电子设备100和/或其他设备采集的运动数据,运动数据包括以下一项或多项:心率、呼吸频率、运动姿态、运动速度、体温、血压、血糖、位置等等。The collection module 202 can be used to obtain motion data collected by the electronic device 100 and/or other devices during the user's motion. The motion data includes one or more of the following: heart rate, breathing rate, motion posture, motion speed, body temperature, blood pressure, blood sugar , location, etc.
调整模块203可用于根据运动数据调整画笔参数,画笔参数包括以下一项或多项:画笔颜色、画笔大小、画笔形状、画笔流量、画笔透明度、画笔硬度、画笔方向、画笔绘制速度等等。The adjustment module 203 can be used to adjust brush parameters according to the 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.
绘制模块204可用于根据调整后的画笔绘制运动图画,该调整后的画笔是指画笔参数调整后的画笔,当画笔参数变化,画笔绘制的线条的显示效果也会发生变化,该显示效果可以是指与画笔参数相关联的颜色、大小、形状、流量、透明度、硬度、方向、绘制速度等等上的变化效果,这样,电子设备100使用变化的画笔参数绘制的运动图画中,包含多条显示效果不同的线条。The drawing module 204 can be used to draw a motion picture according to the adjusted brush. The adjusted brush refers to the brush whose parameters have been adjusted. When the brush parameters change, the display effect of the lines drawn by the brush will also change. The display effect can be Refers to the change effect on the color, size, shape, flow, transparency, hardness, direction, drawing speed, etc. associated with the brush parameters, so that the motion picture drawn by the electronic device 100 using the changed brush parameters includes multiple display Lines with different effects.
显示模块205可用于在用户结束运动后,将绘制的运动图画显示在电子设备100的用户界面中,这样,用户可以根据显示的运动图画,了解用户的运动情况。其中,该运动图画可以以图片、动图、视频等形式进行显示,当显示模块205以动图或视频的形式显示运动图画时,显示模块205可用于显示运动图画的绘制过程。另外,显示模块205还可用于提供多个可供用户选择的控件,用户可以通过这些控件进一步调整运动图画,例如,更改绘图风格、调整视频播放速度、裁剪视频长度、添加贴图、添加滤镜等等。The display module 205 can be used to display the drawn sports picture on the user interface of the electronic device 100 after the user finishes exercising, so that the user can know the user's sports situation according to the displayed sports picture. Wherein, the motion picture can be displayed in the form of picture, animation, video, etc. When the display module 205 displays the motion picture in the form of animation or video, the display module 205 can be used to display the drawing process of the motion picture. In addition, the display module 205 can also be used to provide multiple controls that can be selected by the user, through which the user can further adjust the motion picture, for example, change the drawing style, adjust the video playback speed, crop the video length, add stickers, add filters, etc. Wait.
具体关于运动图画生成装置中的未提及的内容可以参考前述内容,这里不再赘述。For the content not mentioned in the moving picture generating device, reference may be made to the foregoing content, which will not be repeated here.
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。Various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, DSL) or wireless (eg, infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (solid state disk, SSD)), etc.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are realized. The processes can be completed by computer programs to instruct related hardware. The programs can be stored in computer-readable storage media. When the programs are executed , may include the processes of the foregoing method embodiments. The aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, and other various media that can store program codes.
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In a word, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. All modifications, equivalent replacements, improvements, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.

Claims (14)

  1. 一种运动图画生成方法,其特征在于,所述方法包括:A method for generating motion pictures, characterized in that the method comprises:
    所述电子设备获取第一绘图模板,所述第一绘图模板指示画笔走向;The electronic device acquires a first drawing template, and the first drawing template indicates the brush direction;
    所述电子设备获取用户运动过程中的运动数据,所述运动数据包括所述运动过程中第一时间的第一运动数据,和,所述运动过程中第二时间的第二运动数据;The electronic device acquires exercise data during the user's exercise, the exercise data includes first exercise data at a first time during the exercise, and second exercise data at a second time during the exercise;
    所述电子设备根据所述第一运动数据确定第一画笔参数,并使用所述第一画笔参数,根据所述画笔走向,绘制第一内容;The electronic device determines first brush parameters according to the first motion data, and uses the first brush parameters to draw first content according to the direction of the brush;
    所述电子设备根据所述第二运动数据确定第二画笔参数,并使用所述第二画笔参数,根据所述画笔走向,绘制第二内容;其中,所述第一画笔参数与所述第二画笔参数不同;The electronic device determines a second brush parameter according to the second motion data, and uses the second brush parameter to draw second content according to the direction of the brush; wherein, the first brush parameter and the second The brush parameters are different;
    所述电子设备显示运动图画,所述运动图画包括所述第一内容以及所述第二内容。The electronic device displays a moving picture, and the moving picture includes the first content and the second content.
  2. 根据权利要求1所述的方法,其特征在于,所述第一运动数据或所述第二运动数据,包括以下一项或多项:心率、呼吸频率、运动姿态、运动速度、体温、血压、血糖、位置。The method according to claim 1, wherein the first exercise data or the second exercise data include one or more of the following: heart rate, breathing rate, exercise posture, exercise speed, body temperature, blood pressure, Blood sugar, location.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一画笔参数或所述第二画笔参数,包括以下一项或多项:画笔颜色、画笔大小、画笔形状、画笔流量、画笔透明度、画笔硬度、画笔绘制速度或画笔方向。The method according to claim 1 or 2, 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 Draw Speed, or Brush Direction.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述电子设备存储有多个绘图模板,所述绘图模板描述了对应的画笔走向;The method according to any one of claims 1-3, wherein the electronic device stores a plurality of drawing templates, and the drawing templates describe the corresponding brush direction;
    所述电子设备根据所述第一运动数据确定第一画笔参数,并使用所述第一画笔参数,根据所述画笔走向,绘制第一内容,根据第二运动数据确定第二画笔参数,并使用所述第二画笔参数,根据所述画笔走向,绘制第二内容之前,所述方法还包括:The electronic device determines first brush parameters according to the first motion data, and uses the first brush parameters to draw the first content according to the direction of the brush, determines second brush parameters according to the second motion data, and uses The second brush parameter, according to the direction of the brush, before drawing the second content, the method further includes:
    所述电子设备从所述多个绘图模板中选择所述第一绘图模板;The electronic device selects the first drawing template from the plurality of drawing templates;
    所述电子设备将所述第一绘图模板对应的画笔走向,确定为所述画笔走向。The electronic device determines the brush direction corresponding to the first drawing template as the brush direction.
  5. 根据权利要求4所述的方法,其特征在于,所述电子设备从所述多个绘图模板中选择第一绘图模板之前,所述方法还包括:The method according to claim 4, wherein before the electronic device selects a first drawing template from the plurality of drawing templates, the method further comprises:
    所述电子设备显示多个模板选项,所述多个模板选项中包括第一模板选项,所述第一模板选项对应于所述第一绘图模板;The electronic device displays a plurality of template options, the plurality of template options include a first template option, and the first template option 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 acting on 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. 根据权利要求4或5所述的方法,其特征在于,所述电子设备从所述多个绘图模板中选择第一绘图模板,具体包括:The method according to claim 4 or 5, wherein the electronic device selects a first drawing template from the plurality of drawing templates, specifically comprising:
    所述电子设备根据用户信息从所述多个绘图模板中选择第一绘图模板,其中,所述用户信息包括以下一项或多项:用户运动天数、用户运动日期、年龄、性别、身高或体重。The electronic device selects a first drawing template from the plurality of drawing templates according to user information, wherein the user information includes one or more of the following: days of user's exercise, date of user's exercise, age, gender, height or weight .
  7. 根据权利要求1-6任一项所述的方法,其特征在于,电子设备获取用户运动过程中的运动数据之前,所述方法还包括:The method according to any one of claims 1-6, wherein before the electronic device obtains the motion data during the user's motion, the method further includes:
    所述电子设备接收到第二操作,所述第二操作用于触发所述电子设备获取所述运动数据。The electronic device receives a second operation, and the second operation is used to trigger the electronic device to acquire the exercise data.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述电子设备显示运动图画之前,所述方法还包括:The method according to any one of claims 1-7, wherein before the electronic device displays the moving picture, the method further comprises:
    所述电子设备接收到第三操作,所述第三操作用于触发显示所述运动图画。The electronic device receives a third operation, and the third operation is used to trigger display of the motion picture.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述电子设备显示运动图画,具体包括:The method according to any one of claims 1-8, wherein the electronic device displays a motion picture, specifically comprising:
    所述电子设备显示所述运动图画的绘制过程。The electronic device displays a drawing process of the motion picture.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,The method according to any one of claims 1-9, characterized in that,
    所述第一时间为时间点或时间段,所述第二时间为时间点或时间段。The first time is a time point or a time period, and the second time is a time point or a time period.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述运动数据由所述电子设备采集,和/或,与所述电子设备连接的其他设备采集获得。The method according to any one of claims 1-10, wherein the motion data is collected by the electronic device, and/or is collected by other devices connected to the electronic device.
  12. 一种电子设备,包括:显示屏,存储器,一个或多个处理器,多个应用程序,以及一个或多个程序;其中所述一个或多个程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述电子设备实现如权利要求1至11任一项所述的方法。An electronic device, comprising: a display screen, a memory, one or more processors, a plurality of application programs, and one or more programs; 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 implements the method according to any one of claims 1 to 11.
  13. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1至11任一项所述的方法。A computer-readable storage medium, comprising instructions, wherein, when the instructions are run on an electronic device, the electronic device is made to execute the method according to any one of claims 1 to 11.
  14. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得计算机执行如权利要求1至11任一项所述的方法。A computer program product, characterized in that, when the computer program product is run on a computer, the computer is made to execute the method according to any one of claims 1 to 11.
PCT/CN2022/103959 2021-07-07 2022-07-05 Movement picture generation method and electronic device WO2023280169A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110769712.XA CN115599474A (en) 2021-07-07 2021-07-07 Moving picture generation method and electronic device
CN202110769712.X 2021-07-07

Publications (1)

Publication Number Publication Date
WO2023280169A1 true WO2023280169A1 (en) 2023-01-12

Family

ID=84801290

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/103959 WO2023280169A1 (en) 2021-07-07 2022-07-05 Movement picture generation method and electronic device

Country Status (2)

Country Link
CN (1) CN115599474A (en)
WO (1) WO2023280169A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105496396A (en) * 2016-01-06 2016-04-20 罗致远 Portable electrocardiogram (ECG) machine with motion monitoring function
US20160267700A1 (en) * 2015-03-10 2016-09-15 Microsoft Technology Licensing, Llc Generating Motion Data Stories
CN107645701A (en) * 2017-09-12 2018-01-30 咪咕互动娱乐有限公司 A kind of method and device for generating movement locus
CN111258558A (en) * 2020-02-13 2020-06-09 苏宁智能终端有限公司 Coloring processing method and device for motion trail

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160267700A1 (en) * 2015-03-10 2016-09-15 Microsoft Technology Licensing, Llc Generating Motion Data Stories
CN105496396A (en) * 2016-01-06 2016-04-20 罗致远 Portable electrocardiogram (ECG) machine with motion monitoring function
CN107645701A (en) * 2017-09-12 2018-01-30 咪咕互动娱乐有限公司 A kind of method and device for generating movement locus
CN111258558A (en) * 2020-02-13 2020-06-09 苏宁智能终端有限公司 Coloring processing method and device for motion trail

Also Published As

Publication number Publication date
CN115599474A (en) 2023-01-13

Similar Documents

Publication Publication Date Title
WO2020151387A1 (en) Recommendation method based on user exercise state, and electronic device
JP7142783B2 (en) Voice control method and electronic device
CN113727017B (en) Shooting method, graphical interface and related device
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
CN114397983A (en) Application display method and electronic equipment
KR20160119239A (en) Method for displaying content and electronic device therefor
WO2022095788A1 (en) Panning photography method for target user, electronic device, and storage medium
CN110377204B (en) Method for generating user head portrait and electronic equipment
WO2022068819A1 (en) Interface display method and related apparatus
CN113132526B (en) Page drawing method and related device
CN114363460B (en) Motion trail display method, electronic device and readable storage medium
CN108401167A (en) Electronic equipment and server for video playback
WO2022037479A1 (en) Photographing method and photographing system
WO2022095906A1 (en) Key mapping method, electronic device, and system
CN111973980A (en) Virtual pet control method, mobile device and computer storage medium
WO2023280169A1 (en) Movement picture generation method and electronic device
WO2022228043A1 (en) Display method, electronic device, storage medium and program product
CN113542575A (en) Device pose adjusting method, image shooting method and electronic device
WO2022222688A1 (en) Window control method and device
WO2020238894A1 (en) Motion trajectory recording method and related device
KR20160081084A (en) A method for displaying contents and an eletronic device therefor
CN114691946A (en) Data query method and electronic equipment
WO2021089006A1 (en) Digital space management method, apparatus, and device
WO2022063110A1 (en) Message prompting method and electronic device
WO2023030198A1 (en) Annotation method and electronic device

Legal Events

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

Ref document number: 22836918

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22836918

Country of ref document: EP

Kind code of ref document: A1