Environmental value display method and device
Obtaining environmental parameters through smart home devices, determining and rendering target graphics, solves the problem that users cannot intuitively feel the environmental values, and achieves a more vivid display of environmental conditions.
Patent Information
- Application Number
- CN202311459821.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2025-05-06
AI Technical Summary
Existing smart home devices cannot allow users to truly feel the actual environment conditions corresponding to the value by directly outputting the environment value, and cannot meet users' usage needs.
By obtaining the environment parameters of the target environment, determining the target preset graphics and their corresponding graphics parameters, and visually rendering them to generate the target image to be displayed to reflect the environment status.
By displaying vivid images, users can more intuitively feel the environment conditions, enhance the fun of the numerical display of the environment, and provide a more vivid user experience.
Smart Images

Figure CN119938187A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and machine-readable storage medium for displaying environmental values. Background Art
[0002] In order to facilitate users to obtain environmental information of the current indoor environment, smart home devices usually collect environmental values of the environment through sensors and directly output the values to users through a display screen.
[0003] In the current technology, only showing the above specific values to users cannot allow users to truly feel the actual environmental conditions corresponding to the values, and therefore cannot meet the user's usage needs. Summary of the invention
[0004] The present disclosure provides a method for displaying environmental values, the method comprising:
[0005] Get the environment parameters of the target environment;
[0006] Based on the environmental parameters, determining a target preset graphic and graphic parameters corresponding to the target preset graphic;
[0007] The target preset graphic is visually rendered based on the graphic parameters to generate a target image to be displayed, and the target image is displayed.
[0008] Optionally, before determining a target preset graphic and a graphic parameter corresponding to the target preset graphic based on the environmental parameter, the method further includes:
[0009] Determine whether the environmental parameters include key parameters; wherein the key parameters are parameters suitable for display through target preset graphics;
[0010] If the environmental parameters include the key parameters, the target preset graphic and the graphic parameters corresponding to the target preset graphic are further determined based on the environmental parameters.
[0011] Optionally, the target preset graphic includes a flower graphic.
[0012] Optionally, the environmental parameter includes a temperature parameter; the graphic parameter includes an opening angle of petals of a flower graphic;
[0013] The step of determining a target preset graphic and graphic parameters corresponding to the target preset graphic based on the environmental parameters includes:
[0014] Based on the temperature parameter, the flower pattern and the petal opening angle corresponding to the flower pattern are determined.
[0015] Optionally, the environmental parameter includes a humidity parameter; the graphic parameter includes a graphic parameter for indicating the dryness of the flower graphic;
[0016] The step of determining a target preset graphic and graphic parameters corresponding to the target preset graphic based on the environmental parameters includes:
[0017] Based on the humidity parameter, the flower pattern and a graphic parameter corresponding to the flower pattern and used to indicate the dryness degree of the flower pattern are determined.
[0018] Optionally, the graphic parameters used to represent the dryness of the flower graphic include a concave-convex degree parameter of the surface texture of the flower graphic and a curling degree parameter of the flower skeleton;
[0019] The step of determining the flower pattern and a graphic parameter corresponding to the flower pattern and used to indicate the dryness degree of the flower pattern based on the humidity parameter includes:
[0020] Based on the humidity parameter, the concave-convex degree parameter of the flower pattern and the surface texture corresponding to the flower pattern, and the curling degree parameter of the flower skeleton corresponding to the flower pattern are determined.
[0021] Optionally, the environmental parameters also include air quality parameters;
[0022] The method further comprises:
[0023] generating a particle particle map with display based on the air quality parameters;
[0024] The visual rendering of the target preset graphic based on the graphic parameters to generate a target image to be displayed, and displaying the target image includes:
[0025] The target preset graphic is visually rendered based on the graphic parameters and the particle particle image to generate a target image to be displayed, and the target image is displayed.
[0026] Optionally, the air quality parameter is positively correlated with the number of particles contained in the particle particle map.
[0027] Optionally, the target environment includes an environment in which an electronic device used to collect the environmental parameters is located; wherein the electronic device includes a smart home device; and the environment in which the electronic device is located includes an indoor environment.
[0028] The present disclosure also provides a device for displaying environmental values, the device comprising:
[0029] An acquisition module is used to obtain the environmental parameters of the target environment;
[0030] A determination module, configured to determine a target preset graphic and graphic parameters corresponding to the target preset graphic based on the environmental parameters;
[0031] A generation module is used to perform visual rendering on the target preset graphic based on the graphic parameters, generate a target image to be displayed, and display the target image.
[0032] The present disclosure also provides an electronic device, comprising a communication interface, a processor, a memory and a bus, wherein the communication interface, the processor and the memory are interconnected via the bus;
[0033] The memory stores machine-readable instructions, and the processor executes the method for displaying the environmental value by calling the machine-readable instructions.
[0034] The present disclosure also provides a machine-readable storage medium, wherein the machine-readable storage medium stores machine-readable instructions, and when the machine-readable instructions are called and executed by a processor, the method for displaying the environmental numerical value is implemented.
[0035] The technical solution provided by the present disclosure may at least include the following beneficial effects:
[0036] Through the above embodiments, by obtaining the environmental parameters of the target environment, and based on the environmental parameters, determining the target preset graphic and the graphic parameters corresponding to the target preset graphic, and visually rendering the target preset graphic based on the graphic parameters, a target image to be displayed can be generated, and the target image can be displayed. Thus, by displaying the target image, the actual situation of the target environment is reflected, the fun of the environmental numerical display is enhanced, and a more vivid user experience is brought to the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a scene diagram of a method for displaying environmental values shown in an exemplary embodiment.
[0038] Figure 2 It is a flowchart of a method for displaying environmental values shown in an exemplary embodiment.
[0039] Figure 3 The flowchart of another method for displaying environmental values is shown in an exemplary embodiment.
[0040] Figure 4 It is a hardware structure diagram of an electronic device in which a device for displaying environmental values is located, showing an exemplary embodiment.
[0041] Figure 5 It is a block diagram of a device for displaying environmental values, shown in an exemplary embodiment. DETAILED DESCRIPTION
[0042] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0043] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this disclosure. In some other embodiments, the steps included in the method may be more or less than those described in this disclosure. In addition, a single step described in this disclosure may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this disclosure may also be combined into a single step for description in other embodiments.
[0044] In order to facilitate users to obtain environmental information of the current indoor environment, smart home devices usually have various built-in sensors for collecting environmental parameters. Various environmental parameters of the current indoor environment can be collected through multiple sensors, and the values of the environmental parameters can be directly output to the user through the display screen.
[0045] With the rapid development of smart homes, the number of smart home devices has increased dramatically. In the current technology, the numerical value of the environmental parameter is directly output to the user through the display screen, which cannot allow the user to truly feel the actual environmental conditions corresponding to the numerical value. Therefore, it cannot meet the user's usage needs.
[0046] The following is a specific embodiment and a specific application scenario to introduce the method for displaying environmental values provided by the present disclosure. The method determines a target preset graphic and a graphic parameter corresponding to the target preset graphic based on environmental parameters, and visually renders the target preset graphic based on the graphic parameter to generate a target image to be displayed and display the target image.
[0047] When implemented, the environmental parameters of the target environment can be obtained;
[0048] Furthermore, a target preset graphic and graphic parameters corresponding to the target preset graphic may be determined based on the environmental parameters;
[0049] Furthermore, the target preset graphic may be visually rendered based on the graphic parameters to generate a target image to be displayed, and the target image may be displayed.
[0050] Through the above embodiments, by obtaining the environmental parameters of the target environment, and based on the environmental parameters, determining the target preset graphic and the graphic parameters corresponding to the target preset graphic, and visually rendering the target preset graphic based on the graphic parameters, a target image to be displayed can be generated, and the target image can be displayed. Thus, by displaying the target image, the actual situation of the target environment is reflected, the fun of the environmental numerical display is enhanced, and a more vivid user experience is brought to the user.
[0051] The present disclosure is described below through specific embodiments and in combination with specific application scenarios.
[0052] See also Figure 1 , Figure 1 FIG. 1 is a scene diagram of a method for displaying environmental values according to an exemplary embodiment. Figure 1 As shown, the above-mentioned electronic devices may include electronic device_1, electronic device_2 and electronic device_3, etc. The above-mentioned target environment may include the environment in which the electronic device used to collect environmental parameters is located. The above-mentioned electronic device can collect the environmental parameters of the environment in which it is located and send the environmental parameters to the terminal device; the terminal device may include terminal device_1, terminal device_2 and terminal device_3, etc. The terminal device may be equipped with a display screen, can obtain the above-mentioned environmental parameters, and can output a target image reflecting the environmental conditions of the environment in which the above-mentioned electronic device is located through the display screen.
[0053] See also Figure 2 , Figure 2 It is a flowchart of a method for displaying environmental values shown in an exemplary embodiment.
[0054] The above method can be applied to a terminal device. The present disclosure does not limit the specific form of the terminal device. For example, the terminal device can be a smart phone, a television, or a smart panel.
[0055] like Figure 2 As shown, the terminal device can perform the following steps:
[0056] Step 202, obtaining environmental parameters of the target environment.
[0057] The electronic device may collect environmental parameters of the target environment through built-in sensors; the terminal device may obtain the environmental parameters of the target environment collected by the electronic device through a network.
[0058] In one embodiment shown, the electronic device may include a smart home device, and the environment in which the electronic device is located may include an indoor environment.
[0059] The present disclosure does not limit the specific form of the electronic device. For example, the electronic device may include a thermometer, an air purifier, a humidifier, an air conditioner and other smart home devices, and may also include other electronic devices that can collect environmental parameters of the environment.
[0060] The electronic device can collect environmental parameters of the indoor environment in which it is located; the terminal device can obtain the environmental parameters of the indoor environment collected by the electronic device through the network.
[0061] In this way, since the indoor environment where the electronic device is located is the indoor environment where the user is located, the environmental conditions of the indoor environment where the user is located can be output and displayed to the user through the solution described in the present disclosure.
[0062] Step 204: Determine a target preset graphic and graphic parameters corresponding to the target preset graphic based on the environmental parameters.
[0063] Since the environmental parameters are to be displayed in the form of graphics, it is necessary to first determine the target preset graphics for displaying the environmental parameters and determine the graphic parameters corresponding to the target preset graphics, so as to facilitate the subsequent visualization rendering of the target preset graphics based on the graphic parameters.
[0064] Among them, the target preset graphic can be a three-dimensional image, and the terminal device can perform three-dimensional modeling based on the above-mentioned environmental parameters to determine the graphic parameters corresponding to the above-mentioned three-dimensional image. Specifically, the above-mentioned environmental parameters can be converted into graphic parameters corresponding to the three-dimensional image according to the parameter conversion method corresponding to the above-mentioned environmental parameters.
[0065] For example, the above-mentioned environmental parameters may include environmental parameter_1, environmental parameter_2 and environmental parameter_3, and the above-mentioned terminal device may perform three-dimensional modeling based on the three environmental parameters, that is, according to the parameter conversion methods corresponding to the above-mentioned environmental parameters, the above-mentioned environmental parameters may be converted into graphic parameters corresponding to the above-mentioned three-dimensional image.
[0066] It should be noted that the present disclosure may include at least one preset graphic, and the terminal device may determine a target preset graphic from the at least one preset graphic based on the environmental parameters.
[0067] In one embodiment shown, since some environmental parameters cannot be displayed through the above-mentioned target preset graphics, before determining the target preset graphics and the graphic parameters corresponding to the target preset graphics based on the environmental parameters, it is also necessary to first determine whether the environmental parameters contain key parameters suitable for display through the preset graphics. If the environmental parameters contain key parameters, the target preset graphics and the graphic parameters corresponding to the target preset graphics can be further determined based on the environmental parameters.
[0068] For example, the environmental parameters may include environmental parameter_1, environmental parameter_2 and environmental parameter_3, wherein environmental parameter_2 may be a parameter that can be displayed through the above-mentioned target preset graphics, then the environmental parameter_2 is a key parameter, and before determining the target preset graphics and the graphic parameters corresponding to the target preset graphics based on the environmental parameters, it can be determined first that the environmental parameters contain key parameters suitable for display through the target preset graphics, that is, the above-mentioned environmental parameter_2, and then the target preset graphics and the graphic parameters corresponding to the target preset graphics can be further determined based on the environmental parameters.
[0069] For another example, the environmental parameters may include the above-mentioned environmental parameters_1. Before determining the target preset graphic and the graphic parameters corresponding to the target preset graphic based on the environmental parameters, it can be determined first that the environmental parameters do not include key parameters suitable for display through the target preset graphic. Then, the target preset graphic and the graphic parameters corresponding to the target preset graphic are no longer determined based on the environmental parameters.
[0070] It should be noted that if it is determined that the environmental parameters do not include key parameters suitable for display through the target preset graph, the environmental parameters can be displayed in the form of numerical values.
[0071] In this way, when the environmental parameters include key parameters suitable for display through the target preset graphics, the target preset graphics and the graphic parameters corresponding to the target preset graphics can be further determined, so that a suitable display method can be selected based on the actually obtained environmental parameters.
[0072] The present disclosure does not limit the specific form of the above-mentioned preset graphics. For example, the above-mentioned preset graphics may include flower graphics, and may also include other graphics that can be used to reflect environmental conditions.
[0073] In one embodiment shown, the target preset graphic may include a flower graphic. The terminal device may display the actual environment status of the target environment to the user by displaying the flower graphic.
[0074] For example, the terminal device may determine a flower graphic and graphic parameters corresponding to the flower graphic based on the environmental parameters, and may perform visual rendering on the flower graphic based on the graphic parameters.
[0075] In this way, the environmental conditions of the environment can be displayed to the user through vivid flower graphics, thereby improving the user experience.
[0076] In one embodiment shown, the electronic device may be equipped with a built-in temperature sensor, the environmental parameters may include temperature parameters, the graphic parameters may include the petal opening angle of the floral graphic, and the terminal device may determine the petal opening angle corresponding to the floral graphic based on the temperature parameters.
[0077] Specifically, the terminal device may convert the temperature parameter into the petal opening angle of the flower graphic based on a temperature parameter conversion method.
[0078] The present disclosure does not limit the temperature parameter conversion method. For example, the temperature parameter conversion method may include the following method:
[0079] A=A0+(50-1.67T)(0℃≤T≤30℃) (1)
[0080] Wherein, A in formula (1) may represent the opening angle of the petals of the flower pattern, A0 may represent the initial opening angle of the petals of the flower pattern, the initial opening angle may be the angle between the petals and the horizontal line, and T may represent a temperature parameter.
[0081] For example, the above-mentioned A0 may be 30°, and the value of the temperature parameter of the above-mentioned target environment may be 20° C., and the value of the petal opening angle of the flower pattern obtained by conversion based on the temperature parameter may be 46.6°.
[0082] In this way, the actual temperature of the environment in which the electronic device is located can be reflected by the opening angle of the petals of the flower graphic, giving the user a more vivid usage experience.
[0083] In one embodiment shown, the electronic device may be equipped with a built-in temperature sensor, the environmental parameters may include humidity parameters, the graphic parameters may include graphic parameters for indicating the dryness of the floral graphic, and the terminal device may determine the floral graphic and the graphic parameters corresponding to the floral graphic for indicating the dryness of the floral graphic based on the humidity parameters.
[0084] Since the states of real flowers under different humidity conditions are different, the dryness of the flower graphic can be used to reflect the humidity condition of the environment in which the electronic device is located. Specifically, the terminal device can convert the humidity parameter into a graphic parameter for indicating the dryness of the flower graphic based on the humidity conversion method, so as to facilitate subsequent visualization of the flower graphic based on the graphic parameter.
[0085] In this way, the actual humidity of the environment in which the electronic device is located can be reflected by the dryness of the flower graphic, giving the user a more vivid usage experience.
[0086] The present disclosure does not limit the graphic parameters used to represent the dryness of the flower pattern. For example, the graphic parameters used to represent the dryness of the flower pattern may include a concave-convex degree parameter of the surface texture of the flower pattern, or may include a curling degree parameter of the flower skeleton.
[0087] In one embodiment shown, the terminal device can determine the concave-convex degree parameters of the floral pattern and the surface texture corresponding to the floral pattern, and the curling degree parameters of the floral skeleton corresponding to the floral pattern based on the humidity parameters.
[0088] Specifically, the humidity parameter can be converted into a concave-convex degree parameter of the surface texture of the flower pattern based on the first parameter conversion method, and can also be converted into a curling degree parameter of the flower skeleton based on the second parameter conversion method.
[0089] The present disclosure does not limit the first parameter conversion method. For example, the first parameter conversion method may include the following method:
[0090] B=50-2H(0%≤H≤100%) (2)
[0091] Wherein, B in formula (2) can represent the concavity parameter of the surface texture of the flower pattern, and H can represent the humidity parameter.
[0092] For example, the value of the humidity parameter H of the target environment may be 80%, and the value of the concavity parameter of the surface texture of the flower pattern converted based on the humidity parameter may be 48.4.
[0093] In this way, the humidity parameter of the environment in which the electronic device is located can be reflected by the concave-convex degree of the surface texture of the flower pattern, giving the user a more vivid usage experience.
[0094] The present disclosure does not limit the second parameter conversion method. For example, the second parameter conversion method may include the following method:
[0095] C=180-1.8H(0%≤H≤100%) (3)
[0096] Wherein, C in formula (3) can represent the curling degree parameter of the flower skeleton, and H can represent the humidity parameter.
[0097] For example, the value of the humidity parameter H of the target environment may be 80%, and the value of the curling degree parameter of the flower skeleton obtained by conversion based on the humidity parameter may be 178.56.
[0098] In this way, the curling degree of the flower skeleton can reflect the humidity parameters of the environment in which the above-mentioned electronic device is located, giving users a more vivid usage experience.
[0099] Step 206: Visually render the target preset graphic based on the graphic parameters to generate a target image to be displayed, and display the target image.
[0100] For example, the terminal device may perform visual rendering on the flower graphic based on the petal opening angle of the flower graphic, the concave-convex degree parameters of the surface texture of the flower graphic, and the curling degree parameters of the flower skeleton, generate a flower image to be displayed, and may output the flower image to the user.
[0101] In one embodiment shown, the electronic device may be equipped with an air quality monitoring sensor, and the environmental parameters may also include air quality parameters. Since the air quality parameters cannot be displayed through the flower graphics, the terminal device may generate a particle particle map with display based on the air quality parameters; specifically, the air quality parameters may be converted into particle parameters through an air quality parameter conversion method, and a particle particle map may be generated based on the particle parameters. The target preset graphics may be visually rendered based on the graphic parameters and the particle particle map to generate a target image to be displayed, and the target image may be displayed.
[0102] The present disclosure does not limit the air quality parameter conversion method. For example, the air quality parameter conversion method may include the following method:
[0103] D=P(P≥0) (4)
[0104] Wherein, D in formula (3) can represent a particle parameter, and P can represent an air quality parameter.
[0105] For example, the value of the air quality parameter P of the target environment may be 75, and the particle parameter converted based on the air quality parameter may be 75.
[0106] In this way, the air quality parameters of the environment in which the electronic device is located can be reflected through particle graphics, giving users a more vivid usage experience.
[0107] In one embodiment shown, the air quality parameter may be positively correlated with the number of particles included in the particle map.
[0108] For example, the above particle parameter may be 75, and the number of particles included in the particle particle map generated based on the particle parameter may be 150; the above particle parameter may be 80, and the number of particles included in the particle particle map generated based on the particle parameter may be 160.
[0109] For another example, the above particle parameter may be 75, and the number of particles included in the particle particle map generated based on the particle parameter may be 300; the above particle parameter may be 80, and the number of particles included in the particle particle map generated based on the particle parameter may be 320.
[0110] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present disclosure, the following takes the above-mentioned preset graphic as a flower graphic as an example, and combines the following Figure 3 The flowchart of the method for displaying environmental values shown is used to illustrate an embodiment of the present disclosure.
[0111] See also Figure 3 , Figure 3 The flowchart of another method for displaying environmental values is shown in an exemplary embodiment.
[0112] The above terminal device can obtain environmental parameters of the target environment.
[0113] If the environmental parameters acquired by the terminal device include temperature parameters and air quality parameters, the temperature parameter may be 20°C and the air quality parameter may be 75. The terminal device may determine that the environmental parameters include key parameters suitable for display through the preset graphic, that is, the temperature parameter, and may further convert the temperature parameter value 20°C into the petal opening angle value 46.6° of the flower graphic based on the temperature parameter conversion method.
[0114] The above-mentioned terminal device may include preset surface texture concavity parameters of the floral graphic and preset curling degree parameters of the floral skeleton. Based on the petal opening angle of the floral graphic obtained by the above-mentioned conversion, as well as the preset surface texture concavity parameters of the floral graphic and the curling degree parameters of the floral skeleton, the above-mentioned floral graphic may be visually rendered to generate a floral graphic to be displayed, and the floral graphic may be output and displayed to the user.
[0115] The terminal device can also convert the air quality parameters into particle parameters based on the air quality parameter conversion method, and obtain a value of 75 for the particle parameter. The particle graphic can be visualized based on the value 75 of the particle parameter to generate a particle graphic to be displayed, and the particle graphic can be output and displayed on the interface where the flower graphic is located.
[0116] If the environmental parameters acquired by the terminal device include humidity parameters and air quality parameters, the humidity parameter may be 80% and the air quality parameter may be 80. The terminal device may determine that the environmental parameters include key parameters suitable for display through the preset graphics, that is, the humidity parameter. The humidity parameter may be further converted into a concave-convex degree parameter of the surface texture of the flower graphics based on the first parameter conversion method, and the concave-convex degree parameter of the surface texture of the flower graphics may be obtained to be 48.4. The humidity parameter may be converted into a curling degree parameter of the flower skeleton based on the second parameter conversion method, and the curling degree parameter of the flower skeleton may be obtained to be 178.56.
[0117] The above-mentioned terminal device may include a preset petal opening angle of a flower graphic, and may perform visual rendering on the above-mentioned flower graphic based on the preset petal opening angle of the flower graphic, as well as the converted surface texture concavity parameters of the flower graphic and curling degree parameters of the flower skeleton, to generate a flower graphic to be displayed, and may output the flower graphic for display to the user.
[0118] The terminal device can also convert the air quality parameters into particle parameters based on the air quality parameter conversion method, and obtain a value of 80 for the particle parameter. The particle graphic can be visualized based on the value 80 of the particle parameter to generate a particle graphic to be displayed, and the particle graphic can be output and displayed on the interface where the flower graphic is located.
[0119] If the environmental parameters acquired by the terminal device only include air quality parameters, the value of the air quality parameter may be 80. The terminal device may determine that the environmental parameters do not include key parameters suitable for display through the preset graph, and may directly output the value of the air quality parameter for display to the user.
[0120] Corresponding to the embodiment of the method for displaying environmental values, the present disclosure also provides an embodiment of a device for displaying environmental values.
[0121] See also Figure 4 , Figure 4It is a hardware structure diagram of an electronic device in which a display device for environmental values is located, which is shown as an exemplary embodiment. At the hardware level, the device includes a processor 402, an internal bus 404, a network interface 406, a memory 408, and a non-volatile memory 410, and of course may also include hardware required for other services. One or more embodiments of the present disclosure can be implemented based on software, such as the processor 402 reading the corresponding computer program from the non-volatile memory 410 into the memory 408 and then running it. Of course, in addition to the software implementation method, one or more embodiments of the present disclosure do not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0122] See also Figure 5 , Figure 5 is a block diagram of a device for displaying environmental values according to an exemplary embodiment. The device for displaying environmental values can be applied to Figure 4 In the electronic device shown in the figure, the technical solution of the present disclosure is implemented. The device may include:
[0123] An acquisition module 502 is used to acquire environmental parameters of a target environment;
[0124] A determination module 504, configured to determine a target preset graphic and graphic parameters corresponding to the target preset graphic based on the environmental parameters;
[0125] The generating module 506 is used to perform visual rendering on the target preset graphic based on the graphic parameters, generate a target image to be displayed, and display the target image.
[0126] Optionally, the determination module 504 may also be used to:
[0127] Determine whether the above environmental parameters include key parameters; wherein the above key parameters are parameters suitable for display through the above target preset graphics;
[0128] If the above environmental parameters include the above key parameters, the above environmental parameters may be further converted into graphic parameters corresponding to the target preset graphic.
[0129] Optionally, the target environment includes an environment in which an electronic device used to collect the environmental parameters is located; wherein the electronic device includes a smart home device; and the environment in which the electronic device is located includes an indoor environment.
[0130] Optionally, the target preset graphic may include a flower graphic.
[0131] Optionally, the environmental parameters may include temperature parameters; the graphic parameters may include the opening angle of petals of the flower graphic;
[0132] The determination module 504 may be specifically used for:
[0133] Based on the temperature parameters, the flower pattern and the petal opening angle corresponding to the flower pattern are determined.
[0134] Optionally, the above-mentioned environmental parameters may include humidity parameters; the above-mentioned graphic parameters may include graphic parameters for indicating the dryness of the flower graphic;
[0135] The determination module 504 may be specifically used for:
[0136] Based on the humidity parameter, the flower pattern and a graphic parameter corresponding to the flower pattern and used to indicate the dryness of the flower pattern are determined.
[0137] Optionally, the graphic parameters for indicating the dryness of the flower graphic may include a concave-convex degree parameter of the flower graphic surface texture and a curling degree parameter of the flower skeleton;
[0138] The determination module 504 may be specifically used for:
[0139] Based on the humidity parameters, the concave-convex degree parameters of the flower pattern and the surface texture corresponding to the flower pattern, and the curling degree parameters of the flower skeleton corresponding to the flower pattern are determined.
[0140] Optionally, the above environmental parameters may also include air quality parameters;
[0141] The above generation module 506 can also be used for:
[0142] Based on the above air quality parameters, a particle size map with display is generated;
[0143] The generation module 506 may be specifically used for:
[0144] The target preset graphic is visually rendered based on the graphic parameters and the particle size diagram to generate a target image to be displayed, and the target image is displayed.
[0145] Optionally, the air quality parameter is positively correlated with the number of particles included in the particle map.
[0146] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0147] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art may understand and implement it without creative work.
[0148] The system, device or module described in the embodiments may be implemented by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0149] In a typical configuration, a computer includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0150] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0151] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0152] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0153] The above describes specific embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0154] The terms used in one or more embodiments of the present disclosure are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present disclosure. The singular forms of "a", "said" and "the" used in one or more embodiments of the present disclosure and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0155] It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of the present disclosure, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determination".
[0156] The above description is only a preferred embodiment of one or more embodiments of the present disclosure and is not intended to limit one or more embodiments of the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present disclosure shall be included in the scope of protection of one or more embodiments of the present disclosure.
[0157] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
Claims
1. A method for displaying environmental values, the method comprising: Get the environment parameters of the target environment; Based on the environmental parameters, determining a target preset graphic and graphic parameters corresponding to the target preset graphic; The target preset graphic is visually rendered based on the graphic parameters to generate a target image to be displayed, and the target image is displayed.
2. The method according to claim 1, before determining the target preset graphic and the graphic parameters corresponding to the target preset graphic based on the environmental parameters, the method further comprises: Determine whether the environmental parameters include key parameters; wherein the key parameters are parameters suitable for display through target preset graphics; If the environmental parameters include the key parameters, a target preset graphic and graphic parameters corresponding to the target preset graphic are further determined based on the environmental parameters. The method according to claim 1 , wherein the target preset graphic comprises a flower graphic.
4. The method according to claim 3, wherein the environmental parameters include temperature parameters; the graphic parameters include the opening angle of the petals of the flower graphic; The step of determining a target preset graphic and graphic parameters corresponding to the target preset graphic based on the environmental parameters includes: Based on the temperature parameter, the flower pattern and the petal opening angle corresponding to the flower pattern are determined.
5. The method according to claim 3, wherein the environmental parameter comprises a humidity parameter; and the graphic parameter comprises a graphic parameter for indicating the dryness of the flower graphic; The step of determining a target preset graphic and graphic parameters corresponding to the target preset graphic based on the environmental parameters includes: Based on the humidity parameter, the flower pattern and a graphic parameter corresponding to the flower pattern and used to indicate the dryness degree of the flower pattern are determined.
6. The method according to claim 5, wherein the graphic parameters for indicating the dryness of the flower graphic include a concave-convex degree parameter of the surface texture of the flower graphic and a curling degree parameter of the flower skeleton; The step of determining the flower pattern and a graphic parameter corresponding to the flower pattern and used to indicate the dryness degree of the flower pattern based on the humidity parameter includes: Based on the humidity parameter, the concavo-convexity degree parameter of the flower pattern and the surface texture corresponding to the flower pattern, and the curling degree parameter of the flower skeleton corresponding to the flower pattern are determined.
7. The method according to any one of claims 1 to 6, wherein the environmental parameters further include air quality parameters; The method further comprises: generating a particle particle map with display based on the air quality parameters; The visual rendering of the target preset graphic based on the graphic parameters to generate a target image to be displayed, and displaying the target image includes: The target preset graphic is visually rendered based on the graphic parameters and the particle particle image to generate a target image to be displayed, and the target image is displayed.
8. The method of claim 7, wherein the air quality parameter is positively correlated with the number of particles contained in the particle particle map.
9. The method according to any one of claims 1 to 6, wherein the target environment comprises an environment in which an electronic device for collecting the environmental parameters is located; The electronic device includes a smart home device; the environment in which the electronic device is located includes an indoor environment.
10. A device for displaying environmental values, comprising: An acquisition module is used to obtain the environmental parameters of the target environment; A determination module, configured to determine a target preset graphic and graphic parameters corresponding to the target preset graphic based on the environmental parameters; A generation module is used to perform visual rendering on the target preset graphic based on the graphic parameters, generate a target image to be displayed, and display the target image.
11. A user equipment, comprising: processor; a memory for storing processor-executable instructions; The processor is used to implement the method according to any one of claims 1 to 9.
12. A machine-readable storage medium storing machine-readable instructions, wherein the machine-readable instructions, when called and executed by a processor, implement the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Display method and device and electronic equipment
CN111857476A
Vehicle data display method and device, electronic equipment and storage medium
CN115220677A
Environment state visualization method and device, storage medium and electronic device
CN116431852A
Method for realizing firework show based on intelligent cabin, intelligent cabin and storage medium
CN116466863A