Disclosure of Invention
The embodiment of the invention provides an intelligent pressure-sensitive bedding adjusting method and equipment based on sleep image data, which are used for solving the technical problems that in the existing bedding adjusting method, sleep posture judgment is carried out by means of pressure data, misjudgment is easy to occur, and adjustment is unreasonable or energy consumption is wasted.
The embodiment of the invention adopts the following technical scheme:
On one hand, the embodiment of the invention provides an intelligent pressure-sensitive bedding adjusting method based on sleep image data, which at least comprises an image collector, an intelligent air pump, a plurality of folding air bags vertically arranged on a bedding base in an array shape and a plurality of fiber sensors arranged on the surface of each folding air bag; the method comprises the steps of receiving a bedding panoramic image shot by an image collector, superposing the bedding panoramic image with a pre-stored bedding air bag distribution diagram to obtain a bedding superposed image, receiving pressure data transmitted by each fiber sensor, correlating the pressure data at the same moment with corresponding folded air bag positions in the bedding superposed image, dividing the bedding superposed image according to the pressure data to obtain a bedding pressed area image, identifying human body parts of the bedding pressed area image, determining non-human body areas, carrying out zero setting processing on pressure data values correlated with folded air bags in the non-human body areas, converting the pressure data subjected to zero setting processing into a pressure matrix, carrying out analysis and calculation on the pressure matrix to determine sleeping position information of a user, controlling the intelligent air pump according to the sleeping position information, and carrying out air inflation or air suction processing on the air bags in the intelligent pressure-sensitive bedding so as to enable the intelligent pressure-sensitive bedding to carry out intelligent adjustment according to the sleeping position of the user.
In a possible implementation mode, before receiving the bedding panoramic image shot by the image collector, the method further comprises drawing and storing a bedding air bag distribution map according to the picture proportion of the image collector and air bag position design data when the intelligent pressure-sensitive bedding is produced, wherein the bedding air bag distribution map is a black and white line drawing, four vertex coordinates of the intelligent pressure-sensitive bedding are extracted and stored in the bedding air bag distribution map, a shot picture of the image collector is received, whether a first bedding aspect ratio in the shot picture is identical to a second bedding aspect ratio in the bedding air bag distribution map or not is detected, if different, the image collector is controlled to move along a sliding rail until the first bedding aspect ratio is identical to the second bedding aspect ratio, the image collector is installed in the sliding rail right above the intelligent pressure-sensitive bedding and can move in a translational mode along the sliding rail, the sliding rail is parallel to the four vertex coordinates of the intelligent pressure-sensitive bedding, and the image collector is controlled to shoot images of the four vertices of the intelligent pressure-sensitive bedding in parallel to the four vertex coordinates.
In a possible implementation manner, the bedding panoramic image and a pre-stored bedding air bag distribution diagram are overlapped to obtain a bedding overlapped image, and the bedding panoramic image comprises the steps of adjusting black pixels in the bedding air bag distribution diagram to be in a semitransparent state, adjusting white pixels in the bedding air bag distribution diagram to be in a transparent state to obtain a bedding air bag distribution line diagram, aligning four vertexes of the intelligent pressure-sensitive bedding in the bedding air bag distribution line diagram to correspond to the four vertexes of the intelligent pressure-sensitive bedding in the bedding panoramic image, overlapping the bedding air bag distribution line diagram on the upper layer of the bedding panoramic image after alignment, and combining the two layers to obtain the bedding overlapped image.
In a possible implementation mode, the method for correlating the pressure data at the same moment with the positions of the corresponding folding air bags in the bedding superimposed image specifically comprises the steps of performing one-to-one correspondence between the position coordinates of each folding air bag in the bedding superimposed image and the position of each folding air bag in a pre-stored intelligent pressure-sensitive bedding, setting the same serial numbers for the folding air bags positioned at the same position in the bedding superimposed image and the intelligent pressure-sensitive bedding, assigning the serial numbers to fiber sensors corresponding to the surfaces of the folding air bags, and correlating the pressure data returned by each fiber sensor at the current moment with the corresponding folding air bag in the bedding superimposed image according to the serial numbers of each fiber sensor and the serial numbers of each folding air bag in the bedding superimposed image.
In a feasible implementation mode, the bedding superimposed image is segmented according to the numerical value of the pressure data to obtain a bedding pressed area image, and the method specifically comprises the steps of determining all pressed folding air bags with the numerical value of the pressure data not being 0 in the bedding superimposed image, determining pixels in a preset range around each pressed folding air bag, setting the pixel value of the rest pixels to 255, and completing segmentation of the bedding superimposed image to obtain the bedding pressed area image, wherein the preset range is a square circled range taking the circle center of a folded air bag section as a center point and taking two times of the diameter of the folded air bag section as the side length.
In a feasible implementation mode, human body parts of the bedding pressed area image are identified, and non-human body areas are determined, specifically, the method comprises the steps of determining a target area threshold according to gray value distribution of the bedding pressed area image, determining areas with gray values larger than the target area threshold in the bedding pressed area image as target areas, dividing the target area into a plurality of target blocks, calculating gradient histograms of different gradient orientations in each target block by using gradient values of pixel points in each target block as weight vectors, normalizing the gradient histograms of different gradient orientations in each target block to obtain gradient feature vectors of each target block, combining the gradient feature vectors of each target block into gradient feature vectors of the target area, inputting the gradient feature vectors into a classifier, classifying the target blocks as human body areas, communicating the target blocks with classification results as human body targets, determining the target areas except the human body areas in the bedding pressed area image, and determining the non-human body areas.
In a feasible implementation mode, a target area threshold is determined according to gray value distribution of the bedding pressed area image, and specifically comprises the steps of determining a gray value distribution interval in the bedding pressed area image, randomly selecting a plurality of gray values in the gray value distribution interval to serve as a plurality of initial clustering centers, carrying out k-means clustering on the bedding pressed area image, analyzing gray value change data of each clustering center in the clustering process after the clustering is completed, determining a clustering center with mutation of the gray value change data and a mutation point gray value of the clustering center, and determining the mutation point gray value as the target area threshold.
In one possible implementation, the pressure matrix is analyzed and calculated to determine the sleeping gesture of the user, and the method specifically comprises the steps of determining an area where matrix elements with the values larger than 0 are located as a pressed area in the pressure matrix, and counting the number of the matrix elements in the pressed area; according to the matrix element quantity and element scale of the pressed area, the intelligent pressure sensing bedding is used as the current pressed area of the intelligent pressure sensing bedding; the element scale is a proportional relation between a matrix element and the occupied area of a folding air bag in the intelligent pressure-sensitive bedding; the method comprises the steps of comparing a current compression area with preset compression area intervals of different gesture types, preliminarily determining gesture types of a user, wherein the gesture types comprise sitting postures, lying postures and side lying postures, the lying postures comprise lying postures and lying postures, the side lying postures comprise lying postures and lying postures specifically comprise lying postures on the left side and on the right side, acquiring peak values of a plurality of matrix element values in a compression area when the gesture types are lying postures on the side, fitting the peak values of the matrix element values into a straight line, determining the straight line as a stress axis, analyzing the number of matrix elements positioned on two sides of the stress axis in the compression area, determining one side with more matrix elements as the facing side of the user, calculating an element value average value in the compression area when the gesture types are lying postures, determining an area formed by elements smaller than the element value average value as a low stress area when at least one low stress area exists in a longitudinal middle area of the compression area, and determining the user as lying posture otherwise.
In a possible implementation manner, the intelligent air pump is controlled according to the sleeping gesture, and the air bag in the intelligent pressure-sensitive bedding is inflated or exhausted so that the intelligent pressure-sensitive bedding can be intelligently adjusted according to the sleeping gesture of the user, and the intelligent pressure-sensitive bedding specifically comprises the steps of judging the length of the user according to the gesture of the user; the method comprises the steps of determining the position of each body part of a user according to the body length and pressure data distribution condition of the user, dividing the compression area into at least a trunk area, a left upper limb area, a right upper limb area, a left lower limb area and a right lower limb area according to the position of each body part, respectively obtaining the minimum value and the maximum value of element values in each area, averaging to obtain a pressure balance value corresponding to each area, slowly pumping the folded air bags corresponding to elements larger than the pressure balance value in the intelligent pressure sensing bedding, slowly pumping the folded air bags corresponding to elements smaller than the pressure balance value, monitoring the pressure value born by each folded air bag in the compression area in real time, and stopping the air pumping or pumping treatment when the error of the pressure value born by the folded air bags and the corresponding pressure balance value enters an error allowance range or the real-time deformation value reaches the expansion range boundary value corresponding to the current adjusting gear, wherein different adjusting gears correspond to different expansion ranges of the folded air bags.
In another aspect, the embodiment of the invention also provides intelligent pressure-sensing bedding adjusting equipment based on sleep image data, which comprises at least one processor and a memory in communication connection with the at least one processor, wherein the memory stores instructions capable of being executed by the at least one processor so that the at least one processor can execute the intelligent pressure-sensing bedding adjusting method based on the sleep image data according to any one of the embodiment.
Compared with the prior art, the intelligent pressure-sensitive bedding adjusting method and device based on the sleep image data have the following beneficial effects:
The intelligent pressure sensing adjusting bedding of the invention combines the pressure data collected by the bedding and the image data collected by the image collector to obtain an accurate human body pressure data matrix, thereby being capable of reducing the occurrence of misjudging the pressure data generated by a non-human body as the human body position. And the sleeping gesture of the user is analyzed through the pressure data matrix, the parts of the body of the user are adjusted in a partitioning mode according to the sleeping gesture, and each partitioning is used for adjusting the folding air bag based on different pressure balance values, so that balanced stress and balanced support of the parts of the body of the user are realized. The method can improve the accuracy of the intelligent pressure-sensitive bedding on the sleeping gesture detection result of the user, so that the intelligent pressure-sensitive bedding can be more attached to the body of each user, and a better supporting effect is achieved.
Detailed Description
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present invention.
Firstly, the embodiment of the invention provides an intelligent pressure-sensitive bedding adjusting method based on sleep image data, which is applied to intelligent pressure-sensitive bedding. The intelligent pressure-sensitive bedding of the invention is understood to be an intelligent mattress, which consists of an air bag layer and a base layer.
As a possible implementation manner, fig. 1 is a top view of an air bag layer structure of an intelligent pressure-sensing bedding provided by an embodiment of the present application, as shown in fig. 1, in the air bag layer, a plurality of folded air bags 1 are vertically installed in an array shape, and a fiber sensor (not shown in the figure) is installed on a surface of each folded air bag, so as to send a pressure value born by each folded air bag to a processor. The head and tail parts of the mattress are also provided with head strip-shaped air bags 2 and foot strip-shaped air bags 3 with different numbers. The arrangement mode of the folding air bags can be staggered arrangement as shown in fig. 1, or can be aligned in rows and columns.
Further, the airbag layer is mounted on the base layer, and fig. 2 is a top view of a base layer structure of the intelligent pressure-sensing bedding provided by the embodiment of the application, and as shown in fig. 2, the base layer comprises an intelligent air pump 4, a folding airbag mounting groove 5 for mounting a folding airbag 1, a head strip airbag mounting groove 6 for mounting a head strip airbag 2, and a foot strip airbag mounting groove 7 for mounting a foot strip airbag 3. All folding air bags and all strip air bags are connected with the intelligent air pump 4 through pipelines, and the intelligent air pump is connected with the processor and is used for inflating or exhausting air into the connected air bags according to instructions of the processor. The processor is connected with the fiber sensor on the surface of each air bag through a wire and is used for receiving pressure data transmitted back by the fiber sensor. The intelligent air pump and the processor are both arranged at the bed tail end of the mattress.
The intelligent pressure-sensitive bedding is characterized in that an image collector matched with the intelligent pressure-sensitive bedding and a sliding rail for installing the image collector are additionally arranged on the basis of the structure of the intelligent pressure-sensitive bedding. The slide rail is installed right above the perpendicular bisector of the two short sides of the intelligent pressure-sensitive bedding and is installed in parallel with the perpendicular bisector. So that the image collector can be always positioned on the central line of the intelligent pressure-sensitive bedding when moving on the sliding rail, and the symmetry of shooting vision is maintained. Preferably, the image collector may be an infrared camera or an infrared camera.
Based on the above-mentioned intelligent pressure-sensing bedding structure, fig. 3 is a flowchart of an intelligent pressure-sensing bedding adjusting method based on sleep image data according to an embodiment of the present invention, as shown in fig. 3, where the method specifically includes:
S301, the processor receives the bedding panoramic image shot by the image collector, and superimposes the bedding panoramic image and a pre-stored bedding air bag distribution map to obtain a bedding superimposed image.
Specifically, after the intelligent pressure-sensitive bedding is produced, firstly, according to the picture proportion of a matched image collector and the air bag position design data of the current type of intelligent pressure-sensitive bedding in production, drawing an air bag distribution diagram of the bedding and storing the air bag distribution diagram in a processor of the bedding. Wherein, the distribution diagram of the bedding air bag is a black-white line diagram, the line is black, and the bottom is white.
Further, in the bedding air bag distribution diagram, a plane rectangular coordinate system is established by taking the lower left vertex of the diagram as an original point and two sides connected with the original point as coordinate axes, and then the coordinates of the four vertices of the intelligent pressure-sensitive bedding in the bedding air bag distribution diagram are extracted and stored in a processor.
Further, after the intelligent pressure sensing bedding is installed and the power supply is started, the processor receives a shooting picture of the image collector and detects whether the aspect ratio of the first bedding in the shooting picture is the same as that of the second bedding in the bedding air bag distribution diagram.
If the first bedding aspect ratio and the second bedding aspect ratio are the same, the image collector is proved to be not to be at the right center of the intelligent pressure-sensitive bedding at the moment, so that the image collector is controlled to move along the sliding rail until the first bedding aspect ratio and the second bedding aspect ratio are the same.
Further, the image collector is controlled to zoom, and four vertexes of the intelligent pressure-sensitive bedding in the shot picture are respectively positioned at the stored four vertex coordinates so as to calibrate the image. The purpose of the image calibration is to ensure that the bedding picture shot by the image collector and the pre-stored bedding air bag distribution diagram can be completely overlapped so as to increase the accuracy of subsequent image superposition.
Further, in the bedding airbag distribution map, the transparency value of all pixels with the pixel value of 0 is set to 100, and the transparency value of all pixels with the pixel value of 255 is set to 0, so that the black pixels are adjusted to be in a semitransparent state, and the white pixels are adjusted to be in a transparent state, and the bedding airbag distribution line map is obtained.
As a possible embodiment, the value of the black pixel alpha channel with a pixel value of 0 in the bedding airbag distribution map is set to 100, and the black pixel is set to a semitransparent state. And the value of the alpha channel of the white pixel with the pixel value of 255 is set to be 0, the white pixel is set to be in a transparent state, so that the bedding air bag distribution diagram is converted into a line diagram, and other positions except the line diagram are transparent, so that the image details of the bedding panoramic image are not blocked after superposition.
And after alignment, the bedding air bag distribution line drawing is overlapped on the upper layer of the bedding panoramic image, and the two layers are combined to obtain a bedding overlapped image.
And S302, the processor receives the pressure data returned by each fiber sensor and correlates the pressure data at the same moment with the corresponding folded airbag position in the bedding superimposed image.
Specifically, the processor performs one-to-one correspondence between the position of each folding airbag in the bedding superimposed image and the position of each folding airbag in the intelligent pressure-sensitive bedding. And then, setting the same number for the folded air bags positioned at the same position in the bedding superimposed image and the intelligent pressure-sensitive bedding, and assigning the number to the fiber sensor corresponding to the surface of the folded air bag.
Further, according to the number of each fiber sensor and the number of each folding air bag in the bedding superimposed image, the pressure data returned by each fiber sensor at the current moment is associated with the corresponding folding air bag in the bedding superimposed image.
In one embodiment, the placement direction shown in fig. 1 is taken as the positive direction, the folded airbags at the upper left corner are numbered sequentially, the number of the first folded airbag is 1, the number of the first folded airbag increases sequentially to the right, and after one row is finished, the number is started from the leftmost side of the next row until the last folded airbag is finished in number. According to the mode, the folding air bags in the bedding superimposed image and the folding air bags in the intelligent pressure-sensitive bedding are numbered. And finally, according to the same number, associating the pressure data with the folded air bag in the bedding superimposed image.
S303, dividing the bedding superimposed image according to the numerical value of the pressure data to obtain a bedding pressed area image.
Specifically, in the bedding superimposed image, all the compressed folded airbags whose values of the pressure data are not 0 are determined. And determining pixels in a preset range around each pressed folding air bag, and setting the pixel values of the rest pixels to 255 so as to complete segmentation of the bedding superimposed image and obtain a bedding pressed area image. The preset range is a range circled by a square with the center of the cross section of the folded air bag as a center point and the diameter of the cross section of the folded air bag twice as the side length. The term "segmentation" as used herein is not a segmentation in the conventional sense, but rather, the pixels of the compressed area are kept and the remaining pixels are set to white, and the information contained in the resulting bedding compressed area image can be considered as part of the segmentation from the original image.
As a possible implementation manner, since the bedding superimposed image has both the folded airbag image and the bedding panoramic image, the area where the folded airbag with the pressure data value not being 0 (i.e. the folded airbag which is pressed) is reserved, the pixels of the area where the folded airbag with the pressure data value being 0 (i.e. the folded airbag which is not pressed) is changed to white or cut off directly, and the reserved area is the actual pressed area image of the bedding.
S304, human body part identification is carried out on the bedding pressed area image, a non-human body area is determined, and pressure data associated with the folding air bags in the non-human body area are processed by 0.
The method comprises the steps of determining a gray value distribution interval in a bedding pressed area image, randomly selecting a plurality of gray values in the gray value distribution interval to serve as a plurality of initial clustering centers, carrying out k-means clustering on the bedding pressed area image, analyzing gray value change data of each clustering center in the clustering process after clustering is completed, determining a clustering center with mutation of the gray value change data and a mutation point gray value thereof, and determining the mutation point gray value as a target area threshold.
As a possible implementation manner, since the gray values of the targets in the same class are not greatly different and the gray values of the targets in different classes are greatly different in the infrared image, after clustering is completed, the clustering centers of all subclasses belonging to the same class of target objects still approximately linearly change, and obvious turning is necessarily generated at the clustering centers of the subclasses at the critical positions of the different target objects, so that the threshold value of image segmentation can be determined by determining the gray values at the turning points. The processor records the gray value of the initial clustering center after each clustering in the clustering process, calculates the difference value between the gray value of the clustering center after each clustering and the gray value of the clustering center after the last clustering, and if the error between the difference values calculated each time is always smaller than a certain smaller threshold value until the error between the difference value of a certain time and the previous difference value is larger than the threshold value, the gray value corresponding to the mutation point is the needed target area threshold value.
The method comprises the steps of determining a region with gray values larger than a target region threshold in a bedding pressed region image as a target region, dividing the target region into a plurality of target blocks, calculating gradient histograms with different gradient orientations in each target block by using gradient values of pixel points in each target block as weight vectors, carrying out normalization processing on the gradient histograms with different gradient orientations in each target block to obtain gradient feature vectors of each target block, combining the gradient feature vectors of each target block into gradient feature vectors of the target region, inputting the gradient feature vectors into a classifier to classify the target blocks respectively, and communicating the target blocks with classification results of human targets to determine the human region. And determining the area except the human body area in the bedding compression area image as a non-human body area.
Further, the pressure data values associated with the folded air bags in the determined non-human body area are all set to zero, the processed pressure data are all human body areas if the pressure data are not 0, and the rest pressure data values are all 0 except the human body areas.
The operation eliminates some interference factors in the pressure data, and after the value of the pressure data generated by a non-human body is given 0, the subsequent sleeping gesture recognition is performed, so that the accuracy of sleeping gesture recognition can be greatly improved.
S305, converting the processed pressure data into a pressure matrix, analyzing and calculating the pressure matrix, and determining sleeping posture information of the user.
The processor stores the processed pressure data in a matrix form, namely marking a row number i and a column number j of each folding air bag in the top view of the intelligent pressure sensing bedding, and displaying a pressure value Aij corresponding to the folding air bag (i, j) on an ith row and a jth column of the pressure matrix to finally obtain the complete pressure matrix.
In the pressure matrix, determining the area where matrix elements with the value larger than 0 are located as a pressed area, counting the number of the matrix elements in the pressed area, and taking the area as the current pressed area of the intelligent pressure-sensing bedding according to the number of the matrix elements in the pressed area and an element scale, wherein the element scale is the proportional relation between one matrix element and the occupied area of one folding air bag in the intelligent pressure-sensing bedding. And comparing the current pressure area with preset pressure area intervals of different gesture types to preliminarily determine the gesture type of the user, wherein the gesture type comprises sitting, lying and side lying. Recumbent practice includes supine and prone, and lateral practice includes left lateral and right lateral.
In one embodiment, one element value in the pressure matrix corresponds to the pressure value sensed by one folded airbag, and because a certain gap exists between the folded airbags, the length of the connecting line of the circle centers of the cross sections of the two folded airbags is taken as a side length A, and the area of a square with the side length A is calculated and taken as the actual area occupied by the cross section of one folded airbag. If the actual area occupied by the section of one folded airbag is calculated to be 25cm2, the element ratio is 1:25. In the element scale, the value of the matrix element is constantly 1.
In one embodiment, the magnitude relation of the general pressure receiving areas is that the lying posture is more than the side lying posture, so that different pressure receiving area sections are set for different posture types, and the actual pressure receiving area is in which section, namely the corresponding posture type can be preliminarily determined, and the specific posture is further determined after the posture type is determined.
Further, under the condition that the posture type is lateral lying, peak values of a plurality of matrix element values in the pressed area are obtained, the peak values of the matrix element values are fitted into a straight line, and the straight line is determined as a stress axis. And analyzing the number of matrix elements positioned on two sides of the stress axis in the compression area, and determining the side with the larger number of elements as the facing side of the user. When lying on one side, the main stress area is on the trunk, the element peak value is fitted into a straight line which approximately coincides with the trunk, the number of elements on the left and right sides of the straight line is analyzed, and the side with more elements is the facing direction of a user.
Further, under the condition that the posture type is horizontal, calculating an element value average value in a pressed area, determining an area formed by elements smaller than the element value average value as a low stress area, if at least one low stress area exists in a longitudinal middle area of the pressed area, determining that the user is in a supine posture, otherwise, determining that the user is in a prone posture. The principle of the design is that when a human body is supine, the waist has a camber, the pressure between the waist and the mattress is small, and when the human body is prone, the pressure between the bellyband the mattress is large, so that a region with small pressure is selected by calculating the average value of the pressure of the whole body, and if the region with small pressure exists in the middle section of the pressed region, the user can be determined to lie on the back, otherwise, the user is prone.
S306, controlling the intelligent air pump according to the sleeping gesture, and performing air inflation or air suction treatment on the air bag in the intelligent pressure-sensitive bedding so as to enable the intelligent pressure-sensitive bedding to be intelligently adjusted according to the sleeping gesture of a user.
Specifically, the length of the user is determined according to the posture of the user. The position of each body part of the user is determined according to the length of the user and the distribution condition of the pressure data. Then dividing the compression area into at least a trunk area, a left upper limb area, a right upper limb area, a left lower limb area and a right lower limb area according to the positions of the body parts. And then respectively obtaining the minimum value and the maximum value of the element values in each partition, and averaging to obtain the pressure balance value corresponding to each partition.
In one embodiment, when the posture type of the user is recumbent or recumbent, the maximum span in the vertical direction of the pressed area is first determined as the body length of the user. And then determining the positions of the shoulders and the buttocks according to the region with the maximum pressure of the pressed region, and further determining the positions of other parts such as the neck, the waist, the limbs and the like according to the distribution proportion of the human body, thereby dividing the pressed region into a plurality of subareas.
The weight of different parts of the human body, such as the trunk part and the limbs, has a large difference, if the human body is regarded as a whole for adjustment, the weight difference of the different parts of the human body can be ignored, so that the parts of the human body are adjusted in a partitioning way, and the proper supporting force is obtained for the parts of the human body. When a human body lies on an unadjustable mattress, due to physiological radian, pressure imbalance caused by various parts on the mattress, such as a trunk part, is caused by buttocks, and the pressure caused by the waist on the mattress is relatively small, so that the waist cannot be effectively supported due to unbalanced stress, and meanwhile, discomfort can be caused when the buttocks are in an extrusion state. Therefore, the average value of the maximum value and the minimum value of the pressures in different subareas is calculated to obtain the pressure balance value in the subarea, and the expansion and contraction value of the folding air cushion at the corresponding position is regulated according to the current actual pressure value, so that the pressures between the body and the mattress in the same subarea are more balanced.
Further, in each subarea, the folded air bags corresponding to the elements larger than the pressure balance value are slowly pumped, the folded air bags corresponding to the elements smaller than the pressure balance value are slowly inflated, and the pressure value born by each folded air bag in the compression area is monitored in real time in the inflation or pumping process.
And stopping the air inflation or air extraction treatment when the error of the pressure value born by the folding air bag and the corresponding pressure balance value enters an error allowable range or the real-time deformation value reaches the boundary value of the telescopic interval corresponding to the current adjusting gear. Different adjusting gears correspond to different telescopic sections of the folding air bag.
As a possible implementation, the processor may set different adjustment gears for different weight ranges born by all the folded airbags, and the different adjustment gears correspond to different telescopic sections of the folded airbags. Firstly, adding element values with values larger than a minimum pressure threshold value in the obtained pressure matrix to obtain the total weight currently born by all the folding airbags, wherein the minimum pressure threshold value is used for setting the minimum pressure which can be generated by a human body on the intelligent pressure-sensitive adjusting bedding. And under the condition that the total weight is smaller than a preset weight threshold value, the folding air bag is not adjusted. And under the condition that the total weight is greater than or equal to a preset weight threshold value, determining a corresponding adjusting gear according to a weight range to which the total weight belongs.
In addition, the embodiment of the invention also provides an intelligent pressure-sensitive bedding adjusting device based on the sleep image data, as shown in fig. 4, the intelligent pressure-sensitive bedding adjusting device based on the sleep image data specifically comprises:
and a memory communicatively coupled to the at least one processor, wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform:
Receiving a bedding panoramic image shot by the image collector, and superposing the bedding panoramic image and a pre-stored bedding air bag distribution map to obtain a bedding superposition image;
receiving pressure data transmitted back by each fiber sensor, and correlating the pressure data at the same moment with the corresponding folded air bag position in the bedding superimposed image;
dividing the bedding superimposed image according to the numerical value of the pressure data to obtain a bedding pressed area image;
the image of the pressed area of the bedding is subjected to human body part identification, a non-human body area is determined, and pressure data related to a folding air bag in the non-human body area are processed by 0-degree;
converting the processed pressure data into a pressure matrix, analyzing and calculating the pressure matrix, and determining the sleeping gesture of the user;
And controlling the intelligent air pump according to the sleeping gesture to perform air inflation or air suction treatment on the air bag in the intelligent pressure-sensitive bedding so as to intelligently adjust the intelligent pressure-sensitive bedding according to the sleeping gesture of the user.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for the apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
The foregoing describes certain embodiments of the present invention. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing is merely exemplary of the present invention and is not intended to limit the present invention. Various modifications and changes may be made to the embodiments of the invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention should be included in the protection scope of the present invention.