Magnetic levitation wind tunnel test model vision measurement method, device, equipment and device

By improving the genetic algorithm and optimizing the BP neural network to calibrate the high-speed camera, combined with the binocular vision measurement system, the non-contact and high-precision measurement of the maglev wind tunnel test model was achieved, which solved the problem of traditional technology being difficult to meet the measurement requirements of high-speed moving objects. Improved measurement accuracy and efficiency.

CN118730474AActive Publication Date: 2024-10-01NAT UNIV OF DEFENSE TECH

Patent Information

Application Number
CN202410768456.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-01
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Traditional wind tunnel visual measurement technology is difficult to meet the high-precision measurement requirements of high-speed moving objects in maglev wind tunnels, and the installation of sensors may affect aerodynamic performance.

Method used

An improved genetic algorithm is used to optimize the BP neural network to calibrate the high-speed camera, and a binocular vision measurement system is used to achieve non-contact, high-precision measurement through infrared cameras and high-speed cameras to avoid affecting the aerodynamic performance of the test model.

Benefits of technology

It improves the measurement accuracy and efficiency of high-speed motion test models, ensures the reliability of data, and avoids the negative impact of sensor installation on aerodynamic performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730474A_ABST
    Figure CN118730474A_ABST
Patent Text Reader

Abstract

The invention discloses a magnetic levitation wind tunnel test model vision measurement method, device, equipment and device, and relates to the field of magnetic levitation wind tunnels, and the method comprises the steps: a measurement system obtains test model images synchronously shot by two high-speed cameras after the calibration of an improved genetic algorithm optimized BP neural network; respectively extracting pixel coordinates of a plurality of feature points from each test model image, and determining a plurality of groups of feature points with a corresponding relation based on relative position information of the feature points in the corresponding test model images; the corresponding relation represents that the feature points in the same group correspond to the same point on the test model; and calculating a three-dimensional world coordinate of the test model by using a parallax principle and a triangulation principle based on the pixel coordinates of the plurality of groups of feature points with the corresponding relation, and determining speed information and attitude information of the test model based on the three-dimensional world coordinate. According to the invention, non-contact and high-precision measurement of the test model moving at a high speed is realized through the measurement system constructed based on the high-speed camera.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of maglev wind tunnels, and in particular to a method, device, equipment and apparatus for visually measuring a maglev wind tunnel test model. Background Art

[0002] The design concept of the maglev wind tunnel combines the vacuum tube maglev train and dynamic model test technology. By constructing a "body moving and wind still" test state close to the real flight environment and movement characteristics, it meets the ground test needs of aerodynamics and cross-disciplinary subjects of aerospace vehicles and high-speed trains in a wide range of Mach numbers and Reynolds numbers, low noise and low turbulence. Its characteristics are: first, "body moving and wind still", the moving body moves at supersonic speed in the tube; second, non-contact, high-precision measurement requirements, the test needs to grasp the accurate position of the moving body, speed changes, and attitude information.

[0003] Existing wind tunnel visual measurement technology is mostly used in ordinary wind tunnels, and the camera frame rate used is mostly below 1000FPS (Frame Per Second, the number of frames transmitted per second). However, due to the fast movement speed of the suspended movers and high measurement accuracy requirements of the maglev wind tunnel, traditional wind tunnel visual measurement technology is not suitable for high-speed moving bodies and is difficult to meet the requirements of high-precision measurement. Secondly, for the feature recognition of high-speed moving bodies, the addition of feature recognition objects may affect the aerodynamic performance of high-speed moving bodies, and the impact on aerodynamic performance may be amplified in the case of high-speed movement. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and device for visual measurement of a maglev wind tunnel test model, which can calibrate a high-speed camera based on an improved genetic algorithm to optimize a BP neural network, and use a measurement system built based on a high-speed camera to achieve non-contact, high-precision measurement of a high-speed moving test model. The specific scheme is as follows:

[0005] In a first aspect, the present application provides a visual measurement method for a maglev wind tunnel test model, which is applied to a measurement system; the measurement system includes an infrared camera, a fill light source, two high-speed cameras, and a storage device configured for each of the high-speed cameras; the two high-speed cameras are placed at different positions on the inner wall of the wind tunnel pipe and synchronously shoot the same area in the maglev wind tunnel; wherein the method includes:

[0006] Acquire the test model images synchronously photographed by the two calibrated high-speed cameras; the two calibrated high-speed cameras are cameras calibrated based on the BP neural network optimized by the improved genetic algorithm;

[0007] Extracting feature points from each of the test model images to obtain pixel coordinates of a plurality of feature points, and determining a plurality of groups of feature points having corresponding relationships based on relative position information of the feature points in the corresponding test model images; the corresponding relationships indicate that the feature points in the same group correspond to the same spatial point on the test model; the test model is a model mounted on a magnetically suspended mover that moves at high speed in the wind tunnel duct;

[0008] The three-dimensional world coordinates of the corresponding test model are calculated based on the pixel coordinates of the plurality of groups of feature points having corresponding relationships by utilizing the parallax principle and the triangulation principle, and the speed information and the posture information of the test model are determined based on the three-dimensional world coordinates.

[0009] Optionally, before acquiring the calibrated test model images synchronously photographed by the two high-speed cameras, the method further includes:

[0010] Aligning the coordinates of the infrared camera and the two high-speed cameras to establish a world coordinate system;

[0011] Correspondingly, after obtaining the calibrated test model images synchronously photographed by the two high-speed cameras, the method further includes:

[0012] The calibrated test model images synchronously photographed by the two high-speed cameras are stored in the corresponding storage device.

[0013] Optionally, before acquiring the calibrated test model images synchronously photographed by the two high-speed cameras, the method further includes:

[0014] Acquire a plurality of chessboard images taken from different angles, and preprocess each of the chessboard images to obtain each preprocessed image; the preprocessing includes grayscale transformation, Gaussian filtering, and image reduction processing based on a multi-grid algorithm;

[0015] Performing corner point detection on each of the preprocessed images, and matching the detected corner points with the same name based on grid motion statistics to obtain a number of corner points with the same name;

[0016] The two-dimensional pixel coordinates of each corner point with the same name are converted into corresponding three-dimensional world coordinates by using the least square method and based on the binocular vision model, so as to obtain coordinate information corresponding to each corner point with the same name;

[0017] Constructing a corner point set based on the coordinate information corresponding to each of the corner points with the same name, and dividing the corner point set into a training set and a test set;

[0018] Utilizing the training set and based on the improved genetic algorithm to optimize the BP neural network, so as to obtain a BP neural network optimized based on the improved genetic algorithm;

[0019] The BP neural network optimized based on the improved genetic algorithm is tested using the test set to obtain optimized world coordinates corresponding to the corner points with the same name in the test set, and the high-speed camera is calibrated based on the optimized world coordinates.

[0020] Optionally, extracting feature points from each of the test model images to obtain pixel coordinates of a plurality of feature points includes:

[0021] Performing Gaussian filtering on each of the test model images to obtain each processed model image, and identifying a number of feature markers from each of the processed model images;

[0022] Feature points are extracted from each of the feature marks to obtain pixel coordinates of a plurality of feature points.

[0023] Optionally, extracting feature points from each of the feature markers to obtain pixel coordinates of a plurality of feature points includes:

[0024] Respectively determining all pixel coordinates within each of the feature marks, and grayscale values ​​corresponding to all the pixel coordinates;

[0025] Based on all pixel coordinates in each of the feature marks and the grayscale values ​​respectively corresponding to all the pixel coordinates, the pixel coordinates of the center point in each of the feature marks are calculated to obtain the pixel coordinates of several feature points.

[0026] Optionally, the calculating of the corresponding three-dimensional world coordinates of the test model based on the pixel coordinates of the plurality of groups of feature points having corresponding relationships by using the parallax principle and the triangulation principle includes:

[0027] Using a world coordinate calculation formula pre-constructed based on the parallax principle and the triangulation principle, the pixel coordinates of any set of feature points having a corresponding relationship are calculated to obtain the three-dimensional world coordinates of the test model;

[0028] Wherein, before calculating the pixel coordinates of any set of feature points having a corresponding relationship using the world coordinate calculation formula pre-constructed based on the parallax principle and the triangulation principle, the method further includes:

[0029] Obtaining the focal length of the high-speed camera and the distance between the optical centers of the two high-speed cameras; the focal lengths and field angles of the two high-speed cameras are the same;

[0030] The world coordinate calculation formula is constructed based on the focal length and the distance by utilizing the parallax principle and the triangulation principle.

[0031] Optionally, the method further includes:

[0032] Obtaining the original temperature of the test model measured by the infrared camera;

[0033] The angle between the infrared camera and the test model is determined, and the original temperature is adjusted based on the angle and a coefficient related to the wavelength of the electromagnetic radiation to obtain temperature data of the test model.

[0034] In the second aspect, the present invention provides a visual measurement device for a maglev wind tunnel test model, which is applied to a measurement system; the measurement system includes an infrared camera, a fill light source, two high-speed cameras, and a storage device configured for each of the high-speed cameras; the two high-speed cameras are placed at different positions on the inner wall of the wind tunnel pipe and synchronously shoot the same area in the maglev wind tunnel; wherein the device includes:

[0035] An image acquisition module, used to acquire images of the test model synchronously photographed by the two calibrated high-speed cameras; the two calibrated high-speed cameras are both cameras calibrated based on an improved genetic algorithm to optimize a BP neural network;

[0036] A corresponding relationship determination module is used to extract feature points from each of the test model images to obtain pixel coordinates of a plurality of feature points, and determine a plurality of groups of feature points having corresponding relationships based on relative position information of the feature points in the corresponding test model images; the corresponding relationship indicates that the feature points in the same group correspond to the same spatial point on the test model; the test model is a model mounted on a magnetic suspension mover that moves at high speed in the wind tunnel duct;

[0037] The information determination module is used to calculate the three-dimensional world coordinates of the corresponding test model based on the pixel coordinates of the plurality of groups of feature points having corresponding relationships by utilizing the parallax principle and the triangulation principle, and determine the speed information and posture information of the test model based on the three-dimensional world coordinates.

[0038] In a third aspect, an electronic device is provided, comprising:

[0039] Memory, used to store computer programs;

[0040] A processor is used to execute the computer program to implement the aforementioned visual measurement method of the magnetic levitation wind tunnel test model.

[0041] In a fourth aspect, a computer-readable storage medium is provided for storing a computer program, and when the computer program is executed by a processor, the aforementioned visual measurement method of the magnetic levitation wind tunnel test model is implemented.

[0042] The visual measurement method of the maglev wind tunnel test model of the present application is applied to a measurement system; the measurement system includes an infrared camera, a fill light source, two high-speed cameras and a storage device configured for each of the high-speed cameras; the two high-speed cameras are placed at different positions on the inner wall of the wind tunnel pipe and synchronously shoot the same area in the maglev wind tunnel; wherein the method includes: obtaining the test model images synchronously shot by the two calibrated high-speed cameras; the two calibrated high-speed cameras are cameras calibrated based on the BP neural network optimized by the improved genetic algorithm; the feature points of each of the test model images are respectively calibrated. Extraction, to obtain the pixel coordinates of several feature points, based on the relative position information of the feature points in the corresponding test model image, determine several groups of feature points with corresponding relationships; the corresponding relationship represents that the feature points in the same group correspond to the same spatial point on the test model; the test model is a model mounted on a magnetic suspension mover that moves at high speed in the wind tunnel duct; using the principle of parallax and triangulation and based on the pixel coordinates of the several groups of feature points with corresponding relationships, calculate the corresponding three-dimensional world coordinates of the test model, and determine the speed information and posture information of the test model based on the three-dimensional world coordinates. It can be seen that the present application calibrates the high-speed camera based on the improved genetic algorithm to optimize the BP neural network, thereby meeting the high-precision and high-resolution requirements of the high-speed camera and improving the measurement accuracy of the high-speed moving test model; and the present application realizes the contactless measurement of the high-speed moving test model through the measurement system constructed based on the high-speed camera, avoiding the problem of installing sensors on the high-speed moving test model, which is easy to have a negative impact on the aerodynamic performance and motion characteristics of the model, improving the measurement efficiency of the high-speed moving test model, and ensuring the reliability of the test model data. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0044] Figure 1 A flow chart of a visual measurement method for a magnetic levitation wind tunnel test model disclosed in this application;

[0045] Figure 2 A high-speed camera layout diagram disclosed in this application;

[0046] Figure 3 A horizontal field of view diagram of two high-speed cameras disclosed in this application;

[0047] Figure 4 A distance measurement principle diagram of two high-speed cameras disclosed in this application;

[0048] Figure 5 A high-speed camera calibration flow chart disclosed in this application;

[0049] Figure 6 A specific high-speed camera calibration flow chart disclosed in this application;

[0050] Figure 7 A schematic diagram of the structure of a visual measurement device for a magnetic levitation wind tunnel test model disclosed in this application;

[0051] Figure 8 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] Due to the high speed of the suspended mover and high measurement accuracy requirements of the maglev wind tunnel, the traditional wind tunnel visual measurement technology is not suitable for high-speed moving bodies and it is difficult to meet the requirements of high-precision measurement. To this end, this application provides a maglev wind tunnel test model visual measurement method, which can calibrate the high-speed camera based on the improved genetic algorithm to optimize the BP neural network, and use the measurement system built based on the high-speed camera to achieve non-contact, high-precision measurement of the high-speed moving test model.

[0054] See also Figure 1 As shown, an embodiment of the present invention discloses a visual measurement method for a maglev wind tunnel test model, which is applied to a measurement system; the measurement system includes an infrared camera, a fill light source, two high-speed cameras, and a storage device configured for each of the high-speed cameras; the two high-speed cameras are placed at different positions on the inner wall of the wind tunnel pipe and synchronously shoot the same area in the maglev wind tunnel; wherein the method includes:

[0055] Step S11, obtaining the test model images synchronously photographed by the two calibrated high-speed cameras; the two calibrated high-speed cameras are both cameras calibrated based on the BP neural network optimized by the improved genetic algorithm.

[0056] In this embodiment, the measurement system includes an infrared camera, two fill light sources, two high-speed cameras, and a high-speed image storage device configured for each high-speed camera, and all are placed on the inner wall of the wind tunnel duct; wherein the infrared camera is used to realize temperature measurement, and the two high-speed cameras are used to realize binocular vision measurement. It should be noted that, if Figure 2 As shown in FIG, two high-speed cameras are placed at different positions on the inner wall of the wind tunnel pipe and simultaneously photograph the same area in the maglev wind tunnel, thereby realizing binocular vision measurement. Figure 3 As shown, the focal length of high-speed camera 1 is consistent with that of high-speed camera 2, for example, 10 mm; and the field of view of high-speed camera 1 is consistent with that of high-speed camera 2, and the distance between high-speed camera 1 and high-speed camera 2 can also be set. In this way, the non-contact measurement method of the camera can avoid installing sensors on the object to be measured, avoid negative impacts on the aerodynamic performance and motion characteristics of the object to be measured, make the measurement results objective, visual, and reliable, and greatly improve the measurement efficiency and measurement accuracy; and the camera measurement method has the advantages of easy disassembly and assembly and small size.

[0057] It should be noted that multiple measurement systems are installed in the entire wind tunnel duct, and the multiple measurement systems are connected by transmission lines to achieve data transmission between the multiple measurement systems; in addition, the measurement range of the multiple measurement systems needs to cover the entire wind tunnel duct to avoid the problem of blind spots in the wind tunnel duct. At the same time, the multiple measurement systems work together to achieve visual measurement and temperature measurement of the test model moving at high speed in the wind tunnel duct; wherein the test model is mounted on a magnetic levitation mover moving at high speed in the wind tunnel duct, and the test model is pre-made with visual feature marks, for example, the visual feature mark can be a reflective mark, and the shape of the reflective mark includes a circle, a quadrilateral, a triangle, etc., which is not limited here. Further, different visual feature mark arrays can be set on the test model according to different test models, and the number of visual feature marks needs to be more than three. In this way, when the visual feature mark adopts a reflective mark, the combination of the fill light source and the reflective mark can better highlight the reflective mark, thereby improving the accuracy of subsequent recognition of the visual feature mark.

[0058] In this embodiment, any measurement system in the wind tunnel is used as an example for explanation. Before the measurement system uses two calibrated high-speed cameras to shoot the same area in the wind tunnel, the coordinates of the infrared camera and the two high-speed cameras need to be aligned to establish a world coordinate system, and the high-speed camera needs to be calibrated with high precision based on the BP (Back Propagation) neural network optimized by the improved genetic algorithm (GA). In this way, by calibrating the high-speed camera based on the BP neural network optimized by the improved genetic algorithm, the requirements for high precision and high resolution of the high-speed camera can be met, and the measurement accuracy of the high-speed motion test model can be improved.

[0059] Furthermore, the measurement system uses two calibrated high-speed cameras to synchronously shoot the same area in the wind tunnel to obtain the respective test model images, and stores the test model images synchronously shot by the two calibrated high-speed cameras in their respective high-speed image storage devices through the Camera Link data line. The Camera Link data line is a standard interface protocol for high-speed image data transmission, and the Camera Link data line can be configured in Full mode with a maximum throughput of 680MB / s, which can meet the image processing speed requirements of the maglev wind tunnel test.

[0060] Step S12, extracting feature points from each of the test model images to obtain pixel coordinates of a plurality of feature points, and determining a plurality of groups of feature points having corresponding relationships based on relative position information of the feature points in the corresponding test model images; the corresponding relationships indicate that the feature points in the same group correspond to the same spatial point on the test model; the test model is a model mounted on a magnetically suspended mover that moves at high speed in the wind tunnel duct.

[0061] In this embodiment, in order to overcome the image noise caused by the dark light environment, the test model image is first preprocessed before the feature point extraction. For example, each test model image is Gaussian filtered to obtain each processed model image. Then, it is necessary to identify a number of feature markers from each processed model image, and then extract feature points from each feature marker to obtain a number of feature points and the pixel coordinates of each feature point. In this way, this embodiment combines Gaussian filtering and fill light sources to adapt to the dark light environment of the maglev wind tunnel and realize real-time calculation of the pixel coordinates of the feature points.

[0062] Among them, for the extraction of feature points, specifically, the center point of each feature mark is extracted based on the grayscale centroid method to obtain several feature points and the pixel coordinates of each feature point. Specifically, all pixel coordinates in each feature mark and the grayscale values ​​corresponding to all pixel coordinates are determined respectively; then, based on all pixel coordinates in each feature mark and the grayscale values ​​corresponding to all pixel coordinates, the pixel coordinates of the center point in each feature mark are calculated to obtain the pixel coordinates of several feature points, that is, the pixel coordinates of the center point in the feature mark are the pixel coordinates of the feature point. The formulas involved are as follows:

[0063] ;

[0064] Wherein, Ω represents a feature mark; G(x,y) represents the gray value of the pixel coordinate (x,y) in the feature mark Ω; It represents the pixel coordinates of the center point in the feature mark Ω, that is, the pixel coordinates of the feature point in the feature mark Ω.

[0065] In this embodiment, after obtaining the pixel coordinates of several feature points, the relative position information of each feature point in the corresponding test model image is determined, and based on the internal and external parameters of the two high-speed cameras and the relative position information of each feature point in the corresponding test model image, several groups of feature points with corresponding relationships are determined; wherein the corresponding relationship indicates that the feature points in the same group correspond to the same spatial point on the test model.

[0066] Step S13, using the parallax principle and the triangulation principle and based on the pixel coordinates of the plurality of groups of corresponding feature points, calculate the corresponding three-dimensional world coordinates of the test model, and determine the speed information and posture information of the test model based on the three-dimensional world coordinates.

[0067] In this embodiment, the world coordinate calculation formula pre-constructed based on the parallax principle and the triangulation principle is used to calculate the pixel coordinates of any set of corresponding feature points to obtain the three-dimensional world coordinates of the test model, and the speed information and posture information of the test model are determined based on the three-dimensional world coordinates. It should be noted that after obtaining the speed information and posture information, the vibration information and acceleration information of the test model can be further extracted, so that the two high-speed cameras in the measurement system can realize the collection of various information of the test model.

[0068] Among them, for the construction of the world coordinate calculation formula, such as Figure 4As shown, the focal length f of the high-speed camera and the distance d between the optical centers of the two high-speed cameras are obtained; it should be noted that the focal lengths and field angles of the two high-speed cameras are the same. The world coordinate calculation formula is constructed based on the parallax principle and the triangulation principle and the focal length f and the distance d. Specifically, for a certain spatial point Q (x, y, z) on the test model, the point imaged by its projection on the two high-speed cameras is and In the image physical coordinate system, they are expressed as and , we can get the following formula from similar triangles:

[0069] ;

[0070] After stereo calibration, the imaging planes of the two high-speed cameras are coplanar and of equal height, so Finally, the three-dimensional world coordinates of the spatial point Q can be solved as shown below:

[0071] ;

[0072] That is, firstly, the pixel coordinates of any group of corresponding feature points are transformed to obtain the image physical coordinates of any group of corresponding feature points, and then the image physical coordinates of any group of corresponding feature points are substituted into the above-mentioned three-dimensional world coordinate calculation formula for calculation, so as to obtain the three-dimensional world coordinates of a certain spatial point on the test model, and further based on the three-dimensional world coordinates, the speed information and posture information of the test model can be determined.

[0073] In this embodiment, in addition to using two high-speed cameras to perform binocular vision measurement to determine the speed information and posture information of the test model, an infrared camera can also be used to perform temperature measurement to determine the temperature data of the test model. Considering that for a surface source target such as a test model, a simple change in distance will not affect the temperature measurement result, but the angle between the moving test model and the infrared camera changes all the time, which can easily cause the temperature measurement of the infrared camera to be offset. Therefore, it is necessary to establish a model for the influence of distance and angle on the accuracy of the infrared camera, and to correct and compensate the temperature data based on high-precision position data to meet the needs of high-precision measurement. For a surface source target such as a test model, the distance and angle of the windward surface relative to the measurement system change all the time. When the test model has a certain angle with the infrared camera, the temperature value output by the infrared camera is linearly related to the cosine value of the angle, that is:

[0074] ;

[0075] Among them, I R(T) is the temperature function of the infrared camera, C is a constant, T is the original temperature measured by the infrared camera, n is a coefficient related to the wavelength of electromagnetic radiation, and θ is the angle between the infrared camera and the test model. Specifically, the original temperature of the test model measured by the infrared camera is obtained, and the angle between the infrared camera and the test model is determined. The angle and the original temperature of the test model measured by the infrared camera are input into the above formula to adjust the original temperature to obtain the temperature data of the test model.

[0076] It can be seen that the present application calibrates the high-speed camera based on the BP neural network optimized by the improved genetic algorithm, thereby meeting the high-precision and high-resolution requirements for the high-speed camera and improving the measurement accuracy of the high-speed moving test model; and the present application realizes the contactless measurement of the high-speed moving test model through the measurement system constructed based on the high-speed camera, thereby avoiding the problem of installing sensors on the high-speed moving test model which easily has a negative impact on the aerodynamic performance and motion characteristics of the model, improving the measurement efficiency of the high-speed moving test model and ensuring the reliability of the test model data.

[0077] Based on the previous embodiment, this embodiment will further explain how to perform high-precision calibration of a high-speed camera based on an improved genetic algorithm to optimize a BP neural network. Figure 5 As shown, an embodiment of the present invention discloses a high-speed camera calibration process, including:

[0078] Step S21, obtaining a plurality of checkerboard images taken from different angles, and preprocessing each of the checkerboard images to obtain each preprocessed image; the preprocessing includes grayscale transformation, Gaussian filtering, and image reduction processing based on a multi-grid algorithm.

[0079] In this embodiment, Figure 6 As shown in the figure, based on Zhang's calibration method, several chessboard images taken from different angles are obtained, and grayscale transformation, Gaussian smoothing denoising and image reduction based on multi-grid algorithm are performed on each chessboard image to obtain each pre-processed image. In this way, the contrast of the image can be improved by grayscale transformation, making the image display effect clearer; and the image noise can be removed by Gaussian filtering.

[0080] Step S22: performing corner point detection on each of the preprocessed images, and performing matching of the detected corner points with the same name based on grid motion statistics to obtain a plurality of corner points with the same name.

[0081] In this embodiment, Figure 6As shown, a corner detection algorithm is used to perform corner detection on each preprocessed image to obtain a number of corner points; wherein the corner detection algorithm can adopt the Trajkovic corner detection algorithm, etc. Then, the detected corner points are roughly matched with the same name to obtain a number of matching corner points with the same name; wherein the same name corner points refer to the corner points at the same position in different chessboard images. Considering that there may be mismatched corner points in the rough matching of the same name corner points, the mismatched corner points with the same name are eliminated from the matching corner points with the same name based on the grid motion statistics, so as to obtain the final number of corner points with the same name.

[0082] Step S23, using the least squares method and based on the binocular vision model, converting the two-dimensional pixel coordinates of each of the corner points with the same name into corresponding three-dimensional world coordinates, so as to obtain coordinate information corresponding to each of the corner points with the same name.

[0083] Step S24: construct a corner point set based on the coordinate information corresponding to each of the corner points with the same name, and divide the corner point set into a training set and a test set.

[0084] In this embodiment, Figure 6 As shown, the least squares method is used based on the conventional binocular vision model to convert the two-dimensional pixel coordinates of the matched corner points of the same name into corresponding three-dimensional world coordinates to obtain the coordinate information corresponding to each corner point of the same name. Then, a corner point set is constructed based on the coordinate information corresponding to each corner point of the same name, and the corner point set is divided into a training set and a test set according to a preset ratio.

[0085] Step S25: Utilize the training set and perform optimization training on the BP neural network based on the improved genetic algorithm to obtain a BP neural network optimized based on the improved genetic algorithm.

[0086] In this embodiment, Figure 6As shown, the network topology is determined, and the weight threshold length of the initial BP neural network is set. The initial value is encoded based on the improved genetic algorithm GA to obtain a group of BP neural networks with different structures and random weights as a population. Each BP neural network in the population is trained using the training set to use the obtained error as the fitness value of each BP neural network, and trigger the operation of improving the adaptive crossover and mutation probability. Specifically, a BP neural network is selected from the population based on the selection operation, and the selected BP neural network is cross-linked based on the crossover operation to generate a new BP neural network; then the new BP neural network is mutated based on the mutation operation, such as changing the structure or adjusting the weight to obtain the mutated BP neural network, and the fitness value of the mutated BP neural network is calculated, and the population is updated based on the mutated BP neural network. Then, it is determined whether the first preset end condition is met, and the first preset end condition includes that the number of iterations reaches the preset number threshold; if the first preset end condition is not met, the operation of improving the adaptive crossover and mutation probability is re-triggered. If the first preset end condition is met, a BP neural network with an optimal weight threshold is obtained from the population, and the error of the BP neural network with the optimal weight threshold is calculated to update the weight threshold to obtain an updated weight threshold, and then determine whether the second preset end condition is met. The second preset end condition includes that the number of iterations reaches a preset number threshold. If the second preset end condition is not met, the error is recalculated based on the updated weight threshold, and the weight threshold is updated based on the error. If the second preset end condition is met, a BP neural network optimized based on an improved genetic algorithm, that is, a GA-BP neural network, is obtained.

[0087] Step S26: Use the test set to test the BP neural network optimized based on the improved genetic algorithm to obtain optimized world coordinates corresponding to the corner points with the same name in the test set, and calibrate the high-speed camera based on the optimized world coordinates.

[0088] In this embodiment, Figure 6 As shown, after obtaining the BP neural network optimized based on the improved genetic algorithm, that is, the improved GA-BP neural network, the test set is normalized, and the normalized test set is input into the BP neural network optimized based on the improved genetic algorithm to obtain the output world coordinates corresponding to the corner points of the same name in the normalized test set, and after the output world coordinates are denormalized, the optimized world coordinates corresponding to the corner points of the same name can be obtained, so as to perform high-precision calibration on the high-speed camera based on the optimized world coordinates. In this way, by calibrating the high-speed camera based on the BP neural network optimized by the improved genetic algorithm, sub-millimeter displacement measurement accuracy can be achieved.

[0089] It can be seen that this embodiment is based on chessboard calibration, the calibration process is simple, the calibration result is relatively accurate and reliable, and it has good flexibility; further, this embodiment constructs a corner point set based on the coordinate information of the same-name corner points in the chessboard image, so as to optimize the BP neural network according to the improved genetic algorithm for training and testing, thereby calibrating the high-speed camera based on the improved genetic algorithm to optimize the BP neural network, which can meet the high-precision and high-resolution requirements of the high-speed camera and improve the measurement accuracy of the high-speed motion test model.

[0090] See also Figure 7 As shown, an embodiment of the present invention discloses a visual measurement device for a maglev wind tunnel test model, which is applied to a measurement system; the measurement system includes an infrared camera, a fill light source, two high-speed cameras, and a storage device configured for each of the high-speed cameras; the two high-speed cameras are placed at different positions on the inner wall of the wind tunnel pipe and synchronously shoot the same area in the maglev wind tunnel; wherein the device includes:

[0091] An image acquisition module 11 is used to acquire images of the test model synchronously photographed by the two calibrated high-speed cameras; the two calibrated high-speed cameras are both cameras calibrated based on an improved genetic algorithm to optimize a BP neural network;

[0092] The corresponding relationship determination module 12 is used to extract feature points from each of the test model images to obtain pixel coordinates of a plurality of feature points, and determine a plurality of groups of feature points having corresponding relationships based on relative position information of the feature points in the corresponding test model images; the corresponding relationship indicates that the feature points in the same group correspond to the same spatial point on the test model; the test model is a model mounted on a magnetic suspension mover that moves at high speed in the wind tunnel pipe;

[0093] The information determination module 13 is used to calculate the corresponding three-dimensional world coordinates of the test model based on the pixel coordinates of the plurality of groups of corresponding feature points by using the parallax principle and the triangulation principle, and determine the speed information and posture information of the test model based on the three-dimensional world coordinates.

[0094] It can be seen that the present application calibrates the high-speed camera based on the BP neural network optimized by the improved genetic algorithm, thereby meeting the high-precision and high-resolution requirements for the high-speed camera and improving the measurement accuracy of the high-speed moving test model; and the present application realizes the contactless measurement of the high-speed moving test model through the measurement system constructed based on the high-speed camera, thereby avoiding the problem of installing sensors on the high-speed moving test model which easily has a negative impact on the aerodynamic performance and motion characteristics of the model, improving the measurement efficiency of the high-speed moving test model and ensuring the reliability of the test model data.

[0095] In some specific embodiments, the magnetic levitation wind tunnel test model visual measurement device further includes:

[0096] A coordinate alignment unit, used for aligning the coordinates of the infrared camera and the two high-speed cameras to establish a world coordinate system;

[0097] Accordingly, the magnetic levitation wind tunnel test model visual measurement device further includes:

[0098] The image storage unit is used to store the calibrated test model images synchronously photographed by the two high-speed cameras into the corresponding storage device.

[0099] In some specific embodiments, the magnetic levitation wind tunnel test model visual measurement device further includes:

[0100] An image preprocessing unit, used to obtain a plurality of checkerboard images taken from different angles, and preprocess each of the checkerboard images to obtain each preprocessed image; the preprocessing includes grayscale transformation, Gaussian filtering, and image reduction processing based on a multi-grid algorithm;

[0101] A corner point matching unit with the same name is used to perform corner point detection on each of the preprocessed images, and perform corner point matching with the same name on a plurality of detected corner points based on grid motion statistics to obtain a plurality of corner points with the same name;

[0102] A coordinate conversion unit, used for converting the two-dimensional pixel coordinates of each corner point with the same name into corresponding three-dimensional world coordinates by using the least square method and based on the binocular vision model, so as to obtain coordinate information corresponding to each corner point with the same name;

[0103] A corner point set construction unit, configured to construct a corner point set based on coordinate information corresponding to each of the corner points with the same name, and divide the corner point set into a training set and a test set;

[0104] A neural network training unit is used to optimize the BP neural network by using the training set and based on the improved genetic algorithm to obtain a BP neural network optimized based on the improved genetic algorithm;

[0105] The camera calibration unit is used to test the BP neural network optimized based on the improved genetic algorithm using the test set to obtain optimized world coordinates corresponding to the corner points with the same name in the test set, and calibrate the high-speed camera based on the optimized world coordinates.

[0106] In some specific embodiments, the corresponding relationship determination module 12 includes:

[0107] A feature mark recognition unit is used to perform Gaussian filtering on each of the test model images to obtain each processed model image, and to recognize a number of feature marks from each of the processed model images;

[0108] The feature point extraction submodule is used to extract feature points from each of the feature marks to obtain pixel coordinates of a plurality of feature points.

[0109] In some specific embodiments, the feature point extraction submodule includes:

[0110] A grayscale value determination unit, used to respectively determine all pixel coordinates within each of the feature marks, and grayscale values ​​corresponding to all the pixel coordinates;

[0111] The pixel coordinate acquisition unit is used to calculate the pixel coordinates of the center point in each of the feature marks based on all the pixel coordinates in each of the feature marks and the grayscale values ​​respectively corresponding to all the pixel coordinates, so as to obtain the pixel coordinates of several feature points.

[0112] In some specific embodiments, the information determination module 13 includes:

[0113] A world coordinate calculation unit, used to calculate the pixel coordinates of any set of feature points having a corresponding relationship by using a world coordinate calculation formula pre-constructed based on the parallax principle and the triangulation principle, so as to obtain the three-dimensional world coordinates of the test model;

[0114] Wherein, the magnetic levitation wind tunnel test model visual measurement device also includes:

[0115] A camera parameter acquisition unit, used to acquire the focal length of the high-speed camera and the distance between the optical centers of the two high-speed cameras; the focal lengths and field angles of the two high-speed cameras are the same;

[0116] A formula construction unit is used to construct the world coordinate calculation formula based on the focal length and the distance by utilizing the parallax principle and the triangulation principle.

[0117] In some specific embodiments, the magnetic levitation wind tunnel test model visual measurement device further includes:

[0118] A temperature acquisition unit, used to acquire the original temperature of the test model measured by the infrared camera;

[0119] The temperature adjustment unit is used to determine the angle between the infrared camera and the test model, and adjust the original temperature based on the angle and a coefficient related to the wavelength of the electromagnetic radiation to obtain temperature data of the test model.

[0120] Furthermore, the present application also discloses an electronic device. Figure 8 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.

[0121] Figure 8 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the visual measurement method of the magnetic levitation wind tunnel test model disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0122] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0123] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method may be temporary storage or permanent storage.

[0124] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, and can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the visual measurement method of the magnetic levitation wind tunnel test model performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks.

[0125] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed magnetic levitation wind tunnel test model visual measurement method is implemented. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0126] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0127] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0128] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0129] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0130] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A visual measurement method for a maglev wind tunnel test model, characterized in that: Applied to a measurement system; the measurement system comprises an infrared camera, a fill light source, two high-speed cameras and a storage device configured for each of the high-speed cameras; the two high-speed cameras are placed at different positions on the inner wall of a wind tunnel pipe and synchronously photograph the same area in a maglev wind tunnel; wherein the method comprises: Acquire the test model images synchronously photographed by the two calibrated high-speed cameras; the two calibrated high-speed cameras are cameras calibrated based on the BP neural network optimized by the improved genetic algorithm; Extracting feature points from each of the test model images to obtain pixel coordinates of a plurality of feature points, and determining a plurality of groups of feature points having corresponding relationships based on relative position information of the feature points in the corresponding test model images; the corresponding relationships indicate that the feature points in the same group correspond to the same spatial point on the test model; the test model is a model mounted on a magnetically suspended mover that moves at high speed in the wind tunnel duct; The three-dimensional world coordinates of the corresponding test model are calculated based on the pixel coordinates of the plurality of groups of feature points having corresponding relationships by utilizing the parallax principle and the triangulation principle, and the speed information and the posture information of the test model are determined based on the three-dimensional world coordinates.

2. The visual measurement method of the maglev wind tunnel test model according to claim 1 is characterized in that: Before obtaining the calibrated test model images synchronously photographed by the two high-speed cameras, the method further includes: Aligning the coordinates of the infrared camera and the two high-speed cameras to establish a world coordinate system; Correspondingly, after obtaining the calibrated test model images synchronously photographed by the two high-speed cameras, the method further includes: The calibrated test model images synchronously photographed by the two high-speed cameras are stored in the corresponding storage device.

3. The visual measurement method of the maglev wind tunnel test model according to claim 1 is characterized in that: Before obtaining the calibrated test model images synchronously photographed by the two high-speed cameras, the method further includes: Acquire a plurality of chessboard images taken from different angles, and preprocess each of the chessboard images to obtain each preprocessed image; the preprocessing includes grayscale transformation, Gaussian filtering, and image reduction processing based on a multi-grid algorithm; Performing corner point detection on each of the preprocessed images, and matching the detected corner points with the same name based on grid motion statistics to obtain a number of corner points with the same name; The two-dimensional pixel coordinates of each corner point with the same name are converted into corresponding three-dimensional world coordinates by using the least square method and based on the binocular vision model, so as to obtain coordinate information corresponding to each corner point with the same name; Constructing a corner point set based on the coordinate information corresponding to each of the corner points with the same name, and dividing the corner point set into a training set and a test set; Utilizing the training set and based on the improved genetic algorithm to optimize the BP neural network, so as to obtain a BP neural network optimized based on the improved genetic algorithm; The BP neural network optimized based on the improved genetic algorithm is tested using the test set to obtain optimized world coordinates corresponding to the corner points with the same name in the test set, and the high-speed camera is calibrated based on the optimized world coordinates.

4. The visual measurement method of the maglev wind tunnel test model according to claim 1 is characterized in that: The extracting of feature points from each of the test model images to obtain pixel coordinates of a plurality of feature points includes: Performing Gaussian filtering on each of the test model images to obtain each processed model image, and identifying a number of feature markers from each of the processed model images; Feature points are extracted from each of the feature marks to obtain pixel coordinates of a plurality of feature points.

5. The visual measurement method of the maglev wind tunnel test model according to claim 4 is characterized in that: The extracting of feature points from each of the feature marks to obtain pixel coordinates of a plurality of feature points includes: Respectively determining all pixel coordinates within each of the feature marks, and grayscale values ​​corresponding to all the pixel coordinates; Based on all pixel coordinates in each of the feature marks and the grayscale values ​​respectively corresponding to all the pixel coordinates, the pixel coordinates of the center point in each of the feature marks are calculated to obtain the pixel coordinates of several feature points.

6. The visual measurement method of the maglev wind tunnel test model according to claim 1 is characterized in that: The method of calculating the corresponding three-dimensional world coordinates of the test model by using the parallax principle and the triangulation principle and based on the pixel coordinates of the plurality of groups of feature points having corresponding relationships comprises: Using a world coordinate calculation formula pre-constructed based on the parallax principle and the triangulation principle, the pixel coordinates of any set of feature points having a corresponding relationship are calculated to obtain the three-dimensional world coordinates of the test model; Wherein, before calculating the pixel coordinates of any set of feature points having a corresponding relationship using the world coordinate calculation formula pre-constructed based on the parallax principle and the triangulation principle, the method further includes: Obtaining the focal length of the high-speed camera and the distance between the optical centers of the two high-speed cameras; the focal lengths and field angles of the two high-speed cameras are the same; The world coordinate calculation formula is constructed based on the focal length and the distance by utilizing the parallax principle and the triangulation principle.

7. The method for visually measuring a magnetic levitation wind tunnel test model according to any one of claims 1 to 6, characterized in that: Also includes: Obtaining the original temperature of the test model measured by the infrared camera; The angle between the infrared camera and the test model is determined, and the original temperature is adjusted based on the angle and a coefficient related to the wavelength of the electromagnetic radiation to obtain temperature data of the test model.

8. A visual measurement device for a magnetic levitation wind tunnel test model, characterized in that: Applied to a measurement system; the measurement system comprises an infrared camera, a fill light source, two high-speed cameras and a storage device configured for each of the high-speed cameras; the two high-speed cameras are placed at different positions on the inner wall of the wind tunnel pipe and synchronously photograph the same area in the maglev wind tunnel; wherein the device comprises: An image acquisition module, used to acquire images of the test model synchronously photographed by the two calibrated high-speed cameras; the two calibrated high-speed cameras are both cameras calibrated based on an improved genetic algorithm to optimize a BP neural network; A corresponding relationship determination module is used to extract feature points from each of the test model images to obtain pixel coordinates of a plurality of feature points, and determine a plurality of groups of feature points having corresponding relationships based on relative position information of the feature points in the corresponding test model images; the corresponding relationship indicates that the feature points in the same group correspond to the same spatial point on the test model; the test model is a model mounted on a magnetic suspension mover that moves at high speed in the wind tunnel duct; The information determination module is used to calculate the three-dimensional world coordinates of the corresponding test model based on the pixel coordinates of the plurality of groups of feature points having corresponding relationships by utilizing the parallax principle and the triangulation principle, and determine the speed information and posture information of the test model based on the three-dimensional world coordinates.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the visual measurement method of the magnetic levitation wind tunnel test model as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the visual measurement method for a magnetic levitation wind tunnel test model as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Motion model vision measurement image acquisition method for wind tunnel

    CN103983419A

  • Magnetic levitation flight wind tunnel aerodynamic force indirect measurement method

    CN115014697A

  • Building external wind field simulation test device for wind tunnel test

    CN215115095U

  • Methods and apparatus for variable stiffness supports in aircraft testing

    US20240010329A1

Cited By

  • Method for measuring delay time of collaborative actuation system in simulated wind tunnel test

    CN121453328A