The present application is based upon and claims priority to Chinese Patent Application No. 201410378566.8 filed on Aug. 1, 2014, the entire contents of which are incorporated herein by reference.
The present disclosure relates to a method for aircraft docking guidance and aircraft type identification, and more particularly to a machine vision-based method and a machine vision-based system for aircraft docking guidance and aircraft type identification.
Aircraft docking berth guidance refers to the process of bringing an arriving aircraft from the end of the taxiway to the parking position of the apron and accurately anchoring it. The aim of the berth guidance is to ensure the safe and accurate berthing of the docked aircraft, to facilitate the accurate docking of the airplane and various ground interfaces, and to make the boarding bridge to accurately abut to the aircraft door to improve the efficiency and safety of the airport.
An automated aircraft berth guidance system according to the use of different types of sensors is mainly divided into:
(1) a buried coil type; (2) a laser-scan ranging type; (3) a visual perception type.
Since the laser-scan ranging type and the visual perception type of automated aircraft guidance systems can effectively acquire visual information for docking an aircraft, the two types of automatic aircraft berth guidance systems may be also known as visualization berth guidance systems.
The buried induction coil type of automatic guidance system may determine the location of the docked aircraft by detecting whether there is a metal object passing through or staying at the buried induction coil. The buried induction coil has following advantages: fast response, low cost, no requirements on weather and illumination conditions. However, the buried induction coil suffers from large error, low anti-jamming capability. Moreover, leads and electronic components buried in the ground tend to be crushed, have low reliability, low measurement accuracy, and cannot identify a model type and cannot be easily debugged or maintained.
The laser-scan ranging type of automatic guidance system may determine information such as an aircraft position, speed and type model by laser ranging and laser scanning. The laser-scan ranging type of automatic guidance system does not tend to be influenced by environment illumination and weather condition. The laser-scan ranging type of automatic guidance system has a high accuracy and may be easily debugged or maintained.
The visual perception type of automatic guidance system may acquire image information of an aircraft docketing process by optical imaging, and determine information such as an aircraft position, speed and type model by intelligent information processing technology. The system has a simple architecture, a low cost and a high intelligent level, and may be easily debugged or maintained. However, it has requirements on the weather and illumination conditions, and thus has poor adaptability.
With the development of visual perception imaging technology, intelligent information processing technology and computer technology, visualization of aircraft berth guidance technology can accurately and quickly obtain docking information of docked aircraft, which has been applied in an airport berth guidance system.
Honeywell corporation in US has developed a visual docking guidance system (VDGS) and Siemens corporation in Germany has developed a video docking guidance system (VDOCKS), they have been applied as visual guidance devices of a worldwide leading level in some international airports.
However, the accuracy of aircraft acquisition, tracking and positioning, model type identification and identity verification in aircraft docking demands to be further improved.
The technical problem to be solved by the present disclosure is to realize aircraft docking guide in a visual way, which can effectively improve the accuracy of aircraft acquisition, tracking and positioning during an aircraft docking process.
Further, the functions of model identification and identity verification can be realized.
Further, it can effectively improve automation, intelligence and operational management level of a civil aviation airport.
In order to solve the above problems, the present disclosure provides a method for guiding an aircraft docking and recognizing an aircraft model based on machine vision, the method including:
step S1, a step for configuring an aircraft berthing scene, in which a monitored scene is divided into regions for separate data processing;
step S2, an image pre-processing step, in which a captured image is pre-processed;
step S3, an aircraft capturing step, in which it is determined that an aircraft exists in the image by recognizing an engine and front wheels of the aircraft in the image;
step S4, an aircraft tracking step, in which the image of the engine and the front wheels of the aircraft recognized in step S3 is continuously tracked and updated in real time;
step S5, an aircraft positioning step, in which the aircraft is positioned in real time, and a deviation degree of the aircraft from a guide line and a distance between the aircraft and a stop line are accurately determined; and
step S6, an information displaying step, in which the deviation degree of the aircraft from the guide line and the distance between the aircraft and the stop line determined in step S5 are outputted and displayed.
The image pre-processing step further includes:
step S21, determining whether the image is an image of low illumination, high illumination or normal illumination according to an average of gray scales of the image, performing a step for processing a low-illumination image on the image if the image is an image of low illumination, and performing a step for processing a high-illumination image on the image if the image is an image of high illumination;
step S22, if the image is an image of normal illumination, determining whether the image is a normal image according to a variance of the gray scales of the image; and
step S23, if the image is not a normal image, determining whether the image is an image captured in rain or snow or an image captured in fog, performing a step for processing a rain-or-snow image on the image if the image is an image captured in rain or snow, and performing a step for processing a fog image on the image if the image is an image captured in fog.
The step for processing a low-illumination image includes processing the image with the following formula:
g(x, y)=f(x, y)+af (x, y)(255−f(x, y))
where f (x, y) represents the image before the step for processing a low-illumination image, (x, y) represents coordinates of a pixel in the image, (x, y) represents the image after the step for processing a low-illumination image, and a represents a parameter for processing a low-illumination image.
The step for processing a rain-or-snow image includes:
searching in the image for a pixel to be processed which is contaminated by rain or snow by using a photometric model;
for a pixel to be processed in the present image, extracting luminance values of corresponding pixels in a previous image and in a subsequent image of the present image, determining whether the corresponding pixels in the previous image and in the subsequent image of the present image are pixels to be processed according to the extracted luminance values, if the corresponding pixels are pixels to be processed, calculating an average value of the luminance values of the corresponding pixels and replacing a luminance value of the pixel to be processed in the present image with the average value, and if the corresponding pixels are not pixels to be processed, replacing a luminance value of the pixel to be processed in the present image with a minimum value of the luminance values of the corresponding pixels or an average value of two smallest luminance values of the corresponding pixels.
The fog image processing step is performed by homomorphic filtering.
The aircraft capturing step further includes:
step S31, a background elimination step, in which a dynamic distribution of a background in the scene is simulated with a single Gaussian background model, a model of the background is established and the present image and the background model are differentiated to eliminate the background to obtain a foreground region;
step S32, a shade elimination step, gray values of respective pixels in the foreground region are computed to find the maximum gray value g max and the minimum gray value g min thereof, and shading elimination is performed on the regions with gray values lower than T=g min+(g max−g min)*0.5 ;
step S33, a region classification step, in which a template of a standard front view of an aircraft region is created, a target region is extracted through change detection, and a vertical projection curve of the target region is calculated, a correlation coefficient between the vertical projection curve of the target region and a vertical projection curve of the template of the standard front view of the aircraft region is calculated, if the correlation coefficient is larger than or equals to a classification threshold, the target region is determined as an aircraft;
step S34, a feature verification step, in which it is further determined whether the target region is an aircraft by detecting the recognized engine and front wheel of the aircraft.
The feature verification step further includes:
step S341, extracting a blackest image region, in which a gray scale histogram of the target region of a current frame of image is made, the maximum gray value and the minimum gray value are acquired in a gray level range of 1% to 99%, the darkest part of the image is extracted from the image by means of the maximum gray value, the minimum gray value and a preset threshold for judging a blackest part, to obtain a darkest region;
step S342, circular-like detection, in which all outer boundaries of the blackest region are extracted, and for each boundary, a gravity center coordinate of the boundary is calculated with a moment of the boundary, a jith-order of the moment mji of the boundary is defined as follows:
the gravity center coordinate (
for all pixel points of the current boundary, a distance from each pixel to the gravity center is calculated, if a ratio of the maximum value of the calculated distances and the minimum value of the calculated distances exceeds a threshold for determining a circle, it is determined that the boundary does not correspond to a circular region and a next boundary is determined; otherwise, if the ratio of the maximum value of the calculated distances and the minimum value of the calculated distances does not exceed the preset value, it is determined that the boundary corresponds to a like-circular region and the gravity center coordinate and a radius of the like-circular region are recorded;
step S343, it is determined whether there is an engine in the like-circular regions by calculating similarity; and
step S344, detecting a front wheel of the aircraft.
In the step S343, for M detected like-circular regions, a similarity degree Similarityij between an ith like-circular region and a jth like-circular region is calculated as:
Similarityij=|Heighti−Heightj|*|Radiusi−Radiusj|
where Height is a height of the gravity center, and Radius is the radius, when the similarity degree Similarityij is less than a preset similarity threshold, it is determined that the like-circular regions i and j are the aircraft engine.
In the step S343, if no aircraft engine is detected, the detection in the steps S341-343 are performed iteratively, with the threshold for judging a blackest part, the threshold for determining a circle and the similarity threshold being increased; if after that, still no aircraft engine is detected, an open operation is performed for all the blackest regions using a circular template of 7*7, and the steps S341-343 are performed for another time;
if still no aircraft engine is detected, the above detection steps are performed iteratively for another 2 times; and
if still not aircraft engine is detected, it is determined that there is no engine in the image.
The threshold for judging a blackest part, the threshold for determining a circle and the similarity threshold are increased respectively by 0.05, 0.5 and 20.
The step S344 further includes:
in the search region, 256 levels of grayscale are quantized to 64 levels, a first peak and a first valley are searched out in the histogram of the 64 levels of grayscale after the quantization, the optimal peak position BestPeak and the optimal valley position BestValley in the original histogram of the 256 levels of grayscale are defined as:
where hist256(i) represents a total number of pixels having a grayscale i in the histogram of the 256 levels of grayscale;
the grayscale is partitioned according to the optimal valley BestValley, for a part smaller than the optimal valley BestValle, trivial points with small areas are removed, and a closing operation is performed on the image with a flat elliptical structure element;
7th-order Hu moments of boundaries are calculated for all graphs after the closing operation and compared with Hu moments of a preset standard front wheel model, and if the similarity between them is less than a threshold, it is determined that the middle one is the front wheel.
The aircraft tracking step further includes:
step S41, after a position of an engine in a previous frame of image is obtained, a region of an engine in a current frame of image is determined and tracked using a flood filling method;
step S42, if filling result of the step S41 is invalid, a dark environment detection and tracking step is performed to detect and track the engine region with parameters used in processing the previous frame of image;
step S43, after information about a region of an engine is acquired, the front wheel of the aircraft is detected with the step S344; and
step S44, a front wheel tracking emergency processing step, in which when it is determined that the region of the front wheel has an incorrect shape, or the position of the front wheel deviates significantly from that in the previous frames of images, from information of the previous frame of image and the current frame of image, a shift of the front wheel in the frame is estimated using a shift of an engine in adjacent two frames, the estimated result is taken as a front wheel tracking result, and if it is not detected in more than N frames of images, an error message is outputted.
The aircraft positioning step includes:
step S51, a photographing device calibration and image correction step, configured to determine optical parameters of a photographing device and orientation of the photographing device with respect to the world coordinate system;
step S52, an aircraft front wheel deviation degree calculating step; and
step S53, an aircraft front wheel actual distance calculating step.
The step S51 further includes:
step S511, retrieving N calibration pictures;
step S512, a corner of a chessboard is found by using a function cvFindChessboardCorners ( ) of OpenCV, the retrieved N calibration pictures are respectively substituted to the function cvFindChessboardCorners ( ); if all the corners are successfully found, the function returns 1, and coordinates of the corners in the image coordinate system are acquired; and if it is not successful, the function returns 0; and
step S513, coordinates of the corners which are successfully searched out in the calibration template are substituted into the function cvCalibrateCamera2( ) and the function returns a parameter matrix, a distortion coefficient, a rotation vector and a translation vector of the photographing device.
The step S52 further includes:
according to the coordinates (x0, y0) of the position of the front wheel obtained in the step S43, by utilizing a relationship between the coordinates of the position and the stop line, a linear equation of the guide line is calculated as y1=k1x1+b1, and a linear equation of the stop line is calculated as y2=k2x2+b2, and a distance from the point of the coordinate to the straight line is:
the coordinates (x0, y0) are substituted into the two linear equations to obtain d1 and d2, d2≧0 means that the front wheel of the aircraft exceeds the stop line, d2<0 means that the front wheel of the aircraft dose not reach the stop line; at this time, if k1>0 d1>0, it means that the aircraft is deviated to left, and d1<0 means that the aircraft is deviated to right; and if k1>0, d1<0, it means that the aircraft is deviated to left, and d1>0 means that the aircraft is deviated to right.
The step S52 further includes:
it is determined whether |d1|>width/2 is satisfied, where width is a threshold equal to a width of a front wheel of an aircraft detected; if |d1|>width/2 is satisfied, it means that the aircraft has deviated from the guide line.
The step S53 further includes:
a corresponding relationship between image coordinates and geodetic coordinates is established;
image coordinates are obtained from the mark points in the configuration of the scene at the step S1, quadratic curve fitting is performed on the image coordinates with a least squares method, to obtain a curve equation y=ax2+bx+c, wnere x is a distance in the image, y is an actual distance;
the front wheel of the aircraft on the image is projected on the guide line along a direction of the stop line, an Euclidean distance from the projection point to the stop line is denoted by x, and the actual distance from the front wheel of the aircraft to the stop line is obtained from y=ax2+bx+c.
After the step S3, step S7 is performed, the step S7 is an aircraft identification and identity verification step and further includes:
step S71, parameter verification, in which parameters of the aircraft in the image are extracted and compared with parameters of a corresponding model type preset in a database, to obtain a model similarity degree;
step S72, template matching, in which the image is compared with a model template preset in the database, to obtain a template similarity degree;
step S73, comprehensive judgment, in which when the model similarity degree and the template similarity degree are larger than or equal to a verification threshold, it is deemed that the identity verification is passed.
The step S71 further includes:
step S711, parameters of the aircraft engine in the image are extracted and compared with parameters of the aircraft engine of a corresponding model type preset in a database, to obtain a first ratio;
step S712, the aircraft wing parameters in the image are extracted and compared to aircraft wing parameters of the corresponding model preset in the database, to obtain a second ratio;
step S713, parameters of aircraft head in the image are extracted and compared with parameters of aircraft head corresponding to the model type preset in the database, to obtain a third ratio;
step S714, parameters of the aircraft tail in the image are extracted and compared with aircraft tail parameters preset to the corresponding model type in the database, to obtain a fourth ratio;
step S715, a minimum value and a maximum value among the first ratio, the second ratio, the third ratio, and the fourth ratio are taken, and the ratio of minimum/maximum is taken as the model similarity degree.
The step S72 further includes:
step S721, global template matching, in which a global template similarity degree is calculated by taking the whole image as the image to be searched and the standard aircraft image as the template;
step S722, local template matching, in which with the aircraft engine, the aircraft wings, the aircraft head, and the aircraft tail respectively extracted in the steps S711-S714 as the images to be searched, and the engine, the wings, the head and the tail of the standard aircraft image as templates, 4 similarity degrees between the images to be searched and the templates are calculated, a minimum value of the 4 similarity degrees is removed, and an average of the remaining 3 similarity degrees of the 4 similarity degrees is taken as a local template similarity degree.
The step S73 further includes: if at least two of the model similarity degree, the global template similarity degree and the local template similarity degree are larger than or equal to a first verification threshold, it is deemed that the identity verification is passed, or, if each of the model similarity degree, the global template similarity degree and the local template similarity degree is larger than a second verification threshold, it is deemed that the identity verification is passed.
The present disclosure also discloses a system for guiding an aircraft docking and recognizing an aircraft model based on machine vision, the system including:
a unit for configuring an aircraft berthing scene, configured to divide a monitored scene into regions for separate data processing;
an image pre-processing unit, configured to pre-process a captured image;
an aircraft capturing unit, configured to determine that an aircraft exists in the image by recognizing an engine and front wheels of the aircraft in the image;
an aircraft tracking unit, configured to continuously track and update in real time the image of the engine and the front wheels of the recognized aircraft;
an aircraft positioning unit, configured to position the aircraft in real time, and accurately determine a deviation degree of the aircraft from a guide line and a distance between the aircraft and a stop line; and
an information displaying unit, configured to output and display the deviation degree of the aircraft from the guide line and the distance between the aircraft and the stop line.
In summary, the present disclosure can realize the acquisition, tracking, positioning and identity verification of the aircraft in the process of aircraft docking, and display the airplane berth guidance information to provide correct information and effective berth guidance for the aircraft pilot, co-pilot or other personnel, so that the aircraft may achieve safe and effective berth, improving the efficiency of airport operations to ensure safety.
Hereinafter, detailed description of the configuration and operation principle of the present disclosure will be given with reference to the accompanying drawings.
Referring to
The machine vision-based system for aircraft docking guidance and aircraft type identification according to the present disclosure mainly consists of a photographing device 1, a central processing device 2 and a display device 3. The photographing device 1 is coupled to the central processing device 2, and the central processing device 2 is coupled to the display device 3. The photographing device 1 is configured to send a photographed image to the central processing device 2, and the central processing device 2 is configured to send contents to be displayed which contains guidance information to the display device 3.
In the embodiment, the photographing device 1 is installed behind a stop line 42 of an aircraft berth ground 4, preferably aiming at a guide line 41, with a height of the installation place higher than the body of an aircraft 5 for about 5-8 m preferably. In
Referring to
Step S1 is to configure the aircraft berthing scenario.
Since an aircraft will travel a relatively long distance from just entering a berth to finally stopping, the aircraft docking guidance process may be divided into several phrases and each of the phrases has different monitoring content. That is to say, the aircraft berthing scenario requires to be configured in advance.
At step S1, a monitoring scenario of the aircraft berth ground 4 is divided into various information processing functional regions, in order to narrow a scope of a region for image processing and improve the processing efficiency.
Firstly, the monitoring scenario of the aircraft berth ground 4 requires definition. A scale with alternating black and white segments is placed adjacent to the guide line 41. Each black segment has a length identical to that of each white segment. Each segment may have a maximum length of 1 m. However, the length of each segment may be smaller, such as 0.5 m, 0.25 m, and so on, depending on the resolution of the photographing device. A total length of the scale does not exceed a scope for calculating a distance of the position of the aircraft, generally is 50 m.
The monitoring scenario may be reproduced through the software executed in the central processing device 2. A picture of the aircraft berth ground 4 which is captured by the photographing device 1 may be displayed by running the software. A relevant region may be marked by manually drawing a line, a box and a dot and the marks in the relevant region may be stored and recorded.
The photographing device 1 captures a scenario image of the aircraft berth ground 4 when no aircraft is parked, and transmits the image to the central processing device 2. The aircraft berthing scenario configuration is as shown in
In the embodiment, for marking the guide line 41, the stop line 42 and the dots 9, the portion of the image to be marked may be enlarged to dozens of pixels wide, and then the manual marking may be conducted in the enlarged portion to improve the accuracy in marking. The marked capturing region 6 and the tracking and positioning region 7 do not strictly require accuracy. It will suffice that an upper edge of the capturing region 6 is positioned about 100 m away from the stop line 42 in the actual scenario, and a lower edge of the capturing region 6 is positioned about 50 m away from the stop line 42 in the actual scenario; and an upper edge of the tracking and positioning region 7 is positioned about 50 m away from the stop line 42 in the actual scenario, and a lower edge of tracking and positioning region 7 is positioned just anywhere below the stop line 42.
In
Step S2 is performed after step S1. Step S2 is an image pre-processing step.
The photographing device 1 captures images of the capture region 6 in real time. For each captured image, step S2 and steps subsequent to step S2 are performed.
Step S2 further includes the following steps.
At step S21, gray scales of a captured image are acquired.
At step S22, an average of the gray scales and a variance of the gray scales are calculated, and it is determined whether the average of the gray scales of the image is smaller han a lower limit value. If the average of the gray scales of the image is smaller than the lower limit value, it means that the image is an image of a low illumination and step S25 of processing a low-illumination image is performed. If the average of the gray scales of the image is not smaller than the lower limit value, step S23 is performed.
The lower limit value is set in advance, and may be a value between 50-60.
At step S23, it is determined whether the average of the gray scales of the image is larger than an upper limit value. If the average of the gray scales of the image is larger than the upper limit value, it means that the image is an image of a high illumination and step S24 of processing a high-illumination image is performed. If the average of the gray scales of the image is not larger than the upper limit value, it means that the image is an image of a normal illumination, and step S26 is performed.
The upper limit value may be set in advance, and may be a value between 150-160. An image with an average gray scale between the upper limit and the lower limit is an image of a normal illumination.
Step 24 is a step for processing a high-illumination image.
At step 24, a high-illumination image is processed to have a decreased illumination with gamma transformation.
Step 25 is a step for processing a low-illumination image.
In the present disclosure, a low-illumination image is processed with non-linear transformation. The transformation formula is as follows:
g(x, y)=f(x, y)+af(x, y)(255−f(x, y))
Where, f(x, y) is the original image, (x,y) is a coordinate of a pixel point in the image, g(x, y) is the processed image, a is a parameter for processing the low-illumination image, and a may be 0.01.
At step S26, for an image of a normal illumination, it is deteii tined whether the variance of the normal-illumination image is larger than a variance standard value. If the variance of the normal-illumination image is larger than the variance standard value, it means that the normal-illumination image may be an image captured in rain, snow or fog, and step S27 is performed. If the variance of the normal-illumination image is not larger than the variance standard value, it means that the normal-illumination image is not an image captured in rain, snow or fog, but a normal image, and no processing is needed.
At step S27, it is determined whether an entropy of the normal-illumination image is larger than an entropy threshold value. If the entropy of the normal-illumination image is larger than the entropy threshold value, it means that the normal-illumination image may be an image captured in rain or snow, and step S28 of processing an image captured in rain or snow is performed. If the entropy of the normal-illumination image is not larger than the entropy threshold value, it means that the normal-illumination image may be an image captured in fog, and step S29 of processing an image captured in fog is performed.
The entropy is a mathematical variable and generally represents an amount of information. For an image, the entropy represents an amount of details in the image, that is an amount of information contained in the image. In an image captured in rain or snow, due to the presence of rain or snow, rain drops and snowflakes appear at various positions, such that the amount of details of the image is relatively large. While in an image of captured in fog, due to the unifotin distribution of the fog, it appears that the amount of the details of the image is relatively small. Therefore, the entropy may be used to distinguish an image captured in rain or snow from an image captured in fog.
In an embodiment, for a gray scale image, an average neighborhood gray scale of the image is taken as a spatial characteristic quantity of the distribution of the gray scales. The spatial characteristic quantity and the gray scale of a pixel form a characteristic two-dimensional group, represented as (i, j), where, i represents a gray scale value of the pixel (0<=i<=255), j represents an average neighborhood gray scale (0<=j<=255), f(i, j) is a frequency of a characteristic two-dimensional group (i, j), N is a size of the image, pij=f(i,j)/N2. Then, a two-dimensional entropy of a gray-scale image may be calculated as
Step S28 is a step for processing a rain-or-snow image.
At the step for processing a rain-or-snow image, linear correlation of the luminance is determined by utilizing a photometric model of the pixels in an image sequence, in order to remove the influence of rain or snow to the image.
An image captured in rain or snow may have the following photometric model.
Assuming that the current weather is rain or snow and the background does not change, in three frames (n−1, n, n+1) of images captured successively at the same position, the corresponding pixel point P has luminance values of In−1, In, In+1 which satisfies the following conditions.
The luminance value In−1 of the (n−1) th frame is equal to the luminance value In+1 of the (n+1)th frame, and in the nth frame, a luminance varying value ΔI caused by the rain or snow satisfies the following condition:
ΔI=In−In−1=In−In+≧c
where, c represents a lower limit of the luminance value caused by the rain or snow.
Therefore, at step S28, the method further includes the following steps.
At step S281, a pixel that is contaminated by rain or snow and to be processed is searched for by utilizing the photometric model.
That is, for a pixel point P of a current image n, it is determined whether In−1 equals to In+1, and whether ΔI is larger than or equals to c. If In−1 equals to In+1 and ΔI is larger than or equals to c, it may be determined that the pixel point P of the image n is a pixel to be processed. The above determination is made for all pixels in the image n, until all of the pixels to be processed are searched out.
At step S282, luminance values of all of the pixels to be processed are adjusted.
Step S282 may further include the following steps.
At step S2821, for a to-be-processed pixel P of the image n, it is extracted luminance values of the same pixel P in former two frames of images (n−1), (n−2) of the image n and in latter two frames of images (n+1), (n+2) of the image n. It is determined whether the pixel P in each of the extracted four frames of images is a pixel to be processed. If the pixel P in each of the frames is a pixel to be processed, step S2822 is performed, otherwise step S2823 is performed.
At S2822, an average value of luminance values of all of the pixels adjacent to the to-be-processed pixel P is calculated, and the luminance value of the to-be-processed pixel P is replaced with the average value, in order to eliminate the influence of the rain or snow to the luminance of the image.
At step S2823, for a to-be-processed pixel P of the image n, it is extracted luminance values of the same pixel P in fonner two frames of images (n−1), (n−2) of the image n and in latter two frames of images (n+1), (n+2) of the image n. From the luminance values of the corresponding pixel point in the four frames of images, the smallest and the second smallest luminance values are selected. An average value of the smallest and the second smallest luminance values is calculated. The luminance value of the to-be-processed pixel P of the image n is replaced with the average value, to avoid the influence of the rain or snow to the luminance of the image. In another embodiment, the luminance value of the to-be-processed pixel P of the image n may be replaced with the smallest value of the luminance values of the corresponding pixel point in the four frames of images.
At the steps S2821 and S2823, luminance values of the corresponding pixel point in the former one, three or more frames and latter one, three or more frames of the image n may also be extracted.
At step S29, an image captured in frog is processed.
The frog image process step of the step S29 may be performed with homomorphic filtering, to eliminate influence of frog to the luminance of the image.
Specifically, an image f(x,y) is expressed in a form of a product of an illumination component and a reflection component:
f(x, y)=i(x,y)r(x, y)
Where 0≦i(x, y)≦+∞ is the illumination component and 0≦r(x, y)≦1 is the reflection component. A natural logarithm of each side of the formula is taken as:
ln f (x, y)=ln i(x, y)+ln r(x, y)
Fourier transformation is performed to obtain:
F (u ,v)=I(u, v)+R(u,v)
F (u ,v) is processed with a homomorphic filter function H(u,v) as:
S(u,v)=H(u,v)F(u,v)=H(u,v)I(u,v)+H(u,v)R(u,v)
Where the configuration of the profile of H(u, v) may be approximate by a basic form of any ideal high pass filter, such as a slight modification of a Gaussian high pass filter:
H(u, v)=(γH−γL)[1−e−e(D
Fourier inverse transformation is performed to obtain:
s(x, y)=F−1[H (u, v)I(u, v)]+F−1[H(u, v)R(u, v)]
Finally, an exponent calculation is performed to obtain:
g(x, y)=exp(s(x, y))
Where, g(x, y) is a result of the frog image process step.
Each frame of image is pre-processed at step S3, and become a frame of image with high quality. Then, each frame of image may be processed in subsequent steps.
Step S3 is performed after step S2. Step S3 is an aircraft capturing step.
In order to capture a docking aircraft for subsequent guiding operation, the images after pre-processing step S2 require further analysis, to accurately recognize whether an aircraft appears in these images.
Step S3 further includes: Step S31, a background elimination step; Step S32, a shade elimination step; Step S33, a region classifying step; and Step S34, a feature verification step.
Specifically, since the aircraft exists in the foreground of the images, in order to accurately capture the aircraft from the images, the background of the image should be eliminated firstly to erase noise in the images.
The background elimination step of step S31 is to use a single Gaussian background model to simulate the dynamic distribution of the background in the scene and to establish a background model, and then the current frame and the background model are differentiated to eliminate the background. The flowchart of the background elimination step is shown in
Step S31 further includes a step S311: initialization of the background model.
In the present disclosure, a single Gaussian background model is used. In the single Gaussian background model, each pixel in the background model is considered as in a one-dimensional normal distribution, and the pixels are independent from each other. The distribution may be determined by an average value and a variance of a noinial distribution.
Training of the background model is performed using successive N-frame images that have been processed at step S2, to determine the average value and variance of the Gaussian distribution. If in the captured N-frame images, an aircraft does not appear in the capturing region 6, the scene of the capturing region 6, i.e. the N-frame images are the background images. The N-frame images are captured at the same position. The N-frame images may be for example 50 frames of images captured by a photographing device 1.
For each pixel, an average gray value μ0 and a variance σ02 of gray scale of the pixel in the continuous N frame images f (x, y) are calculated. An initial background image B0 in a Gaussian distribution η(x, μ0, σ0) is formed by μ0 and σ02, as B0=[μ0, σ02]
Where:
In this way, a Gaussian model η(xi, μi, σi) is established for each pixel in each image. Where, the subscript i refers to an order number of the frame of the image, xi is a current pixel value of the pixel point, μi is the average value of the Gaussian model of the current pixel point, and σi is the mean squared error of the Gaussian model of the current pixel point.
Then, determination is made according to η(xi, μi, σi). If η(xi, μi, σi)≦TP (where, Tp is a probability threshold, or may be referred to a foreground detection threshold), the pixel point may be determined as a foreground pixel point, otherwise the pixel point may be determined as a background pixel point (at this time, xi matches with η(xi, μi, σi)). All collected background pixel points form a background model. Then, the initialization of the background model is completed.
In practical application, the probability threshold TP may be replaced with an equivalent threshold di=|xi−μi|. In conventional one dimensional situation, the foreground detection threshold may be set according to a value of di/σi. If di/σi>T (the value of T is between 2 and 3), the pixel point may be determined as a foreground pixel point, otherwise may be determined as a background pixel point.
At step S312, the background model is updated.
If the scene changes after the step S311 is completed, the background model needs to respond to these changes, and the background model should be updated.
The background model is updated with real-time information from images continuously taken by the photographing device 1 after the change of the scene, as shown by the formula below:
μi+1=(1−α)μi+αxiσi+1=√{square root over ((1−α)μi2+αdi2)}
Where α is an updating rate and represents a speed of updating of the background model. If the pixel is a background pixel, the updating rate α may be 0.05. If the pixel is a foreground pixel, the updating rate α may generally be 0.0025.
If the scene does not change after the completion of step S311, the process goes directly to perform step S313.
At step S313, after a current frame of image taken by the photographing device 1 is processed at step S2, the current frame and the background model are differentiated to obtain a foreground region of the current frame of image.
At this step, after the differentiation step, the method also includes performing morphological corrosion and dilation operations on the obtained differentiation result, to obtain a more accurate boundary of the foreground region. This morphological corrosion and expansion operation is a step that is known to those skilled in the art in the prior art.
After eliminating the background in the image, the shadows in the image can be further eliminated for accurate capture of the aircraft.
In the shading elimination step at step S32, the gray values of the respective pixels in the foreground region obtained through the processing of step 31 are firstly computed to find the maximum gray value g max and the minimum gray value g min and the shading elimination is performed on the regions with lower gray values. The region of the lower gray level value is a region of a gray value less than g min+(g max_g min)*0.5.
Each frame of image includes a foreground region and a background region, and the foreground region and the background region may overlap with each other, the pixels in the foreground region may have corresponding background pixels at the same position in the background region.
The gray scale ratio between each pixel and the corresponding background pixel is obtained in the lower gray level region, and if the ratio is between 0.3 and 0.9, the pixel is regarded as a shadow point.
The non-shaded regions in the set of shadow points are then removed by multiple morphological etch and expansion operations, resulting in a shaded region.
The shadow region is removed from the foreground region, and the target region is obtained by eliminating the holes in the foreground region and connecting the regions by multiple morphological expansion and corrosion operations. The target region corresponds to the object appearing in the capturing region 6, possibly the aircraft, or other objects such as a vehicle.
In the region classification step of step S33, a template of a standard front view of an aircraft region is created in advance, and the template can be used for distinguishing an aircraft from a non-aircraft, since an aircraft has a feature of narrow at either side and wide in the middle.
The target region is extracted through change detection, and a vertical projection curve of the target region is calculated. Subsequently, a vertical projection curve of the standard front view of an aircraft region is obtained. It may be determined whether a correlation coefficient between the vertical projection curve of the target region and the vertical projection curve of the standard front view of the aircraft region is greater than a classification threshold. If so, it means that the target region corresponds to an aircraft and the process is turned to perform step S34. Otherwise, it means that the target region corresponds to an object other than an aircraft. The classification threshold is, for example, 0.9.
At step S33, whether or not the target region is an aircraft is substantially determined only based on the external outline. Further, it is further determined through a feature verification step of step S34 whether the target region is indeed an aircraft. The feature verification step is to further verify whether the target is an aircraft by detecting the engine and the front wheel of the captured aircraft.
At Step S34, the method may also include the following steps.
At step S341, a blackest image region is extracted.
A gray scale histogram of the target region of the current frame of image is made. The maximum (gmax) gray value and the minimum value (gmin) are acquired in a gray level range of 1% to 99% (generally gray scales of 2 to 253), to obtain a ratio of the maximum (gmax) gray value/the minimum (gmin) gray value, which is not equal to 0. It may be determined whether it is day or night based on the ratio. A preset threshold for extracting the darkest region may be selected according to the ratio, to obtain the darkest region.
Specifically, a threshold BlackestJudge is used to extract a region in the image in which the gray value is between gmin and (gmax-gmin)*BlackestJudge+gmin, that is, the darkest part of the image, to obtain the darkest region.
It may be determined whether it is day or night according to the ratio of the maximum (gmax) gray value/the minimum (gmin) gray value. When the ration is larger than a standard value, it is day and the threshold BlackestJudge may be selected as 0.05, for example. Otherwise, it is night, and the threshold BlackestJudge may be selected as 0.5, for example.
A typical blackest region may be shown as in
Step S342: Circular-like detection.
All of the outer boundaries of the blackest region are extracted, and for each boundary, a gravity center coordinate is calculated.
Specifically, the gravity center coordinate may be calculated using moments of the boundary. A jith-order of moment mji of the boundary may be defined as follows:
(x, y) is the coordinate value of the pixel, and f (x, y) is the image of the blackest region.
The gravity center coordinate can be calculated from 00,10,01 orders of moments:
For all pixel points of the current boundary, a distance from each pixel to the gravity center is calculated. If a ratio of the maximum value of the calculated distances and the minimum value of the calculated distances exceeds a preset value (preferably the threshold for determining a circle circleJudge may be 1.5), it may be determined that the boundary does not correspond to a circular region. Otherwise, if the ratio of the maximum value of the calculated distances and the minimum value of the calculated distances does not exceed the preset value, it may be determined that the boundary corresponds to a circular region. Determination on all of the boundaries may be made according to this rule.
If it is determined that it is a circular region (briefly like-circular region), the gravity center coordinate and an average distance from the boundary to the gravity center (i.e. radius) may be recorded. Then, the process is turned to a similarity determination step S343.
Step S343 is a similarity determination step.
Step S343 may also include the following steps.
At step S3431, it may be determined whether there is an engine in the like-circular regions by calculating the similarity of the like-circular regions. If so, step S4 is performed. Otherwise, step S3432 is performed.
Assuming that totally M like-circular regions are detected, in which a similarity degree between an ith like-circular region and an jth like-circular region may be calculated as:
Similarityij=|Heighti−Heightk|*|Radiusi−Radiusj|
Where Height is a height of the gravity center, and Radius is an average distance from the boundary to the gravity center (i.e. radius).
When the similarity degree Similarityij is less than a similarity threshold similarThresh (preferably preset as 40), then the circle-like regions i and j are considered to be engine regions. If none of the similarity degrees Similarityij is less than the threshold value similarThresh, it may be considered that the engine region is not detected, and step S3432 is performed.
At step S3432, the threshold value is adjusted, and steps S341, 342, and 3431 may be performed again. If the engine region is not detected, step S3433 is performed.
The thresholds BlackestJudge, circleJudge, and similarThresh are respectively increased, and the increased amounts are preferably set to 0.05, 0.5, and 20, respectively, and the steps of extracting the blackest regions, circle-like regions detection and engine detection are performed. If the engine region is still not detected, step S3433 is performed.
At step S3433, an open operation is performed for all the blackest regions using a circular template for morphological processing, and steps S342 and 3431 are repeated.
The circular template may preferably be a circular template of 7*7. After the opening operation, the circle-like detection step S342 and the engine detection step S3431 are perfouned. If the engine region is not detected, step S3432 is iterated.
If the engine region is not detected after N times of iteration, it may be determined that there is no engine in the image. N may preferably be twice.
When detecting subsequent frames of images, if the number of iterations used in the previous frame is n, it is iterated directly from step n−1.
At step S344, the front wheel is detected.
A rectangle region lower than a connecting line of the centers of the circles of engines detected at step S343 for 4 times and a half of the height of the engine, is considered as a search region.
In the search region, 256 levels of grayscale are quantized to 64 levels. An example of a grayscale histogram of 256 levels of grayscale is shown in
For example, in
Assuming that after the quantization the first peak position is represented as peak and the first valley position is represented as valley, the optimal peak position BestPeak and the optimal valley position BestValley in the original histogram of the 256 levels of grayscale may be defined as:
Where hist256(i) represents a total number of pixels with a grayscale i in the histogram of the 256 levels of grayscale.
The grayscales are partitioned according to the optimal valley BestValley. For portions smaller than the optimal valleys BestValley, trivial points with small areas are removed, a closing operation is performed on the image with a flat elliptical structure element. The effect may be shown in
Then, 7th-order Hu moments of the boundary are calculated for all the graphs after the closing operation and compared with Hu moments of a preset standard front wheel model. The Hu moment feature is a geometrical moment proposed by Hu (Visual pattern recognition by moment invariants) in 1962. The Hu moment feature has characteristics of translation, rotation and scale invariance. The Hu moment feature utilizes 7 invariant moments constituted with second order and third order central moments. Therefore, in a 7th-order Hu moment feature, 7th-order is the uniquely determined. When the similarity degree is lower than a threshold value (preferably 1), it may be determined as a wheel. In this way, the location of multiple sets of wheels are obtained, in which a wheel in the lower middle is a front wheel.
Once it is determined that the engine and the front wheel are detected, it may be considered that the acquisition is successfully completed, and step S4 is performed.
Step S4, aircraft tracking step.
At this step, the position and radius of the engine are extracted according to the great difference in brightness between the outer wall and the inner part of the engine and the circular structure of the engine, so as to realize the real-time positioning of the aircraft and accurately obtain the deviation degree of the aircraft with respect to the guide line. Then, the front wheel of the aircraft may be found according to the spatial relationship, and the aircraft may be positioned.
Specifically, after the aircraft is captured, the photographing device 1 continues to take images. After the aircraft is captured in the previous frame of image, for the current frame of image, the image pre-processing step S2 is performed, and then directly proceeds to step S4. Alternatively, step S4 is performed after S2 and S3.
Since the position of the engine has been acquired in the previous frame of image using the feature verification method at step S34, the position of the engine in the current frame of image will only be slightly shifted. Therefore, there is no need to detect the engine in the entire map again, and the engine may be extracted from a smaller extended region in the current frame of image. The parameters (BlackestJudge, circleJudge) of the previous frame may be used for detecting the target in the current frame.
The flow chart of the aircraft tracking step is shown in
At step S41, it is determined whether or not there is engine information from the previous frame. If so, step S42 is perfoimed. Otherwise, step S46 is performed.
At step S42, the position of the engine is determined using the flood filling method.
Since the engine has a light-colored outer wall, the gray value thereof will be significantly higher than the black region inside the engine. A partial image of the aircraft engine is shown in
When the sky is dark or has a low illumination, the gray value of the engine boundary may not be much higher than the center. Additionally with some noise points, overflow may occur using the flood filling method, resulting in invalid filling, so that the resulted engine region is significantly too large, and is not circular any longer. In this case, the process proceeds to step S43.
At step S43, it is determined whether or not the filling result at step S42 is valid. If so, step S46 is performed, otherwise, step S44 is performed.
Step S44, a dark environment detection and tracking step.
At this step, the parameters used in processing the previous frame of image may be readily used, and steps S341 and S342 are performed again to detect the engine region.
At step S45, it is determined whether or not the detection result is valid. If so, the information of the engine region is output. Otherwise, the engine information of the previous frame is blanked, and step S41 is performed.
At step S46, the feature verification step S34 is directly performed and the information of the engine region is output.
Step S46 cannot be performed for more than twice for a series of images in one aircraft docking. In addition, after a particular number of frames (e.g., 20 frames) of images are detected with the dark environment detection and tracking step S44, regardless of the detection result, the feature verification step S34 is performed.
Step S47, a front wheel tracking step.
After the information of the engine region is acquired, at this step, the front wheel of the aircraft is detected using the front wheel detection method at step S344, for the subsequent aircraft positioning step.
At step S48, a front wheel tracking emergency processing step.
When the detection result obtained at step S47 is obviously incorrect, that is, when it is determined that the region of the wheel has an incorrect shape and the position deviates significantly from the previous 5 to 10 frames, from the information on the previous frame and the current frame, the shift of the front wheel of the frame may be estimated using a shift of an engine in adjacent two frames. The estimated result is returned as a front wheel tracking result. If front wheel tracking results of more than N (N may be 20-30 frames) frames are significantly different from aircraft forward parameters, an error message may be outputted.
Step S5, an aircraft positioning step. This step is used to generate correct docking guidance infoimation.
Step S5 further includes the following steps.
Step S51, a photographing device calibration and image correction step.
Step S52, an aircraft front wheel deviation degree calculating step.
Step S53, an aircraft front wheel actual distance calculating step.
The photographing device calibration process in the step S51 is to determine geometrical and optical parameters of the photographing device 1 and the orientation of the photographing device 1 with respect to the world coordinate system.
Photographing device calibration may be performed based on OpenCV. The calibration process uses a black and white planer checkerboard as a calibration template. For the photographing device 1, a plurality of pictures of the planer calibration template are captured from different angles to realize calibration of the photographing device 1. In order to make the calibration results more accurate, the calibration process requires images of at least 10 pieces of 7*8 checkerboards or larger. The calibration pictures should be captured as many as possible from different angles. The implementation process may be as follows:
At step S511, a number N of calibration pictures are read.
At step S512, a corner of the chessboard is found by using a function cvFindChessboardCorners 0 of OpenCV. The N calibration pictures read are respectively substituted to the function cvFindChessboardCorners ( ). If all the corners are successfully found, the function returns 1, and coordinates of the corners in the image coordinate system are acquired. If it is not successful, the function returns 0.
At step S513, if the corners are successfully searched out, the coordinates of the corners in the calibration template are substituted into the function cvCalibrateCamera2 ( ). The function returns a parameter matrix, a distortion coefficient, a rotation vector and a translation vector of the photographing device 1.
Since in practice, a lens has different degrees of distortion, mainly a radial distortion and a slight tangential distortion, the radial distortion coefficient and the tangential distortion coefficient is contained in the distortion coefficient returned by the function cvCalibrateCamera2 ( ). Therefore, the parameters are substituted into a function cvUndistort2 ( ) of OpenCV, to remove the lens distortion in mathematics.
The aircraft front wheel deviation degree calculation step S52 is to determine whether the front wheel of the aircraft is on the guide line, or left or right with respect to the guide line.
The coordinates of the position of the front wheel may be obtained from the result of the front wheel tracking step S47. Then, relevant position information of the guide line, the stop line and the like may be obtained from the scenario definition. Based on the algebra knowledge of relationship between a midpoint and a straight line, the degree of deviation of the front wheel of the aircraft may be determined. The process may specifically include the following.
The coordinates (x0, y0) of the position of the front wheel may be obtained from the front wheel tracking result. From the definition of the scenario, coordinates (xG1, yG1) and (xG2, yG2) of any two points on the guide line and coordinates (xS1, yS1) and (xS2, yS2) of any two points on the stop line may be obtained. If coordinates on the x axis of the two points on the guide line satisfy: xG1=xG2 , a linear equation 1 of the guide line 41 may not be represented in a point slope form. In this case, the linear equation 1 is: x1=xG1. The slope of the line is k1→∞. When xG1≠xG2, the linear equation 1 is: y1=k1x1+b1. Similarly, the linear equation 2 of the stop line 42 is y2=k2x2+b2. The coordinate system is established on the image, and seen from the installation position of the photographing device 1, the x axis is from left to right and the y axis is from bottom to top, the distance from the point of the coordinate to the line with the point modified is:
Unlike a common distance equation, the results obtained by this equation can be either positive or negative. The current coordinates (x0, y0) of the front wheel of the aircraft are substituted into the two linear equations, then d1 and d2 are obtained as:
d2≧0 means that the front wheel of the aircraft exceeds the stop line 41. d2<0 means that the front wheel of the aircraft dose not reach the stop line 41. At this time, if k1>0 (including k1→+∞), d1>0 means that the aircraft is deviated to left, and d1<0 means that the aircraft is deviated to right. If k1>0, d1<0 means that the aircraft is deviated to left, and d1>0 means that the aircraft is deviated to right. Deviation to left or to right is determined from a perspective of the pilot of the aircraft. Further, in order to avoid the algorithm being too sensitive and leading to a conclusion “ deviation from the guide line” whenever d1≠0, a determination condition |d1|>width/2 may be added. Where width represents a threshold, and the threshold may equal to a width of the front wheel of the aircraft. When the determination condition is satisfied, it may be considered that the aircraft has deviated from the guide line.
The deviation is determined from the parameters as shown in Table 1.
The aircraft front wheel actual distance calculating step S53 is for real-time calculating the true distance of the aircraft from the stop line.
First, the correspondence between image coordinates and geodetic coordinates is established. The black and white scale is placed next to the guide line in the scene. Then, in the scene definition, according to the scale, the mark points are drawn every lm at the maximum interval, and the distance of each mark point from the first mark point in the actual scene is recorded.
The coordinates of the mark points set in the scene at S1 are image coordinates, for example, 20 points in a 1-meter interval, respectively {point 1, point 2, . . . , point 20}. A relative coordinate of each point from the endpoint point 1 on the stop line is calculated as {relativepoint 1,relativepoint 2, . . . , relativepoint 20} where a coordinate of relativepoint1 is (0,0), a distance of each point from the end point relativepoint1 is {dis1,dis2, . . . , dis20}, and an actual distance of each point from the end point relativepoint1 is respectively {0 m,1 m, . . . , 19 m}. Then, one-to-one corresponding relationship between {dis1,dis2, . . . , dis20} and {0 m,1 m, . . . , 19 m} may be determined.
Points on the ground at equal intervals in the image present as a quadratic curve in the image. That is, with the increase of distance, the intervals between two points form arithmetical progression. Therefore, quadratic curve fitting may be performed on the points with the least squares method, to obtain a curve equation y=ax2+bx+c, where x is a distance in the image, y is the actual distance.
The front wheel of the aircraft on the image is projected on the guide line along a direction of the stop line. An Euclidean distance from the projection point to the stop line is denoted by x. By substituting x into an equation y=ax2+bx+c the value of y, i.e. the actual distance (the unit is m) from the front wheel of the aircraft to the stop line may be obtained. In this way, accurate docking guide information may be generated.
Before the plane enters the station floor, the airport transmits the model information to the machine-vision-based aircraft docking guide and the type recognition system. After step S3 is completed, the step S6 is performed next, the aircraft identification and identity verification step is to verify the model information through image analysis. That is, steps S4, S5 may be performed in synchronization with step S6.
When i=0, the original image S0 may have the highest resolution. The resolution of the image decreases with the increase of i. When i=L, the image SL may have the lowest resolution.
The coarse-to-fine multi-level visual feature detection method is used for bad weather, such as rain, snow, fog, and night when the noise of the image is large, so that decrease of the resolution can improve the detection effect. The resolution may be increased to the maximum resolution through subsequent mapping, for identification and validation of the model type of the aircraft. This is a method for detecting features of an aircraft under bad weather. The system may automatically determine an optimal resolution according to the quality of the image, in order to extract the profile of the aircraft.
Step S6 specifically includes the following steps.
Step S61, parameter verification.
Step S62, template matching.
Step S63, comprehensive judgment.
Step S61 further includes the following steps.
At step S611, parameters of the aircraft engine are extracted and compared with parameters of the aircraft engine of a corresponding model type preset in a database of the system.
The step of extracting the parameters of the aircraft engine may be implemented through the above described steps S341-S343. The extracted parameters of the aircraft engine can be counted in pixels.
The ratio (referred to as a first ratio) of the radii of the engine in the extracted parameters of the aircraft against a radii of an engine corresponding to the model information received by the system in a model parameter database in the airport is calculated.
At step S612, the aircraft wing parameters are extracted and compared to the aircraft wing parameters of the corresponding model preset in the database.
The step of extracting the aircraft wing parameters includes:
At step S6121, an edge of the aircraft image is extracted using a Canny operator. An example of an aircraft image edge is shown in
At step S6122, an aircraft image edge pixel is extracted and the pixel points are enumerated axially in an aircraft engine away from the boarding bridge side (a left side in
At step S6123, the edge of the aircraft wing is determined, and two lines passing through the largest number of edge pixels are taken as the edge of the aircraft wing.
At step S6124, the tip of the aircraft wing is determined and the edge pixels of the region around the wing tip are taken as the wing tip feature.
An example of a wing profile and an engine profile is shown in
At step S6125, parameter comparison is performed. The length of the wing of the aircraft is measured by the position of the wing tip, and the ratio (referred to as a second ratio) of the length of the wing of the aircraft to the wing length data corresponding to the received model information in the airport model parameter database is calculated.
At step S613, characteristics parameters of the aircraft head are extracted and compared with parameters of aircraft head characteristic corresponding to the model preset in the database.
Step S6131, the boundary of the aircraft head is determined. The center position of the aircraft is determined by the determined aircraft engine parameters. The points on the central axis are enumerated as the center of the circle. A radius that is 2 to 4 times of the radius length of the aircraft engine is enumerated to draw a circle. The circle passing through the largest number of Canny edge pixels is taken as the boundary of the aircraft head.
At step S6132, the aircraft head window is determined.
Since the window is in the upper semicircle of the aircraft head, the depth priority search is used to find the longest edge of the upper semicircle of the boundary of the aircraft head which is not adhered to the edge of the aircraft head, to serve as the position of the aircraft head window.
Step S6133, parameters are compared, aircraft head radius is measured, and the radio (referred to as a third ratio) of the radius of the aircraft head to the radius of the aircraft head corresponding to the received model information in the airport model parameter database is calculated. The measured radius of the aircraft head can be in pixels.
At step S614, the aircraft tail parameters are extracted and compared with the aircraft tail parameters preset to the corresponding model in the database.
At step S6141, a portion of the protrusion is found along the upper edge of the boundary of the aircraft head by the method of depth-first search.
Step S6142, the parameters are compared and the height of the aircraft tail is measured in the unit of pixel. The ratio of the aircraft tail height to the aircraft tail parameter corresponding to the model information received in the airport model parameter database is calculated. This ratio is called the fourth ratio.
At step S615, a minimum value and a maximum value among the first ratio, the second ratio, the third ratio, and the fourth ratio are taken, and the ratio of the minimum value/the maximum value is taken as the model similarity parameter as the coefficient 1.
The template matching step S62 includes:
At step S621, the global template matching is performed, and the global template similarity parameter is calculated as the coefficient 2 by taking the whole image currently captured as the searched image and the standard aircraft image in the system database as the template.
M is the maximum value that the subgraph Sij can be obtained in the height direction, and N is the maximum value that the subgraph Sij can obtain in the width direction.
The maximum value Rmax (im, jm) of R (i, j) is found in all the results R (i, j), the corresponding subgraph Sij is the matching target, Rmax (im, jm) is the global template similarity parameter of the subgraph Sij.
At step S622, the local template matching is performed, respectively, with the aircraft engine, the aircraft wings, the aircraft head, and the aircraft tail position extracted at step S61 as the searched image, respectively, with the engine, the wing, the head and the tail of the standard aircraft image corresponding to the received model infoimation in the airport model parameter database as templates, using the calculation formula at step S621, 4 similarity parameters R of the aircraft engine, the aircraft wings, the aircraft head, and the aircraft tail are respectively calculated, a minimum value of the 4 similarity parameters is removed, and an average of the remaining 3 similarity parameters of the 4 similarity parameters is taken as a local template similarity parameter. The local template similarity parameter is used as the coefficient 3.
At step S63, it is judged synthetically that at least two of the coefficients 1, 2, 3 are equal to or greater than a first verification threshold, or when all of the coefficients 1, 2, 3 are greater than a second verification threshold, the currently captured aircraft is matched with the model information obtained in advance, the identity verification is passed, otherwise, the verification fails.
A step S7, an information display step.
The display device 3 is a large-sized display installed at an airport for viewing by an aircraft pilot during an aircraft docking process, and also for an airport operator to observe the aircraft.
In the drawing, 7000 denotes a region for displaying guidance information on the display device 3, and 7002 denotes a “T” shape formed by a guide line and a stop line to facilitate showing the relative positions of the aircraft and the guide line and the stop line.
The berth guidance information, such as the specific position of the aircraft determined by the aircraft positioning step S5, including deviation to left or right 7001 and the distance away from the stop line 7003, are displayed on the display device in real time.
The aircraft type information 7004 verified by the aircraft identification and identity verification step S6 is also displayed on the display device in real time, for pilots to observe the aircraft's route, which improves the safety of aircraft docking.
In summary, the present disclosure realizes the capture, tracking, positioning and identity verification of the aircraft accurately during the docking process of the aircraft, and displays the accurate and effective guidance information of the aircraft berth on the display device 3, so as to provide the aircraft pilot, the co-pilot or other personnel with correct and effective berth guidance, so that the aircraft may achieve safe and effective berth, improving airport efficiency and ensuring safety.
Of course, the present disclosure may also have other various embodiments. Without departing from the spirit and essential of the present disclosure, those skilled in the art may make various corresponding variations and modifications according to the present disclosure. These corresponding variations and modifications are intended to be within the protection scope of the claims appended hereto.
Number | Date | Country | Kind |
---|---|---|---|
201410378566.8 | Aug 2014 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2015/083206 | 7/2/2015 | WO | 00 |