An avatar updating method, system, device and electronic equipment

CN115407905BActive Publication Date: 2026-10-09HANGZHOU EZVIZ SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211025771.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-25
Publication Date
2026-10-09
Estimated Expiration
2042-08-25

AI Technical Summary

Technical Problem

然而,通过各个智能设备的属性参数对各个智能设备进行管理,管理方式过于单一,降低了用户与智能设备之间的互动性

Benefits of technology

[0075] As can be seen from the above, by applying the solution provided in the embodiments of the present invention, a virtual image for displaying smart devices, including multiple virtual sub-images, can be pre-established, and a correspondence between device types and virtual sub-images can be established. Therefore, when a smart device is added, the smart device can be used as the virtual device to be virtualized, and the established virtual image can be updated accordingly. Specifically, the target device type and target device parameters of the virtual device to be virtualized can be obtained first. Then, based on the above correspondence, a preset virtual unit can be added to the virtual sub-image corresponding to the target device type. Based on the target device parameters, the target score of the target attribute corresponding to the target device type can be calculated. If the target score reaches a preset value for the next level below the current level of the virtual sub-image, the virtual sub-image can be updated to the preset virtual sub-image corresponding to the next level.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115407905B_ABST
    Figure CN115407905B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a virtual image updating method, system, device and electronic equipment, and relate to the technical field of computer information processing. The method comprises: obtaining a target device type and a target device parameter of a to-be-virtualized device; adding a preset virtual unit in a virtual sub-image corresponding to the target device type according to a pre-established correspondence between device types and virtual sub-images of virtual images; calculating a target score of a target attribute corresponding to the target device type based on the target device parameter; and updating the virtual sub-image to a preset virtual sub-image corresponding to a next level of a current level of the virtual sub-image if the target score reaches a preset value of the next level. Compared with the prior art, the embodiments of the present application can improve the interactivity between a user and a smart device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer information processing technology, and in particular to a method, system, device, and electronic device for updating virtual avatars. Background Technology

[0002] With the rapid development of smart devices, their types are becoming increasingly diverse. For example, smart devices such as door magnetic detectors, smart curtains, robotic vacuum cleaners, and air quality monitors for indoor air quality have brought greater convenience and safety to people's lives.

[0003] In related technologies, control software can be installed on electronic devices such as mobile phones and tablets to allow users to understand the attribute parameters and working status of each smart device through the software's interface, and to manage these devices. However, managing smart devices solely through their attribute parameters is too simplistic and reduces the interactivity between users and the devices. Summary of the Invention

[0004] The purpose of this invention is to provide a method, system, device, and electronic device for updating virtual avatars, so as to improve the interactivity between users and smart devices. The specific technical solution is as follows:

[0005] In a first aspect, embodiments of the present invention provide a method for updating a virtual image, the method comprising:

[0006] Obtain the target device type and target device parameters of the virtual device to be used;

[0007] Based on the pre-established correspondence between device type and virtual sub-image, a preset virtual unit is added to the virtual sub-image corresponding to the target device type;

[0008] Based on the target device parameters, calculate the target score of the target attribute corresponding to the target device type;

[0009] If the target score reaches the preset value of the next level below the current level of the virtual sub-image, then the virtual sub-image is updated to the preset virtual sub-image corresponding to the next level.

[0010] Optionally, in one specific implementation, calculating the target score of the target attribute corresponding to the target device type based on the target device parameters includes:

[0011] Obtain the current value of the target attribute corresponding to the target device type;

[0012] Using the current value and the target device parameters, calculate the target score for the target attribute.

[0013] Optionally, in one specific implementation, the target device parameters include at least one of: version parameters, usage duration, and new device functions;

[0014] The step of calculating the target score of the target attribute using the current value and the target device parameters includes:

[0015] Update the current value using the target device type and the number of virtual devices to be used;

[0016] The target score of the target attribute is calculated based on the parameter types included in the target device parameters and the current value.

[0017] Optionally, in one specific implementation, calculating the target score of the target attribute based on the parameter types included in the target device parameters and the current value includes:

[0018] Determine whether the target device parameters include the version parameters;

[0019] If the version parameter is included and the version parameter indicates that the virtual device to be used has a version update, then the current value is updated according to the version parameter, and it is determined whether the target device parameter includes usage duration; otherwise, it is determined whether the target device parameter includes usage duration.

[0020] If the usage duration is included and the usage duration indicates that the virtual device to be used has a change in its lifespan, then the current value is updated according to the usage duration, and it is determined whether the target device parameters include the new device function; otherwise, it is determined whether the target device parameters include the new device function.

[0021] If the target device parameters include the newly added device function, then the current value is updated according to the newly added device function to obtain the target score of the target attribute; otherwise, the current value is determined as the target score of the target attribute.

[0022] Optionally, in one specific implementation, the step of adding a preset virtual unit to the virtual sub-image corresponding to the target device type based on a pre-established correspondence between device types and virtual sub-images includes:

[0023] Based on the pre-established correspondence between device type and virtual sub-image, determine the virtual sub-image corresponding to the target device type, and output the candidate preset virtual unit corresponding to the virtual sub-image;

[0024] Receive the user's selection instruction for the target virtual unit among the candidate preset virtual units, and add the target virtual unit to the virtual sub-image.

[0025] Optionally, in one specific implementation, the method further includes:

[0026] If all virtual sub-images are at the same current level, then update the virtual image to the preset virtual image corresponding to the current level.

[0027] Optionally, in one specific implementation, the virtual image is a virtual human figure, and the virtual sub-images of the virtual image include: the head sub-image of the virtual human figure, the arms sub-image of the virtual human figure, the legs sub-image of the virtual human figure, and the torso sub-image of the virtual human figure.

[0028] Secondly, embodiments of the present invention provide a virtual avatar update system, the system comprising:

[0029] The system includes at least one virtual device and a virtual avatar update device;

[0030] Each of the virtual devices to be virtualized is used to send the target device type and target device parameters of the virtual device to the virtual avatar update device;

[0031] The virtual avatar updating device is used to acquire the target device type and target device parameters sent by each virtual device to be virtualized; according to the pre-established correspondence between device type and virtual sub-avatar, a preset virtual unit is added to the virtual sub-avatar corresponding to the target device type; based on the target device parameters, a target score for the target attribute corresponding to the target device type is calculated; if the target score reaches a preset value of the next level below the current level of the virtual sub-avatar, the virtual sub-avatar is updated to the preset virtual sub-avatar corresponding to the next level.

[0032] Alternatively, in one specific implementation,

[0033] The virtual avatar update device is also used to obtain the current value of the target attribute corresponding to the target device type; and to calculate the target score of the target attribute using the current value and the target device parameters.

[0034] Optionally, in one specific implementation, the target device parameters include at least one of: version parameters, usage duration, and new device functions;

[0035] The virtual avatar update device is also used to update the current value using the target device type and the number of virtual devices to be updated; and to calculate the target score of the target attribute based on the parameter types included in the target device parameters and the current value.

[0036] Alternatively, in one specific implementation,

[0037] The virtual avatar update device is also used to determine whether the target device parameters include the version parameters;

[0038] If the version parameter is included and the version parameter indicates that the virtual device to be used has a version update, then the current value is updated according to the version parameter, and it is determined whether the target device parameter includes usage duration; otherwise, it is determined whether the target device parameter includes usage duration.

[0039] If the usage duration is included and the usage duration indicates that the virtual device to be used has a change in its lifespan, then the current value is updated according to the usage duration, and it is determined whether the target device parameters include the new device function; otherwise, it is determined whether the target device parameters include the new device function.

[0040] If the target device parameters include the newly added device function, then the current value is updated according to the newly added device function to obtain the target score of the target attribute; otherwise, the current value is determined as the target score of the target attribute.

[0041] Alternatively, in one specific implementation,

[0042] The virtual avatar update device is further configured to determine the virtual sub-avatar corresponding to the target device type based on a pre-established correspondence between device types and virtual sub-avatars, and output the candidate preset virtual unit corresponding to the virtual sub-avatar; receive a user's selection instruction for a target virtual unit in the candidate preset virtual units, and add the target virtual unit to the virtual sub-avatar.

[0043] Alternatively, in one specific implementation,

[0044] The virtual avatar update device is also used to update the virtual avatar to the preset virtual avatar corresponding to the current level if the current levels of each virtual sub-avatar are the same.

[0045] Optionally, in one specific implementation, the virtual image is a virtual human figure, and the virtual sub-images of the virtual image include: the head sub-image of the virtual human figure, the arms sub-image of the virtual human figure, the legs sub-image of the virtual human figure, and the torso sub-image of the virtual human figure.

[0046] Thirdly, embodiments of the present invention provide a virtual avatar updating device, the device comprising:

[0047] The data acquisition module is used to acquire the target device type and target device parameters of the virtual device to be used;

[0048] The virtual unit addition module is used to add a preset virtual unit to the virtual sub-image corresponding to the target device type based on a pre-established correspondence between device type and virtual sub-image.

[0049] The target score calculation module is used to calculate the target score of the target attribute corresponding to the target device type based on the target device parameters;

[0050] The virtual sub-image update module is used to update the virtual sub-image to the preset virtual sub-image corresponding to the next level if the target score reaches the preset value of the next level of the current level of the virtual sub-image.

[0051] Optionally, in one specific implementation, the target score calculation module includes:

[0052] The value acquisition submodule is used to acquire the current value of the target attribute corresponding to the target device type;

[0053] The score calculation submodule is used to calculate the target score of the target attribute using the current value and the target device parameters.

[0054] Optionally, in one specific implementation, the target device parameters include at least one of: version parameters, usage duration, and new device functions;

[0055] The fraction calculation submodule includes:

[0056] The update unit is used to update the current value using the target device type and the number of virtual devices to be virtualized;

[0057] The calculation unit is used to calculate the target score of the target attribute based on the parameter types included in the target device parameters and the current value.

[0058] Optionally, in one specific implementation, the computing unit is specifically used for:

[0059] Determine whether the target device parameters include the version parameters;

[0060] If the version parameter is included and the version parameter indicates that the virtual device to be used has a version update, then the current value is updated according to the version parameter, and it is determined whether the target device parameter includes usage duration; otherwise, it is determined whether the target device parameter includes usage duration.

[0061] If the usage duration is included and the usage duration indicates that the virtual device to be used has a change in its lifespan, then the current value is updated according to the usage duration, and it is determined whether the target device parameters include the new device function; otherwise, it is determined whether the target device parameters include the new device function.

[0062] If the target device parameters include the newly added device function, then the current value is updated according to the newly added device function to obtain the target score of the target attribute; otherwise, the current value is determined as the target score of the target attribute.

[0063] Optionally, in one specific implementation, the virtual unit adds a module specifically for:

[0064] Based on the pre-established correspondence between device type and virtual sub-image, determine the virtual sub-image corresponding to the target device type, and output the candidate preset virtual unit corresponding to the virtual sub-image;

[0065] Receive the user's selection instruction for the target virtual unit among the candidate preset virtual units, and add the target virtual unit to the virtual sub-image.

[0066] Optionally, in one specific implementation, the device further includes a virtual avatar update module:

[0067] The virtual avatar update module is used to update the virtual avatar to the preset virtual avatar corresponding to the current level if the current levels of the various virtual sub-avatars are the same.

[0068] Optionally, in one specific implementation, the virtual image is a virtual human figure, and the virtual sub-images of the virtual image include: the head sub-image of the virtual human figure, the arms sub-image of the virtual human figure, the legs sub-image of the virtual human figure, and the torso sub-image of the virtual human figure.

[0069] Fourthly, embodiments of the present invention provide an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0070] Memory, used to store computer programs;

[0071] When a processor executes a program stored in memory, it implements any of the virtual avatar update methods provided in the first aspect above.

[0072] Fifthly, embodiments of the present invention provide a computer-readable medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of any of the virtual avatar update methods provided in the first aspect.

[0073] In a sixth aspect, embodiments of the present invention provide a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps of any of the virtual avatar update methods described in the first aspect.

[0074] Beneficial effects of the embodiments of the present invention:

[0075] As can be seen from the above, by applying the solution provided in the embodiments of the present invention, a virtual image for displaying smart devices, including multiple virtual sub-images, can be pre-established, and a correspondence between device types and virtual sub-images can be established. Therefore, when a smart device is added, the smart device can be used as the virtual device to be virtualized, and the established virtual image can be updated accordingly. Specifically, the target device type and target device parameters of the virtual device to be virtualized can be obtained first. Then, based on the above correspondence, a preset virtual unit can be added to the virtual sub-image corresponding to the target device type. Based on the target device parameters, the target score of the target attribute corresponding to the target device type can be calculated. If the target score reaches a preset value for the next level below the current level of the virtual sub-image, the virtual sub-image can be updated to the preset virtual sub-image corresponding to the next level.

[0076] Based on this, the solution provided in this embodiment of the invention can utilize virtual avatars to display smart devices, increasing the fun of the control software interface. Furthermore, when a new smart device is added, preset virtual units can be added to the virtual sub-avatar corresponding to the target device type of the new smart device, enriching the virtual avatar, enhancing the user's enjoyment of managing smart devices, and improving the interaction between the user and the smart device. Moreover, the aforementioned virtual avatar is composed of multiple virtual sub-avatars, each corresponding to a different device type. Therefore, users can intuitively understand the attribute parameters and working status of each smart device through the aforementioned virtual avatars, improving the user's management effectiveness of smart devices. Attached Figure Description

[0077] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these drawings.

[0078] Figure 1 A flowchart illustrating the first virtual avatar update method provided in an embodiment of the present invention;

[0079] Figure 2 A schematic diagram of a virtual avatar for home use provided by the present invention;

[0080] Figure 3 A flowchart illustrating the second virtual avatar updating method provided in this embodiment of the invention;

[0081] Figure 4 A flowchart illustrating the third virtual avatar update method provided in this embodiment of the invention;

[0082] Figure 5 A flowchart illustrating the fourth virtual avatar update method provided in this embodiment of the invention;

[0083] Figure 6 for Figure 5 A flowchart illustrating the specific implementation of step S502;

[0084] Figure 7 This invention provides a schematic diagram of a process for calculating the target score of a security attribute.

[0085] Figure 8 A flowchart illustrating the fifth virtual avatar update method provided in this embodiment of the invention;

[0086] Figure 9 This is a schematic diagram of the structure of a virtual avatar updating system provided in an embodiment of the present invention;

[0087] Figure 10 This is a schematic diagram of the structure of a virtual avatar updating device provided in an embodiment of the present invention;

[0088] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0089] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art based on this application are within the scope of protection of the present invention.

[0090] In related technologies, control software can be installed on electronic devices such as mobile phones and tablets to allow users to understand the attribute parameters and working status of each smart device through the software's interface, and to manage these devices. However, managing smart devices solely through their attribute parameters is too simplistic and reduces the interactivity between users and the devices.

[0091] To address the aforementioned technical problems, this invention provides a method for updating virtual avatars.

[0092] This method is applicable to various application scenarios where users manage smart devices through electronic devices. For example, users can manage smart devices through electronic devices with applications installed for managing smart devices. Furthermore, this method can be applied to various electronic devices with such applications installed, such as smartphones, tablets, and gateways with screens, hereinafter referred to as electronic devices. Therefore, this embodiment of the invention does not limit the application scenarios or the executing entity of this method.

[0093] The virtual avatar update method provided in this embodiment of the invention may include the following steps:

[0094] Obtain the target device type and target device parameters of the virtual device to be used;

[0095] Based on the pre-established correspondence between device type and virtual sub-image, a preset virtual unit is added to the virtual sub-image corresponding to the target device type;

[0096] Based on the target device parameters, calculate the target score of the target attribute corresponding to the target device type;

[0097] If the target score reaches the preset value of the next level below the current level of the virtual sub-image, then the virtual sub-image is updated to the preset virtual sub-image corresponding to the next level.

[0098] As can be seen from the above, by applying the solution provided in the embodiments of the present invention, a virtual image for displaying smart devices, including multiple virtual sub-images, can be pre-established, and a correspondence between device types and virtual sub-images can be established. Therefore, when a smart device is added, the smart device can be used as the virtual device to be virtualized, and the established virtual image can be updated accordingly. Specifically, the target device type and target device parameters of the virtual device to be virtualized can be obtained first. Then, based on the above correspondence, a preset virtual unit can be added to the virtual sub-image corresponding to the target device type. Based on the target device parameters, the target score of the target attribute corresponding to the target device type can be calculated. If the target score reaches a preset value for the next level below the current level of the virtual sub-image, the virtual sub-image can be updated to the preset virtual sub-image corresponding to the next level.

[0099] Based on this, the solution provided in this embodiment of the invention can utilize virtual avatars to display smart devices, increasing the fun of the control software interface. Furthermore, when a new smart device is added, preset virtual units can be added to the virtual sub-avatar corresponding to the target device type of the new smart device, enriching the virtual avatar, enhancing the user's enjoyment of managing smart devices, and improving the interaction between the user and the smart device. Moreover, the aforementioned virtual avatar is composed of multiple virtual sub-avatars, each corresponding to a different device type. Therefore, users can intuitively understand the attribute parameters and working status of each smart device through the aforementioned virtual avatars, improving the user's management effectiveness of smart devices.

[0100] The following is a detailed description of a virtual avatar updating method provided by an embodiment of the present invention, with reference to the accompanying drawings.

[0101] Figure 1 This is a flowchart illustrating a virtual avatar updating method provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the method includes the following steps S101-S104:

[0102] S101: Obtain the target device type and target device parameters of the virtual device to be used.

[0103] When updating a virtual avatar using the virtual device to be virtualized, the target device type and target device parameters of the virtual device to be virtualized can be obtained first.

[0104] The target device types to be virtualized may include: cameras, smart curtains, smart sockets, door magnetic detectors, air purifiers, and smart mattresses, etc. This embodiment of the invention does not specifically limit these types.

[0105] The aforementioned target device parameters may include: version parameters, usage duration, and newly added device functions, etc. This embodiment of the invention does not impose specific limitations on these parameters.

[0106] The aforementioned virtual device can be a newly added smart device or an existing smart device that has undergone a version update. This embodiment of the invention does not impose specific limitations on this.

[0107] If the virtual device to be virtualized is an existing smart device that has been updated, then the virtual unit corresponding to the existing smart device will be deleted, and a new virtual unit corresponding to the existing smart device that has been updated will be added. The target score of the target attribute corresponding to the device type of the smart device will be calculated.

[0108] S102: Based on the pre-established correspondence between device type and virtual sub-image, add a preset virtual unit to the virtual sub-image corresponding to the target device type.

[0109] Since a virtual avatar is composed of various virtual sub-avatars, and each virtual sub-avatar corresponds to a different device type, a correspondence between device types and virtual sub-avatars can be pre-established. Therefore, after obtaining the target device type of the device to be virtualized, the virtual sub-avatar corresponding to the target device type can be determined based on the aforementioned correspondence. Furthermore, by adding preset virtual units to the virtual sub-avatars corresponding to the target device type, the device to be virtualized can be represented, thus enriching the virtual avatar.

[0110] Users can customize virtual sub-images corresponding to various device types, thereby establishing a correspondence between user-defined device types and virtual sub-images.

[0111] Optionally, in one specific implementation, the virtual image is a virtual human figure, and the sub-images of the virtual image include: the head sub-image of the virtual human figure, the arms sub-image of the virtual human figure, the legs sub-image of the virtual human figure, and the torso sub-image of the virtual human figure.

[0112] In this specific implementation, the aforementioned virtual image can be defined as a virtual human figure, and then intelligent devices can be added by adding clothing, accessories and other representations to each virtual sub-image of the aforementioned virtual human figure.

[0113] Of course, the aforementioned virtual avatars can also be virtual animals, etc. This embodiment of the invention does not specifically limit the specific representation of these avatars.

[0114] For example, such as Figure 2 The image shown is a schematic diagram of a virtual avatar for home use provided by the present invention. Figure 2 The virtual characters include: head image 201, hands image 202, body image 203, and feet image 204.

[0115] Among them, the head image 201 is determined by the installed smart device with simple thinking capabilities such as analysis and calculation, that is, the head image 201 corresponds to a smart device with simple thinking capabilities such as analysis and calculation, for example, a gateway device; the body image 203 is determined by a smart device that can detect the environmental quality of the home environment such as air, temperature, and light, that is, the body image 203 corresponds to a smart device that can detect the environmental quality of the home environment such as air purifiers and air humidifiers; the hands image 202 is determined by a smart device that can provide home convenience, that is, the hands image 202 corresponds to a smart device that can provide home convenience, for example, smart curtains and smart sockets; the feet image 204 is determined by the installed security smart device, that is, the feet image 204 corresponds to a security smart device, for example, a camera, a door magnetic detector, or an infrared human body detection device.

[0116] Optionally, a correspondence between device types and virtual units can be established in advance, thereby adding virtual units corresponding to the target device type of the device to be virtualized to the virtual sub-image corresponding to the target device type of the device to be virtualized.

[0117] To increase the diversity of virtual sub-images, electronic devices can also output candidate preset virtual units corresponding to the virtual sub-image after determining the virtual sub-image corresponding to the target device type, so that users can make a selection.

[0118] Based on this, in one optional implementation, such as Figure 3 As shown, step S102 above may include the following steps S1021-S1022:

[0119] S1021: Based on the pre-established correspondence between device type and virtual sub-image, determine the virtual sub-image corresponding to the target device type, and output the candidate preset virtual unit corresponding to the virtual sub-image.

[0120] S1022: Receive the user's selection instruction for the target virtual unit in the candidate preset virtual units, and add the target virtual unit in the virtual sub-image.

[0121] In this specific implementation, multiple virtual units corresponding to each virtual sub-image can be pre-set according to each device type, so that users can make selections.

[0122] In this way, after determining the target device type of the virtual device, the electronic device can determine the virtual sub-image corresponding to the target device type according to the pre-established correspondence between the device type and the virtual sub-image, and output the candidate preset virtual unit corresponding to the virtual sub-image so that the user can make a selection.

[0123] After receiving a user's selection instruction for a target virtual unit among the aforementioned candidate preset virtual units, the electronic device adds the target virtual unit to the aforementioned virtual sub-image.

[0124] For example, after determining that the target device type of the virtual device A is 'a', the electronic device can determine that the virtual sub-image corresponding to the target device type 'a' is a head sub-image based on the pre-established correspondence between device types and virtual sub-images. Therefore, the electronic device can output candidate preset virtual units corresponding to the head sub-image: glasses 1, glasses 2, and glasses 3, for the user to select. Upon receiving the user's selection instruction to select glasses 1, the electronic device adds glasses 1 to the aforementioned head sub-image.

[0125] S103: Based on the target device parameters, calculate the target score of the target attribute corresponding to the target device type.

[0126] Since different device types have different functional focuses, and users focus on different attributes, for the same device to be virtualized, if the device's functional focus is on intelligence and security, and the user focuses on security attributes, then the target device type can be determined as security-oriented.

[0127] For example, by Figure 2 As can be seen, by using different virtual sub-images to correspond to different types of smart devices, the various types of smart devices can be divided into four attributes: intelligence, security, health, and convenience. Specifically, the intelligence attribute is determined by the installed smart devices that possess simple analytical and computational capabilities; the security attribute is determined by the installed security-related smart devices; the health attribute is determined by smart devices that can detect environmental quality such as air quality, temperature, and light intensity in the home environment; and the convenience attribute is determined by smart devices that provide convenience for the home.

[0128] As can be seen from the above, there is overlap in the functions of the device types corresponding to the various attributes. In other words, the same smart device can have multiple functional focuses at the same time, that is, the same smart device can correspond to multiple attributes.

[0129] Optionally, if the same smart device can have multiple functional focuses at the same time, the target attribute corresponding to the device type of the smart device can be determined based on the user's selection.

[0130] Because different devices have different device parameters, the target score of the target attribute corresponding to the device type of a device can be different whether a device to be virtualized is added or a virtualized device is removed. Therefore, whenever a smart device changes, the target score of the target attribute corresponding to the device type of that device needs to be recalculated.

[0131] After obtaining the target device type and target device parameters of the virtual device, the target attributes corresponding to the target device type can be determined, and the target score of the target attributes can be calculated based on the target device parameters.

[0132] Alternatively, in one specific implementation, such as Figure 4 As shown, step S103 above may include the following steps S1031-S1032:

[0133] S1031: Obtain the current value of the target attribute corresponding to the target device type;

[0134] S1032: Calculate the target score of the target attribute using the current value and the target device parameters.

[0135] In this specific implementation, after obtaining the target device type and target device parameters of the virtual device to be used, the current value of the target attribute corresponding to the target device type can be determined. Then, using the current value and the target device parameters, the target score of the target attribute can be calculated.

[0136] The target device parameters mentioned above may include: version parameters, usage duration, and newly added device functions. However, different devices may have different configured device parameters. Therefore, this embodiment of the invention does not impose specific limitations on this.

[0137] Alternatively, in one specific implementation, such as Figure 5 As shown, the target device parameters include at least one of the following: version parameters, usage duration, and new device functions. Therefore, step S1032 above can include the following steps S501-S502:

[0138] S501: Update the current value using the target device type and the number of virtual devices to be used;

[0139] S502: Calculate the target score of the target attribute based on the parameter types and current values ​​included in the target device parameters.

[0140] In this specific implementation, the target device parameters of the virtual device include at least one of the following: version parameters, usage duration, and new device functions.

[0141] After determining the current value of the target attribute corresponding to the target device type of the aforementioned virtual device, the current value can be updated based on the target device type and the number of virtual devices. Then, the target score of the aforementioned target attribute can be calculated based on the parameter types included in the target device type and the current value.

[0142] For example, the current value of the target attribute corresponding to the target device type of the aforementioned virtual device is 80. The device type of the virtual device is different from the device type of the already virtualized device, and the number of virtual devices added is one. Therefore, based on the target device type and the number of virtual devices, the target score of the aforementioned target attribute is calculated as: 80 + 1*20 + 1*10 = 100. Here, 1*20 represents the value corresponding to the target device type, and 1*10 represents the value corresponding to the number of virtual devices. Thus, the current value of 80 can be updated using the target score of 100, resulting in an updated value of 100.

[0143] Alternatively, in one specific implementation, such as Figure 6 As shown, step S502 above may include the following steps S601-S607:

[0144] S601: Determine whether the target device parameters include version parameters; if they include version parameters and the version parameters indicate that the virtual device to be updated has a version, then proceed to step S602; otherwise, proceed to step S603.

[0145] S602: Update the current value according to the version parameters, and execute step S603;

[0146] S603: Determine whether the target device parameters include usage duration; if usage duration is included and the usage duration indicates that the virtual device has a change in its lifespan, then proceed to step S604; otherwise, proceed to step S605.

[0147] S604: Update the current value based on the usage duration and proceed to step S605;

[0148] S605: Determine whether the target device parameters include the function of adding a new device; if the target device parameters include the function of adding a new device, proceed to step S606; otherwise, proceed to step S607.

[0149] S606: Update the current value based on the newly added device function to obtain the target score of the target attribute;

[0150] S607: Determine the current value as the target score for the target attribute.

[0151] In this specific implementation, after updating the current value based on the target device type and the number of virtual devices, the target score of the target attribute can be calculated based on the parameter types and current values ​​included in the target device parameters.

[0152] First, we can determine whether the target device parameters mentioned above include version parameters.

[0153] If the target device parameters include a version parameter, and the version parameter indicates that the virtual device to be identified has a version update, then the current value can be updated according to the version parameter, and it can be determined whether the target device parameters include usage time; if the target device parameters include a version parameter, and the version parameter indicates that the virtual device to be identified does not have a version update, then it can be determined whether the target device parameters include usage time; if the target device parameters do not include a version parameter, then it can be determined whether the target device parameters include usage time.

[0154] If the version parameter indicates that the virtual device has been updated, it can indicate that the virtual device is a newly added smart device, or it can indicate that the virtual device is an existing smart device that has been updated. This embodiment of the invention does not impose specific limitations on this.

[0155] For example, after an existing smart device is updated, the virtual unit corresponding to that device is deleted, and a new virtual unit is added to the virtual sub-image corresponding to that device.

[0156] If the target device parameters include usage duration, and usage duration indicates that the virtual device's lifespan has changed, then the current value is updated based on the usage duration, and it is determined whether the target device parameters include the function of adding a new device. If the target device parameters include usage duration, and usage duration indicates that the virtual device's lifespan has not changed, then it is determined whether the target device parameters include the function of adding a new device. If the target device parameters do not include usage duration, then it is determined whether the target device parameters include the function of adding a new device.

[0157] If the target device parameters include the addition of new device functions, the current value is updated based on the addition of new device functions to obtain the target score of the target attribute; if the target device parameters do not include the addition of new device functions, the current value is determined as the target score of the target attribute.

[0158] The process of calculating the target score of the target attribute based on the parameter types and current values ​​included in the target device parameters can be the same as or different from the calculation order of steps S601-S607 described above. This embodiment of the invention does not impose specific limitations on this.

[0159] S104: If the target score reaches the preset value of the next level below the current level of the virtual sub-image, then update the virtual sub-image to the preset virtual sub-image corresponding to the next level.

[0160] To enhance the diversity and richness of virtual sub-avatars, preset virtual sub-avatars of different levels can be pre-set. When the target score of the target attribute corresponding to the target device type of the virtual device reaches the preset value corresponding to each level, the virtual sub-avatar can be upgraded to the preset virtual sub-avatar corresponding to each level. This increases the diversity of virtual sub-avatars, thereby enhancing the fun of user management of smart devices, further enriching the diversity of user management of smart devices, and improving the interaction between users and smart devices.

[0161] Therefore, after calculating the target score of the target attribute corresponding to the target device type of the virtual device, it can be determined whether the target score has reached the preset value of the next level of the current level of the virtual sub-image.

[0162] If the target score reaches the preset value of the next level below the current level of the virtual sub-image, the virtual sub-image can be updated to the preset virtual sub-image corresponding to the next level.

[0163] For example, if the current level of the virtual sub-avatar is level 3, and the level 3 virtual sub-avatar is a regular watch, if the target score reaches the preset value of level 4 for the virtual sub-avatar, the regular watch can be upgraded to a level 4 preset smart watch.

[0164] In this way, based on the target scores of the aforementioned target attributes, the sub-images of the virtual avatar can be updated and upgraded, and the virtual sub-images can be re-rendered.

[0165] For example, such as Figure 7 The diagram shown illustrates a flowchart for calculating the target score of a security attribute according to the present invention. Figure 7 The security attribute value of the current home environment obtained from the platform is the current value of the target attribute corresponding to the target device type of the virtual device to be obtained in this embodiment of the invention; Figure 7 The security attributes in the system meet the upgrade requirements, which is the determination of whether the target score in this embodiment of the invention has reached the preset value of the next level below the current level of the virtual sub-image.

[0166] The system retrieves the current home environment's security attribute values ​​from the platform and determines whether the types of security devices in the current home environment have increased. If the types of security devices in the current home environment have increased, the formula for calculating the security attribute is: Security Attribute = Current Security Attribute + Number of New Types * 20. If the types of security devices in the current home environment have not increased, the system determines whether the number of security devices in the current home environment has increased.

[0167] If the number of security devices in the current home environment increases, the formula for calculating the security attribute is: Security Attribute = Current Security Attribute + Number of New Devices * 10; If the number of security devices in the current home environment does not increase, then it is determined whether the functions of the security devices in the current home environment have increased.

[0168] If the functions of the security devices in the current home environment are increased, the formula for calculating the security attribute can be: Security attribute = Current security attribute + Number of new functions * 8; If the functions of the security devices in the current home environment are not increased, it is determined whether the version of the security devices in the current home environment is higher than the initial version.

[0169] If the current version of the security devices in the home environment is higher than the initial version, the security attribute can be calculated using the formula: Security Attribute = Current Security Attribute + Number of Devices with Versions Higher Than Initial Version * Corresponding Version Difference Value. For example, if the initial version is 1.0.0 and the current version is 1.1.2, then the version difference between the two versions is 12. If the current version of the security devices in the home environment is lower than the initial version, it is determined whether the lifespan of the security devices in the current home environment has changed.

[0170] If the lifespan of the security equipment in the current home environment changes, the formula for calculating the security attribute is: Security Attribute = Current Security Attribute + Remaining Lifespan / Total Lifespan * 10; if the lifespan of the security equipment in the current home environment does not change, the latest security attribute value is calculated.

[0171] Determine if the latest security attribute value meets the upgrade requirements. If it does, upgrade the character's legs to make them stronger. If not, end the security attribute value calculation process.

[0172] Since updating a virtual avatar is essentially adding a smart device, to make this process more engaging, one possible implementation method is as follows: Figure 8 As shown, the virtual avatar update method provided in this embodiment of the invention may further include the following step S801:

[0173] S801: If all virtual sub-images are at the same current level, update the virtual image to the preset virtual image corresponding to the current level.

[0174] In this specific implementation, when the current levels of each virtual sub-image are the same, the virtual images can be updated to the preset virtual images corresponding to the current level. This makes the virtual images more aesthetically pleasing and richer in appearance as a whole, thereby increasing the fun of managing smart devices for users, enriching the diversity of user management of smart devices, and improving the interactivity between users and smart devices.

[0175] For example, the virtual avatar is preset to have 3 levels: level 1 is a child, level 2 is a teenager, and level 3 is an adult. If any of the virtual sub-avatars in this virtual avatar is currently at level 2, then the child at level 1 can be updated to a teenager at level 2.

[0176] As can be seen from the above, by applying the solution provided in the embodiments of the present invention, a virtual image for displaying smart devices, including multiple virtual sub-images, can be pre-established, and a correspondence between device types and virtual sub-images can be established. Therefore, when a smart device is added, the smart device can be used as the virtual device to be virtualized, and the established virtual image can be updated accordingly. Specifically, the target device type and target device parameters of the virtual device to be virtualized can be obtained first. Then, based on the above correspondence, a preset virtual unit can be added to the virtual sub-image corresponding to the target device type. Based on the target device parameters, the target score of the target attribute corresponding to the target device type can be calculated. If the target score reaches a preset value for the next level below the current level of the virtual sub-image, the virtual sub-image can be updated to the preset virtual sub-image corresponding to the next level.

[0177] Based on this, the solution provided in this embodiment of the invention can utilize virtual avatars to display smart devices, increasing the fun of the control software interface. Furthermore, when a new smart device is added, preset virtual units can be added to the virtual sub-avatar corresponding to the target device type of the new smart device, enriching the virtual avatar, enhancing the user's enjoyment of managing smart devices, and improving the interaction between the user and the smart device. Moreover, the aforementioned virtual avatar is composed of multiple virtual sub-avatars, each corresponding to a different device type. Therefore, users can intuitively understand the attribute parameters and working status of each smart device through the aforementioned virtual avatars, improving the user's management effectiveness of smart devices.

[0178] Corresponding to the virtual avatar update method provided in the above embodiments of the present invention, the present invention also provides a virtual avatar update system, which includes at least one virtual device to be virtualized and a virtual avatar update device.

[0179] Figure 9This is a schematic diagram of the structure of a virtual avatar update system provided in an embodiment of the present invention, as shown below. Figure 9 As shown, the system can use the following devices:

[0180] Each of the virtual devices to be virtualized 910 is used to send the target device type and target device parameters of the virtual device to be virtualized 910 to the virtual image update device 920;

[0181] The virtual avatar updating device 920 is used to acquire the target device type and target device parameters sent by each virtual device 910; according to the pre-established correspondence between device type and virtual sub-avatar, a preset virtual unit is added to the virtual sub-avatar corresponding to the target device type; based on the target device parameters, the target score of the target attribute corresponding to the target device type is calculated; if the target score reaches the preset value of the next level of the current level of the virtual sub-avatar, the virtual sub-avatar is updated to the preset virtual sub-avatar corresponding to the next level.

[0182] The target device type of the aforementioned virtual device 910 may include: cameras, smart curtains, smart sockets, door magnetic detectors, air purifiers, and smart mattresses, etc. This embodiment of the invention does not specifically limit this type.

[0183] The aforementioned target device parameters may include: version parameters, usage duration, and newly added device functions, etc. This embodiment of the invention does not impose specific limitations on these parameters.

[0184] The virtual device 910 mentioned above can be a newly added smart device or an existing smart device that has undergone a version update. This embodiment of the invention does not impose specific limitations on this.

[0185] If the aforementioned virtual device 910 is an existing smart device that has undergone a version update, then the virtual unit corresponding to the existing smart device will be deleted, and a new virtual unit corresponding to the existing smart device that has undergone a version update will be added. The target score of the target attribute corresponding to the device type of the smart device will be calculated.

[0186] The aforementioned virtual avatar update device 920 can be a control device used to control the various virtual devices 910 in the virtual avatar update system provided in this embodiment of the invention, such as a mobile phone, tablet, gateway with a screen, etc. This embodiment of the invention does not specifically limit its functionality in this regard.

[0187] In this way, the various virtual devices 910 can constitute a device system, which is then virtualized into a virtual avatar by the virtual avatar updating device 920. For example, the various virtual devices 910 can be identified as different smart home devices, and thus, the smart home system composed of these smart home devices can be virtualized into a virtual avatar by the virtual avatar updating device 920.

[0188] Based on this, the solution provided in this embodiment of the invention can utilize virtual avatars to display smart devices, increasing the fun of the control software interface. Furthermore, when a new smart device is added, preset virtual units can be added to the virtual sub-avatar corresponding to the target device type of the new smart device, enriching the virtual avatar, enhancing the user's enjoyment of managing smart devices, and improving the interaction between the user and the smart device. Moreover, the aforementioned virtual avatar is composed of multiple virtual sub-avatars, each corresponding to a different device type. Therefore, users can intuitively understand the attribute parameters and working status of each smart device through the aforementioned virtual avatars, improving the user's management effectiveness of smart devices.

[0189] Alternatively, in one specific implementation,

[0190] The virtual avatar update device 920 is also used to obtain the current value of the target attribute corresponding to the target device type;

[0191] Using the current value and the target device parameters, calculate the target score for the target attribute.

[0192] Optionally, in one specific implementation, the target device parameters include at least one of: version parameters, usage duration, and new device functions;

[0193] The virtual avatar update device 920 is also used to update the current value using the target device type and the number of virtual devices to be virtualized; and to calculate the target score of the target attribute based on the parameter types included in the target device parameters and the current value.

[0194] Alternatively, in one specific implementation,

[0195] The virtual avatar update device 920 is also used to determine whether the target device parameters include the version parameters;

[0196] If the version parameter is included and the version parameter indicates that the virtual device to be used has a version update, then the current value is updated according to the version parameter, and it is determined whether the target device parameter includes usage duration; otherwise, it is determined whether the target device parameter includes usage duration.

[0197] If the usage duration is included and the usage duration indicates that the virtual device to be used has a change in its lifespan, then the current value is updated according to the usage duration, and it is determined whether the target device parameters include the new device function; otherwise, it is determined whether the target device parameters include the new device function.

[0198] If the target device parameters include the newly added device function, then the current value is updated according to the newly added device function to obtain the target score of the target attribute; otherwise, the current value is determined as the target score of the target attribute.

[0199] Alternatively, in one specific implementation,

[0200] The virtual avatar update device 920 is further configured to determine the virtual sub-avatar corresponding to the target device type based on a pre-established correspondence between device type and virtual sub-avatar, and output the candidate preset virtual unit corresponding to the virtual sub-avatar; receive the user's selection instruction for the target virtual unit in the candidate preset virtual unit, and add the target virtual unit to the virtual sub-avatar.

[0201] Alternatively, in one specific implementation,

[0202] The virtual avatar update device 920 is also used to update the virtual avatar to the preset virtual avatar corresponding to the current level if the current levels of each virtual sub-avatar are the same.

[0203] Optionally, in one specific implementation, the virtual image is a virtual human figure, and the virtual sub-images of the virtual image include: the head sub-image of the virtual human figure, the arms sub-image of the virtual human figure, the legs sub-image of the virtual human figure, and the torso sub-image of the virtual human figure.

[0204] Corresponding to the virtual avatar updating method provided in the above embodiments of the present invention, the present invention also provides a virtual avatar updating device.

[0205] Figure 10 This is a schematic diagram of the structure of a virtual avatar updating device provided in an embodiment of the present invention, as shown below. Figure 10 As shown, the device may include the following modules:

[0206] Data acquisition module 1010 is used to acquire the target device type and target device parameters of the virtual device to be used;

[0207] The virtual unit addition module 1020 is used to add a preset virtual unit to the virtual sub-image corresponding to the target device type according to the pre-established correspondence between device type and virtual sub-image.

[0208] The target score calculation module 1030 is used to calculate the target score of the target attribute corresponding to the target device type based on the target device parameters;

[0209] The virtual sub-image update module 1040 is used to update the virtual sub-image to the preset virtual sub-image corresponding to the next level if the target score reaches the preset value of the next level of the current level of the virtual sub-image.

[0210] As can be seen from the above, by applying the solution provided in the embodiments of the present invention, a virtual image for displaying smart devices, including multiple virtual sub-images, can be pre-established, and a correspondence between device types and virtual sub-images can be established. Therefore, when a smart device is added, the smart device can be used as the virtual device to be virtualized, and the established virtual image can be updated accordingly. Specifically, the target device type and target device parameters of the virtual device to be virtualized can be obtained first. Then, based on the above correspondence, a preset virtual unit can be added to the virtual sub-image corresponding to the target device type. Based on the target device parameters, the target score of the target attribute corresponding to the target device type can be calculated. If the target score reaches a preset value for the next level below the current level of the virtual sub-image, the virtual sub-image can be updated to the preset virtual sub-image corresponding to the next level.

[0211] Based on this, the solution provided in this embodiment of the invention can utilize virtual avatars to display smart devices, increasing the fun of the control software interface. Furthermore, when a new smart device is added, preset virtual units can be added to the virtual sub-avatar corresponding to the target device type of the new smart device, enriching the virtual avatar, enhancing the user's enjoyment of managing smart devices, and improving the interaction between the user and the smart device. Moreover, the aforementioned virtual avatar is composed of multiple virtual sub-avatars, each corresponding to a different device type. Therefore, users can intuitively understand the attribute parameters and working status of each smart device through the aforementioned virtual avatars, improving the user's management effectiveness of smart devices.

[0212] Optionally, in one specific implementation, the target score calculation module 1030 includes:

[0213] The value acquisition submodule is used to acquire the current value of the target attribute corresponding to the target device type;

[0214] The score calculation submodule is used to calculate the target score of the target attribute using the current value and the target device parameters.

[0215] Optionally, in one specific implementation, the target device parameters include at least one of: version parameters, usage duration, and new device functions;

[0216] The fraction calculation submodule includes:

[0217] The update unit is used to update the current value using the target device type and the number of virtual devices to be virtualized;

[0218] The calculation unit is used to calculate the target score of the target attribute based on the parameter types included in the target device parameters and the current value.

[0219] Optionally, in one specific implementation, the computing unit is specifically used for:

[0220] Determine whether the target device parameters include the version parameters;

[0221] If the version parameter is included and the version parameter indicates that the virtual device to be used has a version update, then the current value is updated according to the version parameter, and it is determined whether the target device parameter includes usage duration; otherwise, it is determined whether the target device parameter includes usage duration.

[0222] If the usage duration is included and the usage duration indicates that the virtual device to be used has a change in its lifespan, then the current value is updated according to the usage duration, and it is determined whether the target device parameters include the new device function; otherwise, it is determined whether the target device parameters include the new device function.

[0223] If the target device parameters include the newly added device function, then the current value is updated according to the newly added device function to obtain the target score of the target attribute; otherwise, the current value is determined as the target score of the target attribute.

[0224] Optionally, in one specific implementation, the virtual unit adding module 1020 is specifically used for:

[0225] Based on the pre-established correspondence between device type and virtual sub-image, determine the virtual sub-image corresponding to the target device type, and output the candidate preset virtual unit corresponding to the virtual sub-image;

[0226] Receive the user's selection instruction for the target virtual unit among the candidate preset virtual units, and add the target virtual unit to the virtual sub-image.

[0227] Optionally, in one specific implementation, the device further includes a virtual avatar update module:

[0228] The virtual avatar update module is used to update the virtual avatar to the preset virtual avatar corresponding to the current level if the current levels of the various virtual sub-avatars are the same.

[0229] Optionally, in one specific implementation, the virtual image is a virtual human figure, and the virtual sub-images of the virtual image include: the head sub-image of the virtual human figure, the arms sub-image of the virtual human figure, the legs sub-image of the virtual human figure, and the torso sub-image of the virtual human figure.

[0230] Corresponding to the virtual avatar updating method provided in the above embodiments of the present invention, the present invention also provides an electronic device, such as... Figure 11 As shown, it includes a processor 1101, a communication interface 1102, a memory 1103, and a communication bus 1104. The processor 1101, communication interface 1102, and memory 1103 communicate with each other via the communication bus 1104.

[0231] Memory 1103 is used to store computer programs;

[0232] When the processor 1101 executes the program stored in the memory 1103, it implements the steps of any of the virtual image update methods provided in the above embodiments of the present invention.

[0233] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0234] The communication interface is used for communication between the aforementioned electronic devices and other devices.

[0235] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0236] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0237] In another embodiment of the present invention, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of any of the above-described virtual image update methods.

[0238] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the virtual image update methods described above.

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

[0240] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0241] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments, system embodiments, electronic device embodiments, computer-readable storage medium embodiments, and computer program product embodiments are basically similar to the method embodiments, and therefore the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0242] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A method for updating a virtual avatar, characterized in that, The method includes: Obtain the target device type and target device parameters of the virtual device to be virtualized. The target device parameters include: version parameters, usage duration, and new device functions. The virtual device to be virtualized is a smart device. Based on the pre-established correspondence between device type and virtual sub-image, a preset virtual unit is added to the virtual sub-image corresponding to the target device type; Based on the target device parameters, calculate the target score of the target attribute corresponding to the target device type; If the target score reaches the preset value of the next level below the current level of the virtual sub-image, then the virtual sub-image is updated to the preset virtual sub-image corresponding to the next level. The step of calculating the target score of the target attribute corresponding to the target device type based on the target device parameters includes: Obtain the current value of the target attribute corresponding to the target device type; Using the current value and the target device parameters, calculate the target score for the target attribute; The step of calculating the target score of the target attribute using the current value and the target device parameters includes: Update the current value using the target device type and the number of virtual devices to be used; The target score of the target attribute is calculated based on the parameter types included in the target device parameters and the current value.

2. The method according to claim 1, characterized in that, The step of calculating the target score of the target attribute based on the parameter types included in the target device parameters and the current value includes: Determine whether the target device parameters include the version parameters; If the version parameter is included and the version parameter indicates that the virtual device to be used has a version update, then the current value is updated according to the version parameter, and it is determined whether the target device parameter includes usage duration; otherwise, it is determined whether the target device parameter includes usage duration. If the usage duration is included and the usage duration indicates that the virtual device to be used has a change in its lifespan, then the current value is updated according to the usage duration, and it is determined whether the target device parameters include the new device function; otherwise, it is determined whether the target device parameters include the new device function. If the target device parameters include the newly added device function, then the current value is updated according to the newly added device function to obtain the target score of the target attribute; otherwise, the current value is determined as the target score of the target attribute.

3. The method according to claim 1, characterized in that, The step of adding a preset virtual unit to the virtual sub-image corresponding to the target device type based on a pre-established correspondence between device type and virtual image includes: Based on the pre-established correspondence between device type and virtual sub-image, determine the virtual sub-image corresponding to the target device type, and output the candidate preset virtual unit corresponding to the virtual sub-image; Receive the user's selection instruction for the target virtual unit among the candidate preset virtual units, and add the target virtual unit to the virtual sub-image.

4. The method according to claim 1, characterized in that, The method further includes: If all virtual sub-images are at the same current level, then update the virtual image to the preset virtual image corresponding to the current level.

5. The method according to any one of claims 1-4, characterized in that, The virtual image is a virtual human figure, and the virtual sub-images of the virtual image include: the head sub-image of the virtual human figure, the arms sub-image of the virtual human figure, the legs sub-image of the virtual human figure, and the torso sub-image of the virtual human figure.

6. A virtual avatar update system, characterized in that, The system includes at least one virtual device and a virtual avatar update device; Each virtual device is used to send the target device type and target device parameters of the virtual device to the virtual avatar update device. The target device parameters include: version parameters, usage duration and new device functions. The virtual device is a smart device. The virtual avatar updating device is used to acquire the target device type and target device parameters sent by each of the virtual devices to be virtualized; add a preset virtual unit to the virtual sub-avatar corresponding to the target device type according to a pre-established correspondence between device types and virtual sub-avatars; calculate the target score of the target attribute corresponding to the target device type based on the target device parameters; if the target score reaches a preset value of the next level below the current level of the virtual sub-avatar, then update the virtual sub-avatar to the preset virtual sub-avatar corresponding to the next level; the step of calculating the target score of the target attribute corresponding to the target device type based on the target device parameters includes: acquiring the current value of the target attribute corresponding to the target device type; calculating the target score of the target attribute using the current value and the target device parameters; the step of calculating the target score of the target attribute using the current value and the target device parameters includes: updating the current value using the target device type and the number of virtual devices to be virtualized; and calculating the target score of the target attribute based on the parameter types included in the target device parameters and the current value.

7. A virtual avatar updating device, characterized in that, The device includes: The data acquisition module is used to acquire the target device type and target device parameters of the virtual device to be virtualized. The target device parameters include: version parameters, usage duration and new device functions. The virtual device to be virtualized is a smart device. The virtual unit addition module is used to add a preset virtual unit to the virtual sub-image corresponding to the target device type based on a pre-established correspondence between device type and virtual sub-image. The target score calculation module is used to calculate the target score of the target attribute corresponding to the target device type based on the target device parameters; The virtual sub-image update module is used to update the virtual sub-image to the preset virtual sub-image corresponding to the next level if the target score reaches the preset value of the next level of the current level of the virtual sub-image. The target score calculation module includes: The value acquisition submodule is used to acquire the current value of the target attribute corresponding to the target device type; The score calculation submodule is used to calculate the target score of the target attribute using the current value and the target device parameters; The fraction calculation submodule includes: The update unit is used to update the current value using the target device type and the number of virtual devices to be virtualized; The calculation unit is used to calculate the target score of the target attribute based on the parameter types included in the target device parameters and the current value.

8. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the steps of the method described in any one of claims 1-5.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method described in any one of claims 1-5.

Citation Information

Patent Citations

  • Health condition feedback method and device, equipment and storage medium

    CN111627557A