Channel type terahertz security inspection data extraction control method based on photoelectric switch control
By setting up photoelectric switches and independent data columns in the channel-type terahertz security inspection system, the problems of high-volume, multi-person inspection and reverse movement have been solved, achieving efficient and accurate security inspection data processing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI HENGLIN OPTIC ELECTRIC CO LTD
- Filing Date
- 2022-12-12
- Publication Date
- 2026-07-03
AI Technical Summary
Existing channel-type terahertz security inspection systems cannot adapt to large-volume, multi-person inspections. They suffer from poor real-time performance, slow data processing, and an inability to effectively identify people moving in the wrong direction, resulting in chaotic security inspection images.
Photoelectric switches are installed at the entrance and exit of the security checkpoint to divide the security checkpoint into three areas, and an independent data column is established for each area. The direction of travel is determined by the trigger signal of the photoelectric switch, and a unique personal information code is generated for differentiated processing of security check data.
It enables efficient processing of multiple people for inspection, ensures the uniqueness and accuracy of security inspection data, avoids data chaos caused by reverse movement, and improves inspection efficiency and the reliability of results.
Smart Images

Figure CN115774292B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of security inspection, and in particular to the field of channel-type terahertz security inspection technology, specifically a channel-type terahertz security inspection data extraction and control method based on photoelectric switch control. Background Technology
[0002] Currently, the channel-type terahertz body inspection system is widely used in high-traffic areas such as checkpoints, subway stations, airports, train stations, docks, ports, and high-speed rail lines due to its advantages such as zero radiation, no stopping, non-contact, good privacy protection, high inspection efficiency, good imaging effect, and ability to detect a wide variety of prohibited items.
[0003] The working principle of the channel-type terahertz human body security inspection system: During security checks, the person being inspected walks through the security checkpoint in sequence. The terahertz security detectors installed in the entrance and exit equipment rooms receive the terahertz waves naturally emitted by the back and front of the person's body, respectively. When a person conceals items such as guns or knives in their clothing, there is a strong contrast between the terahertz wave radiation intensity at the location of the item and other parts of the body. The system represents the difference in terahertz wave radiation intensity of different parts of the body in the form of grayscale images, which are displayed as grayscale differences on the image, thereby achieving non-contact detection of items concealed under clothing.
[0004] Currently, there are existing technologies in this field that control the security check process by setting up photoelectric switches in the security check channel. For example, the channel-type terahertz security check system disclosed in Chinese invention patent application CN115097541A uses a channel-type turnstile at the entrance of the security check channel, which allows only one person to pass at a time. An entrance photoelectric switch is set at the entrance and inside the channel-type turnstile, and an exit photoelectric switch is set at the exit. The opening / closing state of the channel-type turnstile is controlled by the triggering state of the entrance and exit photoelectric switches, thereby controlling the security check of the target entering the security check channel. However, it requires the corresponding channel-type turnstile to be configured. For existing terahertz security check systems that are already in operation, it is often inconvenient to promote and apply them due to the limitations of existing sites. At the same time, because it cannot control the personnel entering the security check channel from the exit in reverse, the terahertz security check image of the target personnel normally in the security check channel will overlap and become confusing with the terahertz security check image of the personnel moving in reverse in the security check channel.
[0005] CN115166850A discloses a method for extracting and controlling security information in a channel-type terahertz human body security inspection system. This method involves installing four pairs of photoelectric switches at the entrance, exit, and within the security inspection channel. These switches divide the entire inspection channel into an entrance section, an imaging detection section, and an exit section. Effective terahertz detection images and videos are obtained by sequentially triggering the level signals and timing of each pair of photoelectric switches as the target person walks within the security inspection channel. Furthermore, the trigger timing of the level signals can be used to determine if anyone is entering the security inspection channel in the wrong direction, thus avoiding overlap and confusion between the terahertz detection images of normal personnel. However, this method is only suitable for single-person terahertz security checks and cannot adapt to large-volume, multi-person checks. It also suffers from low real-time performance and slow data processing. Summary of the Invention
[0006] To address the aforementioned issues, this invention provides a channel-based terahertz security inspection data extraction and control method based on photoelectric switch control. This method can solve the problems of existing methods, such as their inability to adapt to large-volume multi-person detection, poor real-time performance, and slow data processing.
[0007] The technical solution is a channel-type terahertz security inspection data extraction and control method based on photoelectric switch control. A terahertz security detector is installed at each end of a security inspection channel with an entrance and an exit. A photoelectric switch SW4 is installed at the entrance of the security inspection channel, a photoelectric switch SW1 is installed at the exit, and photoelectric switches SW3 and SW2 are installed on either side of the center of the security inspection channel. The detection channel between photoelectric switches SW4 and SW3 forms a first area (area1), the detection channel between photoelectric switches SW3 and SW2 forms a second area (area2), and the detection channel between photoelectric switches SW2 and SW1 forms a third area (area3). The two terahertz security detectors perform frontal and back terahertz imaging detection on the target personnel walking in the security inspection channel. Passing through any pair of photoelectric switches triggers the corresponding pair of photoelectric switches and generates a corresponding trigger signal. The key feature is that:
[0008] The movement of the target personnel from the entrance to the exit is defined as forward movement, and the opposite is defined as reverse movement. A unique personal information code personID is generated for each target personnel entering the security checkpoint. An independent data column queue is established for each area. Each data column has a personal information code storage location and a security check data storage location. Each data column queue has two data states: empty and occupied. Each data column queue can only be in one of the data states at any given time, and each data column can only store one set of personal information and security check data of the target personnel at any given time.
[0009] Once any pair of photoelectric switches is triggered by the target personnel, the security inspection data processing will proceed in sequence as follows:
[0010] Step S100: Determine and identify the location of the triggered pair of photoelectric switches and determine the detection area of the photoelectric switch based on its location.
[0011] Step S200: Query the current data status of the data column corresponding to the detection area where the photoelectric switch at the location determined in step S100 is located, and thereby determine whether the current target person who triggered the photoelectric switch is moving forward or backward.
[0012] In step S300, if the current target person's direction of movement obtained in step S200 is forward movement, then the security data interception and collection operation, temporary storage operation, and data transfer operation are performed on the current target person; if the current target person's direction of movement is reverse movement, then no security data extraction operation is performed on the current target person, that is, the security data processing flow after the photoelectric switch is triggered ends, or only the security data transfer operation is performed before ending the security data processing flow after the photoelectric switch is triggered.
[0013] Further, in step S100, when it is determined that the trigger feedback signal originates from photoelectric switch sw4, the area to which photoelectric switch sw4 belongs is the first area area1;
[0014] Step S200: Query whether the first data column queue1 corresponding to the first area area1 is occupied. If the first data column queue1 is not occupied at this time, it is determined that the current target person is in the forward movement state of entering the first area area1 from the entrance. If the first data column queue1 is occupied at this time, it is determined that the current target person is in the reverse movement state of leaving the first area from the exit.
[0015] In step S300, if it is determined in step S200 that the current target person is moving forward, a unique personal information code personID is generated for the current target person. At the same time, the back terahertz imaging data of the terahertz security scanner is extracted from the current target person and bound to the personal information code personID and placed in the first data column queue1. At this time, the first data column queue1 is occupied. If it is determined in step S200 that the current target person is moving backward, the data content currently occupied in the first data column queue1 is deleted, and the security data processing of the photoelectric switch sw4 is completed.
[0016] Furthermore, in step S100, when it is determined that the trigger feedback signal originates from photoelectric switch sw3, the area where photoelectric switch sw3 is located is the first area area1 and the second area area2.
[0017] Step S200: Query whether the first data column queue1 corresponding to the first area aer1 is occupied. If the first data column queue1 is occupied, it is determined that the current target person is in a forward movement from the first area area1 to the second area area2. If the first data column is empty, it is determined that the current target person is in a reverse movement from the second area to the first area.
[0018] In step S300, if it is determined in step S200 that the current target person is in a forward-moving state, then the personal information code personID and all security inspection data bound to that personal information code personID currently occupying the first data column queue1 are transferred to the second data column queue2. At the same time, the extraction of front terahertz imaging data of the terahertz security scanner performing terahertz security inspection on the current target person begins, and the extraction of back terahertz imaging detection data of the terahertz security scanner performing terahertz security inspection on the current target person continues. The extracted front and back terahertz imaging data are stored in the second data column queue2 and linked to the personal information code personID. ID binding; if it is determined in step S200 that the current target person is in a reverse movement state, then query whether the second data column queue2 corresponding to the second area area2 is occupied. If the second data column queue2 is occupied at this time, then the personal information code personID and all security inspection data bound to the personal information code personID in the current second data column queue2 are transferred to the first data column queue1 and the security inspection data processing process of triggering photoelectric switch sw3 ends. If the second data column queue2 is not occupied at this time, then the security inspection data processing process of triggering photoelectric switch sw3 ends directly.
[0019] Furthermore, in step S100, when it is determined that the trigger feedback signal originates from photoelectric switch sw2, the area to which photoelectric switch sw2 belongs is the second area area2 and the third area area3.
[0020] Step S200: Query whether the second data column queue2 corresponding to the current second area aer2 is occupied. If the second data column queue2 is occupied, it is determined that the current target person is in a forward movement from the second area area2 to the third area area3. If the second data column queue is empty, it is determined that the current target person is in a reverse movement from the third area area3 to the second area area2.
[0021] In step S300, if it is determined in step S200 that the current target person is moving forward, then the personal information code personID and all security inspection data bound to that personal information code personID in the current second data column queue2 are transferred to the third data column queue3. At the same time, the extraction of the back terahertz imaging data of the terahertz security scanner for the current target person is stopped. If it is determined in step S200 that the current target person is moving backward, then it is checked whether the third data column queue3 corresponding to the third area area3 is occupied. If the third data column queue3 is occupied at this time, then the personal information code personID and all security inspection data bound to that personal information code personID in the current third data column queue3 are transferred to the second data column queue2 and the security inspection data processing process of triggering photoelectric switch sw2 ends. If the third data column queue3 is not occupied at this time, then the security inspection data processing process of triggering photoelectric switch sw2 ends directly.
[0022] Furthermore, if it is determined in step S100 that the trigger feedback signal originates from photoelectric switch sw1, then the area to which photoelectric switch sw1 belongs is the third area area3.
[0023] Step S200: Query whether the third data column queue3 corresponding to the current third area area3 is occupied. If the third data column queue3 is occupied at this time, it is determined that the current target person is in the forward movement state of leaving the third area from the exit; if the third data column queue3 is empty at this time, it is determined that the current target person is in the reverse movement state of entering the third area from the exit into the detection channel.
[0024] In step S300, if it is determined in step S200 that the current target person is moving forward, then stop extracting the frontal terahertz imaging data of the terahertz security scanner for the current target person, end the terahertz security check process for the current target person, extract and integrate the personal information code personID and all security check data bound to the personal information code personID in the third data column queue3 and store them in the database, while setting the third data column queue3 to an empty state; if it is determined in step S200 that the current target person is moving backward, then generate a unique personal information code personID for the current backward-moving target person and put the personal information code personID into the third data column queue3, and end the security check data processing process of triggering photoelectric switch sw1.
[0025] Furthermore, when any pair of photoelectric switches is triggered, the duration t of the trigger being blocked by the current target person is detected. If the duration t ≥ 150 milliseconds, steps S100 to S300 are executed sequentially; if the duration t < 150 milliseconds, the triggering of the photoelectric switch is determined to be invalid, and the security data processing flow for that triggering photoelectric switch is directly terminated.
[0026] The beneficial effects of this invention are as follows: By setting up four pairs of photoelectric switches, the security check channel is divided into three areas, and an independent data column is established for each area. This ensures that each data column can only contain the personal information code and corresponding security check data of one person being checked at any given time (i.e., the security check data in each data column belongs to only one person being checked). This allows for independent processing of data in different areas (i.e., multi-threaded operation) without mutual interference. This enables simultaneous terahertz security checks on different targets located in different areas. On the one hand, it effectively improves the extraction and processing effect of security check data and increases detection efficiency, thus effectively meeting the requirements of high-volume detection. On the other hand, it effectively ensures the uniqueness of security check data, ensuring accurate and reliable security check results. Furthermore, the method of this invention can effectively identify the reverse movement of the person being checked in the security check channel, thereby avoiding the problem of inaccurate security check data caused by reverse movement. Attached Figure Description
[0027] Figure 1 This is a schematic flowchart of the channel-type terahertz security inspection data extraction and control method based on photoelectric switch control of the present invention;
[0028] Figure 2 This is a schematic diagram of the layout of a terahertz security inspection system applied to the method of the present invention. Detailed Implementation
[0029] This invention relates to a channel-type terahertz security inspection data extraction and control method based on photoelectric switch control. It involves installing a terahertz security scanner at each end of a security inspection channel with an entrance and an exit. (See...) Figure 2 A photoelectric switch SW4 is installed at the entrance of the security checkpoint, a photoelectric switch SW1 is installed at the exit, and photoelectric switches SW3 and SW2 are installed on both sides of the center of the security checkpoint. The detection channel between photoelectric switches SW4 and SW3 forms the first area area1, the detection channel between photoelectric switches SW3 and SW2 forms the second area area2, and the detection channel between photoelectric switches SW2 and SW1 forms the third area area3. The two terahertz security scanners perform terahertz imaging detection on the front and back of the target personnel walking in the security checkpoint. The target personnel can trigger the pair of photoelectric switches and generate a corresponding trigger signal when they pass through any pair of photoelectric switches.
[0030] The movement of the target personnel from the entrance to the exit is defined as forward movement, and the opposite is defined as reverse movement. A unique personal information code personID is generated for each target personnel entering the security checkpoint. An independent data column queue is established for each area to store the personal ID information and security check data of the target personnel. Each data column queue has two data states: empty and occupied. Each data column queue can only be in one of the data states at any given time, and each data column can only store one set of personal information and security check data of the target personnel at any given time.
[0031] Once any pair of photoelectric switches is triggered by the target personnel, the security inspection data processing will proceed in sequence as follows:
[0032] Step S100: Determine and identify the location of the triggered pair of photoelectric switches and determine the detection area of the photoelectric switch based on its location.
[0033] Step S200: Query the current data status of the data column corresponding to the detection area where the photoelectric switch at the location determined in step S100 is located, and thereby determine whether the current target person who triggered the photoelectric switch is moving forward or backward.
[0034] In step S300, if the current target person's direction of movement obtained in step S200 is forward movement, then the security data interception and collection operation, temporary storage operation, and data transfer operation are performed on the current target person; if the current target person's direction of movement is reverse movement, then no security data extraction operation is performed on the current target person, that is, the security data processing flow after the photoelectric switch is triggered ends, or only the security data transfer operation is performed before ending the security data processing flow after the photoelectric switch is triggered.
[0035] The implementation of the method of the present invention will be described in detail below with reference to a specific photoelectric switch:
[0036] (a) When the photoelectric switch SW4 at the entrance of the security checkpoint is triggered, then according to Figure 2 Photoelectric switch SW4 is located within the first region, area1;
[0037] Query the data status of the first data column queue1 corresponding to the current first area area1. If the first data column queue1 is not occupied by any data at this time, it is determined that the current target person is in the forward movement state of entering the first area area1 from the entrance. If the first data column queue1 has stored personal information or personal information bound to security check data, it is determined that the current target person is in the reverse movement state of leaving the first area from the exit.
[0038] If the current target person is determined to be moving forward, a unique personal information code (personID) is generated for the current target person. At the same time, the terahertz imaging data of the back of the target person being inspected by the terahertz security scanner is extracted and bound to the personal information code (personID) and stored in the first data column (queue1). At this time, the first data column (queue1) is occupied. If the current target person is determined to be moving backward, all data content currently occupied in the first data column (queue1) is deleted, and the security data processing triggered by the photoelectric switch (sw4) ends.
[0039] (ii) When photoelectric switch SW3 is triggered, then according to Figure 2 The photoelectric switch sw3 is located in the first area area1 and the second area area2;
[0040] Query whether the first data column queue1 corresponding to the first area arr1 is occupied. If the first data column queue1 is occupied (i.e., the first data column queue1 already stores personal information codes or personal information codes bound to security check data), then it is determined that the current target person is in a forward movement state from the first area area1 to the second area area2; if the first data column queue1 does not store any data, then it is determined that the current target person is in a reverse movement state from the second area to the first area.
[0041] If the target person is currently moving forward from the first area (area1) to the second area (area2), all data information (person ID or person ID with security check data) stored in the first data column (queue1) will be transferred to the second data column (queue2), making the first data column (queue1) empty. At the same time, the front terahertz imaging data of the terahertz security scanner for the current target person will be extracted, and the back terahertz imaging detection data of the terahertz security scanner for the current target person will be extracted. The extracted front and back terahertz imaging data will be stored in the second data column (queue2).
[0042] If it is determined that the current target person is in a reverse movement from the second area (area2) to the first area (area1), then first check whether the second data column (queue2) corresponding to the second area (area2) is occupied. If the second data column (queue2) is occupied, then all information (person ID or person ID that has been bound to security check data) stored in the current second data column (queue2) will be transferred to the first data column (queue1) and the security check data processing flow triggered by the photoelectric switch (sw3) will end. If the second data column (queue2) is not occupied and is in an empty data state, then the security check data processing flow triggered by the photoelectric switch (sw3) will end directly.
[0043] (III) When photoelectric switch sw2 is triggered, then according to Figure 2 It can be seen that photoelectric switch sw2 is located in the second region area2 and the third region area3;
[0044] Query whether the second data column queue2 corresponding to the current second area aer2 is occupied. If the second data column queue2 is occupied, it is determined that the current target person is in a forward movement from the second area area2 to the third area area3. If the second data column queue is not occupied and is empty, it is determined that the current target person is in a reverse movement from the third area area3 to the second area area2.
[0045] If it is determined that the current target person is in a forward movement from the second area (area2) to the third area (area3), then all data information currently stored in the second data column (queue2) (i.e., personal information code personID or personal information code personID that has been bound to security check data) will be transferred to the third data column (queue3). The second data column (queue2) will be set to an empty state. The front terahertz imaging data of the terahertz security scanner for the current target person will continue to be extracted and stored in the third data column (queue3). The extraction of the back terahertz imaging data of the terahertz security scanner for the current target person will be stopped.
[0046] If it is determined that the current target person is in a reverse movement from the third area (area3) to the second area (area2), then check whether the third data column (queue3) corresponding to the third area (area3) is occupied. If the third data column (queue3) is occupied, then all data information currently occupying the third data column (queue3) (i.e., personal information code personID or personal information code personID that has been bound to security check data) will be transferred to the second data column (queue2) and the security check data processing process triggered by the photoelectric switch (sw2) will end. If the third data column (queue3) is not occupied, then the security check data processing process triggered by the photoelectric switch (sw2) will end directly.
[0047] (iv) When the photoelectric switch sw1 located at the exit is triggered, then according to Figure 2 It can be seen that photoelectric switch sw1 is located in the third region area3;
[0048] Check if the third data column queue3 corresponding to the current third area area3 is occupied. If the third data column queue3 is occupied, it is determined that the current target person is in a forward movement state leaving the third area from the exit; if the third data column queue3 is empty, it is determined that the current target person is in a reverse movement state entering the third area from the exit into the detection channel.
[0049] If it is determined that the current target person is moving forward from the exit of the third area, then stop extracting the frontal terahertz imaging data of the terahertz security scanner for the current target person, end the terahertz security check process for the current target person, extract and integrate all data information (including personal information code personID and all security check data bound to that personal information code personID) stored in the third data column queue3 and store it in the database, and at the same time set the third data column queue3 to an empty state;
[0050] If the current target person is determined to be moving in the reverse direction from the exit into the third area of the detection channel, a unique personal information code personID is generated for the current reverse-moving target person. After the personal information code personID is placed into the third data column queue3, the security data processing flow of triggering photoelectric switch sw1 ends.
[0051] As a preferred technical solution of the method of the present invention, when any pair of photoelectric switches is triggered, it is necessary to detect the duration t of the photoelectric switch being blocked by the current target person. If the time t ≥ 150 milliseconds, then steps S100 to S300 are executed sequentially; if the time t < 150 milliseconds, then the triggering of the photoelectric switch is determined to be an invalid trigger, and the security inspection data processing flow of the triggered photoelectric switch is directly terminated. This can avoid the situation where the photoelectric switch is mistakenly triggered in a short time during the actual security inspection process, thereby improving the authenticity and reliability of the security inspection data.
[0052] The method of this invention can effectively identify the reverse movement of personnel in the security checkpoint. It can identify reverse movement personnel entering the security checkpoint from the exit and reverse movement personnel entering the security checkpoint from the entrance, undergoing normal terahertz security checks in some areas, and then turning back in the security checkpoint. The method can handle different reverse movement situations separately, thereby effectively improving the reverse movement fault tolerance capability in actual detection applications.
[0053] The method of the present invention can also be applied to terahertz security inspection systems that integrate other detection processes such as visible light camera detection and thermal imager detection. It is only necessary to install other detection devices such as visible light camera detection and thermal imager detection in specific areas, and extract and store the corresponding detection data information into the data column of the corresponding area.
[0054] The specific implementation of the present invention has been described in detail above, but the content is only a preferred embodiment of the present invention and should not be considered as limiting the scope of the present invention. All equivalent changes and improvements made in accordance with the claims of the present invention should still fall within the patent coverage of the present invention.
Claims
1. A channel-type terahertz security inspection data extraction and control method based on photoelectric switch control, wherein a terahertz security detector is installed at each end of a security inspection channel with an entrance and an exit. A photoelectric switch SW4 is installed at the entrance of the security inspection channel, a photoelectric switch SW1 is installed at the exit, and photoelectric switches SW3 and SW2 are installed on both sides of the center of the security inspection channel, respectively. The detection channel between photoelectric switches SW4 and SW3 forms a first area area 1, the detection channel between photoelectric switches SW3 and SW2 forms a second area area 2, and the detection channel between photoelectric switches SW2 and SW1 forms a third area area 3. The two terahertz security detectors perform terahertz imaging detection on the front and back of the target personnel walking in the security inspection channel, respectively. Passing through any pair of photoelectric switches triggers the corresponding pair of photoelectric switches and generates a corresponding trigger signal. The method is characterized by: The movement of the target personnel from the entrance to the exit is defined as forward movement, and the opposite is defined as reverse movement. A unique personal information code (personID) is generated for each target personnel entering the security checkpoint. An independent data column (queue) is established for each area to store the target personnel's personal ID information and security check data. Each data column has two data states: empty and occupied. Each data column can only be in one of these states at a time, and each data column can only store one set of target personnel's personal information and security check data at a time. When any pair of photoelectric switches is triggered by the target personnel, the security check data is processed in the following steps. Step S100: Determine and identify the location of the triggered pair of photoelectric switches and determine the detection area of the photoelectric switch based on its location. Step S200: Query the current data status of the data column corresponding to the detection area where the photoelectric switch at the location determined in step S100 is located, and thereby determine whether the current target person who triggered the photoelectric switch is moving forward or backward. In step S300, if the current target person's direction of movement obtained in step S200 is forward movement, then the security data interception and collection operation, temporary storage operation, and data transfer operation are performed on the current target person; if the current target person's direction of movement is reverse movement, then no security data extraction operation is performed on the current target person, that is, the security data processing flow after the photoelectric switch is triggered ends, or only the security data transfer operation is performed before ending the security data processing flow after the photoelectric switch is triggered.
2. The channel-type terahertz security inspection data extraction and control method based on photoelectric switch control according to claim 1, characterized in that: When step S100 determines that the trigger feedback signal originates from photoelectric switch sw4, the area to which photoelectric switch sw4 belongs is the first area area1; Step S200: Query whether the first data column queue1 corresponding to the first area area1 is occupied. If the first data column queue1 is not occupied at this time, it is determined that the current target person is in the forward movement state of entering the first area area1 from the entrance. If the first data column queue1 is occupied at this time, it is determined that the current target person is in the reverse movement state of leaving the first area from the exit. In step S300, if it is determined in step S200 that the current target person is moving forward, a unique personal information code personID is generated for the current target person. At the same time, the back terahertz imaging data of the terahertz security scanner is extracted from the current target person and bound to the personal information code personID and placed in the first data column queue1. At this time, the first data column queue1 is occupied. If it is determined in step S200 that the current target person is moving backward, the data content currently occupied in the first data column queue1 is deleted, and the security data processing of the photoelectric switch sw4 is completed.
3. The channel-type terahertz security inspection data extraction and control method based on photoelectric switch control according to claim 1, characterized in that: When it is determined in step S100 that the trigger feedback signal originates from photoelectric switch sw3, the area where photoelectric switch sw3 is located is the first area area1 and the second area area2. Step S200: Query whether the first data column queue1 corresponding to the first area aer1 is occupied. If the first data column queue1 is occupied, it is determined that the current target person is in a forward movement from the first area area1 to the second area area2. If the first data column is empty, it is determined that the current target person is in a reverse movement from the second area to the first area. In step S300, if it is determined in step S200 that the current target person is in a forward-moving state, then the personal information code personID and all security inspection data bound to that personal information code personID currently occupying the first data column queue1 are transferred to the second data column queue2. At the same time, the extraction of front terahertz imaging data of the terahertz security scanner performing terahertz security inspection on the current target person begins, and the extraction of back terahertz imaging detection data of the terahertz security scanner performing terahertz security inspection on the current target person continues. The extracted front and back terahertz imaging data are stored in the second data column queue2 and linked to the personal information code personID. ID binding; if it is determined in step S200 that the current target person is in a reverse movement state, then query whether the second data column queue2 corresponding to the second area area2 is occupied. If the second data column queue2 is occupied at this time, then the personal information code personID and all security inspection data bound to the personal information code personID in the current second data column queue2 are transferred to the first data column queue1 and the security inspection data processing process of triggering photoelectric switch sw3 ends. If the second data column queue2 is not occupied at this time, then the security inspection data processing process of triggering photoelectric switch sw3 ends directly.
4. The channel-type terahertz security inspection data extraction and control method based on photoelectric switch control according to claim 1, characterized in that: When it is determined in step S100 that the trigger feedback signal originates from photoelectric switch sw2, the area to which photoelectric switch sw2 belongs is the second area area2 and the third area area3; Step S200: Query whether the second data column queue2 corresponding to the current second area aer2 is occupied. If the second data column queue2 is occupied, it is determined that the current target person is in a forward movement from the second area area2 to the third area area3. If the second data column queue is empty, it is determined that the current target person is in a reverse movement from the third area area3 to the second area area2. In step S300, if it is determined in step S200 that the current target person is moving forward, then the personal information code personID and all security inspection data bound to that personal information code personID in the current second data column queue2 are transferred to the third data column queue3. At the same time, the extraction of the back terahertz imaging data of the terahertz security scanner for the current target person is stopped. If it is determined in step S200 that the current target person is moving backward, then it is checked whether the third data column queue3 corresponding to the third area area3 is occupied. If the third data column queue3 is occupied at this time, then the personal information code personID and all security inspection data bound to that personal information code personID in the current third data column queue3 are transferred to the second data column queue2 and the security inspection data processing process of triggering photoelectric switch sw2 ends. If the third data column queue3 is not occupied at this time, then the security inspection data processing process of triggering photoelectric switch sw2 ends directly.
5. The channel-type terahertz security inspection data extraction and control method based on photoelectric switch control according to claim 1, characterized in that: When it is determined in step S100 that the trigger feedback signal originates from photoelectric switch sw1, the area to which photoelectric switch sw1 belongs is the third area area3; Step S200: Query whether the third data column queue3 corresponding to the current third area area3 is occupied. If the third data column queue3 is occupied at this time, it is determined that the current target person is in the forward movement state of leaving the third area from the exit; if the third data column queue3 is empty at this time, it is determined that the current target person is in the reverse movement state of entering the third area from the exit into the detection channel. In step S300, if it is determined in step S200 that the current target person is moving forward, then stop extracting the frontal terahertz imaging data of the terahertz security scanner for the current target person, end the terahertz security check process for the current target person, extract and integrate the personal information code personID and all security check data bound to the personal information code personID in the third data column queue3 and store them in the database, while setting the third data column queue3 to an empty state; if it is determined in step S200 that the current target person is moving backward, then generate a unique personal information code personID for the current backward-moving target person and put the personal information code personID into the third data column queue3, and end the security check data processing process of triggering photoelectric switch sw1.
6. The channel-type terahertz security inspection data extraction and control method based on photoelectric switch control according to claim 1, characterized in that: When any pair of photoelectric switches is triggered, the duration t of the trigger being blocked by the current target person is detected. If the time t ≥ 150 milliseconds, steps S100 to S300 are executed sequentially. If the time t < 150 milliseconds, the triggering of the photoelectric switch is determined to be invalid, and the security inspection data processing flow for the triggered photoelectric switch is directly terminated.