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

By determining the target time interval and optimizing the initial time interval during information binding, the problem of low fault tolerance in existing technologies is solved, and higher information binding success rate and accuracy are achieved.

CN119477118BActive Publication Date: 2026-04-10SF TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SF TECH CO LTD
Filing Date
2023-08-08
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

When using a fixed time difference for information binding in existing technologies, the fault tolerance rate is low, which affects the success rate and accuracy of information binding.

Method used

By obtaining the transit time of the item to be detected between the first and second devices, a target time interval is determined, and the image information and identification information are bound within this interval based on their acquisition time. This optimizes the initial time interval to improve the binding success rate.

Benefits of technology

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

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119477118B_ABST
    Figure CN119477118B_ABST
Patent Text Reader

Abstract

The application provides an information binding method and device, electronic equipment and a computer readable storage medium. The method comprises: obtaining a first data queue and a second data queue, the first data queue comprising image information of each to-be-detected article collected in sequence by a first device, and the second data queue comprising identification information of each to-be-detected article collected in sequence by a second device; obtaining a target time interval, the target time interval being determined according to a transfer time of at least two to-be-detected articles 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. The application binds information by using the target time interval, which is conducive to improving the success rate and accuracy of information binding.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to an information binding method and device, electronic equipment and computer readable storage medium. BACKGROUND

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

[0003] In the prior art, a fixed time difference is usually set in advance for judging information binding. If the difference between the image information collection time and the identification information collection time is equal to the fixed time difference set in advance, the binding can be successful, otherwise the binding fails.

[0004] The problem of the prior art is that using a fixed time difference for judgment has high accuracy requirements for data. Even if there is a small error, the information cannot be correctly bound, the fault tolerance is low, and the success rate and accuracy of information binding are affected. SUMMARY

[0005] The present application provides an information binding method, device, electronic equipment and computer readable storage medium, which solves the problem of low fault tolerance of the current information binding scheme, affecting the success rate and accuracy of information binding.

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

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

[0008] obtaining a target time interval, wherein the target time interval is determined according to the transfer time of at least two to-be-detected articles between the first device and the second device;

[0009] binding 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.

[0010] Optionally, before the target time interval is obtained, the method further comprises:

[0011] obtaining a basic time according to a device distance between the first device and the second device and an average transit speed of the to-be-detected article between the first device and the second device;

[0012] obtaining a transit speed offset of each type of the to-be-detected article between the first device and the second device, and adjusting the basic time according to each transit speed offset to obtain an initial time interval;

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

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

[0015] Optionally, 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 comprises:

[0016] binding the image information in the first historical data queue and the identification information in the second historical data queue according to a first collection time of each image information in the first historical data queue, a second collection time of each identification information in the second historical data queue, and the initial time interval to obtain an image-identification group;

[0017] counting a binding success rate of each image-identification group bound according to the initial time interval;

[0018] adjusting the initial time interval 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 the greatest binding success rate when an adjustment number is greater than a preset number threshold is obtained.

[0019] Optionally, the adjusting the initial time interval 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 the greatest binding success rate when an adjustment number is greater than a preset number threshold is obtained comprises:

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

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

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

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

[0024] The entrance and the exit of the security inspection device are respectively provided with a first photoelectric sensor and a second photoelectric sensor, and the first acquisition time is the average of the first trigger time corresponding to the first photoelectric sensor and the second trigger time corresponding to the second photoelectric sensor.

[0025] Optionally, the binding of 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 obtains an image identification group, including:

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

[0027] According to the first acquisition time corresponding to the image information, target identification information corresponding to a second acquisition time that does not exceed the target time interval from the first acquisition time is extracted from the second data queue;

[0028] If the target identification information does not exist, a binding prompt information is outputted;

[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 the binding of 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 obtains an image identification group, the method further includes:

[0031] According to the image identification group, unbound information and repeated binding information are acquired, wherein the unbound information is image information unbound to any information, and the repeated binding information is image information bound to at least two target identification information;

[0032] When the number of the unbound information is greater than the number of the repeated binding information, the target time interval is expanded;

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

[0034] In another aspect, the embodiment of the present application provides an information binding device;

[0035] The information binding device comprises:

[0036] A data acquisition module is configured to acquire a first data queue of the to-be-detected articles collected by a first device and a second data queue of the to-be-detected articles collected by a second device, wherein the first data queue comprises image information corresponding to each of the to-be-detected articles, and the second data queue comprises identification information corresponding to each of the to-be-detected articles;

[0037] A time interval acquisition module is configured to acquire a target time interval, wherein the target time interval is fitted according to transit time of at least two to-be-detected articles between the first device and the second device;

[0038] An information binding module is configured to bind the image information and the identification information according to a first collection time of the image information, a second collection time of the image information, and the target time interval.

[0039] In another aspect, the embodiment of the present application further provides an electronic device, wherein the electronic device is provided with a processor and a memory, the memory is stored with an application program, and the processor is configured to run the application program in the memory to realize the steps in the above information binding method.

[0040] In another aspect, the embodiment of the present application further provides a computer readable storage medium, wherein the computer readable storage medium is stored with a plurality of instructions, and the instructions are suitable for being loaded by a processor to realize the steps in the above information binding method.

[0041] From the above content, the present application has the following beneficial effects:

[0042] The application provides an information binding method and device, electronic equipment and a computer readable storage medium. The method comprises: obtaining a first data queue and a second data queue, wherein the first data queue comprises image information of each to-be-detected article collected in sequence by a first device, and the second data queue comprises identification information of each to-be-detected article collected in sequence by a second device; obtaining a target time interval, wherein the target time interval is determined according to the transit time of at least two to-be-detected articles 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 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.

[0043] In the application, the target time interval is determined according to the transit time of the to-be-detected article 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 collection time of the image information in the first data queue, the second collection time of the identification information in the second data queue, and the target time interval. In the prior art, the time difference between the first collection time and the second collection time is directly compared with a preset fixed time difference to realize information binding, and the time difference between the first collection time and the second collection time must be equal to the preset fixed time difference to realize successful binding, which may cause that information with a small error cannot be correctly bound. Therefore, in the embodiment of the application, the target time interval is used to realize information binding, and compared with the scheme of directly using the time difference to realize information binding in the prior art, the fault tolerance is higher, which is beneficial to improving the success rate and accuracy of information binding. BRIEF DESCRIPTION OF DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative effort.

[0045] Figure 1 is a scene schematic diagram of the information binding method provided by the embodiments of the application;

[0046] Figure 2 is a flowchart schematic diagram of one embodiment of the information binding method in the embodiments of the application;

[0047] Figure 3 is a flowchart schematic diagram of determining a target time interval provided by the embodiments of the application;

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

[0049] Figure 5 is a schematic diagram of an article scanning scene provided by an embodiment of the present application;

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

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

[0052] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall 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", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer" and the like indicate the orientation or positional relationship shown in the drawings, and are only for the purpose of facilitating the description of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation of the present application. In addition, the terms "first", "second" are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features limited by "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise specifically limited.

[0054] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.

[0055] This application provides an information binding method, apparatus, device, and computer-readable storage medium, which will be described in detail below.

[0056] The information binding method in this embodiment is applied to an information binding device, which is set in an electronic device. The electronic device is provided with one or more processors, a memory, and one or more applications, wherein one or more applications are stored in the memory 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. 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 schematic diagram of a scenario for the information binding method in an embodiment of this application. The information binding scenario in this embodiment includes an electronic device 100 (the electronic device 100 integrates an information binding device), and the electronic device 100 runs a computer-readable storage medium corresponding to the information binding to perform the information binding steps.

[0058] Understandable, Figure 1 The electronic devices in the information-binding scenario shown, or the devices contained in the electronic devices, do not constitute a limitation on the embodiments of this application. That is, the number or type of devices in the information-binding scenario, or the number or type of devices contained in each device, do not affect the overall implementation of the technical solution in the embodiments of this application, and can all be considered as equivalent substitutions or derivatives of the technical solutions claimed in the embodiments of this application.

[0059] The electronic device 100 in the embodiments of the present application is mainly used for: obtaining a first data queue and a second data queue, wherein the first data queue comprises image information of each to-be-detected article collected in sequence by a first device, and the second data queue comprises identification information of each to-be-detected article collected in sequence by a second device; obtaining a target time interval, wherein the target time interval is determined according to the transit time of at least two to-be-detected articles 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 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] The electronic device 100 in the embodiments of the present application can be a stand-alone electronic device, or an electronic device grid or an electronic device cluster composed of electronic devices. For example, the electronic device 100 described in the embodiments 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 device sets, 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 can understand that Figure 1 The application environment shown in the embodiments of the present application is only one application scenario of the present application scheme, and does not constitute a limitation on the application scenario of the present application scheme. Other application environments can include more or fewer electronic devices than Figure 1 The application environment shown in the embodiments of the present application is only one application scenario of the present application scheme, and does not constitute a limitation on the application scenario of the present application scheme. Other application environments can include more or fewer electronic devices than Figure 1 Only one electronic device is shown in the embodiments of the present application. It can be understood that the information binding scenario can also include one or more other electronic devices, and the specific embodiments are not limited herein. The electronic device 100 can also include a memory.

[0062] In addition, the electronic device 100 in the information binding scenario of the present application can be provided with a display device, or the electronic device 100 is not provided with a display device and is in communication connection with an external display device 200. 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 can access a background database 300 (the background database can be a local memory of the electronic device, and the background database can also be set in the cloud). The background database 300 stores information related to information binding.

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

[0064] Based on the above information binding scenario, an embodiment of an information binding method is provided. The information binding method in the 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. In the embodiment, a server is taken as an example for description.

[0065] Figure 2 is a flowchart of an information binding method provided by the embodiments of the present application. As shown in the figure, the information binding method in the embodiments of the present application includes steps 201-203. Figure 2

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

[0067] In the embodiments of the present application, the information binding method described above is applied to a scenario of express item security inspection. For example, when centralized security inspection is performed, express items are transported by a belt conveyor, separated by a single-piece separator, and then subjected to security image collection by a security inspection machine, and identification (such as a waybill number) collection by a six-surface scanner. During the centralized security inspection process, image collection and identification collection are continuously performed on multiple express items. Therefore, a queue corresponding to the image information and a queue corresponding to the identification information are obtained, and the information in the two queues needs to be bound one by one to determine the identification information corresponding to each security inspection image.

[0068] Specifically, the to-be-detected item is an item that needs to be subjected to security scanning. In the embodiment, multiple to-be-detected items pass through the first device and the second device in sequence. The first device is used to collect image information and store it into the first data queue, and the second device is used to collect identification information and store it into the second data queue.

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

[0070] ​The target time interval is a time range for determining whether the image information in the first data queue and the identification information in the second data queue can be bound. The transfer time is the time for transferring the to-be-detected article from the first device to the second device. It should be noted that in the actual transfer process, the speed of the belt conveyor is unstable, the to-be-detected articles are placed in different positions, the sizes of the to-be-detected articles are different, and the like, which may cause different actual transfer times of different to-be-detected articles. Therefore, in the embodiment, a target time interval is determined according to the transfer times corresponding to the at least two to-be-detected articles, and the information binding is performed according to the target time interval, which is beneficial to improving the success rate and accuracy of the information binding.

[0071] 203, 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.

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

[0073] In this way, the image information and the 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, the information binding can be realized. The use of the target time interval for judgment can improve the fault tolerance rate during information binding, and is beneficial to improving the success rate and accuracy of the information binding.

[0074] In some embodiments of the present application, the target time interval can be determined according to the data corresponding to a group of historical to-be-detected articles. Figure 3 is a flowchart for determining a target time interval provided by an embodiment of the present application. As shown in Figure 3 Before the target time interval is obtained, the target time interval is determined according to steps 301-304 as follows:

[0075] 301, obtaining a basic time according to the device distance between the first device and the second device and the average transfer speed of the to-be-detected article between the first device and the second device.

[0076] Specifically, the first device and the second device are fixedly arranged, so that the distance between the two devices can be determined, and the basic time is the value obtained by dividing the distance by the average transfer speed, i.e., the average time required for the to-be-detected article to pass through the first device and the second device. In this embodiment, the first device is taken as the security device, and the second device is taken as the scanning device (for example, a six-surface scanner), but this is not a specific limitation.

[0077] In a specific application scenario, the to-be-detected article is transported between the security device and the scanning device by a belt conveyor, and the average transfer speed is the ideal transmission speed of the belt conveyor, for example, the transmission speed (i.e., the average transfer speed) of the belt conveyor is 1.5 m / s or 2 m / s. Taking the average transfer speed of 1.5 m / s and the distance of 3 m as an example, the basic time is 2 s.

[0078] 302, obtaining a transfer speed offset of each type of to-be-detected article 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 to-be-detected articles may have speed offsets during transportation, i.e., cannot be accurately transported at the average transfer speed. In this embodiment, the transfer speed offset of each type of to-be-detected article 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 interval. The transfer speed offset is the offset between the actual transfer speed of the to-be-detected article in the test process and the average transfer speed. In this way, the offset of the transfer speed is considered, which is beneficial to improving the rationality of the obtained initial time interval, 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 to-be-detected article collected in sequence by the first device in history, and the second historical data queue includes identification information of each to-be-detected article collected in sequence by the second device in history.

[0081] 304, optimizing 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 for each historical to-be-detected article in the historical information binding process or the historical test process.

[0083] Figure 4 is a schematic diagram of an optimization process of an initial time interval provided by an embodiment of the present application, as shown inFigure 4 As shown, the optimization of the initial time interval according to the first historical data queue and the second historical data queue obtains a 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, binding the image information in the first historical data queue and the identification information in the second historical data queue to obtain an image identification group.

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

[0086] 402, statistics of the binding success rate of each image identification group based on the initial time interval.

[0087] 403, according to the binding success rate, adjust the initial time interval 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 the largest binding success rate when the adjustment number 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 binding code situation is virtually tested, an optimization function variable for adjusting the initial time interval is constructed, the information binding success rate is taken 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 (a-x, a+y), wherein the value of a is determined according to the actual initial time interval, x and y are a group of independent variables, and the initial values of x and y can be set and adjusted according to actual requirements. The values of x and y are optimized so that the binding success rate corresponding to the optimized time interval is improved. When the adjustment number reaches a preset number threshold, and / or the binding success rate reaches a preset success rate threshold, and / or the binding success rate reaches the maximum value in the optimization process, the time interval optimization is completed, and the time interval with the maximum binding success rate in the optimization process is obtained as the target time interval.

[0090] When judging the information binding accuracy, if one image information can be bound to one unique identification information, it is considered that the binding is successful, otherwise it is considered that the binding is unsuccessful. The optimization goal is to minimize the number of image information and identification information that fails to bind finally. In the process of optimizing the time interval, the time interval step can be gradually increased (for example, the value of x and / or y is gradually increased by 1 millisecond) to optimize the final number of image information and identification information that are successfully bound (i.e., the information binding accuracy is the highest) as the goal, to determine the final x value and y value, and thus to determine the final target time interval. In this way, the target time interval finally obtained can improve the success rate and accuracy in 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 with a binding success rate greater than a preset success rate threshold is obtained, and / or a target time interval with the largest binding success rate when the number of adjustments is greater than a preset number threshold, includes: if the binding success rate is greater than the preset success rate threshold, the initial time interval is set as 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 average transfer speed and the distance between adjacent two to-be-detected articles; 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 the largest binding success rate when the number of adjustments is greater than a preset number threshold.

[0092] In the process of adjusting the initial time interval according to the binding success rate, the binding success rate can appear in various cases, exemplarily including:

[0093] (1) If the initial time interval is used for binding, the obtained binding success rate is directly greater than a preset success rate threshold (which can be set and adjusted according to actual needs), it is indicated that the current initial time interval already meets the information binding requirement, 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 the initial time interval is enlarged or reduced 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 end value when the initial time interval is adjusted. For example, the initial time interval before optimization is [A, B], and the adjustment is [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 information binding errors between adjacent to-be-detected items (such as binding the information of the next item to the previous item).

[0095] The time adjustment threshold can be determined according to the item distance between the two adjacent to-be-detected items and the average transfer speed. In a specific application scenario, the distance between the two adjacent to-be-detected items 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 the two adjacent to-be-detected items is 0.1 s. Therefore, the time adjustment threshold can be set to 0.1 s.

[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] The entrance and the exit of the security inspection device are respectively provided with a first photoelectric sensor and a second photoelectric sensor, and the first acquisition time is the average of the first trigger time corresponding to the first photoelectric sensor and the second trigger time corresponding to the second photoelectric sensor.

[0098] Exemplarily, Figure 5 is a schematic diagram of an item scanning scene provided by an embodiment of the present application, as Figure 5 shown, the to-be-detected items are transported by a belt conveyor and pass through the security inspection device and the scanning device in turn. The shapes and lengths of different to-be-detected items can be different, which can cause different times required for information acquisition.

[0099] Therefore, according to the average of the trigger times of the first photoelectric sensor and the second photoelectric sensor, the first acquisition time of the security inspection device for acquiring the item image can be better determined, and the accuracy of information binding is improved. It should be noted that corresponding photoelectric sensors can also be respectively arranged at the entrance and the exit of the scanning device to improve the accuracy of the determined second acquisition time, which will not be described here.

[0100] In some embodiments of the present application, the binding of 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 the image identification group comprises:

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

[0102] According to the first collection time corresponding to the image information, target identification information corresponding to a second collection time that does not exceed the target time interval from the first collection time is extracted from the second data queue;

[0103] If the target identification information does not exist, a binding prompt information is outputted;

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

[0105] The binding prompt information is a pre-set code binding failure information, and the output of the binding prompt information helps to prompt the operator to verify the image information and / or identification information that fails to bind, thereby improving the accuracy and success rate of code binding.

[0106] It should be noted that the image identification group obtained by successful binding includes one image information and at least one identification information matched with the image information. In the present embodiment, the one-to-one matching of the image information and the identification information is the best binding effect. If one image information does not bind with any identification information, or one image information binds with multiple identification information, it indicates that the image identification group may have a risk of incorrect binding, and thus it indicates that the currently used target time interval may cause incorrect binding, and the target time interval can be adjusted to improve the accuracy of binding.

[0107] Specifically, after the binding of 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 the image identification group, the method further comprises:

[0108] According to the image identification group, unbound information and repeated binding information are obtained, wherein the unbound information is image information that is not bound with any information, and the repeated binding information is image information that is bound with at least two target identification information;

[0109] When the number of the unbound information is greater than the number of the repeatedly bound information, the target time interval is enlarged;

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

[0111] It should be noted that when the target time interval is enlarged or reduced, the corresponding enlarged range and reduced range can be pre-set or adjusted according to actual needs, which is not limited here.

[0112] In the embodiments of the present application, the information binding method is also described in detail based on a specific application scenario. In this specific application scenario, the to-be-detected articles (i.e. express) are sorted in a transfer field, and the security inspection equipment is erected in the middle of the sorting line (i.e. belt conveyor). The express is first separated by a single piece separator to separate the express with a relatively close distance to ensure that the express passes through the security inspection equipment one by one. When the first photoelectric sensor at the entrance of the security inspection equipment is triggered, the security inspection equipment opens the perspective image to take a picture. When the second photoelectric sensor at the exit of the security inspection equipment is triggered, the picture taking is closed, thereby obtaining a security inspection image.

[0113] After passing through the security inspection equipment, a scanning device (e.g. six-scan device) is set at a preset distance (e.g. 3 meters) away. A photoelectric sensor is arranged at the entrance of the scanning device to sense the entry of the express. When the photoelectric sensor is triggered, the shipping label identification (e.g. shipping number) is obtained through the scanning device. In actual use, because the length of the express package is different, the position of the surface label is uncertain, and other factors, the time of actually collecting and obtaining the shipping label identification is not fixed. If only a fixed time difference is used for information binding, it is easy to cause binding failure.

[0114] Therefore, in the embodiments of the present application, information binding is performed based on the target time interval, which is beneficial to improve the success rate of information binding. Further, after deploying the above information binding method and actually running for a period of time (e.g. one week), the information binding results in the running process can be analyzed, and then the target time interval used for information binding is optimized to adapt to the specific information binding environment and improve the accuracy of information binding.

[0115] Thus, based on the information binding method provided in the embodiments of the present application, the target time interval can be determined according to the transit time of the to-be-detected articles between the first device and the second device, so that the information binding of the image information and the identification information can be implemented 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, the information binding is directly implemented by comparing the time difference between the first acquisition time and the second acquisition time with the preset fixed time difference, so that the time difference between the first acquisition time and the second acquisition time must be equal to the preset fixed time difference to achieve successful binding. However, the information with a small error cannot be correctly bound. Therefore, in the embodiments of the present application, the target time interval is used for information binding, and compared with the prior art of directly using the time difference comparison for information binding, the fault tolerance is higher, which is beneficial to improve the success rate and accuracy of information binding.

[0116] In order to better implement the information binding method in the embodiments of the present application, based on the information binding method, the embodiments of the present application further provide an information binding device, Figure 6 is an embodiment structure schematic diagram of the information binding device provided in the embodiments of the present application, as Figure 6 shown, the information binding device comprises:

[0117] The data acquisition module 601 is configured to acquire a first data queue of to-be-detected articles collected by a first device, and a second data queue of to-be-detected articles collected by a second device, wherein the first data queue comprises image information corresponding to each to-be-detected article, and the second data queue comprises identification information corresponding to each to-be-detected article;

[0118] The time interval acquisition module 602 is configured to acquire a target time interval, wherein the target time interval is fitted according to the transit time of at least two to-be-detected articles between the first device and the second device;

[0119] The information binding module 603 is configured 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 comprises a target time interval determination module configured to obtain a basic time according to the device distance between the first device and the second device, and the average transit speed of to-be-detected articles between the first device and the second device;

[0121] Obtaining a transit speed offset of each type of the to-be-detected article between the first device and the second device, adjusting the basic time according to each transit speed offset to obtain an initial time interval;

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

[0123] Optimizing the initial time interval 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 configured to: according to the first collection time of each image information in the first historical data queue, the second collection time of each identification information in the second historical data queue, and the initial time interval, binding the image information in the first historical data queue and the identification information in the second historical data queue to obtain an image-identification group;

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

[0126] Adjusting the initial time interval 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 the largest 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 configured to: if the binding success rate is greater than a preset success rate threshold, setting 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, updating the initial time interval according to a preset time adjustment threshold and a preset number threshold; wherein the time adjustment threshold is determined according to the average transit speed and the distance between adjacent to-be-detected articles;

[0129] 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 the largest binding success rate 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 article image, and the identification information is an article waybill identification;

[0131] The first photoelectric sensor and the second photoelectric sensor are respectively arranged at an entrance and an 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 configured 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, target identification information corresponding to a second acquisition time that does not exceed the target time interval from the first acquisition time is extracted from the second data queue;

[0134] If the target identification information does not exist, a binding prompt information is outputted;

[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 comprises a target time interval updating module configured to obtain unbound information and repeated binding information according to the image identification group, wherein the unbound information is image information that is not bound to any information, and the repeated binding information is image information that is bound to at least two target identification information.

[0137] When the number of the unbound information is greater than the number of the repeated binding information, the target time interval is expanded;

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

[0139] Thus, based on the information binding apparatus provided in the embodiments of the present application, the target time interval can be determined according to the transit time of the to-be-detected article 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, the information binding is directly realized by comparing the time difference between the first acquisition time and the second acquisition time with the preset fixed time difference. In this case, the time difference between the first acquisition time and the second acquisition time must be equal to the preset fixed time difference to realize the information binding, and information with a small error cannot be correctly bound. Therefore, in the embodiments of the present application, the target time interval is used to realize the information binding, and compared with the scheme of directly using the time difference to realize the information binding in the prior art, the fault tolerance is higher, and the success rate and the accuracy of the information binding are improved.

[0140] The embodiments of the present application also provide an electronic device, such as Figure 7 Figure 7 is a schematic structural diagram of an embodiment of the electronic device provided in the embodiments of the present application.

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

[0142] one or more processors;

[0143] a memory; and

[0144] one or more application programs, wherein the one or more application programs are stored in the memory and are configured to execute the steps in the information binding method in any one of the information binding method embodiments by the processor.

[0145] Specifically, the electronic device can include a processor 701 with one or more processing cores, a memory 702 with one or more computer readable storage media, a power supply 703, and an input unit 704, and the like. Those skilled in the art can understand that Figure 7 The electronic device structure shown in the above does not constitute a limitation on the electronic device, and can include more or fewer components than those shown in the figure, or combine certain components, or different component arrangements. Among them:

[0146] ​The processor 701 is the control center of the electronic device, connects all parts of the electronic device through various interfaces and lines, executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 702 and calling data stored in the memory 702, thereby overall monitoring the electronic device. Optionally, the processor 701 can include one or more processing cores; preferably, the processor 701 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 701.

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

[0148] The electronic device also includes a power supply 703 for supplying power to various components, and preferably the power supply 703 can be logically connected to the processor 701 through a power management system, so as to realize functions such as management of charging, discharging and power consumption management through the power management system. The power supply 703 can also include one or more than one direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power state indicator, etc. Any component.

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

[0150] Although not shown, the electronic device can also include a display unit, etc., which will not be described here. Specifically, in the present embodiment, the processor 701 in the electronic device will load the executable file corresponding to the process of one or more than one application program into the memory 702 according to the following instructions, and run the application program stored in the memory 702 by the processor 701, thereby realizing various functions, as follows:

[0151] obtaining a first data queue and a second data queue, wherein the first data queue comprises image information of each to-be-detected article collected by the first device in sequence, and the second data queue comprises identification information of each to-be-detected article collected by the second device in sequence;

[0152] obtaining a target time interval, wherein the target time interval is determined according to transit time of at least two to-be-detected articles between the first device and the second device;

[0153] binding the image information in the first data queue and the identification information in the second data queue according to first collection time of each image information in the first data queue, second collection time of each identification information in the second data queue, and the target time interval, to obtain an image-identification group.

[0154] Those skilled in the art can understand that all or part of the steps in the methods of the above embodiments can be completed by instructions, or by related hardware controlled by the instructions, which can be stored in a computer readable storage medium and loaded and executed by a processor.

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

[0156] obtaining a first data queue and a second data queue, wherein the first data queue comprises image information of each to-be-detected article collected by the first device in sequence, and the second data queue comprises identification information of each to-be-detected article collected by the second device in sequence;

[0157] obtaining a target time interval, wherein the target time interval is determined according to transit time of at least two to-be-detected articles between the first device and the second device;

[0158] binding the image information in the first data queue and the identification information in the second data queue according to first collection time of each image information in the first data queue, second collection time of each identification information in the second data queue, and the target time interval, to obtain an image-identification group.

[0159] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the detailed description of other embodiments above, which will not be repeated here.

[0160] In practice, the above various units or structures can be realized as independent entities, or can be combined as the same or several entities, and the specific implementation of the above various units or structures can be referred to the previous method embodiments, which will not be repeated here.

[0161] The specific implementation of the above various operations can be referred to the previous embodiments, which will not be repeated here.

[0162] The information binding method, device, electronic equipment and computer readable storage medium provided by the present application are described in detail above, and the principle and implementation mode of the present application are described by applying specific examples; the above embodiment is only used to help understand the method and core idea of the present application; meanwhile, according to the idea of the present application, the specific implementation mode and application range will be changed by the person skilled in the art, and the above description should not be understood as the limitation of the present application.

Claims

1. An information binding method, characterized in that, the information binding method comprises: obtaining a first data queue and a second data queue, wherein the first data queue comprises image information of each to-be-detected article collected in sequence by a first device, and the second data queue comprises identification information of each to-be-detected article collected in sequence by a second device; obtaining a target time interval, wherein the target time interval is determined according to a transit time of at least two to-be-detected articles between the first device and the second device; 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; the determination process of the target time interval comprises: obtaining a basic time according to a device distance between the first device and the second device and an average transit speed of the to-be-detected articles between the first device and the second device; obtaining a transit speed offset of each type of to-be-detected article between the first device and the second device, and adjusting the basic time according to each transit speed offset to obtain an initial time interval; obtaining a first historical data queue and a second historical data queue, wherein the first historical data queue comprises image information of each to-be-detected article collected in sequence by the first device in history, and the second historical data queue comprises identification information of each to-be-detected article collected in sequence by the second device in history; optimizing the initial time interval according to the first historical data queue and the second historical data queue to obtain a target time interval.

2. The information binding method according to claim 1, 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 comprises: binding the image information in the first historical data queue and the identification information in the second historical data queue according to a first collection time of each image information in the first historical data queue, a second collection time of each identification information in the second historical data queue, and the initial time interval, to obtain an image identification group; statistically obtaining a binding success rate of each image identification group bound based on the initial time interval; adjusting the initial time interval 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 is obtained when an adjustment number is greater than a preset number threshold.

3. The information binding method according to claim 2, characterized in that, the adjusting the initial time interval 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 is obtained when an adjustment number is greater than a preset number threshold comprises: If the binding success rate is greater than a preset success rate threshold, set the initial time interval as a target time interval; If the binding success rate is less than or equal to the preset success rate threshold, update the initial time interval according to a preset time adjustment threshold and a preset number threshold; wherein the time adjustment threshold is determined according to the average transit speed and the distance between adjacent two to-be-detected items; 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 the largest binding success rate when the number of adjustments is greater than a preset number threshold.

4. The information binding method of claim 1, wherein 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. The first collection time is the average of a first trigger time corresponding to the first photoelectric sensor and a second trigger time corresponding to the second photoelectric sensor.

5. The information binding method of claim 1, wherein the binding of 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 comprises: For each image information in the first data queue, the following operations are performed: According to the first collection time corresponding to the image information, target identification information corresponding to a second collection time that does not exceed the target time interval from the first collection time is extracted from the second data queue; If the target identification information does not exist, a binding prompt information is outputted; If the target identification information exists, the image information and the target identification information are bound to obtain an image identification group.

6. The information binding method of claim 5, wherein after the binding of 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, the method further comprises: According to the image identification group, unbound information and repeated binding information are obtained, wherein the unbound information is image information that is not bound to any information, and the repeated binding information is image information that is bound to at least two target identification information; When the number of unbound information is greater than the number of repeated binding information, the target time interval is expanded; When the number of unbound information is less than the number of repeated binding information, the target time interval is reduced.

7. An information binding device, comprising: The information binding device comprises: ​ ​ ​ The data acquisition module is configured to acquire a first data queue of the to-be-detected articles collected by the first device and a second data queue of the to-be-detected articles collected by the second device, wherein the first data queue comprises image information corresponding to each of the to-be-detected articles, and the second data queue comprises identification information corresponding to each of the to-be-detected articles. The time interval acquisition module is configured to acquire a target time interval, wherein the target time interval is fitted according to transit times of at least two to-be-detected articles between the first device and the second device; the determination process of the target time interval comprises: obtaining a basic time according to a device distance between the first device and the second device and an average transit speed of the to-be-detected articles between the first device and the second device; obtaining transit speed offsets of each type of to-be-detected articles between the first device and the second device, adjusting the basic time according to each of the transit speed offsets to obtain an initial time interval; acquiring a first historical data queue and a second historical data queue, wherein the first historical data queue comprises image information of each to-be-detected article collected by the first device in a historical order, and the second historical data queue comprises identification information of each to-be-detected article collected by the second device in a historical order; and optimizing the initial time interval according to the first historical data queue and the second historical data queue to obtain the target time interval. The information binding module is configured to bind the image information and the identification information according to a first collection time of the image information, a second collection time of the image information, and the target time interval.

8. An electronic device, comprising a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to execute the steps in the information binding method of any one of claims 1 to 6.

9. A computer readable storage medium, comprising a plurality of instructions, wherein the instructions are adapted to be loaded by a processor to execute the steps in the information binding method of any one of claims 1 to 6. ​ ​

Citation Information

Patent Citations

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

    CN108540750A

  • Contraband positioning method and device

    CN112101498A