Tank body automatic lossless scanning method

By using an automatic tank scanning and detection device, combined with lifting, rotating and pitching motors, high-precision point cloud acquisition of the inner wall of ceramic tanks is achieved, solving the problems of large calculation errors and long scanning time for ceramic tanks, and providing an efficient method for calculating tank volume.

CN121576907APending Publication Date: 2026-02-27CSIC (CHONGQING) SOUTHWEST EQUIP RES INST CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511691684.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-18
Publication Date
2026-02-27

AI Technical Summary

Technical Problem

In existing technologies, the capacity calculation of ceramic jars has large errors and cannot accurately reflect the total amount of liquid food. Furthermore, point cloud scanning equipment is time-consuming and cannot adapt to the irregular shape of the inner wall of ceramic jars, resulting in low scanning accuracy.

Method used

An automatic tank scanning and detection device is adopted. The scanning mechanism is fixed by a tank opening clamping mechanism. The lifting motor, rotating motor and pitching motor work together with the scanning equipment to achieve high-precision scanning of the inner wall of the tank, reducing the need for height position settings and saving scanning time.

Benefits of technology

It achieves high-precision scanning of the inner wall of ceramic tanks, accurately collects point clouds, reduces scanning time, adapts to various corrosive environments, is low in cost, does not damage the tank, and is suitable for ceramic tanks of different specifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121576907A_ABST
    Figure CN121576907A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of tank interior detection, and provides an automatic lossless tank scanning method which is realized by a controller based on an automatic tank scanning detection device mounted at a tank opening, and the controller is electrically connected with a lifting motor, a rotating motor, a pitching motor and scanning equipment respectively. The controller executes the following steps: controlling the lifting motor, the rotating motor and the pitching motor to initialize the position and attitude of the scanning equipment; controlling the lifting motor to drive the linear module to drive the scanning equipment to move downwards to more than one set position, controlling the scanning equipment to rotate to different pitching angles after the scanning equipment reaches each set position, and controlling the scanning equipment to scan a circle in the circumferential direction after the scanning equipment rotates to each pitching angle, and the scanning equipment is controlled to acquire the point cloud of the inner wall of the tank body every time the scanning equipment rotates circumferentially. According to the invention, circumferential scanning at different pitching angles is carried out at each set position, so that high-precision scanning is realized while the scanning time is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of tank internal inspection technology, and in particular to an automatic non-destructive scanning method for tanks. Background Technology

[0002] Earthenware jars, due to their unique mesh-like microporous structure, are breathable and easily create a micro-oxygen environment, which is conducive to a series of reactions such as volatilization, association, and oxidation-reduction. This facilitates the aging and maturation of liquid foods during storage, improving food quality. They are commonly used for storing liquid foods such as liquor, vinegar, and soy sauce. Although earthenware jars come in various sizes, such as 500-jin, 700-jin, and 1000-jin jars, due to the firing process, they are characterized by irregular shapes, relatively large volumes, and relatively heavy weights. Even jars of the same size and from the same production batch can have significant differences in capacity.

[0003] In the production and processing of liquid foods, especially in the production of baijiu (Chinese liquor), it is necessary to count the total amount of liquid foods multiple times. The relevant technology mainly uses flow meters to measure the liquid volume of a certain type of ceramic jar and roughly estimate the weight of liquid foods (such as liquor) that can be held in this type of jar based on the volume value. However, using a single volume value for tens of thousands of ceramic jars results in a large statistical error and cannot accurately reflect the total amount of liquid (such as baijiu) being counted.

[0004] In technologies related to measuring the internal volume of containers, a scanning device is used to perform a 3D scan of the container's inner surface to acquire point cloud data. Based on this data, a 3D point cloud model of the container is created, and finally, the container's volume is accurately calculated without damaging the container. Currently, for point cloud scanning of the container's interior, the scanning device is typically inserted into the container at different heights and rotated circumferentially to collect local point clouds at those heights. However, due to the limited field of view of the scanning device, many height positions need to be set, making this approach time-consuming. Furthermore, ceramic jars often have irregular shapes, such as sloping tops, protruding bottoms, and irregular shapes. Relying solely on rotating the scanning device to acquire local point clouds cannot adapt to the shape of the ceramic jar's inner wall, resulting in low point cloud scanning accuracy and affecting the accuracy of the capacity calculation. Therefore, there is an urgent need to develop an automatic, non-destructive scanning method for jars to accurately acquire point clouds of the inner walls of irregularly shaped jars. Summary of the Invention

[0005] This application aims to at least solve the technical problems existing in the prior art and provide an automatic non-destructive scanning method for tanks.

[0006] In a first aspect, this application provides an automatic non-destructive scanning method for tanks. The method is implemented by a controller based on an automatic tank scanning and detection device installed at the tank opening. The automatic tank scanning and detection device includes a fixing fixture and a scanning mechanism. The fixing fixture includes a mounting base plate and a tank opening clamping mechanism and a first connecting structure disposed on the mounting base plate. The automatic tank scanning and detection device is installed at the tank opening via the tank opening clamping mechanism. The scanning mechanism includes a lifting motor, a linear module, a rotary motor, a pitch motor, and scanning equipment. The lifting motor drives the linear module. A fixed seat is mounted on the slider of the linear module, and a second connecting structure that mates with the first connecting structure is disposed on the fixed seat. A rotary motor is mounted on one end of the linear module via a motor mount. A rotary motor mounts a pitch motor via an adapter, and the pitch motor mounts the scanning device via a transition plate. The controller is electrically connected to the lifting motor, rotary motor, pitch motor, and scanning device. The controller performs the following steps: controlling the lifting motor, rotary motor, and pitch motor to initialize the position and attitude of the scanning device; controlling the lifting motor to drive the linear module to move the scanning device downwards to one or more set positions; after the scanning device reaches each set position, controlling the pitch motor to rotate the scanning device to different pitch angles; after the scanning device rotates to each pitch angle, controlling the rotary motor to drive the scanning device to perform a circumferential scan, wherein the scanning device rotates once per circumferential direction, and controlling the scanning device to acquire the point cloud of the inner wall of the tank.

[0007] The beneficial technical effects of the above technical solution are as follows: 1. An automatic tank scanning and detection device is used to scan the inside of the tank. The mounting base plate is fixed to the tank opening through a tank opening clamping mechanism. The scanning mechanism is connected to the first connecting structure on the mounting base plate through the second connecting structure of the fixed base, so as to quickly support and fix the scanning mechanism at the tank opening. This allows one end of the linear module with the rotary motor to extend into the tank to scan the inner wall and obtain the inner wall point cloud under the drive of the lifting motor. The scanning mechanism uses the linear module to drive the scanning equipment to move up and down in the tank. The rotary motor is used to adjust the circumferential position of the scanning equipment, and the pitch motor is used to adjust the pitch angle of the scanning equipment, i.e., the vertical deflection angle. Different pitch angles can be scanned at the same height position, reducing the number of height positions and saving scanning time. It can achieve high-precision scanning of the inclined surface of the inner wall of the tank and the bottom boss. In addition, the device is lightweight, can be quickly set up and fixed at the tank opening, does not damage the inner wall of the ceramic tank, and is low in cost. It can adapt to various gas / liquid corrosive environments and has no special requirements for the installation position. 2. The automatic non-destructive scanning method for tanks provided in this application involves setting a small number of predetermined positions in the vertical direction. After controlling the lifting motor to drive the linear module and move the scanning device downwards to the predetermined position, the pitch motor is controlled to rotate to obtain different pitch angles for the scanning device. Under each pitch angle condition, the rotary motor is controlled to drive the scanning device to perform a circumferential scan. The scanning device rotates once per circumferential direction to scan the inner wall of the tank and obtain a local point cloud. After traversing the pitch angles of each predetermined position, the scanning device is moved to the next predetermined position, and the pitch motor is controlled to rotate again to obtain different pitch angles for the scanning device. The scanning device completes a circumferential scan under each pitch angle condition, and so on, until the bottom of the tank is scanned. This method achieves circumferential scanning at different pitch angles for the scanning device at each predetermined position using the pitch motor, which can greatly save tank scanning time. Simultaneously, it achieves high-precision scanning of the inclined surfaces of the inner wall of the tank and the protrusions on the bottom of the tank, accurately acquiring point clouds of the inner wall of irregularly shaped tanks.

[0008] Secondly, this application provides a method for calculating the internal volume of an irregular tank. The method includes: performing the steps of the method described in the first aspect of this application; acquiring point cloud and attitude data of the scanning device at each viewpoint during the scanning of the inner wall of the tank by an automatic tank scanning and detection device; processing and stitching the point cloud and attitude data of all viewpoints of the scanning device to obtain an internal point cloud of the tank; reading the internal point cloud of the tank, which is obtained based on the processing and stitching of the internal point cloud of the tank's inner wall scan; determining a reference plane for the internal point cloud of the tank; dividing the internal point cloud of the tank into slices along the height direction of the internal point cloud of the tank starting from the reference plane to obtain multiple slices; projecting all points of each slice onto the reference plane; obtaining the minimum bounding boundary of the projection points of each slice on the reference plane; multiplying the internal area of ​​the minimum bounding boundary of each slice by the height of the slice to obtain the volume of the slice; accumulating the volumes of all slices of the internal point cloud of the tank to obtain the internal volume of the tank; constructing a volume lookup table; and storing the internal volume of the tank. Attached Figure Description

[0009] Figure 1 This is a schematic diagram of the automatic tank scanning and detection device of the present invention; Figure 2 This is a schematic diagram of the automatic tank scanning and detection device of the present invention installed on the tank; Figure 3 This is a schematic diagram of the structure of the fixing fixture of the present invention; Figure 4 This is a schematic diagram of the scanning mechanism of the present invention; Figure 5 This is a flowchart illustrating an automatic non-destructive scanning method for tanks according to a preferred embodiment of the present invention. Figure 6This is a schematic diagram of the specific process of step A2 in a preferred embodiment of the present invention; Figure 7 This is an installation diagram of an automatic tank scanning and detection device inserted into the tank for scanning, as shown in one example of the present invention. Figure 8 This is a schematic diagram of the scanning device at a first set position and a second set position in a preferred embodiment of the present invention; Figure 9 This is a schematic diagram of different pitch angles of the scanning device at a first set position and a second set position in a preferred embodiment of the present invention; Figure 10 This is a schematic diagram of the spiral scanning path of the scanning device in a preferred embodiment of the present invention; Figure 11 This is a flowchart illustrating a preferred embodiment of the method for processing and stitching point clouds of featureless tanks according to the present invention. Figure 12 This is a schematic diagram of the three-axis coordinate system of an automatic tank scanning and detection device in one example of the present invention; Figure 13 This is a schematic diagram of the calibration tooling installation during the calibration process of the external parameter file of the scanning equipment; Figure 14 This is a preprocessed point cloud from a certain perspective in an example of the present invention; Figure 15 This is a schematic diagram of the point cloud of the tank in one example of the present invention; Figure 16 This is a flowchart illustrating a preferred embodiment of the present invention for calculating the internal volume of an irregular tank. Figure 17 This is a schematic diagram of convex hull extraction of the projection points of the slice on the reference plane in an example of the present invention; Reference numerals: 1. Fixture; 101. Mounting base plate; 102. Clamping block; 103. Quick clamp; 104. First bolt; 105. Waist-shaped hole; 106. Positioning pin; 107. Through hole; 108. First handle; 2. Scanning mechanism; 201. Linear module; 202. Fixed base; 203. Motor base; 204. Rotary motor; 205. Adapter base; 206. Pitch motor; 207. Transition plate; 208. Scanning equipment; 209. Second bolt; 210. Second handle; 211. Miniature guide rail; 212. Tilt sensor; 213. Cable chain; 214. Lifting motor; 3. Tank body. Detailed Implementation

[0010] This invention provides an automatic scanning and detection device for tanks.

[0011] In a preferred embodiment, please see Figure 1The automatic tank scanning and detection device includes a fixed fixture 1 and a scanning mechanism 2. The fixed fixture 1 includes a mounting base plate 101 and a tank opening clamping mechanism and a first connecting structure set on the mounting base plate 101. The scanning mechanism 2 includes a lifting motor 214, a linear module 201, a rotary motor 204, a pitch motor 206, and a scanning device 208. The lifting motor 214 is used to drive the linear module 201. A fixed seat 202 is installed on the slider of the linear module. A second connecting structure that cooperates with the first connecting structure is provided on the fixed seat 202. One end of the linear module 201 is equipped with the rotary motor 204 through a motor seat 203. The lifting motor 214 is directly connected to the other end of the linear module 201 through a coupling. The rotary motor 204 is equipped with the pitch motor 206 through an adapter seat 205. The pitch motor 206 is equipped with the scanning device 208 through a transition plate 207.

[0012] In this embodiment, the mounting base plate 101 is not limited to being rectangular or elliptical. When the automatic tank scanning and detection device is working, such as Figure 2 As shown, it spans across the mouth of the tank body 3 (also called the eaves).

[0013] In this embodiment, the linear module slider is connected to the fixed base 202 by screws. The motor base 203 is not limited to an L-shaped motor base, and the adapter base 205 is not limited to an L-shaped adapter base. The motor base 203 and the rotary motor 204, the adapter base 205 and the pitch motor 206, and the transition plate 207 and the scanning device 208 can all be connected by screws.

[0014] In this embodiment, the can opening clamping mechanism is used to fix the automatic can scanning and detection device at the can opening. Specifically, the mounting base plate 101 of the fixing fixture 1 is fixed at the can opening of the can body 3. For example, the can opening clamping mechanism includes two or more quick clamps 103 symmetrically distributed around the mounting base plate 101, such as four or two quick clamps 103 located at both ends of the mounting base plate 101. The structure of the quick clamps 103 is as follows... Figure 3 As shown, it achieves the locking and unlocking states via a control handle. It is a common quick-release caliper, and existing products can be selected, such as the quick-release caliper series from GoodMobile Electronics Technology Co., Ltd., with models not limited to HS-101-A and HS-12205. Alternatively, the quick-release caliper structure disclosed in patent publication number CN203418029U can be referenced, which will not be elaborated upon here. The quick-release clamp 103 is fixed to the mounting base plate 101 by screws mounted on the front.

[0015] In this embodiment, the scanning mechanism 2 is fixed to the mounting base plate 101 of the fixing fixture 1 through the cooperation and connection of the first structure and the second structure. Preferably, as shown in the figure... Figure 1As shown, the first connection structure includes one or more positioning pins 106 and one or more positioning threaded holes. The positioning pins 106 are fixed to the mounting base plate 101 by screws mounted on the reverse side. The second connection structure includes one or more pin holes that mate with the positioning pins 106, and one or more second bolts 209 that connect to the positioning threaded holes. The second bolts 209 are not limited to knurled screws, but are designed for ease of operation. When the automatic tank scanning and detection device is working, the scanning mechanism 2 is placed on the fixed fixture 1, and the positioning pins 106 on the fixed fixture 1 are inserted into the pin holes on the fixed base 202. The second bolts 209 on the fixed base 202 pass through the positioning threaded holes on the mounting base plate 101 and are then tightened to secure the fixed fixture 1 and the scanning mechanism 2. Positioning is achieved by the one-to-one matching of the positioning pins 106 and the pin holes, and then the connection is achieved by the matching of the second bolts 209 and the positioning threaded holes on the mounting base plate 101.

[0016] In this embodiment, to ensure that the scanning mechanism 2 is located as close as possible to the center of the tank opening during operation, and to maintain the structural symmetry of the automatic scanning and detection device, thus ensuring overall stability of the automatic tank scanning and detection device during operation, preferably, please refer to... Figure 1 and Figure 3 The mounting base plate 101 has a through hole 107 that allows one end of the linear module 201 to pass through. A positioning pin 106 and a positioning threaded hole are located at the edge of the through hole 107. More preferably, the through hole 107 is located in the middle of the mounting base plate 101. When the automatic tank scanning and detection device is working, such as... Figure 2 As shown, the end of the linear module 201 near the lifting motor 214 or the end of the linear module 201 near the scanning device 208 passes through the through hole 107. The linear module slider is fixed on the fixture 1 by the fixing seat 202. Driven by the lifting motor 214, one end of the linear module 201 (i.e., the end that mounts the motor seat 203 and the rotary motor 204) moves up and down, while simultaneously driving the scanning device 208 to move up and down to perform point cloud scanning of the inner wall of the tank 3.

[0017] In this embodiment, the scanning device 208 is not limited to an existing laser scanner. Preferably, the scanning device 208 is a 3D camera, such as an industrial 3D camera, which can acquire point clouds of the inner wall of the tank 3.

[0018] In this embodiment, the lifting motor 214, linear module 201, rotary motor 204, pitch motor 206, and scanning device 208 can all be existing products.

[0019] In a preferred embodiment, the can opening clamping mechanism has a different structure. The can opening clamping mechanism of this embodiment includes clamping blocks 102 and quick clamps 103 disposed at both ends of the mounting base plate 101, so that the fixing fixture 1 can be quickly installed and fixed at the can opening. See [link / reference needed]. Figure 1 and Figure 3The clamping block 102 is located at one end of the mounting base plate 101, and the quick clamp 103 is located at the other end of the mounting base plate 101. The number of quick clamps 103 can be one or two. During operation, the inner side of the clamping block 102 contacts the arc surface of the eaves of the tank body 3. To improve the clamping effect on the eaves, the inner side of the clamping block 102 is set to be an arc surface that matches the arc surface of the eaves.

[0020] In this embodiment, for ease of adjustment, please refer to... Figure 3 The fixing fixture 1 also includes a first bolt 104. A slotted hole 105 is provided on the mounting base plate 101. The first bolt 104 passes through the slotted hole 105 and connects to the threaded hole of the clamping block 102. The first bolt 104 can move back and forth within the slotted hole 105 of the mounting base plate 101. The distance between the clamping block 102 and the quick clamp 103 is adjusted by moving the first bolt 104 within the slotted hole 105, facilitating the placement and removal of the fixing fixture 1 at the can opening and adapting to can openings of different sizes.

[0021] Preferably, the length of the oblong hole 105 extends towards the quick clamp 103 to adjust the distance between the clamping block 102 and the quick clamp 103. The first bolt 104 is not limited to a knurled screw. Working process: Place the assembled fixing fixture 1 on the eaves of the ceramic jar 3, adjust the clamping block 102 to contact the arc surface of the eaves of the jar 3, tighten the first bolt 104 to fix the position, and finally lock the quick clamp 103 to secure the entire fixing fixture 1 firmly on the eaves of the ceramic jar 3.

[0022] In a preferred embodiment, at least one first handle 108 is provided on the mounting base plate 101, see [link / reference]. Figure 3 Two first handles 108 are provided on the horizontal side of the mounting base 101 to facilitate the placement and removal of the fixing fixture 1. The first handles 108 are fixed to the mounting base 101 by screws mounted on the reverse side. At least one second handle 210 is provided on the fixing seat 202. See [link / reference]. Figure 4 A second handle 210 is provided at each end of the fixed base 202 to facilitate the picking and placing of the scanning mechanism 2. The second handle 210 is installed on the fixed base 202 by screws.

[0023] In this embodiment, preferably, to improve the motion accuracy of the linear module, such as Figure 1 and Figure 4 As shown, at least one of the two sides of the linear module 201 is equipped with a micro guide rail 211. The micro slider of the micro guide rail 211 is connected to the fixed base 202, and the connection method is not limited to screw connection. The micro slider of the micro guide rail 211 is fastened to the fixed base 202. When the lifting motor 214 drives one end of the linear module 201 (close to the scanning device 208) to move up and down, the end of the micro guide rail 211 close to the scanning device 208 also moves up and down synchronously.

[0024] In this embodiment, preferably, a tilt sensor 212 is installed on the fixed base 202. The tilt sensor 212 reads the tilt angle of the fixed base 202 in the X and Y directions of the horizontal plane. This allows adjustment of the connection between the first and second connecting structures, as well as the working state of the clamping block 102 and the quick clamp 103, so that the fixed base 202 does not tilt in the horizontal plane. This ensures that the linear module 201 moves up and down in the vertical direction as much as possible, and that the lifting motor 214 drives the scanning device 208 to move up and down in the vertical direction, thereby improving motion accuracy.

[0025] In this embodiment, preferably, please see Figure 1 and Figure 4 The scanning mechanism 2 also includes a cable chain 213, one end of which is fixed to the back of the linear module 201, and the other end of which is mounted on the mounting base 202. All component cables are threaded through the cable chain 213.

[0026] In one example of the automatic tank scanning and detection device provided by the present invention, the process of installing the device on the tank 3 is as follows: First, assemble the fixing fixture 1. Specifically, install the clamping block 102, the first bolt 104, the quick clamp 103, the positioning pin 106, and the first handle 108 on the mounting base plate 101. Holding the first handle 108, place the fixing fixture 1 on the rim of the ceramic jar 3. Adjust the clamping block 102 to make it contact the arc surface of the rim of the jar 3. Then tighten the first bolt 104 to fix the position. Finally, lock the quick clamp 103 to secure the entire fixing fixture 1 firmly on the rim of the ceramic jar 3.

[0027] Next, the scanning mechanism 2 is assembled. Specifically, the lifting motor 214 is directly connected to one end of the linear module 201 via a coupling. The linear module slider is connected to the fixed base 202 via screws. The other end of the linear module 201 is equipped with a rotary motor 204 via an L-shaped motor mount 203. The rotary motor 204 is equipped with a pitch motor 206 via an L-shaped adapter 205. The pitch motor 206 is equipped with a scanning device 208 via a transition plate 207. Two miniature guide rails 211 are also auxiliaryly installed on both sides of the linear module 201. The miniature sliders on the miniature guide rails 211 are mounted on the fixed base 202 via screws. The function of the miniature guide rails 211 is to improve the motion accuracy of the linear module 201. The tilt sensor 212 is installed below the fixed base 202. All component cables are threaded into the cable chain 213. One end of the cable chain 213 is connected to the back of the linear module 201, and the other end is installed on the fixed base 202. The fixed base 202 is also equipped with a second handle 210 for auxiliary handling and a second bolt 209 for locking.

[0028] Finally, the entire scanning mechanism 2 is placed onto the fixed fixture 1 by the second handle 210. Simultaneously, the positioning pin 106 on the fixed fixture 1 is inserted into the pin hole on the fixed base 202, and the second bolt 209 on the fixed base 202 is tightened to secure the connection. The entire device is powered on, and the tilt sensor 212 reads the tilt angle of the fixed base 202 in both the X and Y directions. Then, the lifting motor 214 drives the linear module 201 to move downwards, while the rotary motor 204 and the pitch motor 206 drive the scanning device 208 to rotate within a 360° horizontal circumference and a 180° pitch range.

[0029] In this example, the lifting motor 214, rotary motor 204, and pitch motor 206 can be controlled by a separate controller. The controller is not limited to including a microcontroller and more than three motor drive modules, with the microcontroller electrically connected to each motor drive module. The controller's motor control terminals are electrically connected to the control terminals of the motor drive modules for the lifting motor 214, rotary motor 204, and pitch motor 206, respectively. A pre-loaded program instruction is installed within the controller, specifying one or more designated positions. After the lifting motor 214 drives the linear module 201 near the rotary motor 204 to move downwards to each designated position, the pitch motor 206 adjusts the pitch angle of the scanning device 208 according to the set program, and the rotary motor 204 adjusts the circumferential position of the scanning device 208. This achieves multiple local scanning detections of designated positions on the inner wall of the ceramic tank 3, obtaining multiple local point clouds. All the local point clouds at the designated positions are stitched together to form the internal three-dimensional point cloud of the tank 3, facilitating subsequent volume measurement of the tank 3. It should be noted that the algorithms involved in the above process are not within the scope of protection of this invention.

[0030] This invention discloses an automatic non-destructive scanning method for tanks.

[0031] The provided automatic non-destructive scanning method for tanks is implemented by a controller based on an automatic tank scanning and detection device installed at the tank opening. In a preferred embodiment, the automatic tank scanning and detection device is the aforementioned automatic tank scanning and detection device provided by this invention, which will not be described in detail here. The automatic tank scanning and detection device installed at the tank opening is as follows: Figure 7 As shown. Select a controller that is electrically connected to the lifting motor 214, the rotary motor 204, the pitch motor 206, and the scanning device 208. The controller is not limited to including a microcontroller and more than three motor drive modules, with the microcontroller electrically connected to each motor drive module. The motor control terminals of the controller are electrically connected to the control terminals of the motor drive modules of the lifting motor 214, the rotary motor 204, and the pitch motor 206, respectively.

[0032] Please see Figure 5 The controller performs the following steps: Step A1: Control the lifting motor 214, rotation motor 204, and pitch motor 206 to initialize the position and attitude of the scanning device 208; Understandably, the controller drives the lifting motor 214, rotary motor 204, and pitch motor 206 back to zero, causing the scanning device 208 to return to its vertical position to zero, as well as its pitch and circumferential rotation angles to zero. The position of the scanning device 208 can be simplified to its vertical distance from the tank opening plane inside the tank 3, and the attitude of the scanning device 208 can be simplified to the circumferential rotation angle of the rotary motor 204 and the pitch angle of the pitch motor 206.

[0033] Step A2: Control the lifting motor 214 to drive the linear module 201, which in turn moves the scanning device 208 downwards to one or more preset positions. After the scanning device 208 reaches each preset position, control the pitch motor 206 to rotate the scanning device 208 to different pitch angles. After the scanning device 208 rotates to each pitch angle, control the rotary motor 204 to drive the scanning device 208 to perform a circumferential scan, that is, the scanning device 208 rotates around the central axis of the linear module 201. The scanning device 208 rotates once per circumferential direction, and the current attitude data of the scanning device 208 is recorded. Control the scanning device 208 to acquire the point cloud of the inner wall of the tank 3, that is, to obtain the local point cloud corresponding to the position and attitude. Stitch all the local point clouds together to obtain the three-dimensional point cloud model of the inside of the tank 3.

[0034] Specifically, in step A2, based on the shape of the tank 3, with the aim of acquiring as many high-precision point clouds of the inner wall of the tank 3 as possible, one or two or more pitch angles of the pitch motor 206 are set at each set position. The preferred range of the pitch angle is -120° to 60°, where a pitch angle of 0° indicates that the detection signal transmission direction of the scanning device 208 is horizontal. For ceramic tanks 3, especially ceramic tanks 3 for storing baijiu (Chinese liquor), please see... Figure 8 As shown, the area near the can opening is sloped, and the bottom of the can has a protrusion. Different pitch angles need to be set at specific locations to match the shape of the inner wall of can 3 in order to achieve accurate point cloud acquisition. Please see... Figure 9 This application allows for point cloud acquisition by the scanning device 208 at different pitch angles within a set location, reducing the number of set locations and accelerating the scanning of the inner wall. At each pitch angle within each set location, the scanning device 208 can be driven by the rotary motor 204 to advance at a preset first step angle. Or the second step angle Or the third step angle The stepper motor rotates circumferentially once per step, and the scanning device 208 is also driven to rotate circumferentially and scan once to obtain a cluster of local point clouds.

[0035] In this embodiment, preferably, to reduce the scanning time inside the tank 3, please see... Figure 8 and Figure 9 As shown, two setting positions are set, including the first setting position. Second set position The distance from the first set position to the plane of the tank opening is less than the distance from the second set position to the plane of the tank opening. Please see... Figure 8 Through the first set position Second set position The tank body 3 was scanned into three segments: the first segment was... The above parts and The first half, the second paragraph is lower half and The following section, the third part, is the bottom of tank 3.

[0036] In this embodiment, more preferably, the distance between the first set position and the plane of the tank opening is 0.25Hg to 0.35Hg; the distance between the second set position and the plane of the tank opening is 0.55Hg to 0.65Hg; where Hg represents the height of the tank.

[0037] In one example, the ceramic jar 3, with a capacity of 1000 jin (approximately 500 catties), has the following dimensions: mouth diameter 0.48 m, base diameter 0.5 m, waist diameter 0.87 m, and height (Hg) 1.2 m. The distance from the plane of the tank opening is 0.3m to 0.42m, preferably. It is 0.36m. Therefore... The distance from the plane of the tank opening is 0.66m to 0.78m, preferably. It is 0.71m.

[0038] In a preferred embodiment, to better match the beveled shape of the tank opening portion of tank 3 and improve the point cloud acquisition accuracy, please see... Figure 6 and Figure 9 , Figure 9 In the diagram, the scanning device 208 is simplified as an ellipse. In step A2, the controller controls the lifting motor 214 to drive the linear module 201, which in turn moves the scanning device 208 downward to the first set position. At that time, execute: Step A21: Control the pitch motor 206 to drive the scanning device 208 to rotate to the first pitch angle. Then, the control rotary motor 204 drives the scanning device 208 to advance by one step angle. After one circumferential scan, proceed to step A22, where the scanning device 208 rotates circumferentially by a step angle of [value missing]. The rotary motor 204 rotates once per revolution, which in turn drives the scanning device 208 to rotate circumferentially. Angle, record the current attitude data of scanning device 208, and control scanning device 208 to acquire point cloud of inner wall of tank 3; first step angle The value range is from 40° to 30°, preferably 35°, such as... Figure 9 The blue elliptical shape is positioned to accurately acquire the point cloud of the inclined inner wall from the can opening at the first set position. Step A21 completes the first segment... The above parts were scanned.

[0039] Step A22: Control the pitch motor 206 to drive the scanning device 208 to rotate to the second pitch angle. Then, the control rotary motor 204 drives the scanning device 208 to advance by one step angle. One circumferential scan is performed, that is, a rotational scan is performed around the central axis. The rotary motor 204 rotates once in the circumferential direction, which drives the scanning device 208 to rotate circumferentially. Angle, record the attitude data of scanning device 208, control scanning device 208 to scan the inner wall of tank 3 to obtain point cloud of inner wall of tank 3; preferably, the second pitch angle The size is 0°, such as Figure 9 The orange ellipse pose in the image. Step A22 is used to adjust the first segment... The upper half is scanned. First pitch angle. Second pitch angle ≥0°.

[0040] In this embodiment, to ensure sufficient overlap between local point clouds while avoiding excessive circumferential rotations during the circumferential scanning of the rotary motor 204, which would increase the time consumption, preferably, the first step angle... The size of the scanning device 208 is determined by the maximum waist diameter of the tank 3 and the effective field of view of the tank 3. For example, the maximum waist diameter of the tank 3 is 0.87 m, and its circumference is approximately 2700 μm. The scanning device 208 is positioned at a first predetermined location. The effective field of view is approximately 290 × 200 mm. To ensure complete reconstruction of this part of the tank wall, its circumference is predicted to be around 2700 mm based on a maximum waist diameter of 0.87 m. Therefore, in The height was scanned approximately 14 times. To ensure sufficient overlap between local point clouds, the initial determination was made. If the position is scanned 15 times, then the first step forward angle is... The value is 360 ÷ 15 = 24°.

[0041] In this embodiment, more preferably, in step A2, the control lifting motor 214 drives the linear module 201 to move the scanning device 208 downward to the second set position. Please see at that time. Figure 6 ,implement: Step A23: Control the pitch motor 206 to drive the scanning device 208 to rotate to the third pitch angle. Then, the rotary motor 204 is controlled to drive the scanning device 208 to advance at the second step angle. After one circumferential scan, step A24 is performed, which involves a rotational scan around the central axis. During this process, the scanning device 208 rotates once per circumferential direction. The attitude data of the scanning device 208 is recorded, and the device is controlled to scan the inner wall of the tank 3, obtaining a cluster of local point clouds on the inner wall of the tank 3. Third pitch angle. A value greater than 0 indicates that the scanning device 208 (such as a 3D camera) is rotating diagonally upwards. angle, The value range is 10° to 20°, so that the point cloud obtained by the circumferential scan appropriately overlaps with the point cloud obtained by the circumferential scan in step A22. Preferably, It is 14°, such as Figure 9 The green ellipsoid posture in the image.

[0042] Step A24: Control the pitch motor 206 to drive the scanning device 208 to rotate to the fourth pitch angle. Then, the rotary motor 204 is controlled to drive the scanning device 208 to advance at the second step angle. After one circumferential scan, step A25 is performed, which involves a rotational scan around the central axis. During this process, the scanning device 208 rotates once per circumference. The attitude data of the scanning device 208 is recorded, and the device is controlled to scan the inner wall of the tank 3, obtaining a cluster of local point clouds. Fourth pitch angle. Less than 0° indicates that the scanning device 208 is rotating diagonally downwards. angle, The value range is from -25° to -15°, preferably, The angle is set to -20° to ensure proper overlap between the point cloud obtained in step A24 and the point cloud obtained in step A23, such as... Figure 9 The black elliptical shape in the image.

[0043] Step A25: Control the pitch motor 206 to drive the scanning device 208 to rotate to the fifth pitch angle. Then, the rotary motor 204 is controlled to drive the scanning device 208 to advance at the second step angle. After one circumferential scan, step A26 is performed, which involves a rotational scan around the central axis. During each circumferential rotation of the scanning device 208, the attitude data of the scanning device 208 is recorded. The scanning device 208 is then controlled to scan the inner wall of the tank 3, obtaining a cluster of local point clouds on the inner wall of the tank 3; fifth pitch angle. The value range is -60° to -50°, preferably the fifth pitch angle. -55°, such as Figure 9 The purple elliptical shape in the image is adjusted to ensure proper overlap between the point cloud obtained in step A25 and the point cloud obtained in step A26. The second segment of tank 3 is then scanned via steps A23, A24, and A25.

[0044] Step A26: Control the pitch motor 206 to drive the scanning device 208 to rotate to the sixth pitch angle. Then, the rotary motor 204 drives the scanning device 208 to advance at the third step angle. A circumferential scan, i.e., a rotational scan around the central axis, is performed to achieve a rotational scan of the bottom of the tank 3 around the central axis. Specifically, the scanning device 208 rotates once per circumferential direction, and its attitude data is recorded. The scanning device 208 is then controlled to scan the inner wall of the tank 3, obtaining a cluster of local point clouds of the inner wall of the tank 3; the sixth pitch angle... The value range is -90° to -100°, preferably. -94.5°, such as Figure 9 The gray elliptical shape in the image allows the scanning device 208 to perform a global rotational scan of the tank bottom, while the obtained point cloud appropriately overlaps with the point cloud from step A26. Third pitch angle. >0°>Fourth pitch angle Fifth pitch angle Sixth pitch angle >-100°. The third segment of tank 3 is scanned via step A26.

[0045] In this embodiment, preferably, the second step angle The second step angle is determined by the maximum waist diameter of tank 3 and the effective field of view of scanning device 208. The process of determining the angle is similar to the first step described above. The process of determining the second step angle. The angle is 24° to ensure sufficient overlap of point clouds between adjacent steps.

[0046] In this embodiment, preferably, the third step angle The size is determined based on the circumference of the tank bottom and the effective field of view of the scanning device 208. For example, in step A26, the maximum distance between the scanning device 208 and the tank wall is about 0.5m, the effective field of view of the scanning device 208 (such as a 3D camera) is about 370×250mm, the rotary motor 204 rotates 90° each time, and the scanning device 208 (such as a 3D camera) scans a total of 4 times.

[0047] In one example of this embodiment, the scanning device 208 is a 3D camera. The following calculates the time required to scan a tank 3 using the automatic non-destructive scanning method for tanks: The 3D camera's single scan time is 2.5 seconds, the pitch motor 206's rotation time is 2 seconds, and the rotation motor 204's rotation time is 3 seconds (including 2 seconds for storing point clouds). Taking a 1000-jin (500 catties) jar as an example, the jar's dimensions are: mouth diameter 0.48 m, bottom diameter 0.5 m, waist diameter 0.87 m, and height 1.2 m. The location is 0.36m from the tank opening mounting plane (i.e., the tank opening plane). The location is 0.71m from the installation plane of the tank opening.

[0048] exist Location Scan The above parts and In the upper part, the pitch motor 206 drives the 3D camera to pitch 35° and 0° for scanning. At these two angles, the maximum distance between the 3D camera and the tank wall is approximately 0.4m, and the effective field of view of the camera is approximately 290×200mm. To ensure complete reconstruction of this part of the tank wall, based on a maximum waist diameter of 0.87m, its circumference is predicted to be approximately 2700mm. Therefore, in The height was scanned approximately 14 times. To ensure sufficient overlap between point clouds, the initial determination was made. If the position is scanned 15 times, then the rotation angle is... The value is 360 ÷ 15 = 24°. During position scanning, the linear module 201 moves from its initial position to... Positioning takes 5 seconds; pitch motor 206 performs two pitch movements, taking 2 × 2 = 4 seconds; rotation motor 204 performs 15 rotation movements at two angles, taking 15 × 2 × 3 = 90 seconds; 3D camera takes 15 photos at two angles, taking 15 × 2 × 2.5 = 75 seconds. The total scanning time is 5 + 4 + 90 + 75 = 174 seconds.

[0049] exist Location Scan lower half and In the following section, the pitch motor 206 drives the 3D camera to perform scanning at pitches of 14°, -20°, and -55°. At these three angles, the maximum distance between the 3D camera and the tank wall is approximately 0.5m, and the effective field of view of the 3D camera is approximately 370×250mm. Based on a maximum waist diameter of 0.87m, the predicted circumference is approximately 2700mm. Therefore, in The number of scans at each pitch position is approximately 11. To ensure sufficient overlap between point clouds, the initial number of scans at pitch positions of 14°, -20°, and -55° is determined to be 15. The rotation angle... The angle is 360 ÷ 15 = 24°. During position scanning, the linear module 201 is included. Position moved to Positioning takes 15 seconds. Pitch motor 206 performs 3 pitch movements, taking 2 × 3 = 6 seconds. Rotation motor 204 performs 15 rotation movements at 3 angles, taking 15 × 3 × 3 = 135 seconds. The 3D camera takes 15 pictures at 3 angles, taking 15 × 3 × 2.5 = 112.5 seconds. The total scanning time is 15 + 6 + 135 + 112.5 = 268.5 seconds.

[0050] exist The bottom of the tank 3 is scanned. The pitch motor 206 also drives the 3D camera to pitch -94.5° to scan the bottom of the tank 3. At this time, the maximum distance between the 3D camera and the tank wall is about 0.5m, and the effective field of view of the 3D camera is about 370×250mm. The rotary motor 204 rotates 90° each time. The 3D camera scans a total of 4 times. Therefore, the total scanning time is 2+4×3+4×2.5=24s.

[0051] Based on the above analysis, the total scanning time of this method is 174 + 268.5 + 24 = 466.5 s, approximately 7.7 min < 8 min, which meets the design requirements.

[0052] In a preferred embodiment, please see Figure 10 At the first pitch angle Second pitch angle Third pitch angle Fourth pitch angle Fifth pitch angle and the sixth pitch angle In the circumferential scan, counterclockwise and clockwise circumferential scans are performed alternately. Specifically, at the first pitch angle... Scanning in a counter-clockwise circumferential direction at the second pitch angle Scanning clockwise in a circumferential direction, at the third pitch angle Scanning in a counter-clockwise circumferential direction, at the fourth pitch angle Scanning clockwise in a circumferential direction, at the fifth pitch angle Scanning counterclockwise in a circumferential direction, at the sixth pitch angle The scanning proceeds in a clockwise circumferential direction. In this way, the scanning device 208 scans all the point cloud information of the inner wall of the tank 3 in a spiral manner, ensuring short scanning time and optimal trajectory planning during the scanning process.

[0053] This invention discloses a method for processing and stitching point clouds of featureless tanks.

[0054] In a preferred embodiment, please see Figure 11 The method includes: Step B1: Acquire point cloud and attitude data of scanning device 208 at each viewpoint during the scanning of the inner wall of tank 3 by the automatic scanning and detection device of tank 3. Step B2: Based on the extrinsic parameter file of the scanning device 208 and the pose data at each viewpoint, obtain the transformation matrix for that viewpoint; Step B3: Preprocess the point cloud for each viewpoint to obtain the preprocessed point cloud for that viewpoint. Step B4: Based on the transformation matrix of each viewpoint, perform coordinate transformation on the preprocessed point cloud of that viewpoint to obtain the transformed point cloud of that viewpoint. Step B5: The stitching scanning device 208 combines the transformed point clouds from all perspectives during the automatic scanning process of the tank 3 to obtain the tank point cloud; Step B6: Align the tank point cloud to obtain an aligned tank point cloud, so that the tank opening faces the Z-axis of the base coordinate system. Step B7: Perform surface reconstruction on the point cloud of the aligned tank to obtain the reconstructed surface of the tank; Step B8: Obtain the tank reconstruction point cloud based on the reconstructed surface of the tank.

[0055] In this embodiment, Figure 11 This is merely an example of the execution order of the above steps in this application. Steps B2 and B3 can also be performed in parallel, or step B3 can be performed first and then step B2. This invention does not limit the execution order of each step.

[0056] The execution subject of the featureless tank point cloud processing and stitching method disclosed in this invention includes, but is not limited to, at least one of the following electronic devices that can be configured to execute the method provided in the embodiments of this application: server, terminal, computer, etc.

[0057] In this embodiment, in step B1, point cloud and attitude data for each viewpoint can be read simultaneously from the scanning device 208 or from the controller of the automatic tank scanning and detection device during the scanning of the inner wall of the tank 3 by the automatic tank scanning and detection device; alternatively, point cloud and attitude data for all viewpoints can be stored in the memory during the scanning of the inner wall of the tank 3 by the automatic tank scanning and detection device, and after the scanning is completed, point cloud and attitude data for all viewpoints can be read from the memory to perform featureless tank point cloud processing and stitching method.

[0058] In this embodiment, the automatic tank scanning and inspection device can be any existing automatic tank scanning and inspection device product. Alternatively, the automatic tank scanning and inspection device provided above by this invention can be selected. Preferably, the automatic tank scanning and inspection device is controlled to perform an inner wall scan of the tank 3 according to the automatic non-destructive scanning method provided by this invention, obtaining point cloud and attitude data of the scanning device 208 from each viewpoint. The scanning device 208 can be a 3D camera, with a three-axis coordinate system principle as follows... Figure 12 As shown, coordinate system O-XYZ is set as the basic coordinate system, coordinate system O1-X1Y1Z1 is the coordinate system of the tank opening, and coordinate system O2-X2Y2Z2 is the camera coordinate system. 3D camera calibration mainly adopts hand-eye calibration. Through 3D camera calibration, the transformation matrix between coordinate system O2-X2Y2Z2 and O-XYZ is obtained. This transformation matrix is ​​stored in an external parameter file, which can be stored locally on the executing entity. The transformation matrix between coordinate system O2-X2Y2Z2 and O-XYZ is a 4×4 matrix, which can be decomposed into a 3×3 rotation matrix and a 3×1 translation vector.

[0059] In this embodiment, the high-precision three-axis transmission device, i.e., the automatic tank scanning and detection device, is non-standard; please see [link / reference]. Figure 12 and Figure 13 The mounting origin coordinates of the camera mounting surface of the pitch motor 206 (also called the pitch rotary motor) need to be calibrated. Camera calibration is performed using the mounting origin coordinates, the Euler angle types for pitch and horizontal rotation, and the camera calibration plate. The specific calibration process includes: (1) Calculate the position transformation relationship between the installation origin coordinates and the zero point O of the O-XYZ coordinate system using the TCP position calibration (tool center point position calibration) method; calculating the installation origin coordinates requires a six-axis robotic arm and calibration fixture, please see Figure 13The six-axis robotic arm is connected to the end of the six-axis robotic arm via a connecting surface. Using the six-axis robotic arm TCP position calibration method, the rotary motor 204 (also called the horizontal rotary motor) and the pitch motor 206 (also called the pitch rotary motor) are used to move the six-axis robotic arm so that the tip of the calibration fixture is always in the same position. The coordinates of the six-axis robotic arm, the horizontal rotation angle of the rotary motor 204, and the pitch rotation angle of the pitch motor 206 are recorded. By measuring the known distance from the tip of the calibration fixture to the plane of the installation origin, the transformation relationship between the XYZ coordinates of the installation origin and the response Euler angle and the zero point O of the connecting surface is calculated.

[0060] (2) Place the camera calibration plate in the camera's field of view; (3) Control the automatic scanning and detection device of the mobile tank so that the calibration plate is completely in the field of view, fix the calibration plate, record the movement data, calculate the coordinates of the installation origin and the corresponding Euler angles of rotation to form the calibration posture; (4) The 3D camera is controlled by the calibration pose to acquire the original image of the pose and the calibration plate feature is identified. (5) Repeat steps (3) to (4) to continue acquiring poses, acquire at least 20 sets, calculate the transformation matrix through the program, and store the transformation matrix in the external parameter file; (6) Save the external parameter file to the local machine of the execution entity and complete the camera calibration.

[0061] In this embodiment, in step B1, one attitude data point of the scanning device 208 corresponds to one field of view, i.e., one viewing angle. The attitude data of one viewing angle of the scanning device 208 includes the distance between the scanning device 208 and the tank opening, the horizontal rotation angle, and the pitch rotation angle. When the above-mentioned automatic tank scanning and detection device is used, the attitude data includes the linear displacement of the scanning device 208 (or the displacement of the linear module 201), the horizontal rotation angle, and the pitch rotation angle. The point cloud of each viewing angle includes the three-dimensional coordinates of multiple points in the camera coordinate system. In the scanning path inside the tank 3, the scanning device 208 has multiple viewing angles.

[0062] In this embodiment, in step B2, the transformation matrix of the scanning device 208 is obtained based on the extrinsic parameter file of the scanning device 208 and the attitude data of each viewpoint. Specifically, the pose transformation matrix of the viewpoint is obtained according to the attitude data of the current viewpoint of the scanning device 208 and the initial pose of the scanning device 208. The pose transformation matrix of the viewpoint is then multiplied by the transformation matrix from the camera coordinate system to the base coordinate system in the extrinsic parameter file to obtain the transformation matrix of the viewpoint. The initial pose of the scanning device 208 is the attitude data of the scanning device 208 when all driving components return to zero at the start of the automatic tank scanning and detection device. For example, when using the automatic tank scanning and detection device provided by the present invention, the initial pose of the scanning device 208 is the attitude data of the scanning device 208 when the control rotary motor 204, pitch motor 206 and linear module 201 return to zero.

[0063] In this embodiment, step B3 involves preprocessing the point cloud for each viewpoint to obtain a preprocessed point cloud for that viewpoint. Preferably, the preprocessing includes at least one of three processes: outlier removal, point cloud filtering, and point cloud downsampling. When acquiring point cloud data, the scanning device 208 (such as a 3D camera) is often affected by factors such as the external environment, device accuracy, and lighting interference, resulting in noisy or outlier points in the point cloud data. These points, deviating from the true geometric surface, increase modeling errors. Therefore, the system needs to filter the scanned point cloud and perform outlier removal, point cloud filtering, and point cloud downsampling to generate a preprocessed point cloud. Figure 14 This example demonstrates a preprocessed point cloud from a specific viewpoint.

[0064] In this embodiment, more preferably, a voxel mesh method is used to reduce the number of point clouds. When downsampling the point cloud for each viewpoint, the method includes: dividing the point cloud for each viewpoint into a uniform three-dimensional voxel mesh, retaining only one representative point within each voxel, where the representative point is not limited to the center point or centroid of the voxel. A suitable voxel volume can be preset to maximize the preservation of the shape features of the tank 3 while reducing the amount of data and improving the computation speed of subsequent algorithms.

[0065] In this embodiment, through step B4, the transformed point clouds of all views along the scanning path of the scanning device 208 are point clouds in the same coordinate system (i.e., the basic coordinate system O-XYZ), thus completing point cloud registration for subsequent merging.

[0066] In this embodiment, in step B5, the point clouds of view changes obtained by the scanning device 208 in step B4 at all viewpoints along the scanning path are gradually or as a whole merged to complete the point cloud stitching and obtain the tank body point cloud. Figure 15A schematic diagram of the tank's point cloud is shown in an example. Due to overlapping viewpoints, the tank's point cloud exhibits dense point cloud distribution in overlapping areas. To address this, steps B7 and B8 are used to reconstruct the tank surface and restore the point cloud based on the reconstructed surface. This method fills small holes, generates a smooth surface, and obtains a uniform point cloud that accurately reflects the shape characteristics of the tank's inner wall.

[0067] In this embodiment, during the scanning of the inner wall of tank 3 by the automatic tank scanning and detection device, a featureless tank point cloud processing and stitching method can be performed synchronously or asynchronously to obtain the final tank point cloud. In the processing of this method, the point cloud of each viewpoint is first preprocessed to remove point cloud noise and adjust the number of point clouds. Then, the transformation matrix of each viewpoint is obtained through the attitude data of the scanning device and the external parameter file of the scanning device. The preprocessed point cloud of each viewpoint is transformed into the same basic coordinate system through the transformation matrix to complete the point cloud registration. Then, the transformed point clouds of all views are merged to complete the point cloud stitching to obtain the tank point cloud. This realizes point cloud stitching without relying on features and is suitable for the scene of smooth inner wall of ceramic tank 3. When storing liquid food, the can opening of the can body 3 faces upward. In order to facilitate the application of the can body point cloud in volume calculation, the present invention has performed can body alignment processing. Surface reconstruction can further remove noise points, uneven point cloud caused by overlapping views, and fill small holes in the tank alignment point cloud. The tank reconstruction point cloud obtained based on the tank surface has the characteristics of uniform distribution and no noise, which is suitable for subsequent applications, such as tank volume calculation.

[0068] In a preferred embodiment, to accurately align the tank point cloud, step B6 involves aligning the tank point cloud, including: Step B61: Obtain the central axis of the tank point cloud based on the principal component analysis method (i.e., PCA); Step B62: Rotate the tank point cloud to make the central axis perpendicular to the XOY plane of the base coordinate system, thereby aligning the tank point cloud. Specifically, obtain the rotation matrix obtained in step B61 to rotate the central axis to be parallel to the Z-axis in the base coordinate system O-XYZ, and process the tank point cloud based on the rotation matrix to make the central axis of tank 3 perpendicular to the base coordinate system. Step B63: Calculate the cross-sectional area of ​​the top and bottom of the aligned can body point cloud respectively; for example, calculate the cross-sectional area of ​​the aligned can body point cloud at a distance d from the top and a distance d from the bottom, i.e., the cross-sectional area. The value of d is not limited to 5mm to 15mm, but preferably 10mm. Step B64: If the cross-sectional area of ​​the top is less than or equal to the cross-sectional area of ​​the bottom, it means that the can opening is facing upwards, and the can point cloud alignment process is completed. If the cross-sectional area at the top is greater than that at the bottom, then rotate and straighten the point cloud of the tank. After rotation, the cross-sectional area at the top of the straightened point cloud of the tank will be less than or equal to that at the bottom, thus completing the straightening process of the point cloud of the tank.

[0069] This implementation identifies the central axis, or principal line, of the tank point cloud using principal component analysis. However, it cannot analyze the relative position of the tank opening and bottom, nor can it guarantee the upward alignment of the tank opening. Therefore, the feature that the area of ​​the opening of the ceramic tank 3 is smaller than the area of ​​the bottom is used as an auxiliary method, combined with a rotation matrix, to achieve the final alignment of the tank point cloud.

[0070] In this embodiment, step B61, obtaining the central axis of the tank's point cloud based on principal component analysis, includes: Step B611 involves decentering the tank point cloud. For example, the decentering process involves calculating the centroid (also called the center point) of all points in the tank point cloud, i.e., the average coordinates of the points. Then, the coordinates of the centroid are subtracted from the coordinates of all points to complete decentering. Decentering makes the tank point cloud symmetrically distributed relative to the origin of the base coordinate system. If the point cloud is not decentered, the subsequent calculation of the covariance matrix will be affected by the overall position of the point cloud. After decentering, the coordinates of each point are relative to the center of the point cloud, thus eliminating the influence of positional offset.

[0071] Step B612: Calculate the covariance matrix of the decentralized tank point cloud along the X, Y, and Z axes of the base coordinate system. Let the three-dimensional coordinates of a point in the base coordinate system be (x, y, z). The covariance matrix of the tank point cloud describes the linear relationship between the X, Y, and Z axis coordinates (x, y, z). Therefore, the covariance matrix is ​​expressed as: This indicates the calculation of the covariance of two variables.

[0072] Step B613 involves decomposing the covariance matrix to obtain multiple eigenvalues ​​and eigenvectors corresponding to each eigenvalue, and selecting the eigenvector corresponding to the largest eigenvalue as the central axis of the tank point cloud. Preferably, singular value decomposition (SVD) is used to decompose the covariance matrix to obtain multiple eigenvalues ​​and eigenvectors corresponding to each eigenvalue.

[0073] In this embodiment, the core of the principal component analysis method is to maximize the variance of the tank point cloud in the base coordinate system. The larger the variance, the more significant the change in the point cloud data along this coordinate axis, and therefore this direction is considered to contain more information. Therefore, by calculating the covariance matrix of the data, its eigenvalues ​​and corresponding eigenvectors are found. The larger the eigenvalue, the greater the variance along the direction of the corresponding eigenvector; these eigenvectors are the principal components. Therefore, the eigenvector corresponding to the largest eigenvalue is selected as the direction of the greatest change in data variance, which is the principal axis of the point cloud data; for the tank point cloud, this is the central axis, which should be aligned parallel to the Z-axis of the base coordinate system. Clearly, in step B613, the eigenvector corresponding to the smallest eigenvalue is the normal vector of the tank point cloud.

[0074] In a preferred embodiment, during the scanning process of the scanning device 208, such as a 3D camera, scanning the inner wall of the tank 3, there may be incomplete point cloud data at a certain viewpoint. That is, the obtained point cloud is not a complete point cloud at that viewpoint, and there may be large-area incompleteness or internal incompleteness (such as the presence of voids). The reason for the incomplete point cloud may be that the scanning device 208 cannot scan a local part of the inner wall of the tank 3, or it may be that the point cloud is lost during data transmission. To avoid these problems and obtain a complete tank point cloud, before performing the transformation point cloud of all viewpoints during the automatic scanning process of the tank 3 by the stitching scanning device 208 to obtain the tank point cloud, that is, after performing step B4 and before performing step B5, the method provided by the present invention further includes: Determine if the transformed point cloud for each viewpoint is incomplete: If the point cloud of the perspective change is incomplete, it is determined whether the tank 3 is damaged. At this time, it can be manually determined whether the tank 3 being scanned or already scanned is damaged. If the tank 3 is damaged, the process ends, that is, the method provided in this embodiment ends. If the tank 3 is not damaged, it indicates that the point cloud transmission was abnormal or the scanning device 208 could not scan the inner wall of the tank 3. After executing step B5, the tank point cloud completion process is also executed. If the point cloud of the viewpoint transformation is not incomplete, then determine whether the point cloud of the next viewpoint transformation is incomplete. Continue until the point clouds of all viewpoint transformations have been determined, and then proceed to step B5.

[0075] In this embodiment, to adapt to the characteristics of large-area damage or internal voids in ceramic jars and accurately identify point cloud incompleteness, preferably, it involves determining whether the transformed point cloud at each viewpoint is incomplete, including: Step B451: Identify the connected regions of the transformed point cloud from this viewpoint. If the number of connected regions is greater than or equal to 2, it is considered that the transformed point cloud from this viewpoint has a large area of ​​incompleteness. Step B452: Count the number of points in the transformed point cloud of this viewpoint whose curvature is greater than a preset curvature threshold. When the number of points whose curvature is greater than the preset curvature threshold is greater than the preset point count threshold, identify the connectivity between all points whose curvature is greater than the preset curvature threshold. If at least one connected cluster is formed among all points whose curvature is greater than the preset curvature threshold, it is considered that there is incompleteness inside the transformed point cloud of this viewpoint.

[0076] In this embodiment, the step of determining whether the transformed point cloud of each viewpoint is incomplete may include either step B451 or step B452.

[0077] In step B451, a surface connectivity test is used to check whether there are large-area defects in the transformed point cloud of the viewpoint. A complete point cloud should have high connectivity, and the transformed point cloud of the viewpoint should form a connected region after the surface connectivity test. If the transformed point cloud of the viewpoint has many separated regions (multiple connected clusters), it indicates that the transformed point cloud of the viewpoint may be missing or discontinuous. Therefore, when the number of connected regions is greater than or equal to 2, the transformed point cloud of the viewpoint is considered to have large-area defects. The surface connectivity test process of the point cloud is not limited to: treating each point in the point cloud as a node, using the KD-Tree neighborhood search method to quickly search for nearest neighbors for each node, connecting each point with its nearest neighbors with edges, and not connecting it with non-nearest neighbors. If the point cloud does not have large-area defects, a connected graph (also called a connected region) is formed; if the point cloud has large-area defects, two or more connected graphs will be formed.

[0078] If there are missing parts inside the tank 3, the curvature of the point cloud will be abnormal. However, since there are pores (cavities) inside the tank 3, high curvature point clouds will naturally be introduced. Point clouds with abnormal curvature values ​​exceeding the quantity threshold will be connected. If connected clusters are formed, it indicates that the point cloud is incomplete, i.e., there are cavities. In step B452, the method for identifying the connectivity between all points with curvature greater than the preset curvature threshold can also refer to the identification method in step B451 above, and will not be repeated here.

[0079] In this embodiment, more preferably, to facilitate subsequent calculations such as the volume of tank 3, it is necessary to perform tank point cloud completion. The tank point cloud completion process includes: The scanning device 208 of the automatic scanning and detection device for the tank returns to the pose corresponding to the viewpoint where the transformed point cloud is incomplete, and rescans the inner wall of the tank 3 to obtain a new point cloud for that viewpoint. Determine if the new point cloud is incomplete. If the new point cloud is incomplete, it means that the previous point cloud incompleteness was caused by the loss of point cloud data transmission. Then, the new point cloud is added to the tank point cloud. If the new point cloud is incomplete, it means that the scanning device 208 has an area that cannot be successfully scanned from this viewpoint. Then, interpolation is performed on the reconstructed surface of the tank to complete the incompleteness.

[0080] In this embodiment, in step B7, the surface of the tank is reconstructed by performing surface reconstruction on the point cloud of the tank alignment. Preferably, the Poisson surface reconstruction method is selected, specifically including: Step (1) Calculate the normal vector of the point cloud of the tank being aligned.

[0081] The ceramic jar 3 is approximately an ellipsoid, and the curvature of jar 3 varies at different locations. The point cloud normal vector is obtained for surface reconstruction. A normal vector is the vector represented by a straight line perpendicular to a plane. In the aforementioned PCA principal component analysis, the eigenvector corresponding to the smallest eigenvalue of the covariance matrix decomposition was obtained as the point cloud normal vector of the local surface. The process of obtaining the normal vector for each point is as follows: ① For each point in the point cloud of the tank alignment, find its nearest neighbor. When designing the search algorithm, a KD-tree can be used as the search structure to accelerate the search for nearest neighbors. KD-trees can efficiently organize points in three-dimensional space, significantly improving the speed of nearest neighbor search.

[0082] ② Calculate the covariance matrix of these neighboring points; ③ Perform eigenvalue decomposition on the covariance matrix; ④ The eigenvector corresponding to the smallest eigenvalue is the direction of the normal vector.

[0083] Step (2) Merge the normal vector and point cloud coordinates to form a new point cloud representation.

[0084] The original point cloud data of the pottery jars does not include normal vector data. In the aforementioned process, the calculated normal vector data should be uniformly stored in the data structure of each point cloud. Therefore, it is necessary to merge the normal vector data and the point cloud data. The normal vector data structure uses four values ​​of `normal` from `pcl:Normals` (normal x, normal y, normal z, curvature), namely, the x-normal vector, y-normal vector, z-normal vector, and the curvature value calculated using the covariance matrix of the neighborhood point set and singular value decomposition.

[0085] During merging, the x, y, z coordinates and normal data of the original point cloud are concatenated, and the data can be saved as a PCD point cloud file. By saving both the normal vector and coordinate data simultaneously, the local geometric features of the point cloud surface can be reflected, enabling more accurate surface fitting.

[0086] Step (3) Reconstruct the Poisson surface.

[0087] Poisson Surface Reconstruction is a surface reconstruction algorithm that constructs the Poisson equation by calculating the normal vector field and solving for the implicit surface, ultimately extracting the isosurface to generate a mesh. The core idea is to distinguish between the interior and exterior of an object, with the normal vectors of the object's point cloud data indicating the interior and exterior. By implicitly fitting the object's indicator function, an estimate of the object's surface is obtained; that is, by transforming the information of discrete points on the object's surface into a continuous surface function, the surface is constructed. If the exponential function value of each point in the tank's alignment point cloud is obtained, the surface of the entire tank's alignment point cloud can be determined. The Poisson Reconstruction algorithm outputs a triangular mesh model of the tank.

[0088] If the newly obtained point cloud is still incomplete in this step, interpolation is performed on the reconstructed surface of the tank (i.e., the Poisson reconstruction algorithm outputs a triangular mesh model) to complete it.

[0089] In this embodiment, to improve the accuracy of the subsequent calculation of the internal volume of the ceramic jar, the reconstructed surface of the jar, i.e., the triangular mesh model output by the Poisson reconstruction algorithm, inevitably has reconstruction errors. Therefore, in this application, point cloud data is used to calculate the internal volume of the jar. In step B8, the step of obtaining the jar's restored point cloud based on the reconstructed surface of the jar specifically involves extracting the vertices of the reconstructed surface and restoring the mesh representation of the reconstructed surface of the jar to a point cloud representation.

[0090] This invention discloses a method for calculating the internal volume of an irregular tank.

[0091] In a preferred embodiment, a method for calculating the internal volume of an irregularly shaped tank is provided below. Figure 16 ,include: Step C1: Read the point cloud inside the tank. The point cloud inside the tank is obtained by processing and stitching the point cloud scanned from the inner wall of the tank 3.

[0092] It is understandable that the internal point cloud of the tank is read from the internal memory of the execution entity of the method for calculating the internal volume of the irregular tank via a communication interface, or from an external memory connected to the execution entity, or from other entities. The internal point cloud of the tank is obtained by scanning the inner wall of the tank 3 along a preset scanning path using the scanning device 208 of the automatic tank scanning detection device, obtaining point clouds from multiple perspectives of the scanning device 208, and then processing and stitching the point clouds from multiple perspectives to obtain the internal point cloud of the tank.

[0093] Preferably, the automatic tank scanning and detection device is the automatic tank scanning and detection device provided by the present invention. More preferably, the internal scanning of the tank 3 can be performed according to the automatic non-destructive scanning method of the present invention to obtain point cloud and attitude data from multiple perspectives of the scanning device 208. More preferably, the tank reconstruction point cloud obtained based on the featureless tank point cloud processing and stitching method provided by the present invention is used as the internal point cloud of the tank in this embodiment.

[0094] Step C2: Determine the reference plane of the point cloud inside the tank, and start from the reference plane to divide the point cloud inside the tank into slices along the height direction to obtain multiple slices.

[0095] Specifically, the reference plane is the starting plane for calculating the internal volume of the tank. Its acquisition process includes: obtaining the zero-point plane of the point cloud inside the tank and the basic coordinate system (which can be the aforementioned basic coordinate system O-XYZ); translating the point cloud inside the tank by a certain height so that the zero-point plane of the point cloud inside the tank is aligned with the zero-point plane of the coordinate system (i.e., the XOY plane). Generally, the zero-point plane of the point cloud inside the tank is the plane circumscribed by the top or bottom of the tank and parallel to the XOY plane, and the height direction of the point cloud inside the tank is the Z-axis direction of the basic coordinate system.

[0096] In this embodiment, the heights of the multiple slices obtained in step C2 may be the same or different. If the slice heights are not completely equal, the slice height can be set according to the curvature of the local point cloud inside the tank. For example, the greater the local curvature of the point cloud inside the tank, the smaller the slice height of that local point cloud should be.

[0097] To facilitate rapid slicing and accelerate processing efficiency, preferably, in step C2, the tank is divided into equal-height slices starting from the reference plane along the height direction of the point cloud inside the tank, according to a preset slicing height, to obtain multiple slices, with the minimum Z-axis coordinate of the point cloud inside the tank as the dividing point. Starting from the maximum value of the Z-axis coordinate of the point cloud inside the tank, Using the endpoint as the dividing point, the process is repeated to obtain multiple slices.

[0098] Step C3: Project all points of each slice onto the reference plane, obtain the minimum bounding boundary of the projected points of each slice on the reference plane, and multiply the internal area of ​​the minimum bounding boundary of each slice by the height of the slice to obtain the volume of the slice.

[0099] It is understandable that the reference plane is the XOY plane, which serves as the projection plane. For any point P(x,y,z) in three-dimensional space, the coordinates of its orthogonal projection point P'(x',y') on the XOY plane are calculated as x'=x, y'=y. In other words, the z-coordinate value of the point is directly discarded, and the x and y coordinates are used as the coordinates on the two-dimensional projection plane.

[0100] Step C4: Accumulate the volumes of all slices of the point cloud inside the tank to obtain the internal volume of the tank. Use the sum of the accumulated volumes as the internal volume of the tank.

[0101] Step C5: Store the internal volume of the tank. The internal volume of the tank is stored in the internal memory of the execution subject of the method for calculating the internal volume of an irregular tank provided in this embodiment, or in its external memory, or in a preset database.

[0102] The larger the number of slices, the smaller the area difference between the upper and lower cross sections of the slice point cloud. Therefore, the smaller the internal area difference of the minimum bounding boundary between adjacent slices, the more accurate the final tank internal volume is obtained. However, the computational load is large, reducing processing efficiency. Conversely, when the number of slices is small, although the computational load is reduced and the processing efficiency is improved, the area difference between the upper and lower cross sections of the slice point cloud is large, and the internal area difference of the minimum bounding boundary between adjacent slices is also large, resulting in lower accuracy of the final tank internal volume. To reconcile the contradiction between computational load and tank internal volume accuracy, a preset slice height is found that satisfies both moderate computational load and high tank internal volume accuracy. In a preferred embodiment, the preset slice height is selected as follows: For tank 3 of the same specification, select the point cloud inside one tank 3, and set the preset slice height. The range of values ​​is , Indicates rounding up. Starting from 6, iterate through the value range in increments of 1 or 2. Each time a value is traversed (i.e.) When traversing the values, calculate the objective function value. After traversing its range of values, select the value with the minimum objective function value. The traversal value as The selected value is used as the final preset slice height. Later, for other tanks of this specification (tank 3), the internal point cloud was sliced ​​using the selected traversal values ​​as the preset slice height. The objective function is: Indicates according to The current traversal value is the slice index after slicing the point cloud inside the tank. Indicates according to The current traversal value is used to slice the point cloud inside the tank. The interior area of ​​the minimum enclosing boundary. Indicates according to The current traversal value is used to slice the point cloud inside the tank. The internal area of ​​the minimum enclosing boundary.

[0103] This embodiment uses a reference plane as the starting plane for calculating the tank volume. It is aligned with the coordinate system of the point cloud inside the tank. After slicing along the height direction of the point cloud inside the tank, each slice is projected onto the reference plane. The area inside the minimum bounding boundary of each slice's projection point is used as the bottom area of ​​that slice, which improves the accuracy of the bottom area. The volume of each slice is calculated separately by multiplying the area inside the minimum bounding boundary by the height of that slice. The volumes of all slices are then summed to obtain the internal volume of the tank, which improves the accuracy of the internal volume of the tank.

[0104] In a preferred embodiment, after reading the point cloud inside the tank in step C1, the method further includes: Perform a compliance check on the point cloud inside the tank. If the point cloud inside the tank is compliant, then determine the reference plane for the point cloud inside the tank. If the point cloud inside the tank is not compliant, then end the process.

[0105] In this embodiment, the process of determining the compliance of the point cloud inside the tank is as follows: if the point cloud inside the tank is aligned and the tank opening faces upwards, the point cloud inside the tank is considered compliant; if it is not aligned and the tank opening faces downwards, the point cloud inside the tank is considered non-compliant. The alignment of the point cloud inside the tank can be determined by: obtaining the central axis of the point cloud inside the tank using the principal component analysis method in the featureless tank point cloud processing and stitching method provided by this invention; and determining whether the central axis is parallel to the Z-axis. If it is parallel, it is considered aligned; if it is not parallel, it is considered not aligned. Alternatively, the orientation of the tank opening can be determined using the tank opening orientation method in the featureless tank point cloud processing and stitching method provided by this invention.

[0106] In a preferred embodiment, after performing step C2 and before performing step C3 to project all points of each slice onto the reference plane, the method further includes: Repeat the following steps until the number of points in all slices is greater than the first point threshold: The number of points within each slice is counted. If the number of points in a slice is less than or equal to a preset first point threshold, the slice is merged with a neighboring slice whose point count is greater than a second point threshold. The height of the merged slice is the sum of the heights of the two merged slices. The second point threshold is greater than the first point threshold. A neighboring slice whose point count is greater than the second point threshold can be the slice preceding or following the current slice. In this embodiment, the first point threshold can be 2, and the second point threshold can be 3.

[0107] In this embodiment, slices with a number of points less than or equal to the first point threshold are excluded through the above processing, because such slices cannot effectively obtain the minimum enclosing boundary and calculate their internal area, thereby improving the reliability of the entire algorithm.

[0108] In a preferred embodiment, in step C3, all points of each slice are projected onto a reference plane to obtain the minimum bounding boundary of the projected points of each slice on the reference plane, and the minimum bounding boundary of the projected points of each slice on the reference plane is obtained based on the convex hull method.

[0109] It is understood that the convex hull method is an algorithm used to obtain the minimum enclosing polygon of a planar point set. The principle of the convex hull method is to find the minimum convex polygon containing the set of points projected onto the reference plane for each slice, ensuring that the line connecting any two points within the minimum convex polygon lies entirely inside that polygon. The convex hull construction of the projected points after slicing uses an incremental method (QuickHull), which can quickly process large-scale point cloud data. For example, as... Figure 17 As shown, the principle of convex hull calculation is as follows: ① Randomly select four initial projection points to form a tetrahedron; ② Traverse the remaining projection points and use the ray casting method to determine whether the projection points are located inside the convex hull; ③ Add the external projection points to the convex hull vertex set and recalculate the convex hull.

[0110] In a preferred embodiment, to accurately calculate the internal area of ​​the minimum enclosing boundary, the internal area of ​​the minimum enclosing boundary of each slice is calculated using the shoelace formula.

[0111] Specifically, for a projected point cloud already projected onto a two-dimensional plane, its minimum bounding boundary is essentially a polygon. To calculate the area of ​​this polygon on the plane, the shoelace formula is needed. The shoelace formula is defined as follows: the coordinates of the polygon vertices are arranged in clockwise or counterclockwise order, denoted as (x1, y1), (x2, y2), ..., (x...). n y n Connect the first and last vertices to form a closed figure. When calculating the area, multiply the coordinates of adjacent vertices by cross; the first part is x1y2 + x2y3 + ... + x n y1, the latter half of which is y1x2 + y2x3 + ... + y n x1, the area is half the absolute value of the difference between the two. in, Let be the coordinates of vertex i of the minimum bounding boundary in the projection plane, n be the number of vertices of the minimum bounding boundary, and det() represent the determinant operation. This formula calculates twice the area by traversing the vertices of the minimum bounding boundary and calculating the sum of the cross products of the vectors formed by the coordinates of adjacent points (which needs to be divided by 2). Let be the coordinates of vertex i of the minimum bounding boundary in the projection plane.

[0112] In a preferred embodiment, a unique tank number is assigned to each tank 3, and a volume lookup table is set for each tank 3, with the tank number bound to the volume lookup table. The volume lookup table includes the slice number of each slice, as well as the height of that slice, the cumulative height of the slices, the cumulative volume of the slices, and the volume of the slice associated with that slice number. When obtaining the liquid level height inside the tank, the volume lookup table bound to the tank number is found, and the liquid level height inside the tank is matched with the found volume lookup table to obtain the volume of the liquid inside the tank. Preferably, the volume lookup table is stored in a preset database.

Claims

1. A method for automatic non-destructive scanning of a tank body, the method being implemented by a controller based on a tank body automatic scanning detection device installed at a tank opening, characterized in that, The automatic tank scanning and detection device includes a fixed fixture (1) and a scanning mechanism (2); The fixed fixture (1) includes a mounting base plate (101) and a tank opening clamping mechanism and a first connecting structure disposed on the mounting base plate (101). The automatic tank scanning and detection device is installed at the tank opening through the tank opening clamping mechanism. The scanning mechanism (2) includes a lifting motor (214), a linear module (201), a rotary motor (204), a pitch motor (206), and a scanning device (208). The lifting motor (214) is used to drive the linear module (201). A fixed seat (202) is installed on the slider of the linear module. A second connecting structure that cooperates with the first connecting structure is provided on the fixed seat (202). One end of the linear module (201) is equipped with a rotary motor (204) through a motor seat (203). The rotary motor (204) is equipped with a pitch motor (206) through an adapter seat (205). The pitch motor (206) is equipped with the scanning device (208) through a transition plate (207). The controller is electrically connected to the lifting motor (214), the rotary motor (204), the pitch motor (206), and the scanning device (208), respectively. The controller performs the following steps: Step A1: Control the lifting motor (214), rotation motor (204), and pitch motor (206) to initialize the position and attitude of the scanning device (208); Step A2: Control the lifting motor (214) to drive the linear module (201) to move the scanning device (208) downward to one or more set positions. After the scanning device (208) reaches each set position, control the pitch motor (206) to drive the scanning device (208) to rotate to different pitch angles. After the scanning device (208) rotates to each pitch angle, control the rotary motor (204) to drive the scanning device (208) to scan circumferentially once. The scanning device (208) rotates once per circumferential direction. Record the current attitude data of the scanning device (208) and control the scanning device (208) to acquire the point cloud of the inner wall of the tank (3).

2. The automatic non-destructive scanning method for tanks according to claim 1, characterized in that, Two setting positions are set, including a first setting position and a second setting position. The distance of the first setting position from the plane of the can opening is less than the distance of the second setting position from the plane of the can opening.

3. The automatic non-destructive scanning method for tanks according to claim 2, characterized in that, The distance from the first designated position to the can opening plane is 0.25 Hg to 0.35 Hg; The distance between the second designated position and the tank opening plane is 0.54Hg to 0.62Hg; where Hg represents the tank height.

4. The automatic non-destructive scanning method for tanks according to claim 2 or 3, characterized in that, When the control lifting motor (214) drives the linear module (201) to move the scanning device (208) downward to the first set position: Step A21: After controlling the pitch motor (206) to drive the scanning device (208) to rotate to the first pitch angle, control the rotary motor (204) to drive the scanning device (208) to scan one circumferential circle at the first step angle and then proceed to step A22. In this step, the scanning device (208) rotates once per circumferential circle, records the current attitude data of the scanning device (208), and controls the scanning device (208) to acquire the point cloud of the inner wall of the tank (3). Step A22: After controlling the pitch motor (206) to drive the scanning device (208) to rotate to the second pitch angle, control the rotary motor (204) to drive the scanning device (208) to scan circumferentially at the first step angle. The scanning device (208) rotates once per circumferential direction. Record the current attitude data of the scanning device (208) and control the scanning device (208) to acquire the point cloud of the inner wall of the tank (3). First pitch angle > Second pitch angle ≥ 0°.

5. The automatic non-destructive scanning method for tanks according to claim 4, characterized in that, When the control lifting motor (214) drives the linear module (201) to move the scanning device (208) downward to the second set position: Step A23: After controlling the pitch motor (206) to drive the scanning device (208) to rotate to the third pitch angle, control the rotary motor (204) to drive the scanning device (208) to scan one circumferential circle at the second step angle and then proceed to step A24. In this step, the scanning device (208) rotates once per circumferential circle, records the current attitude data of the scanning device (208), and controls the scanning device (208) to acquire the point cloud of the inner wall of the tank (3). Step A24: After controlling the pitch motor (206) to drive the scanning device (208) to rotate to the fourth pitch angle, control the rotary motor (204) to drive the scanning device (208) to scan one circumferential circle at the second step angle and then proceed to step A25. In this step, the scanning device (208) rotates once per circumferential circle, records the current attitude data of the scanning device (208), and controls the scanning device (208) to acquire the point cloud of the inner wall of the tank (3). Step A25: After controlling the pitch motor (206) to drive the scanning device (208) to rotate to the fifth pitch angle, control the rotary motor (204) to drive the scanning device (208) to scan one circumferential circle at the second step angle and then proceed to step A26. In this step, the scanning device (208) rotates once per circumferential circle, records the current attitude data of the scanning device (208), and controls the scanning device (208) to acquire the point cloud of the inner wall of the tank (3). Step A26: After controlling the pitch motor (206) to drive the scanning device (208) to rotate to the sixth pitch angle, control the rotary motor (204) to drive the scanning device (208) to scan circumferentially at the third step angle. The scanning device (208) rotates once per circumferential direction. Record the current attitude data of the scanning device (208) and control the scanning device (208) to acquire the point cloud of the inner wall of the tank (3). Third pitch angle > 0° > Fourth pitch angle > Fifth pitch angle > Sixth pitch angle > -100°.

6. The automatic non-destructive scanning method for tanks according to claim 5, characterized in that, The first step angle and the second step angle are determined by the maximum waist diameter of the tank and the effective field of view of the scanning device (208).

7. The automatic non-destructive scanning method for tanks according to claim 5 or 6, characterized in that, The third step angle is determined based on the circumference of the tank bottom and the effective field of view of the scanning device (208).

8. The automatic non-destructive scanning method for tanks according to claim 5, characterized in that, In the circumferential scans at the first pitch angle, second pitch angle, third pitch angle, fourth pitch angle, fifth pitch angle, and sixth pitch angle, counterclockwise and clockwise circumferential scans are performed alternately.

9. A method for calculating the internal volume of an irregularly shaped tank, characterized in that, The method includes: Perform the steps of the method according to any one of claims 1-8 to obtain point cloud and attitude data of the scanning device (208) at each viewpoint during the process of the automatic tank scanning detection device performing the scanning of the inner wall of the tank (3); The point cloud and attitude data from all perspectives of the scanning device (208) are processed and stitched together to obtain the point cloud inside the tank. Read the point cloud inside the tank, which is obtained by processing and stitching the point cloud scanned from the inner wall of the tank. Determine the reference plane for the point cloud inside the tank, and start from the reference plane to divide the point cloud inside the tank into slices along the height direction to obtain multiple slices; Project all points of each slice onto the reference plane to obtain the minimum bounding boundary of the projected points of each slice on the reference plane. Multiply the internal area of ​​the minimum bounding boundary of each slice by the height of the slice to obtain the volume of the slice. The internal volume of the tank is obtained by summing the volumes of all slices of the point cloud inside the tank, and a volume lookup table is constructed. Internal volume of the storage tank.

Citation Information

Patent Citations

  • Positioning material-pressing trolley

    CN203418029U