Image display method and device and electronic equipment

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.

CN119741395AActive Publication Date: 2025-04-01HANGZHOU RAYIN TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510237933.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-04-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 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 inspection machine and improves security inspection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119741395A_ABST
    Figure CN119741395A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image display method and device and electronic equipment, and is applied to the technical field of image processing. According to the method provided by the embodiment of the invention, the length injection condition and the width injection condition of the preset injection object are judged on the current strip image of the to-be-detected object, and under the condition that the injection conditions are met, part of the preset injection object image is directly injected into the current strip image; compared with image injection after the whole X-ray scanning image of the to-be-detected object is acquired, the method of the embodiment of the invention has the advantage that the imaging delay of the security inspection machine can be shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] A security inspection machine is an electronic device that uses X-ray scanning imaging technology to perform security inspections on objects to be inspected. It includes a radiation source, a collimator, a detector, a conveying mechanism (roller), and an image processing unit. It is widely used in airports, railway stations, subway stations, bus stations, large event venues, and other places.

[0003] In related technologies, the security inspection machine can randomly inject the dangerous goods image into the effective position of the X-ray scan image of the object to be inspected through the TIP (Threat Image Projection) technology, so that the security inspector can judge the safety of the object to be inspected by observing the generated image. Specifically, in the prior art, the entire X-ray scan image of the object to be inspected is collected, and then the dangerous goods image is injected into the X-ray scan image and displayed. Although this method can realize TIP, it will cause a certain delay in the image displayed on the security inspection machine. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an image display method, device and electronic device to shorten the imaging delay of the security inspection machine. The specific technical solution is as follows:

[0005] According to a first aspect of an embodiment of the present application, there is provided an image display method, the method comprising:

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

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

[0008] 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;

[0009] Injecting at least a portion of the preset injection material image into the strip image according to the injection position;

[0010] A strip image is displayed in which at least a portion of the preset injection image is injected.

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

[0012] 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;

[0013] The image length of the preset injection image is obtained, and when the image length of the preset injection 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.

[0014] In a possible implementation manner, when 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 comprises:

[0015] 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;

[0016] 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;

[0017] Determine whether the stripe represented by the starting stripe number belongs to the current stripe image;

[0018] 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.

[0019] In a possible implementation manner, the preset injection image includes a first perspective image and a second perspective image, wherein the first perspective image is an image of the preset injection at the first perspective, and the second perspective image is an image of the preset injection at the second perspective;

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

[0021] Acquire 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;

[0022] The step of determining the injection position of at least a portion of the preset injection object image when the pixel width satisfies the width injection condition of the preset injection object comprises:

[0023] 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;

[0024] The step of injecting at least a portion of the preset injection material image into the strip image according to the injection position comprises:

[0025] According to the injection position, at least a portion of the first viewing angle image is injected into the strip image at the first viewing angle, and at least a portion of the second viewing angle image is injected into the strip image at the second viewing angle.

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

[0027] 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;

[0028] The image lengths of the first viewing angle image and the second viewing angle image are obtained. When the image lengths of the first viewing angle image and the second viewing angle 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 injection object.

[0029] In a possible implementation, 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 includes:

[0030] 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;

[0031] 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;

[0032] Determine whether the stripe represented by the starting stripe number belongs to the current stripe image;

[0033] In the case where the strip represented by the starting strip number belongs to the current strip image, determining a starting row at which the first viewing angle image is injected into the current strip image at a first viewing angle to obtain a fourth starting row, and determining a starting row at which the object to be detected is injected into the current strip image at a second viewing angle to obtain a fifth starting row;

[0034] According to the fourth starting line, a fourth insertion position of the first viewing angle image in the current strip image at a first viewing angle is determined; according to the fifth starting line, a fifth insertion position of the second viewing angle image in the current strip image at a second viewing angle is determined.

[0035] In a possible implementation manner, 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:

[0036] 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;

[0037] 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:

[0038] 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.

[0039] In a possible implementation manner, 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:

[0040] 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;

[0041] 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;

[0042] The displaying of the strip image of at least a portion of the image of the preset injection object 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 represented by the starting strip number belongs to the current strip image, the method further includes:

[0044] 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;

[0045] 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.

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

[0047] 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.

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

[0049] 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;

[0050] 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.

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

[0052] ;

[0053] Among them, 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 by 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 injection object image.

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

[0058] ;

[0059] 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.

[0060] According to a second aspect of the embodiments of the present application, an image display device is provided, the device comprising:

[0061] A preset injection object image acquisition module, used 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;

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

[0063] 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;

[0064] 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;

[0065] The image display module is used to display a strip image of at least a portion of the preset injection image.

[0066] According to another aspect of the present application, an electronic device is provided, including:

[0067] Memory, used to store computer programs;

[0068] The processor is used to implement any of the above-mentioned image display methods when executing the program stored in the memory.

[0069] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the above-mentioned image display methods is implemented.

[0070] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the above-mentioned image display methods.

[0071] Beneficial effects of the embodiments of the present application:

[0072] An image display method, device and electronic device provided in the embodiments of the present application determine the length injection condition and width injection condition of the preset injection object of the current strip image of the object to be detected. When the injection conditions are 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 for the acquisition of the entire X-ray scanning image of the object to be detected before 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 of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0075] Figure 1 A schematic diagram of the scanning principle of the security inspection machine provided in the embodiment of the present application;

[0076] Figure 2 A flow chart of an image display method provided in an embodiment of the present application;

[0077] Figure 3 A schematic diagram for determining the length and width directions provided in an embodiment of the present application;

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

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

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

[0081] Figure 5a A schematic diagram of a security inspection image display interface under a first viewing angle provided in an embodiment of the present application;

[0082] Figure 5b A schematic diagram of a security inspection image display interface under a second viewing angle provided in an embodiment of the present application;

[0083] Figure 6 Another flow chart of the image display method provided in the embodiment of the present application;

[0084] Figure 7 A flow chart of image injection provided in an embodiment of the present application;

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

[0086] Fig. 9 A schematic diagram of the structure of an image display device provided in an embodiment of the present application;

[0087] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0088] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0089] In order to more clearly understand the technical solution of this application, the following is an introduction to the security inspection machine:

[0090] A security inspection machine is an electronic device that uses X-ray scanning imaging technology to perform security inspections on objects to be inspected. It is widely used in airports, railway stations, subway stations, bus stations, large event venues and other places. It includes at least a control system, a hardware system and a data processing system. The control system is mainly used to detect whether there are objects to be inspected entering the security inspection equipment; the hardware system is mainly used to emit and receive rays, and drive the objects to be inspected to move at a certain speed in the security inspection equipment; the data processing system is mainly used to continue processing the collected image data to obtain the image to be displayed, so that the image to be displayed can be displayed on the screen later.

[0091] The control system includes but is not limited to a sensor unit and a control unit. The sensor unit can detect whether the object to be inspected has entered the security inspection equipment, 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 an X-ray machine, an accelerator, a radioactive isotope and other devices that can emit radiation for penetrating the object to be inspected; the detector includes but is not limited to a single-energy detector, a pseudo-dual-energy detector and an energy spectrum detector and other devices for detecting the radiation emitted by the radiation source; the motion transmission mechanism is used to drive the object to be inspected to move in the security inspection equipment at a certain speed, and it often uses various rollers and belts to realize 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] like Figure 1 The figure shows the scanning principle of a security inspection machine. Its scanning mode is a line scanning mode. The imaging process is as follows: the ray source emits X-rays, which are collimated into a fan-shaped beam by a collimator and reach the detector to form a scanning plane; the object to be inspected passes through the scanning plane in a specific direction under the drive of the conveying mechanism (roller); during this process, the detector continuously measures the X-ray signal passing through the object to be inspected, and each measurement time is called an integration time. After each measurement, a column of signals is output, which is called a strip data; the image processing unit splices a series of strip data in the order of collection to generate a security inspection image of the object to be inspected.

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

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

[0095] To solve at least one of the above problems, the present application provides, in a first aspect, an image display method, the method comprising: Figure 2 Steps shown:

[0096] Step S201: When the strip image of the object to be detected meets the injection condition of the preset injection length, a preset injection object image is obtained.

[0097] The object to be detected is an object that needs to be inspected when entering the security inspection machine, and the preset injection image is a preset image of dangerous goods that need to be detected. Dangerous goods are prohibited goods determined according to actual application scenarios. For example, the dangerous goods can be electronic products, flammable and explosive items, controlled knives, liquids, etc. In an example, when the electronic product is a smart phone, the preset injection image corresponding to the smart phone is a stick figure 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 linear scanning is set as the width direction. Figure 3 For 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. 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 at intervals of a unit time, and the column of signals is a strip image. Each strip image includes multiple 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 spliced ​​by multiple strip images. In one example, the image data of the object to be detected is divided into a certain number of strip images according to the size of the object to be detected. When injecting a preset injection image, the remaining pixel length of the image data of the object to be detected must be greater than or equal to the pixel length of the preset injection image. For details, 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, boundary detection can be performed on the current strip image to determine the object to be detected in the current strip image, so as to determine the pixel width of the object to be detected in the current strip image according to the effective area of ​​the object to be detected. In an example, the background noise threshold (BackGroundThreshold) judgment method is used to traverse the pixel values ​​of each row in a top-down or bottom-up direction to determine whether the pixel values ​​of each row are all less than the background threshold. For a row of pixels in the current strip image, if the pixel values ​​of the pixels in the row are all less than the background threshold, it is considered that the row belongs to the effective area of ​​the object to be detected.

[0102] The effective area is composed of one or more continuous rows of pixels. In 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 an 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 satisfies the width injection condition of the preset injection object, determining the injection position of at least part of the preset injection object image.

[0104] In practical applications, the length and width of the preset injection 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 injection image, it is considered that the pixel width of the current strip image meets the width injection condition of the preset injection.

[0105] The preset injection object can be randomly injected into the effective area, but must be completely injected into the effective area. In one example, the random length position and random width position of the preset injection object image in the image data of the object to be detected are calculated respectively, and the preset injection object 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 lines, and the pixel width of the first-view image or the second-view image of the preset injection object is 2 lines, the random width position of the injection may be a random line from the 1st line to the 6th line of the strip image. The random width position may be determined by a random function (rand function), and similarly, the random injection position of the preset injection object image in the length direction may also be calculated by a random function.

[0107] Step S204: injecting at least a portion of the preset injection material image into the strip image according to the injection position.

[0108] When performing image injection, the image injection can be performed using the following formula:

[0109] ;

[0110] Among them, I merge is the image data after injection, I tip is the image data of the preset injection image, I package is the image data of the current strip image, and I0 is the bright field data under the current test conditions. 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 portion of the preset injection image to be injected into the strip image can be determined based on the pixel width or length of the current strip image. In an example, the current strip image includes 24 columns of pixels. When the preset injection image is injected, 24 adjacent columns of pixels are also injected into the current strip image.

[0112] Step S205: displaying a strip image of an image of at least a portion of a preset injection object.

[0113] When displaying the security inspection image, the strip image can be displayed directly after the image injection is completed. When displaying the strip image, the image can be enhanced and colored or the image part corresponding to the preset injection object can be highlighted, so that the security personnel can more easily notice the dangerous goods.

[0114] By applying the method of the embodiment of the present application, the length injection condition and the width injection condition of the preset injection object are judged for the current strip image of the object to be inspected. When the injection conditions are 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 for the acquisition of the entire X-ray scanning image of the object to be inspected 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] In the following, a single-view security inspection machine is used as an example, and the preset injected object 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: Get the remaining pixel length of the object to be detected.

[0117] 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, determine that the strip image of the object to be detected meets the length injection condition of the preset injection object.

[0119] In practical applications, the security inspection machine can also be equipped with photoelectric sensors or cameras to detect whether there are objects to be inspected on the security inspection machine. When the object to be inspected is detected, the total length of the object to be inspected can be calculated based on the speed of the object to be inspected, the time the sensor is blocked, etc. When the detector and the ray source perform a linear scan on the object to be inspected, after each strip image is scanned, the length of a strip image is subtracted from the total length of the object to be inspected, thereby obtaining the remaining pixel length of the object to be inspected.

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

[0121] Step three (step S201 ): when the strip image of the object to be detected meets the injection condition of the preset injection length, a preset injection image is obtained.

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

[0123] Step five (step S203): when 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.

[0124] Step six (step S204): injecting at least a portion of the preset injection material image into the strip image according to the injection position.

[0125] Step seven (step S205): displaying a strip image of an image of at least a portion of a preset injection object.

[0126] 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 conditions in the length direction can be judged based on the remaining pixel length and the length of the preset injection object image, so that injection can be performed only when the preset injection object image meets the injection conditions in the length direction.

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

[0128] Step 1: When the pixel width satisfies the width injection condition of the preset injection object, it is determined whether the previous group of strip images of the current strip image has been injected with the preset injection object.

[0129] In actual applications, there may be multiple objects to be detected that are close to each other or even stacked together passing through the security inspection machine. For example, a photoelectric sensor is installed on the security inspection machine. The photoelectric sensor is used to detect whether there are objects to be detected passing through the security inspection machine, but the accuracy of the photoelectric sensor is low and it cannot distinguish different objects to be detected. Therefore, multiple objects to be detected may be mistaken for one object to be detected.

[0130] In this case, when the subsequent injection condition is judged and injected according to the remaining pixel length, the preset injection image in the previous object to be detected may be injected into the display image of the next object to be detected. To address this problem, the width injection condition can be judged for each scanned current image strip. In actual applications, the contact portion between the two objects to be detected is small, and its pixel width usually does not meet the width injection condition of the preset injection image, thereby avoiding the situation where the preset injection image in the previous object to be detected is injected into the display image of the next object to be detected.

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

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

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

[0134] The starting strip number is the number of the strip image injected for the first time in the length direction. The starting strip number can be calculated by the following formula:

[0135] ;

[0136] Among them, TipStripeStart represents the starting strip number, TipHeightStart is the random starting injection position in the length direction, and StripeHeight represents the pixel length of the current strip 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] Wherein, 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 injection image.

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

[0141] After calculating the starting strip number, determine whether the number of the current strip image is the starting strip number. If so, inject the preset injection image into the current strip image; if not, continue to determine the width injection condition for subsequent strip images until their numbers are consistent with 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.

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

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

[0144] ;

[0145] 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.

[0146] In practical applications, while determining the first insertion position of the preset injection image in the current strip image, the first insertion portion of the preset injection image can also be determined. When determining the first insertion portion, the preset injection image can be divided into segmented images having the same pixel length as the current strip image according to the pixel length of the current strip image, and the segmented images to be inserted into the current strip image can be determined according to the order of the segmented images. For example, if the current strip image is a strip image injected for the first time, the first insertion portion is the first segmented image.

[0147] The first insertion position is a position range from the first starting line to the first injection ending line of the current strip image, wherein the first injection ending line is a pixel row corresponding to the first starting line plus a pixel width of a preset injection object image.

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

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

[0150] When performing image injection, the image data of the injected strip image can be calculated by the image injection formula in the above embodiment, thereby realizing image injection. The first insertion part of the preset injection image is injected according to the first insertion position of the current strip image to obtain the first strip image, and then the first strip image is displayed to shorten the imaging delay of the security inspection machine.

[0151] By applying the method of the embodiment of the present application, the width injection condition can be first determined for the strip image of the object to be detected, and then the starting strip number can be determined, thereby avoiding the situation where the preset injection object image of the previous object to be detected is mistakenly injected into the image of the next object to be detected due to the close distance between multiple objects to be detected, thereby improving the accuracy of the image injection position and further improving the accuracy of object detection.

[0152] In another possible implementation, if the device used in the security inspection machine to determine whether an object to be inspected has passed through the security inspection machine is a high-precision sensor such as a camera, wherein the high-precision sensor can distinguish different objects to be inspected that are close to each other, then for the image data of an object to be inspected, the starting strip number can be determined first, and then the injection condition can be determined. In one example, after step 2 of the above embodiment, another embodiment of the present application further includes the following steps:

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

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

[0155] Step B: when the current strip image is the strip image to which the strip indicated by the starting strip number belongs, or the current strip image is the strip image after the strip image to which the strip indicated by the starting strip number belongs, obtain the pixel width of the object to be detected in the current strip image.

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

[0157] In an example, the imaging of an object to be detected is composed of 5 groups of strip images, the length of the preset injection 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 image, but also meets the number corresponding to the starting strip number or the number after the starting strip number, so that the pixel width of the object to be detected in the current strip image can continue to be obtained, and then the width injection condition of the preset injection image can be judged.

[0158] By applying the method of the embodiment of the present application, the starting strip number is first calculated, and then the width injection condition is judged. 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 image processing time and improving image injection efficiency.

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

[0160] Step a: When the pixel width satisfies the width injection condition of the preset injection object image, it is determined whether the previous group of strip images of the current strip image has been injected with the preset injection object.

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

[0162] Step c: Determine a second insertion position of the preset injection object image in the current strip image and a second insertion portion of the preset injection object image according to the second starting row.

[0163] Then step S204 is implemented by the following steps:

[0164] Step d: injecting the second insertion portion into the second insertion position in the current strip image to obtain a second strip image.

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

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

[0167] An example is used to illustrate the image display method in the embodiment 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 image is 3, and the width is 2, then the remaining pixel length meets the length injection condition of the preset injection. At this time, the random position in the length direction is calculated, that is, the starting strip number. If the starting strip number is 3, the number of the current strip image is not the starting strip number or the number after the starting strip number, then continue to judge the strip image of the next group.

[0168] If the current strip image is numbered 4, which is the number after the starting strip number, the width injection condition of the strip image is judged. If it is met, the image is injected; if the width injection condition is not met, 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, its number is the starting strip number, then the width injection condition of the strip image is judged. If it is satisfied, since the 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 image in the 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 that the second strip image is displayed when the image is displayed. If it is not satisfied, the injection fails, and it is necessary to return to the judgment of the next set of strip data. At this time, the calculated starting strip number needs to be cleared.

[0170] Among them, the calculation method of the second starting line, the second insertion position, and the second insertion part of the embodiment of the present application; the judgment method of the width injection condition and the image injection method are the same as the above-mentioned embodiments and will not be repeated here.

[0171] By applying the method of the embodiment of the present application, the starting strip number is first calculated, and then the width injection condition is judged. 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 image processing time and improving image injection efficiency.

[0172] For the current strip image which is not injected for the first time, if the current strip image satisfies both the length injection condition and the width injection condition of the preset injection object image, the injection of the preset injection object image can be realized by the following steps:

[0173] Step (1): If the previous set of strip images of the current strip image has been injected with a preset injection object, determine the third insertion position of the preset injection object image in the current strip image and the third insertion part of the preset injection object image based on the insertion position and insertion part of the preset injection object image in the previous set of strip images.

[0174] Then step S204 is implemented by the following steps:

[0175] Step (2): injecting the third insertion portion into the third insertion position in the current strip image to obtain a third strip image.

[0176] Then step S204 is implemented by the following steps:

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

[0178] When the current strip image is injected for the first time, it is necessary to calculate the first starting row or the second starting row. If the current strip image is not injected for the first time, it is not necessary to calculate the starting row, and the insertion is performed directly according to the insertion position of the previous set of strip images. Among them, the third insertion position and the third insertion part need to be determined according to the insertion position and insertion part of the previous set of strip images of the current strip image to ensure that the injected image data is consistent, avoid confusion in the injected image, and ensure the integrity of the injected image. In an example, the third insertion part can be determined according to the image segmentation order of the preset injection image. For example, the current strip image is numbered 3. If the inserted part of the preset injection image of the second set of strip images is the first segmentation image of the preset injection image, then the third insertion part to be inserted into the current strip image is the second segmentation image of the preset injection image.

[0179] The upper and lower boundaries of the non-first inserted strip image should meet the following requirements:

[0180] ;

[0181] ;

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

[0183] By applying the method of the embodiment of the present application, when the current strip image is not injected for the first time, the insertion position and insertion part of the preset injection object image in the current strip image can be determined directly based on the insertion position and insertion part of the previous set of strip images, and the starting line is no longer calculated, thereby injecting and displaying the preset injection object image.

[0184] In practical applications, since the starting strip number is a randomly calculated position, the preset injection image can randomly appear in the scanned image of the object to be detected. Figures 4a to 4c As shown, the detected object is a suitcase, and the image framed by dotted lines in the figure is a preset injected object image, which can be randomly injected into any position in the suitcase space.

[0185] Compared with single-view security inspection machines, dual-view security inspection machines can scan and image the objects to be inspected from both horizontal and vertical directions through two sets of independent radiation sources and detectors, thereby avoiding the difficulty of reading images due to overlapping objects and improving the accuracy of object detection. However, for dual-view security inspection machines, since the image is injected at a random position at each viewing angle, there may be a situation where the positions of the preset injected object images in the scanned images corresponding to the two viewing angles are inconsistent, which does not conform to the actual scanning situation and results in poor object injection effect.

[0186] In response to the above situation, if the security inspection machine is a dual-perspective security inspection machine, the preset injected object image includes a first perspective image and a second perspective image, wherein the first perspective image is the image of the preset injected object at the first perspective, and the second perspective image is the image of the preset injected object at the second perspective.

[0187] The first perspective is different from the second perspective, and can be the main perspective, top view or side view of the object to be detected. In an example, if the object to be detected passes through the security inspection machine from left to right, the radiation source can be installed above and in front of the security inspection machine respectively. When the object to be detected passes through these two radiation 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 in the object to be detected, the front view and top view of the preset injection are obtained, that is, the first perspective image and the second perspective image.

[0188] The image display method of 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 injection condition of the preset injection length, obtaining a preset injection object image.

[0190] Step B2, 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.

[0191] Step B3: 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 the respective injection positions of the first viewing angle image and the second viewing angle image.

[0192] Step B4: 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.

[0193] Step B5, displaying the strip image injected into the first viewing angle image, and displaying the strip image injected into the second viewing angle image.

[0194] Similar to the corresponding embodiment of the single-view security inspection machine, for each viewing angle, boundary detection can be performed on the current strip image of the object to be detected at that viewing angle to determine the effective area of ​​the object to be detected at the two viewing angles, thereby determining the pixel width of the current strip image of the object to be detected at the two viewing angles, i.e., the first pixel width and the second pixel width, based on the effective area.

[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 at the first perspective, and the length and width of the second perspective image of the preset injection object at 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 viewing angle, the same method as the corresponding embodiment of the above-mentioned single-view security inspection machine is adopted to determine the injection positions of the first viewing angle image and the second viewing angle image 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 be performed or the image portion corresponding to the preset injection object can be highlighted, so that the security personnel can more easily notice the dangerous goods. Figure 5a and Figure 5b As shown, Figure 5a The image data after the first-view image is injected into the first-view image. Figure 5b After the image data of the second perspective is injected into the second perspective, the position of the dangerous goods under the dual perspectives can be seen on the display interface of the security inspection machine, and the two positions correspond to each other, so as to determine that there is only one dangerous goods in the object to be detected.

[0198] By applying the method of the embodiment of the present application, the image of the preset injection object image can be injected by calculating the injection position 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, thereby ensuring that the position of the preset injection object image at the two perspectives corresponds consistently, improving the accuracy of the display of the preset injection object image, and further improving the accuracy of object detection.

[0199] In a possible implementation, the injection condition determination in the length direction may be achieved by the following steps:

[0200] The remaining pixel length of the object to be detected is obtained; the image lengths of the first perspective image and the second perspective image are obtained, and 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 injection object. 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 conditions in the length direction can be judged according to the remaining pixel length and the lengths of the first perspective image and the second perspective image, so that the preset injection object can be injected only when the injection conditions are met in the length direction.

[0202] In a possible implementation manner, the injection positions of the first-view image and the second-view image may be calculated by the following steps:

[0203] Step B31: 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, determine whether the previous group of strip images of the current strip image has been injected with the preset injection object.

[0204] Step B32: If the previous set of strip images of the current strip image has not been injected with the preset injection object, the starting strip number of the injection of the first-view image and the second-view image is obtained.

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

[0206] Step B34: When the strip represented by the starting strip number belongs to the current strip image, determine the starting row at which the first perspective image is injected into the current strip image under the first perspective to obtain the fourth starting row, and determine the starting row at which the object to be detected is injected into the current strip image under the second perspective to obtain the fifth starting row.

[0207] Step B35: According to the fourth starting line, determine the fourth insertion position of the first perspective image in the current strip image under the first perspective and the fourth insertion part of the first perspective image; according to the fifth starting line, determine the fifth insertion position of the second perspective image in the current strip image under the second perspective and the fifth insertion part of the second perspective image.

[0208] Step B4 can be achieved by the following steps:

[0209] Step B41: injecting the fourth insertion part into the fourth insertion position of the current strip image of the first viewing angle to obtain the fourth strip image; injecting the fifth insertion part into the fifth insertion position of the current strip image of the second viewing angle to obtain the fifth strip image.

[0210] Step B5 may specifically include: displaying the fourth strip image and the fifth strip image.

[0211] In the case where the current strip image is injected for the first time, the starting strip number of the first-view image and the second-view image is obtained. When obtaining the starting strip number, it can be determined whether the starting strip number has been calculated in advance. If the starting strip number of the first-view image and the second-view image has been calculated, the starting strip number is obtained; if the starting strip number of the first-view image and the second-view image has not been calculated, the starting strip number is calculated based on the remaining pixel length and the image length of the first-view image and the second-view image. Among them, the starting strip number can be calculated by the same method as the corresponding embodiment of the single-view security inspection machine, which will not be repeated here.

[0212] After obtaining the starting strip number, determine whether the number of the current strip image is the starting strip number. If so, execute step B34; if not, continue to determine the width injection condition for subsequent strip images until their numbers are consistent with 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 method of the fourth starting row, the fourth insertion position, the fourth insertion part, the fifth starting row, the fifth insertion position, and the fifth insertion part is the same as the calculation method in the corresponding embodiment of the single-view security inspection machine, and will not be repeated here.

[0214] In a possible implementation manner, if the strip indicated 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;

[0215] 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.

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

[0217] In an example, an image display method in an embodiment of the present application is described. Figure 6 When the photoelectric sensor detects the appearance of the object to be detected, the roller starts to rotate, driving the object to be detected to move 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 starts to scan the image data, and the data processing system starts to collect image scanning data.

[0218] When the open source signal is sent, a TIP (Threat Image Projection) signal (i.e., triggering the preset injection signal) will also be sent. At this time, the scanned image data will enter the data processing system for processing. In practical applications, this step has obtained the total pixel length of the object to be detected and the length and width of the first-view image and the second-view image. 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-view image or the second-view image is injected. In practical applications, the injection related parameters also include the dual-view initial state parameters. During initialization, 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. Due to differences in scintillator processing and defects in readout electronics, each detection unit has different response values ​​to X-rays of the same intensity. Therefore, it is necessary to collect bright field data and dark field data to correct the original data, as well as to correct image deformation problems caused by geometric structures. At the same time, the first-view image and the second-view image of the preset injection object also need to be preprocessed in the same way to ensure the consistency of the image after injection.

[0220] After preprocessing each image (scanning data preprocessing and TIP image data preprocessing), image injection begins, and after injection, the image is enhanced and colored, and the processed image is displayed. When all images are injected, the TIP end signal is returned to the system. At this time, the next TIP injection signal can be received (the system will not send the TIP injection signal again when TIP is in progress). If TIP is not finished, it returns to continue preprocessing each image and injecting the image.

[0221] The injection process of the first-view image or the second-view image is as follows: Figure 7 As 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 determined whether the current strip image meets the width injection condition of the first perspective image or the second perspective image. If not, the next set of strip images is determined. When determining the initial state of the dual perspectives, the pixel length with the smaller remaining 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 condition, that is, when it is determined that the dual-view initial state parameters of the current strip image at the first viewing angle and the current strip image at the second viewing angle are both Ready, the starting strip number of the first viewing angle image and the second viewing angle image for injection is obtained. It is determined whether the number of the current strip image is the starting strip number, that is, it is determined whether the current strip image is injected for the first time. If so, it is necessary to calculate the fourth insertion position and the fifth insertion position, and inject the image according to the insertion position; if not, it can be directly injected according to the injection position of the previous group of strip images, and the starting injection position is no longer calculated.

[0223] By using the method of the embodiment of the present application, the injection position can be calculated after the width injection condition is determined, thereby avoiding the situation where the preset injection image of the previous object to be detected is mistakenly injected into the image of the next object to be detected due to the close distance between multiple objects to be detected, thereby improving the accuracy of the image injection position, and thus improving the accuracy of object detection. When the current strip image under two viewing angles meets the injection condition, the image injection is performed again, which can ensure that the position of the preset injection image in the images under the two viewing angles corresponds to each other, thereby improving the accuracy of the preset injection display, thereby improving the accuracy of object detection.

[0224] In a possible implementation, if the device used in the security inspection machine to determine whether the object to be detected is present is a high-precision sensor such as a camera, wherein the high-precision sensor can distinguish different objects to be detected that are close to each other, then for the image data of an object to be detected, the random position for image injection can be calculated first, and then the injection condition can be determined. In one example, after the above determination that the strip image of the object to be detected meets the injection condition of the preset injection object length, another embodiment of the present application further includes the following steps:

[0225] Step C1: Determine the starting strip number 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 a strip image to which the strip indicated by the starting strip number belongs, or the current strip image is a strip image after the strip image to which the strip indicated by the starting strip number belongs, obtain 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.

[0227] Step C3: 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.

[0228] Step C4: 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.

[0229] Step C5, displaying the strip image injected into the first viewing angle image, and displaying the strip image injected into the second viewing angle image.

[0230] In the embodiment of the present application, the random injection position in the length direction is first calculated to obtain the starting stripe number for the first and second perspective images to be injected. Starting from the stripe image corresponding to the starting stripe number, the first pixel width and the second pixel width are obtained to determine the width injection condition.

[0231] By applying the method of the embodiment of the present application, the injection position is first determined, and then the injection conditions are determined. Compared with the above embodiment, it is possible to avoid determining the injection conditions for each group of strip images, thereby reducing the waste of computing power and image processing time, and improving image injection efficiency.

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

[0233] Step C31: 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, determine whether the previous group of strip images of the current strip image has been injected with the preset injection object.

[0234] Step C32: If the previous group of strip images of the current strip image has not been injected with the preset injection object, determine the starting row of the first perspective image injected into the current strip image under the first perspective to obtain the sixth starting row, and determine the starting row of the object to be detected in the current strip image under the second perspective to obtain the seventh starting row.

[0235] Step C33: Determine the sixth insertion position of the first perspective image in the current strip image and the sixth insertion part of the first perspective image under the first perspective according to the sixth starting line; determine the seventh insertion position of the second perspective image in the current strip image and the seventh insertion part of the second perspective image under the second perspective according to the seventh starting line.

[0236] Step C4 specifically includes: injecting the sixth insertion part into the sixth insertion position of the current strip image of the first viewing angle to obtain the sixth strip image; injecting the seventh insertion part into the seventh insertion position of the current strip image of the second viewing angle to obtain the seventh strip image.

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

[0238] Similarly, the manner of calculating the sixth starting line, the seventh starting line, the sixth insertion position, the sixth insertion portion, the seventh insertion position, the seventh insertion portion and performing image injection is the same as that of the above embodiment and will not be described again herein.

[0239] like Figure 8 As shown, first obtain the remaining pixel length of the object to be detected, perform a length injection condition judgment of the preset injection object, and judge whether the remaining pixel length meets the length injection condition of the preset injection object. If not, return to the previous step. If so, obtain the starting strip number of the first perspective image and the second perspective image injection. Determine whether the number of the current strip image under the first perspective and the second perspective is the starting strip number or the number 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 width injection condition judgment. 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] By applying the method of the embodiment of the present application, the starting strip number is first determined, and then the injection condition is determined. Compared with the above embodiment, it is possible to avoid determining the injection condition for each group of strip images, thereby reducing the waste of computing power and image processing time and improving image injection efficiency.

[0241] In a possible implementation manner, 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 of the embodiment of the present application further includes the following steps:

[0242] Step C34: If the previous group of strip images of the current strip image has been injected with the preset injection material, determine the eighth insertion position of the first perspective image in the current strip image at the first perspective and the eighth insertion part of the first perspective image 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 at the second perspective and the ninth insertion part of the second perspective image according to the insertion position and the insertion part of the second perspective image in the previous group of strip images.

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

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

[0245] By applying the method of the embodiment of the present application, when the current strip image is not injected for the first time, the image can be injected directly according to the injection position of the previous set of strip images without calculating the starting row, thereby realizing the image injection of the preset injection product.

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

[0247] When the previous set of strip images of the current strip image did not undergo injection of the preset injection object, and the first pixel width does not satisfy 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 undergo injection of the preset injection object, and the second pixel width satisfies 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.

[0248] If the current strip image is injected for the first time, but the first pixel width or the second pixel width does not meet the width injection condition, the injection will fail, and the calculation of the remaining pixel length will be returned again. In actual applications, when the injection of the strip image injected for the first time fails, the injection can also be directly abandoned, and an injection failure signal is sent to the system to wait for the user to perform relevant operations.

[0249] In one example, when returning to the execution step: obtaining the remaining pixel length of the object to be detected, the pre-calculated starting strip number needs to be cleared. For example, if the pre-calculated starting strip number is the third group of strip images, then when the current strip image is the third 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 judgment of the fourth group of strip images continues. However, when judging the injection condition of the fourth group of strip images, it is necessary to clear the calculated starting strip number (i.e., the third group of strip images) and recalculate the starting strip number.

[0250] By applying the method of the embodiment of the present application, when the current strip image does not meet the width injection condition, the judgment of the next group of strip images is returned and the starting strip number is recalculated, thereby avoiding the influence of the pre-calculated starting strip number of the strip image that failed to be injected on the subsequent image injection, thereby 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] In the case where the previous set of strip images of the current strip image has been injected with a preset injection and the first pixel width does not meet the width injection condition of the first-viewing angle image; or, in the case where the previous set of strip images of the current strip image has been injected with a preset injection and the second pixel width meets the width injection condition of the second-viewing angle image, the injection of the preset injection is terminated. A pop-up window indicating the failure of the injection of the preset injection is displayed, and in response to the user's operation on the pop-up window, the strip image including the preset injection that has been displayed is refreshed and replaced with a strip image without the preset injection.

[0253] In actual applications, the first-view image or the second-view image is injected during the scanning process of the object to be detected. Therefore, it may happen that the previous set of strip images meets the injection conditions, and the current strip image does not meet the width injection conditions when the image injection has been performed, resulting in the failure of image injection. In this case, the image injection is terminated and an error is reported. The error can be a pop-up window on the display interface of the security inspection machine to indicate that the image injection failed.

[0254] After seeing the pop-up window, the user can perform relevant operations on the pop-up window, which can be closing the pop-up window or clicking the relevant operation button that appears in the pop-up window. After recognizing that the user has operated the pop-up window, the security inspection machine responds to the operation by refreshing the currently displayed image injection failure interface and replacing the current strip image that has failed to be injected with a strip image that has not yet been injected with the first-view image or the second-view image.

[0255] By applying the method of the embodiment of the present application, an error message can be given through a pop-up window when image injection fails, so that the user can notice the image injection failure and perform relevant operations in time to refresh the display of the strip image that has not been injected, thereby avoiding the display of the erroneous image injection strip image, which affects the accuracy of object judgment.

[0256] According to a second aspect of the present application, an image display device is provided. The device includes: Fig. 9 The structure shown:

[0257] A preset injection object image acquisition module 901 is used 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] The pixel width acquisition module 902 is used 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 an injection position of at least a portion of a preset injection object image when the pixel width satisfies a width injection condition of a preset injection object;

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

[0261] The image display module 905 is used to display a strip image of an image of at least a portion of a preset injection object.

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

[0263] The 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;

[0264] The length injection condition judgment module is used to 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.

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

[0266] The injection state judgment submodule is specifically used to judge whether the previous group of strip images of the current strip image has been injected with the preset injection object when the pixel width meets the width injection condition of the preset injection object;

[0267] The starting strip number acquisition submodule is specifically used to acquire the starting strip number of the preset injection image injection if the previous set of strip images of the current strip image has not been injected with the preset injection object;

[0268] The starting strip number determination submodule is specifically used to determine whether the strip represented by the starting strip number belongs to the current strip image;

[0269] The first starting row determination submodule is specifically used to determine the starting row where the preset injection image is injected into the current strip image to obtain the 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 injection image in the current strip image based on the first starting row.

[0270] In a possible implementation, the preset injection image includes a first perspective image and a second perspective image, wherein the first perspective image is an image of the preset injection at a first perspective, and the second perspective image is an image of the preset injection at a second perspective;

[0271] Pixel width acquisition module, including:

[0272] The dual-viewing angle pixel width acquisition submodule is specifically used to acquire 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;

[0273] The injection position determination module includes:

[0274] The dual-viewing angle injection position determination submodule is specifically used 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;

[0275] Image injection module, including:

[0276] The dual-view image injection submodule is specifically used to inject at least part of the first-view image into the strip image under the first view according to the injection position, and inject at least part of the second-view image into the strip image under the second view.

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

[0278] The 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;

[0279] The dual-viewing angle length injection condition judgment module is used to obtain the image lengths of the first-viewing angle image and the second-viewing angle image. When the image lengths of the first-viewing angle image and the second-viewing angle 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 injection object.

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

[0281] The first first injection judgment unit is specifically used to judge whether a group of strip images before the current strip image has been injected with a preset injection object when the first pixel width meets the width injection condition of the first viewing angle image and the second pixel width meets the width injection condition of the second viewing angle image;

[0282] The first unit for obtaining the starting strip number is specifically used to obtain the starting strip numbers for injecting the first viewing angle image and the second viewing angle image if the previous group of strip images of the current strip image has not been injected with the preset injection object;

[0283] A first starting strip number determination unit is specifically used to determine whether the strip represented by the starting strip number belongs to the current strip image;

[0284] The first submodule for calculating the starting line is specifically used to determine the starting line at which the first viewing angle image is injected into the current strip image under the first viewing angle to obtain a fourth starting line, and to determine the starting line at which the object to be detected is injected into the current strip image under the second viewing angle to obtain a fifth starting line, when the strip represented by the starting strip number belongs to the current strip image;

[0285] The insertion part calculates the first submodule, which is specifically used to determine the fourth insertion position of the first perspective image in the current strip image under the first perspective according to the fourth starting line; and determine the fifth insertion position of the second perspective image in the current strip image under the second perspective according to the fifth starting line.

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

[0287] A dual-view starting strip number calculation module, used to determine the starting strip number of the first-view image and the second-view image injected according to the remaining pixel length and the image length of the first-view image and the second-view image;

[0288] The dual-view pixel width acquisition submodule includes:

[0289] The dual-viewing angle pixel width calculation unit is specifically used to obtain 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 when the current strip image is the strip image to which the strip indicated by the starting strip number belongs, or the current strip image is the strip image after the strip image to which the strip indicated by the starting strip number belongs.

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

[0291] A dual-view insertion image determination module is used to determine, if a previous group of strip images of the current strip image has been injected with a preset injection object, the eighth insertion position of the first-view image in the current strip image and the eighth insertion part of the first-view image at the first viewing angle according to the insertion position and the insertion part of the first-view image in the previous group of strip images; and the ninth insertion position of the second-view image in the current strip image and the ninth insertion part of the second-view image at the second viewing angle according to the insertion position and the insertion part of the second-view image in the previous group of strip images;

[0292] Dual-view image injection submodule, including:

[0293] The dual-viewing angle image injection unit is specifically configured to inject the eighth insertion portion into the eighth insertion position of the current strip image of the first viewing angle to obtain the eighth strip image; and inject the ninth insertion portion into the ninth insertion position of the current strip image of the second viewing angle to obtain the ninth strip image;

[0294] Image display module, including:

[0295] The strip image display submodule is specifically used to display the eighth strip image and the ninth strip image.

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

[0297] The original strip image display module is used for not injecting the preset injection object into the current strip image when the strip represented by the starting strip number does not belong to the current strip image, and displaying the current strip image of the first viewing angle and the current strip image of the second viewing angle;

[0298] The first module is judged cyclically to obtain the next set of strip images as the current strip images, and return to the execution step: obtaining the first pixel width of the object to be detected in the current strip image under the first viewing angle and the second pixel width of the object to be detected in the current strip image under the second viewing angle.

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

[0300] The second module of loop judgment is used to return to the execution step of obtaining the remaining pixel length of the object to be detected when the preset injection object has not been injected into the previous group of strip images of the current strip image and the first pixel width does not meet the width injection condition of the first viewing angle image; or when the preset injection object has not been injected into the previous group of strip images of the current strip image and the second pixel width meets the width injection condition of the second viewing angle image.

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

[0302] The injection termination module is used to terminate the injection of the preset injection object when 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 viewing angle image; or when 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 viewing angle image;

[0303] The pop-up window display module is used to display a pop-up window indicating that the preset injection has failed. In response to the user's operation on the pop-up window, the strip image including the preset injection that has been displayed is refreshed and replaced with a strip image without the preset injection.

[0304] In a possible implementation manner, the starting stripe number is calculated by 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 using 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 injection image.

[0310] In a possible implementation, the starting row is calculated by 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 using the device of the embodiment of the present application, the length injection condition and the width injection condition of the preset injection object are judged for the current strip image of the object to be inspected. When the injection conditions are 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 scanning image of the object to be inspected and then performing image injection, the device of the embodiment of the present application can shorten the imaging delay of the security inspection machine.

[0314] The present application also provides an electronic device, such as Fig.10 Shown, including

[0315] Memory 1001, used for storing computer programs;

[0316] The processor 1002 is used to implement the following steps when executing the program stored in the memory 1001:

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

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

[0319] When the pixel width satisfies a width injection condition of a preset injection object, determining an injection position of at least a portion of the preset injection object image;

[0320] Injecting at least a portion of the preset injection material image into the strip image according to the injection position;

[0321] A strip image showing an image of at least a portion of a preset injectate being injected.

[0322] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one 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 electronic device and other devices.

[0324] The memory may include a random access memory (RAM) or 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 above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can 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 in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned image display methods are implemented.

[0327] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any image display method 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 process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may 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 may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.

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

[0330] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, and computer-readable storage medium embodiments, 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 description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. An image display method, characterized in that: The method comprises: When the strip image of the object to be detected meets the length injection condition of the preset injection object, obtaining a preset injection object image; Obtaining the pixel width of the object to be detected in the current strip 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 The preset injection image is a single-view image, and the method further includes: 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; The image length of the preset injection object image is obtained, and 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.

3. The method according to claim 2, 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.

4. The method according to claim 1, characterized in that: The preset injection image includes a first perspective image and a second perspective image, wherein the first perspective image is an image of the preset injection at the first perspective, and the second perspective image is an image of the preset injection at the second perspective; The step of obtaining the pixel width of the object to be detected in the current strip image includes: Acquire 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; The step of determining the injection position of at least a portion of the preset injection object image when the pixel width satisfies the width injection condition of the preset injection object comprises: 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; The step of injecting at least a portion of the preset injection material image into the strip image according to the injection position comprises: According to the injection position, at least a portion of the first viewing angle image is injected into the strip image at the first viewing angle, and at least a portion of the second viewing angle image is injected into the strip image at the second viewing angle.

5. The method according to claim 4, characterized in that The method further 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; The image lengths of the first viewing angle image and the second viewing angle image are obtained. When the image lengths of the first viewing angle image and the second viewing angle 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 injection object.

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 3 or 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 TipHeightStar 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 3 or 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 preset injection object image acquisition module, used 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; A pixel width acquisition module, used to acquire the pixel width of the object to be detected in the current strip image; 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 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

  • Dangerous article image rapid insertion method and system of safety inspection CT system

    CN110579496A

  • Security check CT image dangerous article implantation method and system

    CN112330656A

  • Dangerous article image insertion method and system for security check CT

    CN113935975A

  • Contraband detection method and device based on dual-view security check image

    CN115512155A