A package data analysis method and device, a terminal device, and a storage medium

By merging and analyzing the fragmented data, the problems of missed detection and false detection caused by inaccurate package sub-packaging were solved, thus improving the accuracy of the security inspection system.

CN116721407BActive Publication Date: 2026-01-09PCI TECH & SERVICE CO LTD +3
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310598624.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2026-01-09
Estimated Expiration
2043-05-24

AI Technical Summary

Technical Problem

In existing security inspection systems for urban rail transit, errors in the sub-packaging algorithm and the influence of the X-ray machine's image output environment lead to inaccurate package sub-packaging, resulting in the splitting of connected packages, which increases the rate of missed detection and false detection.

Method used

By receiving the segmented data sent by the X-ray machine, it is determined whether the target package needs to be superimposed on the previous package. If it is determined that it is necessary, the segmented data is merged, the data analysis process is executed, and the image judgment process is determined based on the analysis results.

Benefits of technology

It reduced the rate of missed and false detections of packages, minimized interference with image interpretation by image interpreters, and improved the accuracy of security checks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116721407B_ABST
    Figure CN116721407B_ABST
Patent Text Reader

Abstract

The application discloses a parcel data analysis method and device, a terminal equipment and a storage medium. The application merges the parcel data and the parcel data of the previous parcel to obtain the merged parcel data by judging whether the target parcel needs to be stacked on the previous parcel. Then, the data analysis process is performed on the merged parcel data, and the first security analysis result corresponding to the target parcel is determined according to the data analysis result. Finally, whether the merged parcel data needs to be executed according to the first security analysis result and the second security analysis result of the previous parcel. The parcel data is merged, the parcel data that is misclassified due to the parcel algorithm error or the parcel length exceeding the maximum parcel length is merged into the parcel data of the previous parcel, and the parcel data after merging is analyzed, so that the parcel analysis interference on the parcel analyst is reduced, and the parcel missed detection rate and the parcel misjudgment rate are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the field of intelligent security check, and in particular to a parcel data analysis method and device, a terminal device and a storage medium. BACKGROUND

[0002] Currently, in order to reduce the cost of security check, the security check system in the urban rail transit system generally adopts a centralized image interpretation mode, divides the X-ray pictures of the parcels, and then distributes the divided data to different centralized image interpreters for image interpretation through centralized task scheduling. However, due to the influence of the existing division algorithm error and the X-ray machine image output environment, when the division is inaccurate or a large number of continuous parcels need to be divided for division, the same parcel may be divided into two parcels and sent to the centralized image interpreter for image interpretation, which may interfere with the accuracy of image interpretation by the centralized image interpreter and increase the miss rate and the misjudgment rate of the parcel.

[0003] To sum up, how to reduce the miss rate and the misjudgment rate of the parcel in the centralized image interpretation in the prior art has become a technical problem to be solved at present. SUMMARY

[0004] Embodiments of the present application provide a parcel data analysis method and device, a terminal device and a storage medium, which can reduce the miss rate and the misjudgment rate of the parcel in the centralized image interpretation in the prior art.

[0005] In a first aspect, embodiments of the present application provide a parcel data analysis method, comprising:

[0006] receiving the divided data of the target parcel sent by the X-ray machine, the target parcel being a parcel currently scanned by the X-ray machine;

[0007] when the last divided data of the target parcel sent by the X-ray machine is received, determining whether the target parcel needs to be superimposed on the last parcel according to a superimposition rule;

[0008] if so, merging the divided data of the target parcel with the divided data of the last parcel to obtain the merged divided data of the merged parcel;

[0009] performing a data analysis process on the merged divided data to obtain a data analysis result of the target parcel;

[0010] determining a first security check analysis result of the target parcel according to the data analysis result of the target parcel;

[0011] determining whether to perform an image interpretation process on the merged parcel according to the first security check analysis result and a second security check analysis result of the last parcel;

[0012] If needed to be executed, the image judging process is executed on the merged parcel.

[0013] In a second aspect, embodiments of the present application provide a parcel data analysis apparatus, comprising:

[0014] a data receiving module configured to receive slice data of a target parcel sent by an X-ray machine, the target parcel being a parcel currently scanned by the X-ray machine;

[0015] a superposition determining module configured to determine, when receiving the last slice data of the target parcel sent by the X-ray machine, whether the target parcel needs to be superposed to a previous parcel according to a superposition rule;

[0016] a data merging module configured to, if the target parcel needs to be superposed to the previous parcel, merge the slice data of the target parcel with slice data of the previous parcel to obtain merged slice data of a merged parcel;

[0017] a data analysis module configured to execute a data analysis process on the merged slice data to obtain a data analysis result of the target parcel;

[0018] a security check result determining module configured to determine a first security check analysis result of the target parcel according to the data analysis result of the target parcel;

[0019] an image judging and parcel opening determining module configured to determine whether to execute an image judging process on the merged parcel according to the first security check analysis result and a second security check analysis result of the previous parcel;

[0020] an image judging and parcel opening module configured to, if it is determined to execute the image judging process on the merged parcel, execute the image judging process on the merged parcel.

[0021] In a third aspect, embodiments of the present application provide a terminal device, comprising a processor and a memory;

[0022] the memory is configured to store a computer program and transmit the computer program to the processor;

[0023] the processor is configured to execute a parcel data analysis method according to the instructions in the computer program.

[0024] In a fourth aspect, embodiments of the present application provide a storage medium storing computer executable instructions, which, when executed by a computer processor, are configured to execute a parcel data analysis method according to the first aspect.

[0025] According to the embodiment of the present application, the slice data of the target parcel is merged with the slice data of the previous parcel after the target parcel is determined to be stacked on the previous parcel, and the merged slice data of the merged parcel is obtained. Then, the data analysis process is performed on the merged slice data, and the first security analysis result corresponding to the target parcel is determined according to the data analysis result. Finally, whether the image judgment process is performed on the merged parcel is determined according to the first security analysis result and the second security analysis result of the previous parcel. According to the embodiment of the present application, the slice data of the parcel is merged, the slice data which is incorrectly divided due to the error of the parcel division algorithm or the parcel connection exceeding the maximum parcel length is merged into the slice data of the previous parcel, and the merged slice data is analyzed, so that the image judgment interference on the image judge is reduced, and the missed detection rate and the misjudgment rate of the parcel are reduced. BRIEF DESCRIPTION OF DRAWINGS

[0026] Figure 1 A schematic diagram of a complete parcel is provided for the embodiment of the present application.

[0027] Figure 2 A schematic diagram of a complete parcel is provided for the embodiment of the present application.

[0028] Figure 3 A schematic diagram of a complete parcel is provided for the embodiment of the present application.

[0029] Figure 4 A schematic diagram of a complete parcel is provided for the embodiment of the present application.

[0030] Figure 5 A flowchart of a parcel data analysis method is provided for the embodiment of the present application.

[0031] Figure 6 A flowchart of a parcel data analysis method is provided for the embodiment of the present application.

[0032] Figure 7 A flowchart of a parcel data analysis method is provided for the embodiment of the present application.

[0033] Figure 8 A flowchart of a parcel data analysis method is provided for the embodiment of the present application.

[0034] Figure 9 A flowchart of a parcel data analysis method is provided for the embodiment of the present application.

[0035] Figure 10 A structure diagram of a parcel data analysis device is provided for the embodiment of the present application.

[0036] Figure 11 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present invention. Detailed Implementation

[0037] The following description and accompanying drawings fully illustrate specific embodiments of this application to enable those skilled in the art to practice them. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the order of operation may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. The scope of embodiments of this application includes the entire scope of the claims and all available equivalents of the claims. In this document, each embodiment may be referred to individually or collectively by the term "invention," which is merely for convenience and is not intended to automatically limit the scope of the application to any single invention or inventive concept if more than one invention is disclosed. Relational terms such as "first" and "second" are used herein only to distinguish one entity or operation from another, without requiring or implying any actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed. The various embodiments in this document are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the structures, products, etc., disclosed in the embodiments, since they correspond to the disclosed parts, the descriptions are relatively simple; relevant details can be found in the method section.

[0038] Currently, when security inspection systems perform centralized image analysis, factors such as errors in existing package segmentation algorithms and the X-ray machine's image output environment may lead to inaccurate package segmentation, or situations where large numbers of passengers require splitting connected packages for segmentation. In such cases, it is easy to accidentally split the same package into two packages for centralized image analysis. For example, Figure 1 For a package entering an X-ray machine, as the package is slowly conveyed into the machine, the package segmentation algorithm cannot quickly obtain complete scan data of the package. Instead, it needs to identify the package based on the portions of the package that are being transmitted into the X-ray machine in real time. In one scenario, due to... Figure 1 The package shown has a long distance between its tail and the main body, resulting in a significant time interval between the tail entering the X-ray machine and the main body entering the machine. In this situation, the package splitting algorithm is prone to misinterpreting the package. Figure 1 The package shown is identified as follows Figure 2 The two packages shown are analyzed together. In another case, Figure 1The connecting band shown in the package for connecting the package tail and the package body, after entering the X-ray machine, the X-ray machine may not scan the connecting band or the scanning result of the connecting band is poor, which will also cause Figure 1 The package recognition is as shown in Figure 2 The case of concentrated image judgment of two packages shown 。 In addition, when the passenger volume is large and the packages are connected, as shown in Figure 3 As shown, in the process of a large number of packages being conveyed into the X-ray machine, when the maximum package length is exceeded, the package splitting algorithm is also prone to the case of splitting one package into two packages, as shown in Figure 4 After the package is split, it will interfere with the concentrated image judgment by the security officer, increasing the missed judgment rate and the false judgment rate of the package.

[0039] In summary, in order to solve the technical problem of the increase of the missed judgment rate and the false judgment rate of the package after the package is split, the embodiment of the present application provides a package data analysis method, as shown in Figure 5 As shown, Figure 5 A flowchart of a package data analysis method provided by the embodiment of the present application. The package data analysis method provided by the embodiment of the present application can be executed by a terminal device, which can be realized by software and / or hardware. The terminal device can be composed of two or more physical entities, or can be composed of one physical entity. For example, the terminal device can be a computer, a server, or a tablet device. In this embodiment, the terminal device is taken as an image judgment server for example. The image judgment server can be deployed in a station in the form of an entity server, or can be deployed in a cloud platform in a clouded manner. However, when deployed in a cloud platform, it is necessary to ensure that the network transmission delay from the station security checkpoint to the cloud platform is within the allowable range. The package data analysis method provided by the embodiment of the present application includes the following steps:

[0040] Step 101, receiving the split data of the target package sent by the X-ray machine, the target package being the package currently scanned by the X-ray machine.

[0041] In this embodiment, when a passenger is performing security check, the passenger needs to place the package in the X-ray machine for scanning. After the X-ray machine scans the package, the split data of the package is generated. The split data refers to the scanning data of a certain region of the package. It can be understood that, since the package is slowly conveyed into the X-ray machine through a conveying belt, the X-ray machine cannot directly obtain the complete data of the package. Therefore, after the package enters the X-ray machine, the region of the package newly entering the X-ray machine is scanned in segments to obtain the split data of the package. The complete data of the package can be obtained after the split data of the package is spliced subsequently.

[0042] The X-ray machine scans the target package conveyed by the current conveying belt, obtains the slice data of the target package, and sends the slice data of the target package to the image judging server. In an embodiment, after the image judging server receives the first slice data of the target package sent by the X-ray machine, the image judging server generates package data corresponding to the target package, the package data including ID information of the target package and the slice data of the target package, and then adds the package data to the superimposed package data. The form of the superimposed package data record data can be a list, a queue, or a set, which is not limited in the embodiment.

[0043] Step 102: When the image judging server receives the last slice data of the target package sent by the X-ray machine, it is determined according to the superimposition rule whether the target package needs to be superimposed on the last package.

[0044] When the image judging server receives the last slice data of the target package sent by the X-ray machine, the scanning data of the target package is complete. At this time, the image judging server needs to further determine whether the target package and the last package belong to the same package according to the superimposition rule, so as to determine whether the target package needs to be superimposed on the last package. The last package refers to the package scanned by the X-ray machine before the target package. In an embodiment, when it is determined according to the superimposition rule whether the target package needs to be superimposed on the last package, it can be first determined according to the slice data whether the target package is a target type package; if it is a target type package, it is further determined whether the interval between the target package and the last package is within a preset range; if it is within the preset range, it is further determined whether the last package is superimposed on other packages; if it is not superimposed, it can be determined that the target package and the last package belong to the same package, and it is determined that the target package needs to be superimposed on the last package. If any of the above conditions is not met, it is considered that the target package and the last package do not belong to the same package, and the target package and the last package do not need to be superimposed.

[0045] Step 103: If needed, the slice data of the target package is merged with the slice data of the last package to obtain the merged slice data of the merged package.

[0046] If it is determined that the target parcel needs to be superimposed on the previous parcel, the parcel image server can combine the slice data of the target parcel with the slice data of the previous parcel in the superimposed parcel data to obtain combined slice data. At the same time, the parcel image server can modify the ID information of the target parcel to the ID information of the previous parcel in the superimposed parcel data, so as to combine the target parcel and the previous parcel into one parcel, i.e., a combined parcel, and the parcel data of the target parcel and the parcel data of the previous parcel are the parcel data of the combined parcel. If the target parcel and the previous parcel do not need to be combined, the target parcel is determined to be processed according to the processing flow of a normal parcel. The processing flow of a normal parcel is that the parcel image server sends the slice data of the parcel to the intelligent image recognition server for intelligent image recognition, and sends the slice data to the parcel image workstation and the parcel opening workstation. Then, the parcel image server determines whether contraband is found according to the data analysis result obtained by the intelligent image recognition, and sends the data analysis result to the parcel image workstation and the parcel opening workstation. If the parcel image server finds contraband according to the data analysis result, it is determined whether to directly open the parcel, manually determine the image, or directly release it; if it is directly opened, a parcel opening instruction is transmitted to the parcel opening workstation, and the staff opens and checks the parcel in the parcel opening workstation; if manual image determination is required, an image determination instruction is transmitted to the parcel image workstation, and the staff re-determines the slice data of the parcel according to the slice data of the parcel and the data analysis result in the parcel image workstation, to determine whether further opening and checking are required, and if so, an opening instruction is further transmitted to the parcel opening workstation to open and check the parcel.

[0047] It should be further noted that the parcel image workstation includes a slice data display device, a communication device, a data superposition processing device, and input devices such as a keyboard and a mouse. The slice data display device displays the slice data and the data analysis result. The image determiner logs in to the parcel image workstation and determines the image according to the slice data and the data analysis result on the parcel image workstation. According to the determined contraband information, the image determiner selects the operation of releasing, opening and re-checking, and opening and stopping urgently. In another embodiment, a dispatch server can also be provided to dispatch the image determination task to a suitable parcel image workstation. The dispatch server is used to receive the login request, the logout request, the state change, and the image determination task execution reported by the parcel image workstation, and to determine the allocation of the image determination task to a suitable parcel image workstation for processing according to the information reported by the parcel image workstation.

[0048] The opening package workstation includes a piece data display device, a communication device, a data superposition processing device, an input device such as a keyboard and a mouse, an audible and visual alarm, a video monitoring device, a high-speed scanner, and an ID card reader, etc. The piece data display device displays the piece data of the package to be opened and the data analysis result. The re-inspector logs in the opening package workstation, receives the opening package task, intercepts and inspects the package according to the information displayed on the opening package workstation, registers the re-inspection result, and selects the disposal mode including but not limited to abandonment, temporary storage, taking back, collection, alarm, etc. according to the re-inspection result, registers the category and name of the prohibited articles, and registers the passenger information (including but not limited to name, gender, age, address, contact information) when necessary.

[0049] Step 104, performing a data analysis process on the merged piece data to obtain a data analysis result of the target package.

[0050] After obtaining the merged piece data, the image judgment server can further perform a data analysis process on the merged piece data, wherein the data analysis process refers to analyzing the piece data to identify the type of the article in the package, the position of the article, and the confidence of the type of the article, etc., thereby obtaining a data analysis result of the target package. Specifically, after obtaining the merged piece data, the image judgment server can send the merged piece data to the intelligent image recognition server, the intelligent image recognition server analyzes the merged piece data using an intelligent image recognition algorithm to identify the position of the article, the type of the article, and the confidence of the type of the article in the target package, obtain the data analysis result of the target package, and feed back the data analysis result of the target package to the image judgment server. By sending the merged piece data to the intelligent image recognition server for analysis, the recognition coverage of the article in the package can be increased, and the false detection rate can be reduced.

[0051] Step 105, determining a first security analysis result of the target package according to the data analysis result of the target package.

[0052] After obtaining the data analysis result of the target package, the image judgment server can determine the corresponding first security analysis result of the target package according to the data analysis result of the target package. For example, the image judgment server can determine whether there is a prohibited article according to the type of the article in the data analysis result of the target package. If there is a prohibited article, it is determined that the first security analysis result of the target package is to be opened for image judgment; if there is no prohibited article, it is determined that the first security analysis result of the target package is to be released. In an embodiment, the image judgment server can further merge the data analysis result of the target package and the data analysis result of the last package in the superimposed package data, and send the merged data analysis result to the image judgment workstation and the opening package workstation for recording and saving.

[0053] Step 106: Based on the first security check analysis results and the second security check analysis results of the previous package, determine whether to execute the image judgment process for the merged package.

[0054] Afterwards, the image analysis server can obtain the second security inspection analysis result of the previous package, and based on the first and second security inspection analysis results, determine whether to execute the image analysis process for the merged package (combining the previous package and the target package). For example, if either the first or second security inspection analysis result indicates that image analysis and opening the package are required, then it is determined that the image analysis process needs to be executed for the merged package.

[0055] Step 107: If necessary, perform the image judgment process on the merged package.

[0056] Once it's determined that a map analysis process will be executed for the merged packages, the map analysis server can send a map analysis command to the map analysis workstation or an unpacking command to the unpacking workstation to initiate the process. The map analysis process involves manual map analysis of the merged fragmented data at the map analysis workstation. Based on the manual analysis results, it's determined whether to perform an unpacking check on the merged packages. If an unpacking check is required, it is performed at the unpacking workstation. After processing the merged packages, the map analysis server can delete the merged package data from the overlay package data.

[0057] As described above, in this embodiment of the invention, after determining that the target package needs to be superimposed on the previous package, the segmented data of the target package is merged with the segmented data of the previous package to obtain merged segmented data of the merged package. Then, a data analysis process is performed on the merged segmented data. Based on the data analysis results, a first security inspection analysis result corresponding to the target package is determined. Finally, based on the first security inspection analysis result and the second security inspection analysis result of the previous package, it is determined whether to perform an image judgment process on the merged package. This embodiment of the invention, by merging the segmented data of the package, can merge incorrectly segmented data caused by errors in the package subdivision algorithm or packages exceeding the maximum cut-off length into the segmented data of the previous package, and then analyze the merged segmented data. This reduces interference with image judgment by the image judge and lowers the missed detection rate and false judgment rate of the package.

[0058] like Figure 6 As shown, Figure 6 This is a flowchart illustrating another parcel data analysis method provided in an embodiment of the present invention. Figure 6 The parcel data analysis method shown is a specific implementation of the above-mentioned parcel data analysis method, and the method includes:

[0059] Step 201: Receive the segmented data of the target package sent by the X-ray machine. The target package is the package currently being scanned by the X-ray machine.

[0060] Step 202, upon receiving the last piece of data of the target package sent by the X-ray machine, determining whether the target package needs to be superimposed on the last package according to the superimposition rule.

[0061] On the basis of the above embodiment, the step 202 of determining whether the target package needs to be superimposed on the last package according to the superimposition rule comprises:

[0062] Step 2021, determining whether the target package is a target type package according to all piece data of the target package.

[0063] When determining whether the target package needs to be superimposed on the last package according to the superimposition rule, it is first necessary to determine whether the target package is a target type package. Specifically, the width of the target package can be determined according to all piece data of the target package, and it is determined whether the width of the target package is less than a preset width threshold. If it is less than the preset width threshold, it can be considered that the target package is a target type package; otherwise, the target package is not a target type package, and the target package can be processed according to the normal package processing process.

[0064] On the basis of the above embodiment, the step 2021 of determining whether the target package is a target type package according to all piece data of the target package comprises:

[0065] Step 20211, determining the pixel width of the target package according to all piece data of the target package.

[0066] In one embodiment, the complete data of the target package can be synthesized according to all piece data of the target package first. Then the pixel width of the target package is determined according to the complete data of the target package.

[0067] Step 20212, determining whether the pixel width of the target package is less than a preset pixel column threshold.

[0068] After the pixel width of the target package is determined, it is further determined whether the pixel width of the target package is less than a preset pixel column threshold. The pixel width refers to the width of all pixels that make up the target package after the target package is presented in the form of an image. The pixel column threshold refers to a preset value of the number of columns of pixels.

[0069] Step 20213, if it is less than, determining that the target package is a target type package.

[0070] If the pixel width of the target package is less than the preset pixel column threshold, it is determined that the target package is a target type package.

[0071] Step 2022, if the target package is a target type package, determining whether the time interval between the last piece of data of the target package and the first piece of data of the last package is less than or equal to a preset first time length.

[0072] After determining that the width of the target parcel is less than the preset pixel column threshold, it is further needed to determine whether the target parcel and the previous parcel are adjacent parcels. Specifically, it can be determined by judging whether the time interval between the last piece of data of the target parcel and the first piece of data of the previous parcel is less than or equal to a preset first time length. If yes, it indicates that the target parcel and the previous parcel are adjacent parcels; otherwise, the target parcel is processed according to a normal parcel process.

[0073] On the basis of the above embodiment, if the time interval is greater than the first time length, and the time interval between the last piece of data of the target parcel and the first piece of data of the next parcel is less than or equal to the first time length, the target parcel is superimposed on the next parcel.

[0074] In another embodiment, after determining that the time interval between the last piece of data of the target parcel and the first piece of data of the previous parcel is less than or equal to the preset first time length, and further detecting that the time interval between the last piece of data of the target parcel and the first piece of data of the next parcel is less than or equal to the first time length, it indicates that the target parcel and the next parcel belong to the same parcel, and the target parcel needs to be superimposed on the next parcel, that is, the piece of data of the next parcel is merged with the piece of data of the target parcel, and the merged piece of data is processed. The processing process is similar to the processing process after the piece of data of the target parcel is merged with the piece of data of the previous parcel in this embodiment, and the processing process after the piece of data of the target parcel is merged with the piece of data of the previous parcel in this embodiment is not repeated here.

[0075] Step 2023, if less than or equal to the first time length, it is determined whether the previous parcel has been superimposed on other parcels.

[0076] After determining that the target parcel and the previous parcel are adjacent parcels, it is further needed to determine whether the previous parcel has been superimposed on other parcels. Specifically, in one embodiment, when the piece of data of the two parcels is merged, the two parcels are marked with a superimposition mark. For example, when the piece of data of the two parcels is merged by the image server, the piece of data of the two parcels can be marked with a superimposition mark, such as “has been superimposed” and the like. Correspondingly, whether the previous parcel has been superimposed on other parcels is determined, including:

[0077] Step 20231, it is determined whether the previous parcel is marked with a superimposition mark.

[0078] Step 20232, if not marked with a superimposition mark, it is determined that the previous parcel has not been superimposed on other parcels.

[0079] When determining whether the last parcel has been overlaid with other parcels, the parcel data of the last parcel can be marked with an overlay identifier. Specifically, the parcel data of the last parcel can be obtained from the overlay parcel data, and it is determined whether the parcel data is marked with an overlay identifier. If marked, it indicates that the last parcel has been overlaid with other parcels; otherwise, it indicates that the last parcel has not been overlaid with other parcels.

[0080] Step 2024, if not overlaid with other parcels, it is determined that the target parcel needs to be overlaid in the last parcel.

[0081] If the last parcel has not been overlaid with other parcels, it can be determined that the target parcel needs to be overlaid in the last parcel. Otherwise, the target parcel is processed according to the normal parcel process.

[0082] Step 203, if needed, the slice data of the target parcel is merged with the slice data of the last parcel to obtain the merged slice data of the merged parcel.

[0083] After it is determined that the target parcel needs to be overlaid in the last parcel, the processing flow of the overlaid parcel needs to be executed, and the slice data of the target parcel is merged with the slice data of the last parcel to obtain the merged slice data of the merged parcel. Specifically, when executing the processing flow of the overlaid parcel, the parcel data of the target parcel and the parcel data of the last parcel can be marked with an overlay identifier in the overlay parcel data, indicating that the target parcel and the last parcel cannot be overlaid with other parcels. At the same time, in the overlay parcel data, the ID information of the target parcel is modified to the parcel ID information of the last parcel, so that the target parcel and the last parcel are merged into the same parcel, i.e. the merged parcel. Then, it is checked whether the slice data of the last parcel has been sent to the parcel inspection workstation, if yes, the merged slice data is re-sent to the relevant parcel inspection workstation. It is checked whether the slice data of the last parcel has been sent to the parcel opening workstation, if yes, the merged slice data is re-sent to the corresponding parcel opening workstation. It is checked whether the slice data of the last parcel has been uploaded to the management system, if yes, the merged slice data is re-sent to the management system to replace the original slice data of the last parcel. Finally, the slice data of the last parcel and the target parcel is marked as "processed". The management system has the data storage function of X-ray parcel record, contraband detection record, parcel opening record and missed judgment record, etc. At the same time, it also provides historical data retrieval function, which can view the basic information of the parcel, slice data, parcel snapshot, parcel inspection result information and parcel opening inspection information, etc. Figure 7 As shown in Figure 7 is the specific process of the parcel inspection server processing the slice data.

[0084] Step 204, performing a data analysis process on the merged slice data to obtain a data analysis result of the target parcel.

[0085] Afterwards, the image judgment server can perform a data analysis process on the merged slice data, and send the merged slice data to the intelligent image recognition server for data analysis, so as to obtain a data analysis result of the target parcel. After obtaining the data analysis result of the target parcel, since the image judgment server has confirmed that the target parcel has been superimposed with the previous parcel, further processing of the superimposed analysis result needs to be performed. In addition, it needs to be further explained that before receiving the last slice data of the target parcel, the image judgment server will also send the received slice data of the target parcel to the intelligent image recognition server at intervals for data analysis, so as to obtain a data analysis result of the target parcel whose slice data is not complete. For example, the image judgment server sends the first 2 slice data and the first 4 slice data of the target parcel to the intelligent image recognition server for data analysis, so as to obtain a data analysis result of the first 2 slice data and a data analysis result of the first 4 slice data, respectively. After sending the merged slice data to the intelligent image recognition server for data analysis, if the data analysis result of the target parcel is not obtained within the second time period, the image judgment server will take the data analysis result of the target parcel obtained last time (i.e. the data analysis result of the target parcel whose slice data is not complete) as the final data analysis result of the target parcel.

[0086] After obtaining the data analysis result of the target parcel, the image judgment server can further superimpose the data analysis result of the target parcel into the data analysis result of the previous parcel in the superimposed parcel data, i.e. obtain a data analysis result of the merged parcel, and mark the data analysis result of the target parcel as "processed". Afterwards, the image judgment server further sends the merged data analysis result to the corresponding image judgment workstation, the corresponding parcel opening workstation and the management system, respectively, and marks the data analysis result of the previous parcel as "processed".

[0087] Step 205, determining a first security analysis result of the target parcel according to the data analysis result of the target parcel.

[0088] After obtaining the data analysis result of the target parcel, the image judgment server can determine a first security analysis result of the target parcel according to the data analysis result of the target parcel.

[0089] Step 206, merging the first security analysis result of the target parcel with the second security analysis result of the previous parcel to obtain a target security analysis result of the merged parcel.

[0090] After obtaining the target parcel security analysis result, the image judgment server can obtain a second security analysis result of a previous parcel, and combine the first security analysis result and the second security analysis result in the superimposed parcel data to obtain a target security analysis result of the combined parcel.

[0091] Step 207, according to the target security analysis result, determining whether the image judgment process needs to be performed on the combined parcel.

[0092] After obtaining the target security analysis result, the image judgment server can determine whether the image judgment process needs to be performed on the combined parcel according to the target security analysis result. In one embodiment, step 207 of determining whether the image judgment process needs to be performed on the combined parcel according to the target security analysis result includes:

[0093] Step 2071, determining whether the first security analysis result or the second security analysis result is a parcel that needs to be opened for image judgment.

[0094] First, the image judgment server first determines whether the first security analysis result or the second security analysis result in the target security analysis result is a parcel that needs to be opened for image judgment.

[0095] Step 2072, if yes, determining that the image judgment process needs to be performed on the combined parcel.

[0096] If any one of the first security analysis result or the second security analysis result is a parcel that needs to be opened for image judgment, it is determined that the combined parcel needs to perform the image judgment process. For example, when the second security analysis result is a parcel that needs to be opened for image judgment, and the first security analysis result is a pass, since the previous parcel passes through the X-ray machine before the target parcel, the parcel data of the previous parcel has been transmitted to the image judgment workstation and the opening workstation for re-inspection, at this time, it is determined that the combined parcel needs to perform the image judgment process, so as to confirm whether the target parcel contains prohibited articles. In addition, when the second security analysis result is a pass, and the first security analysis result is a parcel that needs to be opened for image judgment, at this time, since the previous parcel has been inspected, at this time, it is also necessary to determine that the combined parcel needs to perform the image judgment process, so as to re-inspect the previous parcel to determine whether the previous parcel contains prohibited articles. In another embodiment, as shown in FIG. 2, step 207 of determining whether the image judgment process needs to be performed on the combined parcel according to the target security analysis result includes: Figure 8As shown, after obtaining the data analysis result of the target parcel and the data analysis result of the previous parcel, the parcel judgment server can start another task for checking and processing whether the combined parcel needs to be processed in the duplicate parcel process. That is, whether the second security analysis result is release and whether the first security analysis result is to be opened and judged. If both conditions are met, the parcel judgment server needs to copy the parcel data of the combined parcel and add it to the end of the superimposed parcel data, and then process the added combined parcel according to the parcel judgment process. Since the parcel data of the combined parcel includes the parcel data of the target parcel, it can avoid the missed detection of the target parcel when the previous parcel is released.

[0097] Step 208, if needed, execute the parcel judgment process on the combined parcel.

[0098] Finally, the combined parcel is subjected to the parcel judgment process. The specific process of the parcel judgment process can be referred to step 107, which will not be described in detail in this embodiment. In addition, it needs to be further explained that all the parcel data added to the superimposed parcel data in this embodiment are uniformly processed by the data manager in the parcel judgment server. The specific processing process is as follows: Figure 9 As shown, for each new parcel data entering the superimposed parcel data, the data manager can perform the following checks: when it is judged that the superimposition mark in the parcel data is "superimposed", the fragment data mark is "processed", and the analysis result data mark is "processed", it is considered that the parcel data has been processed and completed, and needs to be removed from the list. Otherwise, it is judged whether the time of the last fragment data of the parcel is more than the first time length from the current time; if it is more than the first time length, it is considered that the parcel does not need to wait for the superimposition judgment of other parcels, and also needs to be removed from the superimposed parcel data.

[0099] According to the embodiment of the present application, the slice data of the target parcel is merged with the slice data of the previous parcel to obtain the merged slice data of the merged parcel after determining that the target parcel needs to be stacked on the previous parcel. Then, the data analysis process is performed on the merged slice data, and the first security analysis result corresponding to the target parcel is determined according to the data analysis result. Finally, it is determined whether to perform the image judgment process on the merged parcel according to the first security analysis result and the second security analysis result of the previous parcel. According to the embodiment of the present application, the slice data of the parcel which is incorrectly divided due to the error of the parcel division algorithm or the parcel connection exceeding the maximum parcel length can be merged into the slice data of the previous parcel, and then the merged slice data is analyzed, so that the image judgment interference on the image judgment personnel is reduced, and the missed detection rate and the misjudgment rate of the parcel are reduced. In addition, when the small slice parcel is stacked on the previous parcel, the small slice parcel is identified as needing to be opened and judged, and the previous parcel and the small slice parcel are re-performed on the image judgment process to avoid the situation that the small slice parcel is missed due to the stacked parcel. The interference of the small slice parcel is reduced, and the parcel is not missed.

[0100] As shown in Figure 10 , Figure 10 The structure diagram of the parcel data analysis device provided by the embodiment of the present application is shown in the figure, and the parcel data analysis device comprises:

[0101] The data receiving module 301 is configured to receive the slice data of the target parcel sent by the X-ray machine, and the target parcel is the parcel currently scanned by the X-ray machine.

[0102] The stacking judgment module 302 is configured to determine whether the target parcel needs to be stacked on the previous parcel according to the stacking rule when the last slice data of the target parcel sent by the X-ray machine is received.

[0103] The data merging module 303 is configured to merge the slice data of the target parcel with the slice data of the previous parcel to obtain the merged slice data of the merged parcel if the target parcel needs to be stacked on the previous parcel.

[0104] The data analysis module 304 is configured to perform the data analysis process on the merged slice data to obtain the data analysis result of the target parcel.

[0105] The security result determination module 305 is configured to determine the first security analysis result of the target parcel according to the data analysis result of the target parcel.

[0106] The image judgment opening determination module 306 is configured to determine whether to perform the image judgment process on the merged parcel according to the first security analysis result and the second security analysis result of the previous parcel.

[0107] The package judgment opening module 307 is configured to execute the package judgment process on the merged package if it is determined that the package judgment process is to be performed on the merged package.

[0108] On the basis of the above-mentioned embodiments, the superposition judgment module 302 comprises:

[0109] The target type judgment submodule is configured to determine whether the target package is a target type package according to all the piece data of the target package.

[0110] The time length judgment submodule is configured to determine whether the time interval between the last piece data of the target package and the first piece data of the previous package is less than or equal to a preset first time length if the target package is a target type package.

[0111] The superposition judgment submodule is configured to determine whether the previous package has been superimposed on other packages if the time interval is less than or equal to the first time length.

[0112] The superposition determination submodule is configured to determine that the target package needs to be superimposed on the previous package if the previous package has not been superimposed on other packages.

[0113] On the basis of the above-mentioned embodiments, the target type judgment submodule comprises:

[0114] The pixel width determination unit is configured to determine the pixel width of the target package according to all the piece data of the target package.

[0115] The pixel threshold comparison unit is configured to determine whether the pixel width of the target package is less than a preset pixel column threshold.

[0116] The target type determination unit is configured to determine that the target package is a target type package if the pixel width of the target package is less than the preset pixel column threshold.

[0117] On the basis of the above-mentioned embodiments, the piece data of the two packages is merged, and the two packages are marked with a superposition identifier.

[0118] The superposition judgment submodule comprises:

[0119] The marking judgment unit is configured to determine whether the previous package is marked with a superposition identifier.

[0120] The superposition judgment unit is configured to determine that the previous package has not been superimposed on other packages if the previous package is not marked with a superposition identifier.

[0121] On the basis of the above-mentioned embodiments, the next package superposition module is further configured to superimpose the target package on the next package if the time interval is greater than the first time length and the time interval between the last piece data of the target package and the first piece data of the next package is less than or equal to the first time length.

[0122] On the basis of the above-mentioned embodiments, the parcel opening determination module 306 comprises:

[0123] The security result merging sub-module is configured to merge the first security analysis result of the target parcel with the second security analysis result of the previous parcel to obtain a target security analysis result of the merged parcel.

[0124] The parcel opening determination sub-module is configured to determine whether the parcel opening determination process needs to be performed on the merged parcel according to the target security analysis result.

[0125] On the basis of the above-mentioned embodiments, the parcel opening determination sub-module comprises:

[0126] The parcel opening determination unit is configured to determine whether the first security analysis result or the second security analysis result is a parcel opening determination result.

[0127] The parcel opening determination unit is configured to determine whether the first security analysis result or the second security analysis result is a parcel opening determination result.

[0128] The parcel data analysis device provided in the embodiments of the present application is contained in a terminal device and can be used to perform the parcel data analysis method provided in the above-mentioned embodiments, and has corresponding functions and beneficial effects.

[0129] It should be noted that in the above-mentioned embodiments of the parcel data analysis device, each unit and module included is only divided according to the functional logic, but is not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for the convenience of mutual differentiation, and do not limit the protection scope of the present application.

[0130] The present embodiment also provides a terminal device, as shown in the figure, Figure 11 The terminal device 40 comprises a processor 400 and a memory 401.

[0131] The memory 401 is configured to store a computer program 402 and transmit the computer program 402 to the processor 400.

[0132] The processor 400 is configured to execute the steps of the above-mentioned parcel data analysis method embodiment according to the instructions in the computer program 402.

[0133] For example, the computer program 402 can be divided into one or more modules / units, one or more modules / units are stored in the memory 401 and executed by the processor 400 to complete the present application. One or more modules / units can be a series of computer program instruction segments capable of completing a specific function, which is used to describe the execution process of the computer program 402 in the terminal device 40.

[0134] The terminal device 40 can be a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The terminal device 40 can include, but is not limited to, a processor 400 and a memory 401. Those skilled in the art can understand that Figure 11 The terminal device 40 is only an example and does not constitute a limitation on the terminal device 40, and can include more or fewer components than shown, or combine certain components, or include different components, for example, the terminal device 40 can also include an input / output device, a network access device, a bus and the like.

[0135] The processor 400 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0136] The memory 401 can be an internal storage unit of the terminal device 40, for example, a hard disk or a memory of the terminal device 40. The memory 401 can also be an external storage device of the terminal device 40, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card and the like equipped on the terminal device 40. Further, the memory 401 can include both the internal storage unit and the external storage device of the terminal device 40. The memory 401 is used to store computer programs and other programs and data required by the terminal device 40. The memory 401 can also be used to temporarily store data that has been output or will be output.

[0137] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the system, device and unit described above can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.

[0138] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other manners. For example, the described device embodiments are merely schematic. For example, the division of the units is merely a logical function division. There can be another division manner for the actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.

[0139] The units described as separated components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the embodiments.

[0140] In addition, each function unit in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically independently, or two or more units can be integrated into one unit. The integrated unit can be implemented in the form of hardware, or in the form of a software function unit.

[0141] If the integrated unit is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on such an understanding, the technical solutions of the present application essentially or substantially, or all or part of the technical solutions, can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods in the various embodiments of the present application. The foregoing storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and various storage media that can store computer programs.

[0142] The embodiments of the present application also provide a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a parcel data analysis method. The method comprises the following steps:

[0143] Receiving the piece data of a target parcel sent by an X-ray machine, the target parcel being a parcel currently scanned by the X-ray machine;

[0144] When the last piece of data of the target package sent by the X-ray machine is received, it is determined according to the superposition rule whether the target package needs to be superposed on the last package;

[0145] If needed, the piece of data of the target package is merged with the piece of data of the last package to obtain the merged piece of data of the merged package;

[0146] A data analysis process is performed on the merged piece of data to obtain a data analysis result of the target package;

[0147] According to the data analysis result of the target package, a first security analysis result of the target package is determined;

[0148] According to the first security analysis result and a second security analysis result of the last package, it is determined whether a picture judgment process is performed on the merged package;

[0149] If needed, the picture judgment process is performed on the merged package.

[0150] Note that the above is only the preferred embodiment of the present embodiment and the technical principle applied. Those skilled in the art will understand that the present embodiment is not limited to the specific embodiments herein, and those skilled in the art can make various obvious changes, readjustments and substitutions without departing from the protection scope of the present embodiment. Therefore, although the present embodiment has been described in more detail through the above embodiments, the present embodiment is not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the present embodiment, and the scope of the present embodiment is determined by the scope of the appended claims.

Claims

1. A package data analysis method, characterized by, The method comprises the following steps: receiving the fragment data of a target package sent by an X-ray machine, the target package being a package currently scanned by the X-ray machine; when the last fragment data of the target package sent by the X-ray machine is received, determining whether the target package needs to be superimposed on a previous package according to a superimposition rule; if so, merging the fragment data of the target package with the fragment data of the previous package to obtain the merged fragment data of a merged package; performing a data analysis process on the merged fragment data to obtain a data analysis result of the target package; determining a first security analysis result of the target package according to the data analysis result of the target package; determining whether to perform a pattern recognition process on the merged package according to the first security analysis result and a second security analysis result of the previous package; if so, performing the pattern recognition process on the merged package; wherein the step of determining whether the target package needs to be superimposed on the previous package according to the superimposition rule comprises the following steps: determining whether the target package is a target type package according to all the fragment data of the target package; if so, determining whether the time interval between the last fragment data of the target package and the first fragment data of the previous package is less than or equal to a preset first time length; if so, determining whether the previous package has been superimposed on other packages; if not, determining that the target package needs to be superimposed on the previous package.

2. The method of claim 1, wherein, The step of determining whether the target package is a target type package according to all the fragment data of the target package comprises the following steps: determining the pixel width of the target package according to all the fragment data of the target package; determining whether the pixel width of the target package is less than a preset pixel column threshold; if so, determining that the target package is a target type package.

3. The method of claim 1, wherein, When merging the fragment data of two packages, marking the two packages with a superimposition identifier; The step of determining whether the previous package has been superimposed on other packages comprises the following steps: determining whether the previous package is marked with the superimposition identifier; if not, determining that the previous package has not been superimposed on other packages.

4. The method of claim 1, wherein, If the time interval is greater than the first time length and the time interval between the last fragment data of the target package and the first fragment data of a next package is less than or equal to the first time length, the target package is superimposed on the next package.

5. The method of claim 1, wherein, The step of determining whether to perform a pattern recognition process on the merged package according to the first security analysis result and the second security analysis result of the previous package comprises the following steps: merging the first security analysis result of the target package with the second security analysis result of the previous package to obtain a target security analysis result of the merged package; determining whether to perform a pattern recognition process on the merged package according to the target security analysis result.

6. The method of package data analysis of claim 5, wherein, The step of determining whether to perform a pattern recognition process on the merged package according to the target security analysis result comprises the following steps: determining whether the first security inspection result or the second security inspection result is a result requiring image judgment and package opening; if yes, determining that image judgment and package opening need to be performed on the merged package.

7. A package data analysis apparatus, characterized by comprising: The method comprises the following steps: a data receiving module is configured to receive fragment data of a target package sent by an X-ray machine, the target package being a package currently scanned by the X-ray machine; a superposition determining module is configured to determine, when the last fragment data of the target package sent by the X-ray machine is received, whether the target package needs to be superposed on a previous package according to a superposition rule; a data merging module is configured to, if the target package needs to be superposed on the previous package, merge the fragment data of the target package with the fragment data of the previous package to obtain merged fragment data of a merged package; a data analyzing module is configured to perform a data analysis process on the merged fragment data to obtain a data analysis result of the target package; a security inspection result determining module is configured to determine a first security inspection result of the target package according to the data analysis result of the target package; an image judgment and package opening determining module is configured to determine whether image judgment and package opening need to be performed on the merged package according to the first security inspection result and a second security inspection result of the previous package; an image judgment and package opening module is configured to, if it is determined that image judgment and package opening need to be performed on the merged package, perform the image judgment and package opening process on the merged package. The superposition determining module comprises: a target type determining submodule is configured to determine whether the target package is a target type package according to all the fragment data of the target package; a time length determining submodule is configured to, if the target package is the target type package, determine whether a time interval between the last fragment data of the target package and the first fragment data of the previous package is less than or equal to a preset first time length; a superposition determining submodule is configured to, if the time interval is less than or equal to the first time length, determine whether the previous package has been superposed on another package; a superposition determining submodule is configured to, if the previous package has not been superposed on another package, determine that the target package needs to be superposed on the previous package.

8. A terminal device, comprising: The terminal device comprises a processor and a memory; the memory is configured to store a computer program and transmit the computer program to the processor; the processor is configured to execute a package data analysis method according to the instructions in the computer program.

9. A storage medium storing computer-executable instructions, wherein: The computer executable instructions, when executed by a computer processor, are configured to execute a package data analysis method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Parcel segmentation method and device, equipment and medium

    CN112598690A

  • Degradable centralized intelligent pushing method and device

    CN115563396A