Security check control method and security check equipment
By adjusting the motor speed and detector integral time of the security inspection equipment based on the busyness of security inspection, using PID control and ray source tube current, the problems of low efficiency and waste of resources during peak periods are solved, and efficient and stable security inspection is achieved Imaging effect.
Patent Information
- Application Number
- CN202411057124.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-08
AI Technical Summary
Existing security inspection equipment is inefficient due to congestion during peak periods, low energy utilization due to waste of resources during idle periods, and unstable imaging effects when the equipment is regulating speed, which cannot meet the image stability requirements.
By adjusting the motor speed based on the busyness of security inspection, using PID control to suppress speed oscillation, and adjusting the integral time of the detector and the tube current of the radiation source, to achieve dynamic speed regulation and imaging effects of security inspection equipment.
It improves security inspection efficiency, alleviates peak congestion, reduces energy consumption, ensures the imaging quality and image stability of security inspection equipment during speed regulation, and avoids image offsets and brightness changes caused by speed changes.
Smart Images

Figure CN118915172A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to security inspection scenarios, and in particular to security inspection control methods and security inspection equipment. Background Art
[0002] At present, in order to ensure the safety of certain places, security inspection equipment such as security inspection machines are often installed at the entrances of the places to perform security inspections on security inspection objects such as people and / or objects to ensure the safety of the places.
[0003] However, in many places such as subways, security checks are often congested during peak hours due to the large number of security check objects, such as people and / or items being checked; while during idle time, security check objects, such as people and / or items being checked, are relatively small, and security inspection equipment still works according to the original mode, resulting in a waste of resources such as electricity consumption. Summary of the invention
[0004] The present application provides a security inspection control method and a security inspection device, so as to timely adjust the speed of the security inspection device as needed and ensure the imaging effect of the security inspection object during the speed adjustment process of the security inspection device.
[0005] The embodiment of the present application provides a security inspection control method, which is applied to security inspection equipment, including:
[0006] Determining the expected security inspection speed of the security inspection equipment based on the security inspection busyness;
[0007] Determining an expected rotation speed of a motor in the security inspection device based on the expected security inspection speed;
[0008] Based on the expected speed of the motor and the current speed of the motor, the target speed of the motor is determined by proportional integral differential (PID) control; the target speed is the ideal speed required by the motor adjusted by PID based on the error between the expected speed and the current speed, so as to suppress the speed oscillation caused by the adjustment of the speed of the motor; the current speed of the motor is adjusted to the target speed;
[0009] Based on the target rotation speed, the optimal integration time of the detector in the security inspection device is adjusted and the tube current of the ray source in the security inspection device is adjusted so that the imaging effect of the security inspection device meets the set image stabilization requirement.
[0010] The embodiment of the present application provides a security inspection device, including: a processor, a motor, a detector, and a radiation source;
[0011] Wherein, the processor executes the steps in the above method.
[0012] It can be seen from the above technical solutions that this embodiment adjusts the speed of the motor based on the busyness of the security inspection, which can speed up the bag passing speed of the security inspection equipment during the peak period, improve the security inspection efficiency, alleviate the congestion during the peak period of security inspection, and reduce the input of security inspection personnel during the peak period; and reduce the bag passing speed of the security inspection equipment during the idle time to reduce the power consumption of the security inspection equipment, improve the energy utilization rate of the security inspection equipment, and realize timely speed regulation of the security inspection equipment on demand;
[0013] Furthermore, the present embodiment first determines the expected security inspection speed of the security inspection equipment based on the security inspection busyness, and then determines the expected speed of the motor in the security inspection equipment based on the expected security inspection speed, and finally determines the target speed of the motor based on the expected speed of the motor and the current speed of the motor by using PID control, and adjusts the current speed of the motor to the target speed, rather than directly adjusting the current speed of the motor to the expected speed, which can avoid the oscillation of the motor speed;
[0014] Furthermore, this embodiment will timely adjust the optimal integration time of the detector in the security inspection equipment and the tube current of the radiation source in the security inspection equipment after the motor speed is adjusted, so as to avoid the imaging result of the security inspection equipment before and after the motor speed is adjusted not meeting the set image stability requirement, and ensure that the imaging effect of the security inspection equipment meets the set image stability requirement. For example, the image ratio of the security inspection image collected before and after the bag passing speed (that is, the security inspection speed) changes remains unchanged (or the difference is within the set ratio difference range), the pixel brightness in the security inspection image remains unchanged (or the difference is within the set brightness difference range), etc., so as to ensure that the security inspection equipment can smoothly output images, and there is no need to perform bag passing security inspection after the speed of the security inspection equipment is stable, thereby ensuring the imaging effect of the security inspection object during the speed regulation process of the security inspection equipment (equivalent to stepless speed regulation, ensuring the quality of the image during the speed regulation process, thereby ensuring the security inspection quality, and avoiding the situation where the security inspection quality does not meet the requirements and needs to be re-inspected). BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0016] Figure 1 A schematic diagram of the structure of the security inspection equipment provided in the embodiment of the present application;
[0017] Figure 2 A flow chart of the method provided in the embodiment of the present application;
[0018] Figure 3 A schematic diagram provided for an embodiment of the present application;
[0019] Figure 4 A schematic diagram of a motor closed-loop speed regulation circuit provided in an embodiment of the present application;
[0020] Figure 5 A structural diagram of a device provided in an embodiment of the present application;
[0021] Figure 6 A hardware structure diagram provided for an embodiment of the present application. DETAILED DESCRIPTION
[0022] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0023] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0024] In specific applications, security inspection equipment has two modes: constant speed mode and variable speed mode.
[0025] In the constant speed mode, the bag passing speed (i.e., the security inspection speed) of the security inspection device is constant. The bag passing speed (i.e., the security inspection speed) can be selected by the user in the UI interface according to actual needs. This embodiment does not describe the constant speed mode in detail, but focuses on the variable speed mode below.
[0026] In this embodiment, the speed change mode here is to adjust the bag passing speed (i.e., security inspection speed) according to the current busyness of the security inspection, and ensure that the imaging effect of the security inspection equipment meets the set image stability requirements before and after the bag passing speed (i.e., security inspection speed) changes. The set image stability requirements here are, for example, that the image ratio of the security inspection image collected before and after the bag passing speed (i.e., security inspection speed) changes remains unchanged (or the difference is within the set ratio difference range), the pixel brightness in the security inspection image remains unchanged (or the difference is within the set brightness difference range), etc., so as to ensure that the security inspection equipment can output images smoothly, and there is no need to perform bag passing security inspection after the speed of the security inspection equipment is stable.
[0027] In order to achieve the above-mentioned effects, the technical solution in the embodiment of the present application is further described in detail below with reference to the accompanying drawings.
[0028] The following first describes the security inspection equipment provided in the embodiment of the present application:
[0029] like Figure 1 As shown, the security inspection equipment mainly includes: a motor, a transmission component, a radiation source, a detector, and a processor.
[0030] As an embodiment, the motor here may be a motor of a transmission component, which is connected to the above-mentioned transmission component such as a conveyor belt through a roller.
[0031] The transmission components here, such as conveyor belts, are used to drive the inspected object to move so as to enter the interior of the security inspection equipment so that the inspected object can be scanned by X-rays to obtain a security inspection image of the inspected object.
[0032] The ray source here is used to generate X-rays. In this embodiment, the ray source may include at least an X-ray tube and an X-ray machine power supply. Among them, the X-ray tube is composed of a cathode filament (Cathod), an anode target (Anode) and a vacuum glass tube. The X-ray machine power supply can be divided into two parts: a high-voltage power supply and a filament power supply. Among them, the filament power supply is used to heat the cathode filament. The high-voltage output end of the high-voltage power supply is respectively applied to the cathode filament and the anode target to provide a high-voltage electric field. Through the sharply increased potential difference between the cathode filament and the anode target, the active electrons on the cathode filament are accelerated to flow to the anode target, forming a high-speed electron flow. When the high-speed electron flow flows to the anode target, it will hit the anode target, and energy conversion will occur at this time. About 1% of the energy forms X-rays and is emitted through the X-ray tube window, and the remaining more than 99% of the energy is converted into heat energy and dissipated by the heat dissipation facilities.
[0033] The detector, which can also be called a collection and transmission board, is equivalent to an X-ray receiving device. There is a scintillator on the detector, which is used to convert the received X-rays into electrical signals. X-rays have different penetration into packages of different materials, so the X-rays left on the detector are different, thus achieving an imaging effect.
[0034] A processor for executing Figure 2 The steps in the method shown are to ensure that the imaging effect of the security inspection equipment meets the set image stability requirements before and after the bag passing speed (ie, the security inspection speed) changes.
[0035] Below Figure 2 The process shown is described as follows:
[0036] See also Figure 2 , Figure 2 A flowchart of a method provided in an embodiment of the present application. The process is applied to the above-mentioned security inspection equipment (specifically, the above-mentioned processor).
[0037] like Figure 2 As shown, the process may include the following steps:
[0038] Step 201: Determine the expected security inspection speed of the security inspection equipment based on the security inspection busyness.
[0039] In a specific application, the number of bags (i.e., security inspection objects) passing through within a period of time determines the busyness of the security inspection. For example, the larger the number of bags passing through, the busier the security inspection state is, and conversely, the smaller the number of bags passing through, the easier the security inspection state is. Based on this, this embodiment can determine the expected security inspection speed of the security inspection equipment based on the number of bags passing through within a period of time. The period of time here can be, for example, a security inspection speed adjustment cycle such as 1 minute, etc., which is not specifically limited in this embodiment.
[0040] As another embodiment, the time information corresponding to each pair of light barrier events within a period of time also represents the busyness of the security inspection. Any pair of light barrier events here includes a first event and a second event. The first event refers to an event in which the light barrier sensor in the security inspection device blocks the security inspection object during security inspection. The second event refers to an event in which the light barrier sensor changes from being blocked by the security inspection object to being unblocked. The time information corresponding to any pair of light barrier events includes the duration from the first event to the second event in the light barrier event pair. The larger the time information corresponding to each pair of light barrier events, the busier the security inspection state is. Conversely, the smaller the time information corresponding to each pair of light barrier events, the easier the security inspection state is. Here, the light barrier sensor in the security inspection device can be used to detect whether a security inspection object has passed through the security inspection device based on whether it is blocked. Corresponding Figure 1 ,but Figure 1 The structure may further include a light barrier sensor.
[0041] Taking the time information corresponding to each light barrier event pair within the current security inspection speed adjustment period as an example, the expected security inspection speed of the security inspection equipment can be determined by the following formula:
[0042] Among them, v sec represents the expected security inspection speed of the security inspection equipment, T represents the current security inspection speed adjustment period, and t represents the time information corresponding to any light barrier event pair within the current security inspection speed adjustment period; It represents the sum of the time information corresponding to any light barrier event pair within the current security inspection speed adjustment cycle, v max Indicates the set maximum security inspection speed.
[0043] Step 202: Determine the expected rotation speed of the motor in the security inspection device based on the expected security inspection speed.
[0044] As an embodiment, the specific implementation of step 202 may include: based on the obtained proportionality coefficient k between the motor speed and the security inspection speed mot-sec , and the expected security inspection speed, determine the expected speed of the motor in the security inspection equipment. For details, please refer to the following formula: n mot =k mot-sec ·v sec ;
[0045] Among them, n motIndicates the desired speed of the motor.
[0046] As an embodiment, the above k mot-sec The corresponding relationship between the motor speed and the security inspection speed can be determined by testing the corresponding relationship between the motor speed and the security inspection speed for multiple times, or can be estimated based on experience. This embodiment is not specifically limited.
[0047] Step 203, based on the expected speed of the motor and the current speed of the motor, a target speed of the motor is determined by using proportional-integral-differential (PID) control; and the current speed of the motor is adjusted to the target speed.
[0048] That is to say, after the expected speed of the motor is determined, the current speed of the motor is not directly adjusted to the expected speed, but the ideal target speed is determined by means of PID control to suppress speed oscillation when the motor speed is adjusted.
[0049] In other words, the target speed here is the ideal speed required by the motor adjusted by PID based on the above-mentioned expected speed and the error of the current speed, so as to suppress the speed oscillation caused by the adjustment of the motor speed. The following will give an example to describe how to determine the target speed, which will not be repeated here.
[0050] In this embodiment, the current speed of the motor is read by the encoder in the security inspection device. Figure 1 ,but Figure 1 The structure shown needs to further add an encoder.
[0051] In this embodiment, the current speed of the motor is not determined by theoretical calculation, but is directly read by the encoder, so as to ensure that the actual speed of the motor is read, avoid the inconsistency between the theoretical calculated value and the actual value, and avoid the instantaneous speed error caused by different step response characteristics when the motor speed is adjusted, thereby preventing the deformation of the image of the security inspection object finally collected due to the instantaneous speed error of the motor.
[0052] In this embodiment, the current speed of the motor can be adjusted to the target speed by means of a frequency converter in the security inspection equipment. Figure 1 ,but Figure 1 The structure shown needs to further add a frequency converter.
[0053] The frequency converter here is used to change the motor speed by changing the motor working power frequency. Its speed control is accurate and can meet the needs of the security inspection machine transmission component. Based on this, in this embodiment, the working power frequency of the motor can be adjusted based on the above target speed by the frequency converter, so that the current speed of the motor is adjusted to the target speed.
[0054] Step 204, based on the target rotation speed, adjusting the optimal integration time of the detector in the security inspection device and adjusting the tube current of the radiation source in the security inspection device, so that the imaging effect of the security inspection device meets the set image stability requirement.
[0055] In specific implementation, when the above-mentioned bag passing speed (also known as security inspection speed) changes, the X-ray imaging will be stretched or compressed. When the bag passing speed (also known as security inspection speed) becomes faster, that is, the roller speed becomes faster, the amount of image data collected by the detector per unit time becomes less, and the final image will be compressed; and when the bag passing speed (also known as security inspection speed) becomes slower, that is, the roller speed becomes slower, the amount of image data collected by the detector per unit time becomes more, and the final image will be stretched, and the imaging ratio is unbalanced.
[0056] In order to avoid the situation where the image ratio of the security inspection image collected by the security inspection device before and after the bag passing speed (also known as the security inspection speed, the change of the motor speed will cause the bag passing speed (also known as the security inspection speed) to change) remains unchanged (or the difference is within the set ratio difference range), as an embodiment, when step 204 is specifically implemented, the optimal integration time of the detector in the security inspection device can be adjusted based on the above-mentioned target speed.
[0057] Here, the so-called optimal integration time of the detector is also the time used to collect a frame of image, which can be determined by the actual proportion of the target object being scanned and the proportion of the target object in the image obtained by collecting the image of the target object. For example, when the actual proportion of the target object is equal to the proportion of the target object in the target object image (or the difference is within the set range), the integration time of the detector is the optimal integration time. Figure 3 As shown in the figure, the optimal integration time of three different security inspection devices at different motor speeds (the time interval between lines is the optimal integration time).
[0058] In this embodiment, the optimal integration time is inversely proportional to the motor speed and is also inversely proportional to the security inspection speed. Figure 3 The motor speed and optimal integration time shown can determine the proportional coefficient k between the optimal integration time and motor speed under different security inspection equipment. i-sec , such as the first security equipment k i-sec The k value of the second security inspection equipment is about 833.5um. i-sec The k of the third security inspection equipment is about 1000um. i-sec About 1500um.
[0059] With the help of k i-sec In step 204, adjusting the optimal integration time of the detector in the security inspection device based on the target speed may include: based on the obtained optimal integration time and the proportionality coefficient k of the motor speed i-sec, and the target rotation speed, determine the target integration time of the detector in the security inspection device; adjust the optimal integration time of the detector in the security inspection device to the target integration time. As an embodiment, the target integration time can be expressed by the following formula: Among them, T i Indicates the target integration time.
[0060] By adjusting the detector's optimal integration time to match the roller speed (i.e., the bag passing speed or security inspection speed, which corresponds to the motor speed, the bag passing speed or security inspection speed also changes when the motor speed changes), it can be ensured that when the bag passing speed (i.e., the security inspection speed) becomes faster, i.e., the roller speed becomes faster, the detector's data collection speed also becomes faster, i.e., the time required to collect a frame of image data is shortened; when the bag passing speed (i.e., the security inspection speed) becomes slower, i.e., the roller speed becomes slower, the detector's data collection speed also becomes slower, i.e., the time required to collect a frame of image data increases. In other words, by adjusting the detector's optimal integration time (i.e., the time used to collect a frame of image) in the security inspection equipment to match the roller speed, it can be ensured that the proportion of the final image will not be out of balance.
[0061] It should be noted that the above adjustment of the optimal integration time can shorten the time required to acquire a frame of image data when the bag passing speed (i.e., security inspection speed) becomes faster, i.e., the roller speed becomes faster. However, the shortened acquisition time will lead to a reduction in the X-ray scanning volume per unit data, that is, the number of photons involved in the detection per unit data will decrease, and the image will become darker. In order to ensure the image brightness quality, this step 204 also needs to further adjust the tube current of the radiation source in the security inspection equipment so that the tube current matches the adjusted optimal integration, suppressing changes in the pixel brightness in the acquired image, and avoiding image darkening.
[0062] As an example, in step 204, adjusting the tube current of the radiation source in the security inspection device may include: determining a proportional coefficient k between the tube current and the integration time I-i ; Based on k I-i and the adjusted optimal integration time to determine the target current; and adjust the tube current of the radiation source in the security inspection equipment to the target current.
[0063] As an embodiment, the integration time is inversely proportional to the tube current. Based on this, the target current I can be expressed by the following formula: Among them, T i As described above, this is the optimal integration time after adjustment.
[0064] The following derivation of the above k I-i :
[0065] In this embodiment, the total X-ray dose D is determined by the ray source tube current and the integration time, and can be expressed, for example, by the following formula:
[0066] Where f is the coefficient for converting roentgen to grad. It represents the X-ray output at a distance of R0 from the target (in roentgen / milliampere.min (R / mA.min)), I represents the current of the ray source tube (mA), t represents the irradiation time (min), which is also the integration time mentioned above, R0 represents the distance from the target when the X-ray output is X0 (cm), and R represents the distance between the security inspection object (i.e. the actual irradiation point) and the target (cm).
[0067] Combined with the above description, it can be found that the above k I-i The coefficient f of converting roentgen into g, the X-ray output at a distance of R0 from the target When the X-ray output is X0, it is related to the distance R0 between the X-ray and the target, and the distance R between the inspection object and the target.
[0068] Based on the above description, in order to avoid shortening the acquisition time resulting in a reduction in the X-ray scanning volume per unit data, which affects the image brightness, this embodiment can increase the X-ray dose per unit time by increasing the ray source tube current, thereby ultimately ensuring the image brightness.
[0069] By adjusting the optimal integration time of the detector in the security inspection equipment and adjusting the tube current of the radiation source in the security inspection equipment, the imaging effect of the security inspection equipment can eventually meet the set image stability requirements. For example, the image ratio of the security inspection image collected before and after the bag passing speed (that is, the security inspection speed) changes remains unchanged (or the difference is within the set ratio difference range), the pixel brightness in the security inspection image remains unchanged (or the difference is within the set brightness difference range), etc., to ensure that the security inspection equipment can output images smoothly, and there is no need to perform bag passing security inspection after the speed of the security inspection equipment is stable.
[0070] So far, completed Figure 2 The process shown.
[0071] pass Figure 2 It can be seen from the process shown that this embodiment adjusts the speed of the motor based on the busyness of the security inspection, which can speed up the bag passing speed of the security inspection equipment during the peak period, improve the security inspection efficiency, alleviate the congestion during the peak period of security inspection, and reduce the input of security inspection personnel during the peak period; and reduce the bag passing speed of the security inspection equipment during the idle time to reduce the power consumption of the security inspection equipment, improve the energy utilization rate of the security inspection equipment, and realize timely speed adjustment of the security inspection equipment as needed;
[0072] Furthermore, the present embodiment first determines the expected security inspection speed of the security inspection equipment based on the security inspection busyness, and then determines the expected speed of the motor in the security inspection equipment based on the expected security inspection speed, and finally determines the target speed of the motor based on the expected speed of the motor and the current speed of the motor by using PID control, and adjusts the current speed of the motor to the target speed, rather than directly adjusting the current speed of the motor to the expected speed, which can avoid the oscillation of the motor speed;
[0073] Furthermore, this embodiment will timely adjust the optimal integration time of the detector in the security inspection equipment and the tube current of the radiation source in the security inspection equipment after the motor speed is adjusted, so as to avoid the imaging result of the security inspection equipment before and after the motor speed is adjusted not meeting the set image stability requirement, and ensure that the imaging effect of the security inspection equipment meets the set image stability requirement. For example, the image ratio of the security inspection image collected before and after the bag passing speed (that is, the security inspection speed) changes remains unchanged (or the difference is within the set ratio difference range), the pixel brightness in the security inspection image remains unchanged (or the difference is within the set brightness difference range), etc., so as to ensure that the security inspection equipment can smoothly output images, and there is no need to perform bag passing security inspection after the speed of the security inspection equipment is stable, thereby ensuring the imaging effect of the security inspection object during the speed regulation process of the security inspection equipment (equivalent to stepless speed regulation, ensuring the quality of the image during the speed regulation process, thereby ensuring the security inspection quality, and avoiding the situation where the security inspection quality does not meet the requirements and needs to be re-inspected).
[0074] The determination of the target speed in the embodiment of the present application is described below:
[0075] In this embodiment, in the above step 203, the target speed of the motor is determined based on the expected speed of the motor and the current speed of the motor and by using PID control. In specific implementation, the desired speed of the motor and the current speed of the motor are input into the PID control system in the security inspection device, so that the PID control system combines the ratio P, integral I, and differential D of the deviation between the expected speed of the motor and the current speed of the motor to form the target speed of the motor. Figure 1 ,but Figure 1 It is also necessary to further include a PID control system.
[0076] This embodiment can obtain better motor speed response through PID adjustment, so that the motor speed can be fast and the speed oscillation is reduced to reach the ideal speed.
[0077] In this embodiment, the PID control system is in the motor closed-loop speed control circuit. The motor closed-loop speed control circuit here is as follows: Figure 4 As shown, it is mainly determined by the connection relationship between the encoder, PID control system, inverter and motor.
[0078] like Figure 4As shown, in the motor closed-loop speed control circuit, the encoder is connected to the PID control system, and is used to input the read current speed of the motor into the PID control system, so that the PID control system determines the target speed of the motor based on the expected speed of the motor input externally and the current speed of the motor input by the encoder, and inputs the target speed of the motor into the frequency converter, so that the frequency converter adjusts the working power frequency of the motor based on the target speed, so that the current speed of the motor is adjusted to the target speed.
[0079] In this embodiment, the speed of the motor (such as an AC asynchronous motor) is determined by the working power frequency, the number of pole pairs, and the slip rate, and the relationship between them is as follows:
[0080] Where n represents the motor speed, f represents the working power frequency, p represents the number of pole pairs (i.e. the number of magnetic pole pairs of the motor); s represents the slip rate (which can be represented by the ratio of the difference to the stator, where the difference is the difference between the stator rotating magnetic field speed and the rotor speed). When the number of pole pairs p and the slip rate s remain unchanged, the working power frequency f and the motor speed are proportional. For example, n = k n-f f. Among them, k n-f Indicates the proportionality coefficient between motor speed and working power frequency.
[0081] In this embodiment, the PID control system can perform l adjustments based on the desired speed of the motor input externally and the current speed of the motor input by the encoder to determine the target speed of the motor. l can be set according to actual needs. Each adjustment will output a corresponding motor speed (speed based on the error).
[0082] The following formula represents the motor speed at each conditional output:
[0083] Where: n k represents the motor speed output for the kth time, and e represents the error between the motor speed to be adjusted for the kth time and the expected speed). When k is the first adjustment, the motor speed to be adjusted for the kth time is the current speed of the motor. When k is not the first adjustment, the motor speed to be adjusted for the kth time is the motor speed output for the k-1th adjustment. p Indicates the set proportional adjustment coefficient, k i Indicates the setting of integral adjustment coefficient, k d Indicates setting the differential adjustment coefficient.
[0084] As described above, in this embodiment, the motor speed can be adjusted to the desired position through a limited number of adjustments, i.e., 1 adjustment. The above formula is converted into a discrete form:
[0085] In the formula: k represents the number of adjustments, l represents the maximum number of adjustments, e krepresents the current adjustment error (i.e., the error between the motor speed to be adjusted for the kth time and the expected speed), e k-1 The k-1th adjustment error (i.e., the error between the motor speed to be adjusted for the k-1th time and the expected speed), if k is the first adjustment, then e k-1 It can be a specified value such as 0. The algorithm for adjusting the motor speed of the security inspection equipment can be obtained from the difference between the last and this time:
[0086]
[0087] According to the above algorithm, the PID control system can determine the target speed of the motor based on the expected speed of the motor and the current speed of the motor.
[0088] The method provided in the embodiment of the present application is described above, and the device provided in the embodiment of the present application is described below:
[0089] See also Figure 5 , Figure 5 This is a structural diagram of a device provided in an embodiment of the present application. The device is applied to security inspection equipment and includes:
[0090] A speed adjustment unit, used to determine the expected security inspection speed of the security inspection device based on the security inspection busyness; and, based on the expected security inspection speed, determine the expected speed of the motor in the security inspection device; and, based on the expected speed of the motor and the current speed of the motor, determine the target speed of the motor by proportional integral differential PID control; the target speed is the ideal speed required by the motor adjusted by PID based on the error between the expected speed and the current speed, so as to suppress the speed oscillation caused by the speed adjustment of the motor; and, adjust the current speed of the motor to the target speed;
[0091] The imaging control unit is used to adjust the optimal integration time of the detector in the security inspection device and the tube current of the ray source in the security inspection device based on the target rotation speed, so that the imaging effect of the security inspection device meets the set image stability requirements.
[0092] Optionally, determining the expected security inspection speed of the security inspection equipment based on the security inspection busyness includes:
[0093] The time information corresponding to each light barrier event pair in the current security inspection speed adjustment cycle is counted; any light barrier event pair includes a first event and a second event, the first event refers to an event in which a light barrier sensor in the security inspection device is blocked by the security inspection object during security inspection, and the second event refers to an event in which the light barrier sensor changes from being blocked by the security inspection object to being unblocked; the time information corresponding to any light barrier event pair includes the duration from the first event to the second event in the light barrier event pair; the time information corresponding to each light barrier event pair in the current security inspection speed adjustment cycle represents the busyness of security inspection;
[0094] Based on the time information corresponding to each light barrier event pair within the current security inspection speed adjustment period, the expected security inspection speed of the security inspection equipment is determined.
[0095] Optionally, the expected security inspection speed of the security inspection device is determined according to the following formula:
[0096] Among them, v sec represents the expected security inspection speed of the security inspection equipment, T represents the current security inspection speed adjustment period, and t represents the time information corresponding to any light barrier event pair within the current security inspection speed adjustment period; It represents the sum of the time information corresponding to any light barrier event pair within the current security inspection speed adjustment cycle, v max Indicates the set maximum security inspection speed.
[0097] Optionally, determining the expected rotational speed of the motor in the security inspection device based on the expected security inspection speed includes:
[0098] Based on the obtained proportionality coefficient k between the motor speed and the security inspection speed mot-sec , and the expected security inspection speed, determine the expected rotational speed of the motor in the security inspection equipment.
[0099] Optionally, adjusting the optimal integration time of the detector in the security inspection device based on the target rotation speed includes:
[0100] Determining a target integration time of a detector in the security inspection device based on the obtained optimal integration time and the proportionality coefficient of the motor speed, and the target speed;
[0101] The optimal integration time of the detector in the security inspection device is adjusted to the target integration time.
[0102] Optionally, the adjusting the tube current of the radiation source in the security inspection device includes:
[0103] Determine the proportionality coefficient k between tube current and integration time I-i ; The k I-i The coefficient f of converting roentgen into g, the X-ray output at a distance of R0 from the target When the X-ray output is X0, it is related to the distance R0 between the X-ray and the target, and the distance R between the inspection object and the target.
[0104] Based on the k I-i and the adjusted optimal integration time to determine the target current;
[0105] The tube current of the radiation source in the security inspection device is adjusted to the target current.
[0106] Optionally, adjusting the current rotation speed of the motor to the target rotation speed includes:
[0107] The frequency converter in the security inspection device adjusts the working power frequency of the motor based on the target speed so that the current speed of the motor is adjusted to the target speed.
[0108] Optionally, the current rotation speed of the motor is read by an encoder in the security inspection device.
[0109] Optionally, the determining the target speed of the motor based on the expected speed of the motor and the current speed of the motor and using proportional integral differential (PID) control comprises:
[0110] The expected speed of the motor and the current speed of the motor are input into the PID control system in the security inspection equipment, so that the PID control system forms the target speed of the motor by combining the ratio P, integral I and differential D of the deviation between the expected speed of the motor and the current speed of the motor.
[0111] Optionally, the PID control system is in a motor closed-loop speed control circuit; the motor closed-loop speed control circuit is composed of an encoder in the security inspection device, the PID control system, a frequency converter in the security inspection device, and the motor;
[0112] In the motor closed-loop speed control circuit, the encoder in the security inspection equipment is connected to the PID control system, and is used to input the read current speed of the motor into the PID control system, so that the PID control system determines the target speed of the motor based on the expected speed of the motor input externally and the current speed of the motor input by the encoder, and inputs the target speed of the motor into the frequency converter, so that the frequency converter adjusts the working power frequency of the motor based on the target speed, so that the current speed of the motor is adjusted to the target speed.
[0113] Based on the same application concept as the above method, the present application embodiment also provides Figure 5 The hardware structure of the device shown in FIG. Figure 6As shown, the hardware structure includes: a processor and a machine-readable storage medium. The machine-readable storage medium stores computer instructions, and when the computer instructions are executed by the processor, the method disclosed in the above example of this application can be implemented.
[0114] Based on the same application concept as the above method, an embodiment of the present application also provides a machine-readable storage medium, on which a number of computer instructions are stored. When the computer instructions are executed by a processor, the method disclosed in the above example of the present application can be implemented.
[0115] Exemplarily, the above-mentioned machine-readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.
[0116] The systems, devices, templates or units described in the above embodiments may be implemented by computers or entities, or by products with certain functions. A typical implementation device is a computer, and the specific form of the computer may be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver device, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0117] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0118] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0119] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0120] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0121] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0122] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A security control method, It is characterized in that The method is applied to security inspection equipment, including: Determining the expected security inspection speed of the security inspection equipment based on the security inspection busyness; Determining an expected rotation speed of a motor in the security inspection device based on the expected security inspection speed; Based on the expected speed of the motor and the current speed of the motor, the target speed of the motor is determined by proportional integral differential (PID) control; the target speed is the ideal speed required by the motor adjusted by PID based on the error between the expected speed and the current speed, so as to suppress the speed oscillation caused by the adjustment of the speed of the motor; the current speed of the motor is adjusted to the target speed; Based on the target rotation speed, the optimal integration time of the detector in the security inspection device is adjusted and the tube current of the ray source in the security inspection device is adjusted so that the imaging effect of the security inspection device meets the set image stabilization requirement.
2. The method according to claim 1, It is characterized in that The step of determining the expected security inspection speed of the security inspection equipment based on the security inspection busyness comprises: The time information corresponding to each light barrier event pair in the current security inspection speed adjustment cycle is counted; any light barrier event pair includes a first event and a second event, the first event refers to an event in which a light barrier sensor in the security inspection device is blocked by the security inspection object during security inspection, and the second event refers to an event in which the light barrier sensor changes from being blocked by the security inspection object to being unblocked; the time information corresponding to any light barrier event pair includes the duration from the first event to the second event in the light barrier event pair; the time information corresponding to each light barrier event pair in the current security inspection speed adjustment cycle represents the busyness of security inspection; Based on the time information corresponding to each light barrier event pair within the current security inspection speed adjustment period, the expected security inspection speed of the security inspection equipment is determined.
3. The method according to claim 2, It is characterized in that Determine the expected security inspection speed of the security inspection equipment according to the following formula: Among them, v sec represents the expected security inspection speed of the security inspection equipment, T represents the current security inspection speed adjustment period, and t represents the time information corresponding to any light barrier event pair within the current security inspection speed adjustment period; It represents the sum of the time information corresponding to any light barrier event pair within the current security inspection speed adjustment cycle, v max Indicates the set maximum security inspection speed.
4. The method according to claim 1, It is characterized in that The step of determining the expected rotation speed of the motor in the security inspection device based on the expected security inspection speed includes: Based on the obtained proportionality coefficient k between the motor speed and the security inspection speed mot-sec , and the expected security inspection speed, determine the expected rotational speed of the motor in the security inspection equipment.
5. The method according to claim 1, It is characterized in that The step of adjusting the optimal integration time of the detector in the security inspection device based on the target rotation speed comprises: Determining a target integration time of a detector in the security inspection device based on the obtained optimal integration time and the proportionality coefficient of the motor speed, and the target speed; The optimal integration time of the detector in the security inspection device is adjusted to the target integration time.
6. The method according to claim 1, It is characterized in that The step of adjusting the tube current of the radiation source in the security inspection device comprises: Determine the proportionality coefficient k between tube current and integration time I-i ; The k I-i The coefficient f for converting roentgen to g is R 0 X-ray output at The X-ray output is X 0 The distance R between the X-ray and the target 0 , and the distance R between the security inspection object and the target; Based on the k I-i and the adjusted optimal integration time to determine the target current; The tube current of the radiation source in the security inspection device is adjusted to the target current.
7. The method according to claim 1, It is characterized in that The step of adjusting the current rotation speed of the motor to the target rotation speed comprises: The frequency converter in the security inspection device adjusts the working power frequency of the motor based on the target speed so that the current speed of the motor is adjusted to the target speed.
8. The method according to claim 1, It is characterized in that The current rotation speed of the motor is read by an encoder in the security inspection device.
9. The method according to claim 1, It is characterized in that The method of determining the target speed of the motor based on the expected speed of the motor and the current speed of the motor and using proportional integral differential (PID) control comprises: The expected speed of the motor and the current speed of the motor are input into the PID control system in the security inspection equipment, so that the PID control system forms the target speed of the motor by combining the ratio P, integral I and differential D of the deviation between the expected speed of the motor and the current speed of the motor.
10. The method according to claim 1, It is characterized in that The PID control system is in a motor closed-loop speed control circuit; the motor closed-loop speed control circuit is composed of an encoder in the security inspection device, the PID control system, a frequency converter in the security inspection device, and the motor; In the motor closed-loop speed control circuit, the encoder in the security inspection equipment is connected to the PID control system, and is used to input the read current speed of the motor into the PID control system, so that the PID control system determines the target speed of the motor based on the expected speed of the motor input externally and the current speed of the motor input by the encoder, and inputs the target speed of the motor into the frequency converter, so that the frequency converter adjusts the working power frequency of the motor based on the target speed, so that the current speed of the motor is adjusted to the target speed.
11. A security inspection device, It is characterized in that The security inspection equipment includes: a processor, a motor, a detector, and a radiation source; The processor executes the steps in any method of claims 1 to 10.
12. The security inspection device according to claim 11, It is characterized in that The security inspection equipment also includes: a light barrier sensor; The processor determines the expected security inspection speed of the security inspection device based on the security inspection busyness, including: The time information corresponding to each light barrier event pair in the current security inspection speed adjustment cycle is counted; any light barrier event pair includes a first event and a second event, the first event refers to an event in which the light barrier sensor is blocked by the security inspection object during security inspection, and the second event refers to an event in which the light barrier sensor changes from being blocked by the security inspection object to being unblocked; the time information corresponding to any light barrier event pair includes continuous events from the first event to the second event in the light barrier event pair; the time information corresponding to each light barrier event pair in the current security inspection speed adjustment cycle represents the busyness of security inspection; Based on the time information corresponding to each light barrier event pair within the current security inspection speed adjustment period, the expected security inspection speed of the security inspection equipment is determined.
13. The security inspection device according to claim 11, It is characterized in that The security inspection equipment also includes: a frequency converter, an encoder, and a PID control system; The frequency converter is used to adjust the working power frequency of the motor so that the current rotation speed of the motor is adjusted to the target rotation speed; The encoder is used to read the current rotation speed of the motor; The target speed of the motor is formed by combining the ratio P, the integral I and the differential D of the deviation between the expected speed of the motor and the current speed of the motor by the PID control system based on the expected speed of the motor and the current speed of the motor after the expected speed of the motor and the current speed of the motor are input into the PID control system in the security inspection device; Among them, the encoder, the PID control system, the frequency converter and the motor constitute a motor closed-loop speed control circuit; in the motor closed-loop speed control circuit, the encoder in the security inspection equipment is connected to the PID control system, and is used to input the read current speed of the motor into the PID control system, so that the PID control system determines the target speed of the motor based on the expected speed of the motor input externally and the current speed of the motor input by the encoder, and inputs the target speed of the motor into the frequency converter, so that the frequency converter adjusts the working power frequency of the motor based on the target speed, so that the current speed of the motor is adjusted to the target speed.
