Image display method, electronic equipment and computer readable storage medium
By adjusting the transparency of the three color temperature layers, the image display of the gradual change of the color temperature of the lamps in the smart home is realized, which solves the problem of complex and low-efficiency image display in the existing technology, and improves the display efficiency and smoothness.
Patent Information
- Application Number
- CN202410538222.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-08-27
AI Technical Summary
In the field of smart homes, in the existing technology, the gradual changes in the color temperature of lamps rely on the overlay display of a large number of different background images, resulting in complex and inefficient image display.
By providing three layers with gradually increasing color temperatures, and adjusting the transparency of each layer according to the color temperature adjustment instructions, overlay display is achieved to obtain the target color temperature image, reducing the number of background layers required.
It realizes the display of images with different color temperatures in three layers, solves the problem of a large number of layers required to display step-by-step changes in color temperature, and improves the efficiency and smoothness of image display.
Smart Images

Figure CN118550622A
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home, and in particular to an image display method, an electronic device and a computer-readable storage medium. Background Art
[0002] In the field of smart home, IoT technology makes family life more convenient and intelligent. Users can control various devices in the home through mobile apps to adjust the home environment. In family life, users can adjust the color temperature of the lights through mobile apps, and can intuitively see the changes in color temperature in the operation interface, so as to choose the appropriate color temperature.
[0003] When the user slides the slider, the color temperature background image changes with the movement of the slider, thereby showing the gradual change of color temperature in the operation interface.
[0004] At present, in the operation interface of the mobile app, the gradual change of the color temperature of the lamp relies on the superposition of a large number of different background images. When the color temperature adjustment slider is in different positions, the operation interface displays the corresponding background image. When the color temperature adjustment level of the lamp is more, the operation interface needs to use more background images. Summary of the invention
[0005] The embodiments of the present application provide an image display method, an electronic device, and a computer-readable storage medium to at least solve the problem in the related art that a large number of background images are required to display gradual changes in lamp image display.
[0006] In a first aspect, an embodiment of the present application provides an image display method, the method comprising:
[0007] Provide a first layer, a second layer and a third layer with the same content and gradually increasing color temperature;
[0008] receiving a color temperature adjustment instruction, and determining the transparency of the first layer, the second layer, and the third layer respectively according to the color temperature adjustment instruction;
[0009] The first layer, the second layer and the third layer are controlled to be superimposed and displayed according to the determined transparency to obtain a target color temperature image.
[0010] In one embodiment, the first layer, the second layer, and the third layer have gradually increasing color temperatures, and the color temperature relationship between the first layer, the second layer, and the third layer is:
[0011] The color temperature of the first layer is less than 3000K; and / or
[0012] The color temperature of the second layer is greater than or equal to 3000K and less than or equal to 5000K; and / or
[0013] The color temperature of the third layer is greater than 5000K.
[0014] In one embodiment, determining the transparency of the first layer, the second layer, and the third layer respectively according to the color temperature adjustment instruction includes:
[0015] Determining the color temperature level to be adjusted according to the color temperature adjustment instruction;
[0016] According to the pre-configured mapping relationship between the color temperature level and the transparency, the transparency of the first layer, the second layer and the third layer is determined according to the color temperature level to be adjusted.
[0017] In one embodiment, the color temperature level includes a warm light area, and the mapping relationship is configured as:
[0018] In the warm light area, the transparency of the first layer is configured as a first fixed value, which is less than or equal to a first threshold value; as the color temperature level increases, the transparency of the third layer increases, and the transparency of the second layer decreases.
[0019] In one embodiment, the color temperature level includes a cold light area, and the mapping relationship is configured as:
[0020] In the cold light area, the transparency of the third layer is configured as a second fixed value, which is less than or equal to the second threshold value; as the color temperature level increases, the transparency of the first layer decreases, and the transparency of the second layer increases.
[0021] In one embodiment, the color temperature level includes a neutral light area, and the mapping relationship is configured as:
[0022] The transparency of the second image is configured as a third fixed value, the third fixed value is greater than or equal to a third threshold, and the transparency difference between the first layer and the third layer is less than or equal to a fourth threshold.
[0023] In one embodiment, the mapping relationship is configured as:
[0024] In the mapping relationship, as the color temperature level increases, the transparency of the second layer first increases and then decreases, and the third fixed value is the maximum transparency of the second layer.
[0025] In a second aspect, an embodiment of the present application provides an image display device, characterized in that it includes:
[0026] Provide a layer module, providing a first layer, a second layer and a third layer with the same content and gradually increasing color temperature;
[0027] A receiving module receives a color temperature adjustment instruction, and determines the transparency of the first layer, the second layer, and the third layer respectively according to the color temperature adjustment instruction;
[0028] The image acquisition module controls the first layer, the second layer and the third layer to be superimposed and displayed according to the determined transparency to obtain the target color temperature image.
[0029] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, an image display method as described in the first aspect above is implemented.
[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements an image display method as described in the first aspect above.
[0031] An image display method, electronic device, and computer-readable storage medium provided by the embodiments of the present application have at least the following technical effects.
[0032] By adjusting the transparency of the first layer, the second layer, and the third layer with different color temperatures, images with different color temperatures can be obtained by superimposing and displaying. In this way, it is achieved that only three layers are used to display images with different color temperatures by adjusting the transparency of the three layers, solving the problem that a large number of layers (images) are required to display images with gradually changing color temperatures.
[0033] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0035] Figure 1 is a flowchart of an image display method according to an exemplary embodiment;
[0036] Figure 2 is a schematic diagram of a first layer, a second layer and a third layer according to an exemplary embodiment;
[0037] Figure 3 is a flowchart of an image display method according to another exemplary embodiment;
[0038] Figure 4 is a schematic diagram of a target image according to an exemplary embodiment;
[0039] Figure 5A is a schematic diagram of a light-off layer of an image display method according to an exemplary embodiment;
[0040] Figure 5B is a schematic diagram of a light-on layer of an image display method according to an exemplary embodiment;
[0041] Fig. 6A is a schematic diagram showing a method for displaying an image according to an exemplary embodiment, in which the brightness level of a target image is 5;
[0042] Figure 6B is a schematic diagram showing a method for displaying an image according to an exemplary embodiment, in which the brightness level of a target image is 10;
[0043] Figure 7 is a block diagram of an image display device according to an exemplary embodiment;
[0044] Figure 8 is a block diagram of an electronic device according to an exemplary embodiment.
[0045] In the above drawings, the meanings of the reference numerals are as follows:
[0046] 100, first layer; 200, second layer; 300, third layer; 400, fourth layer; 500, background layer. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0048] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0049] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0050] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0051] In a first aspect, an embodiment of the present application provides an image display method. Figure 1 is a flow chart of an image display method, such as Figure 1 As shown, the image display method includes:
[0052] Step S101: providing a first layer, a second layer, and a third layer with the same content and gradually increasing color temperatures.
[0053] The same content can be interpreted as the same objects displayed on different layers and the same positions of objects displayed on different layers. For example, if a halo is displayed on the first layer, the second layer, and the third layer, the size of the halo and the position in the layer are the same.
[0054] Furthermore, the color temperatures of the first layer, the second layer, and the third layer gradually increase. As an example, the color temperature of the first layer is less than 3000K, the color temperature of the second layer is greater than or equal to 3000K and less than or equal to 5000K, and the color temperature of the third layer is greater than 5000K.
[0055] Figure 2 is a schematic diagram of a first layer, a second layer and a third layer according to an exemplary embodiment. Figure 2As shown, the first layer 100 is a warm light layer, the second layer 200 is a neutral light layer, and the third layer 300 is a cold light layer. It should be noted that the specific values of the color temperatures of the first layer, the second layer, and the third layer are not specifically set and can be set according to application requirements.
[0056] In the embodiment of the present application, images with different color temperatures are achieved by adjusting the transparency of three layers with different color temperatures, which effectively solves the defects existing in the related art. The specific principle will be explained in detail below.
[0057] Step S102: receiving a color temperature adjustment instruction, and determining the transparency of the first layer, the second layer, and the third layer respectively according to the color temperature adjustment instruction.
[0058] As an example, step S102 specifically includes:
[0059] Step S1021: determine the color temperature level to be adjusted according to the color temperature adjustment instruction.
[0060] Optionally, the color temperature level includes a warm light zone, a neutral light zone, and a cold light zone. It should be noted that the specific division of the levels in the warm light zone, the neutral light zone, and the cold light zone is not specifically limited and is set according to specific application requirements. For example, the warm light zone includes 4 levels, the neutral light zone includes 1 level, and the cold light zone includes 5 levels. In addition, the finer the granularity of the color temperature level division, the more color temperatures that can be ultimately presented by the method.
[0061] Step S1022: According to the pre-configured mapping relationship between the color temperature level and the transparency, the transparency of the first layer, the second layer, and the third layer is determined according to the color temperature level to be adjusted.
[0062] The mapping relationship between color temperature level and transparency represents the transparency combination of the first layer, the second layer and the third layer at different color temperature levels. In this way, each color temperature level corresponds to a set of transparency, and multiple color temperature levels can be designed as needed.
[0063] Table 1 is a mapping relationship table according to an exemplary embodiment. In Table 1, the color temperature levels are divided into a warm light area, a neutral light area, and a cold light area as an example.
[0064] Table 1
[0065]
[0066]
[0067] As shown in Table 1, in the warm light area, the transparency of the first layer is configured as a first fixed value, which is less than or equal to the first threshold. In addition, as the color temperature level increases, the transparency of the third layer increases, and the transparency of the second layer decreases.
[0068] Optionally, the first threshold is a value close to the minimum transparency of the first layer (e.g., 2%, 5%, 7%, 10%, etc.). When the color temperature level is adjusted in the warm light area, the first fixed value of the first layer is less than or equal to the first threshold, so that the transparency of the first layer is close to its minimum transparency. This ensures that the first layer always participates in the adjustment with a transparency close to the minimum transparency when adjusting in the warm light area, so that even if the second layer and / or the third layer are superimposed, the warm light effect is achieved through the three layers.
[0069] For example, as shown in Table 1, in the warm light area, the transparency of the first layer is always 0%, so that the warm color temperature display of the first layer is the largest. In the process of color temperature change from color temperature 6 to color temperature 10, the transparency of the second layer and the third layer decreases and increases respectively, thereby presenting five gradually decreasing warm light color temperature levels.
[0070] In the cold light area, the transparency of the third layer is configured as a second fixed value, which is less than or equal to the second threshold value; as the color temperature level increases, the transparency of the first layer decreases, and the transparency of the second layer increases.
[0071] Optionally, the second threshold is a value close to the minimum transparency of the third layer (e.g., 2%, 5%, 7%, 10%, etc.). When the color temperature level is adjusted in the cold light area, the second fixed value of the third layer is less than or equal to the second threshold, so that the transparency of the third layer is close to its minimum transparency. This ensures that the third layer always participates in the adjustment with a transparency close to the minimum transparency when adjusting the cold light area, so that even if the second layer and / or the first layer are superimposed, the cold light effect is achieved through the three layers.
[0072] For example, as shown in Table 1, in the cold light area, the transparency of the third layer is always 0%, so that the cold color temperature display of the third layer is the largest. In the process of color temperature change from color temperature 1 to color temperature 4, the transparency of the first layer and the second layer decreases and increases respectively, thereby presenting four gradually decreasing cold light color temperature levels.
[0073] In the neutral light area, the transparency of the second image is configured as a third fixed value, the third fixed value is greater than or equal to a third threshold, and the transparency difference between the first layer and the third layer is less than or equal to a fourth threshold.
[0074] Optionally, the third threshold is a value close to the maximum transparency of the second layer (e.g., 90%, 95%, 98%, 100%, etc.). When the color temperature level is adjusted in the neutral light area, the transparency of the second layer is close to its maximum transparency, so that the first layer and the third layer are superimposed to display the neutral light color temperature.
[0075] The smaller the fourth threshold, that is, the smaller the difference in transparency between the first layer and the third layer, the closer the transparency of the two layers are, and thus the better the effect of neutral light displayed during the superposition display. For example, as shown in Table 1, the transparency of the first layer and the third layer are both 0%, the difference between the two is 0, and the maximum cold and warm light are superimposed to obtain the maximum neutral light.
[0076] As an example, the transparency of the second layer increases first and then decreases as the color temperature level increases. The transparency of the second layer is in a changing state during the color temperature level adjustment process. In the warm light zone, as the color temperature level increases, the transparency of the second layer decreases; in the cold light zone, as the color temperature level increases, the transparency of the second layer increases; in the neutral light zone, the transparency of the second layer is a third fixed value, and the third fixed value is the maximum transparency of the second layer (for example, 100%, 95%, 90%, etc.). The transparency of the second layer is always in a changing state during the color temperature level adjustment process, thereby ensuring smooth color temperature changes between warm light, cold light and neutral light, and avoiding the problem of abrupt color temperature jump changes during the changes of different color temperatures.
[0077] As an example, the color temperature level changes step by step according to the transparency of the first layer, the second layer, and the third layer. Each color temperature level corresponds to a group of transparency, and the increasing or decreasing steps of transparency between two adjacent color temperature levels are consistent. If the step size of the change is smaller, the number of corresponding transparency groups will be more, thereby refining the display content of the change between two adjacent color temperature levels, and then increasing the level of change between cold and warm colors.
[0078] Optionally, the step length of each group of transparency changes includes, but is not limited to, setting different percentages or preset values according to a fixed percentage, so that the degree of transparency increase is different, so that the degree of color temperature level change is different, and the color temperature level change can be smoother. For example, as shown in Table 1, from color temperature 1 to color temperature 4, the step length of each group of transparency change is 20%; from color temperature 4 to color temperature 5, the step length of each group of transparency change is 40%.
[0079] In an embodiment of the present application, different color temperature levels are displayed by adjusting the transparency of three layers of different color temperatures, wherein the step size of the transparency can be set, so that the color temperature level can be designed as needed and the change of the color temperature level can be made smoother.
[0080] Continue to see Figure 1 , after step S102, step S103 is performed, which specifically includes:
[0081] Step S103: controlling the first layer, the second layer and the third layer to be superimposed and displayed according to the determined transparency to obtain a target color temperature image.
[0082] The transparency of the first layer, the second layer and the third layer is determined according to the color temperature instruction, and the three layers are superimposed, wherein the first layer, the second layer and the third layer have the same layer size and the positions of the objects displayed on the layers are the same. The layers are superimposed. The first layer, the second layer and the third layer can be completely overlapped by determining their geometric centers and aligning the geometric centers, and the positions of the objects displayed on the layers are overlapped. By superimposing the layers, an image of the target color temperature is obtained, and the user can intuitively observe the change of the color temperature through the target color temperature image.
[0083] In summary, in the embodiment of the present application, the transparency of three layers with different color temperatures is adjusted and the three layers are superimposed to obtain a color temperature image. The color temperature image shows different color temperature levels, and the color temperature levels can be further divided by adjusting the step size of the transparency between adjacent color temperature levels, which increases the span of the color temperature levels on the one hand and improves the smoothness of the color temperature level changes on the other hand.
[0084] In one example, Figure 3 is a flowchart of an image display method according to another exemplary embodiment. Figure 3 As shown, the image display method provided in the embodiment of the present application also includes:
[0085] Step S301: Provide a fourth layer, wherein the fourth layer includes an image of a target product.
[0086] Step S302: superimpose the target color temperature image and the fourth layer to obtain a target image.
[0087] Figure 4 is a target image schematic diagram of an image display method, such as Figure 4 As shown, the target image includes five layers: the first layer, the second layer, the third layer, the fourth layer and the background layer, wherein the fourth layer is used to display the target product; the first layer, the second layer and the third layer are used to adjust the transparency to control the color temperature change; the background layer is used to display the changes of the target product.
[0088] like Figure 5A and Figure 5B As shown, the fourth layer includes a light-on layer and a light-off layer. The light-on layer displays an image of a light in use, and the light-off layer displays an image of a light in a turned-off state.
[0089] Alternatively, if Figure 5A As shown, the image display method provided by the embodiment of the present invention also includes:
[0090] In response to the light-off instruction, the light-off layer is called, and the transparency of the first layer, the second layer, and the third layer is configured to be 100%. At this time, it is equivalent to displaying only the light-off layer to achieve the light-off effect.
[0091] Alternatively, if Figure 5B As shown, the image display method provided by the embodiment of the present invention also includes:
[0092] In response to the light-on instruction, the light-on layer is called, and according to the color temperature adjustment instruction, the transparency of the first layer, the second layer and the third layer is configured. At this time, by adjusting the transparency of the three layers, different color temperature backgrounds are displayed.
[0093] In one example, the image display method provided by the embodiment of the present application further includes:
[0094] According to the brightness adjustment instruction, the brightness of the target image is adjusted.
[0095] Optionally, the brightness to be adjusted is determined by parsing the brightness adjustment instruction, thereby controlling the brightness change of the target image, so that target images of different brightness are presented under the same color temperature level. The method of adjusting the brightness includes but is not limited to adjusting the brightness value and adjusting the brightness level.
[0096] Optionally, the brightness level may be divided into 10 levels. From level 1 to level 10, the brightness gradually increases.
[0097] Alternatively, if Fig. 6A As shown, the image display method provided by the embodiment of the present invention also includes:
[0098] After obtaining the target image, the brightness level of the target image is adjusted to 5 according to the brightness adjustment instruction.
[0099] Alternatively, if Figure 6B As shown, the image display method provided by the embodiment of the present invention also includes:
[0100] After the target image is obtained, the brightness level of the target image is adjusted to 10 according to the brightness adjustment instruction.
[0101] In summary, the color temperature level changes from warm to cool by adjusting the transparency of the first layer, the second layer, and the third layer. At the same brightness, the difference in color temperature between cool light and warm light can be clearly distinguished, or at the same color temperature level, lights displayed at different brightness can be clearly distinguished.
[0102] In a second aspect, an embodiment of the present application provides an image display device. Figure 7 FIG. 1 is a block diagram of an image display device according to an exemplary embodiment. Figure 7As shown, the image display device includes: a layer providing module 710, a receiving module 720 and an image obtaining module 730.
[0103] The layer providing module 710 is used to provide a first layer, a second layer and a third layer with the same content and gradually increasing color temperature.
[0104] The receiving module 720 is used to receive a color temperature adjustment instruction, and determine the transparency of the first layer, the second layer, and the third layer respectively according to the color temperature adjustment instruction.
[0105] The image acquisition module 730 is used to control the first layer, the second layer and the third layer to be displayed in a superimposed manner according to the determined transparency, so as to obtain a target color temperature image.
[0106] In summary, the present application provides an image display device that obtains a step-by-step changing color temperature image by adjusting the transparency of three layers with gradually increasing color temperatures.
[0107] It should be noted that the image display device provided in this embodiment is used to implement the above-mentioned implementation mode, and the descriptions that have been made will not be repeated. As used above, the terms "module", "unit", "subunit" and the like can implement a combination of software and / or hardware for a predetermined function. Although the device described in the above embodiment is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0108] In a third aspect, an embodiment of the present application provides an electronic device, Figure 8 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Figure 8 As shown, the electronic device may include a processor 81 and a memory 82 storing computer program instructions.
[0109] Specifically, the processor 81 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0110] Among them, the memory 82 may include a large-capacity memory for data or instructions. By way of example and not limitation, the memory 82 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 82 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 82 may be inside or outside the data processing device. In a specific embodiment, the memory 82 is a non-volatile memory. In a specific embodiment, the memory 82 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable ProgrammableRead-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable ProgrammableRead-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.
[0111] The memory 82 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 81 .
[0112] The processor 81 implements any one of the image display methods in the above embodiments by reading and executing computer program instructions stored in the memory 82 .
[0113] In one embodiment, an image display device may further include a communication interface 88 and a bus 80. Figure 8 As shown, the processor 81, the memory 82, and the communication interface 88 are connected via a bus 80 and communicate with each other.
[0114] The communication interface 88 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication port 88 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.
[0115] The bus 80 includes hardware, software or both, and couples the components of an image display device to each other. The bus 80 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 80 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, bus 80 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.
[0116] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a program stored thereon, and when the program is executed by a processor, an image display method provided in the first aspect is implemented.
[0117] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0118] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute steps of an image display method provided in the first aspect.
[0119] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.
[0120] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0121] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. An image display method, It is characterized in that The method comprises: Provide a first layer, a second layer and a third layer with the same content and gradually increasing color temperature; receiving a color temperature adjustment instruction, and determining the transparency of the first layer, the second layer, and the third layer respectively according to the color temperature adjustment instruction; The first layer, the second layer and the third layer are controlled to be superimposed and displayed according to the determined transparency to obtain a target color temperature image.
2. The image display method according to claim 1, It is characterized in that The first layer, the second layer and the third layer with gradually increasing color temperatures have a color temperature relationship of: The color temperature of the first layer is less than 3000K; and / or The color temperature of the second layer is greater than or equal to 3000K and less than or equal to 5000K; and / or The color temperature of the third layer is greater than 5000K.
3. The image display method according to claim 2, It is characterized in that The determining the transparency of the first layer, the second layer, and the third layer respectively according to the color temperature adjustment instruction includes: Determining a color temperature level to be adjusted according to the color temperature adjustment instruction; According to a pre-configured mapping relationship between color temperature levels and transparency, the transparency of the first layer, the second layer, and the third layer is determined according to the color temperature level to be adjusted.
4. The image display method according to claim 3, It is characterized in that The color temperature level includes a warm light area, and the mapping relationship is configured as follows: In the warm light area, the transparency of the first layer is configured as a first fixed value, and the first fixed value is less than or equal to a first threshold; As the color temperature level increases, the transparency of the third layer increases, and the transparency of the second layer decreases.
5. The image display method according to claim 3, It is characterized in that The color temperature level includes a cold light area, and the mapping relationship is configured as follows: In the cold light area, the transparency of the third layer is configured as a second fixed value, and the second fixed value is less than or equal to a second threshold; As the color temperature level increases, the transparency of the first layer decreases, and the transparency of the second layer increases.
6. The image display method according to claim 3, It is characterized in that The color temperature level includes a neutral light area, and the mapping relationship is configured as follows: The transparency of the second image is configured as a third fixed value, the third fixed value is greater than or equal to a third threshold, and the transparency difference between the first layer and the third layer is less than or equal to a fourth threshold.
7. The image display method according to claim 6, It is characterized in that The mapping relationship is configured as: In the mapping relationship, as the color temperature level increases, the transparency of the second layer first increases and then decreases, and the third fixed value is the maximum value of the transparency of the second layer.
8. The image display method according to any one of claims 1 to 7, It is characterized in that The method further comprises: providing a fourth layer, the fourth layer comprising an image of the target product; The target color temperature image and the fourth layer are superimposed to obtain a target image.
9. An electronic device, It is characterized in that The device comprises a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the image display method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the image display method according to any one of claims 1 to 8 is implemented.
