Massage operation mode storage method, electronic device, and storage medium
By identifying the user in the massager and pushing a matching operation mode list, the problem of inaccurate mode storage in the massager is solved, and accurate storage of massage operation modes and continuity of user experience are achieved.
Patent Information
- Application Number
- CN202010917374.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-03
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2040-09-03
AI Technical Summary
Existing massage devices have a problem of low accuracy when storing massage operation modes between different users, which makes it easy for the modes of different users to be confused.
By identifying the current user in the current working mode, pushing the operation mode list that matches the user identity, and storing the selected operation mode to the corresponding user identity when exiting the mode, accurate storage of the massage operation mode is achieved.
Improved the storage accuracy of massage operation modes, avoiding mode confusion under different user identities, and ensuring that users can continue to use the application without specifically exiting the current working mode.
Smart Images

Figure CN112000726B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a method for storing massage operation modes, an electronic device, and a storage medium. Background Art
[0002] In recent years, more and more people are using massagers to massage prone areas such as the shoulders, neck, and waist to relieve the discomfort caused by long-term desk work. Current massagers can be used in conjunction with apps, which can also set multiple different operating modes (such as Dad Mode and Mom Mode). However, in practice, it has been found that massager operating modes saved by different users in the same operating mode will be confused with each other, resulting in low accuracy in stored massage operating modes. Summary of the Invention
[0003] The embodiments of the present application disclose a method for storing massage operation modes, an electronic device, and a storage medium, which can improve the accuracy of storing massage operation modes.
[0004] A first aspect of an embodiment of the present application provides a method for storing a massage operation mode, the method comprising:
[0005] In the current working mode, the current user is identified and the current user identity is obtained;
[0006] Pushing an operation mode list matching the current user identity, the operation mode list including one or more massage operation modes;
[0007] When exiting the current working mode, the massage operating mode selected in the operating mode list is stored in the working mode corresponding to the current user identity.
[0008] As an optional implementation manner, in the first aspect of the embodiment of the present application, after obtaining the current user identity, the method further includes:
[0009] If the current user identity is a legitimate user corresponding to the current working mode, an operating mode list matching the current user identity is determined according to the massage operating mode preset in the current working mode.
[0010] As an optional implementation, in the first aspect of the embodiment of the present application, the method also includes: if the current user identity is a legitimate user corresponding to the current working mode, when exiting the current working mode, outputting a first key setting prompt for the current working mode to prompt the user to enter key setting information; obtaining the input first key setting information, and completing the key setting for the current working mode according to the first key setting information.
[0011] As an optional implementation manner, in the first aspect of the embodiment of the present application, after obtaining the current user identity, the method further includes:
[0012] If the current user identity is an illegal user corresponding to the current working mode, the operation mode list matching the current user identity and the working mode corresponding to the current user identity are directly obtained.
[0013] As an optional implementation manner, in the first aspect of the embodiment of the present application, the method further includes:
[0014] If the current user identity is an illegal user corresponding to the current working mode, when exiting the current working mode, a second key setting prompt for the working mode corresponding to the current user identity is output to prompt the user to enter key setting information; if a confirmation instruction for the second key setting prompt is detected, the current working mode is switched to the working mode matching the current user identity; in the working mode matching the current user identity, the input second key setting information is obtained, and the key setting for the working mode matching the current user identity is completed according to the second key setting information.
[0015] As an optional implementation manner, in the first aspect of the embodiment of the present application, identifying the current user in the current working mode to obtain the current user identity includes:
[0016] In the current working mode, obtain the portrait picture of the current user taken by the shooting device; identify the facial information in the portrait picture; perform facial attribute recognition on the facial information to obtain the user attributes of the current user; match the user attributes with the attribute conditions preset in the current working mode to obtain the current user identity.
[0017] As an optional implementation manner, in the first aspect of the embodiment of the present application, the user attributes include user age; and matching the user attributes with attribute conditions preset in the current working mode to obtain the current user identity includes:
[0018] The user age is matched with the age range preset for the current working mode; if the user age does not match the age range, the current user is identified as an illegal user corresponding to the current working mode as the current user identity; if the user age matches the age range, the current user is identified as a legal user corresponding to the current working mode as the current user identity.
[0019] As an optional implementation manner, in the first aspect of the embodiment of the present application, the user attributes include user age and user gender; and matching the user attributes with the attribute conditions preset in the current working mode to obtain the current user identity includes:
[0020] Matching the user's age with the age range preset for the current working mode, and matching the user's gender with the gender condition preset for the current working mode;
[0021] If the user age does not match the age range, and the user gender does not match the gender condition, the current user is identified as an illegal user corresponding to the current working mode, and the identification is used as the current user identity;
[0022] If the user age matches the age range and the user gender matches the gender condition, the current user is identified as a legitimate user corresponding to the current working mode as the current user identity.
[0023] As an optional implementation manner, in the first aspect of the embodiment of the present application, before identifying the current user in the current working mode, the method further includes:
[0024] When the target application is started, the working modes corresponding to multiple different user identities are output, and the target application is an application for controlling the operation of the massage device; the selected working mode among the working modes corresponding to the multiple different user identities is obtained as the current working mode; and the current working mode is started.
[0025] As an optional implementation, in the first aspect of the embodiment of the present application, after starting the current working mode, the method also includes: in the current working mode, only displaying page content related to the current working mode in the page of the target application.
[0026] As an optional implementation, in the first aspect of the embodiment of the present application, the operation mode list includes a local mode list and an online mode list; and the pushing of the operation mode list matching the current user identity includes:
[0027] Pushing the local mode list; detecting the evaluation result of the current user on the local mode list; if the evaluation result is an unsatisfactory evaluation, obtaining the online mode list under network conditions; and pushing the online mode list.
[0028] As an optional implementation manner, in the first aspect of the embodiment of the present application, detecting the current user's evaluation result of the local mode list includes:
[0029] Detecting a number of refreshes of the local mode list; and determining an evaluation result of the current user on the local mode list according to the refresh number.
[0030] As an optional implementation manner, in the first aspect of the embodiment of the present application, determining the current user's evaluation result of the local mode list based on the refresh number includes:
[0031] If the refresh times reach a preset number, it is determined that the evaluation result of the current user on the local mode list is unsatisfactory.
[0032] As an optional implementation manner, in the first aspect of the embodiment of the present application, after pushing the online mode list, the method further includes:
[0033] When a trial operation for any online massage operation mode in the online mode list is detected, the massage device is controlled to operate in the online massage operation mode corresponding to the trial operation within a preset time period.
[0034] As an optional implementation manner, in the first aspect of the embodiment of the present application, obtaining the online mode list under an online condition includes:
[0035] Acquire multiple online massage operation modes under networking conditions; acquire the sorting priority corresponding to each online massage operation mode; and sort the multiple online massage operation modes according to the sorting priority of each online massage operation mode to obtain an online mode list.
[0036] As an optional implementation, in the first aspect of the embodiment of the present application, obtaining the sorting priority corresponding to each online massage operation mode includes:
[0037] Obtain the number of downloads and / or runs corresponding to each online massage operation mode; determine the sorting priority corresponding to each online massage operation mode based on the number of downloads and / or runs corresponding to each online massage operation mode; wherein the sorting priority corresponding to each online massage operation mode is positively correlated with the number of downloads and the number of runs.
[0038] As an optional implementation manner, in the first aspect of the embodiment of the present application, after pushing the online mode list, the method further includes:
[0039] When an operation of using a target massage operation mode in the online mode list is detected, the network download authority of the current user is verified; if the current user has the network download authority, the target massage operation mode is downloaded, and the massage device is controlled to operate according to the target massage operation mode.
[0040] As an optional implementation manner, in the first aspect of the embodiment of the present application, after verifying the network download authority of the current user, the method further includes:
[0041] If the current user does not have the network download permission, an unauthorized prompt and a numerical resource transfer page are output; if a transfer completion instruction is received on the numerical resource transfer page, the target massage operation mode is downloaded, and the massage device is controlled to operate according to the target massage operation mode.
[0042] As an optional implementation manner, in the first aspect of the embodiment of the present application, verifying the network download authority of the current user includes:
[0043] The online shared massage operation mode and the number of downloads of the online shared massage operation mode in the working mode corresponding to the current user identity are detected; if the number of downloads reaches a preset number, it is determined that the current user has network download authority.
[0044] As an optional implementation, in the first aspect of the embodiment of the present application, after storing the massage operation mode selected from the operation mode list into the working mode corresponding to the current user identity, the method further includes:
[0045] When entering the working mode corresponding to the current user identity, the sorting priority of each massage operation mode stored in the working mode corresponding to the current user identity is obtained; and each stored massage operation mode is sorted according to the sorting priority of each stored massage operation mode.
[0046] As an optional implementation manner, in the first aspect of the embodiment of the present application, obtaining the sorting priority of each massage operation mode stored in the working mode corresponding to the current user identity includes:
[0047] According to the downloading order of each massage operation mode stored in the working mode corresponding to the current user identity, the sorting priority of each stored massage operation mode is obtained; wherein the sorting priority of each stored massage operation mode is related to the downloading order.
[0048] According to a second aspect of an embodiment of the present application, an electronic device is provided, comprising:
[0049] The identity recognition module is used to identify the current user in the current working mode and obtain the current user identity;
[0050] A push module, configured to push an operation mode list matching the current user identity, wherein the operation mode list includes one or more massage operation modes;
[0051] The storage module is used to store the massage operation mode selected in the operation mode list into the operation mode corresponding to the current user identity when exiting the current operation mode.
[0052] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising:
[0053] one or more memories;
[0054] One or more processors, configured to execute one or more computer programs stored in the one or more memories to perform the method as described in the first aspect of the present application.
[0055] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect of the present application.
[0056] A fifth aspect of the embodiments of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect of the present application.
[0057] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0058] In an embodiment of the present application, under current working conditions, by identifying the current user and obtaining the current user identity, a list of operating modes matching the current user identity can be pushed, and the operating mode list includes one or more massage operating modes. When exiting the current working mode, the massage operating mode selected for operation in the operating mode list is stored in the working mode corresponding to the current user identity. Therefore, when the user accidentally clicks on a working mode that does not match their own, the user does not need to specifically exit the current working mode, and a list of operating modes matching the user identity can still be provided for the user to select, without affecting the user's continued use of the application. In addition, when exiting the current working mode, the massage operating mode selected for operation in the operating mode list is automatically stored in the working mode corresponding to the user identity, which improves the accuracy of storing massage operating modes and prevents confusion between massage operating modes saved by different user identities. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0060] Figure 1 Schematic diagram of a scenario in which the embodiments of the present application are applied;
[0061] Figure 2 This is a flow chart of a method for storing a massage operation mode disclosed in an embodiment of the present application;
[0062] Figure 3 is a flow chart of another method for storing massage operation modes disclosed in an embodiment of the present application;
[0063] Figure 4 This is a schematic diagram of an interface for a user to download a massage operation mode in an embodiment of the present application;
[0064] Figure 5 is a flow chart of another method for storing massage operation modes disclosed in an embodiment of the present application;
[0065] Figure 6 is a flow chart of another method for storing massage operation modes disclosed in an embodiment of the present application;
[0066] Figure 7 This is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
[0067] Figure 8 It is a structural diagram of another electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0068] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0069] It should be noted that the terms "first," "second," "third," "fourth," etc. in the specification and claims of this application are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of this application, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or are inherent to these processes, methods, products, or apparatuses.
[0070] The present application discloses a method for storing massage operation modes, an electronic device, and a storage medium, which can improve the accuracy of storing massage operation modes. Detailed description is provided below with reference to the accompanying drawings.
[0071] In order to better understand the storage method of the massage operation mode disclosed in the embodiment of the present application, the following first describes the scene diagram used in the embodiment of the present application. In the embodiment of the present application, the terminal device can establish a communication connection with one or more massage devices, which is not specifically limited.
[0072] See also Figure 1 , Figure 1 This is a schematic diagram of the scenario used in the embodiment of this application. Figure 1 As shown, the terminal device 10 can establish a communication connection with the massage device 12 and exchange data. It should be understood that Figure 1 The terminal device 10 is connected to only one massage device 12. This is only an example and does not limit the number of massage devices. For ease of understanding, the following description will be taken as an example of massage device 12, and the description of massage device 12 is applicable to other massage devices.
[0073] In the embodiment of the present application, the terminal device 10 may include a smart phone, a wearable device, a vehicle-mounted terminal, a portable terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a laptop, a note pad, a wireless broadband (WiBro) terminal, a tablet computer (personal computer, PC) and a smart PC, etc., without specific limitation. Figure 1 In the embodiment, the terminal device 10 is a smart phone, which is only an example and does not limit the type of the terminal device 10. For ease of understanding, the following description is based on the case where the terminal device 10 is a smart phone.
[0074] In the embodiment of the present application, the massage device 12 may include a neck massage device, a waist massage device, or an eye massage device, etc., without specific limitation. The massage device 12 may include a massage component 121, which can act on a part of the user's body, such as the user's skin, joints, etc., to provide a massage service. In the embodiment of the present application, the massage component 121 may include at least an electrical stimulation module. The electrical stimulation module may be provided with at least two electrodes, which can output a current signal through the electrodes and act on a part of the human body to produce an electrical stimulation massage effect.
[0075] In some implementations, the terminal device 10 may be installed with a target application for controlling the operation of the massage device 12. When the target application is running, the terminal device 10 may establish a communication connection with the massage device 12 bound to the target application through wireless communication, thereby obtaining various operation data of the massage device 12 during operation to be displayed in the interface of the target application. Wireless communication methods may include but are not limited to Bluetooth communication, mobile communication, and wireless Internet (wireless fidelity, WIFI) communication. The operation data may include the device identification of the massage device 12 (such as device number and device name), operation status (such as on state, off state and working state), massage mode, intensity level and heating temperature (such as 37°C to 42°C), without specific limitation.
[0076] The current signal output by the electrical stimulation module is specifically related to the massage mode. Massage modes correspond to different massage effects, including but not limited to kneading mode, tapping mode, automatic mode, soothing mode, and deep massage mode. For example, if the massage mode is automatic, the massage device 12 may output a continuous current signal with a stable frequency to simulate a series of moderately forceful massage effects. If the massage mode is soothing mode, the massage device 12 may output a current signal with a slowly increasing frequency to simulate sporadic, gentle tapping massage effects. The massage device 12 may provide one or more massage modes, for example, three or more. The intensity levels corresponding to each massage mode may be the same or different. For example, each massage mode may have 15 intensity levels, or the soothing mode may have 8 intensity levels, while the automatic mode may have 13 intensity levels. It is understood that the specific types and numbers of massage modes and intensity levels are not specifically limited.
[0077] Furthermore, in some implementations, when a user inputs a control operation for the massage device 12 on the interface of the target application, the terminal device 10 may generate an operation instruction based on the control operation and send the operation instruction to the massage device 12, so that the massage device 12 performs the corresponding operation in response to the operation instruction received from the terminal device 12, thereby realizing remote operation control of the massage device 12. For example, if the user clicks on the start operation for the massage device 12 on the interface of the target application, the terminal device 10 sends the start instruction to the massage device 12, and the massage device 12 starts up in response to the start instruction.
[0078] It should be understood that the above terminal device and massage device are applicable to the storage method of the massage operation mode disclosed in the embodiment of the present application. The storage method of the massage operation mode disclosed in the embodiment of the present application is described in detail below.
[0079] See also Figure 2 , Figure 2 This is a flow chart of a method for storing a massage operation mode disclosed in an embodiment of the present application. Figure 2 As shown, the method includes:
[0080] 201. In the current working mode, identify the current user and obtain the current user identity.
[0081] In the embodiments of the present application, the target application may have one or more operating modes, which are not specifically limited. Each operating mode may correspond to a different type of user identity. For example, the child operating mode is applicable to children, the elderly operating mode is applicable to the elderly, the father operating mode is applicable to the father in the family, and the mother operating mode is applicable to the mother in the family.
[0082] In the embodiments of the present application, the methods for identifying the current user may include, but are not limited to, face recognition, voiceprint recognition, fingerprint recognition, and iris recognition. In the case of face recognition, the terminal device may use a camera to capture the current user's face image and perform recognition on the face image; in the case of voiceprint recognition, the terminal device may activate a recording device to record the user's voice and perform voice recognition on the user's voice; in the case of fingerprint recognition, the terminal device may also obtain fingerprint information entered through the fingerprint entry area and perform fingerprint recognition on the fingerprint information.
[0083] If none of the target application's currently available operating modes meet user needs, the terminal device can optionally output a custom operating mode. When a custom operating mode is selected, the terminal device generates a new operating mode. Within the new operating mode, the user can perform initial configuration for the new operating mode, further satisfying personalized operating mode needs.
[0084] Further optionally, in the new mode, the terminal device may first detect the connection status with the massage device. If the terminal device is successfully connected to the massage device, the terminal device may obtain and save the current user's initial configuration for the new working mode. If the terminal device is not successfully connected to the massage device, the terminal device performs identity authentication on the current user (such as login account verification or face verification, etc.). If the current user is identified as an authorized user, the terminal device obtains and saves the current user's initial configuration for the new working mode, thereby ensuring the security of the permissions for the working mode.
[0085] As an optional implementation, each working mode may also correspond to a different repository. The repository may be used to store page content related to the corresponding working mode, and the page content may include but is not limited to keyword indexes, related links, and push pages (such as soft articles and advertisements). In addition, if the user saves, collects, or downloads operation data when using any working mode of the target application, the terminal device will store the operation data in the repository corresponding to the working mode, so that the operation data stored in different working modes will not be confused.
[0086] Furthermore, as an optional implementation, in the current work mode, the target application's page can only display page content related to the current work mode. For example, if the current work mode is Dad work mode, the target application's page will not display page content unrelated to Dad work mode, such as tweets in Mom work mode. This shows that flexibly adjusting page content based on different user identities can reduce the interference of irrelevant content on the page, making the page content more tailored to the current user's operational needs.
[0087] 202. Push a list of operation modes that match the current user identity.
[0088] In the embodiment of the present application, the operation mode list includes one or more massage operation modes. The massage operation mode may include at least massage mode, intensity level, and heating temperature, etc., and is mainly used to record parameter settings executed by the massage device.
[0089] 203. When exiting the current working mode, the massage operating mode selected in the operating mode list is stored in the working mode corresponding to the current user identity.
[0090] In an embodiment of the present application, the massage operation mode selected for operation in the operation mode list may be the massage operation mode actually operated by the massage device before the massage device exits the current working mode, or it may be the massage operation mode manually selected by the user in the operation mode list, without specific limitation.
[0091] As can be seen, the implementation of the above method embodiment allows a user to select an operating mode that does not match their current user identity without having to exit the current operating mode. A list of operating modes matching their user identity is provided for selection, without affecting the user's continued use of the application. Furthermore, the accuracy of stored massage operating modes is improved, preventing confusion between massage operating modes stored by different user identities.
[0092] Please participate Figure 3 , Figure 3 FIG. 1 is a flow chart of another method for storing massage operation modes disclosed in an embodiment of the present application. Figure 3 As shown, the method includes:
[0093] 301. In the current working mode, obtain a head portrait image of the current user captured by a camera.
[0094] In this embodiment of the present application, the avatar picture of the current user may refer to a portrait picture of the current user above the shoulders.
[0095] 302. Recognize facial information in the avatar image.
[0096] In the embodiment of the present application, the facial information in the avatar image may include facial features such as facial features (including eyes, nose, mouth, etc.), face shape, angle and skin texture, without specific limitation.
[0097] As an optional implementation, after step 302, the terminal device may first perform a facial match between the facial information identified from the profile picture and the facial information entered by the registered account on the target application. If a certain account meets the facial information matching conditions, the user identity corresponding to that account may be directly obtained and used as the current user identity. If no account meets the facial information matching conditions, the facial attribute recognition method shown in steps 303 and 304 may be used.
[0098] 303. Perform facial attribute recognition on the facial information to obtain user attributes of the current user.
[0099] In the embodiment of the present application, user attributes may include one or more attributes such as user age and user gender, and are not specifically limited. Optionally, before performing facial attribute recognition, a facial attribute recognition algorithm may be used to train sample data corresponding to different user attributes to obtain a recognition model, so that the terminal device can directly use the recognition model to perform facial attribute recognition on facial information to obtain user attributes. Facial attribute recognition algorithms may include but are not limited to recognition algorithms based on feature faces, recognition methods based on the Fisher criterion, classification algorithms based on Adaboost+support vector machine (SVM), and estimation algorithms that fuse local binary pattern (LBP) and histogram of oriented gradient (HOG) features. Optionally, the recognition model may also use a combination of multiple classifiers, each classifier corresponding to different facial features, and finally determine the recognition result of the user attribute by voting or linear weighting.
[0100] 304. Match the user attributes with the attribute conditions preset in the current working mode to obtain the current user identity; execute step 305 or step 306.
[0101] In the embodiment of the present application, user attributes may correspond one-to-one with preset attribute conditions.
[0102] Optionally, the user attributes may include the user's age. As an optional implementation, the terminal device may match the user's age with an age range preset for the current working mode. If the user's age does not match the age range, the current user is identified as an illegal user corresponding to the current working mode, and the current user identity is used. If the user's age matches the age range, the current user is identified as a legitimate user corresponding to the current working mode, and the current user identity is used.
[0103] Among them, the preset age range can be related to the age of the user group corresponding to the working mode, and can be set manually. For example, the age range of the child mode is under 13 years old, and there is no specific limitation on this. For example, if the current working mode is the youth mode, and the age range preset for the youth mode is 13 to 17 years old. If the user age of the current user is identified as 15 years old, the user age matches the age range, so the current user is a legal user of the youth mode, that is, a teenager. If the user age is 10 years old, the user age does not match the age range, so the current user is an illegal user of the youth mode.
[0104] It can be seen that analyzing the matching effect between the current user and the current work mode according to the user's age can be applicable to user groups of different age groups and improve the rationality of the age distribution corresponding to different work modes.
[0105] Alternatively, optionally, the user attributes may include the user's age and the user's gender. As another optional implementation, the terminal device may match the user's age with the age range preset for the current working mode, and match the user's gender with the gender condition preset for the current working mode. If the user's age does not match the age range, and the user's gender does not match the gender condition, the current user is identified as an illegal user corresponding to the current working mode as the current user identity. If the user's age does not match the age range, and the user's gender does not match the gender condition, the current user is identified as a legal user corresponding to the current working mode as the current user identity.
[0106] Among them, the preset gender conditions may include male, female, and no gender limit. For example, if the current working mode is grandma mode, and the age range preset for grandma mode is over 60 years old, the gender condition is female. If the current user is identified as a female and the user age is 61 years old, then the current user may be a legitimate user of grandma mode. If the current user is a 50-year-old female, or the current user is a 61-year-old male, or the current user is a 50-year-old male, in these three cases, the user age cannot match the age range and the user gender cannot match the gender conditions at the same time, so the current user will be identified as an illegal user of grandma mode.
[0107] It can be seen that combining the user's age and gender to analyze the matching effect between the current user and the current work mode can be applied to user groups of different age groups and genders, further improving the accuracy of work mode matching.
[0108] In summary, implementing steps 301 to 304 above enables rapid matching of user attributes with operating modes based on the user attributes derived from facial information analysis. This means that even if this is the first time a user is using the target application and has never entered any user information, the terminal device can still match the appropriate user identity for the user, making user identity recognition more universal.
[0109] 305. If the current user identity is a legitimate user corresponding to the current working mode, determine an operating mode list that matches the current user identity based on the massage operating mode preset in the current working mode; and execute step 307.
[0110] In one implementation, before step 304, the terminal device may output multiple operating modes corresponding to different user identities when the target application is launched. When the user selects an operating mode from the multiple operating modes corresponding to different user identities, the terminal device may obtain the selected operating mode as the current operating mode. Furthermore, the terminal device activates the current operating mode.
[0111] Alternatively, in another implementation, after the target application is started, the terminal device may directly obtain the operating mode that was enabled when the target application was last run, as the current operating mode. The operating mode that was enabled when the target application was last run may refer to the operating mode that the target application was last run in before it was last closed, or may refer to the operating mode that the target application was run in for the longest time before it was last closed, without specific limitation.
[0112] Alternatively, in another implementation, after the target application is started, the terminal device may also obtain the logged-in account on the target application, and determine the current working mode based on the working mode bound to the logged-in account.
[0113] Optionally, the terminal device may display multiple operating modes corresponding to different user identities in the form of icons, text, or a combination of icons and text, and the user may select the operating mode by touch or voice command. For example, if the terminal device displays icons corresponding to multiple operating modes on the target application, when the user clicks on an icon, the operating mode corresponding to the icon is determined to be the selected operating mode. Alternatively, if the user reads the name of a certain operating mode by voice, the read operating mode is determined to be the selected operating mode.
[0114] 306 . If the current user identity is an illegal user corresponding to the current working mode, directly obtain the operation mode list matching the current user identity and the working mode corresponding to the current user identity; and execute step 307 .
[0115] 307. Push a list of operation modes that match the current user identity.
[0116] In one implementation, if the current user identity is an illegal user corresponding to the current working mode, it means that the current working mode is not suitable for the current user. The terminal device can directly obtain the operation mode list matching the current user identity and the working mode corresponding to the current user identity.
[0117] In another implementation, if the current user is a legitimate user corresponding to the current operating mode, the current operating mode meets the current user's mode requirements. In this case, the operating mode corresponding to the current user is the current operating mode. The terminal device can obtain the massage operation mode preset for the current operating mode and, based on the preset massage operation mode, determine a list of operation modes that match the current user. When exiting the current operating mode, the terminal device can store the massage operation mode selected from the operation mode list in the current operating mode.
[0118] As can be seen, regardless of whether the current working mode matches the current user identity, the operating mode resources that match the user identity are guaranteed to be provided in the current working mode, and the massage operating mode selected by the user is stored in the appropriate working mode. Therefore, even if the user accidentally clicks on an inappropriate working mode, they can still continue to operate the target application, reducing the impact of incorrect operation on the user experience.
[0119] See also Figure 4 , Figure 4 This is a schematic diagram of an interface for a user to download a massage operation mode in an embodiment of the present application. Figure 4 As shown in FIG, when the target application is started, the initial interface 40 of the target application displays four working modes, namely: Dad Mode, Mom Mode, Child Mode and Elder Mode. The current user clicks the icon 401 corresponding to Dad Mode, and the terminal device starts Dad Mode. Figure 4 As shown in Figure (a), if the current user is identified as a grandfather in the family, the Dad Mode interface 42 will display an operation mode list 421 that matches the elderly person's identity. The operation mode list 421 includes massage operation mode A (corresponding to icon 4210) and massage operation mode B (corresponding to icon 4211) suitable for the elderly experience. Further, when the grandfather selects to run massage operation mode A by clicking icon 4210, the terminal device will store massage operation mode A in the Elderly Mode.
[0120] Alternatively, if the current user is identified as the father of a family member, the interface 42 will display a list of operation modes 422 preset for the Dad Mode, and the list of operation modes 422 includes massage operation mode C (corresponding to icon 4220) and massage operation mode D (corresponding to icon 4221) suitable for adult males. Further, when the father selects to run massage operation mode D by clicking icon 4221, the terminal device will store massage operation mode D in the Dad Mode.
[0121] 308. When exiting the current working mode, the massage operating mode selected in the operating mode list is stored in the working mode corresponding to the current user identity.
[0122] As an optional implementation, if the current user is a legitimate user corresponding to the current operating mode, when exiting the current operating mode, the terminal device may output a first key setting prompt for the current operating mode to prompt the user to enter key setting information. When the user enters the first key setting information according to the first key setting prompt, the terminal device obtains the input first key setting information and completes the key setting for the current operating mode based on the first key setting information.
[0123] Among them, the first key setting prompt is mainly used to prompt the current user to set the key for the current working mode, and the output form of the first key setting prompt can be text, icon, voice or animation, which is not specifically limited. The input method of the first key setting information includes but is not limited to virtual keyboard password input, handwritten password input, gesture input, fingerprint input and encrypted voice recording. After the terminal device completes the key setting for the current working mode, when the user turns on the current working mode next time, the terminal device needs to detect the first key setting information correctly entered by the user before it can restart the above-mentioned current working mode.
[0124] It can be seen that when exiting the working mode, actively prompting the user to encrypt the working mode key can provide permission settings for the working mode, reduce unauthorized modifications to the working mode, and thus improve the privacy of the working mode.
[0125] As another optional implementation, if the current user identity is an unauthorized user corresponding to the current operating mode, when exiting the current operating mode, the terminal device may further output a second key setting prompt for the operating mode corresponding to the current user identity, prompting the user to enter key setting information. If a confirmation instruction for the second key setting prompt is detected, the current operating mode is switched to the operating mode that matches the current user identity. In the operating mode that matches the current user identity, the second key setting information entered by the current user is obtained, and key setting for the operating mode that matches the current user identity is completed based on the second key setting information.
[0126] The output format of the second key setting prompt and the input method of the second key setting information can refer to the above description of the first key setting prompt and the second key setting information, and will not be repeated here. In addition, the confirmation instruction can be an instruction generated when the user enters a confirmation operation for the second key setting prompt. The confirmation operation can include clicking a designated virtual button (such as a confirmation icon output on the interface), pressing a designated physical button, or confirming by voice, etc., without specific limitation.
[0127] It can be seen that when exiting the working mode, if the current user is an illegal user of the current working mode, the terminal device can also respond to the confirmation instruction input by the current user and automatically jump to the working mode that matches the current user identity, so that the current user can complete the key setting, making the key setting process simpler and more convenient.
[0128] In the embodiment of the present application, steps 307 to 308 may also refer to Figure 2 The description of steps 202 to 203 in the illustrated method embodiment will not be repeated here.
[0129] As can be seen, by implementing the above method embodiment, if a user accidentally clicks on an operating mode that does not match their current identity, the user does not need to specifically exit the current operating mode. A list of operating modes that match their user identity is still provided for selection, without affecting the user's continued use of the application. Furthermore, the accuracy of stored massage operating modes is improved, preventing confusion between massage operating modes stored by different user identities. Furthermore, rapid matching of user attributes with operating modes is achieved, making user identity recognition more versatile.
[0130] Please participate Figure 5 , Figure 5 FIG. 1 is a flow chart of another method for storing massage operation modes disclosed in an embodiment of the present application. Figure 5 As shown, the method includes:
[0131] Steps 501 to 506 can refer to Figure 3 The description of steps 301 to 306 in the illustrated method embodiment will not be repeated here.
[0132] In an embodiment of the present application, the operation mode list may include a local mode list and an online mode list. The local mode list includes one or more local massage operation modes stored locally in the terminal device, while the online mode list includes one or more online massage operation modes obtained under network conditions.
[0133] 507. Push the local mode list.
[0134] In an embodiment of the present application, the terminal device may first obtain the local massage operation modes that match the current user identity from the local storage repository, and then generate a local mode list based on these local massage operation modes.
[0135] As an optional embodiment, after the local mode list is pushed, upon detecting an operation for any local massage operation mode in the local mode list, the terminal device may generate a corresponding first operation instruction based on the local massage operation mode and send the first operation instruction to the massage device, thereby causing the massage device to respond to the first operation instruction and operate according to the local massage operation mode. The operation for using the local mode list may be a single-click operation, a double-click operation, or a long-press operation for the local massage operation mode, without specific limitation.
[0136] It can be seen that since there is no limit on the usage time of the local massage operation mode, it meets the user's need to experience the massage effect for a long time and improves the trial experience.
[0137] 508. Detect the evaluation result of the current user on the local mode list.
[0138] In the embodiment of the present application, the evaluation result may include a satisfactory evaluation and an unsatisfactory evaluation. If the evaluation result is a satisfactory evaluation, the terminal device may directly execute step 510.
[0139] As an optional implementation, the terminal device can detect the number of times the local mode list has been refreshed and, based on the number of refreshes, determine the current user's evaluation of the local mode list. Optionally, each time the terminal device detects a refresh operation on the local mode list, it retrieves from the local repository the local massage operation modes that differ from those used to generate the local mode list last time, and sequentially generates a new local mode list, thereby refreshing the local mode list.
[0140] In one implementation, if the number of refreshes reaches a preset number, the terminal device may determine that the current user's evaluation of the local mode list is unsatisfactory. The preset number can be manually set, such as 10 or 15 times, and is not specifically limited. Therefore, if the local mode list is refreshed too many times, it indicates that the current user cannot find the massage operation mode they prefer. Therefore, determining the evaluation result based on the number of refreshes can better reflect the user's actual operation.
[0141] 509. If the evaluation result is an unsatisfactory evaluation, obtain an online mode list under an Internet connection condition and push the online mode list.
[0142] As an optional implementation, after pushing the online mode list, when the terminal device detects a trial operation for any online massage operation mode in the online mode list, it can generate a corresponding second operation instruction based on the online massage operation mode corresponding to the second trial operation, and send the second operation instruction to the massage device, so that the massage device responds to the second operation instruction and operates according to the online massage operation mode corresponding to the trial operation within a preset time period.
[0143] The trial operation can be a single-click operation, a double-click operation, or a long-press operation for the online massage operation mode, without specific limitation. The preset duration can be related to the online massage operation mode corresponding to the trial operation. Optionally, the preset duration can be inversely proportional to the intensity level included in the online massage operation mode, that is, the higher the intensity level, the shorter the preset duration, and the lower the intensity level, the longer the preset duration, thereby preventing prolonged high-intensity massage from causing discomfort to the user.
[0144] It can be seen that by providing a trial function for online massage operation modes, users can choose to run the operation mode that suits their needs after actually experiencing the massage effects of different modes, which can reduce unnecessary operating resources.
[0145] As an optional implementation, the terminal device can specifically obtain multiple online massage operation modes and the ranking priority corresponding to each online massage operation mode while connected to the Internet. The terminal device then sorts the multiple online massage operation modes according to their ranking priority to obtain an online mode list. Online massage operation modes with higher ranking priorities will be displayed first in the online mode list, providing a reference for the user to select a massage operation mode.
[0146] In one implementation, the terminal device can obtain the number of downloads corresponding to each online massage operation mode and determine the sorting priority corresponding to each online massage operation mode based on the number of downloads corresponding to each online massage operation mode. The sorting priority corresponding to each online massage operation mode is positively correlated with the number of downloads. In other words, the more downloads an online massage operation mode has, the higher its sorting priority; the fewer downloads an online massage operation mode has, the lower its sorting priority. This can prioritize the recommendation of operation modes with higher download volumes, providing a reference for user selection.
[0147] In another implementation, the terminal device can also obtain the number of runs corresponding to each online massage operation mode, and determine the sorting priority corresponding to each online massage operation mode based on the number of runs corresponding to each online massage operation mode. The sorting priority corresponding to each online massage operation mode is positively correlated with the number of runs. In other words, the more times an online massage operation mode has been run, the higher its sorting priority; the fewer times an online massage operation mode has been run, the lower its sorting priority. This can prioritize the recommendation of operation modes with a higher number of actual runs, and also serves as a reference for selection.
[0148] In summary, by implementing the above steps 507 to 509, when the user is not satisfied with the massage operation mode provided by the local mode list, the online mode list obtained through the Internet can continue to be pushed, thereby flexibly adjusting the push content according to user feedback, enriching the diversity of massage operation modes available.
[0149] 510. When exiting the current working mode, the massage operating mode selected in the operating mode list is stored in the working mode corresponding to the current user identity.
[0150] In an embodiment of the present application, the massage operation mode selected for operation in the operation mode list may include the massage operation mode selected for operation in the local mode list; or, it may also include the massage operation mode selected for operation in the online mode list; or, it may also include both the above-mentioned local mode list and the massage operation mode selected for operation in the online mode list, without specific limitation.
[0151] As an optional implementation, when entering the work mode corresponding to the current user identity, the terminal device can also obtain the sorting priority of each massage operation mode stored in the work mode corresponding to the current user identity, and sort each stored massage operation mode according to the sorting priority of each massage operation mode. As can be seen, the user can also more quickly select the operation mode that meets their massage needs based on the sorting priority of each online massage operation mode in the work mode.
[0152] Furthermore, optionally, the terminal device may obtain a sorting priority for each stored massage operation mode based on the download order of each massage operation mode stored in the work mode corresponding to the current user identity. The sorting priority of each stored massage operation mode is related to the download order. In one implementation, the earlier the download order of a massage operation mode, the lower the corresponding sorting priority; the later the download order, the higher the corresponding sorting priority.
[0153] Alternatively, optionally, the terminal device can obtain the sorting priority of each stored massage operation mode based on the number of operations of each massage operation mode stored in the working mode corresponding to the current user identity, and the sorting priority of each stored massage operation mode is positively correlated with the number of operations.
[0154] It can be seen that by giving priority to recommending the latest downloaded or most frequently run operating modes, it is convenient for users to view and refer to their own historical usage data of the massage equipment.
[0155] In the embodiment of the present application, step 510 can also refer to Figure 3 The description of step 308 in the illustrated method embodiment will not be repeated here.
[0156] As can be seen, by implementing the above method embodiment, if a user accidentally clicks on an operating mode that does not match their current user, the user does not need to specifically exit the current operating mode. A list of operating modes that match their user identity is still provided for selection, without affecting the user's continued use of the application. Furthermore, the accuracy of stored massage operating modes is improved, preventing confusion between massage operating modes saved by different user identities. Furthermore, the push content can be flexibly adjusted based on user feedback, enriching the diversity of massage operating modes available.
[0157] Please participate Figure 6 , Figure 6 FIG. 1 is a flow chart of another method for storing massage operation modes disclosed in an embodiment of the present application. Figure 6 As shown, the method includes:
[0158] Steps 601 to 609 can refer to Figure 5 The description of steps 501 to 509 in the illustrated method embodiment will not be repeated here.
[0159] 610. When a use operation of a target massage operation mode in the online mode list is detected, verify the network download authority of the current user.
[0160] In the embodiment of the present application, the target massage operation mode is any massage operation mode in the online mode list. The network download permission can be used to indicate the permission of the current user to download the online massage operation mode.
[0161] Regarding step 610, as an optional implementation, the terminal device may specifically detect the massage operation mode shared online in the work mode corresponding to the current user identity, as well as the number of downloads of the massage operation mode shared online. If the number of downloads reaches a preset number, the terminal device determines that the current user has network download permission. If the number of downloads does not reach the preset number, the terminal device determines that the current user does not have network download permission. The preset number can be manually specified, such as 5 or 10 times, and is not specifically limited.
[0162] For example, the current user can share the massage mode link in the work mode corresponding to the current user identity with friends or groups on social software, or upload it to a dedicated publishing platform (such as Weibo) through the sharing channel provided by the target application (such as a share button), so as to realize the online sharing of the massage mode. Afterwards, if other users download the massage mode shared online through the current user's sharing link, the number of downloads will be increased by one. When the number of downloads reaches a preset number (such as 10 times), the terminal device will automatically assume that the current user has network download permission.
[0163] It can be seen that obtaining network download permissions by sharing the massage operation mode can increase the diversity of permission acquisition methods.
[0164] 611. If the current user has network download authority, the target massage operation mode is downloaded, and the massage device is controlled to operate according to the target massage operation mode.
[0165] In an embodiment of the present application, if the current user has network download permission, the terminal device can optionally display online massage operation modes recommended by others or the system for the current user to collect, download, or directly use, thereby improving the diversity of permission functions. In addition, the terminal device can also display information that a massage control mode shared online has been added, downloaded, or directly used, as well as other massage control modes related to the massage control mode, thereby improving the openness of information sharing.
[0166] 612. If the current user does not have network download permission, a no-permission prompt and a numerical resource transfer page are output.
[0167] In the embodiments of the present application, the "no permission" prompt is used to inform the current user that they do not have network download permission. The terminal device may output the "no permission" prompt in a text prompt, voice prompt, pop-up prompt, or icon prompt, etc., without limitation. The digital resource transfer page may include a fee payment page and a transfer page, etc., also without limitation. The digital resource transfer page may be used to display the fee details and payment method for obtaining network download permission, so that the current user can complete the payment according to the instructions on the digital resource transfer page.
[0168] 613. If a transfer completion instruction is received from the numerical resource transfer page, the target massage operation mode is downloaded, and the massage device is controlled to operate according to the target massage operation mode.
[0169] In this embodiment of the present application, after the current user completes payment according to the instructions on the digital resource transfer page, the digital resource transfer page will generate a transfer completion instruction. This allows the terminal device to determine that the current user has network download permission and begin normal operation of the target massage operation mode. This shows that using payment as a method of obtaining network download permission can not only increase the revenue of the sharer and the platform, but also improve user participation and activity.
[0170] As can be seen, by implementing steps 610 to 613 above, by checking the current user's network download permissions, download permissions for network resources are authenticated to comply with the resource sharing rules specified by the platform. In addition, a variety of different network download permission acquisition methods can be adopted, broadening the channels for obtaining permissions and facilitating user independent selection and flexible utilization.
[0171] 614. When exiting the current working mode, the massage operating mode selected in the operating mode list is stored in the working mode corresponding to the current user identity.
[0172] As can be seen, by implementing the above method embodiment, when a user accidentally clicks on an operating mode that does not match their current identity, the user does not need to specifically exit the current operating mode. A list of operating modes that match their user identity is still provided for selection, without affecting the user's continued use of the application. Furthermore, the accuracy of stored massage operating modes is improved, preventing confusion between massage operating modes stored by different user identities. Furthermore, network resource download permission authentication is implemented to comply with platform-specified resource sharing rules. A variety of different methods for obtaining network download permissions can also be used, broadening the channels for obtaining permissions and facilitating user independent selection and flexible utilization.
[0173] The above describes the storage method of the massage operation mode in the embodiment of the present application. The following describes the terminal device in the embodiment of the present application.
[0174] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. Figure 7 As shown, the electronic device includes an identity recognition module 701, a push module 702 and a storage module 703, wherein:
[0175] The identity recognition module 701 is used to identify the current user in the current working mode and obtain the current user identity.
[0176] The push module 702 is used to push an operation mode list matching the current user identity, where the operation mode list includes one or more massage operation modes.
[0177] The storage module 703 is used to store the massage operation mode selected in the operation mode list into the operation mode corresponding to the current user identity when exiting the current operation mode.
[0178] In an embodiment of the present application, as an optional implementation, the electronic device may further include a determination module, which is used to determine a list of operation modes that matches the current user identity based on the massage operation mode preset for the current working mode after the identity recognition module 701 obtains the current user identity, if the current user identity is a legitimate user corresponding to the current working mode.
[0179] In an embodiment of the present application, as an optional implementation, the electronic device further includes an output module and a setting module. The output module is configured to output a first key setting prompt for the current working mode when the current user identity is a legitimate user corresponding to the current working mode and exits the current working mode, prompting the user to enter key setting information. The setting module is configured to obtain the input first key setting information and complete key setting for the current working mode based on the first key setting information.
[0180] In an embodiment of the present application, as an optional implementation, the electronic device also includes an acquisition module, which is used to directly obtain the operation mode list matching the current user identity and the working mode corresponding to the current user identity after the identity recognition module 701 obtains the current user identity if the current user identity is an illegal user corresponding to the current working mode.
[0181] In an embodiment of the present application, as an optional implementation, the electronic device further includes a switching module, wherein: the output module is further configured to output a second key setting prompt for the working mode corresponding to the current user identity when the current user identity is an illegal user corresponding to the current working mode, so as to prompt the user to input key setting information when exiting the current working mode. The switching module is configured to switch from the current working mode to the working mode matching the current user identity when a confirmation instruction for the second key setting prompt is detected. The setting module is further configured to obtain the input second key setting information in the working mode matching the current user identity, and complete the key setting for the working mode matching the current user identity according to the second key setting information.
[0182] In an embodiment of the present application, as an optional implementation, the identity recognition module includes an image acquisition submodule, an identification submodule, and a matching submodule. The image acquisition submodule is configured to, in the current operating mode, acquire a headshot image of the current user captured by the camera. The identification submodule is configured to identify facial information in the headshot image and perform facial attribute recognition on the facial information to obtain the user attributes of the current user. The matching submodule is configured to match the user attributes with the attribute conditions preset in the current operating mode to obtain the current user's identity.
[0183] In an embodiment of the present application, as an optional implementation, the user attribute includes the user's age. The matching submodule is further configured to match the user's age with an age range preset for the current working mode; if the user's age does not match the age range, the current user is identified as an illegal user corresponding to the current working mode and used as the current user identity; if the user's age does match the age range, the current user is identified as a legitimate user corresponding to the current working mode and used as the current user identity.
[0184] In an embodiment of the present application, as an optional implementation, the user attributes include user age and user gender. The matching submodule is further used to match the user age with the age range preset for the current working mode, and to match the user gender with the gender condition preset for the current working mode; if the user age does not match the age range, and the user gender does not match the gender condition, then the current user is identified as an illegal user corresponding to the current working mode, as the current user identity; if the user age matches the age range, and the user gender matches the gender condition, then the current user is identified as a legal user corresponding to the current working mode, as the current user identity.
[0185] In an embodiment of the present application, as an optional implementation, the electronic device may further include a startup module, wherein: the output module is further configured to output a plurality of operating modes corresponding to different user identities when a target application is started, before the identity recognition module 701 identifies the current user in the current operating mode; the target application is an application for controlling the operation of the massage device. The acquisition module is further configured to obtain a selected operating mode from the plurality of operating modes corresponding to different user identities as the current operating mode. The startup module is configured to start the current operating mode.
[0186] In an embodiment of the present application, as an optional implementation, the output module is also used to display only page content related to the current working mode in the page of the target application in the current working mode after the startup module starts the current working mode.
[0187] In this embodiment of the present application, as an optional implementation, the operating mode list includes a local mode list and an online mode list. The push module 702 includes a push submodule, a list acquisition submodule, and a detection submodule. The push submodule is configured to push the local mode list. The detection submodule is configured to detect the current user's evaluation of the local mode list. The list acquisition submodule is configured to acquire the online mode list while connected to the internet if the evaluation result is unsatisfactory. The push submodule is also configured to push the online mode list.
[0188] In the embodiment of the present application, as an optional implementation, the detection submodule is further used to detect the number of refreshes of the local mode list, and determine the current user's evaluation result of the local mode list based on the refresh number.
[0189] In the embodiment of the present application, as an optional implementation, the detection submodule is further configured to determine that the current user's evaluation result of the local mode list is unsatisfactory when the number of refresh times reaches a preset number.
[0190] In an embodiment of the present application, as an optional implementation, the control module is also used to control the massage device to operate in the online massage operation mode corresponding to the trial operation within a preset time period when a trial operation for any online massage operation mode in the online mode list is detected after the push submodule pushes the online mode list.
[0191] In an embodiment of the present application, as an optional implementation, the list acquisition submodule is also used to obtain multiple online massage operation modes under network conditions; obtain the sorting priority corresponding to each online massage operation mode, and sort the multiple online massage operation modes according to the sorting priority of each online massage operation mode to obtain an online mode list.
[0192] In an embodiment of the present application, as an optional implementation, the list acquisition submodule is also used to obtain the number of downloads and / or runs corresponding to each online massage operation mode; based on the number of downloads and / or runs corresponding to each online massage operation mode, the sorting priority corresponding to each online massage operation mode is determined; wherein, the sorting priority corresponding to each online massage operation mode is positively correlated with the number of downloads and the number of runs.
[0193] In an embodiment of the present application, as an optional implementation, the electronic device may further include a verification module, wherein: the verification module is configured to verify the current user's network download permission upon detecting a use operation of a target massage operation mode in the online mode list after the push submodule pushes the online mode list. The control module is further configured to download the target massage operation mode if the current user has network download permission, and control the massage device to operate according to the target massage operation mode.
[0194] In an embodiment of the present application, as an optional implementation, the output module is further configured to, after the verification module verifies the current user's network download permission, output a permission denied prompt and a numerical resource transfer page if the current user does not have network download permission. The control module is further configured to, upon receiving a transfer completion instruction on the numerical resource transfer page, download the target massage operation mode and control the massage device to operate according to the target massage operation mode.
[0195] In an embodiment of the present application, as an optional implementation, the verification module is also used to detect the massage operation mode shared online in the working mode corresponding to the current user identity and the number of downloads of the massage operation mode shared online; if the number of downloads reaches a preset number, it is determined that the current user has network download permission.
[0196] In an embodiment of the present application, as an optional implementation, the electronic device may further include a sorting module, wherein: the acquisition module is further configured to, after the storage module 703 stores the massage operation mode selected for execution in the operation mode list in the working mode corresponding to the current user identity, acquire the sorting priority of each massage operation mode stored in the working mode corresponding to the current user identity upon entering the working mode corresponding to the current user identity. The sorting module is configured to sort each stored massage operation mode according to the sorting priority of each stored massage operation mode.
[0197] In an embodiment of the present application, as an optional implementation, the acquisition module is also used to obtain the sorting priority of each stored massage operation mode based on the download order of each massage operation mode stored in the working mode corresponding to the current user identity; wherein the sorting priority of each stored massage operation mode is related to the download order.
[0198] It should be noted that the electronic device in this embodiment is applicable to the above-mentioned terminal device, and the specific implementation process of this embodiment can refer to the specific implementation process described in the above-mentioned method embodiment, which will not be described again here.
[0199] As can be seen, the implementation of the above embodiment allows a user to select an operating mode that does not match their current user identity without having to exit the current operating mode. A list of operating modes matching their user identity is provided for selection, without affecting the user's continued use of the application. Furthermore, the accuracy of stored massage operating modes is improved, preventing confusion between massage operating modes stored by different user identities.
[0200] See also Figure 8 , Figure 8 1 is a schematic diagram of the structure of another electronic device disclosed in an embodiment of the present application. The electronic device includes:
[0201] One or more memories 801;
[0202] The one or more processors 802 are configured to execute one or more computer programs stored in the one or more memories 801 to perform the methods described in the above embodiments.
[0203] It should be noted that the electronic device in this embodiment may be the above-mentioned terminal device, so the specific implementation process of this embodiment can refer to the specific implementation process described in the above-mentioned method embodiment, which will not be described again here.
[0204] An embodiment of the present application provides a computer-readable storage medium having computer instructions stored thereon. When the computer instructions are executed, the computer executes the method for storing the massage operation mode described in the above method embodiment.
[0205] The embodiments of the present application further disclose a computer program product, wherein when the computer program product is run on a computer, the computer is caused to execute part or all of the steps of the methods in the above method embodiments.
[0206] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be performed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, including a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0207] The above is a detailed introduction to the storage method, electronic device, and storage medium of a massage operation mode disclosed in the embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for storing massage operation modes, characterized in that: The method comprises: When a target application is started, outputting a plurality of working modes corresponding to different user identities, the target application being an application for controlling the operation of a massage device; obtaining a selected working mode from the working modes corresponding to the plurality of different user identities as a current working mode; starting the current working mode; in the current working mode, displaying only page content related to the current working mode on a page of the target application, the page content including at least a keyword index, related links, and / or a pushed page; In the current working mode, the current user is identified to obtain the current user identity; if the current user identity is a valid user corresponding to the current working mode, an operation mode list matching the current user identity is determined based on the massage operation mode preset in the current working mode; and the operation mode list matching the current user identity is pushed, the operation mode list including one or more massage operation modes; Matching the user's age with the age range preset for the current working mode, and matching the user's gender with the gender condition preset for the current working mode; If the user's age matches the age range and the user's gender matches the gender condition, the current user is identified as a legitimate user corresponding to the current working mode and used as the current user identity; When exiting the current working mode, a first key setting prompt for the current working mode is output to prompt the user to input key setting information; the input first key setting information is obtained, and the key setting for the current working mode is completed according to the first key setting information; the massage operation mode selected for operation in the operation mode list is stored in the working mode corresponding to the current user identity.
2. The method according to claim 1, characterized in that After obtaining the current user identity, the method further includes: If the current user identity is an illegal user corresponding to the current working mode, then directly obtain the operation mode list matching the current user identity and the working mode corresponding to the current user identity. The illegal user corresponding to the current working mode is used to indicate a user whose user attributes do not match the attribute conditions preset by the current working mode. The user attributes include at least one of the user age and the user gender.
3. The method according to claim 2, characterized in that The method further comprises: If the current user identity is an illegal user corresponding to the current working mode, when exiting the current working mode, a second key setting prompt for the working mode corresponding to the current user identity is output to prompt the user to enter key setting information; If a confirmation instruction for the second key setting prompt is detected, switching from the current working mode to a working mode matching the current user identity; In the working mode matching the current user identity, the input second key setting information is obtained, and the key setting for the working mode matching the current user identity is completed according to the second key setting information.
4. The method according to any one of claims 1 to 3, characterized in that In the current working mode, identifying the current user and obtaining the current user identity includes: In the current working mode, obtaining a head portrait image of the current user captured by the camera; Recognizing facial information in the avatar image; Performing facial attribute recognition on the facial information to obtain user attributes of the current user; The user attributes are matched with the attribute conditions preset in the current working mode to obtain the current user identity.
5. The method according to claim 4, characterized in that The user attributes include user age; and matching the user attributes with attribute conditions preset in the current working mode to obtain the current user identity includes: Matching the user's age with the age range preset for the current working mode; If the user age does not match the age range, identifying the current user as an illegal user corresponding to the current working mode as the current user identity; If the user age matches the age range, the current user is identified as a legitimate user corresponding to the current working mode and used as the current user identity.
6. The method according to claim 4, characterized in that The user attributes include user age and user gender; matching the user attributes with the attribute conditions preset in the current working mode to obtain the current user identity includes: If the user age does not match the age range, and the user gender does not match the gender condition, the current user is identified as an illegal user corresponding to the current working mode as the current user identity.
7. The method according to any one of claims 1 to 3, characterized in that The operation mode list includes a local mode list and an online mode list; The push operation mode list matching the current user identity includes: Pushing the local mode list; detecting an evaluation result of the current user on the local mode list; If the evaluation result is an unsatisfactory evaluation, obtaining the online mode list under an Internet connection condition; Push the online mode list.
8. The method according to claim 7, characterized in that The detecting the evaluation result of the current user on the local mode list includes: detecting a number of refreshes of the local mode list; An evaluation result of the current user on the local mode list is determined according to the refresh number.
9. The method according to claim 8, characterized in that The determining, based on the refresh count, an evaluation result of the current user on the local mode list includes: If the refresh times reach a preset number, it is determined that the evaluation result of the current user on the local mode list is unsatisfactory.
10. The method according to claim 7, characterized in that After pushing the online mode list, the method further includes: When a trial operation for any online massage operation mode in the online mode list is detected, the massage device is controlled to operate in the online massage operation mode corresponding to the trial operation within a preset time period.
11. The method according to claim 7, characterized in that The obtaining of the online mode list under an online connection condition includes: Obtain multiple online massage operation modes under network conditions; Get the sorting priority corresponding to each online massage operation mode; The plurality of online massage operation modes are sorted according to the sorting priority of each online massage operation mode to obtain an online mode list.
12. The method according to claim 11, characterized in that The obtaining of the sorting priority corresponding to each online massage operation mode includes: Obtain the number of downloads and / or runs corresponding to each online massage operation mode; According to the number of downloads and / or runs corresponding to each online massage operation mode, the sorting priority corresponding to each online massage operation mode is determined; wherein the sorting priority corresponding to each online massage operation mode is positively correlated with the number of downloads and the number of runs.
13. The method according to claim 7, characterized in that After pushing the online mode list, the method further includes: When detecting a use operation of a target massage operation mode in the online mode list, verifying the network download authority of the current user; If the current user has the network download authority, the target massage operation mode is downloaded, and the massage device is controlled to operate according to the target massage operation mode.
14. The method according to claim 13, characterized in that After verifying the network download authority of the current user, the method further includes: If the current user does not have the network download permission, a no-authority prompt and a numerical resource transfer page are output; If a transfer completion instruction is received from the numerical resource transfer page, the target massage operation mode is downloaded, and the massage device is controlled to operate according to the target massage operation mode.
15. The method according to claim 13, characterized in that The verifying the network download authority of the current user includes: Detecting the online shared massage operation mode in the working mode corresponding to the current user identity and the number of downloads of the online shared massage operation mode; If the number of downloads reaches a preset number, it is determined that the current user has network download authority.
16. The method according to any one of claims 1 to 3, characterized in that: After storing the massage operation mode selected from the operation mode list into the working mode corresponding to the current user identity, the method further includes: When entering the working mode corresponding to the current user identity, obtaining the sorting priority of each massage operation mode stored in the working mode corresponding to the current user identity; Each of the stored massage operation modes is sorted according to the sorting priority of each of the stored massage operation modes.
17. The method according to claim 16, characterized in that The obtaining of the sorting priority of each massage operation mode stored in the working mode corresponding to the current user identity includes: According to the downloading order of each massage operation mode stored in the working mode corresponding to the current user identity, the sorting priority of each stored massage operation mode is obtained; wherein the sorting priority of each stored massage operation mode is related to the downloading order.
18. An electronic device, characterized in that: The electronic device comprises: The identity recognition module is used to identify the current user in the current working mode and obtain the current user identity; The identity recognition module is further configured to match the user's age with an age range preset for the current working mode, and to match the user's gender with a gender condition preset for the current working mode; if both the user's age matches the age range and the user's gender matches the gender condition, the current user is identified as a legitimate user corresponding to the current working mode, and the identification is used as the current user identity; a determination module, configured to determine, when the current user identity is a legitimate user corresponding to the current working mode, a list of operation modes matching the current user identity according to the massage operation modes preset in the current working mode; A push module, configured to push an operation mode list matching the current user identity, wherein the operation mode list includes one or more massage operation modes; an output module, configured to output a first key setting prompt for the current working mode when exiting the current working mode, so as to prompt the user to input key setting information; A setting module, configured to obtain input first key setting information and complete key setting for the current working mode according to the first key setting information; A storage module, configured to store the massage operation mode selected from the operation mode list into the working mode corresponding to the current user identity; The output module is further configured to output a plurality of operating modes corresponding to different user identities when a target application is started before the identity recognition module recognizes the current user in the current operating mode, wherein the target application is an application for controlling the operation of the massage device; an acquisition module, configured to acquire a selected working mode from the working modes corresponding to the multiple different user identities as the current working mode; A starting module, used for starting the current working mode; The output module is further configured to display, in the current working mode, only page content related to the current working mode in the page of the target application, wherein the page content includes at least a keyword index, related links and / or a pushed page.
19. An electronic device, characterized in that: The electronic device comprises: one or more memories; One or more processors, configured to execute one or more computer programs stored in the one or more memories, so as to perform the method according to any one of claims 1 to 17.
20. A computer-readable storage medium comprising instructions, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 17.
Citation Information
Patent Citations
Control method of neck massager, neck massager and server
CN111564192A