Non-contact infant height measurement method, device, equipment and storage medium

Through video stream processing and target detection technology, non-contact height measurement of infants and young children is realized, which solves the problems of low accuracy and discomfort of infants and young children in the existing technology, and provides an accurate and automated height measurement method.

CN117179744BActive Publication Date: 2024-09-10WUHAN SIMSHINE INTELLIGENT TECH CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202311121219.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-30
Publication Date
2024-09-10
Estimated Expiration
2043-08-30

AI Technical Summary

Technical Problem

Existing methods for measuring the height of infants and young children have problems such as low accuracy and causing discomfort to infants and young children. In particular, the contact measurement method is cumbersome and easily causes infant resistance, while the non-contact measurement method has high equipment costs and uncertain accuracy.

Method used

Using a non-contact infant height measurement method, the real-time video stream in the infant care scene is obtained, decomposed into multi-frame images, and target detection and analysis is performed. The pre-trained target detection model and key point detection model are used to calculate the pixel size. and the conversion ratio of the marker size to achieve accurate measurement of the height of infants and young children.

Benefits of technology

It enables accurate height measurement without direct contact with infants and young children, avoids infant discomfort, improves measurement accuracy and automation, and helps users understand growth and development and detect abnormalities in time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117179744B
    Figure CN117179744B
Patent Text Reader

Abstract

The present invention relates to the field of infant care technology, solves the problem of low accuracy in infant height measurement in the prior art, and easily causes discomfort and resistance in infants during measurement, and provides a non-contact infant height measurement method, device, equipment and storage medium. The method comprises: obtaining a real-time video stream in an infant care scene, decomposing the real-time video stream into multiple frames of images; detecting the target infant and target marker in each image, outputting a first pixel size corresponding to the target infant and a second pixel size corresponding to the target marker; outputting a conversion ratio based on the actual size and the second pixel size of the target marker; processing the first pixel size based on the conversion ratio, and outputting the infant height. The present invention measures the height of infants, avoids contact methods that may cause discomfort or resistance in infants, and is conducive to maintaining the comfort and safety of infants.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of infant care, and in particular to a non-contact infant height measurement method, device, equipment and storage medium. Background Art

[0002] The height of infants and young children is one of the important indicators reflecting their growth and development status, and it has important reference value for parents and medical professionals. According to the growth of infants and young children's height, parents or medical professionals can judge their nutritional status and eating habits, guide infants and young children to eat a reasonable diet, and ensure the height growth and physical development of infants and young children. Therefore, the change of infants and young children's height is very important.

[0003] The existing technologies for measuring the height of infants and young children include: contact measurement method: usually the baby needs to be wrapped in a towel, let the baby lie on the platform of the measuring instrument, and then the height is measured with a ruler or millimeter mouth; non-contact measurement method: laser scanning measurement method: use a laser scanner to scan the object to be measured, collect the three-dimensional coordinate points on the surface of the object, and then calculate the height of the object; depth camera measurement method: perform three-dimensional scanning and measurement of the object to be measured, and use deep learning algorithms to process and analyze the image to achieve height measurement. However, the process of measuring the height of infants and young children through the above-mentioned contact measurement method is relatively cumbersome, and it is also easy to cause discomfort and resistance in infants; through the non-contact measurement method, the measurement equipment cost is high and the measurement accuracy is uncertain, which is easily affected by the measurement accuracy of the equipment.

[0004] Existing Chinese patent CN103156613A discloses a baby height measuring device, which includes: placing an infant within a preset range of the height measuring device and passing through an image acquisition unit to obtain an image containing the infant; inputting the image into an image processing unit of a mobile terminal for analysis to obtain distance information; calculating the data information obtained by the analysis to obtain baby height data; storing the obtained baby height data in the mobile terminal; the image processing unit analyzes the collected image to obtain the length of the image of the unit scale of the ruler in the image, and the distance calculation unit calculates the actual baby height according to the proportional relationship between the length of the collected image in the ruler direction and the length of the image of the unit scale of the ruler. When measuring the baby's height, the baby is placed on a baby scale, the ruler and the mobile terminal are respectively located at the ends of the baby's head and feet, the baby's head is close to the mobile terminal, and the position of the ruler is adjusted so that the ruler is close to the baby's feet. However, the above patent also requires the baby to be fixed on the baby scale, which may easily cause resistance and discomfort in the baby; at the same time, when the baby bends over, leans over, etc., the measurement results of the above patent cannot be adjusted to suit the actual application scenarios, and the measurement results are prone to errors.

[0005] Therefore, how to accurately measure the height of infants and young children without causing resistance and discomfort to them and providing a non-contact measurement method is an urgent problem to be solved. Summary of the invention

[0006] In view of this, the present invention provides a non-contact infant height measurement method, device, equipment and storage medium to solve the problem of low accuracy in infant height measurement in the prior art, which easily causes discomfort and resistance in infants during measurement.

[0007] The technical solution adopted by the present invention is:

[0008] In a first aspect, the present invention provides a non-contact method for measuring the height of an infant, the method comprising:

[0009] S1: obtaining a real-time video stream in a baby care scene, and decomposing the real-time video stream into multiple frame images;

[0010] S2: performing target detection on each of the images to identify the target infant and target marker in each image;

[0011] S3: Analyze the target infant and output a first pixel size corresponding to the target infant;

[0012] S4: Analyze the target marker and output a second pixel size corresponding to the target marker;

[0013] S5: Acquire the actual size of the target marker, and output a conversion ratio between the pixel size and the actual size according to the actual size and the second pixel size;

[0014] S6: Processing the first pixel size according to the conversion ratio, and outputting the height of the infant.

[0015] Preferably, S2 includes:

[0016] S21: inputting each of the images into a pre-trained first target detection model, and outputting first bounding box information corresponding to the target infant;

[0017] S22: Input each of the images into a pre-trained second target detection model, and output second bounding box information corresponding to the target marker;

[0018] S23: Obtain a preset expansion ratio, expand the second bounding box, and output expanded third bounding box information.

[0019] Preferably, S3 includes:

[0020] S31: acquiring an image of an infant within a first bounding box according to the first bounding box information;

[0021] S32: Detect key points of the target infant and output position information of the key points of the infant;

[0022] S33: Analyze the distance between the key points of the infant based on the key point information of the infant, and output the first pixel size.

[0023] Preferably, the key points of the infant include at least: the top of the infant's head, the chin, the left buttock, the right buttock, the left knee, the right knee, the center of the left sole and the center of the right sole.

[0024] Preferably, the S33 includes:

[0025] S331: Obtaining position information of key points of the infant's head top, chin, left buttock, right buttock, left knee, right knee, left sole center and right sole center;

[0026] S332: Analyze the distance between the top of the infant's head and the lower jaw according to the position information of the key points of the top of the infant's head and the lower jaw, and output a first distance;

[0027] S333: Analyze the distance between the infant's lower jaw and buttocks according to the position information of the key points of the infant's lower jaw, left buttocks and right buttocks, and output a second distance;

[0028] S334: Analyze the distance between the infant's buttocks and knees according to the position information of the key points of the infant's left buttocks, right buttocks, left knee and right knee, and output a third distance;

[0029] S335: Analyze the distance between the infant's knee and the center of the sole of the foot according to the position information of the key points of the infant's left knee, right knee, left sole center and right sole center, and output a fourth distance;

[0030] S336: Accumulate and sum the first, second, third and fourth distances, and output the first pixel size.

[0031] Preferably, the S4 includes:

[0032] S41: acquiring a marker image within the third bounding box according to the third bounding box information;

[0033] S42: Detecting the marker image using an edge detection algorithm, and outputting edge line information in the marker image;

[0034] S43: Acquire boundary information of the landmark according to the edge line information;

[0035] S44: Calculate the distances of the intersections of the boundaries according to the boundary information, and output the second pixel size.

[0036] Preferably, the S43 includes:

[0037] S431: using an edge tracking algorithm to process the edge line information and output a plurality of target edge lines;

[0038] S432: Analyze the angle between each of the target edge lines, and output the angle between two target edge lines;

[0039] S433: Determine the angle, and when the angle is within a preset angle range, output a target edge line corresponding to the angle as boundary information of the marker.

[0040] In a second aspect, the present invention provides a non-contact infant height measurement device, the device comprising:

[0041] An image acquisition module is used to acquire a real-time video stream in an infant care scene and decompose the real-time video stream into multiple frames of images;

[0042] A target detection module, used to perform target detection on each of the images, and identify the target infant and target marker in each image;

[0043] An infant analysis module, used to analyze the target infant and output a first pixel size corresponding to the infant target;

[0044] A marker analysis module, used to analyze the target marker and output a second pixel size corresponding to the target marker;

[0045] A conversion ratio acquisition module, used to acquire the actual size of the target marker, and output a conversion ratio between the pixel size and the actual size according to the actual size and the second pixel size;

[0046] The infant height acquisition module is used to process the first pixel size according to the conversion ratio and output the infant height.

[0047] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method of the first aspect in the above-mentioned embodiment.

[0048] In a fourth aspect, an embodiment of the present invention further provides a storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method of the first aspect in the above-mentioned embodiment is implemented.

[0049] In summary, the beneficial effects of the present invention are as follows:

[0050] The present invention provides a non-contact infant height measurement method, device, equipment and storage medium, the method comprising: obtaining a real-time video stream in an infant care scene, and decomposing the real-time video stream into multiple frames of images; performing target detection on each of the images, and outputting a target infant and a target marker in each image; analyzing the target infant, and outputting a first pixel size corresponding to the target infant; analyzing the target marker, and outputting a second pixel size corresponding to the target marker; obtaining the actual size of the target marker, and outputting a conversion ratio between the pixel size and the actual size based on the actual size and the second pixel size; processing the first pixel size based on the conversion ratio, and outputting the infant's height. The present invention obtains the conversion ratio between the pixel size and the actual size by analyzing the first pixel size of the infant and the second pixel size of the target marker, and converts the height of the infant from the pixel unit to the real length unit using the conversion ratio, thereby achieving accurate measurement of the height of the infant, and also helping users understand the growth and development of the infant, formulate appropriate care plans, and discover abnormal situations in time; at the same time, the present invention uses computer vision and image processing technology for detection and measurement to realize an automated measurement process, and can measure the height without direct contact with the infant, avoiding contact methods that may cause discomfort or resistance to the infant, which is conducive to maintaining the comfort and safety of the infant. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.

[0052] Figure 1 This is a schematic diagram of the overall working process of the non-contact infant height measurement method in Example 1 of the present invention;

[0053] Figure 2 This is a schematic diagram of a process for identifying a target infant and a target marker in Example 1 of the present invention;

[0054] Figure 3 This is a schematic diagram of the process of analyzing infants and young children in Example 1 of the present invention;

[0055] Figure 4 This is a schematic diagram of a process for obtaining a first pixel size of an infant in Embodiment 1 of the present invention;

[0056] Figure 5This is a schematic diagram of the process of analyzing the markers in Example 1 of the present invention;

[0057] Figure 6 This is a schematic diagram of the process of obtaining boundary information of a landmark in Example 1 of the present invention;

[0058] Figure 7 This is a structural block diagram of a non-contact infant height measurement device in Embodiment 2 of the present invention;

[0059] Figure 8 It is a schematic diagram of the structure of the electronic device in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described in conjunction with the drawings in the embodiment of the present invention. It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the orientation or position relationship indicated by the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. In the absence of further restrictions, the elements defined by the phrase "comprising..." do not exclude the existence of other identical elements in the process, method, article or device comprising the elements. If there is no conflict, the embodiments of the present invention and the various features in the embodiments can be combined with each other, all within the protection scope of the present invention.

[0061] Example 1

[0062] See also Figure 1 Embodiment 1 of the present invention discloses a non-contact method for measuring the height of infants and young children, the method comprising:

[0063] S1: obtaining a real-time video stream in a baby care scene, and decomposing the real-time video stream into multiple frame images;

[0064] Specifically, a real-time video stream captured by an infant care camera is obtained, the real-time video stream at least including: an infant and a marker, the video stream is a real-time color video stream, and the marker is a preset marker object of known size, such as a whiteboard of A5 paper size, etc. By placing a marker of known size (such as a whiteboard of A5 paper size) in the video scene, a size reference can be provided, so that by detecting and measuring the marker, the size of the infant can be compared with the pre-placed marker, thereby obtaining more accurate size information related to the infant.

[0065] S2: performing target detection on each of the images to identify the target infant and target marker in each image;

[0066] Specifically, the process of performing target detection on each frame image decomposed from the real-time video stream is to identify and locate the target in the image through the target detection algorithm, among which the target infant and target marker are the targets of our interest. The commonly used target detection algorithm is an algorithm based on deep learning, such as YOLOv8s, which processes each frame image obtained by decomposition by inputting the pre-trained target detection model based on the YOLOv8s structure, and outputs the bounding box information of the target infant and target marker. Through this process, we can achieve the detection and identification of the target infant and target marker in each frame image, providing a basis for subsequent analysis and processing.

[0067] In one embodiment, see Figure 2 The non-contact infant height measurement includes:

[0068] S21: inputting each of the images into a pre-trained first target detection model, and outputting first bounding box information corresponding to the target infant;

[0069] Specifically, a large number of image datasets containing target infants and backgrounds are collected, and the collected image datasets are annotated to annotate the corresponding bounding box and category label for each target infant in the image; a suitable target detection model is selected as the basic architecture, such as YOLOv8s, and the network structure, hyperparameters and loss function of the model are configured, and data enhancement operations are performed on the image dataset, such as random cropping, rotation, flipping, etc., to increase the diversity and quantity of data, and pre-process the images, such as normalization and resizing, to adapt to the input requirements of the model, and pre-trained weights or randomly initialized model parameters are used. The large number of collected image datasets are used as training data. The training data is input into the model, and forward propagation and back propagation are performed to calculate the gradient, an optimization algorithm (such as stochastic gradient descent) is used to update the parameters of the model, and the loss function is minimized. The model in the training process is evaluated using a validation set or a test set, and indicators such as accuracy and recall are calculated. The model is tuned according to the evaluation results, such as adjusting the network structure, adjusting the hyperparameters, trying different data enhancement strategies, etc. The trained model is finally verified and the performance is evaluated using an independent test set, and the first target detection model is output, each of the images is input into the pre-trained first target detection model, and the first bounding box information corresponding to the target infant is output.

[0070] S22: Input each of the images into a pre-trained second target detection model, and output second bounding box information corresponding to the target marker;

[0071] Specifically, a large number of image data sets containing target markers are collected, wherein the target markers include at least: objects and patterns of multiple known sizes, the collected image data sets are trained using YOLOv8s, the second target detection model is output, each of the images is input into the pre-trained second target detection model, and the second bounding box position information roi(x, y, w, h) corresponding to the target marker is output, wherein x, y respectively represent the horizontal and vertical coordinates of the upper left corner vertex of the second bounding box, and w, h respectively represent the width and height of the second bounding box.

[0072] S23: Obtain a preset expansion ratio, expand the second bounding box, and output expanded third bounding box information.

[0073] Specifically, a preset expansion ratio is obtained, for example, if the expansion ratio is 0.2, the center of the second bounding box is taken as the target point, and the second bounding box is expanded outward by 20% to obtain a new third bounding box roi_new (x-0.1w, y-0.1h, 1.2w, 1.2h); by expanding the second bounding box, more details and feature information of the target marker can be captured, which helps to improve the accuracy of the target detection algorithm, because the algorithm can use more information to determine the position and category of the target object. At the same time, since the target marker may have scale changes, rotation or partial occlusion in different scenes, by expanding the bounding box, the robustness of the target detection algorithm to these changes can be improved, and increasing the size of the bounding box can alleviate the impact of the scale change or partial occlusion of the target marker on the detection results.

[0074] S3: Analyze the target infant and output a first pixel size corresponding to the target infant;

[0075] Specifically, the pixel size of the target infant in the image is calculated according to the position information of the first bounding box corresponding to the target infant.

[0076] In one embodiment, see Figure 3 , said S3 comprises:

[0077] S31: acquiring an image of an infant within a first bounding box according to the first bounding box information;

[0078] S32: Detect key points of the target infant and output position information of the key points of the infant;

[0079] Specifically, the infant image is input into an infant key point detection model pre-trained based on MoveNet, and the position information of the preset infant key points is output, wherein the infant key points at least include: the top of the infant's head, the chin, the left buttock, the right buttock, the left knee, the right knee, the center of the left sole and the center of the right sole; wherein the steps of training the infant key point detection model are: collecting an image data set containing infants, ensuring that the image data set contains various postures and angles of infants, and annotating each image, the annotation including the position of the infant's key points, downloading and loading the pre-trained MoveNet infant key point detection model, loading the model weights and structure according to the deep learning framework and model format used, and inputting the infant key point detection model. The collected infant images are preprocessed, including image resizing, normalization, and conversion to the format required by the model. The collected images containing infants are input into the MoveNet infant key point detection model for inference. The model will output the predicted position information of infant key points. The model output is parsed to extract the preset position information of infant key points. According to the output format of the model and the order of key points, the required key point positions are extracted, such as the infant's head top, chin, left hip, right hip, left knee, right knee, left foot center, and right foot center key points. The extracted position information of infant key points is output, which can be used as input for infant posture, posture analysis, or subsequent processing. The output position information of infant key points is expressed as coordinates. The output position information of infant key points can be used for posture estimation, action recognition, behavior analysis, and other applications.

[0080] S33: Analyze the distance between the key points of the infant based on the key point information of the infant, and output the first pixel size.

[0081] Specifically, according to the key point information of the infant output in the previous step, the position coordinates of the key points of the top of the infant's head, the chin, the left buttock, the right buttock, the left knee, the right knee, the center of the left sole and the center of the right sole are extracted, and the distance between each key point is calculated using the position coordinates of the key points of the infant, and the distance between the key points can be calculated using the Euclidean distance or other distance measurement methods; according to the calculated distance between the key points, the pixel size of the infant is output, and the distance between the preset key points can be selected as a size reference. By extracting the position coordinates of the key points of the infant and calculating the distance between the key points, information about the size, posture and development of the infant can be obtained, which is helpful for monitoring the growth and development of the infant, as well as for physical measurement and evaluation.

[0082] In one embodiment, see Figure 4 , the S33 comprises:

[0083] S331: Obtaining position information of key points of the infant's head top, chin, left buttock, right buttock, left knee, right knee, left sole center and right sole center;

[0084] Specifically, obtain the position coordinates P1 of the infant's head vertex, the position coordinates P2 of the infant's chin point, the position coordinates P3, P4 of the infant's left and right hip points, the position coordinates P5, P6 of the left and right knee points, and the position coordinates P7, P8 of the center points of the left and right soles of the feet.

[0085] S332: Analyze the distance between the top of the infant's head and the lower jaw according to the position information of the key points of the top of the infant's head and the lower jaw, and output a first distance;

[0086] Specifically, according to the formula L1=d(P1, P2), the Euclidean distance between the top of the infant's head and the chin is calculated as the first distance, where L1 represents the first distance and d() represents the Euclidean distance between two points.

[0087] S333: Analyze the distance between the infant's lower jaw and buttocks according to the position information of the key points of the infant's lower jaw, left buttocks and right buttocks, and output a second distance;

[0088] Specifically, according to the formula L2=d(P2,(P3+P4) / 2), the Euclidean distance 1 between the key points of the infant's lower jaw and buttocks, which is the second distance, is calculated, where L2 represents the second distance.

[0089] S334: Analyze the distance between the infant's buttocks and knees according to the position information of the key points of the infant's left buttocks, right buttocks, left knee and right knee, and output a third distance;

[0090] Specifically, according to the formula L3=(d(P3, P5)+d(P4, P6)) / 2, the Euclidean distance between the key points of the infant's buttocks and knees is calculated as the third distance, where L3 represents the third distance.

[0091] S335: Analyze the distance between the infant's knee and the center of the sole of the foot according to the position information of the key points of the infant's left knee, right knee, left sole center and right sole center, and output a fourth distance;

[0092] Specifically, according to the formula L4=(d(P5, P7)+d(P6, P8)) / 2, the Euclidean distance between the key points of the infant's knee and sole is calculated as the fourth distance, where L4 represents the fourth distance.

[0093] S336: Accumulate and sum the first, second, third and fourth distances, and output the first pixel size.

[0094] Specifically, according to the formula L=L1+L2+L3+L4, the first, second, third and fourth distances are accumulated and summed, and the first pixel size L is output.

[0095] Specifically, by dividing the key points of the infant's body into multiple parts for analysis, more fine-grained size information can be obtained. The distance of each part can provide local information about the size of the part, thereby more accurately reflecting the actual body size of the infant. By locating the position coordinates of the infant's key points, the distance between each body part can be accurately determined, avoiding rough estimates based on the overall body bounding box. This accurate positioning can improve the accuracy and reliability of the measurement results and provide more comprehensive information support for the physical analysis and development assessment of infants.

[0096] S4: Analyze the target marker and output a second pixel size corresponding to the target marker;

[0097] In one embodiment, see Figure 5 , said S4 comprises:

[0098] S41: acquiring a marker image within the third bounding box according to the third bounding box information;

[0099] Specifically, based on the position information of the third bounding box, the marker image within the third bounding box is extracted from the original image. This process can be achieved by a cropping operation, where the area corresponding to the bounding box is cut out from the original image. By extracting the marker image within the third bounding box, we can focus on the target marker and reduce interference from other irrelevant areas. This helps the subsequent edge detection and boundary extraction steps to process the marker more accurately.

[0100] S42: Detecting the marker image using an edge detection algorithm, and outputting edge line information in the marker image;

[0101] Specifically, an edge detection algorithm, such as the Canny edge detection algorithm, is applied to the marker image to capture edge line information in the marker image. The edge detection algorithm extracts the edge portion in the image and represents it as a series of discrete edge points. Through edge detection, we can highlight the edge contours in the marker image and remove unimportant detail information. This makes subsequent boundary extraction more convenient and accurate, which helps to further analyze the shape and size of the marker.

[0102] S43: Acquire boundary information of the landmark according to the edge line information;

[0103] In one embodiment, see Figure 6 , the S43 comprises:

[0104] S431: using an edge tracking algorithm to process the edge line information and output a plurality of target edge lines;

[0105] Specifically, an edge tracking algorithm (such as continuous edge tracking or Hough transform, etc.) is applied to process edge line information. The edge tracking algorithm can connect the broken edge lines to form complete edge lines by tracking the continuity of the edge lines, and extract the longest M edge lines (for example, M=10).

[0106] S432: Analyze the angle between each of the target edge lines, and output the angle between two target edge lines;

[0107] Specifically, the angles between the multiple target edge lines are analyzed. The angle between the two lines can be determined by calculating the angle between the two lines, for example, by using the slope of the lines or the angle of the vectors. By analyzing the angle between the target edge lines, the shape characteristics and relative position relationship of the marker boundary can be obtained, which helps to further understand the structure and shape of the marker and provide more information for subsequent boundary judgment and classification.

[0108] S433: Determine the angle, and when the angle is within a preset angle range, output a target edge line corresponding to the angle as boundary information of the marker.

[0109] Specifically, taking the selected marker as an A5-sized whiteboard as an example, the angle is judged. When the angle satisfies 85<ti<95, the edge line corresponding to the angle is used as the boundary of the marker; by judging the angle, the angle that meets the preset angle range is screened, and the corresponding four target edge lines are output in order as the boundary information of the whiteboard marker.

[0110] S44: Calculate the distances of the intersections of the boundaries according to the boundary information, and output the second pixel size.

[0111] Specifically, the intersection points P (p1, p2, p3, p4) of the four edges are obtained, and the distances dis1, dis2, dis3, and dis4 between the four intersection points are calculated respectively. By finding the boundary intersection points, the outer contour shape of the marker is determined, and the pixel size of the marker is further analyzed.

[0112] S5: Acquire the actual size of the target marker, and output a conversion ratio between the pixel size and the actual size according to the actual size and the second pixel size;

[0113] Specifically, the actual physical distances corresponding to the four edges are obtained as D1, D2, D3, and D4, respectively, and the conversion ratio ratio = (D1 / dis1+D2 / dis2+D3 / dis3+D4 / dis4) / 4. By calculating the conversion ratio, we can establish a mapping relationship between pixel size and actual size, thereby converting the pixel size of infants and young children into actual size. Through the conversion ratio, the actual height of infants and young children can be calculated based on their pixel size, which helps to evaluate and monitor their growth and development.

[0114] S6: Processing the first pixel size according to the conversion ratio, and outputting the height of the infant.

[0115] Specifically, according to the conversion ratio, the height of the infant is calculated using the formula H=ratio*L. By calculating the second pixel size and converting the first pixel size into the height of the infant using the conversion ratio, the pixel size in the image is matched and converted with the actual size based on the boundary information and the actual size of the marker, so as to achieve accurate calculation of the height of the infant.

[0116] Example 2

[0117] See also Figure 7 Embodiment 2 of the present invention further provides a non-contact infant height measurement device, the device comprising:

[0118] An image acquisition module is used to acquire a real-time video stream in an infant care scene and decompose the real-time video stream into multiple frames of images;

[0119] A target detection module, used to perform target detection on each of the images, and identify the target infant and target marker in each image;

[0120] An infant analysis module, used to analyze the target infant and output a first pixel size corresponding to the infant target;

[0121] A marker analysis module, used to analyze the target marker and output a second pixel size corresponding to the target marker;

[0122] A conversion ratio acquisition module, used to acquire the actual size of the target marker, and output a conversion ratio between the pixel size and the actual size according to the actual size and the second pixel size;

[0123] The infant height acquisition module is used to process the first pixel size according to the conversion ratio and output the infant height.

[0124] Specifically, the non-contact infant height measurement device provided by an embodiment of the present invention includes: an image acquisition module, which is used to acquire a real-time video stream in an infant care scene and decompose the real-time video stream into multiple frames of images; a target detection module, which is used to perform target detection on each of the images and identify the target infant and target marker in each image; an infant analysis module, which is used to analyze the target infant and output a first pixel size corresponding to the infant target; a marker analysis module, which is used to analyze the target marker and output a second pixel size corresponding to the target marker; a conversion ratio acquisition module, which is used to acquire the actual size of the target marker and output the conversion ratio between the pixel size and the actual size based on the actual size and the second pixel size; an infant height acquisition module, which is used to process the first pixel size based on the conversion ratio and output the infant height. The device analyzes the first pixel size of the infant and the second pixel size of the target marker to obtain the conversion ratio between the pixel size and the actual size, and uses the conversion ratio to convert the infant's height from pixel units to real length units, thereby achieving accurate measurement of the infant's height, and also helping users understand the growth and development of the infant, formulate appropriate care plans, and promptly discover abnormal situations; at the same time, the present invention uses computer vision and image processing technology for detection and measurement to achieve an automated measurement process, and can measure height without direct contact with the infant, avoiding contact methods that may cause discomfort or resistance to the infant, which is conducive to maintaining the comfort and safety of the infant.

[0125] Example 3

[0126] In addition, combined Figure 1 The non-contact infant height measurement method described in Example 1 of the present invention can be implemented by an electronic device. Figure 8 A schematic diagram of the hardware structure of an electronic device provided in Embodiment 3 of the present invention is shown.

[0127] The electronic device may include a processor and a memory storing computer program instructions.

[0128] Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.

[0129] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside a data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0130] The processor implements any one of the non-contact infant height measurement methods in the above embodiments by reading and executing computer program instructions stored in the memory.

[0131] In one example, the electronic device may further include a communication interface and a bus. Figure 8 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.

[0132] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.

[0133] The bus includes hardware, software or both, and the parts of the device are coupled to each other. For example, but not limitation, the bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In suitable cases, the bus may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0134] Example 4

[0135] In addition, in combination with the non-contact infant height measurement method in the above embodiment 1, embodiment 4 of the present invention can also provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the non-contact infant height measurement methods in the above embodiments is implemented.

[0136] In summary, the embodiments of the present invention provide a non-contact infant height measurement method, device, equipment and storage medium.

[0137] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0138] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0139] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0140] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A non-contact method for measuring the height of infants and young children, characterized in that: The method comprises: S1: obtaining a real-time video stream in a baby care scene, and decomposing the real-time video stream into multiple frame images; S2: performing target detection on each of the images, and outputting the target infant and target marker in each image; S3: Analyze the target infant and output a first pixel size corresponding to the target infant; S4: Analyze the target marker and output a second pixel size corresponding to the target marker; S5: Acquire the actual size of the target marker, and output a conversion ratio between the pixel size and the actual size according to the actual size and the second pixel size; S6: Processing the first pixel size according to the conversion ratio, and outputting the height of the infant; Wherein, the S2 includes: S21: inputting each of the images into a pre-trained first target detection model, and outputting first bounding box information corresponding to the target infant; S22: Input each of the images into a pre-trained second target detection model, and output second bounding box information corresponding to the target marker; S23: Obtain a preset expansion ratio, expand the second bounding box, and output information of the expanded third bounding box; The S4 includes: S41: acquiring a target marker image within the third bounding box according to the third bounding box information; S42: Detect the target marker image using an edge detection algorithm, and output edge line information in the target marker image; S43: Acquire boundary information of the target marker according to the edge line information; S44: Calculating the distances of the intersections of the boundaries according to the boundary information, and outputting the second pixel size; The S43 includes: S431: using an edge tracking algorithm to process the edge line information and output a plurality of target edge lines; S432: Analyze the angle between each of the target edge lines, and output the angle between two target edge lines; S433: Determine the angle, and when the angle is within a preset angle range, output the target edge line corresponding to the angle as the boundary information of the target marker.

2. The non-contact infant height measurement method according to claim 1, characterized in that: The S3 includes: S31: acquiring a target infant image within the first bounding box according to the first bounding box information; S32: Detect key points of the target infant and output position information of the key points of the infant; S33: Analyze the distance between the key points of the infant based on the key point information of the infant, and output the first pixel size.

3. The non-contact infant height measurement method according to claim 2, characterized in that: The key points of the infant include at least: the top of the infant's head, the chin, the left buttock, the right buttock, the left knee, the right knee, the center of the left sole and the center of the right sole.

4. The non-contact infant height measurement method according to claim 3, characterized in that: The S33 includes: S331: Obtaining position information of key points of the infant's head top, chin, left buttock, right buttock, left knee, right knee, left sole center and right sole center; S332: Analyze the distance between the top of the infant's head and the lower jaw according to the position information of the key points of the top of the infant's head and the lower jaw, and output a first distance; S333: Analyze the distance between the infant's lower jaw and buttocks according to the position information of the key points of the infant's lower jaw, left buttocks and right buttocks, and output a second distance; S334: Analyze the distance between the infant's buttocks and knees according to the position information of the key points of the infant's left buttocks, right buttocks, left knee and right knee, and output a third distance; S335: Analyze the distance between the infant's knee and the center of the sole of the foot according to the position information of the key points of the infant's left knee, right knee, left sole center and right sole center, and output a fourth distance; S336: Accumulate and sum the first, second, third and fourth distances, and output the first pixel size.

5. A non-contact infant height measurement device, characterized in that: The device comprises: An image acquisition module is used to acquire a real-time video stream in an infant care scene and decompose the real-time video stream into multiple frames of images; A target detection module, used to perform target detection on each of the images, and identify the target infant and target marker in each image; A target infant analysis module, used to analyze the target infant and output a first pixel size corresponding to the target infant; A target marker analysis module, used to analyze the target marker and output a second pixel size corresponding to the target marker; A conversion ratio acquisition module, used to acquire the actual size of the target marker, and output a conversion ratio between the pixel size and the actual size according to the actual size and the second pixel size; An infant height acquisition module, used to process the first pixel size according to the conversion ratio and output the infant height; The step of analyzing the target infant and outputting the first pixel size corresponding to the target infant includes: Inputting each of the images into a pre-trained first target detection model, and outputting first bounding box information corresponding to the target infant; Inputting each of the images into a pre-trained second target detection model, and outputting second bounding box information corresponding to the target marker; Obtaining a preset expansion ratio, expanding the second bounding box, and outputting information of the expanded third bounding box; The analyzing the target marker and outputting a second pixel size corresponding to the target marker comprises: Acquire a target marker image within the third bounding box according to the third bounding box information; Using an edge detection algorithm to detect the target marker image, and output edge line information in the target marker image; Acquire boundary information of the target marker according to the edge line information; Calculating the distances of the intersections of the boundaries according to the boundary information, and outputting the second pixel size; The step of obtaining the boundary information of the target marker according to the edge line information includes: Using an edge tracking algorithm, the edge line information is processed to output a plurality of target edge lines; Analyze the angle between each of the target edge lines, and output the angle between two target edge lines; The angle is judged, and when the angle is within a preset angle range, a target edge line corresponding to the angle is output as boundary information of the target marker.

6. An electronic device, characterized in that: include: At least one processor, at least one memory and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the method according to any one of claims 1 to 4.

7. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Baby height measuring equipment

    CN103156613A

  • High-precision visual measurement method, device and system based on bionic algorithm

    CN109840889A

  • BMI, body and other object measurements from camera view display

    CN110384481A

  • Measurement device and measurement method

    CN112739975A

  • Offset detection method and device, camera module, terminal equipment and storage medium

    CN113225550A