A temperature adjustment method, device, apparatus, and storage medium

By performing pixel tone analysis on the output content of VR and AR devices and dynamically adjusting the device temperature, the problem of uniform touch temperature in existing technologies is solved, thus enhancing the immersive experience.

CN116137041BActive Publication Date: 2026-04-14CHINA MOBILE CHENGDU INFORMATION & TELECOMM TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILE CHENGDU INFORMATION & TELECOMM TECH CO LTD
Filing Date
2021-11-16
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

Existing VR and AR technologies lack an immersive experience in terms of tactile temperature and cannot provide users with a diverse range of tactile temperature sensations.

Method used

By taking screenshots of the device's output, the hue of each pixel is determined, and the device temperature is adjusted based on the hue to achieve dynamic changes in the device temperature.

Benefits of technology

It improves the user's experience with touch temperature and enhances the immersive experience of VR and AR devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116137041B_ABST
    Figure CN116137041B_ABST
Patent Text Reader

Abstract

The application discloses a temperature adjusting method and device, equipment and a storage medium, and relates to the technical field of data processing. The method is applied to a first device, and the method comprises the following steps: taking a screenshot of output content of the first device to obtain a first image; determining the hue of each pixel in the first image; and adjusting the device temperature when the output content is output based on at least the hue of each pixel. The application can adjust the device temperature of the first device based on the output content of the first device. In this way, the first device has different device temperatures when outputting different content, so that a user can feel different touch temperature, thereby improving the experience of the user in the touch temperature.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, including but not limited to temperature adjustment methods, apparatus, devices, and storage media. Background Technology

[0002] With the continuous development of internet technology, virtual reality (VR) and augmented reality (AR) technologies have also been widely developed. Among these technologies, VR technology can provide users with an immersive experience in terms of sight and sound, but it does not achieve the same immersive experience in terms of touch and temperature. Summary of the Invention

[0003] This application provides a temperature adjustment method, apparatus, device, and storage medium. This solution can adjust the device temperature of a first device based on the output content of the first device. In this way, the first device has different device temperatures when outputting different content, so that the user can feel different tactile temperatures, thereby improving the user's tactile temperature experience.

[0004] The technical solution of this application is implemented as follows:

[0005] This application provides a temperature adjustment method, the method comprising: taking a screenshot of the output content of a first device to obtain a first image; determining the hue of each pixel in the first image; and adjusting the device temperature when outputting the output content based at least on the hue of each pixel.

[0006] This application provides a temperature adjustment device, the device comprising:

[0007] The screenshot unit is used to take a screenshot of the output content of the first device to obtain a first image;

[0008] A determining unit is used to determine the hue of each pixel in the first image;

[0009] An adjustment unit is used to adjust the device temperature when outputting the output content, based at least on the hue of each pixel.

[0010] This application also provides an electronic device, including: a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the program to implement the above-described temperature adjustment method.

[0011] This application also provides a storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described temperature adjustment method.

[0012] The temperature adjustment method, apparatus, device, and storage medium provided in this application include: taking a screenshot of the output content of a first device to obtain a first image; determining the hue of each pixel in the first image; and adjusting the device temperature when outputting the output content based at least on the hue of each pixel. Thus, by taking a screenshot of the output content of the first device to obtain a first image, the device temperature of the first device can be determined based on the hue of each pixel in the first image. Therefore, it is possible to adjust the device temperature of the first device based on its output content. This allows the first device to have different device temperatures when outputting different content, enabling users to experience different tactile temperatures and improving the user's tactile temperature experience. Attached Figure Description

[0013] Figure 1 This is a schematic diagram of an optional structure of the temperature adjustment system provided in an embodiment of this application;

[0014] Figure 2 A schematic flowchart of an optional temperature adjustment method provided in an embodiment of this application;

[0015] Figure 3 A schematic flowchart of an optional temperature adjustment method provided in an embodiment of this application;

[0016] Figure 4 A schematic flowchart of an optional temperature adjustment method provided in an embodiment of this application;

[0017] Figure 5 A schematic flowchart of an optional temperature adjustment method provided in an embodiment of this application;

[0018] Figure 6 This is a schematic diagram of an optional structure of the temperature adjustment device provided in the embodiments of this application;

[0019] Figure 7 This is a schematic diagram of an optional structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of the application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.

[0021] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0022] In the following description, the terms "first," "second," and "third" are used only to distinguish different objects and do not represent a specific order of objects, nor are they constituting a chronological order. It is understood that "first," "second," and "third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0024] This application provides a temperature adjustment method, apparatus, device, and storage medium. In practical applications, the temperature adjustment method can be implemented by a temperature adjustment device, and the functional entities in the temperature adjustment device can be collaboratively implemented by the hardware resources of electronic devices, such as computing resources like processors and communication resources (such as those used to support various communication methods like optical fiber and cellular).

[0025] The temperature adjustment method provided in this application is applied to a temperature adjustment system, which includes a first device. The first device takes a screenshot of its output content to obtain a first image; determines the hue of each pixel in the first image; and adjusts the device temperature when outputting the output content based at least on the hue of each pixel.

[0026] As an example, the structure of the temperature regulation system 10 can be as follows: Figure 1 As shown, it includes: a first device 101, which can take a screenshot of the output content of the first device to obtain a first image; determine the hue of each pixel in the first image; and adjust the device temperature when outputting the output content based at least on the hue of each pixel.

[0027] The first device 101 may include an AR device or a VR device, etc. For example, the first device may be a VR mask.

[0028] Below, in conjunction with Figure 1 The schematic diagram of the temperature adjustment system shown illustrates various embodiments of the temperature adjustment method, apparatus, device, and storage medium provided in this application.

[0029] In a first aspect, embodiments of this application provide a temperature adjustment method, which is applied to a temperature adjustment device; wherein the temperature adjustment device can be deployed in... Figure 1 The first device 101 in the process. The temperature adjustment process provided in the embodiments of this application will now be described.

[0030] Figure 2 This illustration shows a flowchart of an optional temperature adjustment method. The temperature adjustment method provided in this application embodiment may include, but is not limited to, [other methods]. Figure 2 S201 to S203 are shown.

[0031] S201. The first device takes a screenshot of the output content of the first device to obtain a first image.

[0032] The first image is any image obtained by taking a screenshot of the output content.

[0033] S201 can be implemented as follows: the first device takes a screenshot of the output content of the first device using screenshot software, thereby obtaining an image.

[0034] In one possible implementation, the first device can capture a screenshot of each frame of the output image to obtain a first image.

[0035] In another possible implementation, the first device may sample the output image frame and then take a screenshot of the sampled image frame to obtain the first image.

[0036] S202, The first device determines the hue of each pixel in the first image.

[0037] The first device determines the hue of each pixel in the first image based on the red, green, and blue (RGB) values ​​of each pixel.

[0038] The number of hues in this application embodiment is not uniquely limited and can be configured according to actual needs.

[0039] In one possible implementation, the hue may include: a first hue and a second hue.

[0040] In one possible implementation, the hue may include a first hue, a second hue, and a third hue.

[0041] The embodiments of this application do not impose a unique limitation on the method of dividing the color tone, and can be configured according to actual needs.

[0042] In one possible implementation, the first device can classify different hues based on the magnitude relationship between the red (R) value and the blue (B) value of a pixel.

[0043] In another possible implementation, the first device can classify different hues based on a specific set of colors. For example, the first device can determine the set of colors to which red, orange, yellow, and brown belong as the set of colors corresponding to the first hue; the first device can determine the set of colors to which blue, green, and purple belong as the set of colors corresponding to the second hue; and the first device can determine the set of colors to which black, white, and gray belong as the set of colors corresponding to the third hue.

[0044] In one possible implementation, the first hue can also be called a warm hue, the second hue can also be called a cool hue, and the third hue can also be called a neutral hue.

[0045] S203. The first device adjusts the device temperature when outputting the output content based at least on the hue of each pixel.

[0046] In one possible implementation, the first device adjusts the device temperature when outputting the output content based on the hue of each pixel in the first image.

[0047] In another possible implementation, the first device adjusts the device temperature when outputting the output content based on the hue of each pixel in the first image and the color depth of each pixel.

[0048] The temperature adjustment scheme provided in this application embodiment is applied to a first device, which includes an augmented reality (AR) device or a virtual reality (VR) device. The scheme includes: taking a screenshot of the output content of the first device to obtain a first image; determining the hue of each pixel in the first image; and adjusting the device temperature when outputting the output content based at least on the hue of each pixel. In this way, by taking a screenshot of the output content of the first device to obtain a first image, the device temperature of the first device can be determined based on the hue of each pixel in the first image. Therefore, the device temperature of the first device can be adjusted based on its output content. This allows the first device to have different device temperatures when outputting different content, enabling users to experience different tactile temperatures and improving the user's tactile temperature experience.

[0049] The process of adjusting the device temperature when outputting the output content, at least based on the hue of each pixel, will be described below in S203. This process may include, but is not limited to, the following embodiments A1 or B1.

[0050] Implementation method A1: First, determine the first temperature based on the hue of the pixel, and then adjust the device temperature based on the first temperature corresponding to each pixel in the first image.

[0051] Implementation method B1: First, determine the hue of the first image based on the hue of the pixels, and then adjust the device temperature based on the hue of the first image.

[0052] Implementation method A1 may include, but is not limited to, the following S2031 and S2032.

[0053] S2031. The first device determines a first temperature for each pixel, at least based on the hue of the pixel.

[0054] In this process, the first device determines a first temperature for a single pixel, based at least on the hue of that pixel.

[0055] S2032. The first device adjusts the device temperature when outputting the output content based on the first temperature corresponding to each pixel in the first image.

[0056] In one possible implementation, the first device determines the target temperature as the average of the first temperatures corresponding to all pixels in the first image, and adjusts the device temperature when outputting the output content to the target temperature.

[0057] In one possible implementation, the first device determines the target temperature as the median or mode of the first temperature corresponding to all pixels in the first image, and adjusts the device temperature when outputting the output content to the target temperature.

[0058] Implementation B may include: a first device first determining the hue of a first image based on the hue of the pixels, and then adjusting the device temperature based on the hue of the first image.

[0059] For example, the first device first determines the hue of each pixel in the first image, then determines the hue of the first image based on the principle of large numbers, and then adjusts the device temperature when outputting the output content based on the hue of the first image.

[0060] The process by which the first device determines a first temperature for each pixel, at least based on the hue of the pixel, in step S2031, will now be described. This process may include, but is not limited to, method A or method B described below.

[0061] Method A: Determine the first temperature based on the pixel's hue;

[0062] Method B: Determine the first temperature based on the pixel's hue and pixel's depth.

[0063] For method A: If the first device determines that the hue of a pixel is a first hue, then it determines the first temperature to be a first preset temperature corresponding to the first hue; if the hue of a pixel is a second hue, then it determines the first temperature to be a second preset temperature corresponding to the second hue; if the hue of a pixel is a third hue, then it determines the first temperature to be a third preset temperature corresponding to the third hue.

[0064] The embodiments of this application do not limit the specific values ​​of the first preset temperature, the second preset temperature, and the third preset temperature, and can be configured according to actual needs.

[0065] Method B may include, but is not limited to, the following: Figure 3 S301 and S302 are shown.

[0066] S301. The first device determines the color depth of the pixel based on the RGB values ​​of the pixel.

[0067] The embodiments of this application do not specifically limit the specific algorithm for determining pixel color depth, and can be configured according to actual needs.

[0068] In one possible implementation, the first device can calculate the color depth of a pixel using the following formula (1).

[0069] g = R × a + G × b + B × c Formula (1);

[0070] In formula (1), g represents the color depth of a pixel; R represents the R value of a pixel, G represents the G value of a pixel, and B represents the B value of a pixel; a represents the weighting ratio corresponding to R, b represents the weighting ratio corresponding to G, and c represents the weighting ratio corresponding to B; and a+b+c=1; the range of R value is 0-255, the range of G value is 0-255, and the range of B value is 0-255.

[0071] S302. The first device determines the first temperature based on the color depth and hue of the pixel.

[0072] The embodiments of this application do not limit the specific implementation of the first device determining the first temperature based on the color depth and hue of the pixel, and can be configured according to actual needs.

[0073] The process by which the first device in S302 determines the first temperature based on the color depth and hue of the pixel will be described below. This process may include, but is not limited to, any one of the following methods A1 to C1.

[0074] Method A1 is for scenes where the pixel's hue is the first hue (the pixel's R value is less than the pixel's B value).

[0075] Method B1 is for scenes where the pixel's hue is the second hue (the pixel's R value is greater than its B value).

[0076] Method C1 is for scenes where the pixel's hue is a third tone (the pixel's R value equals the pixel's B value).

[0077] Method A1 may include, but is not limited to, S3021A to S3024A below.

[0078] S3021A, The first device determines a second temperature for the first hue.

[0079] The embodiments of this application do not impose specific limitations on the value of the second temperature, which can be configured according to actual needs.

[0080] In one possible implementation, the second temperature can be an empirical value. For example, the second temperature can be the ambient temperature.

[0081] In another example, the second temperature can also be a calculated value. For instance, the second temperature could be an intermediate device temperature obtained based on the highest and lowest device temperatures of the first device.

[0082] S3022A, The first device divides the color depth of the pixel by the color depth reference value to obtain a first coefficient.

[0083] This application does not impose specific limitations on the value of the color depth parameter, and it can be configured according to actual needs. For example, the color depth reference value can be 255.

[0084] S3023A: The first device multiplies the second temperature by the first coefficient to obtain the first adjustment temperature.

[0085] S3024A: The first device determines the first temperature by summing the reference temperature and the first adjusted temperature.

[0086] The reference temperature is the adjustment base temperature for the equipment temperature.

[0087] In one possible implementation, the reference temperature can be the current device temperature.

[0088] In another possible implementation, the reference temperature can be the average of the highest and lowest device temperatures of the first device.

[0089] Method B1 may include, but is not limited to, S3021B to S3024B as described below.

[0090] S3021B, The first device determines a third temperature for the second hue.

[0091] The implementation of S3021B can refer to the specific implementation process of S3021A in which the first device in S3021A determines the second temperature for the first hue.

[0092] It should be noted that the third temperature can be the same as or different from the second temperature.

[0093] S3022B, The first device divides the color depth of the pixel by the color depth reference value to obtain the second coefficient.

[0094] The implementation of S3022B can refer to the specific implementation process in S3022A where the first device in S3022A divides the color depth of the pixel by the color depth reference value to obtain the first coefficient.

[0095] S3023B, The first device multiplies the third temperature by the second coefficient to obtain the second adjustment temperature.

[0096] S3024B: The first device determines the first temperature as the difference between the reference temperature and the second adjustment temperature.

[0097] Method C1 can be implemented as follows: the first device determines the second temperature as the first temperature for the third hue.

[0098] The process of determining the hue of each pixel in the first image by the first device in S202 will be described below. This process may include, but is not limited to, the following implementation A or implementation B.

[0099] The first device performs either the scheme of Implementation A or the scheme of Implementation B on each pixel in the first image to obtain the hue of each pixel in the first image.

[0100] Implementation method A: Determine the hue of a pixel based on the relationship between the R value and the B value of the pixel;

[0101] Implementation method B: Determine the hue of the pixel based on the color set.

[0102] Implementation method A may include, but is not limited to, the following S202A1 to S202A5.

[0103] S202A1, The first device obtains the red R value and the blue B value of the pixel.

[0104] The first device obtains the RGB value of the pixel through a color picker, and separates the R value and B value of the pixel from the RGB value.

[0105] S202A2, The first device determines the relationship between the R value and the B value of a pixel.

[0106] The first device determines the relationship between the R value and the B value of a pixel. If the R value of a pixel is greater than the B value of a pixel, then execute S202A3 as described below; if the R value of a pixel is less than the B value of a pixel, then execute S202A4 as described below; if the R value of a pixel is equal to the B value of a pixel, then execute S202A5 as described below.

[0107] S202A3. If the R value is greater than the B value, the first device determines the hue of the pixel as the first hue.

[0108] S202A4. If the R value is less than the B value, then the hue of the pixel is determined to be the second hue.

[0109] S202A5. If the R value is equal to the B value, then the hue of the pixel is determined to be the third hue.

[0110] It should be noted that if the divided hues only include the first hue and the second hue, then the first device determines the hue of the pixel as either the first hue or the second hue if the R value of the pixel is equal to the B value of the pixel.

[0111] Implementation method B may include, but is not limited to, the following S202B1 to S202B3.

[0112] S202B1, The first device calculates a first distance between the red, green and blue RGB values ​​of the pixel and the RGB values ​​corresponding to each color included in the color library.

[0113] The first device acquires the RGB value of the pixel and calculates the first distance between the RGB value of the pixel and the RGB value corresponding to each color included in the color library using a first distance algorithm, thereby obtaining at least one first distance.

[0114] This application does not limit the gambler's distance algorithm, and it can be configured according to actual needs. For example, the first distance algorithm can be Euclidean distance.

[0115] S202B2, The first device determines that the first color corresponding to the pixel is the color in the color library whose RGB value is such that the distance between the corresponding RGB value and the RGB value of the pixel satisfies a first condition.

[0116] This application does not specifically limit the first condition, and it can be configured according to actual needs. In one example, the first condition can be: the first color corresponding to the pixel is the color in the color library with the smallest distance between the corresponding RGB value and the RGB value of the pixel.

[0117] S202B3, The first device determines the hue of the pixel based on the first color corresponding to the pixel.

[0118] The first device determines the color set to which the first color corresponding to the pixel belongs. If the first color corresponding to the pixel belongs to the first color set (red, orange, yellow, and brown), then the hue of the pixel is determined to be the first hue. If the first color corresponding to the pixel belongs to the second color set (blue, green, and purple), then the hue of the pixel is determined to be the second hue. If the first color corresponding to the pixel belongs to the third color set (black, white, and gray), then the hue of the pixel is determined to be the third hue.

[0119] The temperature adjustment method provided in this application also includes, but is not limited to, the following: Figure 4 S204 and S205 are shown.

[0120] S204, The first device obtains the first time and the fourth temperature.

[0121] The first time is the time when the output content is output; the fourth temperature is the device temperature when the output content is output after adjustment.

[0122] The time when the first device acquires and outputs the content is the first time, and the adjusted temperature of the device that outputs the content is the fourth temperature.

[0123] Example 1: The first device obtains the first time as the 2nd minute, 25th to 26th second, and the fourth temperature as 39 degrees.

[0124] S205. The first device associates the first time with the fourth temperature so that when outputting the content of the first time, the device temperature is adjusted to the fourth temperature.

[0125] Based on Example 1, Example 2 may include: a first device associating the 25th to 26th seconds of the 2nd minute with 39 degrees, so that when outputting content at 39 degrees during the 25th to 26th seconds of the 2nd minute, the device temperature is adjusted to 39 degrees.

[0126] In this way, when outputting the content later, the first device can directly adjust the device temperature based on the correlation between the first time and the fourth temperature, resulting in a faster response and further improving the user experience.

[0127] The following description uses a VR mask as an example to illustrate the temperature adjustment method provided in this application.

[0128] For ease of understanding, some technical terms involved in the embodiments of this application are explained.

[0129] Virtual Reality (VR) refers to a novel human-computer interaction method created using computers and the latest sensor technologies. Virtual reality uses computers to simulate a three-dimensional virtual world, providing users with sensory stimulation such as sight, hearing, and touch, allowing them to experience the world as if they were actually there, observing objects in three-dimensional space in a timely and unrestricted manner.

[0130] The three primary optical colors (Red, Green, Blue, RGB) consist of red (R), green (G), and blue (B). Mixing these three primary colors creates a variety of colors. For example, red plus green produces yellow (Y); green plus blue produces cyan (C); red plus blue produces purple (P); and red plus green plus blue produces white (W).

[0131] Cool / Cold & Warm Colours: These refer to the psychological perception of color as warm or cool. This perception is formed through associations and experiences in daily life. For example, red, orange, yellow, and brown often evoke images of orange flames and the sun, and brownish earth, thus they are associated with warmth and can be called "warm colors." Green, blue, and purple, on the other hand, often evoke images of forests, skies, and snow, thus they are associated with coolness and can be called "cool colors." Black, white, and gray, however, give a neutral feeling, hence they are called "neutral colors." The perception of warmth or coolness in colors is relative; within the same color family, those with more warm tones are warmer, and those with more cool tones are cooler.

[0132] In related technologies, VR technology can provide users with an immersive experience in terms of vision and hearing; however, it does not achieve an immersive experience in terms of touch and temperature. The temperature adjustment method provided in this application can automatically change the temperature of the VR mask according to the color of the VR content, thereby increasing the immersive experience for the user in terms of touch.

[0133] Specifically, the temperature adjustment method may include, but is not limited to, the following: Figure 5 Steps one through ten are shown.

[0134] Step 1: Set the minimum and maximum temperatures for the VR mask.

[0135] Specifically, after activating the VR mask, you can set the minimum temperature A (degrees Celsius) and the maximum temperature B (degrees Celsius) of the VR mask.

[0136] Step 2: The VR mask starts running VR content.

[0137] Specifically, start playing or displaying VR content.

[0138] Step 3: Use a screenshot tool to take a screenshot of the VR content using the VR mask.

[0139] Using a screenshot tool, the VR mask captures a screenshot of the VR content, resulting in the first image.

[0140] Step 4: Determine the color depth and hue of each individual pixel in the VR mask.

[0141] Specifically, this may include, but is not limited to, the following sub-steps 1 to 3.

[0142] Sub-step 1: Obtain the RGB value of each single pixel of the VR mask.

[0143] Sub-step 2: The VR mask calculates the color depth of each single pixel.

[0144] Specifically, the color depth of a pixel can be calculated using the following formula (1).

[0145] g = R × a + G × b + B × c Formula (1);

[0146] In formula (1), g represents the color depth of a pixel; R represents the R value of a pixel, G represents the G value of a pixel, and B represents the B value of a pixel; a represents the weighting ratio corresponding to R, b represents the weighting ratio corresponding to G, and c represents the weighting ratio corresponding to B; and a+b+c=1; the range of R value is 0-255, the range of G value is 0-255, and the range of B value is 0-255.

[0147] As can be seen, the value of g ranges from 0 to 255. Specifically, the closer the value of g is to 0, the deeper the color depth; the closer the value of g is to 255, the lighter the color depth.

[0148] Sub-step 3: The VR mask determines the hue of each pixel based on its RGB value.

[0149] The VR mask compares the RGB value of a single pixel with the RGB values ​​of each color in its built-in database to determine the distance between the pixel's RGB value and the RGB value of each color. The color with the smallest distance is then identified as the pixel's color, and its hue is determined based on that color. For example, if the pixel's color is red, orange, yellow, or brown, its hue is determined to be warm; if it's green, blue, or purple, its hue is determined to be cool; and if it's gray, white, or black, its hue is determined to be neutral.

[0150] If the color tone of the single pixel is warm, then proceed to step five below; if the color tone of the single pixel is cool, then proceed to step six below; if the color tone of the single pixel is neutral, then proceed to step seven below.

[0151] Step 5: For warm-toned pixels, calculate the temperature corresponding to the pixel.

[0152] Specifically, if the hue of a pixel is warm, the temperature of the pixel is between (A+B) / 2 degrees Celsius and B degrees Celsius; and the deeper the color depth of a pixel, the higher the temperature of the pixel, and the lighter the color depth of a pixel, the lower the temperature of the pixel.

[0153] Specifically, the temperature corresponding to a pixel can be calculated according to the following formula (2).

[0154]

[0155] In formula (2), t represents the temperature corresponding to the pixel, A represents the lowest temperature, and B represents the highest temperature. 'g' represents the intermediate temperature, and 'g' represents the color depth of the pixel.

[0156] For easier calculation, formula (2) can be converted into formula (3).

[0157]

[0158] In formula (3), t represents the temperature corresponding to the pixel, A represents the lowest temperature, and B represents the highest temperature. 'g' represents the intermediate temperature, and 'g' represents the color depth of the pixel.

[0159] It should be noted that after completing step five, proceed to step eight.

[0160] Step 6: For pixels with cool tones, calculate the temperature corresponding to the pixel.

[0161] Specifically, if the color tone of the pixel is cool, the temperature of the pixel is between A degrees Celsius and (A+B) / 2 degrees Celsius; and the deeper the color depth of the pixel, the lower the temperature of the pixel, and the lighter the color depth of the pixel, the higher the temperature of the pixel.

[0162] Specifically, the temperature corresponding to a pixel can be calculated using the following formula (4).

[0163]

[0164] In formula (4), t represents the temperature corresponding to the pixel, A represents the lowest temperature, and B represents the highest temperature. 'g' represents the intermediate temperature, and 'g' represents the color depth of the pixel.

[0165] For easier calculation, formula (4) can be converted into formula (5).

[0166]

[0167] In formula (5), t represents the temperature corresponding to the pixel, A represents the lowest temperature, and B represents the highest temperature. 'g' represents the intermediate temperature, and 'g' represents the color depth of the pixel.

[0168] It should be noted that after completing step six, proceed to step eight.

[0169] Step 7: For neutral tones, calculate the temperature corresponding to the pixels.

[0170] Specifically, the temperature corresponding to a pixel can be calculated using the following formula (6).

[0171]

[0172] Where t represents the temperature corresponding to the pixel, A represents the minimum temperature, and B represents the maximum temperature. This indicates the intermediate temperature.

[0173] It should be noted that after completing step seven, proceed to step eight.

[0174] Step 8: Calculate the temperature of the first image based on the temperature of each pixel.

[0175] After calculations in steps six, seven, and eight, the temperature corresponding to each pixel can be obtained. Then, the first value of the temperature corresponding to all pixels is taken as the temperature corresponding to the first image.

[0176] The first value may include any of the following: the mean, the median, or the mode.

[0177] Step 9: Adjust the temperature of the VR mask to the temperature corresponding to the first image.

[0178] Specifically, the VR mask temperature is adjusted to the temperature corresponding to the first image using the temperature setting tool.

[0179] Step 10: Process the VR content for the next frame.

[0180] Specifically, refer to steps three through nine to process the next frame of VR content.

[0181] This application obtains a first screenshot from VR content, analyzes the color of the first image, calculates the temperature corresponding to the first image using the lowest temperature in degrees Celsius, the highest temperature in degrees Celsius, and the color depth as parameters, and adjusts the temperature of the VR mask based on the temperature of the first image, thereby increasing the tactile temperature changes brought to the user by the VR content and bringing a better VR experience to the user.

[0182] To achieve the above-mentioned temperature adjustment method, a temperature adjustment device according to an embodiment of this application is described below. Figure 6 The structural diagram of the temperature adjustment device shown is used for explanation.

[0183] like Figure 6 As shown, the temperature adjustment device 60 includes: a screenshot unit 601, a determination unit 602, and an adjustment unit 603. Wherein:

[0184] The screenshot unit 601 is used to take a screenshot of the output content of the first device to obtain a first image;

[0185] The determining unit 602 is used to determine the hue of each pixel in the first image;

[0186] The adjustment unit 603 is used to adjust the device temperature when outputting the output content, based at least on the hue of each pixel.

[0187] In some embodiments, the adjustment unit 603 is further configured to:

[0188] For each pixel, a first temperature is determined based at least on the pixel's hue;

[0189] The device temperature is adjusted when outputting the output content based on the first temperature corresponding to each pixel in the first image.

[0190] In some embodiments, the adjustment unit 603 is further configured to:

[0191] The color depth of the pixel is determined based on its RGB values.

[0192] The first temperature is determined based on the color depth and hue of the pixel.

[0193] In some embodiments, when the hue of the pixel is a first hue, the adjustment unit 603 is further configured to:

[0194] Determine a second temperature for the first hue;

[0195] Divide the color depth of the pixel by the color depth reference value to obtain the first coefficient;

[0196] Multiply the second temperature by the first coefficient to obtain the first adjustment temperature;

[0197] The sum of the reference temperature and the first adjustment temperature is determined as the first temperature; the reference temperature is the adjustment base temperature of the device temperature.

[0198] In some embodiments, when the hue of the pixel is a second hue, the adjustment unit 603 is further configured to:

[0199] Determine a third temperature for the second hue;

[0200] Divide the color depth of the pixel by the color depth reference value to obtain the second coefficient;

[0201] Multiply the third temperature by the second coefficient to obtain the second adjustment temperature;

[0202] The difference between the reference temperature and the second adjustment temperature is determined as the first temperature; the reference temperature is the adjustment base temperature of the device temperature.

[0203] In some embodiments, the determining unit 602 is further configured to:

[0204] For each pixel, the following processing is performed:

[0205] Obtain the red (R) value and the blue (B) value of the pixel;

[0206] If the R value is greater than the B value, then the hue of the pixel is determined to be the first hue;

[0207] If the R value is less than the B value, then the hue of the pixel is determined to be the second hue;

[0208] If the R value is equal to the B value, then the hue of the pixel is determined to be the third hue.

[0209] In some embodiments, the temperature adjustment device 60 further includes an association unit.

[0210] The associated unit is used for:

[0211] The first time and the fourth temperature are obtained; the first time is the time when the output content is output; the fourth temperature is the adjusted device temperature when the output content is output.

[0212] The first time is associated with the fourth temperature so that when the content of the first time is output, the device temperature is adjusted to the fourth temperature.

[0213] It should be noted that the temperature adjustment device provided in this application embodiment includes all the units included, which can be implemented by a processor in an electronic device; of course, it can also be implemented by specific logic circuits; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field-programmable gate array (FPGA), etc.

[0214] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0215] It should be noted that, in the embodiments of this application, if the above-described temperature adjustment method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.

[0216] To implement the above temperature adjustment method, this application provides an electronic device including a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the program, it implements the steps in the temperature adjustment method provided in the above embodiments.

[0217] The following is combined with Figure 7The electronic device 70 shown is illustrated with a structural diagram.

[0218] In one example, electronic device 70 can be the aforementioned electronic device. For example... Figure 7 As shown, the electronic device 70 includes: a processor 701, at least one communication bus 702, a user interface 703, at least one external communication interface 704, and a memory 705. The communication bus 702 is configured to enable communication between these components. The user interface 703 may include a display screen, and the external communication interface 704 may include standard wired and wireless interfaces.

[0219] The memory 705 is configured to store instructions and applications executable by the processor 701, and can also cache data to be processed or already processed by the processor 701 and various modules in the electronic device (e.g., image data, audio data, voice communication data and video communication data), which can be implemented by flash memory or random access memory (RAM).

[0220] Fourthly, embodiments of this application provide a storage medium, namely a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps in the temperature adjustment method provided in the above embodiments.

[0221] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0222] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0223] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0224] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0225] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0226] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0227] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0228] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0229] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A temperature adjustment method, characterized in that, The method is applied to a first device, and the method includes: A screenshot of the output content of the first device is taken to obtain the first image; Determine the hue of each pixel in the first image; For each pixel, the color depth of the pixel is determined based on its RGB values; a first temperature is determined based on the color depth and hue of the pixel. Based on the first temperature corresponding to each pixel in the first image, the device temperature of the first device is adjusted when outputting the output content.

2. The method according to claim 1, characterized in that, When the hue of the pixel is a first hue, determining the first temperature based on the color depth and hue of the pixel includes: Determine a second temperature for the first hue; Divide the color depth of the pixel by the color depth reference value to obtain the first coefficient; Multiply the second temperature by the first coefficient to obtain the first adjustment temperature; The sum of the reference temperature and the first adjustment temperature is determined as the first temperature; the reference temperature is the adjustment base temperature of the device temperature.

3. The method according to claim 1, characterized in that, When the hue of the pixel is a second hue, determining the first temperature based on the color depth and hue of the pixel includes: Determine a third temperature for the second hue; Divide the color depth of the pixel by the color depth reference value to obtain the second coefficient; Multiply the third temperature by the second coefficient to obtain the second adjustment temperature; The difference between the reference temperature and the second adjustment temperature is determined as the first temperature; the reference temperature is the adjustment base temperature of the device temperature.

4. The method according to any one of claims 1 to 3, characterized in that, Determining the hue of each pixel in the first image includes: For each pixel, the following processing is performed: Obtain the red (R) value and the blue (B) value of the pixel; If the R value is greater than the B value, then the hue of the pixel is determined to be the first hue; If the R value is less than the B value, then the hue of the pixel is determined to be the second hue; If the R value is equal to the B value, then the hue of the pixel is determined to be the third hue.

5. The method according to claim 1, characterized in that, The method further includes: The first time and the fourth temperature are obtained; the first time is the time when the output content is output; the fourth temperature is the adjusted device temperature when the output content is output. The first time is associated with the fourth temperature so that when the content of the first time is output, the device temperature is adjusted to the fourth temperature.

6. A temperature adjustment device, characterized in that, The device includes: The screenshot unit is used to capture a screenshot of the output content of the first device to obtain a first image; A determining unit is used to determine the hue of each pixel in the first image; An adjustment unit is configured to, for each pixel, determine the color depth of the pixel based on the RGB values ​​of the pixel; and determine a first temperature based on the color depth and the hue of the pixel. Based on the first temperature corresponding to each pixel in the first image, the device temperature of the first device is adjusted when outputting the output content.

7. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, the processor executing the program to implement the temperature adjustment method of any one of claims 1 to 5.

8. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the temperature adjustment method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Virtual reality somatosensory method and system, a head-mounted display device and wearable device

    CN107219919A