Graph discrimination method, device and equipment for reinspection equipment in security check
By registering the re-inspection device as an image determination client in the idle state and logging out in the busy state, the problem of backlog of image determination tasks caused by the insufficient number of image determination clients is solved, and the security inspection efficiency and effectiveness are improved.
Patent Information
- Application Number
- CN202410612649.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-09-17
AI Technical Summary
In a security inspection scenario, when the number of image recognition clients is less than the number of security inspection machines, multiple security inspection machines pass packages concurrently, causing the image recognition client to have no time to process them, causing a backlog of package scanned images.
Register the re-inspection device as an image determination client in the idle state, initiate a registration request to the dispatch center, and cancel the registration in the busy state. Use the pre-configured scheduling strategy to allocate image determination tasks, obtain package scanned images for image determination, and Perform recheck operations when necessary.
It effectively reduces the backlog of map judgment tasks, improves the efficiency and efficiency of map judgment, shortens the map judgment time, and ensures the smooth operation of the security inspection process.
Smart Images

Figure CN118656184A
Abstract
Description
Technical Field
[0001] The present application relates to the field of security inspection technology, and in particular to an image judgment method, device and equipment for re-inspection equipment in security inspection. Background Art
[0002] In the security inspection scenario, after the package passes through the security inspection machine, a package scan image is generated. The image judgment client judges these package scan images to determine whether the package meets the security inspection requirements. After the image judgment, if it is found that the package does not meet the security inspection requirements, it needs to be re-inspected by the re-inspection equipment.
[0003] In the prior art, the scanned image of a package generated by a security inspection machine when passing the package is distributed to an idle image judgment client through a dispatch center for image judgment.
[0004] However, in the existing method, the number of image recognition clients is usually smaller than the number of security inspection machines. When multiple security inspection machines send packages concurrently, it is easy to cause a backlog of package scan images on the image recognition client, making it too late to recognize the images. Summary of the invention
[0005] The present application provides a method, device and equipment for judging an image of a re-inspection device during security inspection, which is used to solve the problem that when the number of existing image judgment clients is less than the number of security inspection machines, multiple security inspection machines send packets simultaneously, resulting in insufficient time for image judgment.
[0006] In a first aspect, an embodiment of the present application provides a method for judging an image by a re-inspection device in a security inspection, wherein the re-inspection device is used for re-inspecting and judging an image, and the method comprises:
[0007] Based on the number of packages to be re-inspected, determine whether the current status is busy or idle;
[0008] If it is in the idle state, a registration request is initiated to the dispatch center, wherein the registration request is used to request the dispatch center to register the re-inspection device as an image judgment client;
[0009] Initiating an image judgment request to the scheduling center, wherein the image judgment request is used to request the scheduling center to select a target client from all image judgment clients that have sent image judgment requests based on a pre-configured scheduling policy, and assign an image judgment task to the target client;
[0010] Obtaining an image recognition task, and based on the image recognition task, obtaining a package scan image from a target security inspection machine for image recognition;
[0011] If it is in the busy state, a deregistration request is initiated to the dispatch center, wherein the deregistration request is used to request the dispatch center to deregister the re-inspection device from the registered image judgment client.
[0012] In a possible design of the first aspect, the initiating a request for image judgment to the dispatch center includes:
[0013] The image judgment request carries device information of the re-inspection device, and the re-inspection device is associated with a security inspection machine in a security inspection point. The device information is used for the dispatch center to determine the security inspection machine associated with the re-inspection device, and if the dispatch center receives an image judgment task uploaded by the security inspection machine associated with the re-inspection device, the image judgment task is assigned to the re-inspection device; if the dispatch center does not receive the image judgment task uploaded by the security inspection machine associated with the re-inspection device, other security inspection machines that are not associated with the re-inspection device are selected, and the image judgment tasks uploaded by the other security inspection machines are assigned to the re-inspection device, and the security inspection point includes at least one security inspection machine and at least one re-inspection device.
[0014] In another possible design of the first aspect, the acquiring of the image recognition task includes:
[0015] Detecting the connection status with the dispatch center;
[0016] If the connection with the dispatch center is disconnected, the image judgment task is obtained from the local security inspection machine, and the local security inspection machine is a security inspection machine set up at the same security inspection point as the re-inspection equipment;
[0017] If the connection with the dispatch center is not disconnected, the image judgment task assigned by the dispatch center is obtained.
[0018] In another possible design of the first aspect, after obtaining the scanned image of the package from the target security inspection machine for image recognition, the method further includes:
[0019] If the scanned image of the parcel does not meet the image judgment requirements, determining whether the target security inspection machine is set at the same security inspection point;
[0020] If the target security inspection machine is set at the same security inspection point, the package corresponding to the package scan image is used as a package to be re-inspected, and the number of packages to be re-inspected is updated;
[0021] Re-determine the busy or idle status based on the updated number of packages to be re-inspected;
[0022] If the target security inspection machine is set at a different security inspection point, the image judgment result is uploaded to the dispatch center, and the image judgment result is used by the dispatch center to send it to the re-inspection equipment set at the same security inspection point as the target security inspection machine. The image judgment result indicates that the package scan image does not meet the image judgment requirements.
[0023] In another possible design of the first aspect, the present invention further includes:
[0024] If the status is busy, obtaining a parcel scan image of a parcel to be re-inspected, wherein the parcel to be re-inspected is a parcel corresponding to the parcel scan image that does not meet the image judgment requirement;
[0025] The parcel scanned image of the parcel to be re-inspected is displayed on a display interface, or the parcel scanned image of the parcel to be re-inspected and a re-inspection operation control are displayed on the display interface, and the re-inspection operation control is used to perform a re-inspection operation on the parcel scanned image of the parcel to be re-inspected.
[0026] In another possible design of the first aspect, the present invention further includes:
[0027] Acquire the number of tasks to be processed and / or the connection status between the re-inspection device and the dispatch center, wherein the number of tasks to be processed includes the number of package scan images to be displayed and / or the number of re-inspection tasks to be processed;
[0028] The number of tasks to be processed and / or the connection status of the re-inspection device and the dispatch center are displayed on the display interface.
[0029] In another possible design of the first aspect, the present invention further includes:
[0030] Based on the pending re-inspection tasks, obtaining a package list, wherein the package list includes each pending re-inspection task;
[0031] In response to a list viewing request, displaying the package list on the display interface;
[0032] In response to the task viewing request, determining a target re-inspection task to be processed from all re-inspection tasks to be processed in the package list;
[0033] Based on the target re-inspection task, obtaining a package scan image of the target re-inspection package;
[0034] The package scan image of the target re-inspected package is displayed on the display interface.
[0035] In a second aspect, an embodiment of the present application provides an image recognition device for a security inspection re-inspection device, comprising:
[0036] A status determination module, used to determine whether the current state is busy or idle based on the number of packages to be re-inspected;
[0037] A role registration module, for initiating a registration request to a dispatch center if the device is in the idle state, wherein the registration request is for requesting the dispatch center to register the re-inspection device as an image judgment client;
[0038] An image judgment request module is used to initiate an image judgment request to the scheduling center, wherein the image judgment request is used to request the scheduling center to select a target client from all image judgment clients that have sent image judgment requests based on a pre-configured scheduling policy, and assign an image judgment task to the target client;
[0039] A parcel image recognition module is used to obtain an image recognition task, and based on the image recognition task, obtain a parcel scan image from a target security inspection machine for image recognition;
[0040] The role deregistration module is used to initiate a deregistration request to the dispatch center if the device is in the busy state, wherein the deregistration request is used to request the dispatch center to deregister the re-inspection device from the registered image judgment client.
[0041] In a third aspect, an embodiment of the present application provides a re-inspection device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method described above.
[0042] In a fourth aspect, an embodiment of the present application provides a centralized image recognition system, including: a security inspection machine, a re-inspection device, a dispatch center, and an image recognition client;
[0043] When the re-inspection device is in an idle state, it requests the dispatch center to register as the image judgment client; when it is in a busy state, it requests the dispatch center to cancel the image judgment client of the re-inspection device and perform the re-inspection task on the package to be re-inspected;
[0044] The security inspection machine is used to scan the package, form a package scan image, and send the image judgment task to the dispatch center;
[0045] The scheduling center is used to determine a target client among all image judgment clients based on a preset scheduling strategy, and allocate the image judgment task to the target client;
[0046] The image judgment client is used to initiate an image judgment request to the dispatch center, obtain a package scan image based on the assigned image judgment task, and perform image judgment on the package scan image to obtain an image judgment result, and the image judgment result is used to determine whether the package is a package to be re-inspected.
[0047] The image judgment method, device and equipment for the re-inspection equipment in security inspection provided in the embodiments of the present application can register the re-inspection equipment to the dispatching center as a new image judgment client when the re-inspection equipment is idle. In this way, when the security inspection machine sends images concurrently, the image judgment tasks uploaded to the dispatching center increase sharply. However, the number of original image judgment clients is limited, resulting in an overflow of image judgment tasks. When the image judgment tasks cannot be completed in time, the re-inspection equipment newly registered as the image judgment client can be used to share the image judgment pressure, reduce the backlog of image judgment tasks, improve image judgment efficiency, and shorten image judgment time. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the description, are used to explain the principles of the present application;
[0049] Figure 1 A schematic diagram of a scenario of a centralized image judgment system provided in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of a flow chart of a method for judging an image in a security check re-inspection device provided in an embodiment of the present application;
[0051] Figure 3 A schematic flow chart of a method for judging an image in a security check re-inspection device provided in another embodiment of the present application;
[0052] Figure 4 A schematic diagram of the display interface of the re-inspection device provided in an embodiment of the present application;
[0053] Figure 5 A schematic diagram of a display interface provided by another embodiment of the present application;
[0054] Figure 6 A schematic diagram of the structure of an image judging device of a security check re-inspection device provided in an embodiment of the present application;
[0055] Figure 7 A schematic diagram of the structure of the re-inspection device provided in the embodiment of the present application;
[0056] Figure 8 A schematic diagram of the structure of a centralized image judgment system provided in an embodiment of the present application.
[0057] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are 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 without creative work are within the scope of protection of this application.
[0059] In passenger flow scenarios, security inspection machines are mainly used to conduct security inspections on the packages carried by tourists. In order to improve security inspection efficiency, a large number of security inspection machines are usually set up in passenger flow scenarios. After the package is scanned by the security inspection machine, a package scan image is formed for security inspectors to conduct security inspection and image judgment. Among them, security inspection image judgment can be divided into two methods: (1) local image judgment, that is, the package scan image is directly sent to the display interface of the local image judgment terminal, and the security inspector judges the image and gives the image judgment conclusion. (2) centralized image judgment, that is, the package scan image is dispatched and distributed to the remote image judgment workstation, and the image judgement personnel at the remote image judgment workstation judge the image and give the image judgment conclusion. Since the number of its image judgment workstations is less than the number of security inspection machines involved in centralized image judgment, this method (2) can achieve the purpose of reducing human resources.
[0060] Regarding method (2) of centralized image judgment, for example, its application in some small passenger flow scenarios may occur. In small passenger flow scenarios, sometimes the security inspection machines for centralized image judgment may issue images concurrently (multiple security inspection machines issue images simultaneously). In this case, since the number of remote image judgment workstations is less than the number of security inspection machines that issue images concurrently, it is easy for some remote image judgment workstations to have image judgment backlogs and not have enough time to judge images.
[0061] With respect to method (2) of centralized image judgment, the number of image judgment workstations is less than the number of security inspection machines participating in the centralized image judgment. When the security inspection machines send images concurrently, it is easy for the remote workstations to not have enough time to judge the images. The inventors have discovered a solution that can reduce manpower input and ensure that when the security inspection machines participating in the centralized image judgment send images concurrently, the remote workstations will not have enough time to judge the images.
[0062] Figure 1 A schematic diagram of a centralized image recognition system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, each security checkpoint includes at least one security check machine and one re-check device. In the centralized image judgment scenario, the image judgment task of the security check machine is assigned to the corresponding image judgment client through the scheduling service. The image judgment task may include the device identification of the security check machine itself and the information of the package to be detected (such as the ID of the package, whether the package is forcibly split, and the time when the package is passed).
[0063] Among them, the number of centralized image judgment clients can be configured according to actual conditions. In addition, for scenarios with large passenger flow, centralized image judgment clients can also be configured locally at the security check point to perform image judgment specifically for the security check machine.
[0064] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0065] Figure 2 A flow chart of the image judgment method of the re-inspection device in the security inspection provided in the embodiment of the present application, which method can be applied to the re-inspection device. Among them, at least one security inspection machine and at least one re-inspection device are usually configured at the security inspection point. The security inspection machine is used to scan the package to obtain the package scan image. After the package scan image is detected by the image judgment client, the image judgment result will be output. If the image judgment result indicates that the package may not meet the security inspection requirements, it will be further re-inspected by the re-inspection device. In addition, in other embodiments, some intelligent security inspection machines can output the intelligent recognition result of the package scan image while scanning the package to obtain the package scan image. Exemplarily, the intelligent recognition result includes: whether the package meets the security inspection requirements and the confidence of the recognition result.
[0066] Reference below Figure 2 , the method specifically comprises the following steps:
[0067] Step S210, based on the number of packages to be re-inspected, determine whether the current state is busy or idle.
[0068] In this embodiment, the centralized image judgment usually involves a re-inspection device. This is because when the image judgment client performs image judgment based on the package scan image, it may output a negative image judgment conclusion (for example, the package corresponding to the package scan image may contain items that do not meet the security inspection requirements and will be regarded as a package to be re-inspected, requiring re-inspection and opening of the package for inspection). These negative image judgment conclusions will be sent to the re-inspection device, informing the re-inspection device to perform re-inspection operations on these packages to be re-inspected.
[0069] Wherein, each time a negative image judgment conclusion is received, the number of packages to be re-inspected of the re-inspection device increases by one, and each time a re-inspection operation is completed, the number of packages to be re-inspected decreases by one.
[0070] In some embodiments, if the number of packages to be re-inspected is 0, it can be determined that the current re-inspection device is in an idle state; if the number of packages to be re-inspected is not 0, it can be determined that the current re-inspection device is in a busy state.
[0071] In other embodiments, if the re-inspection device can re-inspect N packages at a time, assuming that the number of packages to be re-inspected is exactly N, and the re-inspection device is re-inspecting the N packages at the same time, and the re-inspection operation of the N packages is about to end, then the re-inspection device can also be regarded as an idle state. Where N is a positive integer.
[0072] For example, if there is only one package to be re-inspected, and the re-inspection device is re-inspecting the package, and the re-inspection operation is about to end, then the re-inspection device can also be considered to be in an idle state. Generally, since the re-inspection device can only re-inspect one package at a time, when the number of packages to be re-inspected is greater than 1, it means that there are still packages to be re-inspected waiting in line for the re-inspection operation of the re-inspection device, and the re-inspection device is determined to be in a busy state.
[0073] It will be mentioned later that the re-inspection device may be used to perform image judgment tasks in an idle state. It should be noted here that the execution priority of the re-inspection operation of the re-inspection device is higher than the execution priority of the image judgment task, that is, the re-inspection device needs to complete or is about to complete the re-inspection operation of all packages to be re-inspected before it can perform the image judgment task. If a package to be re-inspected appears during the execution of the image judgment task, it is necessary to first initiate a deregistration request to the dispatch center to deregister the image judgment client registered by the re-inspection device in the dispatch center, and then continue to complete the image judgment task, and then re-inspect the package to be re-inspected.
[0074] It should be noted that the working status of the re-inspection device is determined based on the number of packages to be re-inspected. Even though it is mentioned later that the re-inspection device may be performing an image recognition task, the re-inspection device cannot be determined to be busy during this process.
[0075] Step S220: If the device is in an idle state, a registration request is sent to the dispatch center.
[0076] The registration request is used to request the dispatch center to register the re-inspection device as an image judgment client;
[0077] In this embodiment, continue to refer to the above Figure 1 The entire centralized image judgment scenario is configured with at least one dispatch center, and each image judgment client should be registered on the dispatch center so that the dispatch center can subsequently assign image judgment tasks to these image judgment clients.
[0078] Among them, registration can mean uploading one's own device identification and communication port to the dispatch center for record. The dispatch center implements the distribution of image judgment tasks through the recorded communication port, and determines which image judgment client initiated the image judgment request through the recorded device identification.
[0079] In this embodiment, continue to refer to the above Figure 1, assuming that before the re-inspection device initiates registration as an image judgment client, the dispatch center has registered a total of n image judgment clients. At this time, if there are m re-inspection devices initiating registration requests and the dispatch center approves the registration requests, then these m re-inspection devices will be regarded as m image judgment clients by the dispatch center, that is, the number of image judgment clients registered by the dispatch center will reach n+m.
[0080] It should be noted that after the re-inspection device is registered as an image recognition client, the total number of image recognition clients should be greater than the total number of security inspection machines. For example, assuming that the number of security inspection machines is k, then n+m>=k.
[0081] In some embodiments, since each security checkpoint is equipped with at least one re-inspection device, multiple re-inspection devices may initiate registration requests to the dispatch center, so the registration request needs to include the identification of the re-inspection device itself, so that the dispatch center can distinguish and identify these re-inspection devices. At the same time, after the dispatch center receives the image judgment request initiated by the image judgment client, based on the pre-configured scheduling strategy, the target client is found from all the image judgment clients that initiated the image judgment request, and the image judgment task is assigned to the target client.
[0082] In other embodiments, if the security checkpoint is equipped with only one re-inspection device, the identification of the security checkpoint can be used as the identification of the re-inspection device itself, and the external communication port of the security checkpoint can be provided to initiate a registration request. This is mainly because the re-inspection device and the security check machine need to interact with the dispatch center through the external device of the security checkpoint.
[0083] Step S230, initiating an image judgment request to the scheduling center, the image judgment request is used to request the scheduling center to select a target client from all image judgment clients that have sent image judgment requests based on a pre-configured scheduling policy, and assign an image judgment task to the target client;
[0084] In this embodiment, after the review device is registered as an image judgment client (in order to distinguish it from other image judgment clients, the image judgment client registered by the review device will be referred to as the review image judgment client in the following text), the review image judgment client needs to actively initiate an image judgment request, so that the scheduling center can determine whether to assign an image judgment task to it based on the scheduling strategy.
[0085] Among them, the reason why the re-inspection device actively initiates the image judgment request is that the re-inspection device may receive the package to be re-inspected at any time. After receiving the package to be re-inspected, the re-inspection device needs to immediately switch to the re-inspection program to perform the re-inspection operation on the package to be re-inspected. In this process, if the dispatch center assigns the image judgment task to the re-inspection device without obtaining the image judgment request initiated by the re-inspection device, the image judgment task will not be executed in time, resulting in a delay in image judgment.
[0086] Similarly, other image judgment clients also need to actively initiate image judgment requests to the scheduling center, so that the scheduling center can search for target clients among the image judgment clients that have sent image judgment requests based on the scheduling strategy and assign image judgment tasks.
[0087] In some embodiments, the scheduling strategy may be to find out the image judgment client whose idle state lasts the longest among the image judgment clients that have sent the image judgment request, and use it as the target client.
[0088] In other embodiments, the scheduling strategy may also be based on a pre-set binding relationship (image judgment client - security inspection machine). For example, taking the association relationship between image judgment client A and security inspection machine B as an example, if image judgment client A initiates an image judgment request and security inspection machine B also uploads an image judgment task, then image judgment client A will be directly regarded as the target client, and the scheduling center will directly assign the image judgment task uploaded by security inspection machine B to image judgment client A.
[0089] In this embodiment, the image recognition task is uploaded by the security inspection machine itself. When the package passes through the security inspection machine, the security inspection machine will scan the package and obtain the package scan image and package information (such as the ID of the package, whether the package is forcibly split, and the time when the package passed). At this time, in order to avoid the upload of large files (usually the package scan image will be regarded as a large file) affecting the transmission efficiency, the package information and the device information of the security inspection machine can be packaged into the image recognition task.
[0090] Step S240, obtaining an image recognition task, and obtaining a package scan image from a target security inspection machine for image recognition based on the image recognition task.
[0091] In this embodiment, it has been mentioned above that the image judgment task will include the package information and the equipment information of the security inspection machine. If the dispatch center assigns the image judgment task to the re-inspection device, the re-inspection device can find the security inspection machine corresponding to the equipment information in the entire centralized image judgment system based on the equipment information, as the target security inspection machine.
[0092] Among them, when the re-inspection device finds the target security inspection machine, it can establish a connection with the target security inspection machine, and the target security inspection machine transmits the package scanning image of the package to the re-inspection device for image judgment.
[0093] In some embodiments, the package scan image can be transmitted in segments, that is, the entire package scan image is divided into N segments, and M segments (M is less than or equal to N) are transmitted to the re-inspection device at a time. After the re-inspection device receives the M segments of the image, it is directly displayed on the display interface. In this way, it can ensure that the package scan image is synchronously displayed on the display interface while the package passes through the security inspection machine, thereby improving synchronization.
[0094] In some embodiments, the image judgment operation can be performed by a security inspector configured on the image judgment client. For example, after the security inspector sees the scanned image of the package displayed on the display interface of the image judgment client, he finds that there are images of prohibited items in it. At this time, the security inspector enters the image judgment result of "prohibited items exist and the package needs to be opened". This image judgment result will be sent to the re-inspection device, and the re-inspection device needs to re-inspect the package.
[0095] In other embodiments, when the security inspection machine is an intelligent security inspection machine, after scanning the package to obtain the package scan image, it can also give an intelligent recognition result, and the intelligent recognition result will also be packaged and transmitted to the image judgment client, so that the image judgment client can also automatically perform the image judgment operation based on the intelligent recognition result. For example, the intelligent recognition result given by the security inspection machine is: it is recognized that there may be items that do not meet the requirements in the package, and the confidence of the recognition result is 0.8. Based on the intelligent recognition result, the image judgment client gives the image judgment result: open the package.
[0096] Step S250: If the device is in a busy state, a deregistration request is sent to the dispatch center. The deregistration request is used to request the dispatch center to deregister the re-inspection device from the registered image judgment client.
[0097] In this embodiment, the busy state means that there are N packages to be re-inspected in the re-inspection device, or the busy state may mean that there are N packages to be re-inspected in the re-inspection device and the re-inspection operation of the N packages to be re-inspected cannot be completed in a short time.
[0098] In this embodiment, after receiving the deregistration request, the dispatch center deregisters the original re-inspection and image judgment client, which is equivalent to the original re-inspection and image judgment client disappearing. Subsequently, the dispatch center will temporarily not assign image judgment tasks to the re-inspection and image judgment client.
[0099] The embodiment of the present application detects the working status of the re-inspection device. When the re-inspection device is idle, the re-inspection device can be registered with the dispatch center as a new image judgment client. In this way, when the security inspection machine sends images concurrently, the image judgment tasks uploaded to the dispatch center increase sharply. However, the number of original image judgment clients is limited, resulting in an overflow of image judgment tasks. When the image judgment tasks cannot be completed in time, the re-inspection device newly registered as an image judgment client can be used to share the image judgment pressure, reduce the backlog of image judgment tasks, improve image judgment efficiency, and shorten image judgment time.
[0100] In some other embodiments, the “initiating an image judgment request to the dispatch center” in the above step S230 can be specifically implemented through the following steps: carrying the device information of the re-inspection device in the image judgment request.
[0101] Among them, the re-inspection equipment is associated with the security inspection machine in the security inspection point, and the equipment information is used to enable the dispatch center to determine the security inspection machine associated with the re-inspection equipment, and if the dispatch center receives an image judgment task uploaded by the security inspection machine associated with the re-inspection equipment, the image judgment task is assigned to the re-inspection equipment; if the dispatch center does not receive the image judgment task uploaded by the security inspection machine associated with the re-inspection equipment, other security inspection machines that are not associated with the re-inspection equipment are selected, and the image judgment tasks uploaded by other security inspection machines are assigned to the re-inspection equipment. The security inspection point includes at least one security inspection machine and at least one re-inspection equipment.
[0102] In this embodiment, the device information of the re-inspection device may refer to the identification information of the re-inspection device, such as the device ID, and the device information of different re-inspection devices is different. In the centralized image judgment system, an association relationship can be established between each re-inspection device and at least each security inspection machine. The establishment of an association relationship means that an association relationship can be established between the re-inspection device and the security inspection machine at the same security inspection point. In the image judgment scenario, there may be multiple security inspection points, each of which is equipped with a re-inspection device and a security inspection machine. There is no association relationship between the re-inspection device in the first security inspection point and the security inspection machine in the second security inspection point. In addition, the association relationship can be uploaded to the dispatch center and recorded by the dispatch center.
[0103] In this embodiment, other security inspection machines refer to security inspection machines located at different security inspection points from the re-inspection equipment. For example, if the re-inspection equipment is at security inspection point AJD1, then other security inspection machines refer to security inspection machines located at security inspection points other than security inspection point AJD1. There is no association between other security inspection machines and the re-inspection equipment.
[0104] In addition, if the security inspection machine at the same security inspection point as the re-inspection equipment has a package under security inspection, then the security inspection machine will generate an image judgment task, and at the same time, the security inspection machine will upload the image judgment task to the dispatch center. If there is no package under security inspection at present, then no image judgment task will be generated, that is, the dispatch center will not receive the image judgment task uploaded by the security inspection machine.
[0105] For example, let's continue to take the association between image judgment client A and security inspection machine B as an example. When a package passes through security inspection machine B, security inspection machine B will scan the package to form a package scan image. The package scan image needs to apply for image judgment client to judge the image. Therefore, security inspection machine B will initiate an image judgment task to the dispatch center. When the dispatch center receives the image judgment task and dispatches it, if image judgment client A initiates an image judgment request, the dispatch center will give priority to assigning the image judgment task to image judgment client A. Among them, the re-inspection device needs to initiate a registration request to register as image judgment client A.
[0106] In addition, if the image judgment client A initiates an image judgment request, but the security inspection machine B has not passed the package temporarily and has not generated a package scan image, resulting in the temporary failure to upload the image judgment task to the dispatch center, the dispatch center can first assign the image judgment task uploaded by other security inspection machines (such as security inspection machine C at another security inspection point) to the image judgment client A, so that the image judgment client A can first obtain the package scan image from the security inspection machine C based on the image judgment task and perform image judgment.
[0107] In some embodiments, continue to refer to the above Figure 1 Each security checkpoint has re-inspection equipment and security inspection machines. In order to shorten the communication link, the re-inspection equipment can establish an association with the security inspection machine in the security checkpoint. In this way, after the re-inspection equipment is registered as an image judgment client, if the security inspection machine uploads the image judgment task to the dispatch center, the dispatch center directly assigns the image judgment task to the re-inspection equipment, and the re-inspection equipment directly takes the package scanning image from the security inspection machine, which greatly shortens the complexity of the communication link.
[0108] In some embodiments, when the re-inspection device is in an idle state, the re-inspection device registers with the dispatch center as an image judgment client. The re-inspection device can obtain the number of pending image judgment tasks assigned by the dispatch center; if the number of pending image judgment tasks meets the quantity requirement (for example, the number is 0), the re-inspection device initiates an image judgment request to the dispatch center.
[0109] Among them, when the re-inspection device initiates a picture judgment request, it needs to complete a picture judgment task, and after the number of pending picture judgment tasks reaches 0, it will continue to request a picture judgment task from the dispatch center, that is, the re-inspection device only requests one picture judgment task each time, and requests the next picture judgment task after the execution is completed. This is mainly because the re-inspection task may occur at any time. Once a re-inspection task occurs, the re-inspection device needs to give priority to executing the re-inspection task as soon as possible. If the re-inspection device requests multiple picture judgment tasks at a time, since the picture judgment tasks can only be executed one by one, this may cause the remaining picture judgment tasks to be unable to continue to be executed, resulting in delays in these picture judgment tasks. Usually other picture judgment clients (that is, picture judgment clients that are not registered by the re-inspection device) can receive multiple picture judgment tasks at a time.
[0110] The embodiment of the present application uploads the device information of the re-inspection device to the dispatch center, so that the dispatch center can find the security inspection machine associated with the re-inspection device based on the device information and the association relationship, and then assign the image judgment task initiated by the security inspection machine to the re-inspection device. On the one hand, this can reduce the complexity of image judgment task allocation and improve the efficiency of image judgment task allocation. On the other hand, if the re-inspection device is associated with the security inspection machine at the same security inspection point, then when the re-inspection device takes the package scan image from the security inspection machine, the communication link can be shortened and the data transmission time can be reduced.
[0111] In other embodiments, Figure 3 A schematic flow chart of a method for judging an image in a security check re-check device provided in another embodiment of the present application is as follows: Figure 3 As shown, in the original Figure 2 On the basis of the above, a new step S310 is added: detecting the connection status with the dispatch center. Step S320: if the connection with the dispatch center is disconnected, obtaining the image judgment task from the local security inspection machine, which is the security inspection machine set at the same security inspection point as the re-inspection equipment. Step S330: if the connection with the dispatch center is not disconnected, obtaining the image judgment task assigned by the dispatch center.
[0112] In this embodiment, the connection status between the re-inspection device and the dispatch center may refer to the network connection status between the re-inspection device and the dispatch center. Among them, at least one re-inspection device and at least one security inspection machine are set up at the security inspection point. The re-inspection device and the security inspection machine at the same security inspection point are in the same local area network. When the re-inspection device is disconnected from the dispatch center, the re-inspection device and the security inspection machine cannot communicate with the dispatch center through the network, which results in the inability to upload the image judgment task of the security inspection machine to the dispatch center, and the dispatch center cannot assign the image judgment task to the re-inspection device. However, since the re-inspection device and the security inspection machine are in the same local area network, the two can continue to communicate.
[0113] For example, take a security checkpoint equipped with a re-inspection device F1 and a security check machine A1 as an example. After the re-inspection device F1 is disconnected from the dispatch center, the security check machine A1 cannot upload the image judgment task to the dispatch center. The image judgment task can only be sent to the re-inspection device F1 and received by the re-inspection device F1.
[0114] In some embodiments, an association relationship can be established between the re-inspection device in the security checkpoint and the security check machine under the security checkpoint. In the case that both the re-inspection device and the security check machine cannot communicate with the dispatch center through the network, the security check machine can send the image judgment task to the re-inspection device associated with it. For example, if the security checkpoint is equipped with a re-inspection device F1, a security check machine A1 and a security check machine A2, and the re-inspection device F1 is associated with the security check machine A1, then after being disconnected from the dispatch center, the re-inspection device F1, the security check machine A1 and the security check machine A2 cannot communicate with the dispatch center through the network. At this time, the image judgment task of the security check machine A1 can be directly sent to the re-inspection device F1. For the image judgment task of the security check machine A2, the re-inspection device F1 can determine whether to accept its image judgment task based on the actual processing capacity.
[0115] Even if the embodiment of the present application is disconnected from the dispatch center and cannot obtain the image judgment task assigned by the dispatch center, it can still obtain the image judgment task of the security inspection machine in the security inspection point where it is located to perform image judgment, thereby avoiding the situation where the image judgment task of the security inspection machine cannot be processed in time under network abnormalities, thereby improving the ability to adapt to emergencies during the security inspection process.
[0116] Furthermore, based on the above embodiment, the above method further includes the following steps:
[0117] Step A: If the scanned image of the package does not meet the image recognition requirements, determine whether it is set at the same security inspection point as the target security inspection machine;
[0118] Step B: If the target security inspection machine is set at the same security inspection point, the package corresponding to the package scan image is used as a package to be re-inspected, and the number of packages to be re-inspected is updated;
[0119] Step C: Re-determine whether the status is busy or idle based on the updated number of packages to be re-inspected;
[0120] Step D: If the target security inspection machine is set at a different security inspection point, the image judgment result is uploaded to the dispatch center. The image judgment result is used by the dispatch center to send to the re-inspection equipment set at the same security inspection point as the target security inspection machine. The image judgment result indicates that the package scan image does not meet the image judgment requirements.
[0121] In this embodiment, when the re-inspection device acts as an image judgment client and judges the scanned image of the package to obtain the image judgment result, it is found that the scanned image of the package does not meet the image judgment requirements (for example, there are images of items that do not meet the security inspection requirements, that is, the package needs to be opened and disposed of), then it is necessary to further determine whether itself is set at the same security inspection point as the target security inspection machine.
[0122] Among them, if the re-inspection equipment and the target security inspection machine are not set at the same security inspection point, then the image judgment result will be sent to the target re-inspection equipment at the same security inspection point as the target security inspection machine through the dispatch center, and the target re-inspection equipment will do further unpacking and disposal (at this time, the number of packages to be re-inspected of the target re-inspection equipment will increase by 1, and it may enter a busy state).
[0123] If the re-inspection device and the target security inspection machine are at the same security inspection point, then the image judgment result will be directly retained in the re-inspection device. Based on the image judgment result, the re-inspection device will regard the package corresponding to the scanned image of the package as a package to be re-inspected, and will need to perform subsequent unpacking (i.e., re-inspection operation). At the same time, the number of packages to be re-inspected will increase by 1, and the re-inspection device itself will also need to re-determine whether it is busy or idle based on the updated number of packages to be re-inspected.
[0124] Usually, when there is at least one package to be re-inspected, the re-inspection device enters a busy state. At this time, the re-inspection device no longer performs the image judgment task, but instead performs a re-inspection operation on the package to be re-inspected, that is, opens the package for disposal.
[0125] It should be noted that when the re-inspection device and the target security inspection machine are not set up at the same security inspection point, the image judgment result will be sent to the target re-inspection device at the same security inspection point as the target security inspection machine through the dispatch center, and will not be retained in the re-inspection device. Therefore, the number of packages to be re-inspected in the re-inspection device will not increase.
[0126] In the embodiment of the present application, when it is detected that the scanned image of a parcel does not meet the image judgment requirements, and the re-inspection device and the target security inspection machine are at the same security inspection point, the re-inspection device is required to perform a re-inspection task (i.e., unpacking and disposing of the parcel) on the parcel corresponding to the scanned image of the parcel. At this time, the re-inspection device becomes busy and can cancel the image judgment client registered with the dispatch center in advance to prevent it from continuing to receive image judgment tasks, which would cause a conflict between the re-inspection task and the image judgment task.
[0127] In addition, in some embodiments, after the re-inspection device is disconnected from the dispatch center, the security inspection machine at the security inspection point will directly send the image judgment task to the re-inspection device, so the re-inspection device needs to judge the image, and at the same time the re-inspection device may have other re-inspection tasks to handle, so there will be a conflict between image judgment and re-inspection. For this reason, the re-inspection device needs to output a prompt message, which is used to prompt whether to control the conveyor belt of the local security inspection machine to stop conveying the package.
[0128] Among them, when the conveyor belt of the security inspection machine stops conveying the package, the security inspection machine stops generating the package scanning image, and the corresponding image judgment task is also gone. In this way, the re-inspection device will not receive the image judgment task in the future and can only perform the re-inspection task.
[0129] If the conveyor belt of the security inspection machine does not stop, the security inspection machine will continue to scan the packages on the conveyor belt and form a package scan image corresponding to each package. Each package scan image will correspond to a picture judgment task. If these picture judgment tasks are all sent to the re-inspection equipment, it may cause the re-inspection equipment to not have time to perform the re-inspection task, that is, there is a conflict with the re-inspection task.
[0130] Among them, the re-inspection task means that after the package is scanned by the security inspection machine to form a package scan image, the package scan image will be judged first. After the judgment is completed, the judgment result will be given, and the judgment result will be sent to the re-inspection device. That is, the re-inspection device has received the judgment task at this time, and it is necessary to perform a re-inspection operation based on the judgment result, such as notifying the staff to open the package for inspection.
[0131] Among them, by outputting prompt information, it can be informed that the re-inspection equipment and security inspection machine in the security inspection point have disconnected from the dispatch center, which plays a prompting role. At the same time, it can also prompt the staff to stop the conveyor belt of the security inspection machine to continue to convey the package, so as to avoid the re-inspection equipment receiving the image judgment task and the re-inspection task at the same time, prevent conflicts, and ensure that the re-inspection task of the re-inspection equipment can be executed normally.
[0132] In some embodiments, if the re-inspection device is in a busy state, it is equivalent to that the re-inspection device has a re-inspection task to be processed that needs to be processed first. At this time, if it is in a busy state, a package scan image of the package to be re-inspected is obtained, and the package to be re-inspected is the package corresponding to the package scan image that does not meet the image judgment requirements; the package scan image of the package to be re-inspected is displayed on the display interface, or the package scan image of the package to be re-inspected and the re-inspection operation control are displayed on the display interface, and the re-inspection operation control is used to perform a re-inspection operation on the package scan image of the package to be re-inspected.
[0133] In this embodiment, it has been mentioned above that the re-inspection task is mainly to continue to re-inspect the parcel that has been given a judgment result. The re-inspection operation can be to open the parcel for further inspection, and the parcel scan image of the parcel also needs to be displayed on the display interface. The security inspector can mark certain item images in the parcel scan image. If the judgment result is "release", it means that the parcel meets the security inspection requirements and can be directly released through security inspection.
[0134] In this embodiment, the number of re-inspection tasks corresponds to the number of packages to be re-inspected. Each time the re-inspection device receives a judgment result indicating that the scanned image of a package does not meet the judgment requirements, the number of packages to be re-inspected increases by 1.
[0135] Among them, the image judgment result can be issued by the dispatching center. For example, the re-inspection device F1 judges the package scanning image of the target security inspection machine to obtain the image judgment result, and finds that it does not meet the image judgment requirements. In addition, the target security inspection machine and the re-inspection device F2 are set at the same security inspection point. Then, the re-inspection device F1 will send the image judgment result to the re-inspection device F2 through the dispatching center. The re-inspection device F2 will obtain the package scanning image that does not meet the image judgment requirements from the target security inspection machine as the package scanning image of the package to be re-inspected.
[0136] In addition, the image judgment result can also be retained by the re-inspection device itself. For example, the target security inspection machine and the re-inspection device F2 are set at the same security inspection point. When the re-inspection device F2 judges the package scan image of the target security inspection machine and obtains the image judgment result, if it is found that it does not meet the image judgment requirements, then the image judgment result is directly retained without the need to be issued by the dispatch center.
[0137] Figure 4 A schematic diagram of the display interface of the re-inspection device provided in the embodiment of the present application, such as Figure 4 As shown, the display interface can simultaneously display the parcel scan image of the parcel to be judged and the parcel scan image of the parcel to be re-inspected. The parcel scan image of the parcel to be judged is used by the security inspector for image judgment, and the parcel scan image of the parcel to be re-inspected is used by the security inspector for re-inspection of the parcel to be re-inspected.
[0138] In addition, the display interface may also only display the scanned images of the packages to be judged, or may also only display the scanned images of the packages to be re-inspected, depending on the actual situation.
[0139] For example, the image output mode of the re-inspection device is to display the image frame by frame by column, similar to the video stream mode. Figure 4 , the image on the display interface is scrolled from left to right, so when the re-inspection device first performs the re-inspection task, if the re-inspection is about to be completed, the package scan image of the package to be re-inspected will slowly move to the right and gradually disappear from the display interface. Then the re-inspection device performs the image judgment task, and the package scan image of the package to be judged will slowly appear from the left side of the display interface and be displayed on the display interface. Of course, in actual situations, the re-inspection device can have a variety of output methods, and the embodiments of the present application do not limit other output methods.
[0140] In this embodiment, continue to refer to Figure 4 At the current moment, the first display area 41 of the display interface displays the scanned image of the package to be judged, and the second display area 42 of the display interface displays the scanned image of the package to be re-inspected.
[0141] Furthermore, the second display area 42 may also display a recheck operation control (ie Figure 4 The “handle” button 43 in the image). Through the re-inspection operation control, it can be distinguished whether the image judgment task or the re-inspection task is performed on the package scan image (because on the actual display interface, the first display area 41 displays a package scan image, and the second display area 42 displays another package scan image. The security inspector cannot distinguish which package scan image is used for image judgment and which package scan image is used for re-inspection. Therefore, by displaying a re-inspection operation control around one of the package scan images, the security inspector can know that this package scan image is used for re-inspection).
[0142] The security inspector can perform relevant re-inspection operations, such as marking the area where the prohibited item image is located in the package scan image, by clicking the re-inspection operation control.
[0143] The embodiment of the present application executes the re-inspection task when the re-inspection device is in a busy state, and displays the package scan image on the display interface, which is convenient for the security inspector to re-inspect. In addition, the display interface can also display the re-inspection operation control at the same time, so as to distinguish and identify the package scan image of the package to be re-inspected and the package scan image of the package to be judged when the display interface displays the package scan image of the package to be re-inspected and the package scan image of the package to be judged at the same time, so as to prevent the security inspector from making mistakes and ensure the accuracy of the re-inspection.
[0144] In other embodiments, the number of tasks to be processed and / or the connection status of the re-inspection device and the dispatch center may also be obtained; and then the number of tasks to be processed and / or the connection status of the re-inspection device and the dispatch center may be displayed on the display interface.
[0145] The number of tasks to be processed includes the number of package scan images to be displayed and / or the number of re-inspection tasks to be processed.
[0146] In this embodiment, continue to refer to the above Figure 4 ,exist Figure 4 The upper left corner of the display interface can display the network status (i.e., connection status), the number to be displayed, and the number of packages to be opened. Among them, the number to be displayed refers to the number of image judgment tasks and / or re-inspection tasks that have been issued to the re-inspection device, but the re-inspection device has not yet completely displayed the package scan images corresponding to the image judgment tasks and / or the package scan images corresponding to the re-inspection tasks on the interface. When a corresponding package scan image is completely displayed on the display interface, the number to be displayed is reduced by one. No operation is performed on the repeatedly displayed package scan images (such as the package scan image is slowly transmitted from the left side of the display interface to the display interface for display, and then slowly disappears from the display interface from the right. When the security inspector pulls from right to left on the display interface, so that the previously displayed package scan image is re-displayed on the display interface, the number to be displayed will not change).
[0147] The number of packages to be opened refers to the number of re-inspection tasks that the re-inspection device needs to handle. For example, if the re-inspection device needs to open a package, the scanned image of the package will be displayed on the display interface. When the package is opened and the re-inspection task is completed, the number of packages to be opened decreases by one.
[0148] The embodiment of the present application displays the number of tasks to be processed and / or the connection status on the display interface, which makes it easy for security inspectors to understand the information changes during the security inspection process in real time. In the event of sudden abnormal situations (such as disconnection from the network connection with the dispatch center), they can take timely response measures based on the current information, thereby improving the ability to handle sudden abnormal situations.
[0149] In some other embodiments, the above method further comprises the following steps:
[0150] Step (1) based on the pending re-inspection tasks, obtain a package list, wherein the package list includes each pending re-inspection task.
[0151] Step (2) displays the package list on the display interface in response to the list viewing request.
[0152] Step (3) In response to the task viewing request, a target re-inspection task to be processed is determined from among all re-inspection tasks to be processed in the package list.
[0153] Step (4) obtains a package scan image of the target re-inspection package based on the target re-inspection task.
[0154] Step (5) displays the package scan image of the target re-inspected package on the display interface.
[0155] In this embodiment, the re-inspection device is in an idle state. When it is registered as an image judgment client in the dispatch center, the re-inspection device only requests one image judgment task each time. After processing the image judgment task, it requests the next image judgment task. Therefore, the number of image judgment tasks is usually only one. When the re-inspection device is in a busy state, it can receive multiple re-inspection tasks, which can be arranged in a list.
[0156] For example, Figure 5 A schematic diagram of a display interface provided by another embodiment of the present application is shown as follows: Figure 5 As shown, the event list is the package list.
[0157] The security inspector can call out the event list by clicking the number of packages to be opened on the display interface (i.e., initiating a list viewing request) (usually, the event list is hidden to facilitate viewing the package scan image on the display interface). After the event list is called out, the security inspector can click the corresponding button in the event list (e.g. Figure 5 "Jump to latest", "Jump to end", "Previous" ", "Turn down ”) to scroll through the pending review tasks in the event list.
[0158] The security inspector clicks on a re-inspection task in the event list (i.e. initiates a task viewing request) to display the corresponding package scan image in the display area. That is, when clicking on a re-inspection task in the package list, the security inspector can quickly locate the corresponding position in the package display area for processing.
[0159] In addition, in some embodiments, when there are many re-inspection tasks to be processed, they can be processed quickly, for example Figure 5 There is a button "One-click release" configured in the event list. When the security inspector clicks this button, all the tasks to be re-inspected in the event list will complete the re-inspection and be released.
[0160] In some embodiments, each re-inspection task in the event list has a corresponding thumbnail of the package scan image. Based on the image judgment results given by the previous image judgment operation, the package scan image can also be labeled (for example, "plastic bottle", "knife", etc.). Security inspectors can perform targeted re-inspection operations based on these labels to improve re-inspection efficiency.
[0161] By configuring the package list, the embodiment of the present application allows the security inspector to perform targeted re-inspection operations based on the information contained in the package list when the package list is opened, thereby quickly completing the re-inspection task and improving the work efficiency of the re-inspection.
[0162] The following describes the overall process of the image recognition method for the re-inspection device in the security inspection provided by the present application through a complete embodiment.
[0163] In general, the number of image judgment clients is less than the number of security inspection machines, which helps to reduce human resources. However, if the security inspection machine issues images concurrently, these image judgment clients will not be able to meet the image judgment needs. In the centralized image judgment system, re-inspection equipment will be involved. The re-inspection equipment is mainly used for tasks that require unpacking during the image judgment process (that is, the image judgment client finds that further unpacking and re-inspection are required during the image judgment of the package scan image). The unpacking task will be sent to the re-inspection equipment at the corresponding security inspection point for unpacking. However, in most cases, the task of unpacking is relatively small compared to the total number of packages passed by the security inspection machine. Therefore, the re-inspection equipment can be used to participate in the image judgment without the task of unpacking (that is, let the re-inspection equipment temporarily act as an image judgment client), and the image judgment and unpacking can be displayed on the same display interface of the re-inspection equipment.
[0164] Among them, in the case of a task without unpacking, the re-inspection equipment will be regarded as an image judgment client, and together with the original image judgment client, the total number of image judgment clients can be greater than the number of security inspection machines, thereby coping with the situation where the security inspection machines issue images concurrently.
[0165] Among them, when the package scan image is displayed on the display interface of the re-inspection device, if the package corresponding to the package scan image needs to be opened, a disposal button will also be displayed to distinguish whether the task currently displayed on the display interface is an image recognition task or an opening task.
[0166] In addition, the display interface of the re-inspection equipment will show the network connection status with the dispatch center, the number to be displayed, and the number of packages to be opened. Among them, the number to be displayed means that the image judgment task and / or re-inspection task has been issued to the re-inspection station equipment, but the package scan image corresponding to the image judgment task and / or re-inspection task has not been fully displayed on the display interface. When the corresponding package scan image is displayed on the display interface, the number to be displayed is reduced by one; the number of packages to be opened refers to the number of tasks that the re-inspection equipment needs to open and dispose of. When the package is disposed of, the corresponding number is reduced by one. The display interface of the re-inspection equipment outputs the image in a frame-by-frame column-by-column refresh manner, similar to the video stream method, and of course there is no restriction on other display methods.
[0167] For the centralized security inspection system, the security inspection machine and re-inspection equipment network at the security inspection point will be connected to the same switch, and the network of the security inspection machine and the re-inspection equipment will be connected under normal circumstances. However, the network between the dispatch center may be disconnected; when the network between the security inspection point and the dispatch center is disconnected, the current image judgment task cannot be reported to the dispatch center. At this time, the image judgment task of the security inspection machine needs to be directly sent to the re-inspection equipment.
[0168] When the number of packages to be opened on the re-inspection device changes from yes to no (i.e., it becomes idle), the re-inspection device can be used as a picture judgment client, registered with the dispatch center and go online. When the re-inspection device is successfully online, it can request a picture judgment task from the dispatch center for picture judgment when the current number of packages to be displayed is 0.
[0169] Among them, the scheduling strategy can be based on the principle of proximity, that is, if the security inspection machine and the re-inspection equipment are at the same security inspection point and the re-inspection equipment initiates a request for image judgment, the image judgment task of the security inspection point will be assigned to the re-inspection equipment first.
[0170] When the number of packages to be opened by the re-inspection device changes from none to some (i.e., it becomes busy), the re-inspection device should deregister the image recognition client registered on the dispatch center and complete the current image recognition task. After the image recognition is completed, the re-inspection operation is performed and the package is opened for disposal.
[0171] If the parcel that needs to be opened by the current re-inspection device comes from the image judgment task directly given by the security inspection machine (that is, after the re-inspection device judges the image judgment task given by the security inspection machine, it finds that the parcel needs to be opened), this means that the network of the security inspection point and the dispatch center is different, and it is necessary to prompt "Do you want to stop the current security inspection machine conveyor belt". This is mainly because after disconnecting from the dispatch center, the re-inspection device takes over the image judgment task of the security inspection machine. If the security inspection machine continues to pass the package to generate the image judgment task at this time, it will conflict with the hot sending of the opened parcel disposal.
[0172] If the re-inspection equipment can communicate with the dispatch center through the network, it will be in the centralized image judgment mode. For the unpacking task generated in the centralized image judgment mode, the re-inspection equipment can exit the reception of the image judgment task and give priority to the unpacking task. The subsequent image judgment tasks generated by the security inspection machine will be forwarded to other image judgment clients or the re-inspection station in the image judgment state for image judgment.
[0173] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0174] Figure 6 The schematic diagram of the structure of the image judging device of the security inspection re-inspection device provided in the embodiment of the present application, the image judging device can be integrated in the re-inspection device. For example, the re-inspection device can be a computer device. Figure 6 As shown, the image judgment device 600 may include a state determination module 610 , a role registration module 620 , an image judgment request module 630 , a package image judgment module 640 and a role deregistration module 650 .
[0175] The status determination module is used to determine whether the current status is busy or idle based on the number of packages to be re-inspected.
[0176] The role registration module is used to initiate a registration request to the dispatch center if it is in an idle state. The registration request is used to request the dispatch center to register the re-inspection device as an image judgment client.
[0177] The image judgment request module is used to initiate an image judgment request to the scheduling center. The image judgment request is used to request the scheduling center to select a target client from all image judgment clients that have sent image judgment requests based on a pre-configured scheduling strategy, and assign an image judgment task to the target client.
[0178] The package image recognition module is used to obtain the image recognition task. Based on the image recognition task, the package scan image is obtained from the target security inspection machine for image recognition.
[0179] The role deregistration module is used to initiate a deregistration request to the dispatch center if the role is in a busy state. The deregistration request is used to request the dispatch center to deregister the re-inspection device from the registered image judgment client.
[0180] Optionally, the image judgment request module can be specifically used to: carry the device information of the re-inspection device in the image judgment request. Among them, the re-inspection device is associated with the security inspection machine in the security inspection point, and the device information is used to enable the dispatch center to determine the security inspection machine associated with the re-inspection device, and if the dispatch center receives the image judgment task uploaded by the security inspection machine associated with the re-inspection device, the image judgment task is assigned to the re-inspection device; if the dispatch center does not receive the image judgment task uploaded by the security inspection machine associated with the re-inspection device, other security inspection machines that are not associated with the re-inspection device are selected, and the image judgment tasks uploaded by other security inspection machines are assigned to the re-inspection device. The security inspection point includes at least one security inspection machine and at least one re-inspection device.
[0181] Optionally, the package image recognition module can be specifically used to: detect the connection status with the dispatch center; if the connection with the dispatch center is disconnected, obtain the image recognition task from the local security inspection machine, the local security inspection machine is a security inspection machine set up at the same security inspection point as the re-inspection equipment; if the connection with the dispatch center is not disconnected, obtain the image recognition task assigned by the dispatch center.
[0182] Optionally, it also includes an update module, which is used to determine whether the package scan image is set at the same security checkpoint as the target security check machine if it does not meet the image judgment requirements; if it is set at the same security checkpoint as the target security check machine, the package corresponding to the package scan image is used as a package to be re-inspected, and the number of packages to be re-inspected is updated; based on the updated number of packages to be re-inspected, it is re-determined whether it is in a busy state or an idle state; if it is set at a different security checkpoint from the target security check machine, the image judgment result is uploaded to the dispatch center. Among them, the image judgment result is used by the dispatch center to send to the re-inspection equipment set at the same security checkpoint as the target security check machine, and the image judgment result indicates that the package scan image does not meet the image judgment requirements.
[0183] Optionally, a re-inspection module is further included, which is used to obtain a parcel scan image of the parcel to be re-inspected if it is in a busy state, the parcel to be re-inspected being the parcel corresponding to the parcel scan image that does not meet the image judgment requirements; display the parcel scan image of the parcel to be re-inspected on a display interface, or display the parcel scan image of the parcel to be re-inspected and a re-inspection operation control on the display interface, and the re-inspection operation control is used to perform a re-inspection operation on the parcel scan image of the parcel to be re-inspected.
[0184] Optionally, it also includes an information display module, which is used to obtain the number of tasks to be processed and / or the connection status between the re-inspection equipment and the dispatch center, the number of tasks to be processed includes the number of package scan images to be displayed and / or the number of re-inspection tasks to be processed; the number of tasks to be processed and / or the connection status between the re-inspection equipment and the dispatch center is displayed on the display interface.
[0185] Optionally, it also includes a list display module, which obtains a package list based on the pending re-inspection tasks, the package list including each pending re-inspection task; in response to a list viewing request, displays the package list on the display interface; in response to a task viewing request, determines a pending target re-inspection task from all the pending re-inspection tasks in the package list; based on the target re-inspection task, obtains a package scan image of the target re-inspection package; and displays the package scan image of the target re-inspection package on the display interface.
[0186] The device provided in the embodiment of the present application can be used to execute the method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0187] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the state determination module can be a separately established processing element, or it can be integrated in a certain processing element of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a certain processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0188] Figure 7 This is a schematic diagram of the structure of the re-inspection device provided in the embodiment of the present application. Figure 7 As shown, the re-inspection device 700 includes: at least one processor 710, a memory 720, a bus 730 and a communication interface 740. Among them: the processor, the communication interface and the memory communicate with each other through the bus. The communication interface is used to communicate with other devices. The communication interface includes a communication interface for data transmission and a display interface or an operation interface for human-computer interaction.
[0189] The processor is used to execute the computer-executable instructions stored in the memory, and specifically can execute the relevant steps in the method described in the above embodiment.
[0190] The processor may be a central processing unit, or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement an embodiment of the present invention. The one or more processors included in the review device may be processors of the same type, such as one or more CPUs; or they may be processors of different types, such as one or more CPUs and one or more ASICs. The memory is used to store computer execution instructions. The memory may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.
[0191] Figure 8 A schematic diagram of the structure of the centralized image judgment system provided in the embodiment of the present application is shown in FIG. Figure 8As shown, it includes a security inspection machine 10, a security inspection machine 20, a re-inspection device 11, a re-inspection device 21, a dispatch center and an image judgment client. When the re-inspection device 11 is in an idle state, it requests the dispatch center to register as an image judgment client; when it is in a busy state, it requests the dispatch center to cancel the image judgment client of the re-inspection device and perform the re-inspection task on the package to be re-inspected.
[0192] The security inspection machine is used to scan the package, form a package scan image, and send the image judgment task to the dispatch center.
[0193] The scheduling center is used to determine the target client among all image recognition clients based on the preset scheduling strategy, and allocate the image recognition task to the target client.
[0194] The image recognition client is used to initiate an image recognition request to the dispatch center, obtain the package scan image based on the assigned image recognition task, and perform image recognition on the package scan image to obtain the image recognition result. The image recognition result is used to determine whether the package is a package to be re-inspected.
[0195] For the description of the centralized image judgment system provided in the embodiments of the present application, reference may be made to the methods and devices in the above embodiments, the implementation principles and technical effects of which are similar and will not be repeated here.
[0196] This embodiment also provides a computer-readable storage medium, in which computer instructions are stored. When at least one processor of the re-inspection device executes the computer instructions, the re-inspection device executes the methods provided by the various embodiments described above.
[0197] This embodiment also provides a program product, which includes computer instructions stored in a readable storage medium. At least one processor of the re-inspection device can read the computer instructions from the readable storage medium, and at least one processor executes the computer instructions so that the re-inspection device implements the methods provided in the above various embodiments.
[0198] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0199] It is to be understood that the various numerical numbers involved in the embodiments of the present application are only for the convenience of description and are not intended to limit the scope of the embodiments of the present application. In the embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0200] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for judging an image of a re-inspection device during security inspection, characterized in that: The re-inspection device is used for re-inspecting the image, and the method comprises: Based on the number of packages to be re-inspected, determine whether the current status is busy or idle; If it is in the idle state, a registration request is initiated to the dispatch center, wherein the registration request is used to request the dispatch center to register the re-inspection device as an image judgment client; Initiating an image judgment request to the scheduling center, wherein the image judgment request is used to request the scheduling center to select a target client from all image judgment clients that have sent image judgment requests based on a pre-configured scheduling policy, and assign an image judgment task to the target client; Obtaining an image recognition task, and based on the image recognition task, obtaining a package scan image from a target security inspection machine for image recognition; If it is in the busy state, a deregistration request is initiated to the dispatch center, wherein the deregistration request is used to request the dispatch center to deregister the re-inspection device from the registered image judgment client.
2. The method according to claim 1, characterized in that The initiating a request for image judgment to the dispatch center includes: The image judgment request carries device information of the re-inspection device, and the re-inspection device is associated with a security inspection machine in a security inspection point. The device information is used for the dispatch center to determine the security inspection machine associated with the re-inspection device, and if the dispatch center receives an image judgment task uploaded by the security inspection machine associated with the re-inspection device, the image judgment task is assigned to the re-inspection device; if the dispatch center does not receive the image judgment task uploaded by the security inspection machine associated with the re-inspection device, other security inspection machines that are not associated with the re-inspection device are selected, and the image judgment tasks uploaded by the other security inspection machines are assigned to the re-inspection device, and the security inspection point includes at least one security inspection machine and at least one re-inspection device.
3. The method according to claim 1, characterized in that The task of obtaining image judgment includes: Detecting the connection status with the dispatch center; If the connection with the dispatch center is disconnected, the image judgment task is obtained from the local security inspection machine, and the local security inspection machine is a security inspection machine set up at the same security inspection point as the re-inspection equipment; If the connection with the dispatch center is not disconnected, the image judgment task assigned by the dispatch center is obtained.
4. The method according to claim 1, characterized in that After obtaining the scanned image of the package from the target security inspection machine and performing image judgment, the method further includes: If the scanned image of the parcel does not meet the image judgment requirements, determining whether the target security inspection machine is set at the same security inspection point; If the target security inspection machine is set at the same security inspection point, the package corresponding to the package scan image is used as a package to be re-inspected, and the number of packages to be re-inspected is updated; Re-determine the busy or idle status based on the updated number of packages to be re-inspected; If the target security inspection machine is set at a different security inspection point, the image judgment result is uploaded to the dispatch center, and the image judgment result is used by the dispatch center to send it to the re-inspection equipment set at the same security inspection point as the target security inspection machine. The image judgment result is used to indicate that the package scan image does not meet the image judgment requirements.
5. The method according to any one of claims 1 to 4, characterized in that After determining that the current state is busy or idle, the method further includes: If the status is busy, obtaining a parcel scan image of a parcel to be re-inspected, wherein the parcel to be re-inspected is a parcel corresponding to the parcel scan image that does not meet the image judgment requirement; The parcel scanned image of the parcel to be re-inspected is displayed on a display interface, or the parcel scanned image of the parcel to be re-inspected and a re-inspection operation control are displayed on the display interface, and the re-inspection operation control is used to perform a re-inspection operation on the parcel scanned image of the parcel to be re-inspected.
6. The method according to any one of claims 1 to 4, characterized in that Also includes: Acquire the number of tasks to be processed and / or the connection status between the re-inspection device and the dispatch center, wherein the number of tasks to be processed includes the number of package scan images to be displayed and / or the number of re-inspection tasks to be processed; The number of tasks to be processed and / or the connection status between the re-inspection device and the dispatch center are displayed on the display interface.
7. The method according to claims 1-4, characterized in that: Also includes: Based on the pending re-inspection tasks, obtaining a package list, wherein the package list includes each pending re-inspection task; In response to the list viewing request, displaying the package list on a display interface; In response to the task viewing request, determining a target re-inspection task to be processed from all re-inspection tasks to be processed in the package list; Based on the target re-inspection task, obtaining a package scan image of the target re-inspection package; The package scan image of the target re-inspected package is displayed on the display interface.
8. An image judging device for re-inspection equipment during security inspection, characterized in that: include: A status determination module, used to determine whether the current state is busy or idle based on the number of packages to be re-inspected; A role registration module, for initiating a registration request to a dispatch center if the device is in the idle state, wherein the registration request is for requesting the dispatch center to register the re-inspection device as an image judgment client; An image judgment request module is used to initiate an image judgment request to the scheduling center, wherein the image judgment request is used to request the scheduling center to select a target client from all image judgment clients that have sent image judgment requests based on a pre-configured scheduling policy, and assign an image judgment task to the target client; A parcel image recognition module is used to obtain an image recognition task, and based on the image recognition task, obtain a parcel scan image from a target security inspection machine for image recognition; The role deregistration module is used to initiate a deregistration request to the dispatch center if the device is in the busy state, wherein the deregistration request is used to request the dispatch center to deregister the re-inspection device from the registered image judgment client.
9. A re-inspection device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A centralized image recognition system, characterized in that: include: Security inspection machines, re-inspection equipment, dispatch center and image interpretation client; When the re-inspection device is in an idle state, it requests the dispatch center to register as the image judgment client; when it is in a busy state, it requests the dispatch center to cancel the image judgment client of the re-inspection device and perform the re-inspection task on the package to be re-inspected; The security inspection machine is used to scan the package, form a package scan image, and send the image judgment task to the dispatch center; The scheduling center is used to determine a target client among all image judgment clients based on a preset scheduling strategy, and allocate the image judgment task to the target client; The image judgment client is used to initiate an image judgment request to the dispatch center, obtain a package scan image based on the assigned image judgment task, and perform image judgment on the package scan image to obtain an image judgment result, and the image judgment result is used to determine whether the package is a package to be re-inspected.
