An image display method, device, and electronic device

By injecting preset injection into the strip image of the security check machine, the problem of delay in image display of existing security check machines is solved, and a more efficient security check process is achieved.

CN119741395BActive Publication Date: 2025-07-01HANGZHOU RAYIN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510237933.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-07-01
Estimated Expiration
2045-02-28

AI Technical Summary

Technical Problem

When existing security check machines use TIP technology, there is a delay in image display, which affects security check efficiency.

Method used

By judging the length and width of the preset injection in the strip image of the object to be detected, the part of the preset injection image is directly injected into the current strip image and displayed in real time.

Benefits of technology

It shortens the imaging delay of the security check machine and improves security check efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119741395B_ABST
    Figure CN119741395B_ABST
Patent Text Reader

Abstract

An image display method, apparatus, and electronic device provided by an embodiment of the present application are applied to the field of image processing technology. By applying the method of the embodiment of the present application, the length injection condition and width injection condition of a preset injectant are judged for the current strip image of the object to be detected. When the injection condition is satisfied, a part of the preset injectant image is directly injected into the current strip image, and the strip image injected with the part of the preset injectant image is directly displayed. Compared with waiting to obtain the entire X-ray scan image of the object to be detected and then performing image injection, the method of the embodiment of the present application can shorten the imaging delay of the security inspection machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular, to an image display method, apparatus, and electronic device. Background Art

[0002] An X-ray security inspection machine is an electronic device that uses X-ray scanning imaging technology to perform security inspections on objects to be detected, including parts such as an X-ray source, a collimator, a detector, a conveying mechanism (rollers), and an image processing unit, and is widely used in places such as airports, railway stations, subway stations, bus stations, and large event venues.

[0003] In related technologies, an X-ray security inspection machine can randomly inject dangerous goods images into valid positions of the X-ray scanning images of objects to be detected through TIP (Threat Image Projection) technology, so that security inspection personnel can judge the safety of the objects to be detected by observing the generated images. Specifically, in the prior art, a whole X-ray scanning image of an object to be detected is collected, and then a dangerous goods image is injected into the X-ray scanning image and displayed. Although this method can implement TIP, there will be a certain delay in the images displayed on the X-ray security inspection machine. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide an image display method, apparatus, and electronic device to shorten the imaging delay of an X-ray security inspection machine. The specific technical solutions are as follows:

[0005] In the first aspect of the embodiments of this application, an image display method is provided, and the method includes:

[0006] When the strip image of the object to be detected meets the length injection condition of a preset injection object, obtain a preset injection object image;

[0007] Obtain the pixel width of the object to be detected in the current strip image;

[0008] When the pixel width meets the width injection condition of the preset injection object, determine the injection position of at least part of the preset injection object image;

[0009] According to the injection position, inject at least part of the preset injection object image into the strip image;

[0010] Display the strip image into which at least part of the preset injection object image is injected.

[0011] In a possible implementation manner, the preset injection object image is a single-view image, and the method further includes:

[0012] Obtain the remaining pixel length of the object to be detected, where the remaining pixel length is the pixel length of the object to be detected in each strip image from the current strip image to the tail strip image, and the tail strip image is the last strip image of the object to be detected;

[0013] Obtain the image length of the preset injectant image. When the image length of the preset injectant image is less than the remaining pixel length, determine that the strip image of the object to be detected meets the length injection condition of the preset injectant.

[0014] In a possible implementation manner, when the pixel width meets the width injection condition of the preset injectant, determine the injection position of at least part of the preset injectant image; including:

[0015] When the pixel width meets the width injection condition of the preset injectant, determine whether the previous set of strip images of the current strip image has been injected with the preset injectant;

[0016] If the previous set of strip images of the current strip image has not been injected with the preset injectant, obtain the starting strip number of the injection of the preset injectant image;

[0017] Determine whether the strip indicated by the starting strip number belongs to the current strip image;

[0018] When the strip indicated by the starting strip number belongs to the current strip image, determine the starting row of the injection of the preset injectant image in the current strip image to obtain the first starting row; according to the first starting row, determine the first insertion position of the preset injectant image in the current strip image.

[0019] In a possible implementation manner, the preset injectant image includes a first perspective image and a second perspective image. The first perspective image is the image of the preset injectant under the first perspective, and the second perspective image is the image of the preset injectant under the second perspective;

[0020] The obtaining of the pixel width of the object to be detected in the current strip image includes:

[0021] Obtain the first pixel width of the object to be detected in the current strip image under the first perspective and the second pixel width of the object to be detected in the current strip image under the second perspective;

[0022] The determining of the injection position of at least part of the preset injectant image when the pixel width meets the width injection condition of the preset injectant includes:

[0023] When the first pixel width satisfies the width injection condition of the first perspective image and the second pixel width satisfies the width injection condition of the second perspective image, determine the injection positions of the first perspective image and the second perspective image respectively;

[0024] Injecting at least part of the preset injection object image into the strip image according to the injection position includes:

[0025] Inject at least part of the first perspective image into the strip image under the first perspective and inject at least part of the second perspective image into the strip image under the second perspective according to the injection position.

[0026] In a possible implementation, the method further includes:

[0027] Obtain the remaining pixel length of the object to be detected, where the remaining pixel length is the pixel length of the object to be detected in each strip image from the current strip image to the tail strip image, and the tail strip image is the last strip image of the object to be detected;

[0028] Obtain the image lengths of the first perspective image and the second perspective image. When the image lengths of the first perspective image and the second perspective image are both less than the remaining pixel length, determine that the strip image of the object to be detected satisfies the length injection condition of the preset injection object.

[0029] In a possible implementation, when the first pixel width satisfies the width injection condition of the first perspective image and the second pixel width satisfies the width injection condition of the second perspective image, determining the injection positions of the first perspective image and the second perspective image respectively includes:

[0030] When the first pixel width satisfies the width injection condition of the first perspective image and the second pixel width satisfies the width injection condition of the second perspective image, determine whether the previous set of strip images of the current strip image has been injected with a preset injection object;

[0031] If the previous set of strip images of the current strip image has not been injected with a preset injection object, obtain the starting strip numbers for injecting the first perspective image and the second perspective image;

[0032] Determine whether the strip indicated by the starting strip number belongs to the current strip image;

[0033] In the case where the strip represented by the starting strip number belongs to the current strip image, determine the fourth starting row where the first perspective image is injected into the current strip image from the first perspective, and determine the fifth starting row where the object to be detected is injected into the current strip image from the second perspective;

[0034] According to the fourth starting row, determine the fourth insertion position of the first perspective image in the current strip image from the first perspective; according to the fifth starting row, determine the fifth insertion position of the second perspective image in the current strip image from the second perspective.

[0035] In a possible implementation manner, after the step of obtaining the image lengths of the first perspective image and the second perspective image, and determining that the strip image of the object to be detected meets the length injection condition of the preset injectant when the image lengths of the first perspective image and the second perspective image are both less than the remaining pixel length, the method further includes:

[0036] According to the remaining pixel length, the image lengths of the first perspective image and the second perspective image, determine the starting strip numbers into which the first perspective image and the second perspective image are injected;

[0037] The step of obtaining the first pixel width of the object to be detected in the current strip image from the first perspective and the second pixel width of the object to be detected in the current strip image from the second perspective includes:

[0038] When the current strip image is the strip image to which the strip represented by the starting strip number belongs, or the strip image after the strip image to which the strip represented by the starting strip number belongs, obtain the first pixel width of the object to be detected in the current strip image from the first perspective and the second pixel width of the object to be detected in the current strip image from the second perspective.

[0039] In a possible implementation manner, after the step of determining whether the previous set of strip images of the current strip image has been injected with a preset injectant, the method further includes:

[0040] If the previous set of strip images of the current strip image has been injected with a preset injectant, according to the insertion position and the inserted part of the first perspective image in the previous set of strip images, determine the eighth insertion position of the first perspective image in the current strip image from the first perspective and the eighth inserted part of the first perspective image; according to the insertion position and the inserted part of the second perspective image in the previous set of strip images, determine the ninth insertion position of the second perspective image in the current strip image from the second perspective and the ninth inserted part of the second perspective image;

[0041] Injecting at least part of the first - perspective image into the strip image under the first perspective and injecting at least part of the second - perspective image into the strip image under the second perspective according to the injection position includes: injecting the eighth insertion part into the eighth insertion position in the current strip image of the first perspective to obtain an eighth strip image; injecting the ninth insertion part into the ninth insertion position in the current strip image of the second perspective to obtain a ninth strip image;

[0042] Displaying the strip image showing at least part of the preset injection object image includes: displaying the eighth strip image and the ninth strip image.

[0043] In a possible implementation manner, after the step of determining whether the strip indicated by the starting strip number belongs to the current strip image, the method further includes:

[0044] In the case where the strip indicated by the starting strip number does not belong to the current strip image, no injection of the preset injection object is performed on the current strip image, and the current strip image of the first perspective and the current strip image of the second perspective are displayed;

[0045] Obtaining the next group of strip images as the current strip image, and returning to execute the steps: obtaining the first pixel width of the object to be detected in the current strip image under the first perspective and the second pixel width of the object to be detected in the current strip image under the second perspective.

[0046] In a possible implementation manner, the method further includes:

[0047] In the case where the previous group of strip images of the current strip image has not been injected with the preset injection object and the first pixel width does not meet the width injection condition of the first - perspective image; or, in the case where the previous group of strip images of the current strip image has not been injected with the preset injection object and the second pixel width meets the width injection condition of the second - perspective image, return to execute the step: obtaining the remaining pixel length of the object to be detected.

[0048] In a possible implementation manner, the method further includes:

[0049] In the case where the previous group of strip images of the current strip image has been injected with the preset injection object and the first pixel width does not meet the width injection condition of the first - perspective image; or, in the case where the previous group of strip images of the current strip image has been injected with the preset injection object and the second pixel width meets the width injection condition of the second - perspective image, terminate the injection of the preset injection object this time;

[0050] Display a pop-up window indicating that the injection of the preset injectant fails. In response to the user's operation on the pop-up window, refresh and replace the displayed strip image including the preset injectant with a strip image without the preset injectant injected.

[0051] In a possible implementation manner, the starting strip number is calculated through the following steps:

[0052] ;

[0053] Wherein, the TipStripeStart represents the starting strip number, the TipHeightStart represents the random starting injection position in the length direction, and the StripeHeight represents the pixel length of the current strip image.

[0054] The TipHeightStar is calculated through the following formula:

[0055] ;

[0056] Wherein, the rand() represents a random function, the PackHeightRemain represents the remaining pixel length of the object to be detected, and the TipHeight is the pixel length of the preset injectant image.

[0057] In a possible implementation manner, the starting row is calculated through the following steps:

[0058] ;

[0059] Wherein, TipWidthStart represents the starting row, rand() is a random function, TipWidth is the pixel width of the preset injectant image to be injected, TipWidthDown represents the lower boundary of the object to be detected in the current strip image, and TipWidthUp represents the upper boundary of the object to be detected in the current strip image.

[0060] In the second aspect of the embodiments of the present application, an image display device is provided, and the device includes:

[0061] A preset injectant image acquisition module, configured to acquire a preset injectant image when the strip image of the object to be detected meets the length injection condition of the preset injectant;

[0062] A pixel width acquisition module, configured to acquire the pixel width of the object to be detected in the current strip image;

[0063] An injection position determination module, configured to determine the injection position of at least part of the preset injectant image when the pixel width meets the width injection condition of the preset injectant;

[0064] An image injection module, configured to inject at least part of the preset injection object image into the strip image according to the injection position;

[0065] An image display module, configured to display the strip image into which at least part of the preset injection object image is injected.

[0066] Another aspect of the embodiments of the present application provides an electronic device, including:

[0067] A memory, configured to store a computer program;

[0068] A processor, configured to implement the image display method described in any one of the above when executing the program stored in the memory.

[0069] Another aspect of the embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the image display method described in any one of the above is implemented.

[0070] The embodiments of the present application further provide a computer program product containing instructions, which when running on a computer, causes the computer to execute the image display method described in any one of the above.

[0071] Advantages of the embodiments of the present application:

[0072] An image display method, device and electronic device provided by the embodiments of the present application judge the length injection condition and width injection condition of the preset injection object for the current strip image of the object to be detected. When the injection condition is met, part of the preset injection object image is directly injected into the current strip image, and the strip image injected with part of the preset injection object image is directly displayed. Compared with waiting to obtain the entire X-ray scan image of the object to be detected and then performing image injection, the method of the embodiments of the present application can shorten the imaging delay of the security inspection machine.

[0073] Of course, implementing any product or method of the present application does not necessarily require achieving all the above advantages at the same time. Description of the Drawings

[0074] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other embodiments can also be obtained according to these drawings.

[0075] Figure 1 It is a schematic diagram of the scanning principle of the security inspection machine provided by the embodiments of the present application;

[0076] Figure 2 It is a flowchart of an image display method provided by an embodiment of the present application;

[0077] Figure 3 It is a schematic diagram for determining the length and width directions provided by an embodiment of the present application;

[0078] Figure 4a It is the first schematic diagram of dangerous goods image injection provided by an embodiment of the present application;

[0079] Figure 4b It is the second schematic diagram of dangerous goods image injection provided by an embodiment of the present application;

[0080] Figure 4c It is the third schematic diagram of dangerous goods image injection provided by an embodiment of the present application;

[0081] Figure 5a It is a schematic diagram of the security inspection image display interface from the first perspective provided by an embodiment of the present application;

[0082] Figure 5b It is a schematic diagram of the security inspection image display interface from the second perspective provided by an embodiment of the present application;

[0083] Figure 6 It is another flowchart of the image display method provided by an embodiment of the present application;

[0084] Figure 7 It is a flowchart of image injection provided by an embodiment of the present application;

[0085] Figure 8 It is another flowchart of image injection provided by an embodiment of the present application;

[0086] Figure 9 It is a schematic structural diagram of an image display device provided by an embodiment of the present application;

[0087] Figure 10 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0088] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art based on the present application belong to the scope of protection of the present application.

[0089] To understand the technical solutions of the present application more clearly, the following is a brief introduction to the security inspection machine first:

[0090] An X-ray security inspection machine is an electronic device that uses X-ray scanning imaging technology to conduct security inspections on objects to be detected. It is widely used in places such as airports, railway stations, subway stations, bus stations, and large event venues. It includes at least a control system, a hardware system, and a data processing system. The control system is mainly used to detect whether an object to be detected enters the security inspection device; the hardware system is mainly used to emit and receive rays, and drive the object to be detected to move in the security inspection device at a certain speed; the data processing system is mainly used to continue processing the collected image data to obtain an image to be displayed, so as to facilitate subsequent display of the image to be displayed on the screen.

[0091] Among them, the control system includes but is not limited to a sensing unit and a control unit. The sensing unit can detect whether an object to be detected enters the security inspection device, and the control unit can control the motion transmission mechanism on the security inspection machine to start working or work at a certain speed. The hardware system includes but is not limited to a radiation source, a detector, and a motion transmission mechanism. The radiation source includes but is not limited to devices such as X-ray machines, accelerators, and radioactive isotopes that can emit rays for penetrating objects to be detected; the detector includes but is not limited to devices such as monoenergetic detectors, pseudo-dual-energy detectors, and energy spectrum detectors for detecting the rays emitted by the radiation source; the motion transmission mechanism is used to drive the object to be detected to move in the security inspection device at a certain speed, and it usually uses various rollers and belts to achieve motion transmission. The data processing system includes but is not limited to a data acquisition unit, a full-load matching unit, an image processing unit, and an image display unit.

[0092] As Figure 1 shown is the scanning principle of a security inspection machine. Its scanning mode is a line scanning mode, and the imaging process is as follows: The radiation source emits X-rays, and after being collimated by a collimator into a fan beam, it reaches the detector to form a scanning plane; the object to be detected is driven by a conveying mechanism (rollers) to pass through the scanning plane along a specific direction; during this process, the detector continuously measures the X-ray signals passing through the object to be detected. Each measurement time is called an integration time. After each measurement, a column of signals is output, and this signal is called a strip data; the image processing unit splices a series of strip data in the order of acquisition to generate a security inspection image of the object to be detected.

[0093] Security inspectors judge whether there are dangerous goods in the objects to be detected by observing the security inspection images of each object to be detected. In order to improve the recognition efficiency of security inspectors, in related technologies, by injecting dangerous goods images into the scanned images of the objects to be detected, the effect of simulating that there are dangerous goods in the objects to be detected can be achieved, so that security inspectors can more easily notice the possible dangerous goods in the objects to be detected. Among them, dangerous goods refer to prohibited items determined according to the actual application scenario, such as electronic devices, controlled knives, flammable and explosive items, etc.

[0094] In the prior art, the injection of a dangerous goods image is to collect the entire X-ray scan image of the object to be detected, then inject the dangerous goods image into the X-ray scan image and display it. Although this method can achieve TIP, there will be a certain delay in the image displayed on the security inspection machine.

[0095] To solve at least one of the above problems, in a first aspect, an embodiment of the present application provides an image display method, which includes the following Figure 2 steps:

[0096] Step S201: Obtain a preset injection object image when the strip image of the object to be detected meets the length injection condition of the preset injection object.

[0097] Wherein, the object to be detected is an object that needs to be security-inspected when entering the security inspection machine, the preset injection object image is a preset image of the dangerous goods that need to be detected in advance, and the dangerous goods are contraband determined according to the actual application scenario. For example, the dangerous goods can be electronic products, flammable and explosive items, controlled knives, liquids, etc. In one example, when the electronic product is a smart phone, the preset injection object image corresponding to the smart phone is a simple drawing image of the smart phone.

[0098] In the embodiment of the present application, the direction along which the object to be detected moves is set as the length direction, and the direction in which the detector performs line array scanning is set as the width direction. In one example, taking Figure 3 as an example, the object to be detected passes through the security inspection machine from left to right in the X direction, and the detector is directly above the security inspection machine. Then the length of the object to be detected in the X direction is the length of the object to be detected, and the length of the object to be detected in the y direction is the width of the object to be detected.

[0099] When scanning the object to be detected, a column of signals is output every other unit time, and this column of signals is a strip image. Each strip image includes a plurality of pixel columns. For example, a strip image includes 24 columns, 36 columns or 48 columns of pixels. The image data of the object to be detected is composed of a plurality of strip images. In one example, according to the size of the object to be detected, the image data of the object to be detected is equally divided into a certain number of strip images. When injecting the preset injection object image, the remaining pixel length of the image data of the object to be detected needs to be greater than or equal to the pixel length of the preset injection object image. For specific reference, please refer to the following embodiments.

[0100] Step S202: Obtain the pixel width of the object to be detected in the current strip image.

[0101] In practical applications, for the current strip image, edge detection can be performed to determine the object to be detected in the current strip image, and then the pixel width of the object to be detected in the current strip image can be determined according to the effective area of the object to be detected. In one example, through the background noise threshold (BackGroundThreshold) judgment method, in the direction from top to bottom or from bottom to top, the pixel values of each row are traversed in turn to determine whether the pixel values of each row are all less than the background threshold. For a certain row of pixels in the current strip image, if the pixel values of the pixels in this row are all less than the background threshold, it is considered that this row belongs to the effective area of the object to be detected.

[0102] The effective area is composed of one or more consecutive rows of pixels. Within the effective area, the pixel value of each pixel is less than the background threshold, and the width of the effective area is the pixel width of the object to be detected. In one example, the first row of pixels and the last row of pixels in the effective area are the upper and lower boundaries of the object to be detected respectively, and the pixel width of the object to be detected is the difference between the upper and lower boundaries of the effective area.

[0103] Step S203: When the pixel width meets the width injection condition of the preset injectant, determine the injection position of at least part of the preset injectant image.

[0104] In practical applications, the length and width of the preset injectant image are fixed. When the pixel width of the object to be detected in the current strip image is greater than or equal to the width of the preset injectant image, it is considered that the pixel width of the current strip image meets the width injection condition of the preset injectant.

[0105] The preset injectant can be randomly injected into the effective area, but it needs to be completely injected into the effective area. In one example, the random length position and random width position of the preset injectant image in the image data of the object to be detected are calculated respectively, and the preset injectant image is injected into the image data of the object to be detected according to the random length position and random width position.

[0106] In another example, for a strip image, if the pixel width of the strip image is 7 rows and the pixel width of the first perspective image or the second perspective image of the preset injectant is 2 rows, the random width position for injection can be any row from the 1st row to the 6th row of the strip image. This random width position can be determined by a random function (rand function). Similarly, the random injection position of the preset injectant image in the length direction can also be calculated by a random function.

[0107] Step S204: Inject at least part of the preset injectant image into the strip image according to the injection position.

[0108] When performing image injection, the following formula can be used for image injection:

[0109] ;

[0110] Among them, I merge is the image data after injection, I tip is the image data of the preset injectant image, I package is the image data of the current strip image, and I0 is the bright field data under the current test conditions. Among them, the bright field data is: the data collected by the detector when the ray source is turned on and there is no object between the ray source and the detector under the current test conditions. ratio is the anti-overflow coefficient.

[0111] The injection part where the preset injectant image is to be injected into the strip image can be determined according to the pixel width or length of the current strip image. In one example, if the current strip image includes 24 columns of pixels, then when injecting the preset injectant image, 24 adjacent columns of pixels are also taken and injected into the current strip image.

[0112] Step S205: Display the strip image injected with at least part of the preset injectant image.

[0113] When displaying the security inspection image, the strip image can be directly displayed after the image injection is completed. When displaying the strip image, image enhancement and coloring can also be performed, or the image part corresponding to the preset injectant can be highlighted, so that it is easier for security inspection personnel to notice dangerous goods.

[0114] Applying the method of the embodiment of the present application, by judging the length injection condition and width injection condition of the preset injectant for the current strip image of the object to be detected, and when the injection condition is met, part of the preset injectant image is directly injected into the current strip image, and the strip image injected with part of the preset injectant image is directly displayed. Compared with waiting to obtain the entire X-ray scan image of the object to be detected and then performing image injection, the method of the embodiment of the present application can shorten the imaging delay of the security inspection machine.

[0115] Taking the security inspection machine as a single-view security inspection machine as an example below, the preset injectant image is a single-view image. In a possible implementation manner, the method of the embodiment of the present application includes the following steps:

[0116] Step 1: Obtain the remaining pixel length of the object to be detected.

[0117] Among them, the remaining pixel length is the pixel length of the object to be detected in each strip image from the current strip image to the tail strip image, and the tail strip image is the last strip image of the object to be detected.

[0118] Step 2: Obtain the image length of the preset injection object image. When the image length of the preset injection object image is less than the remaining pixel length, it is determined that the strip image of the object to be detected meets the length injection condition of the preset injection object.

[0119] In practical applications, devices such as photoelectric sensors or cameras can also be provided on the security inspection machine to detect whether there is an object to be detected on the security inspection machine. When an object to be detected is detected, the total length of the object to be detected can be calculated based on the speed of the object to be detected, the time when the sensor is blocked, etc. When the detector and the radiation source perform a linear array scan on the object to be detected, after scanning each strip image, the length of one strip image is subtracted from the total length of the object to be detected, so as to obtain the remaining pixel length of the object to be detected.

[0120] In one example, the total length of the object to be detected is 5 strip image lengths, and the length of the preset injection object image is 2 strip image lengths. When the first strip image length is scanned, the remaining strip image length is 4 strip image lengths, meeting the length injection condition of the preset injection object. Among them, the preset injection object image is pre-set, and the length and width of each image are fixed and unchanged.

[0121] Step 3 (Step S201); When the strip image of the object to be detected meets the length injection condition of the preset injection object, obtain the preset injection object image.

[0122] Step 4 (Step S202): Obtain the pixel width of the object to be detected in the current strip image.

[0123] Step 5 (Step S203): When the pixel width meets the width injection condition of the preset injection object, determine the injection position of at least part of the preset injection object image.

[0124] Step 6 (Step S204): Inject at least part of the preset injection object image into the strip image according to the injection position.

[0125] Step 7 (Step S205): Display the strip image injected with at least part of the preset injection object image.

[0126] By applying the method of this application embodiment, the remaining pixel length of the object to be detected can be calculated, and the injection condition judgment in the length direction can be performed according to the remaining pixel length and the length of the preset injection object image, so that the preset injection object image is injected when it meets the injection condition in the length direction.

[0127] In a possible implementation manner, step S203 may include the following steps:

[0128] Step 1: When the pixel width meets the width injection condition of the preset injectant, determine whether the previous set of strip images of the current strip image has been injected with the preset injectant.

[0129] In practical applications, there may be a situation where multiple objects to be detected that are relatively close, even in contact with or overlapping each other, pass through the security inspection machine. Taking the installation of a photoelectric sensor on the security inspection machine as an example, the photoelectric sensor is used to detect whether there is an object to be detected passing through the security inspection machine. However, the accuracy of the photoelectric sensor is relatively low and it cannot distinguish different objects to be detected. Therefore, there may be a situation where multiple objects to be detected are misidentified as one object to be detected.

[0130] In this case, when making subsequent injection condition judgments and injections based on the remaining pixel length, there may be a situation where the preset injectant image in the previous object to be detected is injected into the display image of the subsequent object to be detected. To address this problem, the width injection condition can be judged for each scanned current image strip first. In practical applications, the contact part between two objects to be detected is relatively small, and its pixel width usually does not meet the width injection condition of the preset injectant image, thus avoiding the situation where the preset injectant image in the previous object to be detected is injected into the display image of the subsequent object to be detected.

[0131] In practical applications, the parameter information carried by each strip image includes injection status flag bit information. It can be judged whether the previous set of strip images of the current strip image has been injected with the preset injectant through this status flag bit information, that is, to judge whether the current strip image is the first injection. In one example, when it is detected that an object to be detected enters the security inspection machine, the security inspection machine system initializes relevant parameters to ensure that the system parameters are consistent each time the strip image starts image injection. In this step, the injection status flag bit information is uniformly initialized to True. When a set of strip images starts image injection, the injection status flag bit information of this set of strip images is switched to False.

[0132] When judging whether the current strip image is the first injection, the injection status flag bit information of the previous set of strip images can be checked. If the flag bit information is False, it indicates that the previous set of strip images has been injected with images, and the current strip image is not the first injection; if the flag bit information is True, it indicates that the previous set of strip images has not been injected with images, and the current strip image is the first injection.

[0133] Step 2: If the previous set of strip images of the current strip image has not been injected with the preset injectant, obtain the starting strip number for injecting the preset injectant image.

[0134] The starting stripe number is the number of the stripe image for the first injection in the length direction. Among them, the starting stripe number can be calculated by the following formula:

[0135] ;

[0136] Among them, TipStripeStart represents the starting stripe number, TipHeightStart is the random starting injection position in the length direction, and StripeHeight represents the pixel length of the current stripe image.

[0137] The random starting injection position can be calculated by a random function. In one example, it can be calculated by the following formula:

[0138] ;

[0139] Among them, rand represents the random function, PackHeightRemain represents the remaining pixel length of the object to be detected, and TipHeight is the pixel length of the preset injection object image.

[0140] Step 3: Determine whether the stripe represented by the starting stripe number belongs to the current stripe image.

[0141] After calculating the starting stripe number, determine whether the number of the current stripe image is the starting stripe number. If so, inject the preset injection object image into the current stripe image; if not, continue to judge the width injection condition for the subsequent stripe images until its number is the same as the starting stripe number. If the stripe image corresponding to the starting stripe number does not meet the width injection condition, continue to scan backward until a stripe image that meets the width injection condition appears.

[0142] Step 4: When the stripe represented by the starting stripe number belongs to the current stripe image, determine the starting row where the preset injection object image is injected into the current stripe image to obtain the first starting row; according to the first starting row, determine the first insertion position of the preset injection object image in the current stripe image.

[0143] In practical applications, the starting row can be calculated by the following formula:

[0144] ;

[0145] Among them, TipWidthStart represents the starting row, rand() is the random function, TipWidth is the pixel width of the preset injection object image to be injected, TipWidthDown represents the lower boundary of the object to be detected in the current stripe image, and TipWidthUp represents the upper boundary of the object to be detected in the current stripe image.

[0146] In practical applications, while determining the first insertion position of the preset injectant image in the current strip image, the first insertion part of the preset injectant image can also be determined. When determining the first insertion part, the preset injectant image can be sliced into split images with the same pixel length as the current strip image according to the pixel length of the current strip image, and the split images to be inserted into the current strip image are determined according to the order of the split images. For example, if the current strip image is the strip image for the first injection, the first insertion part is the first split image.

[0147] The first insertion position is the position range from the first starting row to the first injection end row of the current strip image, where the first injection end row is the pixel row corresponding to the first starting row plus the pixel width of the preset injectant image.

[0148] Step six (S204) can specifically be: injecting the first insertion part into the first insertion position in the current strip image to obtain the first strip image.

[0149] Step seven (step S205) can specifically be: displaying the first strip image.

[0150] When performing image injection, the image data of the injected strip image can be calculated through the image injection formula in the above embodiments, so as to achieve image injection. Injecting the first insertion part of the preset injectant image according to the first insertion position of the current strip image to obtain the first strip image, and then displaying the first strip image to shorten the imaging delay of the security inspection machine.

[0151] By applying the method of the embodiments of the present application, after judging the width injection condition for the strip image of the object to be detected, the starting strip number can be judged, so as to avoid the situation that the preset injectant image of the previous object to be detected is mistakenly injected into the image of the latter object to be detected due to the close distance of multiple objects to be detected, improve the accuracy of the image injection position, and further improve the accuracy of object detection.

[0152] In another possible implementation manner, if the device for judging whether there is an object to be detected passing through the security inspection machine in the security inspection machine is a high-precision sensor such as a camera, where the high-precision sensor can distinguish different objects to be detected with a close distance, for the image data of an object to be detected, the starting strip number can be judged first, and then the injection condition can be judged. In an example, after step two in the above embodiments, another embodiment of the present application further includes the following steps:

[0153] Step A: Determine the starting strip number for injecting the preset injectant image according to the remaining pixel length and the image length of the preset injectant.

[0154] Step S202 can be implemented through the following steps:

[0155] Step B: When the current strip image is the strip image belonging to the strip represented by the starting strip number, or the strip image after the strip image belonging to the strip represented by the starting strip number, obtain the pixel width of the object to be detected in the current strip image.

[0156] In this embodiment, first calculate the random injection position in the length direction to obtain the starting strip number for injecting the preset injection object image. Starting from the strip image corresponding to the starting strip number, then obtain the pixel width of the object to be detected in the current strip image to judge the width injection condition. Among them, the methods for calculating the starting strip number, the pixel width of the object to be detected in the current strip image, and the method for judging the width injection condition are the same as those in the above embodiment, and will not be elaborated here.

[0157] In an example, the imaging of an object to be detected consists of 5 groups of strip images, the length of the preset injection object image is the length of 2 groups of strip images, and the calculated starting strip number is 3. Then when the current strip image is the 3rd or 4th group of strip images, the current strip image not only meets the length injection condition of the preset injection object image, but also its number meets the number corresponding to the starting strip number or the number after the starting strip number. Thus, it is possible to continue to obtain the pixel width of the object to be detected in the current strip image, and then judge the width injection condition of the preset injection object image.

[0158] Applying the method of the embodiment of the present application, first calculate the starting strip number and then judge the width injection condition. Compared with the above embodiment, it is possible to avoid judging the width injection condition for each group of strip images, thereby reducing the waste of computing power and the time for image processing and improving the image injection efficiency.

[0159] Still taking the embodiment of first calculating the starting strip number and then judging the width injection condition as an example, in a possible implementation manner, step S203 can be implemented through the following steps:

[0160] Step a: When the pixel width meets the width injection condition of the preset injection object image, judge whether the previous strip image of the current strip image has been injected with the preset injection object.

[0161] Step b: If the previous strip image of the current strip image has not been injected with the preset injection object, determine the starting row for injecting the preset injection object image in the current strip image to obtain the second starting row.

[0162] Step c: According to the second starting row, determine the second insertion position of the preset injection object image in the current strip image and the second inserted part of the preset injection object image.

[0163] Step S204 is implemented through the following steps:

[0164] Step d: Inject the second insertion part into the second insertion position in the current strip image to obtain the second strip image.

[0165] Step S205 is implemented through the following steps:

[0166] Step e: Display the second strip image.

[0167] An example is used to illustrate the image display method in the embodiments of the present application. For a certain group of current strip images of the object to be detected, the number of the current strip image is 2, the remaining pixel length is 5, the length of the preset injection object image is 3, and the width is 2. Then, the remaining pixel length satisfies the length injection condition of the preset injection object. At this time, calculate the random position in the length direction, that is, the starting strip number. If the starting strip number is 3 and the number of the current strip image is not the starting strip number or a number after the starting strip number, then continue to judge the strip images of the next group.

[0168] If the number of the current strip image is 4 and its number is a number after the starting strip number, then judge the width injection condition for this strip image. If it is satisfied, then perform image injection; if the width injection condition is not satisfied, then the image injection fails, and an injection failure signal is sent to the system.

[0169] If the number of the current strip image is 3 and its number is the starting strip number, then judge the width injection condition for this strip image. If it is satisfied, since this strip image is the first injected strip image, it is necessary to calculate the second insertion position and the second insertion part of the preset injection object image in this strip image, and inject the second insertion part into the current strip image according to the second insertion position to obtain the second strip image, so as to display the second strip image when displaying the image. If it is not satisfied, then this injection fails, and it is necessary to return to judge the strip data of the next group. At this time, the starting strip number that has been calculated needs to be cleared.

[0170] Among them, the calculation methods of the second starting row, the second insertion position, and the second insertion part in the embodiments of the present application; the judgment method of the width injection condition and the image injection method are the same as those in the above embodiments, and will not be elaborated here.

[0171] Applying the method in the embodiments of the present application, first calculate the starting strip number, and then judge the width injection condition. Compared with the above embodiments, it is possible to avoid judging the width injection condition for each group of strip images, thereby reducing the waste of computing power and the processing time of image processing, and improving the image injection efficiency.

[0172] For the current strip image of non-first injection, if the current strip image satisfies both the length injection condition of the preset injectant image and the width injection condition, the injection of the preset injectant image can be achieved through the following steps:

[0173] Step (1): If the injection of the preset injectant has been performed on the previous set of strip images of the current strip image, determine the third insertion position and the third inserted part of the preset injectant image in the current strip image according to the insertion position and the inserted part of the preset injectant image in the previous set of strip images.

[0174] Then step S204 is achieved through the following steps:

[0175] Step (2): Inject the third inserted part into the third insertion position in the current strip image to obtain the third strip image.

[0176] Then step S204 is achieved through the following steps:

[0177] Step (3): Display the third strip image.

[0178] When the current strip image is the first injection, it is necessary to calculate the first starting row or the second starting row. If the current strip image is not the first injection, there is no need to calculate the starting row, and the insertion is directly performed according to the insertion position of the previous set of strip images. Among them, the third insertion position and the third inserted part need to be determined according to the insertion position and the inserted part of the previous set of strip images of the current strip image to ensure the fit of the injected image data, avoid the disorder of the injected image, and ensure the integrity of the injected image. In an example, the third inserted part can be determined according to the splitting image order of the preset injectant image. For example, if the number of the current strip image is 3, and the inserted part of the preset injectant image in the second set of strip images is the first splitting image of the preset injectant image, then the third inserted part to be inserted in the current strip image is the second splitting image of the preset injectant image.

[0179] For the upper and lower boundaries of the strip image of non-first insertion, the following requirements should be met:

[0180] ;

[0181] ;

[0182] The upper boundary of the object to be detected in the strip image should be less than the starting position of the preset injectant image injected in the width direction, and the lower boundary of the object to be detected should be greater than the sum of the starting position of the preset injectant image injected in the width direction and the width of the preset injectant image. If the injection requirements are not met, the image injection fails, and an injection failure signal is returned to the system.

[0183] When the method according to the embodiment of the present application is applied and the current strip image is not the first injection, the insertion position and insertion part of the preset injection object image in the current strip image can be directly determined according to the insertion position and insertion part of the previous set of strip images, without calculating the starting row, so as to perform the injection and display of the preset injection object image.

[0184] In practical applications, since the starting strip number is a randomly calculated position, the preset injection object images can all randomly appear in the scanned images of the object to be detected. For example Figures 4a to 4c As shown, the object to be detected is a suitcase, and the image enclosed by the dashed line in the figure is the injected preset injection object image, and the preset injection object image can be randomly injected at any position within the suitcase space.

[0185] Compared with a single-view security inspection machine, a dual-view security inspection machine can perform scanning imaging on the object to be detected from two directions, horizontal and vertical, through two sets of independent ray sources and detectors, so as to avoid the difficulty of reading images caused by object overlap and improve the accuracy of object detection. For a dual-view security inspection machine, since the position for injection is randomly selected during image injection for each view, there may be a situation where the positions of the preset injection object images in the scanned images corresponding to the two views are inconsistent, which does not conform to the actual scanning situation and results in a poor object injection effect.

[0186] In view of the above situation, if the security inspection machine is a dual-view security inspection machine, the preset injection object image includes a first-view image and a second-view image, where the first-view image is the image of the preset injection object in the first view, and the second-view image is the image of the preset injection object in the second view.

[0187] The first view and the second view are different and can be the front view, top view or side view of the object to be detected respectively. In an example, when the object to be detected passes through the security inspection machine from left to right, ray sources can be installed above and in front of the security inspection machine respectively. When the object to be detected passes through these two ray sources, the front view and top view of the object to be detected can be collected respectively. When it is detected that there may be an item corresponding to the preset injection object in the object to be detected, the front view and top view of the preset injection object are obtained, that is, the first-view image and the second-view image.

[0188] Then the image display method according to the embodiment of the present application may include the following steps:

[0189] Step B1, when the strip image of the object to be detected meets the length injection condition of the preset injection object, obtain the preset injection object image.

[0190] Step B2, obtain the first pixel width of the object to be detected in the current strip image in the first view and the second pixel width of the object to be detected in the current strip image in the second view.

[0191] Step B3: When the first pixel width meets the width injection condition of the first - perspective image and the second pixel width meets the width injection condition of the second - perspective image, determine the injection positions of the first - perspective image and the second - perspective image respectively.

[0192] Step B4: According to the injection positions, inject at least part of the first - perspective image into the strip image under the first perspective, and inject at least part of the second - perspective image into the strip image under the second perspective.

[0193] Step B5: Display the strip image into which the first - perspective image is injected, and display the strip image into which the second - perspective image is injected.

[0194] Similar to the corresponding embodiment of the single - perspective security inspection machine, for each perspective, perform boundary detection on the current strip image of the object to be detected under this perspective, determine the effective regions of the object to be detected under the two perspectives respectively, and thus determine the pixel widths of the current strip images of the object to be detected under the two perspectives respectively, that is, the first pixel width and the second pixel width.

[0195] In practical applications, the length, width, and height of the preset injection object can be fixed in advance, so as to fix the length and width of the first - perspective image of the preset injection object under the first perspective and the length and width of the second - perspective image of the preset injection object under the second perspective. When the first pixel width is greater than or equal to the width of the first - perspective image, it is considered that the first pixel width meets the width injection condition of the first - perspective image; when the second pixel width is greater than or equal to the width of the second - perspective image, it is considered that the second pixel width meets the width injection condition of the second - perspective image.

[0196] Similarly, for the preset injection object image under each perspective, adopt the same method as the corresponding embodiment of the above - mentioned single - perspective security inspection machine to determine the injection positions of the first - perspective image and the second - perspective image respectively in the current strip image.

[0197] When displaying the strip image of the first - perspective image and the strip image of the second - perspective image, image enhancement and coloring can also be performed or the image part corresponding to the preset injection object can be highlighted, so that it is easier for security inspection personnel to notice dangerous goods. As Figure 5a and Figure 5b shown, Figure 5a is the image data after injecting the first - perspective image under the first perspective, Figure 5b is the image data after injecting the second - perspective image under the second perspective. On the display interface of the security inspection machine, the positions of the dangerous goods under the two perspectives can be seen, and the positions correspond to each other, so as to determine that there is only 1 dangerous good in the object to be detected.

[0198] By applying the method of the embodiment of the present application, when the width of the first pixel satisfies the width injection condition of the first perspective image and the width of the second pixel satisfies the width injection condition of the second perspective image, the injection position can be calculated to perform image injection of the preset injectant image, so as to ensure that the positions of the preset injectant image in the two perspectives correspond consistently, improve the accuracy of the display of the preset injectant image, and further improve the accuracy of object detection.

[0199] In a possible implementation manner, the injection condition judgment in the length direction can be implemented through the following steps:

[0200] Obtain the remaining pixel length of the object to be detected; obtain the image lengths of the first perspective image and the second perspective image. When the image lengths of the first perspective image and the second perspective image are both less than the remaining pixel length, it is determined that the strip image of the object to be detected meets the length injection condition of the preset injectant. Wherein, the remaining pixel length is the pixel length of the object to be detected in each strip image from the current strip image to the tail strip image, and the tail strip image is the last strip image of the object to be detected.

[0201] By applying the method of the embodiment of the present application, the remaining pixel length of the object to be detected can be calculated, and the injection condition judgment in the length direction can be performed according to the remaining pixel length and the lengths of the first perspective image and the second perspective image, so that the preset injectant is injected when it meets the injection condition in the length direction.

[0202] In a possible implementation manner, the injection positions of the first perspective image and the second perspective image can be calculated through the following steps:

[0203] Step B31: When the width of the first pixel satisfies the width injection condition of the first perspective image and the width of the second pixel satisfies the width injection condition of the second perspective image, determine whether the previous set of strip images of the current strip image has been injected with the preset injectant.

[0204] Step B32: If the previous set of strip images of the current strip image has not been injected with the preset injectant, obtain the starting strip numbers of the injection of the first perspective image and the second perspective image.

[0205] Step B33: Determine whether the strip indicated by the starting strip number belongs to the current strip image.

[0206] Step B34: When the strip indicated by the starting strip number belongs to the current strip image, determine the fourth starting row where the first perspective image is injected in the current strip image in the first perspective, and determine the fifth starting row where the object to be detected is injected in the current strip image in the second perspective.

[0207] Step B35: Determine the fourth insertion position of the first - perspective image in the current strip image and the fourth inserted part of the first - perspective image according to the fourth starting row; determine the fifth insertion position of the second - perspective image in the current strip image and the fifth inserted part of the second - perspective image according to the fifth starting row.

[0208] Step B4 can be implemented through the following steps:

[0209] Step B41: Inject the fourth inserted part into the fourth insertion position in the current strip image of the first perspective to obtain the fourth strip image; inject the fifth inserted part into the fifth insertion position in the current strip image of the second perspective to obtain the fifth strip image.

[0210] Step B5 can specifically be: Display the fourth strip image and the fifth strip image.

[0211] In the case where the current strip image is the first injection, obtain the starting strip number for injecting the first - perspective image and the second - perspective image. When obtaining the starting strip number, it can be judged whether the calculation of the starting strip number has been pre - performed. If the starting strip numbers for injecting the first - perspective image and the second - perspective image have been calculated, obtain the starting strip number; if the starting strip numbers for injecting the first - perspective image and the second - perspective image have not been calculated, calculate the starting strip number according to the remaining pixel length, the image lengths of the first - perspective image and the second - perspective image. Among them, the starting strip number can be calculated by the same method as in the corresponding embodiment of the single - perspective security inspection machine, and will not be elaborated here.

[0212] After obtaining the starting strip number, judge whether the number of the current strip image is the starting strip number. If so, execute Step B34; if not, continue to judge the width injection condition for the subsequent strip images until its number is the same as the starting strip number. If the strip image corresponding to the starting strip number does not meet the width injection condition, continue to scan backward until a strip image that meets the width injection condition appears.

[0213] Among them, the calculation methods of the fourth starting row, the fourth insertion position, the fourth inserted part, the fifth starting row, the fifth insertion position, and the fifth inserted part are the same as those in the corresponding embodiment of the single - perspective security inspection machine, and will not be elaborated here.

[0214] In a possible implementation manner, if the strip indicated by the starting strip number does not belong to the current strip image, do not inject the preset injectant into the current strip image, and display the current strip image of the first perspective and the current strip image of the second perspective;

[0215] Obtain the next set of strip images as the current strip image, and return the execution steps: obtain the first pixel width of the object to be detected in the current strip image from the first perspective and the second pixel width of the object to be detected in the current strip image from the second perspective.

[0216] By applying the method of the embodiment of the present application, after judging the width injection condition for the strip image of the object to be detected, the injection position can be calculated, thereby avoiding the situation that the preset injection object image of the previous object to be detected is mistakenly injected into the image of the subsequent object to be detected due to the close distance of multiple objects to be detected, improving the accuracy of the image injection position, and further improving the accuracy of object detection.

[0217] In an example, to illustrate the image display method in the embodiment of the present application, as Figure 6 shown. When the optoelectronic sensor detects the appearance of the object to be detected, the roller starts to rotate, driving the object to be detected to move forward on the belt. At this time, the light barrier system of the security inspection machine starts to send an open source signal to the hardware system, the ray source is turned on and starts to scan image data, and the data processing system starts to collect the image scan data.

[0218] At the same time as sending the open source signal, a TIP (Threat Image Projection) signal (i.e., a trigger preset injection object injection signal) will also be sent. At this time, the scanned image data will enter the data processing system for processing. In practical applications, the total pixel length of the object to be detected and the lengths and widths of the first perspective image and the second perspective image have been obtained in this step. After receiving the TIP signal, the data processing system initializes the image injection related parameters (TIP parameters) to ensure that the system parameters are consistent each time the first perspective image or the second perspective image starts to be injected. In practical applications, the injection related parameters also include the dual perspective initial state parameters. When initializing, this parameter is set to Not Ready. If the current strip image meets the width injection condition, this parameter is set to Ready.

[0219] In practical applications, the linear array detector is composed of multiple independent detection units spliced together. Due to the processing differences of the scintillator and the defects of the readout electronic devices, the response values of each detection unit to X-rays under the same intensity are different. Therefore, it is necessary to collect bright field data and dark field data to correct the original data, and correct the image deformation problems caused by the geometric structure, etc. At the same time, the first perspective image and the second perspective image of the preset injection object also need to be preprocessed in the same way to ensure the consistency of the injected image.

[0220] After preprocessing each image (scan data preprocessing and TIP image data preprocessing), image injection starts, and after injection, the image is enhanced and colored, etc., and the processed image is displayed. When all image injections are completed, a TIP end signal is returned to the system. At this time, the next TIP injection signal can be received (the system will not issue a TIP injection signal again during TIP). If TIP is not ended, return to continue preprocessing each image and perform image injection.

[0221] Among them, the injection process of the first perspective image or the second perspective image is as Figure 7 shown. When the remaining pixel length of the object to be detected meets the length injection condition of the first perspective image or the second perspective image, it is judged whether the current strip image meets the width injection condition of the first perspective image or the second perspective image. If not, continue to judge the next group of strip images. When judging the dual-perspective initial state, the remaining pixel length with the smaller pixel length is determined as the remaining pixel length of the object to be detected.

[0222] When both the first pixel width and the second pixel width meet the width injection conditions, that is, when the dual-perspective initial state parameters of the current strip image in the first perspective and the current strip image in the second perspective are both Ready, obtain the starting strip number when injecting the first perspective image and the second perspective image. Judge whether the number of the current strip image is the starting strip number, that is, judge whether the current strip image is the first injection. If so, the fourth insertion position and the fifth insertion position need to be calculated, and image injection is performed according to the insertion positions; if not, injection can be directly performed according to the injection positions of the previous group of strip images without calculating the starting injection position.

[0223] By applying the method of the embodiment of the present application, after judging the width injection condition, the injection position can be calculated, so as to avoid the situation that the preset injection object image of the previous object to be detected is mistakenly injected into the image of the latter object to be detected due to the close distance of multiple objects to be detected, improve the accuracy of the image injection position, and further improve the accuracy of object detection. And when the current strip images in both perspectives meet the injection conditions, image injection is performed, which can ensure that the positions of the preset injection object images in the images in both perspectives correspond to each other, improve the accuracy of the display of the preset injection object, and thus improve the accuracy of object detection.

[0224] In a possible implementation, when the device for determining whether a to-be-detected object appears in the security inspection machine is a high-precision sensor such as a camera, where the high-precision sensor can distinguish different to-be-detected objects at a relatively close distance, for the image data of a to-be-detected object, the random position for image injection can be calculated first, and then the injection condition can be judged. In one example, after determining that the strip image of the to-be-detected object satisfies the length injection condition of the preset injectant, another embodiment of the present application further includes the following steps:

[0225] Step C1: Determine the starting strip numbers for injecting the first-view image and the second-view image according to the remaining pixel length, the image length of the first-view image, and the image length of the second-view image.

[0226] Step C2: When the current strip image is the strip image to which the strip represented by the starting strip number belongs, or when the current strip image is the strip image after the strip image to which the strip represented by the starting strip number belongs, obtain the first pixel width of the to-be-detected object in the current strip image from the first view and the second pixel width of the to-be-detected object in the current strip image from the second view.

[0227] Step C3: When the first pixel width meets the width injection condition of the first-view image and the second pixel width meets the width injection condition of the second-view image, determine the injection positions of the first-view image and the second-view image respectively.

[0228] Step C4: According to the injection positions, inject at least part of the first-view image into the strip image from the first view, and inject at least part of the second-view image into the strip image from the second view.

[0229] Step C5: Display the strip image into which the first-view image is injected, and display the strip image into which the second-view image is injected.

[0230] In the embodiment of the present application, the random injection positions in the length direction are calculated first to obtain the starting strip numbers for injecting the first-view image and the second-view image. Starting from the strip image corresponding to the starting strip number, the first pixel width and the second pixel width are obtained again to judge the width injection condition.

[0231] Applying the method of the embodiment of the present application, judging the injection position first and then the injection condition can avoid judging the injection condition for each group of strip images compared with the above embodiment, thereby reducing the waste of computing power and the time of image processing and improving the image injection efficiency.

[0232] If the starting strip number is judged first and then the injection condition is judged, then in a possible implementation, the above step C3 includes:

[0233] Step C31: When the first pixel width meets the width injection condition of the first - perspective image and the second pixel width meets the width injection condition of the second - perspective image, determine whether the previous set of strip images of the current strip image has been injected with a preset injectant.

[0234] Step C32: If the previous set of strip images of the current strip image has not been injected with a preset injectant, determine the sixth starting row where the first - perspective image is injected into the current strip image from the first perspective, and determine the seventh starting row where the object to be detected is injected into the current strip image from the second perspective.

[0235] Step C33: According to the sixth starting row, determine the sixth insertion position of the first - perspective image in the current strip image from the first perspective and the sixth inserted part of the first - perspective image; according to the seventh starting row, determine the seventh insertion position of the second - perspective image in the current strip image from the second perspective and the seventh inserted part of the second - perspective image.

[0236] Step C4 specifically includes: Inject the sixth inserted part into the sixth insertion position in the current strip image of the first perspective to obtain the sixth strip image; inject the seventh inserted part into the seventh insertion position in the current strip image of the second perspective to obtain the seventh strip image.

[0237] Step C5 specifically includes: Display the sixth strip image and the seventh strip image.

[0238] Similarly, the methods of calculating the sixth starting row, the seventh starting row, the sixth insertion position, the sixth inserted part, the seventh insertion position, the seventh inserted part, and performing image injection are the same as those in the above - mentioned embodiments, and will not be elaborated here.

[0239] As Figure 8 shown, first obtain the remaining pixel length of the object to be detected, perform a judgment on the length injection condition of the preset injectant, and determine whether the remaining pixel length meets the length injection condition of the preset injectant. If not, return to the previous step. If so, obtain the starting strip number for injecting the first - perspective image and the second - perspective image. Determine whether the numbers of the current strip images from the first perspective and the second perspective are the starting strip number or the numbers after the starting strip number. If not, return to the step: obtain the remaining pixel length of the object to be detected. If so, obtain the first pixel width and the second pixel width of the current strip image. Perform a judgment on the width injection condition. If not, return to the step: obtain the remaining pixel length of the object to be detected. If so, determine whether the current strip image is the first injection, and calculate the injection position to achieve image injection.

[0240] Applying the method of the embodiment of the present application, first judge the starting strip number, and then judge the injection conditions. Compared with the above embodiment, it is possible to avoid judging the injection conditions for each group of strip images, thereby reducing the waste of computing power and the time for image processing, and improving the image injection efficiency.

[0241] In a possible implementation manner, after the step of judging whether the previous strip image of the current strip image has been injected with a preset injectant, the method of the embodiment of the present application further includes the following steps:

[0242] Step C34: If the previous strip image of the current strip image has been injected with a preset injectant, determine the eighth insertion position and the eighth insertion part of the first perspective image in the current strip image from the first perspective according to the insertion position and the insertion part of the first perspective image in the previous strip image; determine the ninth insertion position and the ninth insertion part of the second perspective image in the current strip image from the second perspective according to the insertion position and the insertion part of the second perspective image in the previous strip image.

[0243] Step C4 specifically includes: injecting the eighth insertion part into the eighth insertion position in the current strip image from the first perspective to obtain the eighth strip image; injecting the ninth insertion part into the ninth insertion position in the current strip image from the second perspective to obtain the ninth strip image.

[0244] Step C5 specifically includes: displaying the eighth strip image and the ninth strip image.

[0245] Applying the method of the embodiment of the present application, in the case where the current strip image is not the first injection, the image can be directly injected according to the injection position of the previous strip image without calculating the starting row, so as to realize the image injection of the preset injectant.

[0246] In a possible implementation manner, the method of the embodiment of the present application may further include the following steps:

[0247] In the case where the previous strip image of the current strip image has not been injected with a preset injectant and the first pixel width does not meet the width injection condition of the first perspective image; or, in the case where the previous strip image of the current strip image has not been injected with a preset injectant and the second pixel width meets the width injection condition of the second perspective image, return to execute the step: obtain the remaining pixel length of the object to be detected.

[0248] Among them, if the current strip image is the first injection, but the first pixel width or the second pixel width does not meet the width injection condition, the injection will fail at this time, and then it will return to recalculate the remaining pixel length. In practical applications, when the injection of the strip image in the first injection fails, it is also possible to directly abandon the injection, send an injection failure signal to the system, and wait for the user to perform relevant operations.

[0249] In one example, when returning to execute the step of obtaining the remaining pixel length of the object to be detected, it is necessary to clear the pre-calculated starting strip number. For example, if the pre-calculated starting strip number is the strip image of the 3rd group, then when the current strip image is the 3rd group, the width injection condition is judged. If the first pixel width or the second pixel width of the current strip image does not meet the width injection condition of the first perspective image or the second perspective image, the injection of this group of strip images fails, and the injection condition of the strip image of the 4th group is continued to be judged. However, when judging the injection condition of the strip image of the 4th group, it is necessary to clear the already calculated starting strip number (that is, the strip image of the 3rd group) and recalculate the starting strip number.

[0250] Applying the method of the embodiment of the present application, when the current strip image does not meet the width injection condition, it returns to judge the next group of strip images and recalculate the starting strip number, thereby avoiding the influence of the starting strip number of the pre-calculated injection-failed strip image on the subsequent image injection, and improving the success rate of image injection.

[0251] In a possible implementation manner, the method of the embodiment of the present application may further include the following steps:

[0252] When the previous group of strip images of the current strip image has been injected with a preset injectant and the first pixel width does not meet the width injection condition of the first perspective image; or, when the previous group of strip images of the current strip image has been injected with a preset injectant and the second pixel width meets the width injection condition of the second perspective image, terminate the injection of the preset injectant this time. Display a pop-up window indicating that the injection of the preset injectant fails, and in response to the user's operation on the pop-up window, refresh and replace the already displayed strip image including the preset injectant with a strip image without the preset injectant.

[0253] In practical applications, the first perspective image or the second perspective image is injected during the scanning of the object to be detected. Therefore, it is possible that the previous group of strip images meet the injection conditions and have been injected, but the current strip image does not meet the width injection condition, resulting in the failure of image injection. At this time, the image injection this time is terminated and an error is reported. The error can be to pop up a pop-up window on the display interface of the security inspection machine to indicate that the image injection this time fails.

[0254] After seeing the pop-up window, the user can perform relevant operations on the pop-up window. Such operations can be closing the pop-up window or clicking on the relevant operation buttons that appear in the pop-up window. After the security inspection machine recognizes that the user has performed an operation on the pop-up window, it responds to this operation, refreshes the currently displayed image injection failure interface, and replaces the currently failed injection strip image with a strip image that has not yet been injected with the first perspective image or the second perspective image.

[0255] By applying the method of the embodiment of the present application, an error can be reported in the form of a pop-up window when the image injection fails, so that the user can notice the image injection failure and perform relevant operations in a timely manner, refreshing the displayed strip image that has not been injected, thereby avoiding the display of incorrect image injection strip images and affecting the accuracy of object judgment.

[0256] In the second aspect of the embodiment of the present application, an image display device is provided. The device includes the following Figure 9 shown structure:

[0257] A preset injection object image acquisition module 901, configured to acquire a preset injection object image when the strip image of the object to be detected meets the length injection condition of the preset injection object;

[0258] A pixel width acquisition module 902, configured to acquire the pixel width of the object to be detected in the current strip image;

[0259] An injection position determination module 903, configured to determine the injection position of at least part of the preset injection object image when the pixel width meets the width injection condition of the preset injection object;

[0260] An image injection module 904, configured to inject at least part of the preset injection object image into the strip image according to the injection position;

[0261] An image display module 905, configured to display the strip image injected with at least part of the preset injection object image.

[0262] In a possible implementation manner, the preset injection object image is a single perspective image, and the device further includes:

[0263] A remaining pixel length acquisition module, configured to acquire the remaining pixel length of the object to be detected, where the remaining pixel length is the pixel length of the object to be detected in each strip image from the current strip image to the tail strip image, and the tail strip image is the last strip image of the object to be detected;

[0264] A length injection condition judgment module, configured to acquire the image length of the preset injection object image, and determine that the strip image of the object to be detected meets the length injection condition of the preset injection object when the image length of the preset injection object image is less than the remaining pixel length.

[0265] In a possible implementation, an injection position determination module includes:

[0266] An injection state judgment sub-module, specifically configured to judge whether a previous set of strip images of the current strip image has been injected with a preset injectant when the pixel width meets the width injection condition of the preset injectant;

[0267] A starting strip number acquisition sub-module, specifically configured to acquire the starting strip number for injecting the preset injectant image if the previous set of strip images of the current strip image has not been injected with the preset injectant;

[0268] A starting strip number judgment sub-module, specifically configured to judge whether the strip represented by the starting strip number belongs to the current strip image;

[0269] A first starting row determination sub-module, specifically configured to determine the starting row for injecting the preset injectant image in the current strip image to obtain a first starting row when the strip represented by the starting strip number belongs to the current strip image; and determine the first insertion position of the preset injectant image in the current strip image according to the first starting row.

[0270] In a possible implementation, the preset injectant image includes a first perspective image and a second perspective image. The first perspective image is an image of the preset injectant under the first perspective, and the second perspective image is an image of the preset injectant under the second perspective;

[0271] A pixel width acquisition module includes:

[0272] A dual-perspective pixel width acquisition sub-module, specifically configured to acquire a first pixel width of the object to be detected under the first perspective in the current strip image and a second pixel width of the object to be detected under the second perspective in the current strip image;

[0273] An injection position determination module includes:

[0274] A dual-perspective injection position determination sub-module, specifically configured to determine the injection positions of the first perspective image and the second perspective image respectively when the first pixel width meets the width injection condition of the first perspective image and the second pixel width meets the width injection condition of the second perspective image;

[0275] An image injection module includes:

[0276] A dual-perspective image injection sub-module, specifically configured to inject at least part of the first perspective image into the strip image under the first perspective and inject at least part of the second perspective image into the strip image under the second perspective according to the injection positions.

[0277] In a possible implementation, the device further includes:

[0278] A remaining pixel length acquisition module, configured to acquire the remaining pixel length of an object to be detected, where the remaining pixel length is the pixel length of the object to be detected in each strip image from the current strip image to the tail strip image, and the tail strip image is the last strip image of the object to be detected;

[0279] A dual-view length injection condition determination module, configured to acquire the image lengths of a first-view image and a second-view image, and determine that the strip images of the object to be detected meet the length injection condition of a preset injectant when the image lengths of the first-view image and the second-view image are both less than the remaining pixel length.

[0280] In a possible implementation manner, the dual-view injection position determination sub-module includes:

[0281] A first injection determination first unit, specifically configured to determine whether a preset injectant has been injected into the previous set of strip images of the current strip image when the first pixel width meets the width injection condition of the first-view image and the second pixel width meets the width injection condition of the second-view image;

[0282] A starting strip number acquisition first unit, specifically configured to acquire the starting strip numbers of the first-view image and the second-view image for injection if the previous set of strip images of the current strip image has not been injected with the preset injectant;

[0283] A starting strip number determination first unit, specifically configured to determine whether the strip indicated by the starting strip number belongs to the current strip image;

[0284] A starting row calculation first sub-module, specifically configured to determine a fourth starting row where the first-view image is injected into the current strip image from the first view and determine a fifth starting row where the object to be detected is injected into the current strip image from the second view when the strip indicated by the starting strip number belongs to the current strip image;

[0285] An insertion part calculation first sub-module, specifically configured to determine a fourth insertion position of the first-view image in the current strip image from the first view according to the fourth starting row; and determine a fifth insertion position of the second-view image in the current strip image from the second view according to the fifth starting row.

[0286] In a possible implementation manner, the apparatus further includes:

[0287] A dual-view starting strip number calculation module, configured to determine the starting strip numbers of the first-view image and the second-view image for injection according to the remaining pixel length and the image lengths of the first-view image and the second-view image;

[0288] A dual-view pixel width acquisition sub-module includes:

[0289] A dual-view pixel width calculation unit, specifically configured to obtain the first pixel width of the object to be detected in the current strip image from the first view and the second pixel width of the object to be detected in the current strip image from the second view when the current strip image is the strip image belonging to the strip represented by the starting strip number or the strip image after the strip image belonging to the strip represented by the starting strip number.

[0290] In a possible implementation, the apparatus further includes:

[0291] A dual-view inserted image determination module, configured to, if a preset injectant has been injected into the previous set of strip images of the current strip image, determine the eighth insertion position and the eighth inserted part of the first-view image in the current strip image from the first view according to the insertion position and the inserted part of the first-view image in the previous set of strip images; determine the ninth insertion position and the ninth inserted part of the second-view image in the current strip image from the second view according to the insertion position and the inserted part of the second-view image in the previous set of strip images;

[0292] A dual-view image injection sub-module, including:

[0293] A dual-view image injection unit, specifically configured to inject the eighth inserted part into the eighth insertion position in the current strip image from the first view to obtain the eighth strip image; inject the ninth inserted part into the ninth insertion position in the current strip image from the second view to obtain the ninth strip image;

[0294] An image display module, including:

[0295] A strip image display sub-module, specifically configured to display the eighth strip image and the ninth strip image.

[0296] In a possible implementation, the apparatus further includes:

[0297] An original strip image display module, configured to, when the strip represented by the starting strip number does not belong to the current strip image, not inject a preset injectant into the current strip image, and display the current strip image from the first view and the current strip image from the second view;

[0298] A loop judgment first module, configured to obtain the next set of strip images as the current strip image, and return to execute the steps: obtain the first pixel width of the object to be detected in the current strip image from the first view and the second pixel width of the object to be detected in the current strip image from the second view.

[0299] In a possible implementation, the apparatus further includes:

[0300] A loop judgment second module, which is used when the previous set of strip images of the current strip image has not been injected with a preset injectant and the first pixel width does not meet the width injection condition of the first perspective image; or, when the previous set of strip images of the current strip image has not been injected with a preset injectant and the second pixel width meets the width injection condition of the second perspective image, return to execute the steps: obtain the remaining pixel length of the object to be detected.

[0301] In a possible implementation manner, the device further includes:

[0302] An injection termination module, which is used when the previous set of strip images of the current strip image has been injected with a preset injectant and the first pixel width does not meet the width injection condition of the first perspective image; or, when the previous set of strip images of the current strip image has been injected with a preset injectant and the second pixel width meets the width injection condition of the second perspective image, terminate the injection of the preset injectant this time;

[0303] A pop-up window display module, which is used to display a pop-up window indicating that the injection of the preset injectant fails, and in response to the user's operation on the pop-up window, refresh and replace the displayed strip image including the preset injectant with a strip image without the preset injectant.

[0304] In a possible implementation manner, the starting strip number is calculated through the following steps:

[0305] ;

[0306] Among them, TipStripeStart represents the starting strip number, TipHeightStart represents the random starting injection position in the length direction, and StripeHeight represents the pixel length of the current strip image.

[0307] TipHeightStar is calculated through the following formula:

[0308] ;

[0309] Among them, rand() represents a random function, PackHeightRemain represents the remaining pixel length of the object to be detected, and TipHeight is the pixel length of the preset injectant image.

[0310] In a possible implementation manner, the starting row is calculated through the following steps:

[0311] ;

[0312] Among them, TipWidthStart represents the starting line, rand() is a random function, TipWidth is the pixel width of the preset injection image to be injected, TipWidthDown represents the lower boundary of the object to be detected in the current strip image, and TipWidthUp represents the upper boundary of the object to be detected in the current strip image.

[0313] By applying the device according to the embodiment of the present application, by judging the length injection condition and width injection condition of the preset injection object for the current strip image of the object to be detected, when the injection condition is met, part of the preset injection object image is directly injected into the current strip image, and the strip image injected with part of the preset injection object image is directly displayed. Compared with waiting to obtain the entire X-ray scan image of the object to be detected and then performing image injection, the device according to the embodiment of the present application can shorten the imaging delay of the security inspection machine.

[0314] The embodiment of the present application also provides an electronic device, such as Figure 10 shown, including

[0315] A memory 1001 for storing a computer program;

[0316] A processor 1002, when executing the program stored on the memory 1001, implements the following steps:

[0317] When the strip image of the object to be detected meets the length injection condition of the preset injection object, obtain the preset injection object image;

[0318] Obtain the pixel width of the object to be detected in the current strip image;

[0319] When the pixel width meets the width injection condition of the preset injection object, determine the injection position of at least part of the preset injection object image;

[0320] According to the injection position, inject at least part of the preset injection object image into the strip image;

[0321] Display the strip image injected with at least part of the preset injection object image.

[0322] The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity of representation, only a thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0323] The communication interface is used for communication between the above-mentioned electronic device and other devices.

[0324] The memory may include a Random Access Memory (RAM), or may also include a Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0325] The aforementioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0326] In another embodiment provided by the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above image display methods are implemented.

[0327] In another embodiment provided by the present application, there is also provided a computer program product containing instructions, which when running on a computer, causes the computer to execute any of the image display methods in the above embodiments.

[0328] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a solid-state disk (SSD), etc.

[0329] It should be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise", or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article, or device that includes the element.

[0330] Each embodiment in this specification is described in a related manner. The same or similar parts among the embodiments can be referred to each other, and the differences between each embodiment and other embodiments are emphasized. In particular, for the embodiments of the device, electronic device, and computer-readable storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0331] The above are only the preferred embodiments of the present application and are not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application are all included in the protection scope of the present application.

Claims

1. An image display method, characterized in that: The method comprises: Acquire the remaining pixel length of the object to be detected, wherein the remaining pixel length is the pixel length of the object to be detected in each strip image from the current strip image to the tail strip image, and the tail strip image is the last strip image of the object to be detected; wherein the strip image is a column signal of the object to be detected output per unit time; Acquire the image length of a preset injection image, and when the image length of the preset injection image is less than the remaining pixel length, acquire the pixel width of the object to be detected in the current strip image; wherein the preset injection image is a single-view image; In the case where the pixel width satisfies the width injection condition of the preset injection object, determining the injection position of at least part of the preset injection object image; Injecting at least a portion of the preset injection material image into the strip image according to the injection position; A strip image is displayed in which at least a portion of the preset injection image is injected.

2. The method according to claim 1, characterized in that In the case where the pixel width satisfies the width injection condition of the preset injection object, determining the injection position of at least part of the preset injection object image; comprising: In the case where the pixel width satisfies the width injection condition of the preset injection object, determining whether a group of strip images before the current strip image has been injected with the preset injection object; If the previous set of strip images of the current strip image has not been injected with the preset injection object, obtaining the starting strip number of the preset injection object image injection; Determine whether the stripe represented by the starting stripe number belongs to the current stripe image; When the strip represented by the starting strip number belongs to the current strip image, the starting row where the preset injection image is injected into the current strip image is determined to obtain a first starting row; based on the first starting row, the first insertion position of the preset injection image in the current strip image is determined.

3. The method according to claim 2, characterized in that The starting stripe number is calculated by the following steps: ; Wherein, the TipStripeStart indicates the starting strip number, the TipHeightStart indicates the random starting injection position in the length direction, and the StripeHeight indicates the pixel length of the current strip image; The TipHeightStart is calculated by the following formula: ; Wherein, the rand() represents a random function, the PackHeightRemain represents the remaining pixel length of the object to be detected, and the TipHeight is the pixel length of the preset injection object image.

4. The method according to claim 2, characterized in that: The starting row is calculated as follows: ; Among them, TipWidthStart represents the starting line, rand() is a random function, TipWidth is the pixel width of the preset injection image to be injected, TipWidthDown represents the lower boundary of the object to be detected in the current strip image, and TipWidthUp represents the upper boundary of the object to be detected in the current strip image.

5. An image display method, characterized in that: The method comprises: Acquire the remaining pixel length of the object to be detected, wherein the remaining pixel length is the pixel length of the object to be detected in each strip image from the current strip image to the tail strip image, and the tail strip image is the last strip image of the object to be detected; wherein the strip image is a column signal of the object to be detected output per unit time; Acquire the image lengths of the first viewing angle image and the second viewing angle image, and when the image lengths of the first viewing angle image and the second viewing angle image are both less than the remaining pixel length, acquire the first pixel width of the object to be detected in the current strip image at the first viewing angle and the second pixel width of the object to be detected in the current strip image at the second viewing angle; wherein the preset injection object image includes the first viewing angle image and the second viewing angle image, the first viewing angle image is the image of the preset injection object at the first viewing angle, and the second viewing angle image is the image of the preset injection object at the second viewing angle; When the first pixel width satisfies a width injection condition of the first viewing angle image, and the second pixel width satisfies a width injection condition of the second viewing angle image, determining respective injection positions of the first viewing angle image and the second viewing angle image; Injecting at least a portion of the first viewing angle image into the strip image at the first viewing angle, and injecting at least a portion of the second viewing angle image into the strip image at the second viewing angle, according to the injection position; A strip image is displayed in which at least a portion of the preset injection image is injected.

6. The method according to claim 5, characterized in that When the first pixel width satisfies a width injection condition of the first viewing angle image, and the second pixel width satisfies a width injection condition of the second viewing angle image, determining respective injection positions of the first viewing angle image and the second viewing angle image, including: When the first pixel width satisfies the width injection condition of the first viewing angle image and the second pixel width satisfies the width injection condition of the second viewing angle image, determining whether a group of strip images before the current strip image has been injected with a preset injection object; If the previous group of strip images of the current strip image has not been injected with the preset injection object, obtaining the starting strip number of the injection of the first viewing angle image and the second viewing angle image; Determine whether the stripe represented by the starting stripe number belongs to the current stripe image; In the case that the strip represented by the starting strip number belongs to the current strip image, the starting row at which the first perspective image is injected into the current strip image at the first perspective is determined to obtain a fourth starting row, and the starting row at which the object to be detected is injected into the current strip image at the second perspective is determined to obtain a fifth starting row; based on the fourth starting row, the fourth insertion position of the first perspective image in the current strip image at the first perspective is determined; based on the fifth starting row, the fifth insertion position of the second perspective image in the current strip image at the second perspective is determined.

7. The method according to claim 5, characterized in that After the step of obtaining the image lengths of the first viewing angle image and the second viewing angle image, and determining that the strip image of the object to be detected meets the injection condition of the preset injection length when the image lengths of the first viewing angle image and the second viewing angle image are both less than the remaining pixel length, the method further includes: Determine a starting strip number for injecting the first viewing angle image and the second viewing angle image according to the remaining pixel length and the image lengths of the first viewing angle image and the second viewing angle image; The step of obtaining a first pixel width of the object to be detected in the current strip image at a first viewing angle and a second pixel width of the object to be detected in the current strip image at a second viewing angle includes: When the current strip image is a strip image to which the strip represented by the starting strip number belongs, or the current strip image is a strip image after the strip image to which the strip represented by the starting strip number belongs, a first pixel width of the object to be detected in the current strip image at a first viewing angle and a second pixel width of the object to be detected in the current strip image at a second viewing angle are obtained.

8. The method according to claim 6, characterized in that After the step of determining whether a group of strip images before the current strip image has been injected with a preset injection substance, the method further includes: If the preset injection material has been injected into the previous group of strip images of the current strip image, determine the eighth insertion position of the first perspective image in the current strip image and the eighth insertion part of the first perspective image at the first perspective according to the insertion position and the insertion part of the first perspective image in the previous group of strip images; determine the ninth insertion position of the second perspective image in the current strip image and the ninth insertion part of the second perspective image at the second perspective according to the insertion position and the insertion part of the second perspective image in the previous group of strip images; Injecting at least part of the first viewing angle image into the strip image at the first viewing angle, and injecting at least part of the second viewing angle image into the strip image at the second viewing angle according to the injection position, comprises: injecting the eighth insertion part into the eighth insertion position in the current strip image at the first viewing angle to obtain the eighth strip image; injecting the ninth insertion part into the ninth insertion position in the current strip image at the second viewing angle to obtain the ninth strip image; The displaying of the strip image injected with at least a portion of the preset injected object image includes: displaying the eighth strip image and the ninth strip image.

9. The method according to claim 6, characterized in that After the step of determining whether the strip represented by the starting strip number belongs to the current strip image, the method further includes: In the case that the strip represented by the starting strip number does not belong to the current strip image, the preset injection object is not injected into the current strip image, and the current strip image of the first viewing angle and the current strip image of the second viewing angle are displayed; The next set of strip images is obtained as the current strip images, and the execution step is returned: a first pixel width of the object to be detected in the current strip image at the first viewing angle and a second pixel width of the object to be detected in the current strip image at the second viewing angle are obtained.

10. The method according to claim 6, characterized in that The method further comprises: When the previous set of strip images of the current strip image did not perform the injection of the preset injection object, and the first pixel width does not meet the width injection condition of the first viewing angle image; or, when the previous set of strip images of the current strip image did not perform the injection of the preset injection object, and the second pixel width meets the width injection condition of the second viewing angle image, return to the execution step: obtain the remaining pixel length of the object to be detected.

11. The method according to claim 6, characterized in that The method further comprises: In the case where a preset injection object is injected into a previous group of strip images of the current strip image and the first pixel width does not satisfy the width injection condition of the first viewing angle image; or in the case where a preset injection object is injected into a previous group of strip images of the current strip image and the second pixel width satisfies the width injection condition of the second viewing angle image, the injection of the preset injection object is terminated; A pop-up window indicating failure of injection of a preset injection is displayed, and in response to a user operation on the pop-up window, the displayed strip image including the preset injection is refreshed and replaced with a strip image without the preset injection.

12. The method according to claim 6, characterized in that The starting stripe number is calculated by the following steps: ; Wherein, the TipStripeStart indicates the starting strip number, the TipHeightStart indicates the random starting injection position in the length direction, and the StripeHeight indicates the pixel length of the current strip image; The TipHeightStart is calculated by the following formula: ; Wherein, the rand() represents a random function, the PackHeightRemain represents the remaining pixel length of the object to be detected, and the TipHeight is the pixel length of the preset injection object image.

13. The method according to claim 6, characterized in that The starting row is calculated as follows: ; Among them, TipWidthStart represents the starting line, rand() is a random function, TipWidth is the pixel width of the preset injection image to be injected, TipWidthDown represents the lower boundary of the object to be detected in the current strip image, and TipWidthUp represents the upper boundary of the object to be detected in the current strip image.

14. An image display device, characterized in that: The device comprises: A remaining pixel length acquisition module is used to acquire the remaining pixel length of the object to be detected, wherein the remaining pixel length is the pixel length of the object to be detected in each strip image from the current strip image to the tail strip image, and the tail strip image is the last strip image of the object to be detected; wherein the strip image is a column signal of the object to be detected output per unit time; A length injection condition judgment module is used to obtain the image length of a preset injection object image, and when the image length of the preset injection object image is less than the remaining pixel length, it is judged that the strip image of the object to be detected meets the length injection condition of the preset injection object; wherein the preset injection object image is a single-view image; A pixel width acquisition module, used for acquiring the pixel width of the object to be detected in the current strip image when the strip image of the object to be detected meets the preset injection condition of the injection object length; An injection position determination module, used for determining an injection position of at least a portion of the preset injection object image when the pixel width satisfies a width injection condition of the preset injection object; An image injection module, used for injecting at least part of the preset injection object image into the strip image according to the injection position; The image display module is used to display a strip image of at least a portion of the preset injection image.

15. An image display device, characterized in that: The device comprises: A remaining pixel length acquisition module, used to acquire the remaining pixel length of the object to be detected, wherein the remaining pixel length is the pixel length of the object to be detected in each strip image from the current strip image to the tail strip image, and the tail strip image is the last strip image of the object to be detected; wherein the strip image is a column signal of the object to be detected output per unit time; A dual-perspective length injection condition judgment module is used to obtain the image lengths of the first perspective image and the second perspective image, and when the image lengths of the first perspective image and the second perspective image are both less than the remaining pixel length, obtain the first pixel width of the object to be detected in the current strip image at the first perspective and the second pixel width of the object to be detected in the current strip image at the second perspective; wherein the preset injection object image includes the first perspective image and the second perspective image, the first perspective image is the image of the preset injection object at the first perspective, and the second perspective image is the image of the preset injection object at the second perspective; A dual-viewing angle injection position determination submodule, specifically configured to determine the injection positions of the first viewing angle image and the second viewing angle image respectively when the first pixel width satisfies the width injection condition of the first viewing angle image and the second pixel width satisfies the width injection condition of the second viewing angle image; A dual-viewing angle image injection submodule, specifically configured to inject at least a portion of the first-viewing angle image into the strip image at the first viewing angle, and inject at least a portion of the second-viewing angle image into the strip image at the second viewing angle, according to the injection position; The image display module is used to display a strip image of at least a portion of the preset injection image.

16. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-13 when executing a program stored in a memory.

Citation Information

Patent Citations

  • Security inspection image-based dangerous article image injection method

    CN110210368A

  • Security check CT image dangerous article implantation method and system

    CN112330656A