An indoor ecological environment adjustment system and method based on artificial intelligence
Through the indoor ecological environment adjustment system based on artificial intelligence, visual sensing and somatosensory recognition models are used to adjust indoor environmental parameters, solving the problem of existing equipment being difficult to meet personalized needs, and achieving precise comfort adjustment and environment for different individuals. adjust.
Patent Information
- Application Number
- CN202410216441.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-02-27
AI Technical Summary
Existing indoor ecological adjustment equipment such as smart air conditioners are difficult to meet the personalized needs of different individuals for indoor environment adjustment. The same environment may lead to differences in the feelings of different human bodies, making it difficult to achieve precise comfort adjustment.
An indoor ecological environment adjustment system based on artificial intelligence is used to collect infrared and visible light image data through visual sensing devices, identify the presence or absence of the human body, adjust the collection frequency, extract face data and input it into the pre-trained somatosensory recognition model, and according to the comfort level of the human body Type regulates indoor environmental parameters such as temperature, humidity and wind speed.
It realizes personalized indoor environment adjustment for different individuals, improves the comfort level of the indoor environment, meets the needs of individual differences, and improves adjustment accuracy and comfort.
Smart Images

Figure CN118009491B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of indoor ecological regulation, and in particular to an indoor ecological environment regulation system and method based on artificial intelligence. Background Art
[0002] As people's living standards improve, their requirements for indoor environmental comfort are getting higher and higher. Indoor temperature, humidity and air quality are important factors affecting indoor environmental comfort. These factors are usually affected by seasons, weather and environment and change frequently. In order to improve indoor comfort, people usually use indoor ecological adjustment equipment such as air conditioners and air purifiers to adjust the indoor environment. With the maturity and progress of indoor ecological adjustment technology, the functions of indoor ecological adjustment equipment are becoming more and more perfect and intelligent. Existing indoor ecological adjustment equipment such as smart air conditioners can already sense the number of people in the room, temperature, humidity and air quality to achieve automatic adjustment of the indoor environment. However, due to the differences in each person's physique, the same indoor environment may bring different comfort feelings to different individuals. For example, in terms of temperature, a change of only one degree Celsius may cause some people to feel cool while others feel hot. Similarly, there are obvious subjective differences in the impact of relative humidity and air circulation speed on individual comfort. Existing indoor ecological adjustment equipment such as smart air conditioners generally use pre-configured parameters or parameter tables for automatic adjustment, which often cannot meet the personalized needs of different individuals for indoor environmental adjustment. Summary of the invention
[0003] Based on the above problems, the present invention proposes an indoor ecological environment adjustment system and method based on artificial intelligence, which can realize automatic adjustment of the indoor environment to meet the personalized needs of different individuals.
[0004] In view of this, the first aspect of the present invention proposes an indoor ecological environment adjustment system based on artificial intelligence, comprising a visual sensing device for collecting indoor visual image data, an adjustment device for adjusting indoor environmental parameters, a control device for sending indoor environmental parameter adjustment instructions, and a processing device for performing data processing, wherein the processing device is configured as follows:
[0005] Collecting first indoor visual image data at a first acquisition frequency by an image sensor device, wherein the first visual image data includes infrared image data and / or visible light image data;
[0006] Determining whether there is a human body in the room based on the first indoor visual image data;
[0007] When a human body is present in the room, adjusting the indoor visual image data acquisition frequency of the image sensor device to a second acquisition frequency to acquire second indoor visual image data, wherein the second visual image data includes infrared image data and / or visible light image data, and the second acquisition frequency is greater than the first acquisition frequency;
[0008] Extracting face data from the second indoor visual image data;
[0009] Inputting the face data into a somatosensory recognition model to identify the somatosensory state type of the corresponding human body, wherein the somatosensory recognition model is a pre-trained artificial intelligence model that recognizes human comfort based on the facial expression features of the face data;
[0010] The indoor ecological environment adjustment is performed according to the body sensing state type.
[0011] The second aspect of the present invention proposes an indoor ecological environment adjustment method based on artificial intelligence, comprising:
[0012] Collecting first indoor visual image data at a first acquisition frequency by an image sensor device, wherein the first visual image data includes infrared image data and / or visible light image data;
[0013] Determining whether there is a human body in the room based on the first indoor visual image data;
[0014] When a human body is present in the room, adjusting the indoor visual image data acquisition frequency of the image sensor device to a second acquisition frequency to acquire second indoor visual image data, wherein the second visual image data includes infrared image data and / or visible light image data, and the second acquisition frequency is greater than the first acquisition frequency;
[0015] Extracting face data from the second indoor visual image data;
[0016] Inputting the face data into a somatosensory recognition model to identify the somatosensory state type of the corresponding human body, wherein the somatosensory recognition model is a pre-trained artificial intelligence model that recognizes human comfort based on the facial expression features of the face data;
[0017] The indoor ecological environment adjustment is performed according to the body sensing state type.
[0018] Preferably, the first visual image data includes infrared image data and visible light image data, and the step of determining whether there is a human body in the room based on the first indoor visual image data specifically includes:
[0019] Recognize a human figure outline in a visible light image, wherein the visible light image is an indoor image constructed based on the visible light image data;
[0020] Determine the indoor location of the human figure outline;
[0021] determining the temperature of the indoor location in the infrared light image, wherein the infrared light image is an indoor image constructed based on the infrared light image data;
[0022] When the temperature of the indoor location matches the temperature of a human body, it is determined that a human body exists in the room.
[0023] Preferably, before the step of collecting the first indoor visual image data at the first collection frequency by the image sensor device, the method further includes:
[0024] Collecting training sample data of the body sensing recognition model through the image sensing device, wherein the training sample data is face data extracted from the third indoor visual image data collected by the image sensing device;
[0025] Constructing a sample data set of the body sensing recognition model based on the training sample data;
[0026] The sample data set is input into a pre-designed model structure to train the body sensing recognition model.
[0027] Preferably, the step of collecting training sample data of the body sensing recognition model through the image sensing device specifically includes:
[0028] Receiving an indoor environment parameter adjustment instruction input by a user through a control device;
[0029] Obtaining a target body sensory state type corresponding to the indoor environment parameter adjustment instruction;
[0030] Determining the time point at which the indoor environment parameter adjustment instruction input by the user through the control device is received as the end time;
[0031] Acquire the third indoor visual image data within the sample data collection period before the end time, the sample data collection period being a continuous time with the end time as the end time point;
[0032] The face data extracted from the third indoor visual image data within a period of time before the end time is used as training sample data corresponding to the target body sensory state type.
[0033] Preferably, before the step of acquiring the third indoor visual image data within the sample data collection period before the end time, the method further includes:
[0034] Determining the indoor environment parameters and the adjustment step length of the indoor environment parameter adjustment instruction;
[0035] Obtaining a collection time base corresponding to the indoor environment parameter;
[0036] The time length of the sample data collection period is calculated according to the collection time period and the adjustment step length.
[0037] Preferably, the step of extracting face data from the second indoor visual image data specifically includes:
[0038] Determining the integrity of the facial information in the second indoor visual image data;
[0039] When the facial information in the second indoor visual image data is complete, performing standardization processing on the facial image in the second indoor visual image data;
[0040] Convert the normalized face image into a two-dimensional pixel value matrix;
[0041] The two-dimensional pixel value matrix is determined as the face data.
[0042] Preferably, the step of performing standardization processing on the face image in the second indoor visual image data specifically includes:
[0043] cropping a face image from an indoor static image of the second indoor visual image data;
[0044] Scaling the facial image to a preset standardized size;
[0045] Converting the face image into a grayscale image;
[0046] A rotation correction process is performed on the face image.
[0047] Preferably, after the step of converting the normalized face image into a two-dimensional pixel value matrix, the method further includes:
[0048] Calculate the similarity between the current face data and the comparison face data;
[0049] If the similarity between the current face data and the compared face data is greater than the similarity threshold, discard the current face data;
[0050] If the similarity between the current face data and the comparison face data is less than a preset similarity threshold, the current face data is determined as new comparison face data.
[0051] Preferably, the step of calculating the similarity between the current face data and the comparison face data specifically includes:
[0052] Dividing the two-dimensional pixel value matrices of the current face data and the compared face data into a plurality of first pixel value sub-matrices corresponding to different face key points and a second pixel value sub-matrix not including the face key points;
[0053] Respectively obtaining similarity weights of the first pixel value submatrix and the second pixel value submatrix;
[0054] Calculate the similarity between the first pixel value submatrix and the second pixel value submatrix corresponding to each of the current face data and the compared face data;
[0055] The similarity between the current face data and the comparison face data is calculated based on the similarity weights and similarities of the first pixel value submatrix and the second pixel value submatrix.
[0056] The present invention proposes an indoor ecological environment adjustment system and method based on artificial intelligence. An image sensor device collects first indoor visual image data at a first collection frequency, and determines whether there is a human body indoors based on the first indoor visual image data. When there is a human body indoors, the indoor visual image data collection frequency of the image sensor device is adjusted to a second collection frequency to collect second indoor visual image data, and the second collection frequency is greater than the first collection frequency. Face data is extracted from the second indoor visual image data, and the face data is input into a somatosensory recognition model to identify the somatosensory state type of the corresponding human body. The somatosensory recognition model is a pre-trained artificial intelligence model that recognizes human comfort based on the expression characteristics of face data. The indoor ecological environment adjustment is performed according to the somatosensory state type, which can realize automatic adjustment of the indoor environment to meet the personalized needs of different individuals. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 is a schematic diagram of an indoor ecological environment adjustment system based on artificial intelligence provided by an embodiment of the present invention;
[0058] Figure 2 The present invention provides a flowchart of an indoor ecological environment adjustment method based on artificial intelligence according to an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0060] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0061] In the description of the present invention, the term "multiple" refers to two or more. Unless otherwise clearly defined, the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation of the present invention. The terms "connection", "installation", "fixation", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. In addition, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first", "second", etc. can explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, the meaning of "multiple" is two or more.
[0062] In the description of this specification, the description of the terms "one embodiment", "some implementations", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0063] An indoor ecological environment adjustment system and method based on artificial intelligence provided according to some embodiments of the present invention will be described below with reference to the accompanying drawings.
[0064] like Figure 1 As shown, the first aspect of the present invention proposes an indoor ecological environment adjustment system based on artificial intelligence, including a visual sensing device for collecting indoor visual image data, an adjustment device for adjusting indoor environmental parameters, a control device for sending indoor environmental parameter adjustment instructions, and a processing device for performing data processing.
[0065] Specifically, the processing device is connected to the visual sensing device, the regulating device, and the control device, and is used to control the regulating device according to the control instructions of the control device or according to the indoor visual image data collected by the visual sensing device. The visual image data may be visible light image data or infrared light image data. Accordingly, the visual sensing device may be a visible light camera or an infrared camera. The indoor environmental parameters include but are not limited to temperature, humidity, and wind speed. Accordingly, the regulating device may be a temperature and humidity regulating device such as an air conditioner, a fresh air blower, etc. The control device is communicatively connected to the processing device in a wired or wireless manner, and the control device may be an air conditioner remote controller or an intelligent mobile terminal such as a smart phone that is communicatively connected to the corresponding regulating device.
[0066] like Figure 2 As shown, the processing device is configured as follows:
[0067] Collecting first indoor visual image data at a first acquisition frequency by an image sensor device, wherein the first visual image data includes infrared image data and / or visible light image data;
[0068] Determining whether there is a human body in the room based on the first indoor visual image data;
[0069] When a human body is present in the room, adjusting the indoor visual image data acquisition frequency of the image sensor device to a second acquisition frequency to acquire second indoor visual image data, wherein the second visual image data includes infrared image data and / or visible light image data, and the second acquisition frequency is greater than the first acquisition frequency;
[0070] Extracting face data from the second indoor visual image data;
[0071] Inputting the face data into a somatosensory recognition model to identify the somatosensory state type of the corresponding human body, wherein the somatosensory recognition model is a pre-trained artificial intelligence model that recognizes human comfort based on the facial expression features of the face data;
[0072] The indoor ecological environment adjustment is performed according to the body sensing state type.
[0073] Specifically, the first acquisition frequency and the second acquisition frequency are pre-configured indoor visual image data acquisition frequencies of the image sensor device. When there is no human body in the room, the indoor ecological environment adjustment system does not need to frequently perform adjustment operations on the indoor ecological environment parameters, or may not perform adjustment or even directly shut down the indoor ecological environment adjustment system. Therefore, the first acquisition frequency can be configured as a relatively small value, for example, when there is no human body in the room, the indoor visual image data acquisition can be performed at a frequency of 2-5 times per minute. When there is a human body in the room, the indoor ecological environment adjustment system extracts several comfort features of the human body through the second indoor visual image data, identifies the comfort of the corresponding person based on these comfort features, and then performs corresponding adjustments on the indoor ecological environment parameters to improve the comfort of the indoor person. Therefore, the second acquisition frequency can be configured as a relatively large value, for example, the indoor visual image data acquisition can be performed at a frequency of more than 60 times per minute.
[0074] Preferably, after the step of extracting facial data from the second indoor visual image data, the step further includes performing facial recognition on the facial data to determine the person to which the facial data corresponds. In the technical solutions of some embodiments of the present invention, personalized somatosensory recognition models are trained for different persons respectively, and in the step of inputting the facial data into the somatosensory recognition model to identify the somatosensory state type of the corresponding human body, the facial data is specifically input into the somatosensory recognition model of the corresponding person to identify the somatosensory state type.
[0075] The somatosensory state type is a pre-configured somatosensory feeling type of the human body corresponding to different indoor environmental parameters. For example, corresponding to indoor environmental parameters such as temperature, humidity and wind speed, the somatosensory state type may include high somatosensory temperature, moderate somatosensory temperature or low somatosensory temperature, high somatosensory humidity, moderate somatosensory humidity or low somatosensory humidity, high somatosensory wind speed, moderate somatosensory wind speed or low somatosensory wind speed, etc. Of course, these somatosensory state types can also be further subdivided into multiple levels, rather than just using high, medium and low classification methods. Exemplarily, in the step of performing indoor ecological environment adjustment according to the somatosensory state type, when the somatosensory state type is high somatosensory temperature, the indoor temperature is adjusted downward accordingly. Furthermore, in an implementation method in which these somatosensory state types are subdivided into multiple levels, the somatosensory state type corresponding to each level is pre-configured with a corresponding indoor environmental parameter adjustment step, such as increasing the indoor temperature by 2 degrees or decreasing it by 3 degrees at a time.
[0076] Preferably, the first visual image data includes infrared image data and visible light image data, and in the step of determining whether there is a human body in the room based on the first indoor visual image data, the processing device is configured as follows:
[0077] Recognize a human figure outline in a visible light image, wherein the visible light image is an indoor image constructed based on the visible light image data;
[0078] Determine the indoor location of the human figure outline;
[0079] determining the temperature of the indoor location in the infrared light image, wherein the infrared light image is an indoor image constructed based on the infrared light image data;
[0080] When the temperature of the indoor location matches the temperature of a human body, it is determined that a human body exists in the room.
[0081] In the technical solution of the above-mentioned implementation mode, visible light images and infrared light data are combined to perform human body recognition, so that the accuracy of human body recognition is higher, and frequent adjustment of the acquisition frequency due to erroneous human body recognition results is avoided, resulting in unnecessary power consumption.
[0082] Preferably, before the step of collecting the first indoor visual image data at the first collection frequency by the image sensor device, the processing device is configured to:
[0083] Collecting training sample data of the body sensing recognition model through the image sensing device, wherein the training sample data is face data extracted from the third indoor visual image data collected by the image sensing device;
[0084] Constructing a sample data set of the body sensing recognition model based on the training sample data;
[0085] The sample data set is input into a pre-designed model structure to train the body sensing recognition model.
[0086] Similarly, in the step of collecting training sample data of the somatosensory recognition model through the image sensing device, the image sensing device collects third indoor visual image data at the second collection frequency, and extracts face data from the third indoor visual image data as training sample data of the somatosensory recognition model.
[0087] The somatosensory recognition model is a classification model, that is, the somatosensory recognition model is used to classify the input face data into different somatosensory state types. In the technical solution of the present invention, the somatosensory recognition model can be trained using any of common model structures such as linear models, tree models, neural network models, deep learning models, clustering models, etc. In order to classify the input face data into different somatosensory state types, on the basis of the above model structure, any classification algorithm such as logistic regression, decision tree, support vector machine, naive Bayes, etc. can be used to realize classification and recognition.
[0088] Preferably, in the step of collecting training sample data of the body sensing recognition model through the image sensing device, the processing device is configured to:
[0089] Receiving an indoor environment parameter adjustment instruction input by a user through a control device;
[0090] Obtaining a target body sensory state type corresponding to the indoor environment parameter adjustment instruction;
[0091] Determining the time point at which the indoor environment parameter adjustment instruction input by the user through the control device is received as the end time;
[0092] Acquire the third indoor visual image data within the sample data collection period before the end time, the sample data collection period being a continuous time with the end time as the end time point;
[0093] The face data extracted from the third indoor visual image data within a period of time before the end time is used as training sample data corresponding to the target body sensory state type.
[0094] In the step of obtaining the somatosensory state type corresponding to the indoor environment parameter adjustment instruction, the somatosensory state type corresponding to the user can be obtained according to the indoor environment parameter to be adjusted in the indoor environment parameter adjustment instruction input by the user and the value change of the adjusted indoor environment parameter. For example, when the indoor environment parameter adjustment instruction input by the user is to increase the temperature by 1 degree Celsius, it can be determined that the somatosensory state type corresponding to the indoor environment parameter adjustment instruction is low somatosensory temperature, that is, the user will input the instruction to increase the temperature by 1 degree Celsius through the control device only when he feels that the indoor temperature is low.
[0095] In the step of collecting training sample data of the somatosensory recognition model through the image sensing device, the image sensing device continuously collects the third indoor visual image data at the second collection frequency and writes it into the cache space. When the indoor environment parameter adjustment instruction input by the user through the control device is detected, the third indoor visual image data within a period of time before the end time is read from the cache space to extract the face data therein. In the technical solution of the present invention, the time length of the period of time before the end time is a preconfigured time length. The time length can be configured to different time lengths according to the needs of implementation, and it can be configured according to empirical values. In the technical solution of the present invention, the time length of the sample data collection period can be a preconfigured fixed time length, or it can be a dynamic time length calculated in real time.
[0096] Preferably, before the step of acquiring the third indoor visual image data within the sample data collection period before the end time, the processing device is configured to:
[0097] Determining the indoor environment parameters and the adjustment step length of the indoor environment parameter adjustment instruction;
[0098] Obtaining a collection time base corresponding to the indoor environment parameter;
[0099] The time length of the sample data collection period is calculated according to the collection time period and the adjustment step length.
[0100] Preferably, in the technical solution of the above-mentioned embodiment, the time length of the sample data collection period is a dynamic time length. Usually, when the user's physical discomfort is not strong, his tendency to adjust the indoor environmental parameters will be relatively weak, and he may issue an indoor environmental parameter adjustment instruction through the control device after a long time. At this time, it is necessary to configure a longer data collection time length to obtain facial data for a longer time, so as to identify changes in user expressions. When the user's physical discomfort is relatively strong, his tendency to adjust the indoor environmental parameters is relatively strong, and he may issue an indoor environmental parameter adjustment instruction through the control device within a shorter time. At this time, it is only necessary to configure a shorter time length to obtain facial data within the corresponding time period, thereby reducing unnecessary data processing.
[0101] The adjustment step of the indoor environment parameter refers to the multiple of the standard unit of the indoor environment parameter that the user continuously adjusts in one adjustment operation. Taking the indoor temperature as an example, the standard unit of temperature is Celsius, and the adjustment step of the indoor environment parameter is the degree of increase or decrease by the user in this operation. For example, if the user feels that the indoor temperature is too hot and adjusts the temperature down by 3 degrees Celsius, then in this operation, the adjustment step of the indoor environment parameter is 3.
[0102] The acquisition time base is used to calculate the acquisition time base, corresponding to the time length of one standard unit change of each indoor environmental parameter. In the specific implementation process, a different acquisition time base can be configured for each indoor environmental parameter, or a unified acquisition time base can be configured. In the step of calculating the time length of the sample data acquisition period according to the acquisition time base and the adjustment step, the product of the adjustment step of the indoor environmental parameter and the acquisition time base can be used as the time length of the sample data acquisition period.
[0103] Preferably, in the step of extracting face data from the second indoor visual image data, the processing device is configured to:
[0104] Determining the integrity of the facial information in the second indoor visual image data;
[0105] When the facial information in the second indoor visual image data is complete, performing standardization processing on the facial image in the second indoor visual image data;
[0106] Convert the normalized face image into a two-dimensional pixel value matrix;
[0107] The two-dimensional pixel value matrix is determined as the face data.
[0108] Specifically, the indoor image data includes the first indoor image data, the second indoor image data and the third indoor image data, which are indoor static image data corresponding to the acquisition time. The image sensor device outputs an indoor static image each time it performs acquisition. The step of determining the integrity of the facial information in the second indoor visual image data specifically includes:
[0109] Determine the face area in the corresponding indoor static image by using a face detection algorithm;
[0110] Determining whether the facial region contains complete facial features;
[0111] When any one of the five features is missing in the facial area, or any one of the five features is incomplete, it is determined that the facial information is incomplete.
[0112] Preferably, in the step of performing standardization processing on the face image in the second indoor visual image data, the processing device is configured as follows:
[0113] cropping a face image from an indoor static image of the second indoor visual image data;
[0114] Scaling the facial image to a preset standardized size;
[0115] Converting the face image into a grayscale image;
[0116] A rotation correction process is performed on the face image.
[0117] Specifically, in the step of cropping a face image from the indoor static image of the second indoor visual image data, an image block containing the entire face area is cropped as the face image according to the face position detected in the indoor static image of the second indoor visual image data. Preferably, in the step of cropping an image block containing the entire face area as the face image, a number of boundary pixels are added as disturbance absorption intervals.
[0118] The standardized size is a pre-configured uniform size of a face image, which can be configured according to actual implementation needs. The standardized size of a face image is usually configured as 100*100 pixels. After scaling to the standardized size, the face image is converted into a grayscale image. By graying the face image, the subsequent image processing process can be simplified.
[0119] In the step of performing rotation correction processing on the face image, the processing device is configured to:
[0120] Determine the positions of key points of the face, including eyebrow, eye, nose and mouth;
[0121] Determine the angle of the head based on the position of key points on the face;
[0122] Rotate the face so that it faces the front of the image.
[0123] The step of rotating the face so that the face faces the front of the image specifically includes:
[0124] Dividing the face image into a plurality of sub-regions;
[0125] Calculate the rotation angle and scaling of each sub-region;
[0126] The image of each sub-region is rotated and scaled accordingly according to the rotation angle and scaling scale so that the face faces the front of the image.
[0127] Furthermore, in the step of performing rotation correction processing on the face image, an image preprocessing step is also included, such as histogram equalization, Gaussian blur, etc., to enhance the image contrast, remove noise, etc. These are conventional operations in the field of image processing and will not be described in detail here.
[0128] In the step of constructing a sample data set of the body sensing recognition model based on the training sample data, the face data in the sample data set is also processed in the above manner.
[0129] Preferably, after the step of converting the normalized facial image into a two-dimensional pixel value matrix, the processing device is configured to:
[0130] Calculate the similarity between the current face data and the comparison face data;
[0131] If the similarity between the current face data and the compared face data is greater than the similarity threshold, discard the current face data;
[0132] If the similarity between the current face data and the comparison face data is less than a preset similarity threshold, the current face data is determined as new comparison face data.
[0133] By default, the comparison face data is configured as the face data that is adjacent to the current face data. The so-called adjacent face data is specifically the face data extracted from the indoor static image of the second indoor visual image data collected last time.
[0134] By adopting the technical solution of the above implementation, facial data with high similarity can be eliminated, avoiding the problem of high processing pressure on the system and waste of processing resources caused by a large amount of facial data with high similarity when the collection frequency is high. At the same time, the collection frequency is maintained at a high level to continue collecting facial data to ensure that key information about the user's mood changes is not lost.
[0135] Preferably, in the step of calculating the similarity between the current face data and the comparison face data, the processing device is configured to:
[0136] Dividing the two-dimensional pixel value matrices of the current face data and the compared face data into a plurality of first pixel value sub-matrices corresponding to different face key points and a second pixel value sub-matrix not including the face key points;
[0137] Respectively obtaining similarity weights of the first pixel value submatrix and the second pixel value submatrix;
[0138] Calculate the similarity between the first pixel value submatrix and the second pixel value submatrix corresponding to each of the current face data and the compared face data;
[0139] The similarity between the current face data and the comparison face data is calculated based on the similarity weights and similarities of the first pixel value submatrix and the second pixel value submatrix.
[0140] Exemplarily, taking the feature points such as eyebrows, eyes, nose and mouth on the face as facial key points, it can be determined that the facial data contains 6 facial key points, so that the two-dimensional pixel value matrices of the current facial data and the compared facial data can be divided into 6 first pixel value sub-matrices A11, A12, A13, A14, A15, A16 and B11, B12, B13, B14, B15, B16 containing the 6 facial key points, and several second pixel value sub-matrices other than the 6 first pixel value sub-matrices. Taking the 7 second pixel value sub-matrices as an example, the two-dimensional pixel value matrices of the current facial data and the compared facial data are A21, A22, A23, A24, A25, A26, A27 and B21, B22, B23, B24, B25, B26, B27 respectively. In the technical solutions of some embodiments of the present invention, the six first pixel value sub-matrices use the same similarity weight a, and the seven second pixel value sub-matrices use the same similarity weight b, then the similarity S between the current face data and the comparison face data is S = a*(S11+S12+S13+S14+S15+S16)+b*(S21+S22+S23+S24+S25+S26+S27).
[0141] Wherein S11 is the similarity between the first pixel value submatrices A11 and B11, S12 is the similarity between the first pixel value submatrices A12 and B12, and so on. The similarity between two submatrices can be any one of the Euclidean distance or cosine similarity between matrices.
[0142] In the technical solutions of other embodiments of the present invention, different similarity weights may be configured for each first pixel value sub-matrix respectively.
[0143] like Figure 2 As shown, the second aspect of the present invention proposes an indoor ecological environment adjustment method based on artificial intelligence, comprising:
[0144] Collecting first indoor visual image data at a first acquisition frequency by an image sensor device, wherein the first visual image data includes infrared image data and / or visible light image data;
[0145] Determining whether there is a human body in the room based on the first indoor visual image data;
[0146] When a human body is present in the room, adjusting the indoor visual image data acquisition frequency of the image sensor device to a second acquisition frequency to acquire second indoor visual image data, wherein the second visual image data includes infrared image data and / or visible light image data, and the second acquisition frequency is greater than the first acquisition frequency;
[0147] Extracting face data from the second indoor visual image data;
[0148] Inputting the face data into a somatosensory recognition model to identify the somatosensory state type of the corresponding human body, wherein the somatosensory recognition model is a pre-trained artificial intelligence model that recognizes human comfort based on the facial expression features of the face data;
[0149] The indoor ecological environment adjustment is performed according to the body sensing state type.
[0150] Specifically, the first acquisition frequency and the second acquisition frequency are pre-configured indoor visual image data acquisition frequencies of the image sensor device. When there is no human body in the room, the indoor ecological environment adjustment system does not need to frequently perform adjustment operations on the indoor ecological environment parameters, or may not perform adjustment or even directly shut down the indoor ecological environment adjustment system. Therefore, the first acquisition frequency can be configured as a relatively small value, for example, when there is no human body in the room, the indoor visual image data acquisition can be performed at a frequency of 2-5 times per minute. When there is a human body in the room, the indoor ecological environment adjustment system extracts several comfort features of the human body through the second indoor visual image data, identifies the comfort of the corresponding person based on these comfort features, and then performs corresponding adjustments on the indoor ecological environment parameters to improve the comfort of the indoor person. Therefore, the second acquisition frequency can be configured as a relatively large value, for example, the indoor visual image data acquisition can be performed at a frequency of more than 60 times per minute.
[0151] Preferably, after the step of extracting facial data from the second indoor visual image data, the step further includes performing facial recognition on the facial data to determine the person to which the facial data corresponds. In the technical solutions of some embodiments of the present invention, personalized somatosensory recognition models are trained for different persons respectively, and in the step of inputting the facial data into the somatosensory recognition model to identify the somatosensory state type of the corresponding human body, the facial data is specifically input into the somatosensory recognition model of the corresponding person to identify the somatosensory state type.
[0152] The somatosensory state type is a pre-configured somatosensory feeling type of the human body corresponding to different indoor environmental parameters. For example, corresponding to indoor environmental parameters such as temperature, humidity and wind speed, the somatosensory state type may include high somatosensory temperature, moderate somatosensory temperature or low somatosensory temperature, high somatosensory humidity, moderate somatosensory humidity or low somatosensory humidity, high somatosensory wind speed, moderate somatosensory wind speed or low somatosensory wind speed, etc. Of course, these somatosensory state types can also be further subdivided into multiple levels, rather than just using high, medium and low classification methods. Exemplarily, in the step of performing indoor ecological environment adjustment according to the somatosensory state type, when the somatosensory state type is high somatosensory temperature, the indoor temperature is adjusted downward accordingly. Furthermore, in an implementation method in which these somatosensory state types are subdivided into multiple levels, the somatosensory state type corresponding to each level is pre-configured with a corresponding indoor environmental parameter adjustment step, such as increasing the indoor temperature by 2 degrees or decreasing it by 3 degrees at a time.
[0153] Preferably, the first visual image data includes infrared image data and visible light image data, and the step of determining whether there is a human body in the room based on the first indoor visual image data specifically includes:
[0154] Recognize a human figure outline in a visible light image, wherein the visible light image is an indoor image constructed based on the visible light image data;
[0155] Determine the indoor location of the human figure outline;
[0156] determining the temperature of the indoor location in the infrared light image, wherein the infrared light image is an indoor image constructed based on the infrared light image data;
[0157] When the temperature of the indoor location matches the temperature of a human body, it is determined that a human body exists in the room.
[0158] In the technical solution of the above-mentioned implementation mode, visible light images and infrared light data are combined to perform human body recognition, so that the accuracy of human body recognition is higher, and frequent adjustment of the acquisition frequency due to erroneous human body recognition results is avoided, resulting in unnecessary power consumption.
[0159] Preferably, before the step of collecting the first indoor visual image data at the first collection frequency by the image sensor device, the method further includes:
[0160] Collecting training sample data of the body sensing recognition model through the image sensing device, wherein the training sample data is face data extracted from the third indoor visual image data collected by the image sensing device;
[0161] Constructing a sample data set of the body sensing recognition model based on the training sample data;
[0162] The sample data set is input into a pre-designed model structure to train the body sensing recognition model.
[0163] Similarly, in the step of collecting training sample data of the somatosensory recognition model through the image sensing device, the image sensing device collects third indoor visual image data at the second collection frequency, and extracts face data from the third indoor visual image data as training sample data of the somatosensory recognition model.
[0164] The somatosensory recognition model is a classification model, that is, the somatosensory recognition model is used to classify the input face data into different somatosensory state types. In the technical solution of the present invention, the somatosensory recognition model can be trained using any of common model structures such as linear models, tree models, neural network models, deep learning models, clustering models, etc. In order to classify the input face data into different somatosensory state types, on the basis of the above model structure, any classification algorithm such as logistic regression, decision tree, support vector machine, naive Bayes, etc. can be used to realize classification and recognition.
[0165] Preferably, the step of collecting training sample data of the body sensing recognition model through the image sensing device specifically includes:
[0166] Receiving an indoor environment parameter adjustment instruction input by a user through a control device;
[0167] Obtaining a target body sensory state type corresponding to the indoor environment parameter adjustment instruction;
[0168] Determining the time point at which the indoor environment parameter adjustment instruction input by the user through the control device is received as the end time;
[0169] Acquire the third indoor visual image data within the sample data collection period before the end time, the sample data collection period being a continuous time with the end time as the end time point;
[0170] The face data extracted from the third indoor visual image data within a period of time before the end time is used as training sample data corresponding to the target body sensory state type.
[0171] In the step of obtaining the somatosensory state type corresponding to the indoor environment parameter adjustment instruction, the somatosensory state type corresponding to the user can be obtained according to the indoor environment parameter to be adjusted in the indoor environment parameter adjustment instruction input by the user and the value change of the adjusted indoor environment parameter. For example, when the indoor environment parameter adjustment instruction input by the user is to increase the temperature by 1 degree Celsius, it can be determined that the somatosensory state type corresponding to the indoor environment parameter adjustment instruction is low somatosensory temperature, that is, the user will input the instruction to increase the temperature by 1 degree Celsius through the control device only when he feels that the indoor temperature is low.
[0172] In the step of collecting training sample data of the somatosensory recognition model through the image sensing device, the image sensing device continuously collects the third indoor visual image data at the second collection frequency and writes it into the cache space. When the indoor environment parameter adjustment instruction input by the user through the control device is detected, the third indoor visual image data within a period of time before the end time is read from the cache space to extract the face data therein. In the technical solution of the present invention, the time length of the period of time before the end time is a preconfigured time length. The time length can be configured to different time lengths according to the needs of implementation, and it can be configured according to empirical values. In the technical solution of the present invention, the time length of the sample data collection period can be a preconfigured fixed time length, or it can be a dynamic time length calculated in real time.
[0173] Preferably, before the step of acquiring the third indoor visual image data within the sample data collection period before the end time, the method further includes:
[0174] Determining the indoor environment parameters and the adjustment step length of the indoor environment parameter adjustment instruction;
[0175] Obtaining a collection time base corresponding to the indoor environment parameter;
[0176] The time length of the sample data collection period is calculated according to the collection time period and the adjustment step length.
[0177] Preferably, in the technical solution of the above-mentioned embodiment, the time length of the sample data collection period is a dynamic time length. Usually, when the user's physical discomfort is not strong, his tendency to adjust the indoor environmental parameters will be relatively weak, and he may issue an indoor environmental parameter adjustment instruction through the control device after a long time. At this time, it is necessary to configure a longer data collection time length to obtain facial data for a longer time, so as to identify changes in user expressions. When the user's physical discomfort is relatively strong, his tendency to adjust the indoor environmental parameters is relatively strong, and he may issue an indoor environmental parameter adjustment instruction through the control device within a shorter time. At this time, it is only necessary to configure a shorter time length to obtain facial data within the corresponding time period, thereby reducing unnecessary data processing.
[0178] The adjustment step of the indoor environment parameter refers to the multiple of the standard unit of the indoor environment parameter that the user continuously adjusts in one adjustment operation. Taking the indoor temperature as an example, the standard unit of temperature is Celsius, and the adjustment step of the indoor environment parameter is the degree of increase or decrease by the user in this operation. For example, if the user feels that the indoor temperature is too hot and adjusts the temperature down by 3 degrees Celsius, then in this operation, the adjustment step of the indoor environment parameter is 3.
[0179] The acquisition time base is used to calculate the acquisition time base, corresponding to the time length of one standard unit change of each indoor environmental parameter. In the specific implementation process, a different acquisition time base can be configured for each indoor environmental parameter, or a unified acquisition time base can be configured. In the step of calculating the time length of the sample data acquisition period according to the acquisition time base and the adjustment step, the product of the adjustment step of the indoor environmental parameter and the acquisition time base can be used as the time length of the sample data acquisition period.
[0180] Preferably, the step of extracting face data from the second indoor visual image data specifically includes:
[0181] Determining the integrity of the facial information in the second indoor visual image data;
[0182] When the facial information in the second indoor visual image data is complete, performing standardization processing on the facial image in the second indoor visual image data;
[0183] Convert the normalized face image into a two-dimensional pixel value matrix;
[0184] The two-dimensional pixel value matrix is determined as the face data.
[0185] Specifically, the indoor image data includes the first indoor image data, the second indoor image data and the third indoor image data, which are indoor static image data corresponding to the acquisition time. The image sensor device outputs an indoor static image each time it performs acquisition. The step of determining the integrity of the facial information in the second indoor visual image data specifically includes:
[0186] Determine the face area in the corresponding indoor static image by using a face detection algorithm;
[0187] Determining whether the facial region contains complete facial features;
[0188] When any one of the five features is missing in the facial area, or any one of the five features is incomplete, it is determined that the facial information is incomplete.
[0189] Preferably, the step of performing standardization processing on the face image in the second indoor visual image data specifically includes:
[0190] cropping a face image from an indoor static image of the second indoor visual image data;
[0191] Scaling the facial image to a preset standardized size;
[0192] Converting the face image into a grayscale image;
[0193] A rotation correction process is performed on the face image.
[0194] Specifically, in the step of cropping a face image from the indoor static image of the second indoor visual image data, an image block containing the entire face area is cropped as the face image according to the face position detected in the indoor static image of the second indoor visual image data. Preferably, in the step of cropping an image block containing the entire face area as the face image, a number of boundary pixels are added as disturbance absorption intervals.
[0195] The standardized size is a pre-configured uniform size of a face image, which can be configured according to actual implementation needs. The standardized size of a face image is usually configured as 100*100 pixels. After scaling to the standardized size, the face image is converted into a grayscale image. By graying the face image, the subsequent image processing process can be simplified.
[0196] The step of performing rotation correction processing on the face image further includes:
[0197] Determine the positions of key points of the face, including eyebrow, eye, nose and mouth;
[0198] Determine the angle of the head based on the position of key points on the face;
[0199] Rotate the face so that it faces the front of the image.
[0200] The step of rotating the face so that the face faces the front of the image specifically includes:
[0201] Dividing the face image into a plurality of sub-regions;
[0202] Calculate the rotation angle and scaling of each sub-region;
[0203] The image of each sub-region is rotated and scaled accordingly according to the rotation angle and scaling scale so that the face faces the front of the image.
[0204] Furthermore, in the step of performing rotation correction processing on the face image, an image preprocessing step is also included, such as histogram equalization, Gaussian blur, etc., to enhance the image contrast, remove noise, etc. These are conventional operations in the field of image processing and will not be described in detail here.
[0205] In the step of constructing a sample data set of the body sensing recognition model based on the training sample data, the face data in the sample data set is also processed in the above manner.
[0206] Preferably, after the step of converting the normalized face image into a two-dimensional pixel value matrix, the method further includes:
[0207] Calculate the similarity between the current face data and the comparison face data;
[0208] If the similarity between the current face data and the compared face data is greater than the similarity threshold, discard the current face data;
[0209] If the similarity between the current face data and the comparison face data is less than a preset similarity threshold, the current face data is determined as new comparison face data.
[0210] By default, the comparison face data is configured as the face data that is adjacent to the current face data. The so-called adjacent face data is specifically the face data extracted from the indoor static image of the second indoor visual image data collected last time.
[0211] By adopting the technical solution of the above implementation, facial data with high similarity can be eliminated, avoiding the problem of high processing pressure on the system and waste of processing resources caused by a large amount of facial data with high similarity when the collection frequency is high. At the same time, the collection frequency is maintained at a high level to continue collecting facial data to ensure that key information about the user's mood changes is not lost.
[0212] Preferably, the step of calculating the similarity between the current face data and the comparison face data specifically includes:
[0213] Dividing the two-dimensional pixel value matrices of the current face data and the compared face data into a plurality of first pixel value sub-matrices corresponding to different face key points and a second pixel value sub-matrix not including the face key points;
[0214] Respectively obtaining similarity weights of the first pixel value submatrix and the second pixel value submatrix;
[0215] Calculate the similarity between the first pixel value submatrix and the second pixel value submatrix corresponding to each of the current face data and the compared face data;
[0216] The similarity between the current face data and the comparison face data is calculated based on the similarity weights and similarities of the first pixel value submatrix and the second pixel value submatrix.
[0217] Exemplarily, taking the feature points such as eyebrows, eyes, nose and mouth on the face as facial key points, it can be determined that the facial data contains 6 facial key points, so that the two-dimensional pixel value matrices of the current facial data and the compared facial data can be divided into 6 first pixel value sub-matrices A11, A12, A13, A14, A15, A16 and B11, B12, B13, B14, B15, B16 containing the 6 facial key points, and several second pixel value sub-matrices other than the 6 first pixel value sub-matrices. Taking the 7 second pixel value sub-matrices as an example, the two-dimensional pixel value matrices of the current facial data and the compared facial data are A21, A22, A23, A24, A25, A26, A27 and B21, B22, B23, B24, B25, B26, B27 respectively. In the technical solutions of some embodiments of the present invention, the six first pixel value sub-matrices use the same similarity weight a, and the seven second pixel value sub-matrices use the same similarity weight b, then the similarity S between the current face data and the comparison face data is S = a*(S11+S12+S13+S14+S15+S16)+b*(S21+S22+S23+S24+S25+S26+S27).
[0218] Wherein S11 is the similarity between the first pixel value submatrices A11 and B11, S12 is the similarity between the first pixel value submatrices A12 and B12, and so on. The similarity between two submatrices can be any one of the Euclidean distance or cosine similarity between matrices.
[0219] In the technical solutions of other embodiments of the present invention, different similarity weights may be configured for each first pixel value sub-matrix respectively.
[0220] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" 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 other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0221] According to the embodiments of the present invention as described above, these embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made based on the above description. 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 make good use of the present invention and the modified use based on the present invention. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. An indoor ecological environment adjustment system based on artificial intelligence, characterized in that: The system comprises a visual sensing device for collecting indoor visual image data, an adjusting device for adjusting indoor environmental parameters, a control device for sending indoor environmental parameter adjustment instructions, and a processing device for performing data processing, wherein the processing device is configured as follows: Collecting first indoor visual image data at a first collection frequency by an image sensor device, wherein the first indoor visual image data includes infrared image data and / or visible light image data; Determining whether there is a human body in the room based on the first indoor visual image data; When a human body is present in the room, adjusting the indoor visual image data acquisition frequency of the image sensor device to a second acquisition frequency to acquire second indoor visual image data, wherein the second indoor visual image data includes infrared image data and / or visible light image data, and the second acquisition frequency is greater than the first acquisition frequency; Extracting face data from the second indoor visual image data; Inputting the face data into a somatosensory recognition model to identify the somatosensory state type of the corresponding human body, wherein the somatosensory recognition model is a pre-trained artificial intelligence model that recognizes human comfort based on the facial expression features of the face data; Execute indoor ecological environment adjustment according to the type of body sensory state; Before the step of collecting the first indoor visual image data at the first collection frequency by the image sensor device, the processing device is configured to: Collecting training sample data of the body sensing recognition model through the image sensing device, wherein the training sample data is face data extracted from the third indoor visual image data collected by the image sensing device; Constructing a sample data set of the body sensing recognition model based on the training sample data; Inputting the sample data set into a pre-designed model structure to train the body sensing recognition model; In the step of collecting training sample data of the body sensing recognition model through the image sensing device, the processing device is configured to: Receiving an indoor environment parameter adjustment instruction input by a user through a control device; Obtaining a target body sensory state type corresponding to the indoor environment parameter adjustment instruction; Determining the time point at which the indoor environment parameter adjustment instruction input by the user through the control device is received as the end time; Acquire the third indoor visual image data within the sample data collection period before the end time, the sample data collection period being a continuous time with the end time as the end time point; extracting face data from third indoor visual image data within a period of time before the end time as training sample data corresponding to the target body state type; Before the step of acquiring the third indoor visual image data within the sample data collection period before the end time, the processing device is configured to: Determining the indoor environment parameters and the adjustment step length of the indoor environment parameter adjustment instruction; Obtaining a collection time base corresponding to the indoor environment parameter; The time length of the sample data collection period is calculated according to the collection time base and the adjustment step.
2. An indoor ecological environment adjustment method based on artificial intelligence, characterized in that: include: Collecting first indoor visual image data at a first collection frequency by an image sensor device, wherein the first indoor visual image data includes infrared image data and / or visible light image data; Determining whether there is a human body in the room based on the first indoor visual image data; When a human body is present in the room, adjusting the indoor visual image data acquisition frequency of the image sensor device to a second acquisition frequency to acquire second indoor visual image data, wherein the second indoor visual image data includes infrared image data and / or visible light image data, and the second acquisition frequency is greater than the first acquisition frequency; Extracting face data from the second indoor visual image data; Inputting the face data into a somatosensory recognition model to identify the somatosensory state type of the corresponding human body, wherein the somatosensory recognition model is a pre-trained artificial intelligence model that recognizes human comfort based on the facial expression features of the face data; Execute indoor ecological environment adjustment according to the type of body sensory state; Before the step of collecting the first indoor visual image data at the first collection frequency by the image sensor device, the method further includes: Collecting training sample data of the body sensing recognition model through the image sensing device, wherein the training sample data is face data extracted from the third indoor visual image data collected by the image sensing device; Constructing a sample data set of the body sensing recognition model based on the training sample data; Inputting the sample data set into a pre-designed model structure to train the body sensing recognition model; The step of collecting training sample data of the body sensing recognition model through the image sensing device specifically includes: Receiving an indoor environment parameter adjustment instruction input by a user through a control device; Obtaining a target body sensory state type corresponding to the indoor environment parameter adjustment instruction; Determining the time point at which the indoor environment parameter adjustment instruction input by the user through the control device is received as the end time; Acquire the third indoor visual image data within the sample data collection period before the end time, the sample data collection period being a continuous time with the end time as the end time point; extracting face data from third indoor visual image data within a period of time before the end time as training sample data corresponding to the target body state type; Before the step of acquiring the third indoor visual image data within the sample data collection period before the end time, the method further includes: Determining the indoor environment parameters and the adjustment step length of the indoor environment parameter adjustment instruction; Obtaining a collection time base corresponding to the indoor environment parameter; The time length of the sample data collection period is calculated according to the collection time base and the adjustment step.
3. The indoor ecological environment adjustment method according to claim 2, characterized in that: The first visual image data includes infrared image data and visible light image data, and the step of determining whether there is a human body in the room based on the first indoor visual image data specifically includes: Recognize a human figure outline in a visible light image, wherein the visible light image is an indoor image constructed based on the visible light image data; Determine the indoor location of the human figure outline; determining the temperature of the indoor location in the infrared light image, wherein the infrared light image is an indoor image constructed based on the infrared light image data; When the temperature of the indoor location matches the temperature of a human body, it is determined that a human body exists in the room.
4. The indoor ecological environment adjustment method according to claim 2, characterized in that: The step of extracting face data from the second indoor visual image data specifically includes: Determining the integrity of the facial information in the second indoor visual image data; When the facial information in the second indoor visual image data is complete, performing standardization processing on the facial image in the second indoor visual image data; Convert the normalized face image into a two-dimensional pixel value matrix; The two-dimensional pixel value matrix is determined as the face data.
5. The indoor ecological environment adjustment method according to claim 4, characterized in that: The step of performing standardization processing on the face image in the second indoor visual image data specifically includes: cropping a face image from an indoor static image of the second indoor visual image data; Scaling the facial image to a preset standardized size; Converting the face image into a grayscale image; A rotation correction process is performed on the face image.
6. The indoor ecological environment adjustment method according to claim 4, characterized in that: After the step of converting the normalized face image into a two-dimensional pixel value matrix, the following steps are further included: Calculate the similarity between the current face data and the comparison face data; If the similarity between the current face data and the compared face data is greater than the similarity threshold, discard the current face data; If the similarity between the current face data and the comparison face data is less than a preset similarity threshold, the current face data is determined as new comparison face data.
7. The indoor ecological environment adjustment method according to claim 6, characterized in that: The steps of calculating the similarity between the current face data and the comparison face data specifically include: Dividing the two-dimensional pixel value matrices of the current face data and the compared face data into a plurality of first pixel value sub-matrices corresponding to different face key points and a second pixel value sub-matrix not including the face key points; Respectively obtaining similarity weights of the first pixel value submatrix and the second pixel value submatrix; Calculate the similarity between the first pixel value submatrix and the second pixel value submatrix corresponding to each of the current face data and the compared face data; The similarity between the current face data and the comparison face data is calculated based on the similarity weights and similarities of the first pixel value submatrix and the second pixel value submatrix.
