A height measurement method, apparatus, device and medium

By constructing a virtual calibration rod using an image acquisition component and an actual calibration rod, the problems of low efficiency and high cost in traditional height measurement are solved, achieving efficient and accurate height measurement.

CN116807451BActive Publication Date: 2026-03-20ZHEJIANG DAHU ARTIFICIAL INTELLIGENCE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

Traditional height measurement methods are inefficient and prone to operational errors, while existing multi-sensor devices are expensive.

Method used

Using an image acquisition component and at least three vertically set actual calibration rods, the coordinates of the top of the target object's head and the bottom of its feet are obtained through image processing, a virtual calibration rod is constructed, and the height is calculated using the virtual calibration rod.

Benefits of technology

It improves the efficiency and accuracy of height measurement, reduces equipment costs, and is suitable for measuring multiple people without human intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116807451B_ABST
    Figure CN116807451B_ABST
Patent Text Reader

Abstract

The application discloses a height measurement method, device, equipment and medium, and the image acquisition component is used to acquire the to-be-measured image of a target object; the head top coordinate and the foot bottom coordinate of the target object and the actual calibration point coordinate set of at least three actual calibration rods are acquired based on the to-be-measured image; the virtual calibration rod with the foot bottom coordinate as the bottom point is constructed according to the foot bottom coordinate and the actual calibration point coordinate set of at least three actual calibration rods, and the virtual calibration point coordinate set on the virtual calibration rod is acquired; and the height of the target object is acquired according to the head top coordinate and the virtual calibration point coordinate set. The application solves the problems of low efficiency, inaccuracy and high cost in multi-person height measurement, and realizes that only the virtual calibration rod needs to be constructed based on the actual calibration rod and the coordinate of the target object in the to-be-measured image when the height of multiple persons is measured, and the height is accurately obtained by using the virtual calibration rod.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of machine vision height measurement, and in particular to a height measurement method, device, equipment and medium. BACKGROUND

[0002] The traditional height measurement method uses a ruler to measure, which requires personnel cooperation and has low measurement efficiency. In addition, personnel operation errors occur during measurement, affecting accuracy.

[0003] Some height measurement devices are provided in the prior art, such as using multiple sensors, but the height measurement device using multiple sensors has the problem of high price. SUMMARY

[0004] The present application aims to provide a height measurement method, device, equipment and medium, which solves the defects that the height measurement in the prior art cannot balance the equipment cost and measurement efficiency.

[0005] The first aspect of the present application provides a height measurement method, which is applied to a height measurement device, the device comprising an image acquisition component and at least three vertical actual calibration rods, the actual calibration rods having at least two actual calibration points;

[0006] The image acquisition component acquires a to-be-measured image of a target object, the to-be-measured image presenting the top of the head and the bottom of the feet of the target object, and the at least three actual calibration rods;

[0007] Based on the to-be-measured image, the coordinates of the top of the head and the bottom of the feet of the target object are obtained, and the actual calibration point coordinate set of the at least three actual calibration rods is obtained;

[0008] According to the coordinates of the bottom of the feet and the actual calibration point coordinate set of the at least three actual calibration rods, a virtual calibration rod with the coordinates of the bottom of the feet as the bottom point is constructed, and a virtual calibration point coordinate set on the virtual calibration rod is obtained;

[0009] According to the coordinates of the top of the head and the virtual calibration point coordinate set, the height of the target object is obtained.

[0010] As a preferred embodiment, obtaining the coordinates of the top of the head and the bottom of the feet of the target object based on the to-be-measured image, and obtaining the actual calibration point coordinate set of the at least three actual calibration rods comprises:

[0011] According to the distortion parameters of the image acquisition component, the to-be-measured image is corrected for distortion to obtain a corrected image;

[0012] Based on the corrected image, the coordinates of the top of the head and the bottom of the feet of the target object are obtained, and the actual calibration point coordinate set of the at least three actual calibration rods is obtained.

[0013] As preferred, the correction image is a correction video frame cut from the to-be-tested image.

[0014] As preferred, the at least three actual calibration rods are staggered in the to-be-tested image.

[0015] As preferred, the actual calibration point coordinate set comprises a bottom point coordinate of the actual calibration rod and a segment point coordinate above the bottom point coordinate; and the virtual calibration point coordinate set on the virtual calibration rod is obtained by:

[0016] According to the distance between the bottom point coordinate and the foot bottom coordinate, a weight coefficient of the virtual calibration rod relative to each actual calibration rod is configured;

[0017] Based on the segment point coordinate of each actual calibration rod and the weight coefficient, the virtual calibration point coordinate set on the virtual calibration rod is obtained.

[0018] As preferred, the virtual calibration point coordinate set has at least two virtual calibration point coordinates; and the height of the target object is obtained by:

[0019] A first virtual calibration point coordinate and a second virtual calibration point coordinate adjacent to the head top coordinate are obtained;

[0020] According to the relative positions of the head top coordinate, the first virtual calibration point coordinate and the second virtual calibration point coordinate, the height of the target object is determined.

[0021] As preferred, according to the relative positions of the head top coordinate, the first virtual calibration point coordinate and the second virtual calibration point coordinate, the height of the target object is determined by:

[0022] According to the relative position of the head top coordinate and the first virtual calibration point coordinate, a first Euclidean distance is determined;

[0023] According to the relative position of the head top coordinate and the second virtual calibration point coordinate, a second Euclidean distance is determined;

[0024] The height of the target object is: h = ∑ m L j +d m / (d m +d m+1 )×L m+1 , wherein m is the number of segments on the virtual calibration rod below the head top coordinate, L j is a length value corresponding to the jth segment of the virtual calibration rod, d m is the first Euclidean distance, d m+1 is the second Euclidean distance, and L m+1 is a real length corresponding to the m+1th segment of the virtual calibration rod.

[0025] The second aspect of the present application provides a height measuring device, the device comprising:

[0026] an image acquisition module, configured to acquire a to-be-measured image of a target object by an image acquisition component, the to-be-measured image presenting a head top part and a foot bottom part of the target object, and at least three actual calibration rods;

[0027] an actual coordinate acquisition module, configured to acquire a head top part coordinate and a foot bottom part coordinate of the target object, and an actual calibration point coordinate set of the at least three actual calibration rods based on the to-be-measured image;

[0028] a virtual coordinate acquisition module, configured to construct a virtual calibration rod with the foot bottom part coordinate as a bottom point according to the foot bottom part coordinate and the actual calibration point coordinate set of the at least three actual calibration rods, and acquire a virtual calibration point coordinate set on the virtual calibration rod;

[0029] a height measurement module, configured to acquire a height of the target object according to the head top part coordinate and the virtual calibration point coordinate set.

[0030] A third aspect of the present application provides a height measurement device, comprising a memory and one or more processors, the memory storing executable code, and the one or more processors are configured to execute the executable code to implement any of the above height measurement methods.

[0031] A fourth aspect of the present application provides a computer readable storage medium, which stores a program, and the program is executed by a processor to implement any of the above height measurement methods.

[0032] The present application has at least the following beneficial effects: the present application provides a height measurement method, device, equipment and medium, solves the problem that the height measurement cannot balance the equipment cost and the measurement efficiency, especially when multiple people measure the height, only the virtual calibration rod is constructed based on the actual calibration rod and the coordinate of the target object in the to-be-measured image, and the height is accurately obtained by using the virtual calibration rod, and the measurement efficiency is significantly improved. BRIEF DESCRIPTION OF DRAWINGS

[0033] Figure 1 a flowchart of the height measurement method provided by the embodiment of the present application;

[0034] Figure 2 a flowchart of acquiring the actual coordinate provided by the embodiment of the present application;

[0035] Figure 3 a flowchart of acquiring the virtual calibration point coordinate set provided by the embodiment of the present application;

[0036] Figure 4 a flowchart of acquiring the height of the target object provided by the embodiment of the present application;

[0037] Figure 5A flowchart of a height determination process of a target object is provided for the embodiment of the present application.

[0038] Figure 6 A structural diagram of a height measurement device is provided for the embodiment of the present application.

[0039] Figure 7 An internal structure diagram of an electronic device is provided for the embodiment of the present application. DETAILED DESCRIPTION

[0040] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the scope of the application or its application or uses. Any other embodiments, falling within the scope of the application, are possible and are contemplated by the inventors as falling within the scope of the application, based on the embodiments disclosed herein, without requiring undue experimentation or undue period of time.

[0041] It is apparent that the accompanying drawings described below are only some examples or embodiments of the present application, and for those skilled in the art, the present application can be applied to other similar scenarios without creative labor on the basis of these drawings. In addition, it can be understood that although the efforts made in this development process can be complex and lengthy, for those skilled in the art related to the disclosure of the present application, some design, manufacture or production changes based on the technical content disclosed in the present application are only routine technical means, and should not be understood as insufficient disclosure of the present application.

[0042] In the present application, the term "embodiment" means that the specific features, structures or characteristics described in conjunction with the embodiment can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor is it an independent or alternative embodiment that is not mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in the present application can be combined with other embodiments without conflict.

[0043] Unless otherwise defined, technical terms and scientific terms used in the present application shall have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. Unless otherwise defined, the terms "one", "a", "an", "the" and like terms referring to an element will not be limited to the singular but can comprise one or more elements unless otherwise indicated. The terms "comprising", "including", "containing", and any variations thereof, are intended to cover a non-exclusive inclusion such that a process, method, system, product, or apparatus that comprises a list of steps or units (elements) not only "consists" of those steps or units but can also include additional steps or units not expressly listed or inherent to such process, method, product, or apparatus. The terms "connected", "coupled", and "linked", and like terms, are not limited to direct and physical connections or associations but can include indirect and wireless connections or associations. The term "plurality" means two or more. The term "and / or" describes association between associated objects and means that there are three possible relations: for example, "A and / or B" can mean A alone, A and B together, or B alone. The character " / " generally means an "or" relation between associated objects. The terms "first", "second", "third", and the like, merely distinguish similar objects, and do not necessarily indicate a specific order.

[0044] The embodiment of the present application provides a height measurement method, which is applied to a height measurement device. The device comprises an image acquisition component and at least three vertical actual calibration rods. The actual calibration rods have at least two actual calibration points. Figure 1 As shown in the flowchart of the height measurement method provided by the embodiment of the present application, Figure 1 The method comprises the following steps:

[0045] In step S101, the image acquisition component acquires a to-be-measured image of a target object. The to-be-measured image presents the top of the head and the bottom of the feet of the target object, and at least three actual calibration rods.

[0046] In step S101, the image acquisition component can be a video camera, a still camera, or a mobile phone, a tablet computer, and a wearable device with an image acquisition function. The to-be-measured image is acquired by the image acquisition component. The to-be-measured image presents the top of the head and the bottom of the feet of the target object whose height needs to be measured, and at least three actual calibration rods which need to be used subsequently. The to-be-measured image can be a photo image or a video image.

[0047] In step S102, the top-of-the-head coordinates and the bottom-of-the-feet coordinates of the target object are acquired based on the to-be-measured image, and the actual calibration point coordinate set of the at least three actual calibration rods.

[0048] In one embodiment, the actual calibration rods are staggered in the image to be measured. In this way, each actual calibration rod constitutes an effective reference object of the target object in the subsequent measurement process, thereby improving the accuracy of the subsequent measurement.

[0049] A visual calibration section is arranged on the actual calibration rod. For example, different color blocks are arranged on the actual calibration rod, and the different color blocks are staggered to segment the actual calibration rod. The segment points are located at the joints between adjacent color blocks. Alternatively, a scale is arranged on the actual calibration rod to indicate the segment points. The length value of the jth segment of the actual calibration rod is L j In this way, the actual calibration rods are staggered.

[0050] In the measurement process, the actual calibration rods are staggered in the image to be measured by the image acquisition component. Accordingly, the bottom point coordinates of each actual calibration rod are different in the image to be measured. In this way, each actual calibration rod constitutes an effective reference object of the target object in the subsequent measurement process, thereby improving the accuracy of the subsequent measurement.

[0051] In step S102, the length of each actual calibration rod is fixed, and the length value of the jth segment is L j The actual calibration point coordinates (x ij ,y ij ) of each actual calibration rod are obtained, where i=1, 2, 3, …, a, j=0, 1, 2, 3, …, b, a and b are positive integers; that is, (x i0 ,y i0 ) is the bottom point coordinate of the ith actual calibration rod, the segment point coordinate above the bottom point coordinate of the ith actual calibration rod, and the height corresponding to (x ij ,y ij ) is ∑L j .

[0052] Figure 2 The flowchart for obtaining the actual coordinates provided by the embodiment of the present application is shown in FIG. 1, and the steps of the flowchart are as follows: Figure 2 Figure 1 The step S102 includes the following steps based on the flowchart shown in FIG. 1:

[0053] In step S201, the image to be measured is corrected according to the distortion parameters of the image acquisition component to obtain a corrected image.

[0054] In one embodiment, the corrected image is a corrected video frame cut from the image to be measured. The distortion and distortion of the corrected video frame can make the subsequent detected image more accurate, thereby making the final height measurement data more accurate.

[0055] ​Step S202: Based on the corrected image, obtain the coordinates of the top of the target object's head and the bottom of its feet, as well as the coordinate set of the actual calibration points of at least three actual calibration rods.

[0056] Continue to refer to Figure 1 Step S103 is executed after step S102.

[0057] Step S103: Based on the coordinates of the bottom of the foot and the coordinate set of the actual calibration points of at least three actual calibration rods, construct a virtual calibration rod with the coordinates of the bottom of the foot as the base point, and obtain the coordinate set of virtual calibration points on the virtual calibration rod.

[0058] In one embodiment, the actual calibration point coordinate set includes the coordinates of the bottom point of the actual calibration rod, and the coordinates of the segment points located above the bottom point coordinates.

[0059] Figure 3 This is a schematic diagram of the process for obtaining a set of virtual calibration point coordinates provided in an embodiment of the present invention, as shown below. Figure 3 As shown, in Figure 1 Based on the process shown, step S103 includes the following steps:

[0060] Step S301: Based on the distance between the bottom coordinates of the foot and the bottom coordinates of at least three actual calibration rods, configure the weight coefficient of the virtual calibration rod relative to each actual calibration rod.

[0061] Step S302: Based on the coordinates of the midpoints of each actual calibration rod and the weighting coefficients, obtain the set of virtual calibration point coordinates on the virtual calibration rod.

[0062] In a preferred embodiment, the coordinates of the foot's bottom are (x0, y0), and the coordinates of the head's top are (x1, y1). Based on the foot's bottom coordinates (x0, y0) and the actual calibration rod's midpoint coordinates (x1, y1), the coordinates of the foot's bottom are determined. i0 ,y i0 The distance d between them i Configure the weighting coefficient w of the virtual calibration rod relative to each actual calibration rod. i The distance d here i Distance similarity or linear interpolation can be used to obtain the distance. In the following embodiments, distance similarity is used as an example for illustration. If the distance d i The closer they are, the higher the weighting coefficient w is configured. i The higher;

[0063] The weighting coefficient is: w i =1 / (d i +n), where n is a smoothing parameter, n>0, preferably n>0 and n≤1.

[0064] The set of coordinates of virtual calibration points on the virtual calibration rod (x kj ,y kj )for:

[0065] w =∑w i

[0066] x kj =∑x ij *w i / w

[0067] y kj =∑y ij *w i / w

[0068] wherein, k = 1, 2, 3, …, n, n is a positive integer.

[0069] With reference back to Figure 1 , step S104 is performed after step S103.

[0070] Step S104, obtaining the height of the target object according to the head top coordinate and the set of virtual calibration point coordinates.

[0071] In one embodiment, the set of virtual calibration point coordinates has at least two virtual calibration point coordinates.

[0072] Figure 4 A flowchart of obtaining the height of the target object according to an embodiment of the present application is shown in Figure 4 , based on the flowchart shown in Figure 1 , step S104 includes the following steps:

[0073] Step S401, obtaining a first virtual calibration point coordinate and a second virtual calibration point coordinate adjacent to the head top coordinate.

[0074] Step S402, determining the height of the target object according to the relative positions of the head top coordinate, the first virtual calibration point coordinate and the second virtual calibration point coordinate.

[0075] Figure 5 A flowchart of determining the height of the target object according to an embodiment of the present application is shown in Figure 5 , based on the flowchart shown in Figure 4 , step S402 includes the following steps:

[0076] Step S501, determining a first Euclidean distance according to the relative position of the head top coordinate and the first virtual calibration point coordinate;

[0077] Step S502, determining a second Euclidean distance according to the relative position of the head top coordinate and the second virtual calibration point coordinate;

[0078] Step S503, the height of the target object is: h =∑ m L j +dm (d m m+1 )×L m+1 , wherein m is the number of segments on the virtual calibration rod below the head coordinate, L j is the length value corresponding to the jth segment of the virtual calibration rod, d m is the first Euclidean distance, d m+1 is the second Euclidean distance, L m+1 is the actual length corresponding to the m+1th segment of the virtual calibration rod.

[0079] As a preferred embodiment, the coordinates of the first adjacent virtual calibration point (x km , y km ) under the head coordinate (x1, y1) and the coordinates of the second adjacent virtual calibration point (x km+1 , y km+1 ) above the head coordinate (x1, y1) are obtained, the first Euclidean distance d m between the head coordinate (x1, y1) and the first virtual calibration point (x km , y km ) is calculated, the second Euclidean distance d m+1 between the head coordinate (x1, y1) and the second virtual calibration point (x km+1 , y km+1 ) is calculated, and finally: h = ∑ m L j +d m / (d m +d m+1 )×L m+1 The height of the target object can be accurately calculated, and the unit of h is cm.

[0080] Through the above steps S101 to S104, the head coordinate and the foot coordinate of the target object are obtained, and the actual calibration point coordinate set of at least three actual calibration rods is obtained, a virtual calibration rod with the foot coordinate as the bottom point is constructed, the virtual calibration point coordinate set on the virtual calibration rod is obtained, and finally the height of the target object is obtained according to the head coordinate and the virtual calibration point coordinate set. Compared with the height data measured by the traditional manual operation height measuring device or multiple sensors in the prior art, only one camera is needed in the embodiment, and the height of multiple people can be automatically measured through machine vision, which improves the efficiency and has no constraint effect on the personnel.

[0081] ​It is noted that the steps illustrated in the above flow or in the flow diagrams of the accompanying drawings can be executed by computer systems such as a set of computers executable instructions, and although shown in a particular sequence in the flow diagrams, unless otherwise specified, the ordering of steps can differ from that which is shown.

[0082] The embodiments also provide a height measuring device for implementing the above embodiments and preferred embodiments, which have been described above. As used below, the terms "module", "unit", "sub-unit" and the like can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware or a combination of software and hardware implementation is also possible and contemplated.

[0083] Figure 6 The height measuring device provided by the embodiments of the present application is shown in the structural schematic diagram as Figure 6 The device comprises:

[0084] The image acquisition module 601 is configured to acquire a to-be-measured image of a target object by using an image acquisition component, the to-be-measured image showing a top-of-head part and a bottom-of-foot part of the target object, and at least three actual calibration rods.

[0085] In one embodiment, the at least three actual calibration rods are staggered in the to-be-measured image.

[0086] The actual coordinate acquisition module 602 is configured to acquire a top-of-head coordinate and a bottom-of-foot coordinate of the target object, and an actual calibration point coordinate set of the at least three actual calibration rods based on the to-be-measured image.

[0087] In one embodiment, the actual coordinate acquisition module 602 performs the following steps:

[0088] The to-be-measured image is corrected for distortion according to a distortion parameter of the image acquisition component to obtain a corrected image.

[0089] The corrected image is a corrected video frame cut from the to-be-measured image.

[0090] The top-of-head coordinate and the bottom-of-foot coordinate of the target object, and the actual calibration point coordinate set of the at least three actual calibration rods are acquired based on the corrected image.

[0091] The virtual coordinate acquisition module 603 is configured to construct a virtual calibration rod with the bottom-of-foot coordinate as a bottom point according to the bottom-of-foot coordinate and the actual calibration point coordinate set of the at least three actual calibration rods, and acquire a virtual calibration point coordinate set on the virtual calibration rod.

[0092] In one embodiment, the virtual coordinate acquisition module 603 performs the following steps:

[0093] According to the distance between the foot bottom coordinate and the bottom point coordinate of each actual calibration rod, a weight coefficient of the virtual calibration rod relative to each actual calibration rod is configured;

[0094] Based on the middle point coordinate of each actual calibration rod and the weight coefficient, a virtual calibration point coordinate set on the virtual calibration rod is obtained.

[0095] The height measurement module 604 is configured to obtain the height of the target object according to the head top coordinate and the virtual calibration point coordinate set.

[0096] In one embodiment, the height measurement module 604 performs the following steps:

[0097] Obtain the first virtual calibration point coordinate and the second virtual calibration point coordinate adjacent to the head top coordinate;

[0098] Determine the height of the target object according to the relative position of the head top coordinate and the first virtual calibration point coordinate and the second virtual calibration point coordinate.

[0099] Here, determining the height of the target object according to the relative position of the head top coordinate and the first virtual calibration point coordinate and the second virtual calibration point coordinate includes:

[0100] Determine the first Euclidean distance according to the relative position of the head top coordinate and the first virtual calibration point coordinate;

[0101] Determine the second Euclidean distance according to the relative position of the head top coordinate and the second virtual calibration point coordinate;

[0102] The height of the target object is: h = ∑ m L j +d m / (d m +d m+1 )×L m+1 , where m is the number of segments on the virtual calibration rod below the head top coordinate, L j is the length value corresponding to the jth segment of the virtual calibration rod, d m is the first Euclidean distance, d m+1 is the second Euclidean distance, and Lm+1 is the actual length corresponding to the m+1th segment of the virtual calibration rod.

[0103] It should be noted that each of the above modules can be a functional module or a program module, which can be implemented by software or hardware. For modules implemented by hardware, each of the above modules can be located in the same processor; or each of the above modules can also be located in different processors in any combination.

[0104] The embodiment also provides an electronic device including a memory and a processor, the memory storing a computer program, and the processor being configured to execute the computer program to perform the steps in any of the method embodiments.

[0105] Optionally, the electronic device can further include a transmission device connected with the processor and an input and output device connected with the processor.

[0106] It should be noted that the specific examples in the embodiment can refer to the examples described in the above embodiments and optional implementation manners, and the embodiment will not be described here.

[0107] In addition, in combination with the height measurement method in the above embodiments, the embodiment of the application can provide a storage medium for implementation. The storage medium stores a computer program; the computer program is executed by a processor to implement any of the height measurement methods in the above embodiments.

[0108] In one embodiment, a computer device is provided, which can be a terminal. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device 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 operating system and the computer program in the non-volatile storage medium to run. The network interface of the computer device is configured to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a height measurement method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad or mouse, etc.

[0109] In one embodiment, Figure 7 The internal structure diagram of the electronic device provided by the embodiment of the application is shown in Figure 7 The internal structure diagram of the electronic device provided by the embodiment of the application is shown in Figure 7 The electronic device includes a processor, a network interface, an internal memory and a non-volatile memory connected through an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is configured to provide computing and control capabilities, the network interface is configured to communicate with an external terminal through a network connection, the internal memory is configured to provide an environment for the operating system and the computer program to run, the computer program is executed by the processor to implement a height measurement method, and the database is configured to store data.

[0110] Those skilled in the art can understand that, Figure 7 The skilled in the art can understand that,

[0111] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by computer programs instructing related hardware, and the computer programs can be stored in a non-volatile computer readable storage medium. When the computer programs are executed, the processes of the above-mentioned embodiments can be included. Any reference to memory, storage, database or other medium used in the embodiments of the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but 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 (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0112] Those skilled in the art should understand that each technical feature of the above-mentioned embodiments can be combined arbitrarily, and in order to make the description simple, all possible combinations of each technical feature in the above-mentioned embodiments are not described, however, as long as the combination of technical features does not exist contradictory, it should be considered as the scope of the present application.

[0113] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for measuring height, characterized in that, The method is applied to a height measurement device, which includes an image acquisition component and at least three vertically arranged actual calibration rods, each actual calibration rod having at least two actual calibration points. The image acquisition component acquires a test image of the target object, the test image showing the top of the target object's head and the bottom of its feet, as well as at least three of the actual calibration rods; Based on the image to be tested, obtain the coordinates of the top of the head and the bottom of the feet of the target object, as well as the coordinate set of the actual calibration points of at least three actual calibration rods; Based on the coordinates of the foot bottom and the coordinate set of the actual calibration points of at least three actual calibration rods, a virtual calibration rod is constructed with the coordinates of the foot bottom as the base point, and the coordinate set of virtual calibration points on the virtual calibration rod is obtained; The height of the target object is obtained based on the coordinates of the top of the head and the set of virtual calibration points. The actual calibration point coordinate set includes the bottom point coordinates of the actual calibration rod, and the segment point coordinates located above the bottom point coordinates; The step of obtaining the set of coordinates of virtual calibration points on the virtual calibration rod includes: Based on the distance between the bottom coordinates of the foot and the bottom coordinates of at least three actual calibration rods, configure the weight coefficient of the virtual calibration rod relative to each of the actual calibration rods; Based on the coordinates of the midpoints of each actual calibration rod and the weighting coefficients, obtain the set of virtual calibration point coordinates on the virtual calibration rod; The virtual calibration point coordinate set has at least two virtual calibration point coordinates; obtaining the height of the target object includes: Obtain the coordinates of the first virtual calibration point and the second virtual calibration point that are adjacent to each other above and below the top of the head; The height of the target object is determined based on the relative position of the top head coordinates with the coordinates of the first virtual calibration point and the second virtual calibration point. Determining the height of the target object based on the relative position of the top of the head coordinates with the coordinates of the first and second virtual calibration points includes: The first Euclidean distance is determined based on the relative position of the top head coordinates and the first virtual calibration point coordinates; The second Euclidean distance is determined based on the relative position of the top head coordinates and the second virtual calibration point coordinates; The height of the target object is: h = ∑ m L j +d m / (d m +d m+1 )×L m+1 Where m is the number of segments on the virtual calibration rod below the top of the head, and L j Let d be the length value corresponding to the j-th segment of the virtual calibration rod. m Let d be the first Euclidean distance. m+1 For the second Euclidean distance, L m+1 It is the actual length corresponding to the (m+1)th segment on the virtual calibration rod.

2. The height measurement method according to claim 1, characterized in that, The step of obtaining the coordinates of the top of the head and the bottom of the feet of the target object based on the image under test, and the set of actual calibration point coordinates of at least three actual calibration rods, includes: Based on the distortion parameters of the image acquisition component, the image under test is subjected to distortion correction to obtain a corrected image; Based on the corrected image, obtain the coordinates of the top of the head and the bottom of the feet of the target object, as well as the coordinate set of the actual calibration points of at least three actual calibration rods.

3. The height measurement method according to claim 2, characterized in that, The corrected image is a corrected video frame extracted from the image to be tested.

4. The height measurement method according to claim 1, characterized in that, At least three of the actual calibration rods are staggered in the image to be tested.

5. A height measuring device, characterized in that, The device is used to measure height using the height measurement method of any one of claims 1-4, including: The image acquisition module is used to acquire a test image of the target object through the image acquisition component. The test image shows the top of the head and the bottom of the feet of the target object, as well as at least three actual calibration rods. The actual coordinate acquisition module is used to acquire the top head coordinates and bottom foot coordinates of the target object based on the image to be tested, as well as the actual calibration point coordinate set of at least three actual calibration rods; The virtual coordinate acquisition module is used to construct a virtual calibration rod with the bottom coordinate as the base point based on the bottom coordinate and the actual calibration point coordinate set of at least three actual calibration rods, and to acquire the virtual calibration point coordinate set on the virtual calibration rod; The height measurement module is used to obtain the height of the target object based on the coordinates of the top of the head and the set of virtual calibration points.

6. An electronic device, characterized in that, The device includes a memory and one or more processors, wherein the memory stores executable code, and the one or more processors execute the executable code to implement the height measurement method according to any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, It stores a program that, when executed by a processor, implements the height measurement method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Height measuring method, height measuring device and terminal

    CN114022532A

  • Body measuring apparatus and method for controlling the same

    CN114375177A