Focus result view generation method and device, storage medium, and electronic device
By generating a focus state view and a focus result view, and determining the stylus attribute value based on the user's current state, the problem of users not being able to intuitively perceive their focus state is solved, thus improving the personalization of the focus process and user interest.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HANGZHOU NETEASE CLOUD MUSIC TECH CO LTD
- Filing Date
- 2022-10-12
- Publication Date
- 2026-07-31
AI Technical Summary
In existing technologies, users cannot intuitively perceive their own state during the focus process, and cannot clearly know their specific performance and differences during the focus process after the focus ends. This results in a lack of personalized focus results, making it difficult to stimulate the motivation to share and improve product stickiness.
By generating a textured focus state view during the focus process and displaying a focus result view after the focus ends, the textures in the focus state view and focus result view are generated based on the stylus attribute values determined by the user's current state, reflecting the user's focus state and process.
This allows users to understand their performance and differences in real time while focusing, improves interface personalization, and enhances user interest and product stickiness.
Smart Images

Figure CN115630175B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this application relate to the fields of computer and image processing technology, and more specifically, the embodiments of this application relate to a method and apparatus for generating focus result views, a storage medium, and an electronic device. Background Technology
[0002] This section is intended to provide background or context for the embodiments of this application set forth in the claims, and the description herein is not intended to be prior art simply because it is included in this section.
[0003] Flow refers to a psychological state experienced when people are focused on a particular activity. In this state, one typically does not want to be disturbed, also known as resistance to interruption. To help users achieve focus and enter a state of flow, various multimedia objects are usually provided to assist them in focusing. During the focus process, a unified static or dynamic visual background is provided, and the generated focus results usually include summary quantitative data such as focus duration, focus time, and focus score. Summary of the Invention
[0004] However, the actual performance of users was not captured during the focus process, and users could not intuitively perceive their own state. After the focus ended, through the results page, users could not clearly know their specific performance and differences during the focus process. It was not personalized enough and it was difficult to arouse their motivation to share.
[0005] Therefore, there is a great need for an improved method, apparatus, storage medium, and electronic device for generating focus result views, in order to provide a focus result view generation scheme that can intuitively reflect the user's specific state during the focus process.
[0006] In this context, embodiments of this application are intended to provide a data processing method and apparatus, a storage medium, and an electronic device.
[0007] According to one aspect of this application, a method for generating a focus result view is provided, comprising:
[0008] In response to a trigger command on the focus activation control, a focus view corresponding to the user's current state is displayed, the focus view containing a texture generated based on the attribute values of the stylus, and the attribute values of the stylus are determined based on the current state;
[0009] In response to a command to end focus, a focus result view is displayed for the user, which is generated based on textures in the focus state view generated during the focus process.
[0010] In one exemplary embodiment of this application, the method further includes, prior to responding to a trigger instruction on the focus activation control:
[0011] In response to a trigger command on the focus mode control, the focus mode interface is displayed;
[0012] In response to a trigger command on a functional control in the focus mode interface, a focus item configuration event corresponding to the functional control is triggered.
[0013] In one exemplary embodiment of this application, the functional control includes a time setting control;
[0014] The step of triggering a focus item configuration event corresponding to a function control in the focus mode interface in response to a trigger command includes:
[0015] In response to a trigger operation on the time setting control, the countdown duration configuration is triggered to activate the countdown mode.
[0016] In one exemplary embodiment of this application, the method further includes:
[0017] In response to a trigger command on the focus activation control, the countdown mode begins.
[0018] In one exemplary embodiment of this application, after responding to a trigger instruction on the focus activation control, the method further includes:
[0019] Start the countdown in positive timer mode.
[0020] In one exemplary embodiment of this application, the functional control further includes a multimedia settings control;
[0021] The step of triggering a focus item configuration event corresponding to a function control in the focus mode interface in response to a trigger command includes:
[0022] In response to a triggering operation on the multimedia settings control, a multimedia object configuration event is triggered.
[0023] In one exemplary embodiment of this application, displaying a focus view corresponding to the user's current state in response to a trigger command on the focus activation control includes:
[0024] The user's status information is acquired in real time, and the attribute value of the stylus is determined based on the status information;
[0025] The focus view is generated based on the attribute values of the stylus.
[0026] In one exemplary embodiment of this application, the status information includes the motion information of the terminal used by the user and / or the heart rate information of the user; the attribute values of the stylus include the rotational speed of the stylus, the gear depth of the stylus, the gear spacing of the stylus, and the movement speed of the stylus gear.
[0027] In one exemplary embodiment of this application, when the status information is the motion information of the terminal used by the user;
[0028] Determining the attribute value of the stylus based on the status information includes:
[0029] The acceleration value measured by the gyroscope in the terminal is obtained, and the acceleration value is compared with a preset threshold.
[0030] When the acceleration value is less than or equal to the preset threshold, the terminal is determined to be in a stationary state, and the rotational speed of the stylus and the gear depth of the stylus are determined according to the first preset attribute value corresponding to the gyroscope in the stationary state.
[0031] When the motion data is greater than the preset threshold, the terminal is determined to be in motion, and the rotation speed of the stylus and the gear depth of the stylus are determined based on the real-time motion data of the gyroscope.
[0032] In one exemplary embodiment of this application, the real-time motion data includes acceleration and yaw angle;
[0033] The step of determining the rotational speed of the stylus and the gear depth of the stylus based on the real-time motion data of the gyroscope includes:
[0034] The maximum acceleration and maximum deflection angle are obtained. The rotational speed of the stylus is determined based on the maximum acceleration, and the gear depth of the stylus is determined based on the maximum deflection angle.
[0035] In one exemplary embodiment of this application, when the status information is the user's heart rate information;
[0036] Determining the attribute value of the stylus based on the status information includes:
[0037] Obtain the user's heart rate value and compare the heart rate value with the user's resting heart rate;
[0038] When the heart rate value is equal to the resting heart rate, the stylus gear spacing and stylus gear movement speed are determined according to the second preset attribute value corresponding to the normal heart rate range.
[0039] When the heart rate value is greater than the resting heart rate, the stylus gear spacing and stylus gear movement speed are determined based on the heart rate value and the resting heart rate.
[0040] In one exemplary embodiment of this application, determining the stylus gear pitch and stylus gear movement speed based on the heart rate value and the resting heart rate includes:
[0041] The stylus gear spacing is determined based on the heart rate value, the resting heart rate, and the preset gear spacing.
[0042] The heart rate change rate is determined based on the heart rate value and the resting heart rate, and the stylus gear movement speed is determined based on the heart rate change rate.
[0043] In one exemplary embodiment of this application, generating the focus state view based on the attribute values of the stylus includes:
[0044] The stylus is rotated at the same speed as the stylus rotation, and a texture is generated based on the stylus gear depth, the stylus gear spacing, and the stylus gear movement speed. The focus view is then generated based on the texture.
[0045] In one exemplary embodiment of this application, the method further includes, before displaying the user's focus result view:
[0046] In response to the command to end focus, a prompt page is displayed;
[0047] In response to a confirmation control on the prompt page, continue displaying the focused view corresponding to the user's current state; or
[0048] In response to a triggering operation on the cancel control in the prompt page, the focus result view is displayed.
[0049] In one exemplary embodiment of this application, displaying a view of the user's focus results in response to an instruction to end focus includes:
[0050] Generate focus result images based on textures and target images corresponding to different focus durations in the focus state view;
[0051] Obtain the maximum focus duration and use the multimedia object corresponding to the maximum focus duration as the representative object;
[0052] The focus result view is generated based on the focus result image, the representative object, and the text description corresponding to the total focus duration.
[0053] In one exemplary embodiment of this application, generating a focus result image based on textures and target images corresponding to different focus durations in the focus state view includes:
[0054] Obtain multiple image elements that make up the target image, including a target image element with a texture to be configured and containing multiple sub-elements, wherein each sub-element has a different texture configuration level;
[0055] The textures corresponding to different focus durations are sorted from largest to smallest according to the focus duration to form a first sequence;
[0056] The same number of target textures are obtained from the first sequence according to the number of sub-elements, and the target textures are combined with each of the sub-elements according to the corresponding focus duration to generate combined image elements;
[0057] The combined image elements are combined with other image elements besides the target image elements to obtain the focus result image.
[0058] In one exemplary embodiment of this application, combining the target texture with each of the sub-elements according to the corresponding focus duration to generate a combined image element includes:
[0059] Obtain the number of the sub-elements corresponding to each of the texture configuration levels, and sort the numbers from high to low according to the texture configuration level to form a second sequence;
[0060] According to the quantities in the second sequence, the same number of target textures are sequentially obtained from the first sequence, and the combined image elements are generated according to the obtained target textures and the corresponding sub-elements of each texture configuration level.
[0061] In one exemplary embodiment of this application, the method further includes:
[0062] In response to a trigger command on the share control in the focus results view, the focus results view is shared with other user terminals.
[0063] According to one aspect of this application, a focus result view generation apparatus is provided, comprising:
[0064] The display module is used to respond to a trigger command of the focus activation control and display a focus view corresponding to the user's current state. The focus view includes a texture generated based on the attribute values of the stylus, and the attribute values of the stylus are determined based on the current state.
[0065] The display module is also configured to display a focus result view of the user in response to an instruction to end focus, the focus result view being generated based on the texture in the focus state view generated during the focus process.
[0066] According to one aspect of this application, a storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the aforementioned focused result view generation method.
[0067] According to one aspect of this application, an electronic device is provided, comprising:
[0068] Processor; and
[0069] Memory for storing the executable instructions of the processor;
[0070] The processor is configured to execute the focus result view generation method described above by executing the executable instructions.
[0071] According to the focus result view generation method of this application, in response to a trigger command on the focus activation control, a focus state view corresponding to the user's current state is displayed on the display interface. This focus state view includes a texture generated based on the attribute values of the stylus, which are determined according to the user's current state. Then, in response to a command to end focus, a focus result view is displayed, which is generated based on the texture contained in the focus state view generated during the focus process. The focus result view generation method of this application, on the one hand, forms a focus state view based on the texture generated based on the attribute values of the stylus during the focus process. Since the attribute values of the stylus are determined according to the user's current state, the focus state view can clearly reflect the user's focus state in real time, allowing the user to adjust their focus based on the real-time reflection of the focus state view for better focus. On the other hand, a focus result view is generated based on the texture in the focus state view after the focus process ends. This focus result view can vividly reflect the user's focus throughout the entire focus process, while also improving the personalization of the focus interface, thereby increasing user interest and product stickiness. Attached Figure Description
[0072] The above and other objects, features, and advantages of exemplary embodiments of this application will become readily apparent from the following detailed description taken in conjunction with the accompanying drawings. Several embodiments of this application are illustrated in the drawings by way of example and not limitation, in which:
[0073] Figure 1 An exemplary system architecture block diagram illustrating the application of the technical solution of this application is shown schematically;
[0074] Figure 2A flowchart illustrating the focus result view generation method of this application embodiment is shown schematically;
[0075] Figures 3A-3D A schematic diagram illustrating the interface for entering focus according to an embodiment of this application is shown.
[0076] Figure 4 A schematic diagram of the structure of the stylus according to an embodiment of this application is shown;
[0077] Figure 5 The schematic diagram illustrates a process for determining the attribute value of a stylus based on motion information of a terminal device equipped with a music player, according to an embodiment of this application.
[0078] Figure 6 The schematic diagram illustrates a flowchart of an embodiment of this application for determining the attribute value of a stylus based on heart rate information.
[0079] Figure 7 A-7C schematically illustrates interface diagrams with different textures according to embodiments of this application;
[0080] Figure 8 A-8E schematically illustrates interface diagrams with different textures in embodiments of this application;
[0081] Figure 9 A schematic diagram of the interface of the focus result view of the embodiment of this application is shown;
[0082] Figure 10 A schematic diagram of the focus ranking interface according to an embodiment of this application is shown.
[0083] Figure 11 A block diagram of a focus result view generation apparatus according to an embodiment of this application is shown schematically;
[0084] Figure 12 A schematic diagram of a storage medium according to an embodiment of this application is shown.
[0085] Figure 13 A block diagram of an electronic device according to an embodiment of this application is shown schematically.
[0086] In the accompanying drawings, the same or corresponding reference numerals indicate the same or corresponding parts. Detailed Implementation
[0087] The principles and spirit of this application will now be described with reference to several exemplary embodiments. It should be understood that these embodiments are provided merely to enable those skilled in the art to better understand and implement this application, and are not intended to limit the scope of this application in any way. Rather, these embodiments are provided to make this application more thorough and complete, and to fully convey the scope of this application to those skilled in the art.
[0088] Those skilled in the art will understand that the embodiments of this application can be implemented as a system, apparatus, device, method, or computer program product. Therefore, this application can be specifically implemented in the following forms: entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0089] The data involved in this application may be data authorized by the user or fully authorized by all parties. The collection, dissemination, and use of the data shall comply with the requirements of relevant national laws and regulations. The implementation methods / implementation methods of this application may be combined with each other.
[0090] According to embodiments of this application, a method for generating focus result views, a device for generating focus result views, a storage medium, and an electronic device are provided.
[0091] In this document, any number of elements in the accompanying figures is for illustrative purposes and not for limitation, and any naming is for distinction only and has no limiting meaning.
[0092] The principles and spirit of this application are explained in detail below with reference to several representative embodiments. Invention Overview
[0094] The applicant has found that while there are many existing tools for meditation, focus, and sleep, these tools assist users in focusing by providing various sounds and offering a unified static or dynamic visual background during the focus process. They also provide general quantitative data such as focus duration, focus time, and focus score in the final focus results. However, these existing tools do not capture the user's actual performance during the focus process. Users cannot intuitively perceive their own state, and after focus ends, the focus results page does not clearly show the specific performance and differences during the focus process. Furthermore, they lack personalization, making it difficult to motivate sharing and increase user engagement.
[0095] In view of the above, the basic idea of this application is as follows: According to the focus result view generation method and apparatus of this application, a focus state view containing textures is generated based on the user's current state during the focus process, and a focus result view generated based on the textures in the focus state view is displayed after the focus ends. The textures in the focus state view are generated based on the attribute values of the stylus determined by the user's current state. The focus state view reflects the user's real-time focus state during the focus process, while the focus result view reflects the user's focus state throughout the entire focus process. Since the focus state view contains textures generated based on the user's current state, and the focus result view contains textures from the focus state view, both the focus state view and the focus result view can help users clearly understand their specific performance and differences during the focus process. This also enhances the personalization of the interface, further increasing user interest and product stickiness.
[0096] After introducing the basic principles of this application, the various non-limiting embodiments of this application will be described in detail below.
[0097] Exemplary methods
[0098] Before introducing the focus result view generation method in the embodiments of this application, the system architecture for implementing the focus result view in the embodiments of this application will be described first.
[0099] Figure 1 An exemplary system architecture block diagram illustrating the application of the technical solutions of this application is shown.
[0100] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a server 102, and a network 103. The terminal device 101 may include various electronic devices with display screens and sound playback devices, such as smartphones, tablets, laptops, and smart vehicle terminals. The sound playback device may be, for example, an embedded or external speaker, headphones, or other devices capable of sound playback. The server 102 may be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The network 103 may be a communication medium of various connection types capable of providing a communication link between the terminal device 101 and the server 102, such as a wired communication link or a wireless communication link.
[0101] In an exemplary embodiment of this application, terminal device 101 can display an image of a multimedia object selected by the user, a focus state view generated during the focus process, and a focus result view generated after the focus process ends via a display screen. Simultaneously, it can play audio information of the multimedia object selected by the user during the focus process via its own or an externally connected sound playback device. During the focus process, terminal device 101 can collect motion information generated during user operation and send this motion information to server 102 via network 103. Server 102 can determine the attribute values of the stylus based on the motion information, generate a texture based on the stylus attribute values, and then generate a focus state view during the focus process and a focus result view after the focus process ends based on the generated texture. The stylus attribute values affected by the motion information of terminal device 101 include the stylus rotation speed and gear depth.
[0102] In an exemplary embodiment of this application, the system architecture 100 may further include a terminal device 104 capable of detecting a user's heart rate, such as a smart bracelet, a heart rate monitor, etc. After the terminal device 104 detects the user's heart rate and resting heart rate, it can directly send the real-time detected heart rate and the user's resting heart rate to the server 102 or send them to the server 102 through the terminal device 101, so that the server 102 can determine the attribute values of the stylus based on the real-time heart rate and resting heart rate, and generate a texture based on the attribute values of the stylus, and then generate a focus state view during the focus process and a focus result view after the focus ends based on the generated texture. The attribute values of the stylus that can be affected by the heart rate and resting heart rate of the terminal device 101 include the stylus gear pitch and the stylus gear movement speed.
[0103] In an exemplary embodiment of this application, terminal device 101 can also determine the attribute value of the stylus based on the detected motion information, generate a texture based on the stylus attribute value, and then generate a focus state view during the focus process and a focus result view after the focus process ends based on the generated texture. Further, terminal device 101 can receive the user's real-time heart rate and resting heart rate sent by terminal device 104, determine the stylus attribute value based on the motion information, heart rate value, and resting heart rate, generate a texture based on the stylus attribute value, and then generate a focus state view during the focus process and a focus result view after the focus process ends based on the generated texture.
[0104] Furthermore, terminal device 101 and terminal device 104 can be the same terminal device. That is, terminal device 101 can not only play multimedia objects with a player, but also detect motion information through a gyroscope and detect the user's heart rate information, so as to determine the attribute value of the stylus based on the motion information and heart rate information obtained by the terminal device, and generate a focus view and a focus result view based on the texture generated by the stylus attribute value.
[0105] Depending on the implementation requirements, the system architecture in this application embodiment can have any number of terminal devices, networks, and servers. For example, the server can be a server group composed of multiple server devices.
[0106] The following is combined Figure 2 This describes a method for generating a focus result view according to an exemplary embodiment of this application.
[0107] refer to Figure 2 The method for generating the focus result view may include the following steps:
[0108] S210. In response to a trigger command to the focus activation control, display a focus view corresponding to the user's current state, the focus view containing a texture generated based on the attribute values of the stylus, and the attribute values of the stylus being determined based on the current state.
[0109] S220. In response to the instruction to end focus, display the user's focus result view, which is generated based on the texture in the focus state view generated during the focus process.
[0110] In the focus result view generation method of this application, a focus state view containing textures is generated based on the user's current state during the focus process, and a focus result view generated based on the textures in the focus state view is displayed after the focus ends. The textures in the focus state view are generated based on the attribute values of the stylus determined by the user's current state. The focus state view reflects the user's real-time focus state during the focus process, while the focus result view reflects the user's focus state throughout the entire focus process. Since the focus state view contains textures generated based on the user's current state, and the focus result view contains textures from the focus state view, both views help users clearly understand their specific performance and differences during the focus process. This also enhances interface personalization, further increasing user interest and product stickiness.
[0111] In step S210, in response to a trigger command to the focus activation control, a focus view corresponding to the user's current state is displayed, the focus view containing a texture generated based on the attribute values of the stylus, and the attribute values of the stylus are determined based on the current state.
[0112] In an exemplary embodiment of this application, to assist users in entering a state of flow and achieving focus, multimedia objects can be used as auxiliary objects. While the user enjoys the multimedia objects, a focus mode is provided to assist the user in achieving focus. The multimedia object can be audio or video, such as songs, audiobooks, radio broadcasts, music videos, and other videos in various audio and video players. Specifically, the audio and video player can be an audio and video playback application, a live streaming application, an instant messaging application that provides audio and video playback, etc. In addition to providing playback services, the audio and video player also provides focus services; when the user activates the focus mode, it assists the user in achieving focus.
[0113] To facilitate understanding, the following section will use a music player as an example to specifically explain the focus result view generation method in the embodiments of this application.
[0114] In an exemplary embodiment of this application, the focus mode can be activated by triggering the focus activation control. Before triggering the focus activation control, the focus mode in the music player can be activated, and then focus items can be set and the focus activation control can be triggered in the focus mode.
[0115] Figures 3A-3D This diagram illustrates the interface for entering focus, such as... Figure 3A As shown, the music player's playback interface displays information about the currently playing song. It also includes a "Enter Focus" control; triggering this control allows entry into focus mode. Figure 3B As shown, the focus mode interface has one or more functional controls. Triggering these controls triggers focus item configuration events. After completing a focus item configuration event, the focus activation control "Start" in the focus mode interface can be triggered. Responding to this trigger command displays a focus state view generated based on the user's current state, such as... Figure 3C , 3D As shown.
[0116] In an exemplary embodiment of this application, when entering the focus mode interface, the "More" control set in the playback interface can also be triggered. By responding to the trigger command of the "More" control, the options corresponding to the "More" control can be opened, including the "Focus Mode" option. By triggering the control corresponding to the "Focus Mode" option, the focus mode interface can be entered. Of course, other corresponding controls can also be set in the playback interface or the home page of the music player so that the focus mode interface can be entered by responding to the trigger command of the relevant control.
[0117] In an exemplary embodiment of this application, the focus mode interface includes a time setting control, a multimedia setting control, and a focus activation control, such as... Figure 3B As shown, the clock displayed in the Focus Mode interface is the time setting control, and the control corresponding to the "Current Song List" at the top of the Focus Mode interface is the song setting control. The clock is in infinite countdown mode by default, with the time scale set at 00:00. The clock can also be rotated by the user's touch to set the countdown duration and switch the clock mode to countdown mode. That is to say, the clock mode is in forward countdown mode when no countdown duration is set. When the trigger command of the Focus activation control is received, the forward countdown mode can start. When the user actively ends Focus, the countdown ends. In countdown mode, the user does not need to actively end Focus; the countdown will automatically stop and the Focus mode will end when the countdown ends.
[0118] Furthermore, it can also respond to trigger commands to the multimedia settings control to trigger multimedia object configuration events. For a music player, this multimedia settings control is specifically a song settings control, and the multimedia list is specifically a music playlist. By responding to trigger commands to the song settings control, the song settings interface can be displayed. Users can configure the currently playing song, the currently playing song list, etc., on the song settings page. In the embodiments of this application, the specific methods for setting the currently playing song and the currently playing song list are not specifically limited. It is worth noting that the focus configuration and the song playback process do not affect each other. When a user configures a countdown and triggers the focus activation control while listening to music, the currently played song list will continue to play and will not pause due to the countdown configuration or focus activation. When a user sets song settings while listening to music, they can play the selected song or playlist after determining the currently playing song or the currently playing song list. At the same time, when a user configures a focus configuration and triggers the focus activation control while the song playback is paused, they can continue playback by triggering the playback control in the song settings interface, or by triggering the playback control or the focus activation control after selecting the currently playing song or the currently playing song list. Of course, other methods can also be used to set song playback and focus activation in this application embodiment, which will not be described in detail here.
[0119] In an exemplary embodiment of this application, by responding to a trigger command on the focus activation control, a focus view generated based on the user's current state can be displayed on the display interface. This focus view includes a texture generated based on the attribute values of the stylus, which can be determined based on the user's current state. Since the user's current state is variable, the user's state information can be obtained in real time when generating the focus view, and then the attribute values of the stylus can be determined based on the state information, thereby generating the focus view based on the stylus's attribute values.
[0120] In an exemplary embodiment of this application, the focus view is divided into two categories based on the user's current state: one is the focus immersion view (e.g., ...). Figure 3C One type focuses on breaking the state view (such as...) Figure 3D When a user enters a state of focus, a focused immersive view is generated; when the user breaks focus, a focused-broken view is generated. In this embodiment, the user's current state can be reflected by the motion information of the user's terminal device equipped with a music player and / or the heart rate information detected by the user's worn terminal device that can detect the user's heart rate. Accordingly, the attribute value of the stylus can be determined based on the motion information of the terminal device and the user's heart rate information. Further, in this embodiment, when a focused immersive view is generated, the interface only displays the stylus and the song being played; while when a focused-broken view is generated, the interface displays the stylus and the song being played, as well as a playback function control area, in addition to the stylus and song information, to allow the user to perform corresponding operations.
[0121] In an exemplary embodiment of this application, the attribute values of the stylus include the stylus rotation speed, stylus gear depth, stylus gear pitch, and stylus gear movement speed. When generating a texture based on the stylus attribute values, the texture is drawn based on the above four attribute values. In the embodiment of this application, different information affects different attribute values. Specifically, the stylus rotation speed and stylus gear depth can be determined based on the motion information of the terminal device, and the stylus gear pitch and stylus gear movement speed can be determined based on the user's heart rate information.
[0122] To make the technical solution of the embodiments of this application clearer, the structure of the stylus will be described first.
[0123] In an exemplary embodiment of this application, the stylus that generates texture in the focus view is a pointer with multiple stylus gears. One end of the stylus is fixed and the other end rotates. The rotation speed of the stylus, as well as the depth and spacing of the stylus gears, are adjustable. Different textures can be generated based on different stylus rotation speeds, stylus gear depths, stylus gear spacing, and stylus gear movement speeds.
[0124] Figure 4A schematic diagram of the stylus structure is shown, such as Figure 4 As shown, the stylus 400 includes a horizontal shaft 401 and a plurality of stylus gears 402 mounted on the horizontal shaft 401. The distance between two adjacent stylus gears 402 is the stylus gear pitch, and the distance from the end of the stylus gear 402 away from the horizontal shaft 401 is the stylus gear depth.
[0125] Next, we will explain in detail how to determine the attribute values of the stylus.
[0126] In an exemplary embodiment of this application, the terminal device used by the user that is equipped with a music player can specifically be a mobile phone, laptop, iPad, etc., which can play music, and the motion information can specifically be information such as acceleration and deflection angle detected by the gyroscope built into the terminal device. Figure 5 This schematically illustrates a flowchart for determining the attribute values of the stylus based on motion information from a terminal device equipped with a music player, such as... Figure 5 As shown, in step S501, the acceleration value measured in real time by the gyroscope is obtained; in step S502, it is determined whether the terminal is moving based on the acceleration value; in step S503, when it is determined that the terminal is in a stationary state, the rotation speed of the stylus and the gear depth of the stylus are determined based on the first preset attribute value corresponding to the gyroscope in the stationary state; in step S504, when it is determined that the terminal is in a moving state, the rotation speed of the stylus and the gear depth of the stylus are determined based on the real-time motion data of the gyroscope; in step S505, it is determined whether the focus has ended; in step S506, when it is determined that the focus has ended, the detection of the acceleration value is stopped; in step S507, when it is determined that the focus has not ended, steps S501-S506 are continued.
[0127] In step S502, when determining whether the terminal is in motion, the acceleration value can be compared with a preset threshold. When the acceleration value is less than or equal to the preset threshold, the terminal is determined to be in a stationary state. When the acceleration value is greater than the preset threshold, the terminal is determined to be in a moving state. The preset threshold can be set according to actual needs. Since the preset threshold is used to distinguish between a stationary state and a moving state, the preset threshold is a small value, such as 0.3 m / s2, 0.5 m / s2, etc.
[0128] When the terminal is determined to be stationary, the rotation speed of the stylus and the gear depth of the stylus can be set to the first preset attribute value, and a texture can be generated based on the first preset attribute value.
[0129] When the terminal is determined to be in motion, real-time motion data from the gyroscope can be acquired. This real-time motion data includes acceleration and deflection angle. To determine the stylus rotation speed and gear depth, the maximum acceleration and maximum deflection angle can be obtained. The stylus rotation speed is determined based on the maximum acceleration, and the gear depth is determined based on the maximum deflection angle. A texture is then generated based on the determined stylus rotation speed and gear depth. The maximum acceleration is positively correlated with the stylus rotation speed, maximum deflection angle, and gear depth. That is, as the maximum acceleration and maximum deflection angle increase, the stylus rotation speed and gear depth also increase. For example, the maximum acceleration can be directly proportional to the stylus rotation speed, maximum deflection angle, and gear depth. By using a custom scaling factor, the stylus rotation speed and gear depth can be obtained after acquiring the maximum acceleration and maximum deflection angle, based on the custom scaling factor, maximum acceleration, and maximum deflection angle.
[0130] In an exemplary embodiment of this application, the terminal device worn by the user that can detect the user's heart rate may specifically be a smart bracelet, a heart rate monitor, etc., and the detected heart rate information includes the heart rate value. Figure 6 This diagram illustrates the process of determining the attribute values of the stylus based on heart rate information. Figure 6 As shown, in step S601, the user's resting heart rate over a period of time is acquired; in step S602, the user's heart rate value is acquired in real time; in step S603, it is determined whether the heart rate value is equal to the resting heart rate; in step S604, when the heart rate value is equal to the resting heart rate, the stylus gear spacing and stylus gear movement speed are determined according to the second preset attribute value corresponding to the resting heart rate; in step S605, when the heart rate value is less than or greater than the resting heart rate, the stylus gear spacing and stylus gear movement speed are determined according to the heart rate value and the resting heart rate; in step S606, it is determined whether the focus has ended; in step S607, if the focus has ended, the heart rate value detection is stopped; in step S608, if the focus has not ended, steps S602-S607 are repeated.
[0131] Among them, the resting heart rate is the user's heart rate at rest. The normal heart rate of a healthy person is between 60 and 100 beats per minute, but for different people, the resting heart rate is a fixed value. When the heart rate value is the resting heart rate, a texture can be generated according to the second preset attribute value. When the heart rate value is less than or greater than the resting heart rate, the stylus gear spacing and stylus gear movement speed can be determined according to the heart rate value and the resting heart rate.
[0132] In determining the stylus gear spacing and speed based on heart rate and resting heart rate, the stylus gear spacing can be determined based on the heart rate, resting heart rate, and preset gear spacing. Simultaneously, the heart rate change rate can be determined based on the heart rate and resting heart rate, and the stylus gear movement speed can be determined based on the heart rate change rate. Specific calculation formulas are shown in formulas (1)-(3):
[0133] D1=D+(R1-R) / M (1)
[0134] T = |R1 - R| / R (2)
[0135] V = T / M (3)
[0136] Where D is the preset gear pitch, and D = 4px, where px is the pixel value corresponding to the stylus gear pitch displayed on the terminal device's display interface; D1 is the stylus gear pitch; R is the resting heart rate; R1 is the real-time heart rate value; M is a constant, usually set to 10; T is the heart rate change rate; and V is the stylus gear movement speed.
[0137] In an exemplary embodiment of this application, under the real-time gear spacing, the greater the heart rate change rate, the faster the gear moves, and the finer the texture is formed. The gear moves equidistantly to the left and right of the default position as the center point.
[0138] In an exemplary embodiment of this application, when generating a focus view based on the attribute values of the stylus, the stylus can be rotated at the stylus rotation speed, and a texture can be generated based on the stylus gear depth, stylus gear pitch and stylus gear movement speed, and a focus view can be generated based on the texture. It is worth noting that since some terminal devices cannot provide both music playback and heart rate detection functions, when determining the stylus's attribute values, they may only be able to obtain the terminal device's motion information, the user's heart rate information, or the terminal device's operating information and the user's heart rate information. Therefore, different attribute values are generated depending on the information obtained. For example, when only motion information is obtained, the stylus's rotation speed and gear depth can be determined based on the operating information, while the stylus gear pitch and stylus gear movement speed are set to default values. When only heart rate information is obtained, the stylus gear pitch and stylus gear movement speed can be determined based on the heart rate information, while the stylus's rotation speed and stylus gear depth are set to default values. When both motion and heart rate information are obtained, the stylus's rotation speed, stylus gear depth, stylus gear pitch, and stylus gear movement speed are determined based on both the operating and heart rate information.
[0139] based on Figure 4 The diagram shown illustrates the structure of the stylus. Figure 7A-7C shows a schematic diagram of different textures. When the stylus attribute values remain unchanged, the drawn textures are all the same, such as... Figure 7 As shown in Figure A, the generated texture is a set of concentric circles with equal spacing; when the gear depth of the stylus changes, for example, increasing, the generated texture becomes concentric circles composed of deeper rings, such as... Figure 7 As shown in B; when the pitch of the stylus gear increases or decreases, the stylus gear can move left or right along the horizontal axis 601, thereby generating a texture composed of multiple curved loops, such as... Figure 7 As shown in C. Furthermore, the stylus can generate different textures based on different attribute values, such as... Figure 8 The ripples shown in A-8E ( Figure 8 A-8B) and ripples ( Figure 8 (C-8E), and of course, other types of textures can also be generated, but the implementation methods in this application will not be described in detail here. It is worth noting that, Figure 7 The texture shown in A-7C is a texture corresponding to a circle generated based on the attribute values of the same set of styluses. However, in actual applications, there may be different textures within a circle, which changes with the user's state.
[0140] In an exemplary embodiment of this application, during the focus process, multiple textures can be generated based on the user's state information at different times, and different focus state views can be generated based on different textures. Since the durations of each texture are not exactly the same, information such as the textures generated based on the current state of different users and the durations of the textures can be stored so as to generate a focus result view based on the stored information.
[0141] In step S220, in response to an instruction to end focus, a focus result view of the user is displayed, which is generated based on the texture in the focus state view generated during the focus process.
[0142] In an exemplary embodiment of this application, in response to a command to end focus, a focus result view can be generated based on the textures generated during the focus process and displayed on the display interface. Users can understand their overall focus status based on the focus result view. The command to end focus can be triggered by the user or by the system, depending on the timing mode. When the timing mode is a positive timing mode, the user needs to actively trigger the end focus control to activate the command. When the timing mode is a countdown mode, no user intervention is required; the system automatically triggers the end focus command when the countdown ends.
[0143] In an exemplary embodiment of this application, when generating a focus result view, a focus result image is first generated based on textures and target images corresponding to different focus durations in the focus state view. Then, the maximum focus duration is obtained, and the multimedia object corresponding to the maximum focus duration is used as the representative object. Finally, the focus result view is generated based on the focus result image, the representative object, and a text description corresponding to the total focus duration. The target image is the base image used to generate the focus result view. The image information in the focus result image is generated by adding textures to the target image according to preset rules. The target image can be an image randomly selected by the system from a gallery. The representative object is the multimedia object that best reflects the user's focused and immersive state during the focus process. When playing music using a music player, the representative object specifically represents the song.
[0144] When generating focus result images based on textures and target images corresponding to different focus durations in a focus view, the following process can be used:
[0145] In step S1, a variety of image elements that make up the target image are obtained. The image elements include a target image element with a texture to be configured and containing multiple sub-elements. Each sub-element has a texture configuration level that is not completely the same.
[0146] In step S2, the textures corresponding to different focus durations are sorted from largest to smallest according to the focus duration to form a first sequence;
[0147] In step S3, the same number of target textures are obtained from the first sequence according to the number of sub-elements, and the target textures are combined with each of the sub-elements according to the corresponding focus duration to generate combined image elements;
[0148] In step S4, the combined image elements are combined with other image elements besides the target image elements to obtain the focus result image.
[0149] In an exemplary embodiment of this application, the target image contains a variety of image elements, and at least one image element contains multiple sub-elements. Each sub-element has a different texture configuration level. When adding textures, textures of different durations can be added to the corresponding sub-elements according to different texture configuration levels to generate combined image elements. Finally, the combined image elements are combined with other image elements to obtain the focused result image.
[0150] Furthermore, in step S3, the target texture is combined with each of the sub-elements according to the corresponding focus duration to generate a combined image element, which can be achieved through the following process:
[0151] In step S31, the number of sub-elements corresponding to each texture configuration level is obtained, and the number is sorted from high to low according to the texture configuration level to form a second sequence;
[0152] In step S32, the same number of target textures are sequentially obtained from the first sequence according to the quantities in the second sequence, and the combined image elements are generated according to the obtained target textures and the corresponding sub-elements of each texture configuration level.
[0153] In an exemplary embodiment of this application, when generating combined image elements, the texture with the longest duration is added to the sub-element with the highest texture configuration level, and when the same texture configuration level corresponds to multiple sub-elements, the same number of textures are obtained from the first sequence according to the number of multiple sub-elements, and the obtained textures are randomly added to the sub-element corresponding to the texture configuration level.
[0154] To make the technical solution of this application clearer, the following will use "dry landscape garden" as the target image to explain the process of generating the focus result image in the implementation of this application.
[0155] "Dry landscape garden" refers to a garden constructed primarily using white sand and stone assemblies, through the laying of white sand, outlining sand patterns, and placing stone assemblies. Each stone assembly is a target image element with multiple sub-elements and a texture to be configured. Different stone assemblies may correspond to the same texture configuration level or different texture configuration levels. While obtaining the focus result view of the "dry landscape garden," the texture configuration level corresponding to each stone assembly is also obtained. For example, if a "dry landscape garden" has one level-one stone position, two level-two stone positions, and three level-three stone positions, then the stone positions and textures can be combined to form combined image elements. These combined image elements are then combined with other image elements in the "dry landscape garden" besides the stone assemblies to generate the focus result image. In the embodiments of this application, when obtaining the "dry landscape garden" as the target image, different types of stone assemblies can be randomly selected as the stone assemblies in the target image. For example, one or more stone assemblies of types such as "Three-Statue Stone Assembly," "Mount Sumeru Stone Assembly," "Boat Stone," "Crane Stone," and "Turtle Stone" can be selected as the stone assemblies in the "dry landscape garden." This embodiment of the application does not specifically limit this selection.
[0156] When combining stone positions and textures to form a composite image element, firstly, all textures generated during the focus process can be sorted from longest to shortest focus duration to form a first sequence; then, all stone positions can be sorted from highest to lowest texture configuration level to form a second sequence; then, based on the stone positions in the second sequence, the corresponding textures can be sequentially obtained from the first sequence. Specifically, the texture with the longest focus duration can be obtained from the first sequence as the texture corresponding to the first-level stone position, the textures corresponding to the two focus durations after the longest focus duration can be obtained as the textures corresponding to the second-level stone position, and the textures corresponding to the three focus durations after the focus duration of the texture corresponding to the second-level stone position can be obtained as the textures corresponding to the third-level stone position; finally, each level of stone position is combined with its corresponding texture to generate a composite image element; during combination, the corresponding textures are placed around the stone group on each level of stone position as the center.
[0157] Furthermore, the combined image elements can be laid out on the "dry landscape" to form a focused result image. When laying out the combined image elements, they can be laid out randomly or according to preset positions. For example, the stone group corresponding to the first-level stone position can be placed in the center of the target image, the stone group corresponding to the second-level stone position can be placed adjacent to the stone group corresponding to the first-level stone position, the stone group corresponding to the third-level stone position can be placed adjacent to the stone group corresponding to the second-level stone position, or the stone groups corresponding to the first-level stone position, the second-level stone position, and the third-level stone position can be placed sequentially from left to right, etc. The embodiments of this application do not specifically limit this.
[0158] In an exemplary embodiment of this application, after obtaining the focus result image, a text description representing the song and the focus session can be obtained, and a final focus result view can be generated based on the focus result image, the representative song, and the text description. The text description varies depending on the total focus duration. For example, when the total focus duration is 0-15 minutes, the corresponding text description could be "Small achievement" or "Small goal achieved"; when the total focus duration is 16-45 minutes, the corresponding text description could be "You are more patient than before" or "Cure your phone addiction"; when the total focus duration is 46 minutes or more, the corresponding text description could be "Entered a state of complete absorption" or "Undistracted," etc. In embodiments of this application, other different text descriptions can also be set for different focus durations according to actual needs, including but not limited to the text descriptions mentioned above. Different text descriptions can summarize the user's focus session and encourage deeper focus.
[0159] Figure 9 This diagram illustrates the interface of the focus results view, such as... Figure 9As shown, the top of the focus results view displays the total focus time of 65 minutes, the corresponding text description "undistracted", and the representative song "xxxxx" used during this focus process. The bottom of the focus results view displays the focus result image, namely a "dry landscape" with texture. The focus results view also displays the total duration of recent consecutive focus sessions, the cumulative number of songs listened to, and the user's music genre preferences.
[0160] Furthermore, a sharing control is provided in the focus result view. By responding to the trigger command of the sharing control, the currently displayed focus result view can be shared with other user terminals. The focus result view generated by the focus result view generation method according to the embodiment of this application is highly personalized, which can stimulate users' desire to share and retention. By setting the sharing control, users' desire to share can be satisfied on the one hand, and the user base of the product can be expanded and product stickiness can be improved on the other hand. At the same time, a refocus control is also provided at the bottom of the focus result view. By responding to the trigger command of the refocus control, users can refocus, which helps them better adjust their emotions, isolate noise, concentrate their attention, and enter a state of flow.
[0161] In an exemplary embodiment of this application, after responding to the instruction to end focus and before displaying the user's focus result view, a prompt page can be displayed on the display interface. This prompt page prompts the user whether to perform another round of focus. If the user wants to perform another round of focus, they can trigger the confirmation control on the prompt page. By responding to the trigger operation of the confirmation control, the focus state view corresponding to the user's current state continues to be displayed, and motion information or motion information and heart rate information from the user's terminal device continues to be collected. At the same time, the attribute value of the stylus is determined based on the acquired information, and then a texture is drawn based on the attribute value of the stylus to generate a new focus state view. If the user does not want to perform another round of focus, they can trigger the cancel control on the prompt page. By responding to the trigger operation of the cancel control, the user's focus result view is displayed. The user's trigger operation of the confirmation control on the prompt page essentially implements the function of the Pomodoro Technique. The Pomodoro Technique is a time clock that uses the Pomodoro method to manage time. By alternating between focus and rest, it can help users concentrate and improve efficiency, making it a good helper for work and study.
[0162] In an exemplary embodiment of this application, the duration of focus cannot be too short, otherwise a focus result view cannot be generated. Since the focus result view needs to be generated based on a representative object, such as a representative song, the minimum duration of a single focus session should not be less than the playback duration of a song or a multimedia object, for example, not less than 5 minutes. If the user's current total focus time is less than the minimum duration of 5 minutes, a focus end prompt message will be displayed on the display interface. For example, a pop-up message can be displayed at the top of the focus mode interface to remind the user that the current focus time is less than 5 minutes and a focus result view cannot be generated. If the user wants to continue focusing, they can trigger the time setting control in the interface to set a countdown and trigger the focus activation control to start focusing.
[0163] In an exemplary embodiment of this application, in order to enhance the user's belief in focus and help the user enter a state of flow as quickly as possible, focus information of other users who are also focusing can be provided during the user's focus process. The user can switch the interface to a focus ranking interface by triggering the control corresponding to "XX people are with you" set in the focus state view interface. This focus ranking interface displays the avatars, nicknames, rankings, and focus durations of several users with long focus durations. Figure 10 A schematic diagram of the focused ranking interface is shown, such as... Figure 10 As shown, the focus ranking interface displays the avatars, nicknames, rankings, and focus durations of eight users. After viewing the focus ranking interface, users can clearly see their level of focus compared to all focused users, which can further motivate them to maintain focus.
[0164] In an exemplary embodiment of this application, during the process of focusing, the user may experience a network connection loss, accidental page touch, or active pause, causing the display interface to switch to the music player's homepage. In this case, the music player will remind the user on the homepage via pop-ups, message boxes, or other means that the focus has been paused and the duration of focus, and remind the user to return promptly to continue focusing. This lightweight reminder function can help users adjust their emotions, isolate noise, and concentrate their attention, facilitating a smooth transition into a flow state.
[0165] In an exemplary embodiment of this application, all notifications and reminders in the music player can be automatically blocked after responding to the trigger command of the focus activation control, or all notifications and reminders in the music player can be set to silent reminders, so as to help users avoid interference, assist users in concentrating their attention and entering a state of flow.
[0166] It is worth noting that the application scenarios for the focus result view generation method in this application are mainly desktop work scenarios and relaxation scenarios, such as working, studying, gazing into the distance, etc. In these scenarios, users can play multimedia objects selected by themselves through music players or other applications, and use the focus modes provided by the applications to help users adjust their emotions, isolate noise, concentrate their attention, and enter a state of flow. When the user is using focus mode, the user can keep the interface of the terminal device in the focus view and understand their own focus status by observing the texture formed by the stylus in the focus view. If the focus view is a focus immersion view, it means that the user has entered a state of flow and achieved focus, so the user can continue to maintain the current state and focus. If the focus view is a focus breakdown view, it means that the user has broken focus and needs to readjust their state in order to achieve focus and enter a state of flow as soon as possible. Furthermore, users can also view the focus ranking to see the focus status of other users, and by understanding their own ranking, they can motivate themselves to adjust their emotions, concentrate their attention, and achieve focus.
[0167] In summary, the focus result view generation method provided in this application displays a focus state view corresponding to the user's current state in the display interface in response to a trigger command for the focus activation control. This focus state view includes a texture generated based on the stylus's attribute values, which are determined according to the user's current state. Then, in response to a command to end focus, a focus result view is displayed, which is generated based on the texture contained in the focus state view generated during the focus process. The focus result view generation method in this application, on the one hand, forms a focus state view based on the texture generated from the stylus's attribute values during the focus process. Since the stylus's attribute values are determined according to the user's current state, the focus state view can clearly and in real-time reflect the user's focus state, allowing the user to adjust their focus based on the real-time reflection of the focus state view for better focus. On the other hand, it generates a focus result view based on the texture in the focus state view after the focus process ends. This focus result view vividly reflects the user's focus throughout the entire focus process, while also enhancing the personalization of the focus interface, thereby increasing user interest and product stickiness.
[0168] Exemplary device
[0169] After introducing the focus result view generation method of the exemplary embodiments of this application, the following will refer to... Figure 11 The focus result view generation apparatus of exemplary embodiments of this application will be described.
[0170] refer to Figure 11As shown, the focus result view generation device 1100 of the exemplary embodiment of this application may include: a display module 1101, specifically:
[0171] Display module 1101 is configured to display a focus view corresponding to the user's current state in response to a trigger command for a focus activation control. The focus view includes a texture generated based on the attribute values of the stylus, and the attribute values of the stylus are determined based on the current state.
[0172] The display module 1101 is also configured to display a focus result view of the user in response to an instruction to end focus, the focus result view being generated based on the texture in the focus state view generated during the focus process.
[0173] According to an exemplary embodiment of this application, the focus result view generation device 1100 further includes: a first display unit and an event triggering unit;
[0174] The first display unit is used to display the focus mode interface in response to a trigger command for the focus mode control, prior to a trigger command for the focus activation control.
[0175] The event triggering unit is used to respond to the triggering command of the functional control in the focus mode interface and trigger the focus item configuration event corresponding to the functional control.
[0176] According to an exemplary embodiment of this application, the functional control includes a time setting control;
[0177] The event triggering unit includes: a countdown duration configuration unit;
[0178] The countdown duration configuration unit is used to trigger the countdown duration configuration in response to the trigger operation of the time setting control, so as to activate the countdown mode.
[0179] According to an exemplary embodiment of this application, the focus result view generation device 1100 further includes: a first timing unit;
[0180] The first timing unit is used to start the countdown mode in response to a trigger command on the focus activation control.
[0181] In one exemplary embodiment of this application, the focus result view generation device 1100 further includes: a second timing unit;
[0182] The second timing unit is used to start timing in positive timing mode after responding to a trigger command to the focus activation control.
[0183] According to an exemplary embodiment of this application, the functional control further includes a multimedia settings control;
[0184] The event triggering unit includes: a multimedia object configuration unit;
[0185] The multimedia object configuration unit is used to trigger a multimedia object configuration event in response to a triggering operation on the multimedia settings control.
[0186] According to an exemplary embodiment of this application, the display module 1101 includes: an attribute value determination unit and a focus state view generation unit;
[0187] An attribute value determination unit is used to acquire the user's status information in real time and determine the attribute value of the stylus based on the status information.
[0188] A focus view generation unit is used to generate the focus view based on the attribute values of the stylus.
[0189] According to an exemplary embodiment of this application, the status information includes motion information of the terminal used by the user and / or the user's heart rate information; the attribute values of the stylus include the stylus rotation speed, stylus gear depth, stylus gear spacing, and stylus gear movement speed.
[0190] According to an exemplary embodiment of this application, when the status information is motion information of the terminal used by the user;
[0191] The attribute value determination unit includes: a first comparison unit, a first determination unit, and a second determination unit;
[0192] The first comparison unit is used to acquire the acceleration value measured by the gyroscope in the terminal and compare the acceleration value with a preset threshold.
[0193] The first determining unit is used to determine that the terminal is in a stationary state when the acceleration value is less than or equal to the preset threshold, and to determine the rotational speed of the stylus and the gear depth of the stylus according to the first preset attribute value corresponding to the gyroscope in the stationary state.
[0194] The second determining unit is used to determine that the terminal is in motion when the motion data is greater than the preset threshold, and to determine the rotation speed of the stylus and the gear depth of the stylus based on the real-time motion data of the gyroscope.
[0195] According to one exemplary embodiment of this application, the real-time motion data includes acceleration and yaw angle;
[0196] The second determining unit is configured as follows:
[0197] The maximum acceleration and maximum deflection angle are obtained. The rotational speed of the stylus is determined based on the maximum acceleration, and the gear depth of the stylus is determined based on the maximum deflection angle.
[0198] According to an exemplary embodiment of this application, when the status information is the user's heart rate information;
[0199] The attribute value determination unit includes: a second comparison unit, a third determination unit, and a fourth determination unit;
[0200] The second comparison unit is used to obtain the user's heart rate value and compare the heart rate value with the user's resting heart rate.
[0201] The third determining unit is used to determine the stylus gear spacing and stylus gear movement speed according to the second preset attribute value corresponding to the resting heart rate when the heart rate value is equal to the resting heart rate.
[0202] The fourth determining unit is used to determine the stylus gear spacing and stylus gear movement speed based on the heart rate value and the resting heart rate when the heart rate value is less than or greater than the resting heart rate.
[0203] According to an exemplary embodiment of this application, the fourth determining unit is configured as follows:
[0204] The stylus gear spacing is determined based on the heart rate value, the resting heart rate, and the preset gear spacing.
[0205] The heart rate change rate is determined based on the heart rate value and the resting heart rate, and the stylus gear movement speed is determined based on the heart rate change rate.
[0206] According to an exemplary embodiment of this application, the focus-state view generation unit is configured as follows:
[0207] The stylus is rotated at the same speed as the stylus rotation, and a texture is generated based on the stylus gear depth, the stylus gear spacing, and the stylus gear movement speed. The focus view is then generated based on the texture.
[0208] According to an exemplary embodiment of this application, the focus result view generation device 1100 is further configured to:
[0209] Before displaying the user's focus result view, a prompt page is displayed in response to the instruction to end focus;
[0210] In response to a confirmation control on the prompt page, continue displaying the focused view corresponding to the user's current state; or
[0211] In response to a triggering operation on the cancel control in the prompt page, the focus result view is displayed.
[0212] According to an exemplary embodiment of this application, the display module 1101 includes: a focus result image generation unit, an acquisition unit, and a focus result view generation unit;
[0213] A focus result image generation unit is used to generate focus result images based on textures and target images corresponding to different focus durations in the focus state view;
[0214] The acquisition unit is used to acquire the maximum focus duration and use the multimedia object corresponding to the maximum focus duration as the representative object.
[0215] The focus result view generation unit is used to generate the focus result view based on the focus result image, the representative object, and the text description corresponding to the total focus duration.
[0216] According to an exemplary embodiment of this application, the focus result image generation unit includes: a target image element acquisition unit, a first sorting unit, a first combination unit, and a second combination unit;
[0217] The target image element acquisition unit is used to acquire a variety of image elements that make up the target image. The image elements include a target image element with a texture to be configured and containing multiple sub-elements. Each sub-element has a texture configuration level that is not completely the same.
[0218] The first sorting unit is used to sort the textures corresponding to different focus durations from largest to smallest according to the focus duration to form a first sequence;
[0219] The first combination unit is configured to obtain the same number of target textures from the first sequence according to the number of the sub-elements, and combine the target textures with each of the sub-elements according to the corresponding focus duration to generate a combined image element;
[0220] The second combining unit is used to combine the combined image elements with other image elements besides the target image elements to obtain the focus result image.
[0221] According to an exemplary embodiment of this application, the first combined unit includes: a second sorting unit and a texture acquisition unit;
[0222] The second sorting unit is used to obtain the number of the sub-elements corresponding to each of the texture configuration levels, and sort the number of sub-elements from high to low according to the texture configuration level to form a second sequence;
[0223] The texture acquisition unit is configured to sequentially acquire the same number of target textures from the first sequence according to the quantities in the second sequence, and generate the combined image elements according to the acquired target textures and the corresponding sub-elements of each texture configuration level.
[0224] According to an exemplary embodiment of this application, the focus result view generation device 1100 further includes: a sharing module;
[0225] The sharing module is used to share the focus result view with other user terminals in response to a trigger command on the sharing control in the focus result view.
[0226] Since the functional modules of the focus result view generation device in this application are the same as those in the above-described focus result view generation method, they will not be described again here.
[0227] Exemplary storage media
[0228] Having introduced the focus result view generation method and apparatus according to exemplary embodiments of this application, the following references... Figure 12 The storage medium of an exemplary embodiment of this application will be described.
[0229] refer to Figure 12 As shown, a program product 1200 for implementing the above-described method according to an embodiment of this application is described. It may employ a portable compact disc read-only memory (CD-ROM) and include program code, and can run on a device such as a personal computer. However, the program product of this application is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0230] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0231] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.
[0232] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0233] Program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0234] Exemplary electronic devices
[0235] After introducing the storage medium of exemplary embodiments of this application, the following references are made. Figure 13 An electronic device according to an exemplary embodiment of this application will be described.
[0236] Figure 13 The electronic device 1300 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0237] like Figure 13 As shown, the electronic device 1300 is manifested in the form of a general-purpose computing device. The components of the electronic device 1300 may include, but are not limited to: at least one processing unit 1310, at least one storage unit 1320, a bus 1330 connecting different system components (including storage unit 1320 and processing unit 1310), and a display unit 1340.
[0238] The storage unit stores program code that can be executed by the processing unit 1310, causing the processing unit 1310 to perform the steps described in the "Exemplary Methods" section above, according to various exemplary embodiments of this application. For example, the processing unit 1310 can at least perform the following: Figure 2 Steps S210 to S220 shown can, of course, also be performed as follows: Figure 5 Steps S501-S506 shown, and Figure 6 The steps S601-S607 shown in the figures, as well as other steps not described in the figures.
[0239] Storage unit 1320 may include volatile storage units, such as random access memory (RAM) 13201 and / or cache memory 13202, and may further include read-only memory (ROM) 13203.
[0240] Storage unit 1320 may also include a program / utility 13204 having a set (at least one) of program modules 13205, such program modules 13205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0241] Bus 1330 may include a data bus, an address bus, and a control bus.
[0242] Electronic device 1300 can also communicate with one or more external devices 1400 (e.g., keyboard, pointing device, Bluetooth device, etc.) via input / output (I / O) interface 1350. Electronic device 1300 also includes a display unit 1340 connected to input / output (I / O) interface 1350 for display purposes. Furthermore, electronic device 1300 can communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 1360. As shown, network adapter 1360 communicates with other modules of electronic device 1300 via bus 1330. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 1300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0243] It should be noted that although several modules or sub-modules of the audio playback device and audio sharing device are mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided and embodied by multiple units / modules.
[0244] Furthermore, although the operations of the method of this application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0245] While the spirit and principles of this application have been described with reference to several specific embodiments, it should be understood that this application is not limited to the disclosed specific embodiments, and the division of aspects does not imply that features in these aspects cannot be combined for benefit; such division is merely for convenience of expression. This application is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims
1. A focused outcome view generation method characterized by, include: In response to a trigger command on the focus activation control, a focus view corresponding to the user's current state is displayed, the focus view containing a texture generated based on the attribute values of the stylus, and the attribute values of the stylus are determined based on the current state; In response to a command to end focus, a focus result view is displayed for the user, which is generated based on the texture in the focus state view generated during the focus process; The step of displaying a view of the user's focus results in response to a command to end focus includes: Generate focus result images based on textures and target images corresponding to different focus durations in the focus state view; Obtain the maximum focus duration and use the multimedia object corresponding to the maximum focus duration as the representative object; The focus result view is generated based on the focus result image, the representative object, and the text description corresponding to the total focus duration.
2. The method according to claim 1, characterized in that, Prior to responding to a trigger instruction on the focus-activated control, the method further includes: In response to a trigger command on the focus mode control, the focus mode interface is displayed; In response to a trigger command on a functional control in the focus mode interface, a focus item configuration event corresponding to the functional control is triggered.
3. The method according to claim 2, characterized in that, The functional controls include a time setting control; The step of triggering a focus item configuration event corresponding to a function control in the focus mode interface in response to a trigger command includes: In response to a trigger operation on the time setting control, the countdown duration configuration is triggered to activate the countdown mode.
4. The method according to claim 3, characterized in that, The method further includes: In response to a trigger command on the focus activation control, the countdown mode begins.
5. The method according to claim 1, characterized in that, Following a trigger instruction on the focus activation control, the method further includes: Start the countdown in positive timer mode.
6. The method according to claim 2, characterized in that, The functional controls also include multimedia settings controls; The step of triggering a focus item configuration event corresponding to a function control in the focus mode interface in response to a trigger command includes: In response to a triggering operation on the multimedia settings control, a multimedia object configuration event is triggered.
7. The method according to claim 1, characterized in that, The step of displaying a focus view corresponding to the user's current state in response to a trigger command on the focus activation control includes: The user's status information is acquired in real time, and the attribute value of the stylus is determined based on the status information; The focus view is generated based on the attribute values of the stylus.
8. The method according to claim 7, characterized in that, The status information includes the motion information of the terminal used by the user and / or the user's heart rate information; the attribute values of the stylus include the stylus rotation speed, stylus gear depth, stylus gear spacing, and stylus gear movement speed.
9. The method according to claim 8, characterized in that, When the status information is the motion information of the terminal used by the user; Determining the attribute value of the stylus based on the status information includes: The acceleration value measured by the gyroscope in the terminal is obtained, and the acceleration value is compared with a preset threshold. When the acceleration value is less than or equal to the preset threshold, the terminal is determined to be in a stationary state, and the rotational speed of the stylus and the gear depth of the stylus are determined according to the first preset attribute value corresponding to the gyroscope in the stationary state. When the acceleration value is greater than the preset threshold, the terminal is determined to be in motion, and the rotation speed of the stylus and the gear depth of the stylus are determined based on the real-time motion data of the gyroscope.
10. The method according to claim 9, characterized in that, The real-time motion data includes acceleration and yaw angle; The step of determining the rotational speed of the stylus and the gear depth of the stylus based on the real-time motion data of the gyroscope includes: The maximum acceleration and maximum deflection angle are obtained. The rotational speed of the stylus is determined based on the maximum acceleration, and the gear depth of the stylus is determined based on the maximum deflection angle.
11. The method according to claim 8, characterized in that, When the status information is the user's heart rate information; Determining the attribute value of the stylus based on the status information includes: Obtain the user's heart rate value and compare the heart rate value with the user's resting heart rate; When the heart rate value is equal to the resting heart rate, the stylus gear spacing and stylus gear movement speed are determined according to the second preset attribute value corresponding to the resting heart rate; When the heart rate value is less than or greater than the resting heart rate, the stylus gear spacing and stylus gear movement speed are determined based on the heart rate value and the resting heart rate.
12. The method according to claim 11, characterized in that, The step of determining the stylus gear spacing and stylus gear movement speed based on the heart rate value and the resting heart rate includes: The stylus gear spacing is determined based on the heart rate value, the resting heart rate, and the preset gear spacing. The heart rate change rate is determined based on the heart rate value and the resting heart rate, and the stylus gear movement speed is determined based on the heart rate change rate.
13. The method according to any one of claims 8-12, characterized in that, The step of generating the focus state view based on the attribute values of the stylus includes: The stylus is rotated at the same speed as the stylus rotation, and a texture is generated based on the stylus gear depth, the stylus gear spacing, and the stylus gear movement speed. The focus view is then generated based on the texture.
14. The method according to claim 1, characterized in that, Before displaying the user's focus results view, the method further includes: In response to the command to end focus, a prompt page is displayed; In response to a confirmation control on the prompt page, continue displaying the focused view corresponding to the user's current state; or In response to a triggering operation on the cancel control in the prompt page, the focus result view is displayed.
15. The method according to claim 1, characterized in that, The step of generating a focus result image based on textures and target images corresponding to different focus durations in the focus state view includes: Obtain multiple image elements that make up the target image, including a target image element with a texture to be configured and containing multiple sub-elements, wherein each sub-element has a different texture configuration level; The textures corresponding to different focus durations are sorted from largest to smallest according to the focus duration to form a first sequence; The same number of target textures are obtained from the first sequence according to the number of sub-elements, and the target textures are combined with each of the sub-elements according to the corresponding focus duration to generate combined image elements; The combined image elements are combined with other image elements besides the target image elements to obtain the focus result image.
16. The method according to claim 15, characterized in that, The step of combining the target texture with each of the sub-elements according to the corresponding focus duration to generate combined image elements includes: Obtain the number of the sub-elements corresponding to each of the texture configuration levels, and sort the numbers from high to low according to the texture configuration level to form a second sequence; According to the quantities in the second sequence, the same number of target textures are sequentially obtained from the first sequence, and the combined image elements are generated according to the obtained target textures and the corresponding sub-elements of each texture configuration level.
17. The method according to claim 1, characterized in that, The method further includes: In response to a trigger command on the share control in the focus results view, the focus results view is shared with other user terminals.
18. A focused result view generation device, characterized in that, include: The display module is used to respond to a trigger command of the focus activation control and display a focus view corresponding to the user's current state. The focus view includes a texture generated based on the attribute values of the stylus, and the attribute values of the stylus are determined based on the current state. The display module is also configured to display a focus result view of the user in response to an instruction to end focus, the focus result view being generated based on the texture in the focus state view generated during the focus process; The display module includes a focus result image generation unit, an acquisition unit, and a focus result view generation unit. The focus result image generation unit is used to generate focus result images based on textures and target images corresponding to different focus durations in the focus state view; The acquisition unit is used to acquire the maximum focus time and use the multimedia object corresponding to the maximum focus time as the representative object. The focus result view generation unit is used to generate the focus result view based on the focus result image, the representative object, and the text description corresponding to the total focus time.
19. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the focus result view generation method according to any one of claims 1 to 17.
20. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the focus result view generation method of any one of claims 1 to 17 by executing the executable instructions.