Absolute respiration amplitude measuring method and device based on structured light, terminal equipment and storage medium
Video acquisition through structured light and sensors, and a linear fitting model combining spot spacing and respiratory amplitude characteristics, the problem of the inability to measure absolute respiratory amplitude in the prior art is solved, and accurate absolute respiratory amplitude measurement is achieved to assist disease diagnosis.
Patent Information
- Application Number
- CN202510907582.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-02
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2045-07-02
AI Technical Summary
The prior art cannot directly measure the absolute breathing amplitude, and most of them are limited to measurements of the breathing amplitude range.
The target object surface is irradiated by structural light, the initial video is collected using the target sensor, the spot spacing and breathing amplitude characteristics are calculated, and the linear fitting model is used for measurement and calculation, and the absolute breathing amplitude is calibrated in combination with the preset spacing and breathing amplitude algorithm.
Accurate measurement of absolute breathing amplitude is achieved, and medical staff are assisted in diagnosing chronic obstructive pneumonia, asthma and other diseases.
Smart Images

Figure CN120392068A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of biomedical engineering technology. More specifically, this application relates to a method, device, terminal device and storage medium for measuring the absolute respiratory amplitude based on structured light. Background Art
[0002] The absolute respiratory amplitude refers to the maximum distance of chest expansion and contraction during the breathing process, and is often used to assist medical staff in evaluating the respiratory function of patients. That is, medical staff can evaluate the respiratory function of patients based on the absolute respiratory amplitude. However, in the prior art, the measurement of the characteristics of respiratory signals is mostly limited to the respiratory amplitude range, and the absolute respiratory amplitude cannot be directly measured. For example, the traditional method is to obtain the historical respiratory signals of the target object in a preset time interval; slide a preset window on the historical respiratory signals, decompose the historical respiratory signals in the preset window after sliding based on the EMD algorithm, iteratively adjust the window length according to the frequency concentration characteristics of the signal components, segment the historical respiratory signals to obtain respiratory segments; obtain the clustering distance between two corresponding respiratory segments according to the difference in respiratory amplitude and the difference in signal components between any two respiratory segments; cluster the respiratory segments based on the clustering distance, and each cluster corresponds to a respiratory pattern; according to the overall characteristics of the respiratory amplitude range of all respiratory segments within each cluster and the distribution characteristics of the frequencies of all first signal components, obtain the respiratory amplitude range of each respiratory pattern. This method can only be used to measure the respiratory amplitude range and cannot directly measure the absolute respiratory amplitude. Therefore, the prior art still needs to be improved. Summary of the Invention
[0003] The purpose of the embodiments of this application is to provide a method, device, terminal device and storage medium for measuring the absolute respiratory amplitude based on structured light, which can realize the measurement of the absolute respiratory amplitude. The embodiments of this application are mainly implemented through the following technical solutions: In the first aspect of the embodiments of this application, a method for measuring the absolute respiratory amplitude based on structured light is provided, including: When structured light irradiates the surface of the target object, use a target sensor to collect the initial video of the surface of the target object; Calculate the first target average spot spacing based on all the light spots on each frame of the initial video; Perform respiratory amplitude feature extraction processing on the initial video, and perform average value calculation processing on the extracted respiratory amplitude features to obtain the first average respiratory amplitude; Use the first linear fitting model to perform measurement and calculation processing on the first average respiratory amplitude and the first target average spot spacing to obtain the absolute respiratory amplitude of the target object.
[0004] According to an embodiment of the present application, the step of calculating a first target average spot spacing based on all the light spots on each frame image in the initial video includes: Calculate the distance between each light spot on each frame image in the initial video and the nearest light spot on the same frame image, and obtain a first distance corresponding to each light spot on each frame image; Perform an averaging calculation process on all the first distances to obtain the first target average spot spacing.
[0005] According to an embodiment of the present application, the step of performing a respiratory amplitude feature extraction process on the initial video and performing an averaging calculation process on the extracted respiratory amplitude features to obtain a first average respiratory amplitude includes: Perform a respiratory signal extraction process on the initial video to obtain a plurality of target respiratory signals corresponding to the initial video, wherein each target respiratory signal has a one-to-one correspondence with one of the light spots on the first frame image in the initial video; Set a first sliding window and a step size; Based on the first sliding window and the step size, perform an amplitude extraction process on each target respiratory signal to obtain a target amplitude corresponding to each target respiratory signal; Perform an averaging calculation process on all the target amplitudes to obtain the first average respiratory amplitude.
[0006] According to an embodiment of the present application, after the step of using a first linear fitting model to perform a measurement and calculation process on the first average respiratory amplitude and the first target average spot spacing to obtain the absolute respiratory amplitude of the target object, the method for measuring the absolute respiratory amplitude based on structured light further includes: Obtain a second distance between the target sensor and the surface of the target object and a third distance between the photosensitive element and the lens in the target sensor; Use a preset spacing measurement algorithm to perform a ratio calculation process on the second distance and the third distance to obtain a second target average spot spacing of the structured light irradiated on the surface of the target object; Use a preset average respiratory amplitude measurement algorithm to perform a ratio calculation process on the second distance and the third distance to obtain a second average respiratory amplitude; Use a second linear fitting model to perform a measurement and calculation process on the second average respiratory amplitude and the second target average spot spacing to obtain a calibration value; Calibrate the absolute respiratory amplitude based on the calibration value.
[0007] According to an embodiment of the present application, the ratio of the second distance and the third distance is calculated by using a preset spacing measurement algorithm, and the calculation formula for the second target average spot spacing of the structured light irradiating the surface of the target object is: ; Wherein, is the second target average spot spacing of the structured light irradiating the surface of the target object; is the average value of all spot spacings of the structured light irradiating the surface of the target object; is the third distance; is the second distance.
[0008] According to an embodiment of the present application, the ratio of the second distance and the third distance is calculated by using a preset average breathing amplitude measurement algorithm, and the calculation formula for the second average breathing amplitude is: ; Wherein, is the second average breathing amplitude; is the displacement generated in the horizontal direction of the focal plane at the same observation point of the focal plane of the target sensor when the target object undergoes a vertical displacement.
[0009] According to an embodiment of the present application, the first linear fitting model is used to measure and calculate the first average breathing amplitude and the first target average spot spacing, and the calculation formula for the absolute breathing amplitude of the target object is: ; Wherein, is the absolute breathing amplitude; is the angle formed by the straight line connecting the lens center of the target sensor and the center of the surface of the target object and the straight line in the vertical direction of the center of the surface of the target object; is the first average breathing amplitude; is the first target average spot spacing; is a preset error.
[0010] In the second aspect of the embodiments of the present application, a measurement device for the absolute breathing amplitude based on structured light is provided, including: An initial video acquisition module, configured to collect an initial video of the surface of the target object by using a target sensor when the structured light irradiates the surface of the target object; A first target average spot spacing calculation module, configured to calculate a first target average spot spacing based on all spots in each frame of the initial video; The first average breathing amplitude obtaining module is configured to perform breathing amplitude feature extraction processing on the initial video, and perform average value calculation processing on the extracted breathing amplitude features to obtain a first average breathing amplitude; The measurement and calculation module is configured to perform measurement and calculation processing on the first average breathing amplitude and the first target average spot spacing by using a first linear fitting model to obtain the absolute breathing amplitude of the target object.
[0011] In the third aspect of the embodiments of the present application, a terminal device is provided, including: a processor and a memory. The memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the steps of the method for measuring the absolute breathing amplitude based on structured light provided in the first aspect of the embodiments of the present application.
[0012] In the fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided. The computer-readable storage medium is used to store a computer program, and the computer program causes a computer to execute the steps of the method for measuring the absolute breathing amplitude based on structured light provided in the first aspect of the embodiments of the present application.
[0013] The beneficial effects of the embodiments of the present application include: The embodiments of the present application combine the average spot spacing of structured light and the average breathing amplitude of the breathing signal to measure the absolute breathing amplitude. Specifically, in the embodiments of the present application, when structured light irradiates the surface of the target object, an initial video of the surface of the target object is collected by using a target sensor; a first target average spot spacing is calculated based on all the spots on each frame of the image in the initial video; breathing amplitude feature extraction processing is performed on the initial video, and average value calculation processing is performed on the extracted breathing amplitude features to obtain a first average breathing amplitude; the first average breathing amplitude and the first target average spot spacing are subjected to measurement and calculation processing by using a first linear fitting model to obtain the absolute breathing amplitude of the target object. Thus, compared with the prior art that cannot directly measure the absolute breathing amplitude, the embodiments of the present application can achieve the measurement of the absolute breathing amplitude. Description of the Drawings
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0015] Figure 1 It is a flowchart of the method for measuring the absolute breathing amplitude based on structured light of the present application in some embodiments; Figure 2 Flowchart of the method for measuring the absolute respiration amplitude based on structured light according to some other embodiments of the present application; Figure 3 Reference diagram of the positional relationship between the target sensor and the target object in some embodiments; Figure 4 Reference diagram of the positional relationship between the target sensor and the target object in some other embodiments; Figure 5 Principle block diagram of the device for measuring the absolute respiration amplitude based on structured light according to some embodiments of the present application; Figure 6 Principle block diagram of the terminal device according to some embodiments of the present application. Detailed implementation manners
[0016] To make the above objects, features, and advantages of the present application more obvious and understandable, the following describes the detailed implementation manners of the present application with reference to the accompanying drawings. Many specific details are set forth in the following description to fully understand the present application. However, the present application can be implemented in many other ways different from those described herein. Those skilled in the art can make similar improvements without departing from the connotation of the present application. Therefore, the present application is not limited by the specific embodiments disclosed below.
[0017] It should be noted that the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of the present application, "a plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
[0018] The term "exemplary" or "such as" is used to indicate an example, illustration, or explanation. Any embodiment or design solution described as "exemplary" or "such as" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of the term "exemplary" or "such as" is intended to present the relevant concepts in a specific manner.
[0019] The term "comprising", "including", or any other variant thereof is intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0020] Unless otherwise defined, all technical and scientific terms used in the specification of this application have the same meaning as commonly understood by those skilled in the technical field to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in the specification of this application includes any and all combinations of one or more of the related listed items.
[0021] The following further describes the specific embodiments of this application in conjunction with the accompanying drawings.
[0022] Reference Figure 1 As shown, it is a flowchart of a method for measuring the absolute respiration amplitude based on structured light provided in the first aspect of the embodiment of this application. In Figure 1 it, the method for measuring the absolute respiration amplitude based on structured light includes: S1. When the structured light irradiates the surface of the target object, use the target sensor to collect the initial video of the surface of the target object.
[0023] The surface of the target object may be the abdominal area or the chest area of the target object.
[0024] The target sensor is a camera.
[0025] In other embodiments, a single laser light source may be used to replace the structured light, and specifically, it can be set by those skilled in the art according to actual needs. In the case of using a single laser light source, the absolute respiration amplitude extracted at different distances can be calibrated according to the size of the laser spot.
[0026] S2. Calculate the first target average spot spacing based on all the spots on each frame of the initial video.
[0027] Further, the steps of S2 include: calculating the distance between each spot on each frame of the initial video and the nearest spot on the same frame of the image to obtain the first distance corresponding to each spot on each frame of the image; performing an average calculation process on all the first distances to obtain the first target average spot spacing.
[0028] S3. Perform respiration amplitude feature extraction processing on the initial video, and perform an average calculation process on the extracted respiration amplitude features to obtain the first average respiration amplitude.
[0029] Further, step S3 includes: performing respiratory signal extraction processing on the initial video to obtain a plurality of target respiratory signals corresponding to the initial video, wherein each target respiratory signal has a one-to-one correspondence with one of the light spots on the first frame image in the initial video; setting a first sliding window and a step size; performing amplitude extraction processing on each target respiratory signal based on the first sliding window and the step size to obtain a target amplitude corresponding to each target respiratory signal; and performing average value calculation processing on all the target amplitudes to obtain the first average respiratory amplitude.
[0030] The length of the first sliding window is set to 7 seconds, and 210 frames of images are included within 7 seconds. In other embodiments, the length of the first sliding window can be set by those skilled in the art according to actual needs.
[0031] The step size is set to 2.33 seconds, and 70 frames of images are included within 2.33 seconds. In other embodiments, the length of the step size can be set by those skilled in the art according to actual needs.
[0032] Further, the step of performing respiratory signal extraction processing on the initial video to obtain a plurality of target respiratory signals corresponding to the initial video, wherein each target respiratory signal has a one-to-one correspondence with one of the light spots on the first frame image in the initial video includes: performing region of interest recognition processing on the first frame image to obtain a target region of interest; performing binarization processing on each frame image of the initial video using the Bradley threshold method (the Bradley threshold method is an adaptive threshold algorithm for image binarization) to obtain a binarized image corresponding to each frame image, and locating each light spot in the target region of interest of each binarized image; using the regionprops function of MATLAB software (the regionprops function is used to measure various attributes of the labeled connected regions in the image) to obtain the bounding box of each light spot from each binarized image; and calculating the target respiratory signal corresponding to each light spot based on the bounding box corresponding to each light spot. Specifically, reference can be made to Figure 2 the steps of "initial video", "region of interest", "bounding box", and "target respiratory signal" in
[0033] The region of interest recognition processing operation can be implemented by an edge detection algorithm or a convolutional neural network. In other embodiments, the region of interest recognition processing can also be implemented by other algorithms, which can be specifically set by those skilled in the art according to actual needs.
[0034] The region of interest can be the abdominal region or the chest region of the target object.
[0035] Further, after obtaining the bounding box of each light spot from each binary image using the regionprops function of MATLAB software, the initial video is subjected to respiratory signal extraction processing to obtain a plurality of target respiratory signals corresponding to the initial video, wherein the step that each target respiratory signal has a one-to-one correspondence with one of the light spots on the first frame image in the initial video further includes: increasing the bounding box of each light spot by a preset number of pixels in the y-axis direction. The implementation of this step can improve the integrity of the target respiratory signal.
[0036] The preset number of pixels is 20 pixels. In other embodiments, the specific value of the preset number of pixels can be set by those skilled in the art according to actual needs.
[0037] Further, based on the bounding box corresponding to each light spot, the step of calculating the target respiratory signal corresponding to each light spot using the optical flow method includes: using the optical flow method to estimate the target features of each pixel point within the bounding box corresponding to each light spot in a plurality of predetermined directions between consecutive frames; performing cumulative sum calculation processing on all the target features of each pixel point within the bounding box corresponding to each light spot in each predetermined direction between consecutive frames to obtain the displacement signal corresponding to each pixel point within the bounding box corresponding to each light spot in each predetermined direction between consecutive frames; calculating the average value of all the displacement signals in each predetermined direction to obtain the physiological motion signal corresponding to each predetermined direction; and performing fusion processing on the physiological motion signals in all the predetermined directions to obtain the target respiratory signal corresponding to each light spot.
[0038] The plurality of predetermined directions are the horizontal direction and the vertical direction. In other embodiments, those skilled in the art can set other directions according to actual needs.
[0039] The target feature is the velocity component. In other embodiments, those skilled in the art can set other features according to actual needs, such as the acceleration component.
[0040] Further, before the step of using the optical flow method to estimate the target features of each pixel point within the bounding box corresponding to each light spot in a plurality of predetermined directions between consecutive frames, the step of calculating the target respiratory signal corresponding to each light spot using the optical flow method based on the bounding box corresponding to each light spot further includes: subtracting the mean value of the bounding box corresponding to each light spot.
[0041] Further, while obtaining the bounding box of each light spot from each binary image using the regionprops function of MATLAB software, the centroid of each light spot is also obtained from each binary image using the regionprops function. The centroid can be used to calculate the light spot spacing.
[0042] Further, the step of calculating the target respiration signal corresponding to each light spot based on the bounding box corresponding to each light spot and using the optical flow method further includes: using a second sliding window to extract the moving distance of each light spot and calculating the zero-mean displacement. This step can eliminate the influence of background motion on signal extraction and improve the signal-to-noise ratio of the target respiration signal.
[0043] Further, the step of performing amplitude extraction processing on each target respiration signal based on the first sliding window and the step size to obtain the target amplitude corresponding to each target respiration signal includes: performing partitioning processing on each target respiration signal based on the first sliding window and the step size to obtain multiple sub-signals corresponding to each target respiration signal; performing standard deviation extraction processing on each sub-signal to obtain the target standard deviation corresponding to each sub-signal; using all the target standard deviations corresponding to each target respiration signal as the target amplitude.
[0044] S4. Use a first linear fitting model to perform measurement and calculation processing on the first average respiration amplitude and the first target average light spot spacing to obtain the absolute respiration amplitude of the target object. Step S4 can refer to Figure 2 the steps of "average respiration amplitude", "average light spot spacing", "ratio", and "absolute respiration amplitude" in
[0045] The measurement of the absolute respiration amplitude is used to assist medical staff in diagnosing diseases such as chronic obstructive pulmonary disease, asthma, pneumonia, and heart disease.
[0046] Further, the calculation formula of S4 is: ; where is the absolute respiration amplitude; is the angle formed by the straight line connecting the lens center of the target sensor and the center of the surface of the target object and the straight line in the vertical direction of the center of the surface of the target object; is the first average respiration amplitude; is the first target average light spot spacing; is the preset error. The preset error is caused by the potential misalignment between the focal plane of the target sensor and the highest position of the surface of the target object and the tiny error between. That is Figure 2 the "ratio" step in
[0047] Through the above embodiments, the embodiments of the present application can achieve the measurement of the absolute respiration amplitude and ensure the accuracy of the absolute respiration amplitude.
[0048] In some embodiments, after the step of S4, the method for measuring the absolute respiration amplitude based on structured light further includes: obtaining a second distance between the target sensor and the surface of the target object and a third distance between the photosensitive element and the lens in the target sensor; performing a ratio calculation process on the second distance and the third distance by using a preset spacing measurement algorithm to obtain a second target average spot spacing at which the structured light irradiates the surface of the target object; performing a ratio calculation process on the second distance and the third distance by using a preset average respiration amplitude measurement algorithm to obtain a second average respiration amplitude; performing a measurement calculation process on the second average respiration amplitude and the second target average spot spacing by using a second linear fitting model to obtain a calibration value; and calibrating the absolute respiration amplitude based on the calibration value.
[0049] Further, the calculation formula for obtaining the second target average spot spacing at which the structured light irradiates the surface of the target object by performing a ratio calculation process on the second distance and the third distance by using a preset spacing measurement algorithm is: ; wherein, is the second target average spot spacing at which the structured light irradiates the surface of the target object; is the average value of all spot spacings at which the structured light irradiates the surface of the target object; is the third distance; is the second distance. 、 、 and can be referred to Figure 3 as shown.
[0050] Further, the calculation formula for obtaining the second average respiration amplitude by performing a ratio calculation process on the second distance and the third distance by using a preset average respiration amplitude measurement algorithm is: ; wherein, is the second average respiration amplitude; is the displacement generated in the horizontal direction of the focal plane at the same observation point of the focal plane of the target sensor when the target object undergoes a vertical displacement. 、 、 and can be referred to Figure 4 as shown.
[0051] Further, when the target object undergoes a vertical displacement, the calculation formula for the displacement generated by the same observation point of the target object on the focal plane of the target sensor in the horizontal direction of the focal plane is: ; Wherein, is the vertical displacement undergone by the target object.
[0052] Further, a second linear fitting model is adopted to measure and calculate the second average breathing amplitude and the second target average spot spacing, and the calculation formula for obtaining the calibration value is: ; Wherein, is the calibration value.
[0053] Further, the steps of calibrating the absolute breathing amplitude based on the calibration value include: comparing the calibration value with the absolute breathing amplitude, and in the case where the calibration value is not equal to the absolute breathing amplitude, taking the calibration value as the absolute breathing amplitude.
[0054] Reference Figure 5 As shown, it is a principle block diagram of a measurement device for absolute breathing amplitude based on structured light provided in the second aspect of the embodiments of the present application. In Figure 5 , the measurement device 100 for absolute breathing amplitude based on structured light includes: An initial video acquisition module 101, configured to acquire an initial video of the surface of the target object by using a target sensor when structured light irradiates the surface of the target object; A first target average spot spacing calculation module 102, configured to calculate a first target average spot spacing based on all spots on each frame of the image in the initial video; A first average breathing amplitude obtaining module 103, configured to perform breathing amplitude feature extraction processing on the initial video, and perform average value calculation processing on the extracted breathing amplitude features to obtain a first average breathing amplitude; A measurement calculation module 104, configured to perform measurement and calculation processing on the first average breathing amplitude and the first target average spot spacing by using a first linear fitting model to obtain the absolute breathing amplitude of the target object.
[0055] The third aspect of the embodiments of the present application provides a terminal device, and the principle block diagram of the terminal device may be as Figure 6As shown. The terminal device includes a processor, a memory, a network interface, a display screen, and a temperature sensor connected via a system bus. Among them, the processor is used to provide computing and control capabilities. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the terminal device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for measuring the absolute respiration amplitude based on structured light is implemented. The display screen can be a liquid crystal display screen or an electronic ink display screen. The temperature sensor is pre-set inside the terminal device and is used to detect the operating temperature of the internal device.
[0056] Those skilled in the art can understand that Figure 6 the block diagram of the principle shown only shows the block diagram of some structures related to the solution of the present invention and does not constitute a limitation on the terminal device to which the solution of the present invention is applied. The specific terminal device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout.
[0057] In some embodiments, the present application provides a terminal device. The terminal device includes a processor and a memory. The memory is used to store a computer program. The processor is used to call and run the computer program stored in the memory and execute the steps of the method for measuring the absolute respiration amplitude based on structured light provided in the first aspect of the embodiments of the present application. In the fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided. The computer-readable storage medium is used to store a computer program. The computer program causes a computer to execute the steps of the method for measuring the absolute respiration amplitude based on structured light provided in the first aspect of the embodiments of the present application.
[0058] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided by the present invention can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0059] Without changing the basic principle of the present application, the technical features of the above embodiments can be combined. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0060] The above embodiments only represent several implementation manners of the present application, and their descriptions are relatively specific and detailed, but they should not be construed as a limitation on the scope of the patent application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the patent protection scope of the present application should be subject to the appended claims.
Claims
1. A method for measuring the absolute respiration amplitude based on structured light, characterized in that, Including: When structured light irradiates the surface of a target object, using a target sensor to collect an initial video of the surface of the target object; Calculating a first target average spot spacing based on all the light spots on each frame image in the initial video; Performing breath amplitude feature extraction processing on the initial video, and performing average value calculation processing on the extracted breath amplitude features to obtain a first average breath amplitude; Using a first linear fitting model to perform measurement calculation processing on the first average breath amplitude and the first target average spot spacing to obtain the absolute breath amplitude of the target object.
2. The measurement method of the absolute respiration amplitude based on structured light according to claim 1, characterized in that The step of calculating a first target average spot spacing based on all the light spots on each frame image in the initial video includes: Calculating the distance between each light spot on each frame image in the initial video and the nearest light spot on the same frame image to obtain a first distance corresponding to each light spot on each frame image; Performing average value calculation processing on all the first distances to obtain the first target average spot spacing.
3. The method for measuring the absolute respiration amplitude based on structured light according to claim 1, characterized in that, The step of performing breath amplitude feature extraction processing on the initial video and performing average value calculation processing on the extracted breath amplitude features to obtain a first average breath amplitude includes: Performing breath signal extraction processing on the initial video to obtain a plurality of target breath signals corresponding to the initial video, where each target breath signal has a one-to-one correspondence with one of the light spots on the first frame image in the initial video; Setting a first sliding window and a step size; Performing amplitude extraction processing on each target breath signal based on the first sliding window and the step size to obtain a target amplitude corresponding to each target breath signal; Performing average value calculation processing on all the target amplitudes to obtain the first average breath amplitude.
4. The method for measuring the absolute respiration amplitude based on structured light according to claim 1, wherein After the step of using a first linear fitting model to perform measurement calculation processing on the first average breath amplitude and the first target average spot spacing to obtain the absolute breath amplitude of the target object, the method for measuring the absolute breath amplitude based on structured light further includes: Obtaining a second distance between the target sensor and the surface of the target object and a third distance between the photosensitive element and the lens in the target sensor; Performing ratio calculation processing on the second distance and the third distance using a preset spacing measurement algorithm to obtain a second target average spot spacing of the structured light irradiating the surface of the target object; Performing ratio calculation processing on the second distance and the third distance using a preset average breath amplitude measurement algorithm to obtain a second average breath amplitude; Using a second linear fitting model to perform measurement calculation processing on the second average breath amplitude and the second target average spot spacing to obtain a calibration value; Calibrating the absolute breath amplitude based on the calibration value.
5. The measurement method of the absolute respiration amplitude based on structured light according to claim 4, wherein The calculation formula for performing ratio calculation processing on the second distance and the third distance using a preset spacing measurement algorithm to obtain a second target average spot spacing of the structured light irradiating the surface of the target object is: ; Wherein, is the second target average spot spacing of the structured light irradiating the surface of the target object; is the average value of all spot spacings of the structured light irradiating the surface of the target object; is the third distance; is the second distance.
6. The method for measuring the absolute respiration amplitude based on structured light according to claim 5, wherein The calculation formula for performing ratio calculation processing on the second distance and the third distance using a preset average breath amplitude measurement algorithm to obtain a second average breath amplitude is: ; wherein, is the second average respiration amplitude; is the displacement generated in the horizontal direction of the focal plane of the target sensor at the same observation point on the focal plane of the target object when the target object undergoes a vertical displacement.
7. The method for measuring the absolute respiration amplitude based on structured light according to claim 6, characterized in that The first linear fitting model is used to measure, calculate and process the first average breathing amplitude and the first target average spot spacing, and the calculation formula for the absolute breathing amplitude of the target object is obtained as follows: ; Among them, is the absolute respiration amplitude; is the angle formed by the straight line connecting the lens center of the target sensor and the center of the surface of the target object, and the straight line in the vertical direction of the center of the surface of the target object; is the first average respiration amplitude; is the first target average spot spacing; is the preset error.
8. A measuring device for the absolute respiration amplitude based on structured light, characterized in that, Including: An initial video acquisition module, configured to, when structured light irradiates the surface of a target object, acquire an initial video of the surface of the target object by using a target sensor; A first target average spot spacing calculation module, configured to calculate a first target average spot spacing based on all spots on each frame of image in the initial video; A first average breathing amplitude acquisition module, configured to perform breathing amplitude feature extraction processing on the initial video, and perform average value calculation processing on the extracted breathing amplitude features to obtain a first average breathing amplitude; A measurement and calculation module, configured to use the first linear fitting model to measure, calculate and process the first average breathing amplitude and the first target average spot spacing to obtain the absolute breathing amplitude of the target object.
9. A terminal device, characterized in that, Including: A processor and a memory, where the memory is used to store a computer program, and the processor is configured to call and run the computer program stored in the memory to execute the steps of the method for measuring the absolute breathing amplitude based on structured light according to any one of claims 1 to 7 above.
10. A computer-readable storage medium, characterized in that, For storing a computer program, which causes a computer to execute the steps of the method for measuring the absolute breathing amplitude based on structured light according to any one of claims 1 to 7 above.
Citation Information
Patent Citations
Respiratory rate detection method and device, electronic equipment and storage medium
CN116115214A
Respiratory frequency detection method and device, electronic equipment and storage medium
CN118402776A
Breathing detector
CN218165260U
System and Method for Remotely Identifying and Characterizing Life Physiological Signs
US20150157224A1
Respiration monitoring system using a structured light
US20230380717A1