Intelligent lighting control system, method and storage medium based on environmental atmosphere adjustment
The coefficients generated by the emotional and environmental analysis units are used to adjust the lighting mode, which solves the problem of insufficient intelligence in environmental atmosphere and mood analysis of existing intelligent lighting systems, and achieves more accurate and comfortable lighting control.
Patent Information
- Application Number
- CN202410396781.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-03
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-04-03
AI Technical Summary
The existing intelligent lighting system is low in environmental atmosphere and emotion analysis, and cannot accurately identify the emotional state of the family environment and family members, affecting the accuracy of lighting control.
The emotion analysis unit, environmental analysis unit and atmosphere control unit are used to conduct detailed analysis of the family environment and member emotions through a variety of sensors and computer software models, and generate regional environmental coefficients and family mood coefficients, thereby adjusting the lighting mode.
It realizes accurate identification and evaluation of the family environment and member emotions, improves the personalization and comfort of lighting control, and improves the quality of family life.
Smart Images

Figure CN118338492B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of home intelligent lighting control, and in particular to an intelligent lighting control system, method and storage medium based on environmental atmosphere adjustment. Background Art
[0002] The intelligent lighting control system for environmental atmosphere adjustment uses sensor technology to monitor home environmental parameters in real time, and combines with intelligent lighting equipment to achieve automatic adjustment of light brightness, color temperature, etc. In addition, using human-computer interaction technology, users can remotely control and personalize the lighting system through mobile phone applications or voice commands, bringing a more comfortable and intelligent experience to the living environment. Traditional intelligent lighting systems may be limited by the accuracy and coverage of sensors, resulting in poor results in the system in identifying changes in the home environment or user behavior; in addition, the existing lighting control technology has a low degree of intelligence and is not mature enough in environmental atmosphere and emotion analysis. It cannot accurately identify the environmental atmosphere and the emotional state of family members, affecting the accuracy of lighting control. Summary of the invention
[0003] The purpose of the present invention is to solve the problems that the existing lighting control has a low level of intelligence, is not mature enough in environmental atmosphere and emotion analysis, cannot accurately identify the environmental atmosphere and the emotional state of family members, and affects the accuracy of lighting control, and proposes an intelligent lighting control system, method and storage medium based on environmental atmosphere adjustment.
[0004] The purpose of the present invention can be achieved through the following technical solutions:
[0005] In a first aspect, the present invention provides an intelligent lighting control system, method and storage medium based on environmental atmosphere adjustment, including an emotion analysis unit, an environmental analysis unit and an atmosphere control unit;
[0006] The environmental analysis unit is used to analyze environmental data, specifically: divide the home layout into several areas, and perform environmental analysis on the environmental data of each area; the electronic nose detects and analyzes the environmental odor through a chemical sensor array; obtains the component name and component content of the odor sample, and then matches the component name and component content of the odor sample with several component names and preset contents corresponding to each electrical interval to obtain the corresponding electrical value;
[0007] Analyze the environmental sound, obtain the sound frequency curve, and identify its periodicity. If there is periodicity, analyze it, divide the environmental sound into the corresponding environmental object sound, determine its position and source direction, and assign the sound value according to the settings; input the numerical values corresponding to the environmental temperature, electrical value, sound value, brightness, and sound decibel into the computer software model to output the numerical result and use it as the regional environmental coefficient;
[0008] The emotion analysis unit is used to analyze the voices, facial expressions and behaviors of family members to obtain speech coefficients, facial expression values and posture values of family members; the speech coefficients, facial expression values and posture values are multiplied by corresponding preset weight factors respectively and then added to obtain the family emotion coefficient;
[0009] The atmosphere control unit compares the family mood coefficient and the regional environment coefficient with the corresponding threshold value to obtain the corresponding lighting mode and execute the corresponding lighting mode.
[0010] As a preferred embodiment of the present invention, if periodicity exists, the specific process of analyzing it is as follows:
[0011] The rate of change of the vibration frequency in the interval time is identified through the sound frequency curve. If the ambient sound has a period, the period of the corresponding change rate of the vibration frequency is obtained, and the periodic vibration frequency and periodic time of the ambient sound are counted. The periodic vibration frequency and periodic time are matched with the periodic vibration frequency and periodic time of the preset ambient object respectively. If the two are consistent, the ambient sound is divided into the corresponding ambient object sound.
[0012] As a preferred embodiment of the present invention, the specific process of inputting the numerical results into the computer software model is as follows:
[0013] The numerical values corresponding to the ambient temperature, electrical value, sound value, brightness, and sound decibel are input into the computer software model, and the numerical values are converted according to a certain ratio to obtain the corresponding length; the bottom circle is constructed with the length of the electrical value as the radius, and the height of the bottom circle is constructed with the length of the sound value, and the top circle is constructed with the sum of the lengths corresponding to the sound decibel and the brightness as the radius, and a frustum is constructed with the bottom circle, the height, and the top circle. The center of the top circle is selected as the starting point to construct a straight line with a length equal to the length corresponding to the ambient temperature and perpendicular to the top circle, and a cone is constructed with the straight line and the top circle. The volume of the frustum and cone combination is extracted and the value of the volume is marked as the regional environmental coefficient.
[0014] As a preferred embodiment of the present invention, the specific process of analyzing the voices of family members by the emotion analysis unit is as follows: identifying the timbre of the voices of family members and matching them with preset timbre, determining the corresponding family members, and marking them as human voices; identifying the speech content, sound decibels and speaking duration of human voices, matching preset words, counting the number of words and the number of times the preset words appear; calculating the weight factors of the over-decibel duration and the under-decibel duration according to the preset normal speaking decibel, and then calculating the emotion decibel value; analyzing the time used for a sentence, calculating the speaking speed, comparing it with the preset speed threshold, and determining the emotion speech speed value; converting the number of words spoken, the number of words, the emotion decibel value and the fixed value of the speaking speed into the y-axis length in proportion, and drawing a line graph, and calculating the shaded area enclosed in the graph as the family member speaking coefficient.
[0015] As a preferred embodiment of the present invention, the specific process of analyzing the facial expressions of family members is as follows: capturing the facial expressions of family members, monitoring the key facial features, comparing them according to the preset expression features, and determining the corresponding expression type; numerically processing the degree of mouth opening and closing and the degree of eye closure; and finally obtaining an evaluation of the facial expression to form a facial expression value;
[0016] As a preferred embodiment of the present invention, the behavior of family members is analyzed, specifically: body postures are distinguished including standing, sitting and lying; limbs are captured by performing limb recognition on the collected videos or photos, and limb features are marked to obtain a number of limb marking points corresponding to the limb features, the limb marking points and the preset body posture marking points are converted to the same size ratio, and then displayed on the same punctuation diagram; the same body feature marking point among the limb marking points and the preset marking points is used as the origin coordinate, each preset marking point coordinate is set to draw a circle with a radius of a certain length value to obtain a judgment area of the preset marking point, the limb marking point is compared with the judgment area of the preset marking point at the corresponding position, and if the limb marking point is within the judgment area, the limb marking point is moved to the same position as the preset marking point. The point mark is a valid mark point, and the proportion of the number of valid mark points to all limb mark points is counted. If the proportion is greater than or equal to 90%, it is a certain body posture. When the limb mark point exists in the preset mark point coordinate area but does not reach 90%, it is not a certain body posture; connect all the valid mark points, draw straight lines on both ends of the line, and calculate the length of the straight line. If the length is less than the preset length threshold, the body posture is determined to be sitting. If it is greater than or equal to the preset length threshold, calculate the angle between the straight line and the horizontal direction. If the angle is less than or equal to 45 degrees, the body posture is determined to be lying. If the angle is greater than 45 degrees, the body posture is determined to be standing; assign posture value 1, posture value 2 and posture value 3 to the body postures of standing, sitting and lying respectively, and posture value 1, posture value 2 and posture value 3 are collectively referred to as posture values.
[0017] As a preferred embodiment of the present invention, it also includes a data acquisition unit, which is used to collect family information, including environmental data and emotional data of family members; the environmental data includes environmental images, environmental sounds, environmental temperature, environmental brightness and environmental odors; the emotional data of family members include the speech content, facial expressions and body posture data of family members; the speech content data includes the number of words in the content and the decibel of the speech; the facial expression data includes mouth data, eye data and eyebrow data; the body posture data includes posture body characteristics and action body characteristics.
[0018] As a preferred embodiment of the present invention, the lighting modes include mode one, mode two, mode three, mode four, mode five and mode six; mode one is for controlling the lighting brightness of the lighting equipment, mode two is for controlling the lighting equipment to perform monochrome lighting, mode three is for controlling the lighting equipment to perform gradient color lighting, mode four is for controlling the lighting equipment to perform jump color lighting, mode five is for controlling the lighting equipment to perform lighting according to the rhythm of music, and mode six is for controlling the lighting equipment to perform scene lighting.
[0019] In a second aspect, the present invention provides an intelligent lighting control method based on environmental atmosphere adjustment, the method comprising:
[0020] Step 1: Collect environmental data and family member emotional data;
[0021] Step 2: Analyze environmental data and output regional environmental coefficients;
[0022] Step 3: Analyze the emotional data of family members and output the family emotional coefficient;
[0023] Step 4: Determine the family emotion coefficient and the regional environment coefficient to obtain the corresponding lighting mode;
[0024] Step 5: Control the corresponding lighting equipment to perform lighting based on the lighting mode.
[0025] In a third aspect, the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor implements the above-mentioned intelligent lighting control method based on environmental atmosphere adjustment when executing the computer program.
[0026] In a fourth aspect, the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-mentioned intelligent lighting control method based on environmental atmosphere adjustment.
[0027] The beneficial effects of the present invention are:
[0028] 1. The present invention analyzes environmental data through an environmental analysis unit, including parameters such as temperature, sound, brightness and smell, divides the collected data into areas according to the home layout, and designs a variety of sensor devices for data collection; classifies and analyzes odors in detail, and identifies different odor types through chemical composition detection and electrical signal conversion; analyzes the vibration frequency and periodicity of sounds, and determines the location of the sound source in combination with a camera device; outputs the environmental coefficient of each area, providing accurate data support for the intelligent lighting system, thereby achieving a more personalized and comfortable environmental atmosphere adjustment.
[0029] 2. The present invention realizes intelligent recognition and evaluation of family emotions through detailed analysis of the voices, facial expressions and behaviors of family members by the emotion analysis unit; through sound analysis, the system can recognize the voices of different family members, and calculate the speaking coefficient as an important indicator for emotion evaluation based on factors such as speaking content, volume and speed; for facial expressions, the system uses cameras to capture the facial expression features of family members, including smiles, anger, etc., and calculates the expression coefficient by comparing them with preset expressions to further measure the emotional state; and the analysis of behavior identifies the behavior of family members by monitoring body postures and movements, thereby comprehensively evaluating the family emotion coefficient; it can help the intelligent lighting control system to adjust the atmosphere more accurately and improve the quality of life and comfort of family members. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0031] Figure 1 It is a principle block diagram of the present invention;
[0032] Figure 2 is a sound frequency curve diagram of the present invention;
[0033] Figure 3 It is the family member speech coefficient diagram of the present invention;
[0034] Figure 4 It is a diagram of the method steps of the present invention. DETAILED DESCRIPTION
[0035] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than 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.
[0036] Example 1
[0037] See also Figure 1 As shown, an intelligent lighting control system, method and storage medium based on environmental atmosphere adjustment include a data acquisition unit, an emotion analysis unit, an environmental analysis unit and an atmosphere control unit;
[0038] The data collection unit is used to obtain the authorization of family members and collect data from the authorized family, including family information, where the family information includes environmental data and emotional data of family members; environmental data is collected through cameras, microphones, temperature sensors, ambient light sensors and odor assessment equipment, and the environmental data includes environmental images, ambient sounds, ambient temperature, ambient brightness and ambient odors; the speech content, facial expressions and body posture data of family members are collected through cameras and microphones; the speech content data includes the number of words in the content and the decibel of the speech; the facial expression data includes mouth data, eye data and eyebrow data; the body posture data is posture body characteristics.
[0039] The environmental analysis unit is used to analyze environmental data. The specific analysis process is as follows:
[0040] The household layout is divided into a number of areas, and the areas are not limited to area one, area two, ..., area ten; the environmental data is divided according to the household layout to obtain the environmental data corresponding to each area, and the environmental analysis is performed on the environmental data of each area;
[0041] The electronic nose detects the components of environmental odor samples through a chemical sensor array. When the sample gas passes through the sensor array, various odor molecules will be adsorbed or chemically reacted with the surface of the sensor. The device interacts with the odor molecules, causing the resistance, voltage or other electrical characteristics of the sensor to change, generating an electrical signal. The sensor array then collects the electrical signal and sends it to the pattern recognition system for analysis. The pattern recognition system identifies the patterns or features of different odors and compares them with a preset stored odor database to obtain the component name and component content.
[0042] Four electrical intervals are preset (electrical interval one, electrical interval two, electrical interval three and electrical interval four), each electrical interval corresponds to a number of component names and preset contents; the component names and component contents of the odor sample are matched with the several component names and preset contents corresponding to each electrical interval; if the several component names in the electrical interval include all the component names corresponding to the odor sample, and the component contents corresponding to the component names are greater than or equal to the corresponding preset contents, the two are matched successfully; when the match is successful in electrical interval one, the value is assigned to electrical value one; when the match is successful in electrical interval two, the value is assigned to electrical value two; when the match is successful in electrical interval three, the value is assigned to electrical value three; when the match is successful in electrical interval four, the value is assigned to electrical value four;
[0043] See also Figure 2As shown, the environmental sound is analyzed, and the vibration frequency of the environmental sound is displayed on the interval time graph to obtain a sound frequency curve graph; the change rate of the vibration frequency in the interval time is identified through the sound frequency curve graph, and if the environmental sound has a period, the period of the change rate corresponding to the vibration frequency is obtained, and the periodic vibration frequency and periodic time of the environmental sound are counted, and the periodic vibration frequency and periodic time are matched with the periodic vibration frequency and periodic time of the preset environmental object respectively. If the two are consistent, the environmental sound is divided into the corresponding environmental object sound; the environmental object sound includes the corresponding sound of furniture, equipment, kitchen, music, singing and animals;
[0044] The location of environmental objects and the direction of sound sources are collected, and the sounds of furniture and equipment, kitchen sounds, music, singing and animal sounds are divided into sound interval one, sound interval two, sound interval three and sound interval four respectively; if the sound of environmental objects is in sound interval one, it is assigned a sound value of one; if the sound of environmental objects is in sound interval two, it is assigned a sound value of two; if the sound of environmental objects is in sound interval three, it is assigned a sound value of three; if the collected sound is in sound interval four, it is assigned a sound value of four;
[0045] If the ambient sound does not have a period, the ambient sound is stored, and the ambient sound is analyzed to obtain the vibration frequency and the location of the sound source. The image of the object corresponding to the location of the sound source is collected by the camera corresponding to the location of the sound source, and then the object features are analyzed based on the object image, and the object features are compared with the preset object features, and the feature overlap rate between the two is calculated. When the feature overlap rate is greater than or equal to the preset overlap threshold, the object corresponding to the preset object feature is marked as the object corresponding to the object feature; when the feature overlap rate is less than the preset overlap threshold, the object image and the ambient sound are stored and sent to family members, who classify the source of the ambient sound based on the object image and the ambient sound, where the classification setting options include conversation sound, family activity sound and natural sound; if it is set to conversation sound, it is assigned a sound value of five; when it is set to family activity sound, it is assigned a sound value of six; when it is set to natural sound, it is assigned a sound value of seven;
[0046] Extract the numerical values corresponding to the ambient temperature, electrical value, sound value, brightness, and sound decibel, where the electrical value is electrical value 1, electrical value 2, electrical value 3, or electrical value 4; the sound value is sound value 1, sound value 2, sound value 3, sound value 4, sound value 5, sound value 6, or sound value 7;
[0047] The numerical values corresponding to the ambient temperature, electrical value, sound value, brightness, and sound decibel are input into the computer software model, and the numerical values are converted according to a certain ratio to obtain the corresponding length; the bottom circle is constructed with the length of the electrical value as the radius, and the height of the bottom circle is constructed with the length of the sound value, and the top circle is constructed with the sum of the lengths corresponding to the sound decibel and the brightness as the radius, and a frustum is constructed with the bottom circle, the height, and the top circle. The center of the top circle is selected as the starting point to construct a straight line with a length equal to the length corresponding to the ambient temperature and perpendicular to the top circle, and a cone is constructed with the straight line and the top circle. The volume of the frustum and cone combination is extracted and the value of the volume is marked as the regional environmental coefficient.
[0048] The emotion analysis unit is used to analyze the voices, facial expressions and behaviors of family members. The specific process is as follows:
[0049] Perform timbre recognition on the voice of the family member, and match it with the preset timbre of the family member to obtain the family member corresponding to the voice, and mark the voice as the human voice of the corresponding family member, recognize the speech content, speech sound decibel and time taken to say a sentence of the human voice to obtain the speech content, sound decibel and time taken to say a sentence, match the speech content with the preset words, and count the number of words in the speech content and the number of times the preset words appear in the speech content;
[0050] The normal speaking decibel is preset, and the speaking duration of the speaking sound decibel exceeding or falling below the normal speaking decibel is counted to obtain the over-decibel duration and the under-decibel duration, and the weight factors corresponding to the over-decibel duration and the under-decibel duration are preset, and the values of the over-decibel duration and the under-decibel duration are extracted, and the over-decibel duration and the under-decibel duration are weighted and calculated to obtain the emotional decibel value;
[0051] Analyze the time taken for a sentence, compare the number of words in a sentence with the time taken for the previous sentence to obtain the speaking speed, and compare it with the preset speaking speed threshold. If the speaking speed is less than the preset speaking speed threshold, assign the emotional speaking speed value to the preset speaking speed fixed value of one, otherwise, assign the emotional speaking speed value to the preset speaking speed fixed value of two;
[0052] See also Figure 3 As shown, the number of words, the number of words, the emotional decibel value and the speaking speed are fixed, and their numerical values are converted according to a certain ratio to obtain the corresponding y-axis length and imported into the line chart to obtain the family member speech coefficient diagram, such as Figure 3 As shown, the shaded area in the figure is calculated by a computer, and the shaded area value is extracted as the speaking coefficient of the family members;
[0053] Analyze the facial expressions of family members: Capture the facial expressions of family members through video equipment, including but not limited to smile, laugh, anger, surprise, frown and confusion; detect key features of the face, including eyes, nose, mouth, etc. Once the key features are detected, track the face of the family member;
[0054] The mouth is monitored, the degree of opening and closing and shape of the mouth are identified, the degree of opening and closing of the mouth is compared with the preset degree of opening and closing, and a mouth opening and closing value is assigned. The value range is [0-1], and the assignment rule is: a closed mouth is assigned a value of 0, a fully open mouth is assigned a value of 1, and a half-open mouth is assigned a value of 0.5;
[0055] The eyes are then monitored to identify the upper and lower eyelids; when the eyes are open and closed normally, the highest point of the upper eyelid is marked as point a, and the lowest point of the lower eyelid is marked as point b, and the distance between point a and point b is obtained, and the distance between points a and b is used as the closure degree value; the distance between points a and b belongs to the interval [0-1], and is assigned a value of 0 when the eyes are closed, 1 when the eyes are opened as wide as possible, and 0.7 when the eyes are normal;
[0056] Finally, the eyebrows are monitored to obtain the position and shape of the eyebrows, which are compared with the position and shape of the eyebrows in the preset state, the center points of the two eyebrow shapes are overlapped, the area of the two eyebrow shapes that do not overlap is calculated and marked as the eyebrow change amount 1, the preset expression includes several preset shapes, the eyebrow shape is similar to several preset shapes, the preset shape with the smallest similarity is overlapped with the center point of the eyebrow shape, the area of the two eyebrow shapes that do not overlap is calculated and marked as the eyebrow change amount 2;
[0057] When the mouth opening and closing value is in the interval [0-0.2], the eye closure degree value is in the interval [0-0.2], and the ratio of the change amount one to the upper change amount two belongs to the preset expression interval one, the expression is smiling; when the mouth opening and closing value is in the interval [0.7-1], the eye closure degree value is in the interval [0.2-0.6], and the ratio of the change amount one to the upper change amount two belongs to the preset expression interval two, the expression is laughing; when the mouth opening and closing value is in the interval [0-0.1], the eye closure degree value is in the interval [0.2-0.4], and the ratio of the change amount one to the upper change amount two belongs to the preset expression interval three, the expression is angry; when the mouth opening and closing value is in the interval [0.8-1], the eye closure degree value is in the interval [0.8-1], and the ratio of the change amount one to the upper change amount two belongs to the preset expression interval three, the expression is angry. When the value of the mouth opening and closing is within the preset expression range of four, the expression is surprise; when the mouth opening and closing value is within the range of [0-0.1], the eye closure degree value is within the range of [0.2-0.4], and the change amount one is within the preset expression range of five compared with the change amount two, the expression is frowning; when the mouth opening and closing value is within the range of [0.2-0.4], the eye closure degree value is within the range of [0.2-0.6], and the change amount one is within the preset expression range of six compared with the change amount two, the expression is confused; assign values to smile, laugh, anger, surprise, frown and confusion, which are expression value one, expression value two, expression value three, expression value four, expression value five and expression value six respectively; expression value one, expression value two, expression value three, expression value four, expression value five and expression value six are collectively referred to as facial expression values;
[0058] Analyze the behavior of family members, specifically:
[0059] The body posture is analyzed to distinguish the body postures including standing, sitting and lying; the limbs are captured by performing limb recognition on the collected videos or photos, and the limb features are marked to obtain a number of limb marking points corresponding to the limb features. The limb marking points and the preset body posture marking points are converted to the same size ratio and then displayed on the same punctuation diagram; the same body feature marking point among the limb marking points and the preset marking points is used as the origin coordinate, and each preset marking point coordinate is set to draw a circle with a radius of a certain length value to obtain a judgment area of the preset marking point, and the limb marking point is compared with the judgment area of the preset marking point at the corresponding position. If the limb marking point is within the judgment area, the limb marking point is marked as a valid marking point, and the whole Calculate the proportion of the number of valid marking points to all limb marking points. If the proportion is greater than or equal to 90%, it is a certain body posture. When the limb marking points exist in the preset marking point coordinate area but do not reach 90%, it is not a certain body posture. Connect all the valid marking points, make straight lines at both ends of the connecting line, and calculate the length of the straight line. If the length is less than the preset length threshold, the body posture is determined to be sitting. If it is greater than or equal to the preset length threshold, calculate the angle between the straight line and the horizontal direction. If the angle is less than or equal to 45 degrees, the body posture is determined to be lying. If the angle is greater than 45 degrees, the body posture is determined to be standing. Assign posture value 1, posture value 2 and posture value 3 to the body postures of standing, sitting and lying, respectively. Posture value 1, posture value 2 and posture value 3 are collectively referred to as posture value;
[0060] The family emotion coefficient is obtained by analyzing the voices, facial expressions and behavioral actions of family members and then multiplying the speech coefficient, facial expression value and posture value by the corresponding preset weight factors and adding them together.
[0061] The atmosphere control unit is used to control the lighting mode, and the specific process is: obtaining the family emotion coefficient and the regional environment coefficient; comparing the family emotion coefficient and the regional environment coefficient with the corresponding family emotion threshold and regional environment threshold respectively;
[0062] If the family emotion coefficient is greater than the family emotion threshold 1, and the regional environment coefficient is greater than the regional environment threshold 1, mode 1 is executed; if the family emotion coefficient is greater than the family emotion threshold 1, and the regional environment coefficient is less than the regional environment threshold 1, mode 2 is executed; if the family emotion coefficient is less than the family emotion threshold 1, and the regional environment coefficient is greater than the regional environment threshold 1, mode 3 is executed; if the family emotion coefficient is less than the family emotion threshold 1, and the regional environment coefficient is less than the regional environment threshold 1, mode 4 is executed; if the family emotion coefficient is greater than the family emotion threshold 2, and the regional environment coefficient is greater than the regional environment threshold 2, mode 5 is executed; if the family emotion coefficient is less than the family emotion threshold 2, and the regional environment coefficient is less than the regional environment threshold 2, mode 6 is executed; mode 1 controls the lighting brightness of the lighting equipment, mode 2 controls the lighting equipment for monochrome lighting, mode 3 controls the lighting equipment for gradient color lighting, mode 4 controls the lighting equipment for jump color lighting, mode 5 controls the lighting equipment to illuminate according to the rhythm of music, and mode 6 controls the lighting equipment for scene lighting.
[0063] Example 2
[0064] See also Figure 4 As shown, the present invention provides an intelligent lighting control method based on environmental atmosphere adjustment, the method comprising:
[0065] S11: Collect environmental data and family member emotional data;
[0066] S12: Analyze environmental data and output regional environmental coefficients;
[0067] S13: Analyze the emotional data of family members and output the family emotional coefficient;
[0068] S14: determining the family emotion coefficient and the regional environment coefficient to obtain a corresponding lighting mode;
[0069] S15: Control the corresponding lighting device to perform lighting based on the lighting mode.
[0070] Example 3
[0071] The present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program running on the processor, and the processor implements the method described in Example 2 when executing the computer program.
[0072] Example 4
[0073] The present invention provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in Example 2 is implemented.
[0074] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.
[0075] The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. Through the description of the above implementation modes, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation mode. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, an optical disk), including a number of instructions to enable a terminal device (which can be a mobile phone, a computer, a server, a device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0076] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. An intelligent lighting control system based on environmental atmosphere adjustment, comprising a data acquisition unit, an emotion analysis unit, an environmental analysis unit and an atmosphere control unit; characterized in that: The data collection unit is used to collect family information, which includes environmental data and family member emotion data; environmental data includes environmental images, environmental sounds, environmental temperature, environmental brightness and environmental smell; family member emotion data includes speech content, facial expression and body posture data of family members; speech content data includes the number of words in the content and the decibel of speech; facial expression data includes mouth data, eye data and eyebrow data; body posture data includes posture body features and action body features; The environmental analysis unit is used to analyze environmental data to obtain corresponding electrical values, specifically: divide the home layout into several areas, and perform environmental analysis on the environmental data of each area; the electronic nose detects and analyzes the environmental odor through a chemical sensor array to obtain the component name and component content of the odor sample, and then matches the component name and component content of the odor sample with several component names and preset contents corresponding to each electrical interval to obtain the corresponding electrical value; analyze the environmental sound to obtain a sound frequency curve graph, and identify its periodicity. If there is periodicity, analyze it, obtain the period of the vibration frequency corresponding to the change rate, and count the periodic vibration frequency and period time of the environmental sound, match the periodic vibration frequency and period time with the sound of the periodic vibration frequency and period time of the preset environmental object respectively, if the two are consistent, divide the environmental sound into the corresponding environmental object sound, and determine its position and source direction, and assign the sound value according to the setting; input the numerical values corresponding to the environmental temperature, electrical value, sound value, brightness, and sound decibel into the computer software model for processing, and convert its numerical value according to a certain ratio to obtain the corresponding length; The bottom circle is constructed with the length of the electrical value as the radius, and the height of the bottom circle is constructed with the length of the sound value. The top circle is constructed with the sum of the lengths corresponding to the sound decibel and brightness as the radius. A truncated cone is constructed with the bottom circle, the height and the top circle. The center of the top circle is selected as the starting point to construct a straight line with a length equal to the length corresponding to the ambient temperature and perpendicular to the top circle. A cone is constructed with the straight line and the top circle. The volume of the combination of the truncated cone and the cone is extracted and the value of the volume is marked as the regional environmental coefficient. The emotion analysis unit is used to analyze the voices, facial expressions and behaviors of family members; Analyze the voices of family members: identify the voices of family members and match them with preset voices, determine the corresponding family members, and mark them as human voices; identify the speech content, sound decibels, and speaking duration of human voices, match preset words, and count the number of words and the number of times the preset words appear; According to the preset normal speaking decibel, the weight factors of the over-decibel duration and the under-decibel duration are calculated, and then the emotional decibel value is calculated; the time used for a sentence is analyzed, the speaking speed is calculated, and compared with the preset speed threshold to determine the fixed value of the speaking speed; the number of words spoken, the number of words, the emotional decibel value and the fixed value of the speaking speed are proportionally converted into the length of the y-axis, and a line graph is drawn, and the value corresponding to the shaded area in the line graph is calculated as the speaking coefficient of the family members; Analyze the facial expressions of family members: Capture the facial expressions of family members and monitor key facial features; The mouth is monitored, the degree of opening and closing and shape of the mouth are identified, the degree of opening and closing of the mouth is compared with the preset degree of opening and closing, and a mouth opening and closing value is assigned. The value range is [0-1], and the assignment rule is: a closed mouth is assigned a value of 0, a fully open mouth is assigned a value of 1, and a half-open mouth is assigned a value of 0.5; Monitor the eyes and identify the upper and lower eyelids; when the eyes are open and closed normally, mark the highest point of the upper eyelid as point a, and the lowest point of the lower eyelid as point b, obtain the distance between point a and point b, and use the distance between points a and b as the closure degree value; the distance between points a and b belongs to the interval [0-1], with a value of 0 when the eyes are closed, 1 when the eyes are opened as wide as possible, and 0.7 when the eyes are normal; The eyebrow position and shape are obtained by monitoring the eyebrows, and the eyebrow position and shape are compared with the eyebrow position and shape in a preset state, the center points of the two eyebrow shapes are overlapped, and the area where the two eyebrow shapes do not overlap is calculated and marked as the eyebrow change amount 1; the eyebrow shape is similar to several preset shapes, and the preset shape with the smallest similarity is overlapped with the center point of the eyebrow shape, and the area where the two eyebrow shapes do not overlap is calculated and marked as the eyebrow change amount 2; When the mouth opening value is in the interval [0-0.2], the eye closure value is in the interval [0-0.2], and the ratio of the change amount one to the change amount two belongs to the preset expression interval one, the expression is smiling; when the mouth opening value is in the interval [0.7-1], the eye closure value is in the interval [0.2-0.6], and the ratio of the change amount one to the change amount two belongs to the preset expression interval two, the expression is laughing; when the mouth opening value is in the interval [0-0.1], the eye closure value is in the interval [0.2-0.4], and the ratio of the change amount one to the change amount two belongs to the preset expression interval three, the expression is angry; when the mouth opening value is in the interval [0.8-1], the eye closure value is in the interval [ 0.8-1], when the ratio of the change amount one to the change amount two belongs to the preset expression interval four, the expression is surprise; when the mouth opening and closing value is in the interval [0-0.1], the eye closure degree value is in the interval [0.2-0.4], and the change amount one to the change amount two belongs to the preset expression interval five, the expression is frowning; when the mouth opening and closing value is in the interval [0.2-0.4], the eye closure degree value is in the interval [0.2-0.6], and the change amount one to the change amount two belongs to the preset expression interval six, the expression is confused; assign smile, laugh, anger, surprise, frown and confusion as expression value one, expression value two, expression value three, expression value four, expression value five and expression value six respectively; Expression value one, expression value two, expression value three, expression value four, expression value five and expression value six are collectively referred to as facial expression values; Analyze the behavior of family members: distinguish body postures into standing, sitting and lying; perform limb recognition and limb capture on collected videos or photos, and mark limb features to obtain several limb markers corresponding to the limb features. The limb markers and preset markers are converted to the same size ratio and then displayed on the same punctuation chart; use the limb markers and the preset markers as the origin coordinates, set the coordinates of each preset marker point to draw a circle with a radius of a preset length value to obtain the judgment area of the preset marker, compare the limb marker with the judgment area of the preset marker at the corresponding position, and if the limb marker is within the judgment area, mark the limb marker as a valid marker, and count the number of limb markers. The number of valid markers accounts for the proportion of all limb markers. If the proportion is greater than or equal to 90%, it is a certain body posture. When the number of limb markers in the preset marker coordinate area does not reach 90%, it is not a certain body posture. Connect all valid markers, make straight lines at both ends of the line, and calculate the length of the straight line. If the length is less than the preset length threshold, the body posture is determined to be sitting. If it is greater than or equal to the preset length threshold, calculate the angle between the straight line and the horizontal direction. If the angle is less than or equal to 45 degrees, the body posture is determined to be lying. If the angle is greater than 45 degrees, the body posture is determined to be standing. Assign posture value 1, posture value 2 and posture value 3 to body postures of standing, sitting and lying, respectively. Posture value 1, posture value 2 and posture value 3 are collectively referred to as posture value. The family emotion coefficient is obtained by multiplying the speech coefficient, facial expression value and posture value by the corresponding preset weight factors and then adding them together; The atmosphere control unit compares the family mood coefficient and the regional environment coefficient with the corresponding threshold value to obtain a corresponding lighting mode and execute the corresponding lighting mode, the lighting modes include mode one, mode two, mode three, mode four, mode five and mode six; and mode one is to control the lighting brightness of the lighting equipment, mode two is to control the lighting equipment to perform monochrome lighting, mode three is to control the lighting equipment to perform gradient color lighting, mode four is to control the lighting equipment to perform jump color lighting, mode five is to control the lighting equipment to perform lighting according to the rhythm of music, and mode six is to control the lighting equipment to perform scene lighting.
2. An intelligent lighting control method based on ambient atmosphere adjustment, characterized in that Applied to the intelligent lighting control system based on environmental atmosphere adjustment as claimed in claim 1, the method comprises: Step 1: Collect environmental data and family member emotional data; Step 2: Analyze environmental data and output regional environmental coefficients; Step 3: Analyze the emotional data of family members and output the family emotional coefficient; Step 4: Determine the family emotion coefficient and the regional environment coefficient to obtain the corresponding lighting mode; Step 5: Control the corresponding lighting equipment to perform lighting based on the lighting mode.
3. An electronic device comprising a memory and a processor, wherein the memory stores a computer program running on the processor, wherein: When the processor executes the computer program, the intelligent lighting control method based on environmental atmosphere adjustment as claimed in claim 2 is implemented.
4. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the intelligent lighting control method based on environmental atmosphere adjustment as claimed in claim 2 is implemented.
Citation Information
Patent Citations
Control method and system of intelligent dimmable rhythm LED down lamp
CN116951375A
Intelligent light control system and method
WO2018129716A1