Information binding method and apparatus, and electronic device and computer-readable storage medium
By using the target time interval to replace the fixed time difference in the information binding technology, the problem of low fault tolerance in the prior art is solved, and the success rate and accuracy of information binding are improved.
Patent Information
- Application Number
- PCT/CN2024/123413
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-08
- Filing Date
- 2024-10-08
- Publication Date
- 2025-02-13
AI Technical Summary
The existing information binding technology uses a fixed time difference for judgment, resulting in a low fault tolerance rate, affecting the success rate and accuracy of information binding.
By obtaining the transit time of the item to be detected between the first device and the second device, the target time interval is determined, and information binding is performed based on the acquisition time of image information, the acquisition time of identification information and the target time interval.
It improves the fault tolerance rate of information binding and enhances the success rate and accuracy of information binding.
Smart Images

Figure CN2024123413_13022025_PF_FP_ABST
Abstract
Description
Information binding method, device, electronic device and computer-readable storage medium 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 the 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 item security inspection.
[0003] In related technologies, a fixed time difference is often pre-set for information binding judgment. However, using a fixed time difference for judgment requires very high data accuracy. Even a small error cannot correctly bind, and the error tolerance is low, affecting the success rate and accuracy of information binding.
[0004] 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, comprising: obtaining a first data queue and a second data queue, wherein the first data queue includes image information of multiple items to be detected collected sequentially by a first device, and the second data queue includes identification information of multiple items to be detected collected sequentially by the second device; obtaining a target time interval, wherein the target time interval is determined based on the transit time of at least two items to be detected between the first device and the second device; binding the image information of the items to be detected in the first data queue and the identification information of the items to be detected in the second data queue according to the first acquisition time of the image information of each item to be detected in the first data queue, the second acquisition time of the identification information of each item to be detected in the second data queue, and the target time interval to obtain multiple image identification groups.
[0007] In the second aspect, an embodiment of the present application provides an information binding device, including: a data acquisition module, used to acquire a first data queue, and a second data queue, wherein the first data queue includes image information of multiple items to be detected collected sequentially by the first device, and the second data queue includes identification information of multiple items to be detected collected sequentially by the second device; a time interval acquisition module, used to acquire a target time interval, wherein the target time interval is determined based on the transit time of at least two items to be detected between the first device and the second device; an information binding module, used to bind the image information of the items to be detected in the first data queue and the identification information of the items to be detected in the second data queue according to the first acquisition time of the image information of each item to be detected in the first data queue, the second acquisition time of the identification information of each item to be detected in the second data queue, and the target time interval, to obtain multiple image identification groups.
[0008] In a third aspect, an embodiment of the present application further provides an electronic device comprising a memory and a processor; the memory stores an application, and the processor is used to run the application in the memory to execute the steps in the information binding method described in the first aspect.
[0009] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores instructions suitable for loading by a processor to execute the steps in the information binding method described in the first aspect.
[0010] From the above content, it can be concluded that this application has the following beneficial effects:
[0011] In the present application, the target time interval is determined based on 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 achieved based on 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 related art, the time difference between the first acquisition time and the second acquisition time is directly compared with the preset fixed time difference, so that when the information is bound, 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 be successfully bound, which may cause information with smaller errors to be unable to be correctly bound. Therefore, the target time interval is used to perform information binding in the embodiment of the present application. Compared with the scheme of directly using the time difference comparison method to perform information binding in the related art, the fault tolerance rate is higher, which is conducive to improving the success rate and accuracy of information binding. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] FIG1 is a schematic diagram of a scenario of an information binding method provided in an embodiment of the present application.
[0013] FIG2 is a flow chart of the information binding method provided in an embodiment of the present application.
[0014] FIG3 is a schematic diagram of a flow chart of determining a target time interval according to an embodiment of the present application.
[0015] FIG4 is a schematic diagram of a process for optimizing an initial time interval according to an embodiment of the present application.
[0016] FIG5 is a schematic diagram of an object scanning scenario provided in an embodiment of the present application.
[0017] FIG6 is a schematic diagram of the structure of the information binding device provided in an embodiment of the present application.
[0018] FIG7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
[0019] FIG8 is a schematic diagram of the structure of the storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] In the related 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.
[0021] The problem with related technologies is that using a fixed time difference for judgment places high demands on data accuracy. Even if there is a small error, it cannot be correctly bound. The fault tolerance rate is low, which affects the success rate and accuracy of information binding.
[0022] To solve the above problems, embodiments of the present application provide an information binding method, apparatus, device, and computer-readable storage medium, which are described in detail below.
[0023] 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. 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.
[0024] As shown in FIG1 , FIG1 is a schematic diagram of a scenario of an information binding method provided in an embodiment of the present application. The information binding scenario in the embodiment of the present application includes an electronic device 100 .
[0025] In an exemplary embodiment, the electronic device 100 is integrated with an information binding device, and the electronic device 100 runs a computer-readable storage medium corresponding to the information binding method to execute the steps of the information binding method.
[0026] It can be understood that the electronic devices in the information binding scenario shown in Figure 1, or the information binding 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 or 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.
[0027] In the embodiment of the present application, the electronic device 100 is mainly used to execute the information binding method described in the following embodiment.
[0028] In the embodiments of the present application, the electronic device 100 may be an independent electronic device, or may be an electronic device grid or 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 set of multiple grid electronic devices, or a cloud electronic device composed of multiple electronic devices. Cloud electronic devices are composed of a large number of computers or grid electronic devices based on cloud computing.
[0029] Those skilled in the art will understand that the application environment shown in FIG1 is merely 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 more or fewer electronic devices than shown in FIG1 , or a grid connection relationship between electronic devices. For example, only one electronic device is shown in FIG1 . It is understandable 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.
[0030] 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, but may be in communication 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 can access a backend database 300 (the backend database can be a local memory of the electronic device, or the backend database can be set in the cloud), and the backend database 300 stores information related to information binding.
[0031] It should be noted that the scenario diagram of the information binding method shown in Figure 1 is only an example. The information binding scenario described in the embodiment of this application is to more clearly illustrate the technical solution of the embodiment of this application, and does not constitute a limitation on the technical solution provided by the embodiment of this application.
[0032] The following is a more detailed example description of the information binding method provided in the embodiment of the present application with reference to Figures 2 to 5.
[0033] Based on the above information binding scenario, an embodiment of an information binding method is proposed. The information binding method in this embodiment is applied to an electronic device, and the type of electronic device is not specifically limited. For example, the electronic device can be a terminal or a server. This embodiment uses a server as an example for description.
[0034] FIG2 is a flow chart of the information binding method provided in an embodiment of the present application. As shown in FIG2 , the information binding method in an embodiment of the present application includes the following contents.
[0035] S201, obtaining a first data queue and a second data queue, wherein the first data queue includes image information of multiple objects to be detected collected in sequence by a first device, and the second data queue includes identification information of multiple objects to be detected collected in sequence by a second device.
[0036] In an exemplary embodiment, 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 the security inspection machine for security inspection image acquisition. Finally, a six-sided scanner is used to collect identification (for example, the waybill number). During the centralized security inspection process, multiple express items are continuously imaged and identified. Therefore, the queues corresponding to the image information and the queues corresponding to the identification information are obtained. The information in the two queues is bound one-to-one to determine the identification information corresponding to each security inspection image.
[0037] For example, the items to be inspected are items that need to be scanned for security checks. 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.
[0038] S202: Acquire a target time interval, wherein the target time interval is determined according to a transit time of at least two objects to be inspected between a first device and a second device.
[0039] 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 consumed by the object to be detected to be transferred from the first device to the second device. It should be noted that during the actual transmission process, unstable belt conveyor speed, different placement positions of the objects to be detected, or different sizes of the objects to be detected may cause different actual transit times for different objects to be detected. Therefore, determining a target time interval based on the transit times corresponding to at least two objects to be detected and binding information based on the target time interval is conducive to improving the success rate and accuracy of information binding.
[0040] For example, the target time interval is obtained by fitting the transit time of at least two objects to be inspected between the first device and the second device.
[0041] S203: Bind the image information of the objects to be detected in the first data queue and the identification information of the objects to be detected in the second data queue based on the first acquisition time of the image information of each object to be detected in the first data queue, the second acquisition time of the identification information of each object to be detected in the second data queue, and the target time interval to obtain multiple image identification groups.
[0042] For example, 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 can be bound to the identification information to obtain an image identification group.
[0043] 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 falls within the target time interval, information binding can be achieved. Using the target time interval for judgment can improve the fault tolerance rate during information binding, which is conducive to improving the success rate and accuracy of information binding.
[0044] In one exemplary embodiment, the target time interval can be determined based on historically used data corresponding to a set of items to be inspected. FIG3 is a schematic diagram of a process for determining a target time interval according to an embodiment of the present application. As shown in FIG3 , prior to step S202 , the target time interval is also determined according to the following steps S301-S304 .
[0045] S301 : Obtain a basic time according to a distance between a first device and a second device and an average transfer speed of a plurality of objects to be detected between the first device and the second device.
[0046] For example, the positions of the first device and the second device are fixed, so the device distance between the two can be determined. The basic time is the value obtained by dividing the device distance by the average transfer speed, that is, the average time required for multiple items to be detected to pass through the first device and the second device.
[0047] In an exemplary embodiment, the first device is a security inspection device and the second device is a scanning device (eg, a six-sided scanner) as an example for illustration, but this is not a specific limitation.
[0048] 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-mentioned average transfer speed is the ideal transmission speed of the belt conveyor. For example, the transmission speed set by the belt conveyor (i.e., the average transfer speed) is 1.5 m / s or 2 m / s. Taking the average transfer speed of 1.5 m / s and the device distance of 3 meters as an example for specific explanation, the basic time is equal to 3 ÷ 1.5 = 2 seconds.
[0049] S302: Acquire multiple transfer speed offsets between the first device and the second device for multiple types of objects to be detected, and adjust the basic time according to the multiple transfer speed offsets to obtain an initial time interval.
[0050] In actual applications, different items to be inspected may experience speed deviations during transportation, that is, they cannot be accurately transported at the average transit speed.
[0051] In one exemplary embodiment, the transfer speed offset between the first and second devices for each type of item to be tested can be pre-acquired to adjust the base time, resulting in an initial time interval wider than the base time range. Each type corresponds to a transfer speed offset. The transfer speed offset is the offset between the actual transfer speed of the item to be tested and the average transfer speed during the test. Considering the transfer speed offset helps improve the rationality of the initial time interval, thereby increasing the success rate of information binding.
[0052] S303, obtaining a first historical data queue and a second historical data queue, wherein the first historical data queue includes image information of multiple objects to be detected that was historically sequentially collected by the first device, and the second historical data queue includes identification information of multiple objects to be detected that was historically sequentially collected by the second device.
[0053] S304: Optimize the initial time interval according to the first historical data queue and the second historical data queue to obtain a target time interval.
[0054] 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 tested during the historical information binding process or the historical testing process.
[0055] FIG4 is a schematic diagram of a process for optimizing an initial time interval according to an embodiment of the present application. As shown in FIG4 , step S304 includes the following contents.
[0056] S401: Bind the image information of the objects to be detected in the first historical data queue and the identification information of the objects to be detected in the second historical data queue based on the first acquisition time of the image information of each object to be detected in the first historical data queue, the second acquisition time of the identification information of each object to be detected in the second historical data queue, and the initial time interval to obtain multiple historical image identification groups.
[0057] 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. This can be determined based on the device time of the corresponding device, or based on the triggering time of a photoelectric sensor provided at the corresponding device. Other determination methods are also possible (e.g., the storage time of the corresponding information), which are not specifically limited here. When a piece of image information can be successfully bound to a unique piece of identification information, an image identification group can be obtained.
[0058] S402 , counting the success rates of binding of multiple historical image identification groups obtained based on the initial time interval binding.
[0059] S403, 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 exceeds a preset number threshold.
[0060] In an exemplary embodiment, after obtaining the initial time interval, information binding (i.e., image code binding) is performed according to the initial time interval, and a virtual test is performed on the final code binding situation. An optimization function variable is constructed to adjust the initial time interval. The binding success rate is used 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.
[0061] For example, 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), 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 maximum binding success rate during the optimization process is obtained as the target time interval.
[0062] 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. Optimization is performed with the goal of minimizing the number of image information and identification information that remain unbound. In the process of optimizing the time interval, adjustments can be made by gradually increasing the time interval step (for example, the values of x and / or y gradually increase by 1 millisecond), and optimization is performed 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 subsequent information binding processes.
[0063] In an exemplary embodiment, when the binding success rate is greater than a preset success rate threshold, the initial time interval is set as the target time interval.
[0064] In an exemplary embodiment, when the binding success rate is less than or equal to a preset success rate threshold, the initial time interval is updated based on a preset time adjustment threshold and a preset number threshold until a target time interval is obtained in which the binding success rate exceeds the preset success rate threshold, and / or a target time interval is obtained in which the binding success rate is maximized when the number of adjustment times exceeds the preset number threshold. The preset time adjustment threshold is determined based on the distance between two adjacent items to be detected and the average transfer speed.
[0065] 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:
[0066] (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.
[0067] (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 to determine how much the time interval is enlarged or reduced each time. The preset time adjustment threshold is used to limit the maximum change value of the interval endpoint value when the time interval is adjusted. For example, the initial time interval before optimization is [A, B], and during the optimization process (after one or more optimizations), it is adjusted to [A±x, B±y]. The preset 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 latter batch of items to the previous batch of items).
[0068] The preset time adjustment threshold can be determined based on the distance between two adjacent items to be inspected and the average transfer speed. In a specific application scenario, the distance between two adjacent items to be inspected after passing through the single-piece separator is greater than 15 cm, the average speed of the conveyor belt is 1.5 m / s, and the shortest time difference between two adjacent items to be inspected is 0.15 ÷ 1.5 = 0.1 seconds. Therefore, the time adjustment threshold can be set to 0.1 seconds.
[0069] In an exemplary embodiment, the first device is a security inspection device, the second device is a scanning device, the image information is an image of an item, and the identification information is an item waybill identification; a first photoelectric sensor and a second photoelectric sensor are respectively provided at the entrance and exit of the security inspection device, and the first acquisition 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.
[0070] For example, Figure 5 is a schematic diagram of an object scanning scenario provided by an embodiment of the present application. As shown in Figure 5, the object to be inspected is transported by a conveyor belt 530, passing through security inspection equipment 510 and scanning equipment 520 in sequence. Different objects to be inspected may have different shapes and lengths, which may result in different times required for information collection.
[0071] Therefore, based on the average triggering time of the first photoelectric sensor 511 and the second photoelectric sensor 512, the first acquisition time of the item image captured by the security inspection equipment can be better determined, thereby improving the accuracy of information binding. Specifically, the item image is obtained by the security inspection machine through a security scan of the item to be inspected. It should be noted that corresponding photoelectric sensors can also be installed at the entrance and exit of the scanning device to improve the accuracy of the second acquisition time determination, but this will not be further explained here.
[0072] In an exemplary embodiment, to implement step S203, the following operations are performed for each image information in the first data queue: based on the first acquisition time corresponding to the image information of the object to be detected, target identification information corresponding to the second acquisition time whose difference from the first acquisition time does not exceed the target time interval is extracted from the second data queue; the image information of the object to be detected and the target identification information are bound to obtain multiple image identification groups.
[0073] In an exemplary embodiment, if the target identification information does not exist in the second data queue, a binding prompt message is output. The binding prompt message is a preset image-code binding failure message. Outputting the binding prompt message helps prompt the operator to verify the image information and / or identification information that failed to bind, thereby improving the accuracy and success rate of image-code binding.
[0074] It should be noted that the image identification group obtained upon successful binding includes an image and at least one identification that matches the image. A one-to-one match between image and identification is considered optimal binding. If an image is not bound to any identification, or if an image is bound to multiple identifications, this indicates a risk of incorrect binding. This indicates that the currently used target time interval may be causing the binding error. Adjusting the target time interval can improve binding accuracy.
[0075] For example, after step S203, the information binding method also includes the following contents: obtaining unbound information and repeated bound information based on multiple image identification groups, 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 number of unbound information is greater than the number of repeated bound information, expanding the target time interval; when the number of unbound information is less than the number of repeated bound information, shortening the target time interval.
[0076] 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.
[0077] In an exemplary embodiment, the information binding method is further described in detail 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. When the second photoelectric sensor at the exit of the security inspection equipment is triggered, the picture taking function is turned off, thereby obtaining a security inspection image.
[0078] After passing through the security inspection equipment and at a preset distance (e.g., 3 meters), the package passes through a scanning device (e.g., a six-sided scanner). A photoelectric sensor is installed at the entrance of the scanning device to sense the entry of the courier. When the photoelectric sensor is triggered, the scanning device obtains the waybill identifier (e.g., the waybill number). In actual use, due to factors such as the varying lengths of express packages or the uncertain location of the cover sheet, the actual time required to collect the waybill identifier is not fixed. If information binding is performed only based on a fixed time difference, binding can easily fail.
[0079] 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. Furthermore, after deploying the above information binding method and actually running it for a period of time (for example, a 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.
[0080] 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 achieved 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 related art, the time difference between the first acquisition time and the second acquisition time is directly compared with the preset fixed time difference, so that when performing 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 smaller errors to fail to be correctly bound. Therefore, the target time interval is used to perform information binding in the embodiment of the present application. Compared with the scheme of directly using the time difference comparison method to perform information binding in the related art, the fault tolerance rate is higher, which is conducive to improving the success rate and accuracy of information binding.
[0081] The method embodiment of the present application is described in detail above in conjunction with Figures 1 to 5 , and the device embodiment of the present application is described in detail below in conjunction with Figures 6 and 7 . It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, and therefore, for portions not described in detail, reference can be made to the above method embodiment.
[0082] In order to better implement the information binding method in the embodiment of the present application, based on the information binding method, the embodiment of the present application further provides an information binding device. FIG6 is a structural diagram of the information binding device provided in the embodiment of the present application. As shown in FIG6 , the information binding device includes:
[0083] The data acquisition module 601 is configured to acquire a first data queue and a second data queue, wherein the first data queue includes image information of a plurality of objects to be detected sequentially acquired by a first device, and the second data queue includes identification information of a plurality of objects to be detected sequentially acquired by a second device;
[0084] A time interval acquisition module 602 is configured to acquire a target time interval, wherein the target time interval is determined based on a transit time of at least two items to be inspected between a first device and a second device;
[0085] The information binding module 603 is configured to bind the image information of the objects to be detected in the first data queue and the identification information of the objects to be detected in the second data queue based on the first acquisition time of the image information of each object to be detected in the first data queue, the second acquisition time of the identification information of each object to be detected in the second data queue, and the target time interval, to obtain multiple image identification groups.
[0086] In an exemplary embodiment, the information binding device also includes a target time interval determination module, which is used to: obtain a basic time based on the device distance between the first device and the second device, and an average transfer speed of multiple items to be detected between the first device and the second device; obtain multiple transfer speed offsets of multiple types of items to be detected between the first device and the second device, wherein one type corresponds to one transfer speed offset; adjust the basic time according to the multiple transfer speed offsets to obtain an initial time interval; obtain a first historical data queue and a second historical data queue, wherein the first historical data queue includes image information of multiple items to be detected historically collected sequentially by the first device, and the second historical data queue includes identification information of multiple items to be detected historically collected sequentially by the second device; optimize the initial time interval based on the first historical data queue and the second historical data queue to obtain a target time interval.
[0087] In an exemplary embodiment, when the target time interval determination module optimizes the initial time interval based on the first historical data queue and the second historical data queue to obtain the target time interval, it is specifically used to: bind the image information of the items to be detected in the first historical data queue and the identification information of the items to be detected in the second historical data queue according to the first acquisition time of the image information of each item to be detected in the first historical data queue, the second acquisition time of the identification information of each item to be detected in the second historical data queue, and the initial time interval to obtain multiple historical image identification groups; count the binding success rate of the multiple historical image identification groups obtained based on the binding of the initial time interval; and determine the target time interval according to the binding success rate.
[0088] In an exemplary embodiment, when determining the target time interval according to the binding success rate, the target time interval determination module is specifically configured to: set the initial time interval as the target time interval when the binding success rate is greater than a preset success rate threshold.
[0089] In an exemplary embodiment, when the target time interval determination module determines the target time interval based on the binding success rate, it is specifically used to: when the binding success rate is less than or equal to the preset success rate threshold, adjust the initial time interval until a target time interval is obtained in which the binding success rate is greater than the preset success rate threshold.
[0090] In an exemplary embodiment, when the target time interval determination module adjusts the initial time interval until a target time interval with a binding success rate greater than a preset success rate threshold is obtained, the target time interval is specifically used to: update the initial time interval according to a preset time adjustment threshold and a preset number threshold until a target time interval with a binding success rate greater than the preset success rate threshold is obtained, wherein the preset time adjustment threshold is determined based on the distance between two adjacent items to be detected and the average transfer speed.
[0091] In an exemplary embodiment, when the target time interval determination module determines the target time interval based on the binding success rate, it is specifically used to: when the binding success rate is less than or equal to the preset success rate threshold, adjust the initial time interval until the target time interval with the maximum binding success rate is obtained when the number of adjustments is greater than the preset number threshold.
[0092] In an exemplary embodiment, the target time interval determination module adjusts the initial time interval until the target time interval with the highest binding success rate is obtained when the number of adjustments is greater than a preset number threshold. The module is specifically used to: update the initial time interval according to a preset time adjustment threshold and a preset number threshold until the target time interval with the highest binding success rate is obtained when the number of adjustments is greater than the preset number threshold, wherein the preset time adjustment threshold is determined based on the distance between two adjacent items to be detected and the average transfer speed.
[0093] In an exemplary embodiment, the first device is a security inspection device, the second device is a scanning device, the image information is an image of an item, and the identification information is an item waybill identification; a first photoelectric sensor and a second photoelectric sensor are respectively provided at the entrance and exit of the security inspection device, and the first acquisition 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.
[0094] In an exemplary embodiment, the information binding module 603 is specifically used to: extract target identification information corresponding to a second acquisition time whose difference from the first acquisition time does not exceed the target time interval from the second data queue based on the first acquisition time corresponding to the image information of the object to be detected; and bind the image information of the object to be detected and the target identification information to obtain multiple image identification groups.
[0095] In an exemplary embodiment, the information binding device also includes a target time interval update module, which is used to: obtain unbound information and repeated binding information based on multiple image identification groups, wherein unbound information is image information that is not bound to any information, and repeated binding information is image information bound to at least two target identification information; when the number of unbound information is greater than the number of repeated binding information, expand the target time interval; when the number of unbound information is less than the number of repeated binding information, shorten the target time interval.
[0096] In addition, what is shown in FIG6 is only one embodiment of the information binding device, not all embodiments. Based on the embodiment of the information binding device in this application, all other embodiments obtained by those skilled in the art without making any creative work are within the scope of protection of this application.
[0097] An embodiment of the present application further provides an electronic device, as shown in FIG7 , which is a schematic structural diagram of the electronic device provided in an embodiment of the present application.
[0098] In an exemplary embodiment, an electronic device integrates any one of the information binding devices provided in the embodiments of the present application.
[0099] The electronic device includes: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to execute the steps of the information binding method in any of the above embodiments by the processor.
[0100] The electronic device may include components such as 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. Those skilled in the art will appreciate that the electronic device structure shown in FIG7 does not limit the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0101] Processor 701 is the control center of the electronic device. It connects the various parts of the entire electronic device using various interfaces and lines. By running or executing software programs and / or modules stored in memory 702 and accessing data stored in memory 702, it performs various functions and data processing of the electronic device, thereby monitoring the electronic device as a whole. Optionally, processor 701 may include one or more processing cores; preferably, processor 701 may integrate an application processor and a modem processor. The application processor mainly processes the operating system, user interface, and application programs, while the modem processor mainly handles wireless communications. It is understood that the modem processor may not be integrated into processor 701.
[0102] 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. The program storage area may store an operating system or application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area may store data created according to the use of the electronic device. 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 device. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.
[0103] The electronic device also includes a power supply 703 for supplying power to various components. Preferably, the power supply 703 can be logically connected to the processor 701 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 703 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, or a power status indicator, among other components.
[0104] The electronic device may further include an input unit 704, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0105] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. In an exemplary embodiment, the processor 701 in the electronic device loads the executable files corresponding to one or more application processes into the memory 702 according to the following instructions, and the processor 701 runs the application stored in the memory 702, thereby implementing the information binding method described in any of the above embodiments.
[0106] In addition, FIG7 shows only one embodiment of the electronic device, not all embodiments. All other embodiments obtained by those skilled in the art based on the electronic device embodiment in this application without any creative work shall fall within the scope of protection of this application.
[0107] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished 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.
[0108] To this end, as shown in FIG8 , an embodiment of the present application provides a computer-readable storage medium 800, which may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. Computer-readable storage medium 800 stores a computer program 810, which is loaded by a processor to execute the steps of the information binding method described in any of the above embodiments.
[0109] In addition, FIG8 shows only one embodiment of a computer-readable storage medium, not all embodiments. All other embodiments obtained by those skilled in the art based on the computer-readable storage medium embodiment in this application without any creative work shall fall within the scope of protection of this application.
[0110] In the above embodiments, the description of each embodiment has its own focus. 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.
[0111] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to implement as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments and will not be repeated here.
[0112] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0113] The above is a detailed introduction to the information binding method, device, electronic device, computer-readable storage medium and computer-readable storage medium provided by this application. Specific examples are used in this article to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method of this application and its core idea; at the same time, for technical personnel in this field, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.
Claims
1. An information binding method, characterized in that: include: Acquire a first data queue and a second data queue, wherein the first data queue includes image information of a plurality of objects to be detected collected in sequence by the first device, and the second data queue includes identification information of the plurality of objects to be detected collected in sequence by the second device; Acquire a target time interval, wherein 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 the image information of each object to be detected in the first data queue, the second acquisition time of the identification information of each object to be detected in the second data queue, and the target time interval, the image information of the objects to be detected in the first data queue and the identification information of the objects to be detected in the second data queue are bound to obtain multiple image identification groups.
2. The information binding method according to claim 1, characterized in that: Also 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 plurality of objects to be detected between the first device and the second device; Acquire multiple transfer speed offsets of multiple types of objects to be detected between the first device and the second device, wherein one type corresponds to one transfer speed offset; Adjusting the basic time according to the plurality of transfer speed offsets 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 a plurality of objects to be detected collected in sequence by the first device in history, and the second historical data queue includes identification information of the plurality of objects 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 the image information of each object to be detected in the first historical data queue, the second acquisition time of the identification information of each object to be detected in the second historical data queue, and the initial time interval, the image information of the object to be detected in the first historical data queue and the identification information of the object to be detected in the second historical data queue are bound to obtain a plurality of historical image identification groups; Counting the binding success rates of the plurality of historical image identification groups obtained based on the initial time interval binding; The target time interval is determined according to the binding success rate.
4. The information binding method according to claim 3, characterized in that: The determining the target time interval according to the binding success rate includes: When the binding success rate is greater than a preset success rate threshold, the initial time interval is set as the target time interval.
5. The information binding method according to claim 3 or 4, characterized in that: The determining the target time interval according to the binding success rate includes: When the binding success rate is less than or equal to the preset success rate threshold, the initial time interval is The adjustment is performed until the target time interval is obtained in which the binding success rate is greater than the preset success rate threshold.
6. The information binding method according to claim 5, characterized in that: The adjusting the initial time interval until obtaining the target time interval in which the binding success rate is greater than a preset success rate threshold includes: The initial time interval is updated according to a preset time adjustment threshold and a preset number threshold until the target time interval with a binding success rate greater than a preset success rate threshold is obtained, wherein the preset time adjustment threshold is determined according to the distance between two adjacent objects to be detected and the average transfer speed.
7. The information binding method according to any one of claims 3 to 6, characterized in that: The determining the target time interval according to the binding success rate includes: When the binding success rate is less than or equal to a preset success rate threshold, the initial time interval is adjusted until the target time interval with the maximum binding success rate is obtained when the number of adjustments is greater than the preset number threshold.
8. The information binding method according to claim 7, characterized in that: The adjusting the initial time interval until obtaining the target time interval with the maximum binding success rate when the number of adjustments is greater than a preset number threshold, includes: The initial time interval is updated according to a preset time adjustment threshold and a preset number threshold until the target time interval with the maximum binding success rate is obtained when the adjustment number is greater than the preset number threshold, wherein the preset time adjustment threshold is determined according to the distance between two adjacent objects to be detected and the average transfer speed.
9. The information binding method according to any one of claims 1 to 8, 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 provided at the entrance and the exit of the security inspection device, and the first acquisition 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.
10. The information binding method according to any one of claims 1 to 9, characterized in that: According to the first acquisition time of the image information of each object to be detected in the first data queue, the second acquisition time of the identification information of each object to be detected in the second data queue, and the target time interval, the image information of the object to be detected in the first data queue and the identification information of the object to be detected in the second data queue are bound to obtain multiple image identification groups, including: Extracting, from the second data queue, target identification information corresponding to a second acquisition time whose difference from the first acquisition time does not exceed the target time interval according to the first acquisition time corresponding to the image information of the object to be detected; The image information of the object to be detected and the target identification information are bound to obtain the multiple image identification groups.
11. The information binding method according to any one of claims 1 to 10, characterized in that: Also includes: Acquire unbound information and repeated bound information according to the multiple image identification groups, 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.
12. An information binding device, characterized in that: include: A data acquisition module, used to acquire a first data queue and a second data queue, wherein the first data queue includes image information of a plurality of objects to be detected collected in sequence by the first device, and the second data queue includes identification information of a plurality of objects to be detected collected in sequence by the second device; A time interval acquisition module, used to acquire a target time interval, wherein 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; An information binding module is used to bind the image information of the objects to be detected in the first data queue and the identification information of the objects to be detected in the second data queue according to the first acquisition time of the image information of each object to be detected in the first data queue, the second acquisition time of the identification information of each object to be detected in the second data queue, and the target time interval to obtain multiple image identification groups.
13. 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 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores 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 11.
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
Automatic luggage identifying and tracking system applied to airport
CN117196441A
Article identification and tracking
EP3786836A1
Cited By
Identification code binding method and device, electronic terminal and computer readable storage medium
CN120449904A