A detector conversion device and a sorting system
Patent Information
- Application Number
- CN202522332448.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-03
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2035-11-03
AI Technical Summary
然而,不同厂商研发设计的分拣系统之间存在差异,导致一个厂商的分拣系统只能使用特定的X射线探测器进行射线数据采集,极大地限制了分拣系统的推广应用
[0006]由以上技术方案可见,本申请实施例中,通过部署探测器转换装置,且探测器转换装置包括探测器转接板和驱动控制组件,这样,可以通过探测器转接板与各种类型的探测器连接,如探测器转接板包括探测器连接接口,探测器转接板通过探测器连接接口与探测器连接,进而有助于促进分拣系统的推广应用。
Smart Images

Figure CN224778689U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of foreign object detection, and in particular to a detector conversion device and sorting system. Background Technology
[0002] In fields such as food testing, foreign object detection, and ore sorting, spectral technologies such as visible light, infrared light, and X-rays can be used to image the object to be tested (such as food, products, or ores to be tested) to obtain a spectral image of the object to be tested. Then, the object to be tested is analyzed based on the spectral image to obtain the test results, such as the test results of the food to be tested.
[0003] After inspection, the items to be inspected need to be sorted or rejected. This involves separating qualified products that meet the requirements from unqualified products containing foreign objects or defects, thus removing the unqualified products from the qualified ones. However, differences exist between sorting systems developed and designed by different manufacturers. This means that a single manufacturer's sorting system can only use specific X-ray detectors for X-ray data acquisition, which greatly limits the widespread application of sorting systems. Utility Model Content
[0004] This application provides a detector conversion device, which includes a detector adapter board and a drive control component; the detector adapter board includes a detector connection interface and a first processing component; The detector adapter board is connected to the detector through the detector connection interface, the first processing component is connected to the detector through the detector connection interface, and the first processing component is connected to the drive control component. The drive control component includes an AND gate, a first logic device, a second logic device, a diode, and a PWM interface; the first end of the AND gate is connected to the first processing component, the second end of the AND gate is connected to the first power supply terminal, and the third end of the AND gate is connected to the first end of the first logic device. The first terminal of the second logic device is connected to the first power supply terminal, and the second terminal of the second logic device is connected to the first terminal of the diode; the second terminal of the diode is connected to the second terminal of the first logic device, and the second terminal of the diode is connected to the PWM interface.
[0005] This application provides a sorting system, which includes the detector switching device, detector, and rejection execution structure described above; wherein the detector is connected to the detector switching device, and the detector switching device is connected to the rejection execution structure through the PWM interface.
[0006] As can be seen from the above technical solutions, in the embodiments of this application, by deploying a detector conversion device, which includes a detector adapter board and a drive control component, it is possible to connect to various types of detectors through the detector adapter board. For example, the detector adapter board includes a detector connection interface, and the detector adapter board connects to the detector through the detector connection interface, thereby helping to promote the application of the sorting system.
[0007] Furthermore, the drive control component is connected to the actuators (such as rejection mechanisms) in the sorting system. For example, a function for data interaction between the drive control component and the actuator can be developed, enabling the drive control component to connect with the actuator. Since the detector adapter board is connected to the drive control component, various detectors and actuators are connected via a detector conversion device, allowing data interaction between the detectors and the detector conversion device, and between the detector conversion device and the actuator.
[0008] In the technical solution provided in this application embodiment, the detector adapter board supports data interaction with various types of detectors, and the detector adapter board can achieve hardware compatibility with various types of detectors, thereby improving the compatibility of the sorting system with various detectors. Attached Figure Description
[0009] Figure 1 This is a schematic diagram of the detector conversion device in one embodiment of this application; Figure 2 This is a schematic diagram of the sorting system in one embodiment of this application; Figure 3 This is a schematic diagram of the sorting system in one embodiment of this application; Figure 4 This is a schematic diagram of the target drive control component in one embodiment of this application; Figure 5 This is a schematic diagram of the sorting system in one embodiment of this application; Figure 6 This is a schematic diagram of the sorting system in one embodiment of this application; Figure 7 This is a schematic diagram of the sorting system in one embodiment of this application; Figure 8 This is a schematic diagram of the sorting system in one embodiment of this application. Detailed Implementation
[0010] This application provides a detector switching device, see [link to relevant documentation]. Figure 1The diagram shows a schematic of a detector conversion device, which may include a detector adapter board and a drive control component. The detector adapter board may include a detector connection interface and a first processing component. For example, the detector adapter board can be connected to the detector via the detector connection interface, and the first processing component can be connected to the detector via the detector connection interface, and the first processing component can also be connected to the drive control component.
[0011] For example, the drive control component may include an AND gate, a first logic device, a second logic device, a diode, and a PWM interface; the first terminal of the AND gate is connected to the first processing component, the second terminal of the AND gate is connected to the first power supply terminal, and the third terminal of the AND gate is connected to the first terminal of the first logic device. The first terminal of the second logic device is connected to the first power supply terminal, and the second terminal of the second logic device is connected to the first terminal of the diode; the second terminal of the diode is connected to the second terminal of the first logic device, and the second terminal of the diode is connected to the PWM interface.
[0012] For example, in the case where the detector includes a first type of detector: the detector connection interface may include a 485 interface and a 485 transceiver, and the first processing component may be connected to the first type of detector via the 485 transceiver and the 485 interface; and / or, the detector connection interface may include a 232 interface and a 232 transceiver, and the first processing component may be connected to the first type of detector via the 232 transceiver and the 232 interface.
[0013] For example, in the case where the detector includes a second type of detector: the detector connection interface may include a network card and a first network port, and the first processing component is connected to the second type of detector through the network card and the first network port.
[0014] For example, the drive control component can be located inside the detector adapter board, and the first processing component can be connected to the first end of the AND gate in the drive control component via an I / O interface. Alternatively, the drive control component can be located on a control board; the control board and the detector adapter board belong to different circuit boards, the detector adapter board includes a network card and a second network port, and the first processing component is connected to the control board through the network card and the second network port.
[0015] For example, the drive control component further includes a third logic device; when the second terminal of the second logic device is connected to the first terminal of the diode, the second terminal of the second logic device is connected to the first terminal of the third logic device, and the third terminal of the third logic device is connected to the first terminal of the diode. The second terminal of the second logic device is connected to a second power supply terminal; the third terminal of the first logic device is connected to ground. The first voltage signal provided by the second power supply terminal is greater than the second voltage signal provided by the first power supply terminal.
[0016] For example, the drive control component may also include an optocoupler; in the case where the first end of the AND gate is connected to the first processing component, the first end of the AND gate is connected to the first processing component via the optocoupler.
[0017] For example, the first logic device may include, but is not limited to, a MOSFET, the second logic device may include, but is not limited to, a first transistor, and the third logic device may include, but is not limited to, a second transistor.
[0018] For example, the input of an AND gate can be an alternating high-level signal and a low-level signal. When the input of the AND gate is a high-level signal, the AND gate can output a high-level signal; when the input of the AND gate is a low-level signal, the AND gate can output a low-level signal. Specifically, when the AND gate outputs a high-level signal, the MOSFET can be turned on, making the voltage at the input of the PWM interface 0, thus causing the PWM interface to output a low-level signal; when the AND gate outputs a low-level signal, the MOSFET can be turned off, making the voltage at the input of the PWM interface greater than 0, thus causing the PWM interface to output a high-level signal.
[0019] This application proposes a sorting system, which may include the aforementioned detector conversion device, detector, X-ray source, and rejection execution structure. The detector is connected to the detector conversion device, and the detector conversion device is connected to the rejection execution structure via a PWM interface. The detector and X-ray source work together to scan and detect the object to be inspected. The rejection execution structure is used to reject non-conforming items (e.g., items with foreign objects or defects) determined based on the scan detection results. For example, if the sorting system includes K rejection execution structures, the detector conversion device may include K drive control components, where K can be a positive integer, such as a positive integer greater than 1. Each of the K drive control components corresponds one-to-one with one of the K rejection execution structures. The specific implementation of the rejection execution structure can refer to existing structures, and this application does not specifically limit it.
[0020] As can be seen from the above technical solutions, in this embodiment, by deploying a detector conversion device, which includes a detector adapter board and a drive control component, various types of detectors (such as detectors from different manufacturers or different models) can be connected via the detector adapter board. For example, the detector adapter board includes a detector connection interface, through which it connects to the detector. Furthermore, the drive control component is connected to an actuator (such as a rejection execution structure). For instance, a function for data interaction with the execution structure can be developed on the drive control component, enabling the drive control component to connect with the actuator. Because the detector adapter board is connected to the drive control component, various detectors and actuators are connected through the detector conversion device, allowing data interaction between the detectors and the detector conversion device, and between the detector conversion device and the actuator.
[0021] In the technical solution provided in this application embodiment, the detector adapter board supports data interaction with various types of detectors, and the detector adapter board can achieve hardware compatibility with various types of detectors, thereby improving the compatibility of the sorting system with various detectors.
[0022] The technical solutions described above in the embodiments of this application will be explained below in conjunction with specific application scenarios.
[0023] This application proposes a sorting system in its embodiments; see [link to relevant documentation]. Figure 2 The diagram shows the structure of a sorting system, which includes a detector, a processor, a detector adapter board, and a rejection execution structure. The system also includes an X-ray source (not shown). The detector acquires image data and sends it to the detector adapter board. The adapter board then sends the image data to the processor, which analyzes the data to obtain rejection information and sends this information back to the adapter board. Based on this rejection information, the adapter board sends a rejection command to the rejection execution structure, enabling it to reject foreign objects. Clearly, by introducing a detector adapter board into the sorting system, and connecting it to the detector via a detector connection interface, the detector can transfer its acquired image data to the adapter board; that is, any type of detector can be connected to the adapter board. The adapter board is designed to interact with the rejection execution structure, such as by developing a drive control component connected to the rejection execution structure. This component sends rejection commands to the structure, causing it to reject foreign objects.
[0024] Implementation method 1 of the sorting system including the detector switching device provided in this application embodiment: See Figure 3The diagram shown illustrates the structure of a sorting system. This system may include: a first type of detector, a processor, a detector adapter plate, a drive control component, and a rejection execution structure. The detector adapter plate and the drive control component can form a detector conversion device; that is, the detector conversion device may include the detector adapter plate and the drive control component. In this sorting system, the drive control component may be located inside the detector adapter plate. Furthermore, Figure 2 The detector in the diagram can be a Type I detector, and Type I detectors connect to the detector adapter board via a 485 interface and / or a 232 interface. Therefore, Type I detectors support sending column identifiers of data columns to the detector adapter board via the 485 interface and / or a 232 interface. The following describes how... Figure 3 The diagram shown illustrates this sorting system.
[0025] For the first type of detector, which is a real-time image acquisition system, the first type of detector uses FPGA (Field Programmable Gate Array) to acquire high-speed signals, thereby acquiring multiple data columns corresponding to the object to be detected. There is no restriction on the type of the first type of detector, as long as it can acquire multiple data columns.
[0026] Taking an X-ray detector as an example, during the detection of an object, the object can be placed on a transmission device (such as a conveyor belt). As the object moves with the transmission device, the X-ray source can scan and detect the object transmitted by the transmission device. In this way, the first type of detector can receive the X-ray signal for the object and output a data column based on the X-ray signal.
[0027] Because the X-ray source continuously emits X-ray signals, the Type I detector continuously receives these signals. Therefore, the Type I detector can output multiple data columns. In summary, the Type I detector can acquire multiple data columns corresponding to the object being detected, and each data column can be understood as a column of image data in an X-ray image.
[0028] For example, when the first type of detector collects multiple data columns, each data column can have a corresponding column identifier, and this column identifier indicates the order of the data column among all data columns. For instance, for the first data column collected by the first type of detector, this data column has a corresponding column identifier 1, indicating that the order of the data column is 1; for the second data column collected by the first type of detector, this data column has a corresponding column identifier 2, indicating that the order of the data column is 2; for the third data column collected by the first type of detector, this data column has a corresponding column identifier 3, indicating that the order of the data column is 3, and so on.
[0029] For example, when the first type of detector collects a data column, it can directly send the currently collected data column to the processor. For instance, when the first type of detector collects the first data column, it can send the first data column (carrying column identifier 1) to the processor; when the first type of detector collects the second data column, it can send the second data column (carrying column identifier 2) to the processor, and so on.
[0030] For example, when the first type of detector collects a data column, it can send the column identifier of the currently collected data column to the detector adapter board, which then stores the column identifier. For instance, when collecting the first data column, the first type of detector can send column identifier 1 ("1") to the detector adapter board, which stores it. When collecting the second data column, it can send column identifier 2 ("2") to the detector adapter board, which stores it, and so on. The detector adapter board can continuously store column identifiers. When storing the latest column identifier, the detector adapter board can either retain previously stored column identifiers or delete previously stored column identifiers, keeping only the latest one.
[0031] For example, see Figure 3 As shown, the detector adapter board may include a detector connection interface and a first processing component. The detector adapter board can be connected to the detector through the detector connection interface, and the first processing component can be connected to the detector through the detector connection interface and can also be connected to the drive control component. Figure 3 In this example, we will use a microprocessor as the first processing component.
[0032] In the case where the detector includes a first type of detector, the detector connection interface includes a 485 interface and a 485 transceiver, and the detector adapter board (first processing component) is connected to the first type of detector through the 485 transceiver and the 485 interface; and / or, the detector connection interface includes a 232 interface and a 232 transceiver, and the detector adapter board (first processing component) is connected to the first type of detector through the 232 transceiver and the 232 interface.
[0033] For example, the detector adapter board may include an RS485 interface and an RS485 transceiver. The adapter board can connect to a type-1 detector via the RS485 interface, allowing the type-1 detector to send a column identifier to the adapter board's RS485 transceiver, which the adapter board then receives. Alternatively, the detector adapter board may include an RS232 interface and an RS232 transceiver. The adapter board can also connect to a type-1 detector via the RS232 interface, allowing the type-1 detector to send a column identifier to the adapter board's RS232 transceiver, which the adapter board then receives.
[0034] See Figure 3 As shown, the detector adapter board may include a first processing component (i.e., a microprocessor, which can be a SOC or an MCU; the type of microprocessor is not limited, as long as it can perform processing functions). Additionally, a processor located outside the detector adapter board can be referred to as a second processing component. The first processing component may include a Universal Asynchronous Receiver / Transmitter (UART). Thus, the first processing component receives the column identifier from an RS485 transceiver or an RS232 transceiver via the UART and stores the column identifier.
[0035] The processor (i.e., the second processing component) can be a non-real-time system or a real-time system. The processor can be an industrial control computer, an embedded device, etc. The processor is used to run image recognition algorithms and to implement human-computer interaction functions. There are no restrictions on the type of processor.
[0036] For example, the processor can acquire multiple data columns and determine the first data column containing the foreign object from among them. For instance, when the processor receives the first data column from the first type of detector, it determines whether a foreign object exists in that data column. If a foreign object is present, this data column is designated as the first data column; otherwise, it is not designated as the first data column. When the processor receives the second data column from the first type of detector, it determines whether a foreign object is present in that data column. If a foreign object is present, this data column is designated as the first data column; otherwise, it is not designated as the first data column, and so on.
[0037] To determine whether foreign objects exist in a data column, the processor can analyze the data column using an image recognition algorithm. This analysis process is not limited; the goal is simply to determine whether foreign objects are present. In other words, the image recognition algorithm is used to analyze whether foreign objects exist in the data column. Foreign objects in the data column can be substances that affect the identification of the object to be detected.
[0038] For example, after the processor determines the presence of a foreign object in the first data column, it can also determine the target location of the foreign object based on the first data column. The first data column may include N pixel positions arranged vertically, where N is greater than or equal to 1. The target location of the foreign object represents the pixel position (such as one or more pixel positions) where the foreign object is located.
[0039] Regarding how to determine the location of the foreign object target, the processor can analyze the first data column using an image recognition algorithm. There are no restrictions on this analysis process; the goal is to determine the location of the foreign object target in the first data column. In other words, the image recognition algorithm is an algorithm used to analyze the location of the foreign object target in the first data column.
[0040] For example, assuming the foreign object occupies the pixel positions of rows 3-6 in the first data column, the target position of the foreign object can be 3-6, that is, the pixel positions of rows 3-6 in the first data column are the target positions of the foreign object.
[0041] For example, the processor can send rejection information to the detector adapter board. For instance, after the processor determines that there is a foreign object in the first data column, it immediately sends rejection information to the detector adapter board. The rejection information may include the first column identifier of the first data column and the location of the foreign object target in the first data column.
[0042] It should be noted that the processor takes a certain amount of time to execute the image recognition algorithm. That is, it takes a certain amount of time to determine the first data column containing the foreign object and the location of the foreign object target in the first data column. During this time, the first type of detector will continuously collect the data column corresponding to the object to be detected.
[0043] For example, see Figure 3 As shown, the detector adapter board may include a network port and a network interface card (NIC). The detector adapter board can connect to the processor via the network port. The processor then sends rejection information (such as the first column identifier and the location of the foreign object) to the NIC of the detector adapter board via the network port, and the detector adapter board receives this rejection information via the NIC. For example, the first processing component of the detector adapter board may include a GMAC (Gigabit Media Access Controller). This first processing component can then receive the rejection information from the NIC via the GMAC, thereby obtaining the first column identifier of the first data column and the location of the foreign object in the first data column.
[0044] For the network port of the detector adapter board, the network port is an adaptive network port, which can be compatible with the network port of the processor. For example, if the processor has a 10G network port, the network port of the detector adapter board is a 10G network port; if the processor has a 100G network port, the network port of the detector adapter board is a 10G0 network port; if the processor has a 1000G network port, the network port of the detector adapter board is a 1000G network port. There are no restrictions on this.
[0045] For the network interface card (NIC) of the detector adapter board, the NIC can be a gigabit PHY SWITCH (Ethernet physical layer) or other types of NICs. There are no restrictions on the type of NIC; the selection should be based on actual needs.
[0046] For the detector adapter board, based on the first type of detector and processor, an additional detector adapter board is introduced. By transferring the image data of the first type of detector to this detector adapter board, and developing a data interaction function with the rejection execution structure on the detector adapter board, the first type of detector can be connected to the sorting system, and the function of rejecting non-conforming items can be realized based on the data collected by the first type of detector.
[0047] For example, when the detector adapter receives the first column identifier (the location of the foreign object target in the first data column) of the first data column, it records the time of receiving the first column identifier as the first moment, and determines the second column identifier of the second data column collected by the first type of detector at the first moment. For instance, each time the first type of detector collects a data column, the detector adapter can store the column identifier of the data column currently collected by the first type of detector. In this way, when the detector adapter receives the first column identifier at the first moment, it can determine the last column identifier stored by the detector adapter as the second column identifier.
[0048] For example, when the first type of detector collects the first data column, the detector adapter plate stores column identifier 1; when the first type of detector collects the second data column, the detector adapter plate stores column identifier 2, and so on. Assume the processor determines that the second data column is the first data column containing a foreign object and sends column identifier 2 to the detector adapter plate. When the detector adapter plate receives column identifier 2 at the first moment, it determines the second column identifier as the last column identifier stored in its own memory, such as column identifier 5.
[0049] For example, in a foreign object rejection application for food inspection, the detector adapter determines the second moment when the foreign object moves to the rejection position based on the second column of identifiers and the first column of identifiers. For instance, this second moment can be determined using the following steps: (It should be understood that the following logic also applies to the rejection logic for non-conforming items in other scenarios.) Step S11: Determine the difference between the second column identifier and the first column identifier.
[0050] For example, if the second column identifier is column identifier 5 and the first column identifier is column identifier 2, then the difference between the second column identifier and the first column identifier is 3, which is the difference between the two column identifiers.
[0051] Step S12: Determine the sampling period corresponding to the first type of detector. The sampling period represents the time it takes for the first type of detector to collect one data column, that is, the time interval between two adjacent data columns.
[0052] For example, assuming the sampling period is T, when the first type of detector outputs the first data column at time t1, it outputs the second data column at time t1+T, the second data column at time t1+2T, and so on.
[0053] Step S13: Based on the difference between the second column identifier and the first column identifier, the sampling period, and the moving speed of the object to be detected, determine the first moving distance corresponding to the object to be detected. For example, the first moving distance represents the distance between the sampling start position and the current position of the object to be detected at the first moment.
[0054] For example, a type-1 detector is fixed at a certain position and collects multiple data columns from the object being detected at that fixed position. When the object being detected moves to the starting position of the data collection, the type-1 detector collects the data columns from the object. Obviously, the starting position of the data collection indicates the location where the data columns are collected; that is, the type-1 detector collects the data columns from the starting position of the data collection and continuously outputs the data columns from the starting position of the data collection.
[0055] Assuming the object to be detected is at the initial acquisition position at time t0, the first type of detector outputs the first data column of the object to be detected at time t0, and the object to be detected is at position X at time t1 (i.e. the current position of the object to be detected at the first moment). The first moving distance represents the distance between the initial acquisition position and position X.
[0056] Assuming the sampling period is T, and the difference between the second column identifier and the first column identifier is 3, then the time taken for the object to be detected to move from the starting position to position X is 3T. Assuming the moving speed of the object to be detected (i.e., the moving speed of the transmission device) is V, then the distance the object to be detected moves from the starting position to position X is 3T*V. Thus, the first moving distance can be 3T*V.
[0057] Step S14: Determine the second moving distance corresponding to the object to be detected based on the first moving distance. The second moving distance represents the distance between the current position of the object to be detected at the first moment and the foreign object removal position.
[0058] For example, when the removal execution structure performs a foreign object removal operation at a certain position Y, this position Y can be used as the foreign object removal position. Clearly, both the foreign object removal position and the data acquisition start position are known positions, and the distance between the foreign object removal position and the data acquisition start position can be pre-configured. Based on this, and using the distance between the foreign object removal position and the data acquisition start position, and the distance between the data acquisition start position and the current position of the object to be detected at the first moment, the distance between the current position of the object to be detected at the first moment and the foreign object removal position can be determined, i.e., the second movement distance corresponding to the object to be detected can be obtained.
[0059] Step S15: Based on the distance between the current position and the foreign object removal position, and the moving speed of the object to be detected, determine the time taken for the object to be detected to move to the foreign object removal position.
[0060] For example, if the distance the object to be detected travels from its current position to the foreign object removal position is the second travel distance, then, given the known travel speed of the object to be detected (i.e. the travel speed of the transmission device), the time it takes for the object to travel from its current position to the foreign object removal position can be determined.
[0061] Step S16: Determine the second time based on the first time and the time consumed. For example, the sum of the first time and the time consumed is used as the second time, that is, the object to be detected moves to the foreign object removal position at the second time.
[0062] In summary, the detector adapter board can determine the second moment when the foreign object moves to the foreign object removal position. For example, the detector adapter board may include a first processing component. When the first processing component receives the first column identifier at the first moment, it determines the second column identifier of the second data column collected by the detector at the first moment; based on the second column identifier and the first column identifier, it determines the second moment when the foreign object moves to the foreign object removal position.
[0063] For example, after determining the second moment, the detector adapter sends a rejection command to the rejection execution structure at the second moment. For instance, the sorting system may include multiple rejection execution structures. The detector adapter selects the target rejection execution structure corresponding to the location of the foreign object from among the multiple rejection execution structures, and the detector adapter can send a rejection command to the target rejection execution structure at the second moment.
[0064] For example, for each data column comprising N vertically arranged pixel positions, the sorting system can include N rejection execution structures, each corresponding one-to-one with one of the N pixel positions. For instance, rejection execution structure 1 corresponds to the first vertically arranged pixel position, rejection execution structure 2 corresponds to the second vertically arranged pixel position, and so on. Alternatively, the sorting system can include M rejection execution structures, where M is less than N. One rejection execution structure corresponds one-to-one with multiple pixel positions. For instance, rejection execution structure 1 corresponds to the first four vertically arranged pixels, rejection execution structure 2 corresponds to the fifth to eighth vertically arranged pixels, and so on. In summary, for each pixel position, there will be one rejection execution structure. Different pixel positions may correspond to the same rejection execution structure, or different pixel positions may correspond to different rejection execution structures.
[0065] Based on this, the foreign object target location represents the pixel location where the foreign object is located (taking one pixel location as an example). Therefore, the detector adapter board can select the removal execution structure corresponding to the foreign object target location from all removal execution structures, and record this selected removal execution structure as the target removal execution structure.
[0066] For example, the detector adapter board can send a rejection command to the target rejection execution structure at a second moment. After receiving the rejection command, the target rejection execution structure performs a rejection operation on the foreign object, that is, it performs a rejection operation on the foreign object at the target location. For instance, since the target rejection execution structure corresponds to the target location of the foreign object, and the foreign object is located at this target location, the target rejection execution structure can perform a rejection operation on the foreign object at the target location when performing the rejection operation.
[0067] For example, the target rejection execution structure can be an air blowing device, that is, a device that removes foreign objects by blowing air. After receiving the rejection command, the target rejection execution structure can remove the foreign object at the target location by blowing air onto it. In this scenario, the sorting system can include multiple air blowing devices, with each air blowing device acting as a rejection execution structure.
[0068] In one possible implementation, see Figure 3 As shown, the detector adapter board may also include multiple drive control components ( Figure 3 Taking a single drive control component (also known as a drive control circuit) as an example, multiple drive control components correspond one-to-one with multiple rejection execution structures. For instance, assuming there are M rejection execution structures, the detector adapter board includes M drive control components.
[0069] The first processing component can also select a target drive control component corresponding to the foreign object target location from multiple drive control components. For example, the microprocessor selects a target removal execution structure corresponding to the foreign object target location from all removal execution structures, and uses the drive control component corresponding to the target removal execution structure as the target drive control component corresponding to the foreign object target location. For example, if removal execution structure 1 is used as the target removal execution structure, then the drive control component 1 corresponding to removal execution structure 1 is the target drive control component.
[0070] Based on this, the first processing component sends a culling command to the target drive control component at the second time step (e.g., via an I / O interface). The target drive control component generates a PWM (Pulse-Width Modulation) signal based on the culling command and sends the PWM signal to the target culling execution structure corresponding to the target drive control component. In this way, the PWM signal can be used as the culling command. For example, if the target drive control component is only connected to one target culling execution structure, it directly sends the PWM signal to the target culling execution structure.
[0071] Upon receiving the PWM signal, the target rejection execution structure performs a rejection operation on the foreign object at the target location based on the PWM signal. For example, the PWM signal consists of alternating high-level and low-level signals. When the PWM signal is high, the target rejection execution structure blows air onto the target location of the foreign object; when the PWM signal is low, the target rejection execution structure stops blowing air onto the target location of the foreign object. This process is repeated multiple times until the PWM signal ends, completing the rejection operation for the non-conforming item.
[0072] In one possible implementation, the target drive control component has a PWM signal generation function. The structure of the target drive control component is not limited, as long as it can generate a PWM signal.
[0073] For example, for any drive control component, the drive control component may include an AND gate, a first logic device, a second logic device, a diode, and a PWM interface; the first terminal of the AND gate is connected to a first processing component (e.g., the first processing component can be connected to the first terminal of the AND gate in the drive control component via an I / O interface), the second terminal of the AND gate is connected to a first power supply terminal, and the third terminal of the AND gate is connected to the first terminal of the first logic device. The first terminal of the second logic device is connected to the first power supply terminal, and the second terminal of the second logic device is connected to the first terminal of the diode; the second terminal of the diode is connected to the second terminal of the first logic device, and the second terminal of the diode is connected to the PWM interface. Furthermore, the drive control component also includes a third logic device; when the second terminal of the second logic device is connected to the first terminal of the diode, the second terminal of the second logic device is connected to the first terminal of the third logic device, and the third terminal of the third logic device is connected to the first terminal of the diode. The second terminal of the second logic device is connected to a second power supply terminal; the third terminal of the first logic device is connected to ground. Wherein, the first voltage signal provided by the second power supply terminal is greater than the second voltage signal provided by the first power supply terminal.
[0074] In addition, the drive control component may also include an optocoupler; when the first end of the AND gate is connected to the first processing component, the first end of the AND gate is connected to the first processing component via the optocoupler.
[0075] For example, the first logic device may include, but is not limited to, a MOSFET, the second logic device may include, but is not limited to, a first transistor, and the third logic device may include, but is not limited to, a second transistor.
[0076] For example, see Figure 4 The diagram shown is a schematic representation of the drive control component. The drive control component may include an AND gate, a first transistor Q1, a second transistor Q2, a diode D1, a MOSFET, and a PWM interface. Optionally, the drive control component may also include an optocoupler.
[0077] The optocoupler receives the rejection command sent by the first processing component through the IO interface. The optocoupler isolates the rejection command and outputs the isolated rejection command to the AND gate.
[0078] The AND gate's inputs are a rejection command and a first voltage signal (i.e., a DC voltage signal, such as a 5V DC voltage signal), and its output is a MOSFET. When the first processing component sends a rejection command to the drive control component, the rejection command includes alternating high-level and low-level signals; that is, the AND gate's inputs are alternating high-level and low-level signals. Thus, when the rejection command is a high-level signal, the AND gate outputs a high-level signal, and when the rejection command is a low-level signal, the AND gate outputs a low-level signal.
[0079] The input terminal of the first transistor Q1 is a first voltage signal, and the input terminal of the second transistor Q2 is the output terminal of the first transistor and a second voltage signal (i.e., a DC voltage signal, such as a 24V DC voltage signal). Thus, if the power supply outputs a 5V DC voltage signal, the first transistor Q1 conducts; if the power supply does not output a 5V DC voltage signal, the first transistor Q1 is off. If the power supply outputs both a 5V and a 24V DC voltage signal, the second transistor Q2 conducts; if the power supply does not output a 5V DC voltage signal and / or does not output a 24V DC voltage signal, the second transistor Q2 is off.
[0080] The input terminal of diode D1 (such as a Schottky diode) is the output terminal of transistor Q2. If transistor Q2 is turned on, diode D1 is broken down, and the voltage at the output terminal of diode D1 is the same as the voltage at the output terminal of transistor Q2. If transistor Q2 is turned off, diode D1 is not broken down.
[0081] See also Figure 4 As shown, the first terminal of the MOSFET is connected to the output terminal of the AND gate, the second terminal of the MOSFET is connected to the output terminal of the diode D1, and the third terminal of the MOSFET is connected to ground.
[0082] Based on this, when the AND gate outputs a high-level signal (i.e., a 5V high-level signal), the MOSFET turns on. When the MOSFET is on, the voltage at its second terminal is pulled to ground. Therefore, the voltage at the output of diode D1 is 0. Since the voltage at the input of the PWM interface is the voltage at the output of diode D1, the voltage at the input of the PWM interface is also 0. Furthermore, when the AND gate outputs a low-level signal (i.e., a 0V low-level signal), the MOSFET turns off. When the MOSFET is off, the voltage at the output of diode D1 is the voltage at the output of the second transistor Q2, meaning the voltage at the output of diode D1 is greater than 0. Therefore, the voltage at the input of the PWM interface is greater than 0.
[0083] When the voltage at the input terminal of the PWM interface is 0, the PWM interface can output a low-level signal; when the voltage at the input terminal of the PWM interface is greater than 0, the PWM interface can output a high-level signal.
[0084] In summary, the PWM interface can output alternating high-level and low-level signals, meaning that the PWM interface can output PWM signals to the target elimination execution structure.
[0085] Implementation method 2 of the sorting system including the detector switching device provided in the embodiments of this application: See Figure 5 The diagram shows a schematic of a sorting system. This system may include: an X-ray source (not shown), a second type of detector, a processor, a detector adapter plate, a drive control assembly, and a rejection execution structure. The detector adapter plate and the drive control assembly can form a detector switching device, and the drive control assembly can be located inside the detector adapter plate. Furthermore, Figure 2 The detectors in this system can be of type II, and type II detectors are connected to the detector adapter board via a network port and a network card. Therefore, type II detectors send data columns to the detector adapter board via a network port and a network card. The following describes this sorting system.
[0086] For the second type of detector, the second type of detector can collect multiple data columns corresponding to the object to be detected. Each data column can have a corresponding column identifier, and the column identifier indicates the order of the data column in all data columns. The process of the second type of detector collecting data columns is the same as that of the first type of detector, and will not be described again here.
[0087] For example, each time the second type of detector acquires a data column, it sends the currently acquired data column to the detector adapter board. The detector adapter board receives the currently acquired data column from the second type of detector, stores the column identifier of the data column, and then sends the data column to the processor (second processing component).
[0088] For example, when the second type of detector acquires the first data column, it sends the first data column (carrying column identifier 1) to the detector adapter board, and so on. When the detector adapter board receives the first data column, it stores the column identifier 1 of that data column and sends the first data column to the processor, and so on.
[0089] For the processor, multiple data columns (from the detector adapter board) are acquired, and the first data column containing the foreign object is determined from these columns. Based on the first data column, the location of the foreign object is determined. The first data column includes N vertically arranged pixel positions, and the foreign object target position represents the pixel position where the foreign object is located.
[0090] Furthermore, the processor can send rejection information to the detector adapter board, which may include the identifier of the first column of the first data column and the location of the foreign object target in the first data column.
[0091] For example, if the detector includes a second type of detector, the detector adapter board includes a detector connection interface, and the detector connection interface may include a network card and a first network port. In this way, the first processing component of the detector adapter board is connected to the second type of detector through the network card and the first network port.
[0092] For the detector adapter board, when it receives the first column identifier of the first data column, it records the time of receiving the first column identifier as the first moment and determines the second column identifier of the second data column acquired by the second type of detector at the first moment. For example, each time the second type of detector acquires a data column, the detector adapter board stores the column identifier of the data column currently acquired by the second type of detector. Thus, when the first column identifier is received at the first moment, the last column identifier stored on this detector adapter board is determined as the second column identifier.
[0093] The detector adapter board determines the second moment when the foreign object moves to the foreign object removal position based on the second column of identifiers and the first column of identifiers. The detector adapter board selects the target removal execution structure corresponding to the target foreign object position from multiple removal execution structures and sends a removal command to the target removal execution structure at the second moment. For example, the detector adapter board can select the target drive control component corresponding to the target foreign object position from multiple drive control components and send a removal command to the target drive control component at the second moment. The target drive control component generates a PWM signal based on the removal command and sends the PWM signal to the target removal execution structure corresponding to the target drive control component. In this way, the PWM signal can be used as the removal command. After receiving the PWM signal, the target removal execution structure performs a removal operation on the foreign object at the target foreign object position based on the PWM signal.
[0094] The implementation method 2 of the sorting system is similar to the implementation method 1 of the sorting system. The difference is that when the second type of detector collects a data column, it sends the currently collected data column to the detector adapter board instead of sending the data column to the processor. The similarities will not be repeated here.
[0095] Implementation method 3 of the sorting system including the detector switching device provided in the embodiments of this application: See Figure 3 The diagram shown is a structural schematic of a sorting system. The sorting system may include: an X-ray source (not shown in the figure), a first-type detector, a processor, a detector adapter board, a drive control component, and a rejection execution structure. The detector adapter board and the drive control component can be combined to form a detector conversion device. The following describes this sorting system.
[0096] For the first type of detector, it can collect multiple data columns corresponding to the object to be detected. Each data column can have a corresponding column identifier, and this column identifier indicates the order of the data column among all data columns. The first type of detector can directly send the currently collected data column to the processor each time it collects a data column. It should be noted that, compared to implementation method 1 of the sorting system, in implementation method 3 of the sorting system, the first type of detector does not send the column identifier of the currently collected data column to the detector adapter board each time it collects a data column. Instead, it only sends the column identifier of the currently collected data column to the detector adapter board when it receives a column identifier retrieval request from the detector adapter board.
[0097] For the processor, the processor acquires multiple data columns and determines the first data column from which the foreign object is located. The processor can also determine the target location of the foreign object based on the first data column, which includes N vertically arranged pixel positions, where the target location of the foreign object represents the pixel position where the foreign object is located.
[0098] Furthermore, the processor can send rejection information to the detector adapter board, which may include the identifier of the first column of the first data column and the location of the foreign object target in the first data column.
[0099] For the detector adapter board, upon receiving the first column identifier of the first data column, the adapter board records the reception time of the first column identifier as the first moment and determines the second column identifier of the second data column acquired by the first type of detector at the first moment. For example, when the adapter board receives the first column identifier at the first moment, it sends a column identifier acquisition request to the first type of detector. When the first type of detector receives the column identifier acquisition request at the first moment, it sends the column identifier of the currently acquired data column to the adapter board. When the adapter board receives the column identifier of the currently acquired data column from the first type of detector, it can use that column identifier as the second column identifier of the second data column.
[0100] After obtaining the second column identifier of the second data column, the detector adapter board determines the second moment when the non-conforming item moves to the rejection position based on the second column identifier and the first column identifier. The detector adapter board selects the target rejection execution structure corresponding to the target location from multiple rejection execution structures and sends a rejection command to the target rejection execution structure at the second moment. For example, the detector adapter board selects the target drive control component corresponding to the target location from multiple drive control components and sends a rejection command to the target drive control component at the second moment. The target drive control component generates a PWM signal based on the rejection command and sends the PWM signal to the target rejection execution structure corresponding to the target drive control component. In this way, the PWM signal can be used as the rejection command. The target rejection execution structure performs the rejection operation on the non-conforming item at the target location based on the PWM signal.
[0101] The implementation method 3 of the sorting system is similar to the implementation method 1 of the sorting system. The difference is that the first type of detector does not send the column identifier of the currently collected data column to the detector adapter board when collecting data column each time. Instead, it sends the column identifier of the currently collected data column to the detector adapter board only when it receives the column identifier acquisition request sent by the detector adapter board. The similarities will not be repeated here.
[0102] This application provides a sorting system, see [link to relevant documentation]. Figure 6 The diagram shows a structural schematic of a sorting system, which may include: an X-ray source (not shown in the figure), a detector, a processor, a detector adapter board, a rejection control board (the rejection control board is connected to the detector adapter board), and a rejection execution structure.
[0103] The detector can acquire image data and send it to the detector adapter board. The adapter board then sends the image data to the processor. The processor analyzes the image data to obtain rejection information and sends this information back to the adapter board. Based on this rejection information, the adapter board determines rejection parameters. For example, the rejection information includes the column identifier of the first data column and the location of the foreign object target, while the rejection parameters include the foreign object target location. The adapter board sends the rejection parameters to the rejection control board, which then sends a rejection command to the rejection execution structure to perform the rejection operation.
[0104] Implementation method 4 of the sorting system including the detector switching device provided in this application embodiment: See Figure 7 The diagram shows a structural schematic of a sorting system. This system may include: an X-ray source (not shown), a first-type detector, a processor, a detector adapter board, a drive control component, and a rejection execution structure. The detector adapter board and the drive control component can form a detector conversion device, meaning the detector conversion device can include both the detector adapter board and the drive control component. In this sorting system, the drive control component is located on a control board. The control board and the detector adapter board belong to different circuit boards. The detector adapter board includes a network interface card (NIC) and a second network port, and the first processing component is connected to the control board through the NIC and the second network port. In this example, the control board is a rejection control board, thus the drive control component is located on the rejection control board.
[0105] For the first type of detector, it can collect multiple data columns corresponding to the object to be detected. Each data column can have a corresponding column identifier, and this column identifier indicates the order of the data column among all data columns. The first type of detector can directly send the currently collected data column to the processor each time it collects a data column. Alternatively, the first type of detector can send the column identifier of the currently collected data column to the detector adapter board, which stores the column identifier.
[0106] For the processor, it can acquire multiple data columns, determine the first data column containing the foreign object, and determine the target location of the foreign object based on the first data column. This target location can represent the pixel location of the foreign object. The processor sends rejection information to the detector adapter board, which may include the identifier of the first column of the first data column and the target location of the foreign object in the first data column.
[0107] For the detector adapter board, upon receiving the first column identifier of the first data column, the adapter board records the reception time of the first column identifier as the first moment, and determines the second column identifier of the second data column collected by the first type of detector at the first moment. Based on the second column identifier and the first column identifier, the adapter board can determine the second moment when the non-conforming item moves to the rejection position. At the second moment, the adapter board sends a rejection command to the rejection control board, such as sending a rejection command to the drive control component of the rejection control board.
[0108] The implementation method 4 of the sorting system is similar to the implementation method 1 (or the implementation method 3) of the sorting system, except that the drive control component is not located on the detector adapter board, but on the rejection control board. In this way, the detector adapter board sends rejection commands to the drive control component of the rejection control board, and the rejection control board sends PWM signals to the target rejection execution structure through the drive control component, so that the target rejection execution structure can perform rejection operations on foreign objects. This will be explained below.
[0109] For the rejection control board, a real-time system such as a PLC (Programmable Logic Controller) or embedded device can be used. When the rejection control board receives a rejection command (carrying the target location of the foreign object), it can parse the target location of the foreign object from the rejection command, select the target drive control component corresponding to the target location from multiple drive control components, and send the rejection command to the target drive control component. The target drive control component then sends a PWM signal to the target rejection execution structure.
[0110] Upon receiving the PWM signal, the target rejection execution structure removes foreign objects from the target location. For example, the target rejection execution structure can be an air blowing device, which blows air onto the target location to remove the foreign object. The PWM signal consists of alternating high and low level signals. When the signal is high, the target rejection execution structure blows air onto the target location; when the signal is low, it does not blow air onto the target location.
[0111] Regarding the removal of the drive control components from the control board, the following can be used: Figure 4 The structure of the drive control component shown can also be other structures, as long as it can generate PWM signals; there are no restrictions on this.
[0112] Implementation method 5 of the sorting system including the detector switching device provided in this application embodiment: See Figure 8The diagram shows a structural schematic of a sorting system. This system may include: an X-ray source (not shown), a second type of detector, a processor, a detector adapter board, a drive control component, and a rejection execution structure. The detector adapter board and the drive control component can form a detector conversion device. In this sorting system, the drive control component is located on a control board. The control board and the detector adapter board belong to different circuit boards. The detector adapter board includes a network card and a second network port, and the first processing component is connected to the control board through the network card and the second network port. In this example, the control board is a rejection control board, thus the drive control component is located on the rejection control board.
[0113] For the second type of detector, it can collect multiple data columns corresponding to the object being detected. Each data column can have a corresponding column identifier, and this column identifier indicates the order of the data column among all data columns. Each time the second type of detector collects a data column, it can send the currently collected data column to the detector adapter board. The detector adapter board receives the currently collected data column from the second type of detector, stores the column identifier of that data column, and then sends the data column to the processor.
[0114] For the processor, the processor acquires multiple data columns, determines the first data column containing the foreign object from the multiple data columns, determines the location of the foreign object target based on the first data column, and sends rejection information to the detector adapter board. The rejection information includes the identifier of the first column of the first data column and the location of the foreign object target in the first data column.
[0115] For the detector adapter board, when the detector adapter board receives the first column identifier of the first data column at the first moment, it determines the second column identifier of the second data column collected by the second type of detector at the first moment. Based on the second column identifier and the first column identifier, it determines the second moment when the non-conforming item moves to the rejection position. At the second moment, it sends a rejection command to the rejection control board. The rejection command may include the location of the foreign object target.
[0116] For the rejection control board, when it receives a rejection command, it parses the target location of the foreign object from the rejection command, selects the target drive control component corresponding to the target location of the foreign object from multiple drive control components, sends the rejection command to the target drive control component, and the target drive control component sends a PWM signal to the target rejection execution structure so that the target rejection execution structure can perform the rejection operation on the foreign object.
[0117] As can be seen from the above technical solutions, in this embodiment, a detector adapter board is deployed in the sorting system. Data collected by the detectors is transferred to the adapter board, and a function for data interaction with the rejection execution structure is developed on the adapter board. This allows any type of detector to connect to the adapter board, regardless of the detector type. Even if a detector does not support data interaction with the rejection execution structure, data interaction between the detector and the rejection execution structure can still be achieved through the adapter board and the drive control component. That is, the detector connects to the adapter board, and the drive control component connects to the rejection execution structure. The functionality of the detector adapter board and the drive control component can be merged, simplifying the system design. Hardware compatibility between the detector adapter board and various types of detectors is achieved, thereby facilitating the widespread application of the sorting system.
[0118] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A detector conversion device, characterized in that, The detector conversion device includes a detector adapter board and a drive control component; the detector adapter board includes a detector connection interface and a first processing component; The detector adapter board is connected to the detector through the detector connection interface, the first processing component is connected to the detector through the detector connection interface, and the first processing component is connected to the drive control component. The drive control component includes an AND gate, a first logic device, a second logic device, a diode, and a PWM interface; the first end of the AND gate is connected to the first processing component, the second end of the AND gate is connected to the first power supply terminal, and the third end of the AND gate is connected to the first end of the first logic device. The first terminal of the second logic device is connected to the first power supply terminal, and the second terminal of the second logic device is connected to the first terminal of the diode; the second terminal of the diode is connected to the second terminal of the first logic device, and the second terminal of the diode is connected to the PWM interface.
2. The detector conversion device according to claim 1, characterized in that, In the case where the detector includes a Type I detector: The detector connection interface includes a 485 interface and a 485 transceiver, and the first processing component is connected to the first type of detector through the 485 transceiver and the 485 interface; and / or, The detector connection interface includes a 232 interface and a 232 transceiver. The first processing component is connected to the first type of detector through the 232 transceiver and the 232 interface.
3. The detector conversion device according to claim 1 or 2, characterized in that, In the case where the detector includes a Type II detector: The detector connection interface includes a network card and a first network port, and the first processing component is connected to the second type of detector through the network card and the first network port.
4. The detector conversion device according to claim 1, characterized in that, The drive control component is located inside the detector adapter plate, and the first processing component is connected to the first end of the AND gate in the drive control component through an IO interface; Alternatively, the drive control component is located on the control board; wherein the control board and the detector adapter board belong to different circuit boards, the detector adapter board includes a network card and a second network port, and the first processing component is connected to the control board through the network card and the second network port.
5. The detector conversion device according to claim 1, characterized in that, The drive control component further includes a third logic device; when the second terminal of the second logic device is connected to the first terminal of the diode, the second terminal of the second logic device is connected to the first terminal of the third logic device, and the third terminal of the third logic device is connected to the first terminal of the diode. The second terminal of the second logic device is connected to the second power supply terminal; wherein the first voltage signal provided by the second power supply terminal is greater than the second voltage signal provided by the first power supply terminal.
6. The detector conversion device according to claim 1 or 4, characterized in that, The drive control component further includes an optocoupler; when the first end of the AND gate is connected to the first processing component, the first end of the AND gate is connected to the first processing component through the optocoupler.
7. The detector conversion device according to claim 1 or 5, characterized in that, The third terminal of the first logic device is connected to ground; wherein the first logic device includes a MOS transistor, and the second logic device includes a first transistor; If the drive control component further includes a third logic device, the third logic device includes a second transistor.
8. The detector conversion device according to claim 7, characterized in that, The input of the AND gate is an alternating high-level signal and a low-level signal; When the input of the AND gate is a high-level signal, the AND gate outputs a high-level signal; when the input of the AND gate is a low-level signal, the AND gate outputs a low-level signal. When the AND gate outputs a high-level signal, the MOS transistor is turned on, and the voltage at the input terminal of the PWM interface is 0, so that the PWM interface outputs a low-level signal. When the AND gate outputs a low-level signal, the MOS transistor is turned off, and the voltage at the input terminal of the PWM interface is greater than 0, so that the PWM interface outputs a high-level signal.
9. A sorting system, characterized in that, The sorting system includes a detector conversion device, a detector, an X-ray source, and a rejection execution structure as described in any one of claims 1-8; wherein the detector is connected to the detector conversion device, and the detector conversion device is connected to the rejection execution structure through the PWM interface.
10. The sorting system according to claim 9, characterized in that, If the sorting system includes K rejection execution structures, the detector conversion device includes K drive control components, where K is a positive integer; wherein, the K drive control components correspond one-to-one with the K rejection execution structures.