Aircraft bridge approach event detection method and device based on video

By detecting images of multiple scenes with dual cameras, the problem of inaccurate detection of aircraft approaching bridge events caused by single camera images is solved, the accuracy and robustness of detection are improved, and the accurate detection of aircraft approaching bridge events is ensured.

CN112528729BActive Publication Date: 2024-09-27ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011118974.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-19
Publication Date
2024-09-27
Estimated Expiration
2040-10-19

AI Technical Summary

Technical Problem

In the existing technology, the detection of aircraft approaching bridge events is inaccurate. The images collected by a single camera cannot ensure accurate detection when the aircraft and the bridge are connected, which can easily lead to misjudgment.

Method used

Dual cameras are used to collect images of multiple scenes. The first camera is used on the apron, and the second camera is used on the front end of the bridge. The motion status of the bridge area and the cabin door is detected through video frames, and the detection results of the aircraft approaching the bridge event are output.

Benefits of technology

It improves the accuracy and robustness of the detection of aircraft approaching bridge events, decouples chain misjudgments caused by single camera images, and ensures the accuracy of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112528729B
    Figure CN112528729B
Patent Text Reader

Abstract

The present application relates to a video-based aircraft approaching bridge event detection method, device, computer equipment and computer-readable storage medium, wherein the method comprises: obtaining a first video captured by a first camera and a second video captured by a second camera, wherein the first camera is used to capture the apron image, and the second camera is used to capture the bridge entrance image at the front end of the bridge; detecting the bridge area according to the first video and the second video, and detecting the motion state of the cabin door according to the first video and the second video; outputting the detection result of the aircraft approaching bridge event according to the bridge area and the motion state, wherein the detection result is used to indicate whether the aircraft approaching bridge event has occurred. Through the present application, the technical problem of inaccurate detection of aircraft approaching bridge events in related technologies is solved, and the accuracy and robustness of the aircraft approaching bridge event detection based on video of the aircraft approaching bridge are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a video-based aircraft bridge approach event detection method, apparatus, computer equipment, and computer-readable storage medium. Background Art

[0002] In the relevant technology, the airport jet bridge is an important node of the airport apron events. How to quickly and accurately detect the aircraft jet bridge event can improve the airport's scheduling efficiency and shorten the disembarkation time.

[0003] In the related technologies, manual recording or electronic sensing is used, and automatic video detection is rarely used. Some related technologies use images captured by a single camera on the apron to assist in the detection of bridge-approaching events. As far as a single camera image is concerned, the overlapping positions of the bridge and the aircraft frame cannot guarantee the connection between the aircraft and the bridge. When the two are staggered, the positions of the frames in the camera's field of view may also overlap, resulting in inaccurate detection and requiring manual confirmation and inspection.

[0004] Currently, no effective solution has been proposed for the technical problems existing in related technologies. Summary of the invention

[0005] The embodiments of the present application provide a video-based aircraft approaching bridge event detection method, apparatus, computer equipment and computer-readable storage medium to at least solve the technical problem of inaccurate aircraft approaching bridge event detection in related technologies.

[0006] In a first aspect, an embodiment of the present application provides a video-based aircraft approaching bridge event detection method, comprising: acquiring a first video captured by a first camera and a second video captured by a second camera, wherein the first camera is used to capture apron images, and the second camera is used to capture bridge entrance images at the front end of the bridge; detecting a bridge area according to the first video and the second video, and detecting the movement state of a cabin door according to the first video and the second video; outputting a detection result of the aircraft approaching bridge event according to the bridge area and the movement state, wherein the detection result is used to indicate whether an aircraft approaching bridge event has occurred.

[0007] In some embodiments, detecting the corridor bridge area according to the first video and the second video includes: judging whether the front end unexpanded area of ​​the corridor bridge satisfies a preset displacement condition according to the n+1 frame and the m+1 frame of the first video, wherein n and m are both positive integers; if the front end unexpanded area of ​​the corridor bridge satisfies the preset displacement condition, obtaining the corridor bridge boundary of the corridor bridge based on the horizontal projection segmentation of the first n frames and the first m frames.

[0008] In some embodiments, judging whether the front end unexpanded area of ​​the corridor bridge meets the preset displacement condition according to the n+1 frame and the m+1 frame of the first video includes: detecting the first front end unexpanded area of ​​the corridor bridge in the first n frames of the first video, and detecting the second front end unexpanded area of ​​the corridor bridge in the n+1 frame, if the horizontal displacement difference between the first front end unexpanded area and the second front end unexpanded area is greater than the width value of the front end unexpanded area in the current frame, determining that the motion displacement requirement is met; detecting the third front end unexpanded area of ​​the corridor bridge in the first m frames of the first video, and detecting the fourth front end unexpanded area in the m+1 frame, if the horizontal displacement difference between the third front end unexpanded area and the fourth front end unexpanded area is less than half of the width value of the front end unexpanded area in the current frame, determining that the still requirement is met.

[0009] In some embodiments, obtaining the boundary of the corridor bridge based on the horizontal projection segmentation of the first n frames and the first m frames corresponding to the second video includes: graying each of the first n frames corresponding to the second video, performing foreground and background segmentation, and accumulating n frames to obtain a first result image; graying each of the first m frames corresponding to the second video, performing frame difference fixed threshold segmentation and morphological processing on adjacent frames, and accumulating the m frames to obtain a second result image; performing an AND operation on the first result image and the second result image to obtain a third result image; traversing each row of pixels from top to bottom in the third result image, using the number of black pixels in each row to generate a horizontal projection, and using a predefined amplitude threshold to segment the horizontal projection to obtain the boundary of the corridor bridge.

[0010] In some of the embodiments, detecting the movement state of the cabin door according to the first video includes: detecting a front non-expanded area and a cabin door area of ​​the corridor in the first video; if the front non-expanded area and the cabin door area are detected, detecting a front deployed area of ​​the corridor in the first video; if the front deployed area of ​​the corridor is detected and the cabin door area exists in the front deployed area, and the vertex coordinates of the cabin door area all fall within the front deployed area, it is determined that the movement state of the cabin door satisfies a predetermined condition.

[0011] In some of the embodiments, detecting the motion state of the cabin door according to the second video includes: detecting the coordinates of the cabin door area in each frame of k frames of the second video; calculating the overlap IOU value of every two adjacent frames in the k frames to obtain k-1 IOU values; if the minimum value of the k-1 IOU values ​​is greater than a preset threshold, determining that the motion state of the cabin door satisfies a predetermined state.

[0012] In some of the embodiments, outputting the detection result of the aircraft approaching event according to the bridge area and the motion state includes: if the motion state satisfies a predetermined state, calculating the connection length between the bridge entrance boundary of the bridge area and the bottom end of the cabin door area in the bridge; if the connection length satisfies a preset condition, outputting a first detection result of the aircraft approaching event; if the connection length does not satisfy the preset condition, outputting a second detection result of the aircraft approaching event, wherein the first detection result is used to indicate that an aircraft approaching event has occurred, and the second detection result is used to indicate that an aircraft approaching event has not occurred.

[0013] In the second aspect, an embodiment of the present application provides a video-based aircraft docking event detection device, including: an acquisition module, used to acquire a first video captured by a first camera and a second video captured by a second camera, wherein the first camera is used to capture apron images, and the second camera is used to capture docking entrance images at the front end of the dock; a detection module, used to detect the dock area according to the first video and the second video, and detect the movement state of the cabin door according to the first video and the second video; an output module, used to output the detection result of the aircraft docking event according to the dock area and the movement state, wherein the detection result is used to indicate whether the aircraft docking event has occurred.

[0014] In some embodiments, the detection module includes: a judgment unit, used to judge whether the front end unexpanded area of ​​the corridor meets the preset displacement condition based on the n+1 frame and the m+1 frame of the first video, wherein n and m are both positive integers; a segmentation unit, used to obtain the corridor boundary of the corridor based on the horizontal projection segmentation of the first n frames and the first m frames if the front end unexpanded area of ​​the corridor meets the preset displacement condition.

[0015] In some embodiments, the judgment unit includes: a first judgment subunit, used to detect a first front end unexpanded area of ​​the corridor in the first n frames of the first video, and to detect a second front end unexpanded area of ​​the corridor in the n+1 frame, and if the horizontal displacement difference between the first front end unexpanded area and the second front end unexpanded area is greater than the width value of the front end unexpanded area in the current frame, it is determined that the motion displacement requirement is met; a second judgment subunit, used to detect a third front end unexpanded area of ​​the corridor in the first m frames of the first video, and to detect a fourth front end unexpanded area in the m+1 frame, and if the horizontal displacement difference between the third front end unexpanded area and the fourth front end unexpanded area is less than half of the width value of the front end unexpanded area in the current frame, it is determined that the static displacement requirement is met.

[0016] In some embodiments, the segmentation unit includes: a segmentation subunit, used to grayscale each of the first n frames corresponding to the second video, perform foreground and background segmentation, and accumulate n frames to obtain a first result image; after graying each of the first m frames corresponding to the second video, perform frame difference fixed threshold segmentation and morphological processing on adjacent frames, and accumulate the m frames to obtain a second result image; an operation subunit, used to perform an AND operation on the first result image and the second result image to obtain a third result image; a projection subunit, used to traverse each row of pixels from top to bottom in the third result image, use the number of black pixels in each row to generate a horizontal projection, and use a predefined amplitude threshold to segment the horizontal projection to obtain the corridor boundary of the corridor.

[0017] In some embodiments, the detection module includes: a first detection unit, used to detect a front non-expanded area and a cabin door area of ​​the corridor in the first video; a second detection unit, used to detect a front deployed area of ​​the corridor in the first video if the front non-expanded area and the cabin door area are detected; and a first determination unit, used to determine that the motion state of the cabin door satisfies a predetermined condition if the front deployed area of ​​the corridor is detected and the cabin door area exists within the front deployed area, and the vertex coordinates of the cabin door area all fall within the front deployed area.

[0018] In some embodiments, the detection module includes: a second detection unit, used to detect the coordinates of the cabin door area in each frame of k frames of the second video; a calculation unit, used to calculate the overlap IOU value of every two adjacent frames in the k frames to obtain k-1 IOU values; and a second determination unit, used to determine that the motion state of the cabin door satisfies a predetermined state if the minimum value of the k-1 IOU values ​​is greater than a preset threshold.

[0019] In some embodiments, the output module includes: a calculation unit, used to calculate the connection length between the bridge entrance boundary of the bridge area and the bottom end of the cabin door area in the bridge if the motion state satisfies a predetermined state; an output unit, used to output a first detection result of the aircraft docking event if the connection length satisfies a preset condition; if the connection length does not meet the preset condition, output a second detection result of the aircraft docking event, wherein the first detection result is used to indicate that an aircraft docking event has occurred, and the second detection result is used to indicate that an aircraft docking event has not occurred.

[0020] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the detection method described in the first aspect above when executing the computer program.

[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the detection method as described in the first aspect above.

[0022] Compared with the related art, the solution provided in the embodiment of the present application can decouple the dependency of the aircraft approaching the bridge event by using dual cameras to detect images in multiple scene orientations, prevent the chain misjudgment caused by the single camera image, solve the technical problem of inaccurate detection of aircraft approaching the bridge event in the related art, and improve the accuracy and robustness of the detection of aircraft approaching the bridge event.

[0023] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0025] Figure 1 is a structural block diagram of a user terminal according to an embodiment of the present application;

[0026] Figure 2 is a flow chart of a video-based aircraft bridge approach event detection method according to an embodiment of the present application;

[0027] Figure 3 is a schematic diagram of a scenario of an embodiment of the present invention;

[0028] Figure 4 is a schematic diagram of each detection area in an embodiment of the present invention;

[0029] Figure 5 is a flow chart of detecting a covered bridge area according to an embodiment of the present invention;

[0030] Figure 6 is a schematic diagram of judging the displacement state of a covered bridge according to an embodiment of the present invention;

[0031] Figure 7 is a schematic diagram of the boundary of the covered bridge segmented according to an embodiment of the present invention;

[0032] Figure 8 is a flow chart of detecting motion state according to an embodiment of the present invention;

[0033] Fig. 9 is a flowchart of a scheme in an example of an embodiment of the present invention;

[0034] Fig.10is a structural block diagram of a video-based aircraft bridge approach event detection device according to an embodiment of the present application;

[0035] Fig.11 Schematic diagram of the hardware structure of a video-based aircraft approaching bridge event detection device according to an embodiment of the present application. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0037] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0038] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0039] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0040] This embodiment provides a user terminal, which may be a computer, a mobile phone, a server, etc. Figure 1 is a structural block diagram of a user terminal according to an embodiment of the present application. Figure 1 As shown, the user terminal includes: a radio frequency (RF) circuit 110, a memory 120, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160 (optional), a wireless fidelity (WiFi) module 170 (optional), a processor 180, and a power supply 190. Those skilled in the art will understand that Figure 1 The user terminal structure shown in the figure does not constitute a limitation on the user terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0041] Combine the following Figure 1 The following is a detailed introduction to the various components of the user terminal:

[0042] The RF circuit 110 can be used for receiving and sending signals during the process of sending and receiving information. In particular, after receiving the downlink information of the base station, it is sent to the processor 180 for processing; in addition, the designed uplink data is sent to the base station. Usually, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, referred to as LNA), a duplexer, etc. In addition, the RF circuit 10 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), NR, email, Short Messaging Service (SMS), etc.

[0043] The memory 120 can be used to store software programs and modules. The processor 180 executes various functional applications and data processing of the user terminal by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the user terminal (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0044] The input unit 130 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the user terminal 100. Specifically, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 131 or near the touch panel 131 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 131 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 180, and can receive and execute the command sent by the processor 180. In addition, the touch panel 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 131, the input unit 130 may also include other input devices 132. Specifically, other input devices 132 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.

[0045] The display unit 140 may be used to display information input by the user or information provided to the user and various menus of the user terminal. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 131 may cover the display panel 141. When the touch panel 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 1 In the embodiment, the touch panel 131 and the display panel 141 are used as two independent components to implement the input and output functions of the user terminal, but in some embodiments, the touch panel 131 and the display panel 141 can be integrated to implement the input and output functions of the user terminal.

[0046] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the user terminal. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is output to the processor 180 for processing, and then sent to another user terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing.

[0047] WiFi is a short-range wireless transmission technology. The user terminal can help users send and receive emails, browse web pages and access streaming media through the WiFi module 170, which provides users with wireless broadband Internet access. Figure 1 A WiFi module 170 is shown, but it is understandable that it is not an essential component of the user terminal 100 and can be omitted as needed without changing the essence of the invention, or replaced with other short-range wireless transmission modules, such as a Zigbee module or a WAPI module.

[0048] The processor 180 is the control center of the user terminal. It uses various interfaces and lines to connect various parts of the entire user terminal. It executes various functions of the user terminal and processes data by running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, so as to monitor the user terminal as a whole. Optionally, the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.

[0049] The user terminal 100 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.

[0050] Although not shown, the user terminal 100 may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0051] This embodiment also provides a video-based method for detecting an aircraft approaching a bridge. Figure 2 is a flow chart of a video-based aircraft bridge approach event detection method according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0052] Step S201, obtaining a first video captured by a first camera and a second video captured by a second camera, wherein the first camera is used to capture a landing screen, and the second camera is used to capture a screen at the front end of the bridge;

[0053] Figure 3 : is a schematic diagram of a scene of an embodiment of the present invention. The first camera (camera A) is installed at a top-down perspective in front of the aircraft, and the picture includes the aircraft area and the corridor bridge area. The second camera (camera B) is installed on the top of the corridor bridge, and the picture monitors the corridor bridge entrance area. The camera A picture uses a pre-trained deep learning detection model to detect the aircraft cabin door area and the undeployed area and deployed area at the front end of the corridor bridge. The camera B picture uses a pre-trained deep learning model to detect the aircraft cabin door area. Figure 4 Schematic diagram of various detection areas in an embodiment of the present invention.

[0054] Step S202, detecting a corridor bridge area according to the first video and the second video, and detecting a movement state of a cabin door according to the first video and the second video;

[0055] In this embodiment, the corridor area is surrounded by the boundaries in the video frame, and the movement state of the cabin door includes a static state and the like.

[0056] Step S203: outputting a detection result of an aircraft approaching the bridge event according to the bridge area and the motion state, wherein the detection result is used to indicate whether an aircraft approaching the bridge event occurs.

[0057] Through the above steps, the first video captured by the first camera and the second video captured by the second camera are obtained, the jet bridge area is detected according to the first video and the second video, and the movement state of the cabin door is detected according to the first video and the second video, and finally the detection result of the aircraft approaching the jet bridge event is output according to the jet bridge area and the movement state. By using dual cameras to perform detection in multiple scene orientations, the dependency relationship of the aircraft approaching the jet bridge event can be decoupled, the chain misjudgment caused by the single camera image can be prevented, the technical problem of inaccurate detection of the aircraft approaching the jet bridge event by related technologies is solved, and the accuracy and robustness of the aircraft approaching the jet bridge event detection are improved.

[0058] In some embodiments, detecting the covered bridge area according to the first video and the second video includes:

[0059] S11, judging whether the front unexpanded area of ​​the corridor bridge meets a preset displacement condition according to the n+1 frame and the m+1 frame of the first video, wherein n and m are both positive integers;

[0060] In some embodiments, judging whether the front end unexpanded area of ​​the corridor bridge meets the preset displacement condition according to the n+1 frame and the m+1 frame of the first video includes: detecting the first front end unexpanded area of ​​the corridor bridge in the first n frames of the first video, and detecting the second front end unexpanded area of ​​the corridor bridge in the n+1 frame, if the horizontal displacement difference between the first front end unexpanded area and the second front end unexpanded area is greater than the width value of the front end unexpanded area in the current frame, determining that the motion displacement requirement is met; detecting the third front end unexpanded area of ​​the corridor bridge in the first m frames of the first video, and detecting the fourth front end unexpanded area in the m+1 frame, if the horizontal displacement difference between the third front end unexpanded area and the fourth front end unexpanded area is less than half of the width value of the front end unexpanded area in the current frame, determining that the static displacement requirement is met.

[0061] S12: If the front unexpanded area of ​​the corridor bridge meets a preset displacement condition, a corridor bridge boundary of the corridor bridge is obtained based on horizontal projection segmentation of first n frames and first m frames corresponding to the second video.

[0062] In some embodiments, obtaining the boundary of the corridor bridge based on the horizontal projection segmentation of the first n frames and the first m frames corresponding to the second video includes: graying each of the first n frames corresponding to the second video, performing foreground and background segmentation, and accumulating n frames to obtain a first result image; graying each of the first m frames corresponding to the second video, performing frame difference fixed threshold segmentation and morphological processing on adjacent frames, and accumulating the m frames to obtain a second result image; performing an AND operation on the first result image and the second result image to obtain a third result image; traversing each row of pixels from top to bottom in the third result image, using the number of black pixels in each row to generate a horizontal projection, and using a predefined amplitude threshold to segment the horizontal projection to obtain the boundary of the corridor bridge.

[0063] Figure 5 The flowchart of detecting the corridor bridge area according to an embodiment of the present invention includes the following steps:

[0064] Step a, judging whether the unexpanded front-end region satisfies the displacement requirement: obtaining the front-end region position detected in the first n frames and the front-end region position after n video frames, when the horizontal displacement difference between the two is greater than the width value of the front-end region of the current frame, it is considered that the displacement requirement is met; obtaining the front-end region position detected in the first m video frames and the front-end region position after m video frames, when the horizontal displacement difference between the two is less than half of the width value of the front-end region of the current frame, it is considered that the displacement requirement is met. Figure 6 is a schematic diagram of judging the displacement state of a covered bridge according to an embodiment of the present invention;

[0065] Step b, when it is detected that the front n frames of the unexpanded corridor bridge meet the static requirement, each of the n frames is grayed out and then the foreground and background are segmented using the Otsu threshold method, and then the n frames are accumulated;

[0066] Step c, when it is detected that the front end of the unexpanded corridor bridge has obvious displacement movement, each of the m frames is grayed out, and the frame difference fixed threshold segmentation and morphological processing are performed between the previous and next frames, and then the m frames are accumulated;

[0067] Step d, perform an AND operation on the result images obtained in step c and step b; traverse each row of pixels from top to bottom, count the number of black pixels in each row, and generate a horizontal projection; select α times the image width W as the segmentation amplitude threshold T, T = αW (0 < α < 1), traverse the black projection amplitude of each row, and count when the projection amplitude is greater than T, and obtain the count value h after the traversal is completed; set the image height as H, set the vertical coordinate of the outer side of the corridor bridge entrance ground as y, and satisfy y = Hh, this function is the boundary line of the corridor bridge entrance after segmentation, Figure 7 It is a schematic diagram of the boundary of the covered bridge segmented according to an embodiment of the present invention.

[0068] In some embodiments, detecting the motion state of the cabin door according to the first video includes: detecting the front non-expanded area and the cabin door area of ​​the corridor bridge in the first video; if the front non-expanded area and the cabin door area are detected, detecting the front expanded area of ​​the corridor bridge in the first video; if the front expanded area of ​​the corridor bridge is detected, and the cabin door area exists in the front expanded area, and the vertex coordinates of the cabin door area all fall within the front expanded area, determining that the motion state of the cabin door meets the predetermined condition. The state machine is used to determine whether each state is met in turn.

[0069] Figure 8 It is a flow chart of detecting the motion state in an embodiment of the present invention. It is judged based on the apron picture that the unfolded front area position and the historical position relationship of the aircraft cabin door meet the requirements. When it is detected that multiple consecutive frames of detection results successively meet the following state changes, the output is yes, and it is determined that the motion state of the cabin door meets the predetermined conditions.

[0070] By adopting the solution of this embodiment, the dual cameras can jointly use the shape position of the corridor bridge entrance and the docking position of the cabin door in the corridor bridge to accurately detect the docking position of the aircraft.

[0071] In some of the embodiments, detecting the motion state of the cabin door according to the second video includes: detecting the coordinates of the cabin door area in each frame of k frames of the second video; calculating the overlap IOU value of every two adjacent frames in the k frames to obtain k-1 IOU values; if the minimum value of the k-1 IOU values ​​is greater than a preset threshold, determining that the motion state of the cabin door satisfies a predetermined state.

[0072] In one example, the cabin door detection model based on the jet bridge camera detects the cabin door area coordinates of each frame, records the cabin door detection coordinates of k frames, and calculates the IOUs between the detected cabin doors in pairs between the previous and next frames (obtained by dividing the area of ​​intersection by the area of ​​union). When the minimum value of the k-1 IOU values ​​obtained is greater than the preset threshold θ (0.8<θ<1.0), it is considered to be stationary.

[0073] In some of the embodiments, outputting the detection result of the aircraft approaching event according to the bridge area and the motion state includes: if the motion state satisfies a predetermined state, calculating the connection length between the bridge entrance boundary of the bridge area and the bottom end of the cabin door area in the bridge; if the connection length satisfies a preset condition, outputting a first detection result of the aircraft approaching event; if the connection length does not satisfy the preset condition, outputting a second detection result of the aircraft approaching event, wherein the first detection result is used to indicate that an aircraft approaching event has occurred, and the second detection result is used to indicate that an aircraft approaching event has not occurred.

[0074] In one example, the vertical coordinate of the detected cabin door area in the corridor is y0, and the threshold for the connection between the preset corridor entrance boundary and the bottom of the cabin door is βh (β is a preset threshold coefficient). When |y0-y|<βh is satisfied, it is determined that the two are connected, the docking state is detected, and the detection result of the aircraft docking event is output.

[0075] Fig. 9 This is a flowchart of a scheme in an example of an embodiment of the present invention. After the images inside the jet bridge and the apron are collected by two cameras, the state of the cabin door in the jet bridge is detected to determine whether it is in a stationary state. The jet bridge boundary of the camera images in the jet bridge is divided into two images jointly. It is determined whether the relationship between the expanded front area position and the historical position of the aircraft cabin door meets the requirements. Finally, the aircraft approaching the bridge event is determined based on the jet bridge edge and the cabin door area inside the bridge.

[0076] By adopting the solution of this embodiment, the dependencies of the aircraft docking events can be decoupled, and separate module detection can be used to prevent chain misjudgments. Based on multi-angle camera scenes, a reliable deep learning model can be used to effectively segment the detection combination of related components, thereby improving the accuracy and robustness of docking event detection.

[0077] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0078] This embodiment also provides a video-based aircraft bridge approach event detection device, which is used to implement the above-mentioned embodiments and preferred implementations, and will not be repeated here. As used below, the terms "module", "unit", "subunit", etc. can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0079] Fig.10 is a structural block diagram of a video-based aircraft bridge approach event detection device according to an embodiment of the present application, such as Fig.10 As shown, the device comprises:

[0080] An acquisition module 100 is used to acquire a first video captured by a first camera and a second video captured by a second camera, wherein the first camera is used to capture a landing screen, and the second camera is used to capture a screen at a bridge entrance at the front end of the bridge;

[0081] A detection module 102, configured to detect a corridor bridge area according to the first video and the second video, and to detect a motion state of a cabin door according to the first video and the second video;

[0082] The output module 104 is used to output the detection result of the aircraft approaching the bridge event according to the bridge area and the motion state, wherein the detection result is used to indicate whether the aircraft approaching the bridge event occurs.

[0083] In one implementation of the present embodiment, the detection module includes: a judgment unit, used to judge whether the front end unexpanded area of ​​the corridor meets the preset displacement condition based on the n+1 frame and the m+1 frame of the first video, wherein n and m are both positive integers; a segmentation unit, used to obtain the corridor boundary of the corridor based on the horizontal projection segmentation of the first n frames and the first m frames if the front end unexpanded area of ​​the corridor meets the preset displacement condition.

[0084] In one implementation of the present embodiment, the judgment unit includes: a first judgment subunit, used to detect a first front end unexpanded area of ​​the corridor bridge in the first n frames of the first video, and to detect a second front end unexpanded area of ​​the corridor bridge in the n+1 frame, and if the horizontal displacement difference between the first front end unexpanded area and the second front end unexpanded area is greater than the width value of the front end unexpanded area in the current frame, it is determined that the motion displacement requirement is met; a second judgment subunit, used to detect a third front end unexpanded area of ​​the corridor bridge in the first m frames of the first video, and to detect a fourth front end unexpanded area in the m+1 frame, and if the horizontal displacement difference between the third front end unexpanded area and the fourth front end unexpanded area is less than half of the width value of the front end unexpanded area in the current frame, it is determined that the static displacement requirement is met.

[0085] In one implementation of the present embodiment, the segmentation unit includes: a segmentation subunit, which is used to grayscale each of the first n frames corresponding to the second video, perform foreground and background segmentation, and accumulate n frames to obtain a first result image; after graying each of the first m frames corresponding to the second video, perform frame difference fixed threshold segmentation and morphological processing on adjacent frames, and accumulate the m frames to obtain a second result image; an operation subunit, which is used to perform an AND operation on the first result image and the second result image to obtain a third result image; a projection subunit, which is used to traverse each row of pixels from top to bottom in the third result image, use the number of black pixels in each row to generate a horizontal projection, and use a predefined amplitude threshold to segment the horizontal projection to obtain the corridor boundary of the corridor.

[0086] In one implementation of the present embodiment, the detection module includes: a first detection unit, used to detect a front non-expanded area and a cabin door area of ​​the corridor in the first video; a second detection unit, used to detect a front end expanded area of ​​the corridor in the first video if the front end non-expanded area and the cabin door area are detected; and a first determination unit, used to determine that the motion state of the cabin door satisfies a predetermined condition if the front end expanded area of ​​the corridor is detected and the cabin door area exists within the front end expanded area, and the vertex coordinates of the cabin door area all fall within the front end expanded area.

[0087] In one implementation of the present embodiment, the detection module includes: a second detection unit, used to detect the coordinates of the cabin door area in each frame of k frames of the second video; a calculation unit, used to calculate the overlap IOU value of every two adjacent frames in the k frames to obtain k-1 IOU values; a second determination unit, used to determine that the motion state of the cabin door satisfies a predetermined state if the minimum value of the k-1 IOU values ​​is greater than a preset threshold.

[0088] In one implementation of the present embodiment, the output module includes: a calculation unit, which is used to calculate the connection length between the bridge entrance boundary of the bridge area and the bottom end of the cabin door area in the bridge if the motion state satisfies a predetermined state; an output unit, which is used to output a first detection result of the aircraft docking event if the connection length satisfies a preset condition; if the connection length does not meet the preset condition, output a second detection result of the aircraft docking event, wherein the first detection result is used to indicate that an aircraft docking event has occurred, and the second detection result is used to indicate that an aircraft docking event has not occurred.

[0089] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0090] In addition, combined Figure 2 The video-based aircraft approaching bridge event detection method described in the embodiment of the present application can be implemented by a video-based aircraft approaching bridge event detection device. Fig.11 Schematic diagram of the hardware structure of a video-based aircraft approaching bridge event detection device according to an embodiment of the present application.

[0091] The video-based aircraft approaching bridge event detection device may include a processor 81 and a memory 82 storing computer program instructions.

[0092] Specifically, the processor 81 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0093] Among them, the memory 82 may include a large-capacity memory for data or instructions. By way of example and not limitation, the memory 82 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 82 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 82 may be inside or outside the data processing device. In a specific embodiment, the memory 82 is a non-volatile memory. In a specific embodiment, the memory 82 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0094] The memory 82 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 81 .

[0095] The processor 81 reads and executes computer program instructions stored in the memory 82 to implement any one of the video-based aircraft approaching bridge event detection methods in the above embodiments.

[0096] In some of the embodiments, the video-based aircraft bridge approach event detection device may further include a communication interface 83 and a bus 80. Fig.11 As shown, the processor 81, the memory 82, and the communication interface 83 are connected via a bus 80 and communicate with each other.

[0097] The communication interface 83 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication interface 83 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.

[0098] The bus 80 includes hardware, software or both, and couples the components of the video-based aircraft bridge approach event detection device to each other. The bus 80 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 80 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, bus 80 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0099] In addition, in combination with the video-based aircraft approaching bridge event detection method in the above embodiments, the present application embodiment can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any of the video-based aircraft approaching bridge event detection methods in the above embodiments is implemented.

[0100] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0101] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A video-based aircraft bridge approach event detection method, characterized in that: include: Acquire a first video captured by a first camera and a second video captured by a second camera, wherein the first camera is used to capture a screen of the apron, and the second camera is used to capture a screen of the bridge entrance at the front end of the bridge; Detecting a corridor bridge area according to the first video and the second video, and detecting a movement state of a cabin door according to the first video and the second video; Outputting a detection result of an aircraft approaching a bridge event according to the bridge area and the motion state, wherein the detection result is used to indicate whether an aircraft approaching a bridge event occurs; Detecting the corridor bridge area according to the first video and the second video includes: Determining whether the front unexpanded area of ​​the corridor bridge meets a preset displacement condition according to the n+1 frame and the m+1 frame of the first video, wherein n and m are both positive integers; If the front unexpanded area of ​​the corridor bridge meets the preset displacement condition, the corridor bridge boundary of the corridor bridge is obtained based on the horizontal projection segmentation of the first n frames and the first m frames corresponding to the second video; The step of judging whether the front unexpanded area of ​​the corridor bridge meets the preset displacement condition according to the n+1 frame and the m+1 frame of the first video includes: Detecting a first front end non-expanded area of ​​the corridor bridge in the first n frames of the first video, and detecting a second front end non-expanded area of ​​the corridor bridge in the n+1 frame, and if a horizontal displacement difference between the first front end non-expanded area and the second front end non-expanded area is greater than a width value of the front end non-expanded area in the current frame, determining that the motion displacement requirement is met; The third front end unexpanded area of ​​the corridor bridge is detected in the first m frames of the first video, and the fourth front end unexpanded area is detected in the m+1 frame. If the horizontal displacement difference between the third front end unexpanded area and the fourth front end unexpanded area is less than half of the width value of the front end unexpanded area in the current frame, it is determined that the static displacement requirement is met.

2. The detection method according to claim 1, characterized in that: The bridge boundary of the corridor bridge obtained by horizontal projection segmentation based on the first n frames and the first m frames corresponding to the second video includes: After graying each of the first n frames corresponding to the second video, the foreground and background are segmented, and the n frames are accumulated to obtain a first result image; after graying each of the first m frames corresponding to the second video, the adjacent frames are segmented with a fixed threshold value for frame difference and morphological processing are performed, and the m frames are accumulated to obtain a second result image; Performing an AND operation on the first result graph and the second result graph to obtain a third result graph; Each row of pixels of the third result image is traversed from top to bottom, and a horizontal projection is generated using the number of black pixels in each row. A predefined amplitude threshold is used to segment the horizontal projection to obtain a bridge boundary of the bridge.

3. The detection method according to claim 1, characterized in that: Detecting the movement state of the cabin door according to the first video includes: Detecting a front undeployed area and a cabin door area of ​​the corridor bridge in the first video; If the front non-deployed area and the cabin door area are detected, the front deployed area of ​​the corridor bridge is detected in the first video; If the front unfolding area of ​​the corridor bridge is detected, and the cabin door area exists in the front unfolding area, and the vertex coordinates of the cabin door area all fall within the front unfolding area, it is determined that the motion state of the cabin door meets the predetermined condition.

4. The detection method according to claim 1, characterized in that: Detecting the movement state of the cabin door according to the second video includes: Detecting the coordinates of the cabin door area in each frame of k frames of the second video; Calculate the overlap IOU value of every two adjacent frames in the k frames to obtain k-1 IOU values; If the minimum value of the k-1 IOU values ​​is greater than a preset threshold, it is determined that the motion state of the cabin door satisfies a predetermined state.

5. The detection method according to claim 1, characterized in that: Outputting the detection result of the aircraft approaching the bridge event according to the bridge area and the motion state includes: If the motion state satisfies a predetermined state, calculating the connection length between the boundary of the corridor bridge area and the bottom end of the cabin door area in the corridor bridge; If the connection length meets the preset conditions, a first detection result of the aircraft approaching the bridge event is output; if the connection length does not meet the preset conditions, a second detection result of the aircraft approaching the bridge event is output, wherein the first detection result is used to indicate that the aircraft approaching the bridge event has occurred, and the second detection result is used to indicate that the aircraft approaching the bridge event has not occurred.

6. A video-based aircraft bridge approach event detection device, characterized in that: include: An acquisition module is used to acquire a first video captured by a first camera and a second video captured by a second camera, wherein the first camera is used to capture the apron image, and the second camera is used to capture the bridge entrance image at the front end of the bridge; a detection module, configured to detect a corridor bridge area according to the first video and the second video, and to detect a motion state of a cabin door according to the first video and the second video; an output module, configured to output a detection result of an aircraft approaching a bridge event according to the bridge area and the motion state, wherein the detection result is used to indicate whether an aircraft approaching a bridge event occurs; The detection module includes: a judgment unit, used to judge whether the front end unexpanded area of ​​the corridor meets the preset displacement condition according to the n+1 frame picture and the m+1 frame picture of the first video, wherein n and m are both positive integers; a segmentation unit, used to obtain the corridor boundary of the corridor based on the horizontal projection segmentation of the first n frame picture and the first m frame picture if the front end unexpanded area of ​​the corridor meets the preset displacement condition; The judgment unit includes: a first judgment subunit, used to detect a first front end unexpanded area of ​​the corridor bridge in the first n frames of the first video, and to detect a second front end unexpanded area of ​​the corridor bridge in the n+1 frame, and if the horizontal displacement difference between the first front end unexpanded area and the second front end unexpanded area is greater than the width value of the front end unexpanded area in the current frame, it is determined that the motion displacement requirement is met; a second judgment subunit, used to detect a third front end unexpanded area of ​​the corridor bridge in the first m frames of the first video, and to detect a fourth front end unexpanded area in the m+1 frame, and if the horizontal displacement difference between the third front end unexpanded area and the fourth front end unexpanded area is less than half of the width value of the front end unexpanded area in the current frame, it is determined that the static displacement requirement is met.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the detection method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the detection method according to any one of claims 1 to 5 is implemented.