Height measuring method and system based on industrial camera and readable storage medium
Through the height measurement method based on industrial cameras, the distance between human skeletons and the height prediction is calculated using the regression equation, the problem of being unable to measure the height of patients standing is solved, and convenient and efficient detection results are achieved.
Patent Information
- Application Number
- CN202510259729.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-06
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2045-03-06
AI Technical Summary
The prior art is difficult to accurately measure the height of critically ill patients who cannot stand, especially in intensive care units, where traditional contact measurement methods are impractical for these patients.
The height measurement method based on industrial cameras is used to calculate the distance between the important bones of the human body by taking pictures of the back plate and the human body, and predict height using a multivariate linear regression equation.
The height measurement of patients who cannot stand is achieved, which reduces the detection cost, and the measurement process is convenient, fast and efficient. The results can be used for the guidance dosage of some drugs.
Smart Images

Figure CN119732674A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and more specifically, to a height measurement method, system and readable storage medium based on an industrial camera. Background Art
[0002] Height is an important health parameter employed in fields such as healthcare, aesthetics, and sports. Many non-contact height measurement methods exist; however, most are limited to assessing height in an upright posture.
[0003] It is critical to have an accurate and convenient method to measure human height, which is an important variable in healthcare for calculating body mass index and determining various treatment-related indicators. Height measurement is usually performed in an upright standing position. For non-critical patients, contact methods such as table scales, standing scales or medical measuring devices are usually used.
[0004] However, for critically ill patients in the intensive care unit, it is usually impractical to require them to move or assume an upright position for height measurement. In addition, since critically ill patients often lose consciousness or mobility, this makes it difficult to accurately measure their height. Summary of the invention
[0005] The purpose of the present invention is to provide a height measurement method, system and readable storage medium based on an industrial camera, which can be directly used to measure the height of patients who are unable to stand, wherein the height measurement results can be used to guide the dosage of some drugs. By classifying several important bones of the human body, and then calculating the distance between the bones, the height is predicted by a regression equation. The detection cost is low, and convenient, fast and efficient detection can be achieved when applied.
[0006] A first aspect of the present invention provides a height measurement method based on an industrial camera, comprising the following steps: Correct the measurement zero point to determine the ratio of the actual length of the photographed backplane to the backplane pixels; Based on a preset image acquisition device, a human body image of the person to be measured located at the position of the shooting backboard is acquired; Obtain pixel coordinates based on the human body image, and calculate target feature values based on the pixel coordinates, wherein the target feature values include shoulder-hip distance value, hip-knee distance value, knee-ankle distance value, ankle-bottom distance value, shoulder-mouth distance value, and mouth-nose distance value; The predicted height of a human body is calculated based on the target characteristic value in combination with a preset regression model, wherein the regression model includes a multivariate linear regression equation.
[0007] In this solution, the calibration measurement zero point is used to determine the ratio of the actual length of the photographed backplane to the backplane pixel, specifically including: After the measurement zero point is calibrated, the actual length of the shooting backboard is obtained; Acquire backplane pixels based on the captured image corresponding to the captured backplane; The ratio of the actual length to the backplane pixels is calculated with the actual length as the numerator and the backplane pixels as the denominator.
[0008] In this solution, the preset image acquisition device acquires a human body image of the person to be measured located at the position of the shooting backboard, specifically including: When the person to be tested is within the predicted range of the shooting backboard, starting a shooting operation response; The image acquisition device is controlled to photograph the person to be measured at the position of the shooting backboard, wherein the image acquisition device includes an industrial camera.
[0009] In this solution, pixel coordinates are obtained based on the human body image, and shoulder-hip distance values and hip-knee distance values are calculated based on the pixel coordinates, specifically including: Acquire the number of pixels of a preset joint based on the human body image, and establish a pixel coordinate system based on the number of pixels combined with the ratio; Extracting coordinate values of shoulder feature points, hip feature points, and knee feature points based on the pixel coordinate system; Calculating the shoulder-to-hip distance value based on the shoulder feature point and the hip feature point; The hip-knee distance value is calculated based on the hip feature point and the knee feature point.
[0010] In this solution, the knee-ankle distance value, ankle-bottom distance value, shoulder-mouth distance value and mouth-nose distance value are calculated based on the pixel coordinates, specifically including: Extracting ankle feature points, sole feature points, mouth feature points and nose feature points based on the pixel coordinate system; Calculating the knee-ankle distance value based on the knee feature point and the ankle feature point; Calculating the ankle-sole distance value based on the ankle feature point and the sole feature point; Calculating the shoulder-to-mouth distance value based on the mouth feature point and the shoulder feature point; The mouth-nose distance value is calculated based on the mouth feature points and the nose feature points.
[0011] The second aspect of the present invention further provides a height measurement system based on an industrial camera, comprising a memory and a processor, wherein the memory comprises a height measurement method program based on an industrial camera, and when the height measurement method program based on an industrial camera is executed by the processor, the following steps are implemented: Correct the measurement zero point to determine the ratio of the actual length of the photographed backplane to the backplane pixels; Based on a preset image acquisition device, a human body image of the person to be measured located at the position of the shooting backboard is acquired; Obtain pixel coordinates based on the human body image, and calculate target feature values based on the pixel coordinates, wherein the target feature values include shoulder-hip distance value, hip-knee distance value, knee-ankle distance value, ankle-bottom distance value, shoulder-mouth distance value, and mouth-nose distance value; The predicted height of a human body is calculated based on the target characteristic value in combination with a preset regression model, wherein the regression model includes a multivariate linear regression equation.
[0012] In this solution, the calibration measurement zero point is used to determine the ratio of the actual length of the photographed backplane to the backplane pixel, specifically including: After the measurement zero point is calibrated, the actual length of the shooting backboard is obtained; Acquire backplane pixels based on the captured image corresponding to the captured backplane; The ratio of the actual length to the backplane pixels is calculated with the actual length as the numerator and the backplane pixels as the denominator.
[0013] In this solution, the preset image acquisition device acquires a human body image of the person to be measured located at the position of the shooting backboard, specifically including: When the person to be tested is within the predicted range of the shooting backboard, starting a shooting operation response; The image acquisition device is controlled to photograph the person to be measured at the position of the shooting backboard, wherein the image acquisition device includes an industrial camera.
[0014] In this solution, pixel coordinates are obtained based on the human body image, and shoulder-hip distance values and hip-knee distance values are calculated based on the pixel coordinates, specifically including: Acquire the number of pixels of a preset joint based on the human body image, and establish a pixel coordinate system based on the number of pixels combined with the ratio; Extracting coordinate values of shoulder feature points, hip feature points, and knee feature points based on the pixel coordinate system; Calculating the shoulder-to-hip distance value based on the shoulder feature point and the hip feature point; The hip-knee distance value is calculated based on the hip feature point and the knee feature point.
[0015] In this solution, the knee-ankle distance value, ankle-bottom distance value, shoulder-mouth distance value and mouth-nose distance value are calculated based on the pixel coordinates, specifically including: Extracting ankle feature points, sole feature points, mouth feature points and nose feature points based on the pixel coordinate system; Calculating the knee-ankle distance value based on the knee feature point and the ankle feature point; Calculating the ankle-sole distance value based on the ankle feature point and the sole feature point; Calculating the shoulder-to-mouth distance value based on the mouth feature point and the shoulder feature point; The mouth-nose distance value is calculated based on the mouth feature points and the nose feature points.
[0016] A third aspect of the present invention provides a computer-readable storage medium, which includes a machine's height measurement method program based on an industrial camera. When the height measurement method program based on an industrial camera is executed by a processor, the steps of a height measurement method based on an industrial camera as described in any one of the above items are implemented.
[0017] The present invention discloses a height measurement method, system and readable storage medium based on an industrial camera, which can be directly used to measure the height of patients who are unable to stand. The height measurement results can be used to guide the dosage of some drugs. Several important bones of the human body are classified, and then the distance between the bones is calculated and the height is predicted by a regression equation. The detection cost is low, and convenient, fast and efficient detection can be achieved when applied. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A schematic diagram of the steps of a height measurement method based on an industrial camera of the present invention is shown; Figure 2 A height calculation flow chart of a height measurement method based on an industrial camera according to the present invention is shown; Figure 3 A schematic diagram of a scene of taking a human body picture in a height measurement method based on an industrial camera according to the present invention is shown; Figure 4 A schematic diagram of human body measurement skeleton of a height measurement method based on an industrial camera of the present invention is shown; Figure 5 A block diagram of a height measurement system based on an industrial camera of the present invention is shown; Figure 6 A schematic diagram of measuring the height of a subject when a height measurement system based on an industrial camera of the present invention is used is shown. DETAILED DESCRIPTION
[0019] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0020] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0021] Figure 1 A flow chart of a height measurement method based on an industrial camera of the present application is shown.
[0022] like Figure 1 As shown, the present application discloses a height measurement method based on an industrial camera, comprising the following steps: S102, calibrating the measurement zero point to determine the ratio of the actual length of the photographed back plate to the back plate pixel; S104, collecting a human body image of the person to be measured located at the position of the shooting backboard based on a preset image acquisition device; S106, obtaining pixel coordinates based on the human body image, and calculating target feature values based on the pixel coordinates, wherein the target feature values include a shoulder-hip distance value, a hip-knee distance value, a knee-ankle distance value, an ankle-bottom distance value, a shoulder-mouth distance value, and a mouth-nose distance value; S108, calculating the predicted height of a human body based on the target feature value in combination with a preset regression model, wherein the regression model includes a multivariate linear regression equation.
[0023] It should be noted that, in this embodiment, an innovative non-contact human height measurement method is proposed, which specifically combines the Media-Pipe library with the advanced YOLOv8 model to accurately extract joint coordinates and calculate bone length. By applying the multiple linear regression function, human height can be effectively predicted from image data, showing a high degree of accuracy and reliability. In subsequent practical applications, it can be used to determine the height of individuals in various standing and lying positions, greatly broadening the application scenarios of industrial cameras through real-time measurement.
[0024] Specifically, Figure 2 As shown, it is a height calculation flow chart, in which pictures are collected to identify the features of the pictures, and the features of the pictures are converted into pixels and coordinates, and then the length of each bone part is calculated, and finally the final height is calculated using a multivariate linear regression equation.
[0025] Furthermore, during measurement, the measurement zero point is first calibrated to determine the ratio of the actual length of the shooting backboard to the backboard pixel, and a body picture of the person to be measured located at the shooting backboard position is acquired based on a preset image acquisition device. After the body picture is obtained, pixel coordinates are acquired based on the body picture, and target feature values are calculated based on the pixel coordinates, wherein the target feature values include shoulder-hip distance values, hip-knee distance values, knee-ankle distance values, ankle-bottom distance values, shoulder-mouth distance values, and mouth-nose distance values. Finally, the predicted height of the human body is calculated based on the target feature values in combination with a preset regression model, wherein the regression model includes a multivariate linear regression equation.
[0026] According to an embodiment of the present invention, the calibration measurement zero point is used to determine the ratio of the actual length of the photographed backplane to the backplane pixel, specifically including: After the measurement zero point is calibrated, the actual length of the shooting backboard is obtained; Acquire backplane pixels based on the captured image corresponding to the captured backplane; The ratio of the actual length to the backplane pixels is calculated with the actual length as the numerator and the backplane pixels as the denominator.
[0027] It should be noted that, in this embodiment, it is necessary to first perform an adjustment to recalibrate the zero point to determine the ratio k of the actual length of the back plate and the back plate pixel: ; Among them, height (cm) represents the actual length of the shooting backplane, and dis (pixel) represents the backplane pixels of the shooting backplane.
[0028] According to an embodiment of the present invention, the preset image acquisition device acquires a human body image of the person to be measured located at the position of the shooting backboard, specifically including: When the person to be tested is within the predicted range of the shooting backboard, starting a shooting operation response; The image acquisition device is controlled to photograph the person to be measured at the position of the shooting backboard, wherein the image acquisition device includes an industrial camera.
[0029] It should be noted that, in this embodiment, Figure 3 As shown, a schematic diagram of a scene for taking a human body picture is displayed, wherein when the person to be tested is located within the predicted range of the shooting backboard, a shooting operation response is started, for example, the person to be tested (patient) is located within 1 meter of the shooting backboard, that is, the predicted range is 1 meter, thereby controlling the image acquisition device to shoot the person to be tested at the position of the shooting backboard, wherein the image acquisition device includes an industrial camera.
[0030] According to an embodiment of the present invention, obtaining pixel coordinates based on the human body image, and calculating the shoulder-hip distance value and the hip-knee distance value based on the pixel coordinates specifically include: Acquire the number of pixels of a preset joint based on the human body image, and establish a pixel coordinate system based on the number of pixels combined with the ratio; Extracting coordinate values of shoulder feature points, hip feature points, and knee feature points based on the pixel coordinate system; Calculating the shoulder-to-hip distance value based on the shoulder feature point and the hip feature point; The hip-knee distance value is calculated based on the hip feature point and the knee feature point.
[0031] According to an embodiment of the present invention, calculating the knee-ankle distance value, the ankle-bottom distance value, the shoulder-mouth distance value, and the mouth-nose distance value based on the pixel coordinates specifically includes: Extracting ankle feature points, sole feature points, mouth feature points and nose feature points based on the pixel coordinate system; Calculating the knee-ankle distance value based on the knee feature point and the ankle feature point; Calculating the ankle-sole distance value based on the ankle feature point and the sole feature point; Calculating the shoulder-to-mouth distance value based on the mouth feature point and the shoulder feature point; The mouth-nose distance value is calculated based on the mouth feature points and the nose feature points.
[0032] It should be noted that, in this embodiment, Figure 4 As shown, it is a schematic diagram of human body bone measurement. The OpenCV library is initially used for image processing, and then the Media-Pipe library is used to extract the x, y and z coordinates, as well as the number of pixels of each joint. According to the actual measurement effect, this embodiment divides the human body into six parts, and calculates the distances of the six parts respectively, which are the shoulder-hip distance values , the hip-knee distance value , the knee-ankle distance value , the ankle base distance value , the shoulder distance value and the mouth-nose distance value .
[0033] Specifically, in this embodiment, the number of pixels of the preset joints is obtained based on the human body image, a pixel coordinate system is established based on the number of pixels combined with the ratio to normalize the coordinates, and y is obtained from MediaPipe i、 x i, Then use the following formula to convert pixels into coordinate system: ; Among them, X i, Y i Represents the transformed pixel coordinate system, y i、 x i Obtained from Media-Pipe, image_width is the width of the captured image, image_height is the height of the captured image, and then the pixel coordinates are used to calculate the distance between the landmarks and the length of the skeleton segment in the human body. The coordinates of the midpoint of the shoulder and the midpoint of the hip are used to calculate the distance : ; The hip coordinates are ( , )and( , ), the shoulder coordinates are ( , )and( , ), k is the ratio of the actual length of the photographed backplane to the backplane pixels.
[0034] Skeletal part Hip to knee distance : ; The hip coordinates are ( , ), the knee coordinates are ( , ).
[0035] Likewise, the distance from knee to ankle : ; The ankle coordinates are ( , ), the knee coordinates are ( , ).
[0036] Distance from ankle to sole : ; The ankle coordinates are ( , ), the sole coordinates are ( , )and( , ).
[0037] Distance from the middle of the shoulder to the middle of the mouth : ; Among them, the mouth coordinates are ( , )and( , ), the shoulder coordinates are ( , )and( , ).
[0038] Calculation formula from the midpoint of the mouth to the nose : ; Among them, the mouth coordinates are ( , )and( , ), the nose coordinates are ( , ).
[0039] According to an embodiment of the present invention, the step of calculating the predicted height of a human body based on the target feature value in combination with a preset regression model specifically includes: Extracting a correlation coefficient table based on the multivariate linear regression equation; The predicted height of a human body is calculated based on matching the corresponding target characteristic values in the correlation coefficient table, wherein the predicted height of a human body is calculated based on multiplying and accumulating different correlation coefficients with the corresponding target characteristic values.
[0040] It should be noted that, in this embodiment, after calculating the length of each bone segment, we applied a multivariate linear regression equation to predict human height. The formula is as follows: ; in, is the predicted height; is the shoulder-to-hip distance value, is the hip-knee distance value, is the knee-ankle distance value, is the ankle base distance value, is the shoulder distance value, is the mouth-nose distance value; , , , …, is the correlation coefficient obtained in the process of training the multivariate linear regression model, and ε is a constant. In this embodiment, the value of ε after training is 73.78 cm in one embodiment, which can be adjusted according to actual applications.
[0041] Figure 5 A block diagram of a height measurement system based on an industrial camera of the present invention is shown.
[0042] like Figure 5 As shown, the present invention discloses a height measurement system based on an industrial camera, including a memory and a processor, wherein the memory includes a height measurement method program based on an industrial camera, and when the height measurement method program based on an industrial camera is executed by the processor, the following steps are implemented: Correct the measurement zero point to determine the ratio of the actual length of the photographed backplane to the backplane pixels; Based on a preset image acquisition device, a human body image of the person to be measured located at the position of the shooting backboard is acquired; Obtain pixel coordinates based on the human body image, and calculate target feature values based on the pixel coordinates, wherein the target feature values include shoulder-hip distance value, hip-knee distance value, knee-ankle distance value, ankle-bottom distance value, shoulder-mouth distance value, and mouth-nose distance value; The predicted height of a human body is calculated based on the target characteristic value in combination with a preset regression model, wherein the regression model includes a multivariate linear regression equation.
[0043] It should be noted that, since the specific implementation of this embodiment corresponds to the aforementioned method embodiment, the same details will not be repeated here.
[0044] Specifically, in practical applications, Figure 6 As shown, it is a schematic diagram of the application of measuring the height of the subject, wherein: Figure 6 The "black-cover" in the figure means that when training a model (such as image classification), a black square or mask may be used to partially cover the image in order to improve the robustness of the model to occlusion. The "black-cover, 0.94" represents the area ratio of the occluded area (indicates the opacity of the black mask ("94%" is opaque, and "6%" of the image content is visible). Figure 6 (a) shows the upright posture. Figure 6 (b) shows a 45° rotation. Figure 6 (c) shows a horizontal 90° rotation posture. Figure 6 (d) in the figure shows a schematic diagram of the kneeling position. Specifically, the first is the upright position. The subject needs to stand straight and look straight ahead. This position simulates the human body in a natural state, without tilt or rotation. The predicted height calculation formula is as follows: ; Among them, the prediction results of “17” subjects in upright posture are shown in Table 1. Table 1. Prediction results for subjects in an upright posture .
[0045] The second is the 45° rotation pose, where the subject is required to turn the body 45° to the camera while looking straight ahead. This pose simulates the human body at a smaller angle and may affect the way the bone segments are presented in the image. The formula for predicting height is as follows: ; Among them, the prediction results of “17” subjects in 45° rotation posture are shown in Table 2. Table 2. Prediction results for subjects in a 45° rotation posture .
[0046] Next is the horizontal 90° rotation pose, where the subject rotates the body 90° from the camera direction and keeps looking straight ahead. This pose simulates the human body at a larger angle and illustrates the possible position of the patient in the hospital bed. This helps to better explore the differences in bone segment measurements when the body is in a horizontal state, which is of great significance in medical applications. The predicted height calculation formula is as follows: ; Finally, in the kneeling position, the subject rotates the body 90 degrees while bending the knees. This position is particularly critical for understanding the changes in bone segments when the body is in a bent knee state, simulating the situation where the body is not completely upright. The predicted height calculation formula is as follows: ; Among them, the prediction results of “17” subjects in 90° rotation posture are shown in Table 3. Table 3. Prediction results for subjects in a 90° rotation posture .
[0047] A third aspect of the present invention provides a computer-readable storage medium, which includes a height measurement method program based on an industrial camera. When the height measurement method program based on an industrial camera is executed by a processor, the steps of a height measurement method based on an industrial camera as described in any one of the above items are implemented.
[0048] The present invention discloses a height measurement method, system and readable storage medium based on an industrial camera, which can be directly used to measure the height of patients who are unable to stand. The height measurement results can be used to guide the dosage of some drugs. Several important bones of the human body are classified, and then the distance between the bones is calculated and the height is predicted by a regression equation. The detection cost is low, and convenient, fast and efficient detection can be achieved when applied.
[0049] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0050] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0051] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0052] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0053] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
Claims
1. A height measurement method based on an industrial camera, characterized in that: The following steps are involved: Correct the measurement zero point to determine the ratio of the actual length of the photographed backplane to the backplane pixels; Based on a preset image acquisition device, a human body image of the person to be measured located at the position of the shooting backboard is acquired; Obtain pixel coordinates based on the human body image, and calculate target feature values based on the pixel coordinates, wherein the target feature values include shoulder-hip distance value, hip-knee distance value, knee-ankle distance value, ankle-bottom distance value, shoulder-mouth distance value, and mouth-nose distance value; The predicted height of a human body is calculated based on the target characteristic value in combination with a preset regression model, wherein the regression model includes a multivariate linear regression equation.
2. A height measurement method based on an industrial camera according to claim 1, characterized in that: The calibration measurement zero point is used to determine the ratio of the actual length of the back plate to the back plate pixel, specifically including: After the measurement zero point is calibrated, the actual length of the shooting backboard is obtained; Acquire backplane pixels based on the captured image corresponding to the captured backplane; The ratio of the actual length to the backplane pixels is calculated with the actual length as the numerator and the backplane pixels as the denominator.
3. A height measurement method based on an industrial camera according to claim 2, characterized in that: The method of collecting a human body image of the person to be measured located at the position of the shooting backboard based on a preset image acquisition device specifically includes: When the person to be tested is within the predicted range of the shooting backboard, starting a shooting operation response; The image acquisition device is controlled to photograph the person to be measured at the position of the shooting backboard, wherein the image acquisition device includes an industrial camera.
4. A height measurement method based on an industrial camera according to claim 3, characterized in that: Acquiring pixel coordinates based on the human body image, and calculating shoulder-hip distance values and hip-knee distance values based on the pixel coordinates, specifically includes: Acquire the number of pixels of a preset joint based on the human body image, and establish a pixel coordinate system based on the number of pixels combined with the ratio; Extracting coordinate values of shoulder feature points, hip feature points, and knee feature points based on the pixel coordinate system; Calculating the shoulder-to-hip distance value based on the shoulder feature point and the hip feature point; The hip-knee distance value is calculated based on the hip feature point and the knee feature point.
5. A height measurement method based on an industrial camera according to claim 4, characterized in that: Calculating the knee-ankle distance value, ankle-bottom distance value, shoulder-mouth distance value, and mouth-nose distance value based on the pixel coordinates specifically includes: Extracting ankle feature points, sole feature points, mouth feature points and nose feature points based on the pixel coordinate system; Calculating the knee-ankle distance value based on the knee feature point and the ankle feature point; Calculating the ankle-sole distance value based on the ankle feature point and the sole feature point; Calculating the shoulder-to-mouth distance value based on the mouth feature point and the shoulder feature point; The mouth-nose distance value is calculated based on the mouth feature points and the nose feature points.
6. A height measurement method based on an industrial camera according to claim 5, characterized in that: The step of calculating the predicted height of a human body based on the target feature value in combination with a preset regression model specifically includes: Extracting a correlation coefficient table based on the multivariate linear regression equation; The predicted height of a human body is calculated based on matching the corresponding target characteristic values in the correlation coefficient table, wherein the predicted height of a human body is calculated based on multiplying and accumulating different correlation coefficients with the corresponding target characteristic values.
7. A height measurement system based on an industrial camera, characterized in that: The device comprises a memory and a processor, wherein the memory comprises a height measurement method program based on an industrial camera, and when the height measurement method program based on an industrial camera is executed by the processor, the following steps are implemented: Correct the measurement zero point to determine the ratio of the actual length of the photographed backplane to the backplane pixels; Based on a preset image acquisition device, a human body image of the person to be measured located at the position of the shooting backboard is acquired; Obtain pixel coordinates based on the human body image, and calculate target feature values based on the pixel coordinates, wherein the target feature values include shoulder-hip distance value, hip-knee distance value, knee-ankle distance value, ankle-bottom distance value, shoulder-mouth distance value, and mouth-nose distance value; The predicted height of a human body is calculated based on the target characteristic value in combination with a preset regression model, wherein the regression model includes a multivariate linear regression equation.
8. The height measurement system based on an industrial camera according to claim 7, characterized in that: The calibration measurement zero point is used to determine the ratio of the actual length of the back plate to the back plate pixel, specifically including: After the measurement zero point is calibrated, the actual length of the shooting backboard is obtained; Acquire backplane pixels based on the captured image corresponding to the captured backplane; The ratio of the actual length to the backplane pixels is calculated with the actual length as the numerator and the backplane pixels as the denominator.
9. A height measurement system based on an industrial camera according to claim 8, characterized in that: The method of collecting a human body image of the person to be measured located at the position of the shooting backboard based on a preset image acquisition device specifically includes: When the person to be tested is within the predicted range of the shooting backboard, starting a shooting operation response; The image acquisition device is controlled to photograph the person to be measured at the position of the shooting backboard, wherein the image acquisition device includes an industrial camera.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a height measurement method program based on an industrial camera. When the height measurement method program based on an industrial camera is executed by a processor, the steps of a height measurement method based on an industrial camera as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Target object 3D measurement parameter acquisition method and system based on depth image, and storage medium
CN110349195A
Method and device for generating 3D joint regression model
CN111260774A
High-precision monitoring system for height of children
CN113040750A
Method and device for measuring height
CN116369901A
Human body height detection method based on skeleton key point recognition
CN116831560A