Information binding method and device, electronic equipment and computer readable storage medium

By using the target time interval in item information binding to replace the fixed time difference, the problem of low fault tolerance in the prior art is solved, and the success rate and accuracy of information binding are improved.

CN119477118AActive Publication Date: 2025-02-18SF TECH CO LTD

Patent Information

Application Number
CN202310995501.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-08
Publication Date
2025-02-18
Estimated Expiration
2043-08-08

AI Technical Summary

Technical Problem

In the prior art, fixed time difference is used to judge information binding, resulting in a low fault tolerance rate, affecting the success rate and accuracy of information binding.

Method used

By acquiring the transit time of the item to be detected between the first device and the second device, a target time interval is determined, and the image information and identification information are performed based on the acquisition time of the image information and the acquisition time of the identification information, and the target time interval, the image information and identification information are performed according to the acquisition time of the image information and the acquisition time of the identification information, as well as the target time interval. Bind.

Benefits of technology

It improves the fault tolerance rate of information binding and enhances the success rate and accuracy of information binding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119477118A_ABST
    Figure CN119477118A_ABST
Patent Text Reader

Abstract

The invention provides an information binding method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: obtaining a first data queue and a second data queue, the first data queue comprises the image information of each to-be-detected article collected by first equipment in sequence, and the second data queue comprises the image information of each to-be-detected article; the second data queue comprises identification information of each to-be-detected article collected by the second equipment in sequence; obtaining a target time interval, wherein the target time interval is determined according to the transit time of the at least two to-be-detected articles between the first equipment and the second equipment; and binding the image information in the first data queue and the identification information in the second data queue according to the first acquisition time of each piece of image information in the first data queue, the second acquisition time of each piece of identification information in the second data queue and the target time interval to obtain an image identification group. The target time interval is used for information binding, so that the success rate and accuracy of information binding can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an information binding method, device, electronic device and computer-readable storage medium. Background Art

[0002] With the development of logistics industry and computer technology, image code information binding technology has emerged. Image code information binding technology refers to the corresponding binding of image information and identification information, which can be applied in technical fields such as article security inspection.

[0003] In the prior art, a fixed time difference is usually preset for determining information binding. If the difference between the acquisition time of the image information and the acquisition time of the identification information is equal to the preset fixed time difference, the binding is successful, otherwise the binding fails.

[0004] The problem with the existing technology is that the use of a fixed time difference for judgment places high demands on data accuracy. Even if there is a small error, the data cannot be correctly bound, and the fault tolerance rate is low, which affects the success rate and accuracy of information binding. Summary of the invention

[0005] The present application provides an information binding method, device, electronic device and computer-readable storage medium, which are used to solve the problem that the current information binding solution has a low fault tolerance rate, which affects the success rate and accuracy of information binding.

[0006] In a first aspect, the present application provides an information binding method, the method comprising:

[0007] Acquire a first data queue and a second data queue, wherein the first data queue includes image information of each object to be detected collected in sequence by the first device, and the second data queue includes identification information of each object to be detected collected in sequence by the second device;

[0008] Acquire a target time interval, where the target time interval is determined according to a transit time of at least two objects to be detected between the first device and the second device;

[0009] According to the first acquisition time of each image information in the first data queue, the second acquisition time of each identification information in the second data queue, and the target time interval, the image information in the first data queue and the identification information in the second data queue are bound to obtain an image identification group.

[0010] Optionally, before obtaining the target time interval, the method further includes:

[0011] Obtaining a basic time according to a device distance between the first device and the second device and an average transfer speed of the object to be detected between the first device and the second device;

[0012] Acquire a transfer speed offset of each type of the to-be-detected object between the first device and the second device, and adjust the basic time according to each transfer speed offset to obtain an initial time interval;

[0013] Acquire a first historical data queue and a second historical data queue, wherein the first historical data queue includes image information of each object to be detected collected in sequence by the first device in history, and the second historical data queue includes identification information of each object to be detected collected in sequence by the second device in history;

[0014] The initial time interval is optimized according to the first historical data queue and the second historical data queue to obtain a target time interval.

[0015] Optionally, optimizing the initial time interval according to the first historical data queue and the second historical data queue to obtain a target time interval includes:

[0016] According to the first acquisition time of each image information in the first historical data queue, the second acquisition time of each identification information in the second historical data queue, and the initial time interval, the image information in the first historical data queue and the identification information in the second historical data queue are bound to obtain an image identification group;

[0017] Counting the binding success rate of each of the image identification groups bound based on the initial time interval;

[0018] The initial time interval is adjusted according to the binding success rate until a target time interval with a binding success rate greater than a preset success rate threshold is obtained, and / or a target time interval with a maximum binding success rate when the number of adjustments is greater than a preset number threshold is obtained.

[0019] Optionally, the adjusting the initial time interval according to the binding success rate until obtaining a target time interval in which the binding success rate is greater than a preset success rate threshold, and / or a target time interval in which the binding success rate is maximum when the number of adjustments is greater than a preset number threshold, includes:

[0020] If the binding success rate is greater than a preset success rate threshold, setting the initial time interval as a target time interval;

[0021] If the binding success rate is less than or equal to a preset success rate threshold, the initial time interval is updated according to a preset time adjustment threshold and a preset number threshold; wherein the time adjustment threshold is determined according to the object distance between two adjacent objects to be detected and the average transfer speed;

[0022] Until a target time interval in which the binding success rate is greater than a preset success rate threshold is obtained, and / or a target time interval in which the binding success rate is maximum when the number of adjustments is greater than a preset number threshold is obtained.

[0023] Optionally, the first device is a security inspection device, the second device is a scanning device, the image information is an item image, and the identification information is an item waybill identification;

[0024] A first photoelectric sensor and a second photoelectric sensor are respectively arranged at the entrance and the exit of the security inspection device, and the first acquisition time is an average of a first trigger time corresponding to the first photoelectric sensor and a second trigger time corresponding to the second photoelectric sensor.

[0025] Optionally, the step of binding the image information in the first data queue and the identification information in the second data queue according to the first acquisition time of each image information in the first data queue, the second acquisition time of each identification information in the second data queue, and the target time interval to obtain the image identification group includes:

[0026] The following operations are performed for each image information in the first data queue:

[0027] According to the first acquisition time corresponding to the image information, extracting target identification information corresponding to a second acquisition time whose difference with the first acquisition time does not exceed the target time interval from the second data queue;

[0028] If the target identification information does not exist, output binding prompt information;

[0029] If the target identification information exists, the image information and the target identification information are bound to obtain an image identification group.

[0030] Optionally, after binding the image information in the first data queue and the identification information in the second data queue according to the first acquisition time of each image information in the first data queue, the second acquisition time of each identification information in the second data queue, and the target time interval to obtain the image identification group, the method further includes:

[0031] Acquire unbound information and repeated bound information according to the image identification group, wherein the unbound information is image information that is not bound to any information, and the repeated bound information is image information bound to at least two target identification information;

[0032] When the amount of the unbound information is greater than the amount of the repeated bound information, expanding the target time interval;

[0033] When the amount of the unbound information is less than the amount of the repeated bound information, the target time interval is reduced.

[0034] On the other hand, an embodiment of the present application provides an information binding device;

[0035] The information binding device includes:

[0036] A data acquisition module, used to acquire a first data queue of the objects to be detected collected by the first device, and a second data queue of the objects to be detected collected by the second device, wherein the first data queue includes image information corresponding to each of the objects to be detected, and the second data queue includes identification information corresponding to each of the objects to be detected;

[0037] A time interval acquisition module, used to acquire a target time interval, wherein the target time interval is obtained by fitting the transit time of at least two objects to be detected between the first device and the second device;

[0038] The information binding module is used to bind the image information and the identification information according to the first acquisition time of the image information, the second acquisition time of the image information and the target time interval.

[0039] On the other hand, an embodiment of the present application further provides an electronic device, wherein a processor and a memory are provided in the electronic device, an application is stored in the memory, and the processor is used to run the application in the memory to implement the steps in the above-mentioned information binding method.

[0040] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to implement the steps in the above-mentioned information binding method.

[0041] From the above content, it can be concluded that the present application has the following beneficial effects:

[0042] The present application provides an information binding method, device, electronic device and computer-readable storage medium, the method comprising: obtaining a first data queue and a second data queue, wherein the first data queue includes image information of each object to be detected collected in sequence by the first device, and the second data queue includes identification information of each object to be detected collected in sequence by the second device; obtaining a target time interval, wherein the target time interval is determined according to a transit time between at least two objects to be detected between the first device and the second device; and binding the image information in the first data queue and the identification information in the second data queue according to a first collection time of each image information in the first data queue, a second collection time of each identification information in the second data queue, and the target time interval to obtain an image identification group.

[0043] In the present application, the target time interval is determined according to the transit time of the object to be detected between the first device and the second device, so that the information binding of the image information and the identification information can be realized according to the first acquisition time of the image information in the first data queue, the second acquisition time of the identification information in the second data queue, and the target time interval. In the prior art, when the time difference between the first acquisition time and the second acquisition time is directly compared with the preset fixed time difference to perform information binding, the time difference between the first acquisition time and the second acquisition time must be exactly equal to the preset fixed time difference for successful binding, which may cause information with small errors to fail to be correctly bound. Therefore, the target time interval is used in the embodiment of the present application for information binding, which has a higher fault tolerance rate than the scheme of directly using the time difference comparison method to perform information binding in the prior art, which is conducive to improving the success rate and accuracy of information binding. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0045] Figure 1 It is a scenario diagram of the information binding method provided in an embodiment of the present application;

[0046] Figure 2 This is a flowchart of an embodiment of the information binding method in the embodiment of the present application;

[0047] Figure 3 It is a schematic diagram of a process for determining a target time interval provided in an embodiment of the present application;

[0048] Figure 4This is a schematic diagram of an optimization process of an initial time interval provided in an embodiment of the present application;

[0049] Figure 5 This is a schematic diagram of an object scanning scenario provided by an embodiment of the present application;

[0050] Figure 6 It is a schematic diagram of the structure of an embodiment of an information binding device provided in an embodiment of the present application;

[0051] Figure 7 It is a schematic diagram of the structure of an embodiment of an electronic device provided in the embodiments of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of the present application.

[0053] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the said features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0054] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.

[0055] An information binding method, apparatus, device, and computer-readable storage medium are provided in the embodiments of the present application, which are described in detail below.

[0056] The information binding method in the embodiment of the present application is applied to an information binding device, which is arranged in an electronic device. The electronic device is provided with one or more processors, memories, and one or more applications, wherein the one or more applications are stored in the memories and configured to be executed by the processor to implement the information binding method; the electronic device can be a terminal, such as a mobile phone or a tablet computer, and the electronic device can also be a server, or a service cluster composed of multiple servers.

[0057] like Figure 1 As shown, Figure 1 This is a scenario diagram of the information binding method in an embodiment of the present application. The information binding scenario in the embodiment of the present application includes an electronic device 100 (an information binding device is integrated in the electronic device 100), and a computer-readable storage medium corresponding to the information binding is run in the electronic device 100 to execute the information binding steps.

[0058] Understandably, Figure 1 The electronic devices in the information binding scenario shown, or the devices included in the electronic devices, do not constitute a limitation on the embodiments of the present application. That is, the number of devices and types of devices included in the information binding scenario, or the number of devices and types of devices included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present application, and can all be regarded as equivalent replacements or derivatives of the technical solution claimed to be protected in the embodiments of the present application.

[0059] In the embodiment of the present application, the electronic device 100 is mainly used to: obtain a first data queue and a second data queue, wherein the first data queue includes image information of each object to be detected collected in sequence by the first device, and the second data queue includes identification information of each object to be detected collected in sequence by the second device; obtain a target time interval, wherein the target time interval is determined according to a transit time between at least two objects to be detected between the first device and the second device; and bind the image information in the first data queue and the identification information in the second data queue according to the first collection time of each image information in the first data queue, the second collection time of each identification information in the second data queue, and the target time interval to obtain an image identification group.

[0060] In the embodiment of the present application, the electronic device 100 may be an independent electronic device, or an electronic device grid or electronic device cluster composed of electronic devices. For example, the electronic device 100 described in the embodiment of the present application includes but is not limited to a computer, a grid host, a single grid electronic device, a plurality of grid electronic devices, or a cloud electronic device composed of a plurality of electronic devices. The cloud electronic device is composed of a large number of computers or grid electronic devices based on cloud computing.

[0061] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution and does not constitute a limitation on the application scenario of the present application solution. Other application environments may also include Figure 1 More or fewer electronic devices as shown, or electronic device grid connection relationships, such as Figure 1 Only one electronic device is shown. It can be understood that the information binding scenario may also include one or more other electronic devices, which are not specifically limited here; the electronic device 100 may also include a memory.

[0062] In addition, in the information binding scenario of the present application, the electronic device 100 may be provided with a display device, or the electronic device 100 may not be provided with a display device and may be communicated with an external display device 200, and the display device 200 is used to output the result of the execution of the information binding method in the electronic device. The electronic device 100 may access a backend database 300 (the backend database may be in the local memory of the electronic device, or may be set in the cloud), and the backend database 300 may store information related to information binding.

[0063] It should be noted that Figure 1The scenario diagram of the information binding method shown is merely an example. The information binding scenario described in the embodiment of the present application is intended to more clearly illustrate the technical solution of the embodiment of the present application and does not constitute a limitation on the technical solution provided in the embodiment of the present application.

[0064] Based on the above information binding scenario, an embodiment of the information binding method is proposed. The information binding method in this embodiment is applied to an electronic device, and the type of the electronic device is not specifically limited. For example, the electronic device can be a terminal or a server. This embodiment takes the server as an example for description.

[0065] Figure 2 is a flowchart of an information binding method provided by an embodiment of the present application, such as Figure 2 As shown, the information binding method in the embodiment of the present application includes steps 201-203:

[0066] 201. Obtain a first data queue and a second data queue, wherein the first data queue includes image information of each object to be detected collected in sequence by a first device, and the second data queue includes identification information of each object to be detected collected in sequence by a second device.

[0067] In the embodiment of the present application, the above-mentioned information binding method is applied to the express item security inspection scenario. For example, during centralized security inspection, the express is transported by a belt conveyor, passes through a single-piece separator, and then passes through a security inspection machine for security inspection image collection, and then uses a six-sided scanner to collect identification (such as a waybill number). During the centralized security inspection process, multiple express deliveries will continue to be imaged and identified. Therefore, what is obtained is the queue corresponding to the image information and the queue corresponding to the identification information. The information in the two queues needs to be bound one-to-one to determine the identification information corresponding to each security inspection image.

[0068] Specifically, the items to be inspected are items that need to be scanned for security inspection. In this embodiment, multiple items to be inspected pass through the first device and the second device in sequence. The first device is used to collect image information and store it in the first data queue, and the second device is used to collect identification information and store it in the second data queue.

[0069] 202 , obtaining a target time interval, where the target time interval is determined according to a transit time of at least two objects to be detected between the first device and the second device.

[0070] Among them, the target time interval is a time range used to determine whether the image information in the first data queue and the identification information in the second data queue can be bound. The transit time is the time it takes for the object to be detected to be transmitted from the first device to the second device. It should be noted that during the actual transmission process, the unstable speed of the belt conveyor, the different placement positions of the objects to be detected, the different sizes of the objects to be detected, etc. may cause different actual transit times for different objects to be detected. Therefore, in this embodiment, a target time interval is determined based on the transit times corresponding to at least two objects to be detected, and information binding is performed based on the target time interval, which is conducive to improving the success rate and accuracy of information binding.

[0071] 203. Bind the image information in the first data queue and the identification information in the second data queue according to the first acquisition time of each image information in the first data queue, the second acquisition time of each identification information in the second data queue, and the target time interval to obtain an image identification group.

[0072] Specifically, for an image information, if there is a difference between a second acquisition time corresponding to an identification information and a first acquisition time corresponding to the image information that belongs to the target time interval, the image information can be bound to the identification information to obtain an image identification group.

[0073] In this way, the image information and identification information are bound based on the target time interval. As long as the difference between the first acquisition time and the second acquisition time belongs to the target time interval, information binding can be achieved. Using the target time interval for judgment can improve the fault tolerance rate when binding information, which is conducive to improving the success rate and accuracy of information binding.

[0074] In some embodiments of the present application, the target time interval may be determined based on data corresponding to a group of objects to be detected that have been used historically. Figure 3 FIG. 1 is a flow chart of determining a target time interval provided by an embodiment of the present application. Figure 3 As shown, before obtaining the target time interval, the target time interval is determined according to the following steps 301-304:

[0075] 301 : Obtain a basic time according to a device distance between the first device and the second device and an average transfer speed of the object to be detected between the first device and the second device.

[0076] Specifically, the positions of the first device and the second device are fixed, so the device distance between the two can be determined, and the basic time is the value obtained by dividing the device distance by the average transfer speed, that is, the average time required for the object to be detected to pass through the first device and the second device. In this embodiment, the first device is a security inspection device and the second device is a scanning device (such as a six-sided scanner) as an example, but it is not a specific limitation.

[0077] In a specific application scenario, the items to be inspected are transmitted between the security inspection equipment and the scanning equipment via a belt conveyor. The above average transfer speed is the ideal transmission speed of the belt conveyor. For example, the transmission speed (i.e., the average transfer speed) set by the belt conveyor is 1.5 m / s or 2 m / s. Taking the average transfer speed of 1.5 m / s and the equipment distance of 3 meters as an example, the basic time is 2 seconds.

[0078] 302 , obtaining a transfer speed offset of each type of the to-be-detected object between the first device and the second device, and adjusting the basic time according to each transfer speed offset to obtain an initial time interval.

[0079] In actual application, different items to be detected may have speed deviations during transportation, that is, they cannot be accurately transmitted at the average transit speed. In this embodiment, the transit speed offset of each type of item to be detected between the first device and the second device can be obtained in advance, so as to adjust the basic time and obtain an initial time interval wider than the basic time range. Among them, the transit speed offset is the offset between the actual transit speed of the item to be detected during the test and the average transit speed. In this way, considering the offset of the transit speed is conducive to improving the rationality of the initial time interval obtained, thereby improving the success rate of information binding.

[0080] 303, obtaining a first historical data queue and a second historical data queue, wherein the first historical data queue includes image information of each object to be detected that is historically collected sequentially by the first device, and the second historical data queue includes identification information of each object to be detected that is historically collected sequentially by the second device.

[0081] 304 : Optimize the initial time interval according to the first historical data queue and the second historical data queue to obtain a target time interval.

[0082] The first historical data queue and the second historical data queue are data queues constructed after the first device and the second device collect information on each historical object to be detected during the historical information binding process or the historical testing process.

[0083] Figure 4 is a schematic diagram of an optimization process of an initial time interval provided in an embodiment of the present application, such as Figure 4 As shown, the initial time interval is optimized according to the first historical data queue and the second historical data queue to obtain the target time interval, including the following steps 401-403:

[0084] 401. According to the first acquisition time of each image information in the first historical data queue, the second acquisition time of each identification information in the second historical data queue, and the initial time interval, the image information in the first historical data queue and the identification information in the second historical data queue are bound to obtain an image identification group.

[0085] The first acquisition time is the time when the first device acquires the image information, and the second acquisition time is the time when the second device acquires the identification information, which can be determined according to the device time of the corresponding device, or by the trigger time of the photoelectric sensor set at the corresponding device, or by other determination methods (such as the storage time of the corresponding information), which are not specifically limited here. When an image information can be successfully bound to a unique identification information, a set of image identification groups can be obtained.

[0086] 402 , counting the binding success rate of each of the image identification groups bound based on the initial time interval.

[0087] 403, adjusting the initial time interval according to the binding success rate until obtaining a target time interval with a binding success rate greater than a preset success rate threshold and / or obtaining a target time interval with a maximum binding success rate when the number of adjustments is greater than a preset number threshold.

[0088] In some embodiments of the present application, after obtaining the initial time interval, information binding (i.e., image code binding) is performed according to the initial time interval, and the final code binding situation is virtually tested, and an optimization function variable for adjusting the initial time interval is constructed, with the information binding success rate as the optimization target, and the initial time interval is optimized multiple times according to the optimization function variable, and finally the optimized target time interval is obtained.

[0089] Specifically, a preset optimization program can be used to automatically optimize the time interval. The time interval to be optimized is defined as (ax, a+y), where the value of a is determined according to the value of the actual initial time interval, x and y are a set of independent variables, and the initial values ​​of x and y can be set and adjusted according to actual needs. The values ​​of x and y are optimized so that the binding success rate corresponding to the optimized time interval is improved. When the number of adjustments reaches a preset number threshold, and / or the binding success rate reaches a preset success rate threshold, and / or the binding success rate reaches a maximum value during the optimization process, the time interval optimization is completed, and the time interval with the largest binding success rate during the optimization process is obtained as the target time interval.

[0090] When judging the accuracy of information binding, if an image information can be bound to a unique identification information, the binding is considered successful, otherwise the binding is considered unsuccessful. The optimization goal is to minimize the number of image information and identification information that cannot be bound. In the process of optimizing the time interval, the time interval step can be gradually increased to make adjustments (for example, the value of x and / or y is gradually increased by 1 millisecond), and the optimization is carried out with the goal of maximizing the number of image information and identification information that are successfully bound (that is, the highest information binding accuracy), determining the final x value and y value, and thus determining the final target time interval. In this way, the target time interval finally obtained can improve the success rate and accuracy of the subsequent information binding process.

[0091] In some embodiments of the present application, the initial time interval is adjusted according to the binding success rate until a target time interval is obtained in which the binding success rate is greater than a preset success rate threshold, and / or a target time interval in which the binding success rate is the largest when the number of adjustments is greater than a preset number threshold, including: if the binding success rate is greater than the preset success rate threshold, the initial time interval is set to the target time interval; if the binding success rate is less than or equal to the preset success rate threshold, the initial time interval is updated according to a preset time adjustment threshold and a preset number threshold; wherein the time adjustment threshold is determined according to the object distance between two adjacent objects to be detected and the average transfer speed; until a target time interval is obtained in which the binding success rate is greater than the preset success rate threshold, and / or a target time interval in which the binding success rate is the largest when the number of adjustments is greater than the preset number threshold.

[0092] In the process of adjusting the initial time interval according to the binding success rate, the binding success rate may have various situations, illustratively including:

[0093] (1) If the binding success rate obtained when using the initial time interval for binding is directly greater than the preset success rate threshold (the threshold can be set and adjusted according to actual needs), it means that the current initial time interval has met the information binding requirements and can be directly used as the target time interval.

[0094] (2) If the binding success rate is less than (or equal to) the preset success rate threshold, the initial time interval is adjusted. The preset time adjustment threshold can be set and adjusted according to actual needs, and is used to determine how much to enlarge or reduce the initial time interval each time. The preset time adjustment threshold can be set and adjusted according to actual needs, and is used to limit the maximum change value of the interval endpoint value when the initial time interval is adjusted. For example, the initial time interval before optimization is [A, B], and it is adjusted to [A±x, B±y] during the optimization process (after one or more optimizations). The time adjustment threshold is used to limit the maximum value of x and y to avoid errors in the information binding between adjacent items to be detected (for example, binding the information of the next batch of items to the previous batch of items).

[0095] The time adjustment threshold can be determined according to the distance between two adjacent objects to be detected and the average transfer speed. In a specific application scenario, the distance between two adjacent objects to be detected after passing through the single-piece separator is greater than 15 cm, the average speed of the belt conveyor is 1.5 m / s, and the shortest time difference between two adjacent objects to be detected is 0.1 seconds. Therefore, the time adjustment threshold can be set to 0.1 seconds.

[0096] In some embodiments of the present application, the first device is a security inspection device, the second device is a scanning device, the image information is an item image, and the identification information is an item waybill identification;

[0097] A first photoelectric sensor and a second photoelectric sensor are respectively arranged at the entrance and the exit of the security inspection device, and the first acquisition time is an average of a first trigger time corresponding to the first photoelectric sensor and a second trigger time corresponding to the second photoelectric sensor.

[0098] For example, Figure 5 is a schematic diagram of an object scanning scenario provided in an embodiment of the present application, such as Figure 5 As shown, the objects to be inspected are transported by a belt conveyor and pass through the security inspection equipment and scanning equipment in turn. Different objects to be inspected may have different shapes and lengths, which may result in different times for information collection.

[0099] Therefore, according to the average of the triggering time of the first photoelectric sensor and the second photoelectric sensor, the first acquisition time of the security inspection device to collect the item image can be better determined, thereby improving the accuracy of information binding. The item image is specifically an item security inspection image obtained by the security inspection machine performing a security inspection scan on the item to be inspected. It should be noted that corresponding photoelectric sensors can also be respectively set at the entrance and exit of the scanning device to improve the accuracy of the determined second acquisition time, which will not be repeated here.

[0100] In some embodiments of the present application, the image information in the first data queue and the identification information in the second data queue are bound according to the first acquisition time of each image information in the first data queue, the second acquisition time of each identification information in the second data queue, and the target time interval to obtain the image identification group, including:

[0101] The following operations are performed for each image information in the first data queue:

[0102] According to the first acquisition time corresponding to the image information, extracting target identification information corresponding to a second acquisition time whose difference with the first acquisition time does not exceed the target time interval from the second data queue;

[0103] If the target identification information does not exist, output binding prompt information;

[0104] If the target identification information exists, the image information and the target identification information are bound to obtain an image identification group.

[0105] The binding prompt information is preset image code binding failure information, and outputting the binding prompt information helps to prompt the operator to verify the image information and / or identification information of the failed binding, thereby improving the accuracy and success rate of the image code binding.

[0106] It should be noted that the image identification group obtained when the binding is successful includes an image information and at least one identification information matching the image information. In this embodiment, the best binding effect is the one-to-one matching of image information and identification information. If an image information is not bound to any identification information, or an image information is bound to multiple identification information, it means that the image identification group may have a risk of incorrect binding, which further indicates that the target time interval currently used may cause incorrect binding. The target time interval can be adjusted to improve the accuracy of binding.

[0107] Specifically, after binding the image information in the first data queue and the identification information in the second data queue according to the first acquisition time of each image information in the first data queue, the second acquisition time of each identification information in the second data queue, and the target time interval to obtain the image identification group, the method further includes:

[0108] Acquire unbound information and repeated bound information according to the image identification group, wherein the unbound information is image information that is not bound to any information, and the repeated bound information is image information bound to at least two target identification information;

[0109] When the amount of the unbound information is greater than the amount of the repeated bound information, expanding the target time interval;

[0110] When the amount of the unbound information is less than the amount of the repeated bound information, the target time interval is reduced.

[0111] It should be noted that when the target time interval is expanded or reduced, the corresponding expansion range and reduction range can be preset or adjusted according to actual needs, and are not specifically limited here.

[0112] In the embodiment of the present application, the information binding method is also specifically described based on a specific application scenario. In this specific application scenario, the items to be inspected (i.e., express delivery) are sorted at the transfer site, and the security inspection equipment is set up in the middle of the sorting line (i.e., belt conveyor). The express delivery first passes through a single-piece separator to separate the express delivery that is closer to each other, so as to ensure that the express delivery passes through the security inspection equipment one by one in sequence. When the first photoelectric sensor at the entrance of the security inspection equipment is triggered, the security inspection equipment turns on the perspective image to take pictures, and when the second photoelectric sensor at the exit of the security inspection equipment is triggered, it turns off the picture taking, thereby obtaining a security inspection image.

[0113] After passing through the security inspection equipment, after a preset distance (for example, 3 meters), it passes through the scanning equipment (for example, a six-sided scanning equipment). A photoelectric sensor is set at the entrance of the scanning equipment to sense the entry of the express delivery. When the photoelectric sensor is triggered, the waybill identification (for example, the waybill number) is obtained through the scanning equipment. In actual use, due to factors such as the different lengths of express parcels and the uncertain position of the cover sheet, the actual time for collecting and obtaining the waybill identification is not fixed. If the information is bound only by a fixed time difference, it is easy to cause binding failure.

[0114] Therefore, in the embodiment of the present application, information binding is performed based on the target time interval, which is conducive to improving the success rate of information binding. Further, after the above information binding method is deployed and actually runs for a period of time (for example, one week), the information binding results during the operation can be analyzed, and then the target time interval used for information binding can be optimized to adapt to the specific information binding environment and improve the accuracy of information binding.

[0115] In this way, based on the information binding method provided in the embodiment of the present application, the target time interval can be determined according to the transit time of the object to be detected between the first device and the second device, so that the information binding of the image information and the identification information can be realized according to the first acquisition time of the image information in the first data queue, the second acquisition time of the identification information in the second data queue, and the target time interval. In the prior art, when the time difference between the first acquisition time and the second acquisition time is directly compared with the preset fixed time difference to perform information binding, the time difference between the first acquisition time and the second acquisition time must be exactly equal to the preset fixed time difference in order to successfully bind, which may cause information with small errors to fail to bind correctly. Therefore, the target time interval is used in the embodiment of the present application for information binding, which has a higher fault tolerance rate than the scheme of directly using the time difference comparison method to perform information binding in the prior art, which is conducive to improving the success rate and accuracy of information binding.

[0116] In order to better implement the information binding method in the embodiment of the present application, based on the information binding method, an information binding device is also provided in the embodiment of the present application. Figure 6 is a schematic diagram of the structure of an embodiment of the information binding device provided in the embodiment of the present application, such as Figure 6 As shown, the information binding device includes:

[0117] The data acquisition module 601 is used to acquire a first data queue of the objects to be detected collected by the first device, and a second data queue of the objects to be detected collected by the second device, wherein the first data queue includes image information corresponding to each of the objects to be detected, and the second data queue includes identification information corresponding to each of the objects to be detected;

[0118] A time interval acquisition module 602 is used to acquire a target time interval, where the target time interval is obtained by fitting the transit time of at least two objects to be detected between the first device and the second device;

[0119] The information binding module 603 is used to bind the image information and the identification information according to the first acquisition time of the image information, the second acquisition time of the image information and the target time interval.

[0120] In some embodiments of the present application, the information binding device further includes a target time interval determination module, which is used to: obtain a basic time according to a device distance between the first device and the second device, and an average transfer speed of the object to be detected between the first device and the second device;

[0121] Acquire a transfer speed offset of each type of the to-be-detected object between the first device and the second device, and adjust the basic time according to each transfer speed offset to obtain an initial time interval;

[0122] Acquire a first historical data queue and a second historical data queue, wherein the first historical data queue includes image information of each object to be detected collected in sequence by the first device in history, and the second historical data queue includes identification information of each object to be detected collected in sequence by the second device in history;

[0123] The initial time interval is optimized according to the first historical data queue and the second historical data queue to obtain a target time interval.

[0124] In some embodiments of the present application, the target time interval determination module is further specifically used to: bind the image information in the first historical data queue and the identification information in the second historical data queue according to the first acquisition time of each image information in the first historical data queue, the second acquisition time of each identification information in the second historical data queue, and the initial time interval to obtain an image identification group;

[0125] Counting the binding success rate of each of the image identification groups bound based on the initial time interval;

[0126] The initial time interval is adjusted according to the binding success rate until a target time interval with a binding success rate greater than a preset success rate threshold is obtained, and / or a target time interval with a maximum binding success rate when the number of adjustments is greater than a preset number threshold is obtained.

[0127] In some embodiments of the present application, the target time interval determination module is further specifically used to: if the binding success rate is greater than a preset success rate threshold, set the initial time interval as the target time interval;

[0128] If the binding success rate is less than or equal to a preset success rate threshold, the initial time interval is updated according to a preset time adjustment threshold and a preset number threshold; wherein the time adjustment threshold is determined according to the object distance between two adjacent objects to be detected and the average transfer speed;

[0129] Until a target time interval in which the binding success rate is greater than a preset success rate threshold is obtained, and / or a target time interval in which the binding success rate is maximum when the number of adjustments is greater than a preset number threshold is obtained.

[0130] In some embodiments of the present application, the first device is a security inspection device, the second device is a scanning device, the image information is an item image, and the identification information is an item waybill identification;

[0131] A first photoelectric sensor and a second photoelectric sensor are respectively arranged at the entrance and the exit of the security inspection device, and the first acquisition time is an average of a first trigger time corresponding to the first photoelectric sensor and a second trigger time corresponding to the second photoelectric sensor.

[0132] In some embodiments of the present application, the information binding module 603 is specifically used to: perform the following operations on each image information in the first data queue:

[0133] According to the first acquisition time corresponding to the image information, extracting target identification information corresponding to a second acquisition time whose difference with the first acquisition time does not exceed the target time interval from the second data queue;

[0134] If the target identification information does not exist, output binding prompt information;

[0135] If the target identification information exists, the image information and the target identification information are bound to obtain an image identification group.

[0136] In some embodiments of the present application, the information binding device further includes a target time interval updating module, which is used to: obtain unbound information and repeated bound information according to the image identification group, wherein the unbound information is image information that is not bound to any information, and the repeated bound information is image information bound to at least two target identification information;

[0137] When the amount of the unbound information is greater than the amount of the repeated bound information, expanding the target time interval;

[0138] When the amount of the unbound information is less than the amount of the repeated bound information, the target time interval is reduced.

[0139] In this way, based on the information binding device provided in the embodiment of the present application, the target time interval can be determined according to the transit time of the object to be detected between the first device and the second device, so that the information binding of the image information and the identification information can be realized according to the first acquisition time of the image information in the first data queue, the second acquisition time of the identification information in the second data queue, and the target time interval. In the prior art, when the time difference between the first acquisition time and the second acquisition time is directly compared with the preset fixed time difference to perform information binding, the time difference between the first acquisition time and the second acquisition time must be exactly equal to the preset fixed time difference in order to successfully bind, which may cause information with small errors to fail to bind correctly. Therefore, the target time interval is used in the embodiment of the present application for information binding, which has a higher fault tolerance rate than the scheme of directly using the time difference comparison method to perform information binding in the prior art, which is conducive to improving the success rate and accuracy of information binding.

[0140] The present application also provides an electronic device, such as Figure 7 As shown, Figure 7 It is a schematic diagram of the structure of an embodiment of an electronic device provided in the embodiments of the present application.

[0141] The electronic device integrates any one of the information binding devices provided in the embodiments of the present application, and the electronic device includes:

[0142] one or more processors;

[0143] Memory; and

[0144] One or more applications, wherein the one or more applications are stored in the memory and are configured so that the processor executes the steps of the information binding method described in any of the above-mentioned information binding method embodiments.

[0145] Specifically, the electronic device may include one or more processors 701 of processing cores, one or more computer-readable storage media memories 702, a power supply 703, an input unit 704 and other components. Those skilled in the art will appreciate that Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0146] The processor 701 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.

[0147] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.

[0148] The electronic device also includes a power supply 703 for supplying power to each component. Preferably, the power supply 703 can be logically connected to the processor 701 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 703 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0149] The electronic device may further include an input unit 704, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0150] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 701 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 702 according to the following instructions, and the processor 701 will run the application programs stored in the memory 702, thereby realizing various functions, as follows:

[0151] Acquire a first data queue and a second data queue, wherein the first data queue includes image information of each object to be detected collected in sequence by the first device, and the second data queue includes identification information of each object to be detected collected in sequence by the second device;

[0152] Acquire a target time interval, where the target time interval is determined according to a transit time of at least two objects to be detected between the first device and the second device;

[0153] According to the first acquisition time of each image information in the first data queue, the second acquisition time of each identification information in the second data queue, and the target time interval, the image information in the first data queue and the identification information in the second data queue are bound to obtain an image identification group.

[0154] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0155] To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any one of the information binding methods provided in the embodiments of the present application. For example, the computer program can be loaded by a processor to execute the following steps:

[0156] Acquire a first data queue and a second data queue, wherein the first data queue includes image information of each object to be detected collected in sequence by the first device, and the second data queue includes identification information of each object to be detected collected in sequence by the second device;

[0157] Acquire a target time interval, where the target time interval is determined according to a transit time of at least two objects to be detected between the first device and the second device;

[0158] According to the first acquisition time of each image information in the first data queue, the second acquisition time of each identification information in the second data queue, and the target time interval, the image information in the first data queue and the identification information in the second data queue are bound to obtain an image identification group.

[0159] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0160] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.

[0161] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0162] The information binding method, device, electronic device, computer-readable storage medium and computer-readable storage medium provided by the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An information binding method, characterized in that: The information binding method comprises: Acquire a first data queue and a second data queue, wherein the first data queue includes image information of each object to be detected collected in sequence by the first device, and the second data queue includes identification information of each object to be detected collected in sequence by the second device; Acquire a target time interval, where the target time interval is determined according to a transit time of at least two objects to be detected between the first device and the second device; According to the first acquisition time of each image information in the first data queue, the second acquisition time of each identification information in the second data queue, and the target time interval, the image information in the first data queue and the identification information in the second data queue are bound to obtain an image identification group.

2. The information binding method according to claim 1, characterized in that: Before obtaining the target time interval, the method further includes: Obtaining a basic time according to a device distance between the first device and the second device and an average transfer speed of the object to be detected between the first device and the second device; Acquire a transfer speed offset of each type of the to-be-detected object between the first device and the second device, and adjust the basic time according to each transfer speed offset to obtain an initial time interval; Acquire a first historical data queue and a second historical data queue, wherein the first historical data queue includes image information of each object to be detected collected in sequence by the first device in history, and the second historical data queue includes identification information of each object to be detected collected in sequence by the second device in history; The initial time interval is optimized according to the first historical data queue and the second historical data queue to obtain a target time interval.

3. The information binding method according to claim 2, characterized in that: The optimizing the initial time interval according to the first historical data queue and the second historical data queue to obtain a target time interval includes: According to the first acquisition time of each image information in the first historical data queue, the second acquisition time of each identification information in the second historical data queue, and the initial time interval, the image information in the first historical data queue and the identification information in the second historical data queue are bound to obtain an image identification group; Counting the binding success rate of each of the image identification groups bound based on the initial time interval; The initial time interval is adjusted according to the binding success rate until a target time interval with a binding success rate greater than a preset success rate threshold is obtained, and / or a target time interval with a maximum binding success rate when the number of adjustments is greater than a preset number threshold is obtained.

4. The information binding method according to claim 3, characterized in that: The adjusting the initial time interval according to the binding success rate until obtaining a target time interval in which the binding success rate is greater than a preset success rate threshold, and / or a target time interval in which the binding success rate is the largest when the number of adjustments is greater than a preset number threshold, includes: If the binding success rate is greater than a preset success rate threshold, setting the initial time interval as a target time interval; If the binding success rate is less than or equal to a preset success rate threshold, the initial time interval is updated according to a preset time adjustment threshold and a preset number threshold; wherein the time adjustment threshold is determined according to the object distance between two adjacent objects to be detected and the average transfer speed; Until a target time interval in which the binding success rate is greater than a preset success rate threshold is obtained, and / or a target time interval in which the binding success rate is maximum when the number of adjustments is greater than a preset number threshold is obtained.

5. The information binding method according to claim 1, characterized in that: The first device is a security inspection device, the second device is a scanning device, the image information is an item image, and the identification information is an item waybill identification; A first photoelectric sensor and a second photoelectric sensor are respectively arranged at the entrance and the exit of the security inspection device, and the first acquisition time is an average of a first trigger time corresponding to the first photoelectric sensor and a second trigger time corresponding to the second photoelectric sensor.

6. The information binding method according to claim 1, characterized in that: The step of binding the image information in the first data queue and the identification information in the second data queue according to the first acquisition time of each image information in the first data queue, the second acquisition time of each identification information in the second data queue, and the target time interval to obtain an image identification group includes: The following operations are performed for each image information in the first data queue: According to the first acquisition time corresponding to the image information, extracting target identification information corresponding to a second acquisition time whose difference with the first acquisition time does not exceed the target time interval from the second data queue; If the target identification information does not exist, output binding prompt information; If the target identification information exists, the image information and the target identification information are bound to obtain an image identification group.

7. The information binding method according to claim 6, characterized in that: After binding the image information in the first data queue and the identification information in the second data queue according to the first acquisition time of each image information in the first data queue, the second acquisition time of each identification information in the second data queue, and the target time interval to obtain the image identification group, the method further includes: Acquire unbound information and repeated bound information according to the image identification group, wherein the unbound information is image information that is not bound to any information, and the repeated bound information is image information bound to at least two target identification information; When the amount of the unbound information is greater than the amount of the repeated bound information, expanding the target time interval; When the amount of the unbound information is less than the amount of the repeated bound information, the target time interval is reduced.

8. An information binding device, characterized in that: The information binding device comprises: A data acquisition module, used to acquire a first data queue of the objects to be detected collected by the first device, and a second data queue of the objects to be detected collected by the second device, wherein the first data queue includes image information corresponding to each of the objects to be detected, and the second data queue includes identification information corresponding to each of the objects to be detected; A time interval acquisition module, used to acquire a target time interval, wherein the target time interval is obtained by fitting the transit time of at least two objects to be detected between the first device and the second device; The information binding module is used to bind the image information and the identification information according to the first acquisition time of the image information, the second acquisition time of the image information and the target time interval.

9. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the steps in the information binding method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the information binding method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for associating electronic device identifier based on monitoring video, and system

    CN108540750A

  • Article label identification and article image binding method and apparatus, and storage medium

    CN111259677A

  • Contraband positioning method and device

    CN112101498A

  • Article identification and tracking

    EP3786836A1

Cited By

  • Cross-rod blind area identity binding method and device based on queue information, electronic equipment and storage medium

    CN121963495A

  • A cross-rod blind area identity binding method and device based on queue information, an electronic device, and a storage medium

    CN121963495B