A method and system for adjusting indoor color visual atmosphere based on outdoor environment
By collecting and processing images of the outdoor environment, extracting color HSV attribute values, controlling indoor lighting and wall colors, the problem of complex and single atmosphere adjustment in the existing technology is solved, and rich and adaptive indoor atmosphere adjustment is achieved. Enhance the atmosphere close to nature.
Patent Information
- Application Number
- CN202411515942.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2044-10-29
AI Technical Summary
The existing indoor scene atmosphere adjustment system is complex in settings, a single scene mode, fails to effectively utilize wall color changes, and lacks lighting adjustment based on color feedback in outdoor environments, resulting in boring and inexpensive atmosphere creation.
By collecting and processing images of the outdoor environment, extracting the color HSV attribute values, determining the main tone, auxiliary tone, and embellishing tone based on the color area weighting algorithm, and controlling the indoor light and wall colors through color conversion rules to achieve dynamic atmosphere adjustment.
It breaks the singularity of indoor atmosphere creation, provides rich and unique visual experience, adapts to the color characteristics of outdoor environment, reduces the complexity of setting, enhances the richness of atmosphere adjustment and is close to nature.
Smart Images

Figure CN119027518B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical fields of image processing, color extraction and lighting control, and in particular to a method and system for adjusting indoor color visual atmosphere based on outdoor environment. Background Art
[0002] With the development of modern science and technology, people's quality of life is getting higher and higher. In the context of pursuing higher quality living conditions, many new technologies, new products and high-end control systems in the field of smart home have emerged. Among them, the creation of indoor scene atmosphere is based on the field of smart home. There are many existing methods for creating indoor scene atmosphere, such as controlling the indoor atmosphere through lighting. The technologies include: voice-controlled lights, intelligent voice system control, light sensing control, etc. Although the existing lighting atmosphere control technology provides many conveniences and innovations in creating indoor scene atmosphere, it still has the following disadvantages:
[0003] 1. Complex setup process: Smart lighting control systems may involve complex setup and adjustment processes, which require users to spend time and effort to learn and adapt. This may be too cumbersome for some users, reducing the convenience and practicality of use.
[0004] 2. Single scene mode: The adjustment of indoor scene atmosphere is generally based on several pre-set models, such as entertainment mode, dining mode, sleeping mode, etc. Each mode corresponds to a different scene atmosphere, and it will inevitably feel monotonous and boring after long-term use.
[0005] 3. Single control: The existing indoor scene atmosphere adjustment, such as changing the color of lights and adjusting the opening of windows, creates the atmosphere, but does not incorporate factors such as wall color changes into the indoor atmosphere adjustment.
[0006] In addition, existing lighting adjustment systems are relatively rare in adjusting the indoor visual scene atmosphere based on feedback from the outdoor environment. Indoor lighting is generally adjusted based on outdoor physical factors, such as adjusting indoor lighting illumination according to outdoor light intensity. Because there are relatively few controllable factors in the outdoor environment, it is also an urgent problem to adjust the indoor visual scene atmosphere based on the color feedback of the outdoor environment. Summary of the invention
[0007] In order to overcome the defects in the above-mentioned prior art, the present invention provides a method for adjusting indoor color visual atmosphere based on the outdoor environment. The indoor lighting changes accordingly with the changes in the outdoor environment, giving people a rich and unique visual experience.
[0008] To achieve the above object, the present invention adopts the following technical solutions, including:
[0009] An indoor color visual atmosphere adjustment method based on the outdoor environment, comprising the following steps:
[0010] S1, collect images of the outdoor environment;
[0011] S2, process and color extraction analysis on the collected outdoor environment images, and extract the HSV attribute values of each color in the image and the area proportion of each color in the image;
[0012] S3, determine the main color tone, secondary color tone, and accent color tone of the image based on the color area weighted algorithm, and calculate the HSV attribute values of the main color tone, secondary color tone, and accent color tone;
[0013] S4, based on the color conversion rules, convert the HSV attribute values of the main color tone, secondary color tone, and accent color tone respectively to obtain the converted HSV attribute values of each color tone;
[0014] S5, control the indoor lights based on the converted HSV attribute values of each color tone.
[0015] Preferably, the specific process of step S3 is as follows:
[0016] S31, according to the area proportion of each color in the image, arrange the area proportions in descending order, arranged as r1,..., r n , r n+1 ,...,, r m , r m+1 ,...,, r k ; where r represents the area proportion, the subscript represents the arrangement serial number, 1 < n < m < k, a total of k colors;
[0017] S32, sum up one by one in descending order of the area proportion, and regard the color whose area proportion sum reaches 70% as the color of the main color tone, that is, r1+...+r n >70%, regard the colors corresponding to r1,..., r n as the colors of the main color tone; then from the remaining colors, regard the color whose area proportion sum reaches 25% as the color of the secondary color tone, that is, r n+1 +...+r m >25%, regard the colors corresponding to r n+1 ,...,, r m as the colors of the secondary color tone; finally, regard the remaining remaining colors as the colors of the accent color tone, that is, regard the colors corresponding to r m+1 ,...,, r k as the colors of the accent color tone;
[0018] S33, calculate the area weights of the main color tone, secondary color tone, and accent color tone respectively:
[0019] The area weight of the main color is R1=r1+...+r n ;
[0020] The area weight of the auxiliary color is R2=r n+1 +...+r m ;
[0021] The area weight of the embellishment color is R3=r m+1 +...+r k ;
[0022] And R1+R2+R3=1;
[0023] S34, respectively calculating the hue values of the main color, the auxiliary color, and the decorative color, that is, the H value:
[0024] H1= (h1r1+...+h n r n ) / R1;
[0025] H2= (h n+1 r n+1 +...+h m r m ) / R2;
[0026] H3= (h m+1 r m+1 +...+h k r k ) / R3;
[0027] Among them, H1, H2, and H3 are the hue values of the main color, the auxiliary color, and the decorative color respectively; h represents the hue value of the color, and h i is the area ratio r i The hue value of the corresponding color, i=1,...,k;
[0028] S35, calculate the saturation value of the main color, auxiliary color, and embellishment color, that is, the S value:
[0029] S1= (s1r1+...+s n r n ) / R1;
[0030] S2= (s n+1 r n+1 +...+s m r m ) / R2;
[0031] S3= (s m+1 r m+1 +...+s k r k ) / R3;
[0032] Among them, S1, S2, and S3 are the saturation values of the main color, the auxiliary color, and the decorative color respectively; s represents the saturation value of the color, s i is the area ratio r i The saturation value of the corresponding color;
[0033] S36, respectively calculating the brightness values of the main color, the auxiliary color, and the decorative color, that is, the V value:
[0034] V1= (v1r1+...+v n r n ) / R1;
[0035] V2= (v n+1 r n+1 +...+v m r m ) / R2;
[0036] V3= (v m+1 r m+1 +...+v k r k ) / R3;
[0037] Among them, V1, V2, and V3 are the brightness values of the main color, auxiliary color, and decorative color respectively; v represents the brightness value of the color, and v i is the area ratio r i The brightness value of the corresponding color.
[0038] Preferably, in step S4, the conversion rule of hue H is: the value range of hue H is 0°-360°, with
[0039] The interval is divided into units of 30°, and each interval corresponds to a fixed hue, where [0°, 30°) is red,
[0040] [30°, 60°) is orange-red, [60°, 90°) is yellow, [90°, 120°) is yellow-green, [120°, 150°) is green, [150°, 180°) is cyan, [180°, 210°) is cyan, [210°, 240°) is blue-green, [240°,
[0041] [270°, 300°) is blue, [270°, 300°) is blue-purple, [300°, 330°) is purple, and [330°, 360°) is red-purple.
[0042] Preferably, in step S4, the conversion rule of saturation S is: the value range of saturation S is 0%-100%, and the saturation is divided into 6 levels, each level corresponds to a fixed saturation value, wherein the corresponding saturation value in the range of [0%, 38%) is 30%, the corresponding saturation value in the range of [38%, 46%) is 38%, the corresponding saturation value in the range of [46%, 54%) is 46%, the corresponding saturation value in the range of [54%, 62%) is 54%, the corresponding saturation value in the range of [62%, 70%) is 62%, and the corresponding saturation value in the range of [70%, 100%) is 70%.
[0043] Preferably, in step S4, the conversion rule of brightness V is: the value range of brightness V is 0%-100%, and the brightness is divided into 6 levels, each level corresponds to a fixed brightness value, wherein the corresponding brightness value in the range of [0%, 56%) is 50%, the corresponding brightness value in the range of [56%, 62%) is 56%, the corresponding brightness value in the range of [62%, 68%) is 62%, the corresponding brightness value in the range of [68%, 74%) is 68%, the corresponding brightness value in the range of [74%, 80%) is 74%, and the corresponding brightness value in the range of [80%, 100%) is 80%.
[0044] Preferably, in step S5, the converted main color HSV attribute value is used to control the indoor main light and wall color, the converted auxiliary color HSV attribute value is used to control the indoor auxiliary light, and the converted decorative color HSV attribute value is used to control the indoor decorative light.
[0045] Preferably, the indoor lighting and wall colors are changed by electrochromic paint, and the color adjustment is achieved by controlling the electric field or voltage.
[0046] Preferably, in step S2, the collected image is processed and converted into a png image format; and the processed image is subjected to color analysis using Colorimpact software.
[0047] Preferably, the method further comprises the following steps:
[0048] S6, start the timer to determine whether the next control time has arrived. If so, re-collect the outdoor environment image and update the lighting control strategy in accordance with steps S1-S5; otherwise, maintain the original lighting control strategy and do not update the lighting control strategy.
[0049] The present invention also provides an indoor color visual atmosphere adjustment system based on an outdoor environment, which is applicable to the above-mentioned indoor color visual atmosphere adjustment method based on an outdoor environment, and includes: a panoramic camera device, a data processing unit, and a lighting control unit;
[0050] The panoramic camera device is used to capture panoramic images of the outdoor environment;
[0051] The data processing unit is used to process and analyze the collected images, determine the main color, auxiliary color, and embellishment color of the image, and calculate and convert the HSV attribute value of each color;
[0052] The light control unit is used to identify the converted HSV attribute values of each hue and control the indoor light based on the converted HSV attribute values of each hue.
[0053] The advantages of the present invention are:
[0054] (1) The present invention provides a method for adjusting indoor color visual atmosphere based on the outdoor environment, which breaks the monotony of indoor scene creation. The indoor lighting will change accordingly with the changes in the outdoor environment, giving people a rich and unique experience in visual atmosphere and providing more choices.
[0055] (2) The present invention is capable of adaptive adjustment. Compared with existing smart home control systems, the present invention reduces the complicated setting process and frees the user's hands. The system can adapt to the color characteristics of the outdoor environment and visually create an indoor scene atmosphere by changing the hue, saturation and brightness of the indoor lights.
[0056] (3) Existing indoor atmosphere adjustment is mostly based on pre-set lighting and sound. The present invention can add the color changes of the building's walls and the color changes of the lights into the visual atmosphere adjustment, and the color changes are derived from the color changes of the outdoor environment. This can make the atmosphere creation richer and more interesting, and can create an indoor atmosphere that fits the outdoor environment. Compared with the traditional way of changing the opening and closing of curtains and other methods, it is more economical and effective.
[0057] (4) The present invention also provides a color conversion rule, which converts the extracted ambient color and can accurately select the required color, so that the indoor lighting atmosphere can be accurately created according to the outdoor ambient color.
[0058] (5) The present invention can collect and analyze environmental image data in real time, and trigger corresponding lighting control strategies based on the analysis results, providing users with a more intelligent and convenient smart home atmosphere experience.
[0059] (6) Visually, it provides a richer indoor color atmosphere experience: Combining color quantification with the field of smart home enhances the interaction between the building's indoor space and the natural environment. Different indoor color scene atmospheres can be generated for different outdoor color environments, and the color changes of lights and walls are used to create a scene atmosphere. The visually changing color space makes the indoor atmosphere closer to the environment and more varied, and also enriches the use of smart homes.
[0060] (7) The existing indoor lighting control system does not have a corresponding feedback system for the outdoor color environment. Therefore, the present invention proposes a new intelligent lighting response system that combines the image color HSV data with the creation of indoor atmosphere, and converts the obtained outdoor color data into control data for indoor lighting and wall colors, which can form a unique experience based on a specific environment and a specific time period.
[0061] (8) The present invention uses electrochromic paint to achieve color change of indoor lights. Compared with traditional pigments or dyes, electrochromic paint has the following advantages: strong controllability, the color or light transmittance can be precisely controlled by adjusting the electric field or voltage; energy saving and environmental protection, the optical properties of the material can be adjusted without the need for additional energy, thereby improving energy efficiency and environmental protection; multifunctionality, suitable for a variety of application scenarios, and able to meet different functional requirements, such as energy saving, privacy protection, decoration, etc.
[0062] (9) The present invention takes the comfort of the human eye into consideration in its design, and selects colors with a saturation between 30% and 70% to create a more comfortable visual experience. In addition, the human eye can perceive color changes when the saturation difference is about 5%-10%. In order to maintain the comfort of the human eye and the visual appeal of the color, the present invention usually selects colors with a brightness between 50% and 80%. The human eye has a relatively high perception of changes in brightness and can usually perceive differences in color brightness more easily. Generally speaking, the human eye can perceive color changes when the brightness difference is about 1%-2%. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 The present invention is a flow chart of a method for adjusting indoor color visual atmosphere based on outdoor environment. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] Example 1
[0066] As shown by Figure 1 , a method for adjusting the indoor color visual atmosphere based on the outdoor environment includes the following steps:
[0067] S1. Use a panoramic camera device to collect panoramic images of the outdoor environment.
[0068] S2. Process the collected images and convert them into the png image format; use Colorimpact software to perform color sampling analysis on the processed images. In this embodiment, the recognition parameter is set to 64, that is, 64 colors are set for color sampling analysis. The Colorimpact software automatically extracts the HSV attribute values of each color in the image and the area proportion of each color in the image.
[0069] The HSV color attribute model is a method for determining colors based on the three basic attributes of colors, namely hue H, saturation S, and value V. Hue H is the basic attribute of color, that is, the color name, such as red, yellow, etc., and takes values from 0° to 360° according to the position on the standard color wheel. Saturation S refers to the purity of color. The higher the S value, the purer the color, and the lower the S value, it gradually becomes gray, taking values from 0% to 100%. Value V refers to the brightness of color, taking values from 0% to 100%.
[0070] Colorimpact is a professional color design software, mainly used to help users create, adjust, and analyze color schemes. It provides a variety of color theory tools and practical functions, enabling users to more accurately design color schemes for projects such as web pages, graphics, and user interfaces.
[0071] S3. Based on the color area weighted algorithm, determine the main color, secondary color, and accent color of the image, and calculate the HSV attribute values of the main color, secondary color, and accent color.
[0072] The specific process of step S3 is as follows:
[0073] S31. According to the area proportion of each color in the image, arrange the area proportions in descending order, arranged as r1,..., r n 、r n+1 、...、r m 、r m+1 、...、r k ; where r represents the area proportion, the subscript represents the arrangement serial number, 1 < n < m < k, a total of k colors. In this embodiment, k = 64.
[0074] S32. Add them up one by one in descending order of the area proportion, and use the color whose area proportion sum reaches 70% as the color of the main color, that is, r1 +... + rn >70%, r1, ..., r n The corresponding color is used as the main color; then from the remaining colors, the color whose total area accounts for 25% is used as the auxiliary color, that is, r n+1 +...+r m >25%, r n+1 ,...,r m The corresponding color is used as the auxiliary color; the remaining colors are used as the embellishment colors. m+1 ,...,r k The corresponding color is used as the embellishment color.
[0075] S33, respectively calculate the area weights of the main color, the secondary color, and the decorative color:
[0076] The area weight of the main color is R1=r1+...+r n ;
[0077] The area weight of the auxiliary color is R2=r n+1 +...+r m ;
[0078] The area weight of the embellishment color is R3=r m+1 +...+r k ;
[0079] And R1+R2+R3=1.
[0080] S34, respectively calculating the hue values of the main color, the auxiliary color, and the decorative color, that is, the H value:
[0081] H1= (h1r1+...+h n r n ) / R1;
[0082] H2= (h n+1 r n+1 +...+h m r m ) / R2;
[0083] H3= (h m+1 r m+1 +...+h k r k ) / R3;
[0084] Among them, H1, H2, and H3 are the hue values of the main color, the auxiliary color, and the decorative color respectively; h represents the hue value of the color, and h i is the area ratio r i The hue value of the corresponding color, i=1,...,k.
[0085] S35, calculate the saturation value of the main color, auxiliary color, and embellishment color, that is, the S value:
[0086] S1= (s1r1+...+s n r n ) / R1;
[0087] S2= (s n+1 r n+1 +...+s m r m ) / R2;
[0088] S3= (s m+1 r m+1 +...+s k r k ) / R3;
[0089] Among them, S1, S2, and S3 are the saturation values of the main color, the auxiliary color, and the decorative color respectively; s represents the saturation value of the color, s i is the area ratio r i The saturation value of the corresponding color, i=1,...,k.
[0090] S36, respectively calculating the brightness values of the main color, the auxiliary color, and the decorative color, that is, the V value:
[0091] V1= (v1r1+...+v n r n ) / R1;
[0092] V2= (v n+1 r n+1 +...+v m r m ) / R2;
[0093] V3= (v m+1 r m+1 +...+v k r k ) / R3;
[0094] Among them, V1, V2, and V3 are the brightness values of the main color, auxiliary color, and decorative color respectively; v represents the brightness value of the color, and v i is the area ratio r i The brightness value of the corresponding color, i=1,...,k.
[0095] S4, converting the HSV attribute values of the main color, the secondary color, and the embellishment color based on the color conversion rule to obtain the converted HSV attribute value of each color.
[0096] The specific process of step S4 is as follows:
[0097] S41, establish color conversion rules
[0098] (1) Hue H refers to the position of the color on the color spectrum, that is, it represents the type of color. 12 basic hues are defined. In the HSV color model, hue H from 0° to 360° represents different colors, as follows: 0° or 360° is red,
[0099] 30° is orange-red, 60° is yellow, 90° is yellow-green, 120° is green, 150° is cyan, 180° is cyan, 210° is blue-green, 240° is blue, 270° is blue-purple, 300° is purple, and 330° is red-purple.
[0100] The present invention divides the interval into units of 30°, and each interval corresponds to a fixed hue, as follows:
[0101] [0°, 30°) is red, [30°, 60°) is orange-red, [60°, 90°) is yellow, [90°, 120°) is yellow-green, [120°, 150°) is green, [150°, 180°) is cyan, [180°, 210°) is cyan, [210°, 240°) is blue-green, [240°, 270°) is blue, [270°, 300°) is blue-purple, [300°, 330°) is purple, and [330°, 360°) is red-purple.
[0102] (2) Saturation S refers to the degree of saturation or purity of a color, that is, the intensity and vividness of the color. The saturation range is from 0% to 100%, where 0% indicates achromaticity (grayscale, i.e., black, white, and gray) and 100% indicates the most saturated color. A higher saturation makes the color appear more vivid. Under conditions of human eye comfort, the color saturation range is usually between 30% and 70%. Colors within this range appear full and natural, and are not too glaring or irritating to the vision. A saturation exceeding 70% may be perceived as too glaring or unnatural, while a saturation below 30% may appear dull or boring. Therefore, the present invention takes into account the comfort of the human eye in its design, and selecting colors with a saturation between 30% and 70% is more conducive to creating a comfortable visual experience. In addition, the human eye can perceive color changes when the saturation difference is about 5%-10%.
[0103] The present invention divides saturation into 6 levels according to the comfort of human eyes and visual perception ability, and each level corresponds to a fixed saturation value, as follows: the corresponding saturation value in the range of [0%, 38%) is 30%, the corresponding saturation value in the range of [38%, 46%) is 38%, the corresponding saturation value in the range of [46%, 54%) is 46%, the corresponding saturation value in the range of [54%, 62%) is 54%, the corresponding saturation value in the range of [62%, 70%) is 62%, and the corresponding saturation value in the range of [70%, 100%) is 70%.
[0104] (3) Brightness V refers to the brightness of a color, that is, the degree of lightness or darkness of a color. The value range of brightness is 0% to 100%, where 0% represents black and 100% represents white. Adjusting the brightness can make the color present different light and dark effects. Under the condition of human eye comfort, the color brightness range is usually between 50% and 80%. Colors within this range appear bright but not glaring, neither too dim nor too dazzling. Brightness above 80% may be perceived as overly dazzling or glaring, while brightness below 50% may appear dim or weak. Therefore, in order to maintain the comfort of the human eye and the visual appeal of the color, the present invention usually selects colors with brightness between 50% and 80% in design. The human eye has a relatively high perception of changes in brightness and can usually easily perceive differences in color brightness. Generally speaking, when the difference in brightness is about 1%-2%, the human eye can perceive the change in color. This means that when the brightness values of two colors differ by about 1%-2%, the human eye may be able to clearly perceive the color difference between the two colors.
[0105] The present invention divides brightness into 6 levels according to the comfort of human eyes and visual perception ability, and each level corresponds to a fixed brightness value, as follows: the corresponding brightness value in the range of [0%, 56%) is 50%, the corresponding brightness value in the range of [56%, 62%) is 56%, the corresponding brightness value in the range of [62%, 68%) is 62%, the corresponding brightness value in the range of [68%, 74%) is 68%, the corresponding brightness value in the range of [74%, 80%) is 74%, and the corresponding brightness value in the range of [80%, 100%) is 80%.
[0106] S42, according to the established color conversion rules and the calculated HSV attribute values of the main color, the auxiliary color, and the embellishment color, the HSV attribute values of each color tone are converted to obtain the converted HSV attribute values of each color tone.
[0107] S5, using a micro single board computer or other device to identify the converted HSV attribute values of each hue, and controlling the indoor lighting based on the converted HSV attribute values of each hue, the control method is as follows:
[0108] The converted main color HSV attribute value is used to control most of the lights (main lights) and wall colors in the room. As the dominant part of creating the indoor lighting atmosphere, it is guaranteed to cover the entire space, taking into account the overall layout of the space and certain functional requirements, in various forms, such as chandeliers, wall colors, etc.
[0109] The converted auxiliary color HSV attribute value is used to control a small part of the indoor lights (auxiliary lights), which mainly play the role of assisting the main lights to create the indoor atmosphere, making the indoor atmosphere more close to the environment and more flexible, such as: wall lamps, spotlights, etc.
[0110] The converted HSV attribute value of the decorative hue is used to control some small lights (decorative lights) in the room for decorative purposes, such as small LED lights.
[0111] In the present invention, the color of indoor lighting or wall can be changed by electrochromic paint, and the color can be precisely adjusted by controlling the electric field or voltage. Electrochromic paint is a special material whose color can be controlled and adjusted by an externally applied electric field or voltage. Such paint usually contains materials or compounds with electrochromic properties, such as vanadium oxide (VO2), tungsten oxide (WO3), etc. The color change principle of electrochromic paint is based on the change of optical properties of materials under different charge states. When a voltage or electric field is applied, the charge distribution or crystal structure of these materials will change, resulting in a change in the way light is absorbed or reflected, so that the paint presents different colors or transparency. Generally speaking, this color change is reversible, that is, the paint can be restored to its original state after the electric field or voltage is removed. Electrochromic paint can achieve precise color adjustment by precisely controlling the electric field or voltage. This precise control is usually achieved by specially designed circuits, controllers or systems, which can provide precise voltage or electric field strength to ensure that the paint can change color in a predetermined manner.
[0112] A micro single-board computer (SBC), also known as a single-board microcomputer or microcomputer, is a computer that assembles all parts of a computer on a printed circuit board, including a microprocessor, memory, input and output interfaces, and other external devices such as a simple seven-segment LED display, a small keyboard, and sockets. The volume of an SBC is usually only a few square centimeters, and the weight is only a few grams to tens of grams, which is very portable. Powerful. SBC can run various operating systems, support multiple programming languages, and can complete various computing tasks. The price of SBC is relatively low, and it is a very cost-effective computing device. Easy to use. SBC usually does not require complex configuration before it can be used. SBC is widely used in embedded systems, such as industrial control, medical equipment, smart home, Internet of Things and other fields.
[0113] S6, start the timer to determine whether the next control time has arrived. If so, re-collect the outdoor environment image and update the lighting control strategy in accordance with steps S1-S5; otherwise, maintain the original lighting control strategy and do not update the lighting control strategy.
[0114] The timer set in the present invention can divide a day into day and night. The day can be divided into several specific time periods according to the user's preferences, such as morning, noon, evening, or every hour. After each preset control time point is reached, the next control can be carried out, the outdoor environment image is re-collected and the light control strategy is updated, the purpose is to increase the user's flexibility.
[0115] Example 2
[0116] The present invention also provides an indoor color visual atmosphere adjustment system based on an outdoor environment, which is applicable to the above-mentioned embodiment 1, a method for adjusting indoor color visual atmosphere based on an outdoor environment, including: a panoramic camera device, a data processing unit, and a lighting control unit.
[0117] The panoramic camera device is used to collect panoramic images of an outdoor environment.
[0118] The data processing unit is used to process and analyze the collected images, determine the main color tone, auxiliary color tone, and embellishment color tone of the image, and calculate and convert the HSV attribute value of each color tone.
[0119] The light control unit is used to identify the converted HSV attribute values of each hue and control the indoor light based on the converted HSV attribute values of each hue.
[0120] The present invention is also provided with a timer. Every time a preset control time point is reached, the next control can be carried out. The panoramic camera device re-collects the outdoor environment image, the data processing unit recalculates and converts the HSV attribute value of each color tone, and the light control unit updates the light control strategy.
[0121] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for adjusting indoor color visual atmosphere based on outdoor environment, characterized in that: The following steps are involved: S1, collect images of outdoor environment; S2, processing and color analysis of the collected outdoor environment image, extracting the HSV attribute value of each color in the image and the area proportion of each color in the image; S3, determining the main color, secondary color, and decorative color of the image based on a color area weighted algorithm, and calculating the HSV attribute values of the main color, secondary color, and decorative color; S4, based on the color conversion rule, respectively convert the HSV attribute values of the main color, the auxiliary color, and the embellishment color to obtain the converted HSV attribute values of each color; S5, controlling indoor lighting based on the converted HSV attribute values of each hue; The specific process of step S3 is as follows: S31. Arrange the area ratios of each color in the image in descending order, arranged as r1, ..., r n , r n+1 , ..., r m , r m+1 , ..., r k ; where r represents the area ratio, the subscript represents the arrangement serial number, 1 < n < m < k, and there are k colors in total. S32, add the colors one by one in descending order of area proportion, and take the colors whose area proportion reaches 70% as the main color, that is, r1+...+r n >70%, r1, ..., r n The corresponding color is used as the main color; then from the remaining colors, the color whose total area accounts for 25% is used as the auxiliary color, that is, r n+1 +...+r m >25%, r n+1 ,...,r m The corresponding color is used as the auxiliary color; the remaining colors are used as the embellishment colors. m+1 ,...,r k The corresponding color is used as the color of the embellishment tone; S33, respectively calculate the area weights of the main color, the secondary color, and the decorative color: The area weight of the main color is R1=r1+...+r n ; The area weight of the auxiliary color is R2=r n+1 +...+r m ; The area weight of the embellishment color is R3=r m+1 +...+r k ; And R1+R2+R3=1; S34, respectively calculating the hue values of the main color, the auxiliary color, and the decorative color, that is, the H value: H1= (h1r1+...+h n r n ) / R1; H2= (h n+1 r n+1 +...+h m r m ) / R2; H3= (h m+1 r m+1 +...+h k r k ) / R3; Among them, H1, H2, and H3 are the hue values of the main color, the auxiliary color, and the decorative color respectively; h represents the hue value of the color, and h i is the area ratio r i The hue value of the corresponding color, i=1,...,k; S35, calculate the saturation value of the main color, auxiliary color, and embellishment color, that is, the S value: S1= (s1r1+...+s n r n ) / R1; S2= (s n+1 r n+1 +...+s m r m ) / R2; S3= (with m+1 r m+1 +...+s k r k ) / R3; Among them, S1, S2, and S3 are the saturation values of the main color, the auxiliary color, and the decorative color respectively; s represents the saturation value of the color, s i is the area ratio r i The saturation value of the corresponding color; S36, respectively calculating the brightness values of the main color, the auxiliary color, and the decorative color, that is, the V value: V1= (v1r1+...+v n r n ) / R1; <h2 style=";text-align:left;direction:ltr">V2= (v<h2 style=";text-align:left;direction:ltr"> n+1 <h2 style=";text-align:left;direction:ltr"> r<h2 style=";text-align:left;direction:ltr"> n+1 <h2 style=";text-align:left;direction:ltr"> +...+v<h2 style=";text-align:left;direction:ltr"> m <h2 style=";text-align:left;direction:ltr"> r<h2 style=";text-align:left;direction:ltr"> m <h2 style=";text-align:left;direction:ltr"> ) / R2; V3= (v m+1 r m+1 +...+v k r k ) / R3; Among them, V1, V2, and V3 are the brightness values of the main color, auxiliary color, and decorative color respectively; v represents the brightness value of the color, and v i is the area ratio r i The brightness value of the corresponding color.
2. The method for adjusting indoor color visual atmosphere based on outdoor environment according to claim 1, characterized in that: In step S4, the conversion rule of hue H is as follows: the value range of hue H is 0°-360°, and the interval is divided into intervals in units of 30°, and each interval corresponds to a fixed hue, wherein [0°, 30°) is red, [30°, 60°) is orange-red, [60°, 90°) is yellow, [90°, 120°) is yellow-green, [120°, 150°) is green, [150°, 180°) is cyan, [180°, 210°) is cyan, [210°, 240°) is blue-green, [240°, 270°) is blue, [270°, 300°) is blue-purple, [300°, 330°) is purple, and [330°, 360°) is red-purple.
3. The method for adjusting indoor color visual atmosphere based on outdoor environment according to claim 1, characterized in that: In step S4, the conversion rule of saturation S is: the value range of saturation S is 0%-100%, and the saturation is divided into 6 levels, each level corresponds to a fixed saturation value, among which the corresponding saturation value in the range of [0%, 38%) is 30%, the corresponding saturation value in the range of [38%, 46%) is 38%, the corresponding saturation value in the range of [46%, 54%) is 46%, the corresponding saturation value in the range of [54%, 62%) is 54%, the corresponding saturation value in the range of [62%, 70%) is 62%, and the corresponding saturation value in the range of [70%, 100%) is 70%.
4. The method for adjusting indoor color visual atmosphere based on outdoor environment according to claim 1, characterized in that: In step S4, the conversion rule of brightness V is: the value range of brightness V is 0%-100%, and the brightness is divided into 6 levels, each level corresponds to a fixed brightness value, among which the corresponding brightness value in the range of [0%, 56%) is 50%, the corresponding brightness value in the range of [56%, 62%) is 56%, the corresponding brightness value in the range of [62%, 68%) is 62%, the corresponding brightness value in the range of [68%, 74%) is 68%, the corresponding brightness value in the range of [74%, 80%) is 74%, and the corresponding brightness value in the range of [80%, 100%) is 80%.
5. The method for adjusting indoor color visual atmosphere based on outdoor environment according to claim 1, characterized in that: In step S5, the converted main color HSV attribute value is used to control the indoor main light and wall color, the converted auxiliary color HSV attribute value is used to control the indoor auxiliary light, and the converted decorative color HSV attribute value is used to control the indoor decorative light.
6. A method for adjusting indoor color visual atmosphere based on outdoor environment according to claim 1 or 5, characterized in that: Indoor lighting and wall colors are changed using electrochromic paint, and color adjustment is achieved by controlling the electric field or voltage.
7. The method for adjusting indoor color visual atmosphere based on outdoor environment according to claim 1, characterized in that: In step S2, the collected image is processed and converted into a png image format; the processed image is analyzed for color using Colorimpact software.
8. The method for adjusting indoor color visual atmosphere based on outdoor environment according to claim 1, characterized in that: The following steps are also included: S6, start the timer to determine whether the next control time has arrived. If so, re-collect the outdoor environment image and update the lighting control strategy in accordance with steps S1-S5; otherwise, maintain the original lighting control strategy and do not update the lighting control strategy.
9. An indoor color visual atmosphere adjustment system based on outdoor environment, characterized in that: A method for adjusting indoor color visual atmosphere based on an outdoor environment applicable to any one of claims 1 to 8 above, comprising: a panoramic camera device, a data processing unit, and a lighting control unit; The panoramic camera device is used to capture panoramic images of the outdoor environment; The data processing unit is used to process and analyze the collected images, determine the main color, auxiliary color, and embellishment color of the image, and calculate and convert the HSV attribute value of each color; The light control unit is used to identify the converted HSV attribute values of each hue and control the indoor light based on the converted HSV attribute values of each hue.
Citation Information
Patent Citations
Intelligent lamp regulation and control method based on indoor and outdoor temperature analysis
CN107172786A
Illumination environment dynamic adjustment method, device and system for myopic children
CN116669262A