Method, device, equipment and medium for determining the moving direction of an object

By recording and calculating the scanning time and position information of items at multiple preset points, and combining the time sequence and setting sequence to determine the moving direction of the item, the problem of misjudgment by infrared detectors and RFID scanners in the existing technology is solved and realized A more accurate judgment of the movement direction of items.

CN114118327BActive Publication Date: 2024-10-25CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111472775.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2024-10-25
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

Existing infrared detectors and RFID scanners have misjudgment problems when determining the moving direction of items. Especially when multiple items move in different directions at the same time, they cannot accurately determine the moving direction of each item.

Method used

By recording the scanning time and position information of items at multiple preset points, calculating the time interval and position interval, combining the time sequence and setting sequence, determining the moving direction of the item, and making a judgment when the scanning time interval is greater than the preset threshold. Avoid erroneous judgments caused by false scanning of the RFID scanning antenna.

Benefits of technology

It improves the accuracy of judging the moving direction of items, reduces misjudgments, and is suitable for multiple scanning point scenarios in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114118327B_ABST
    Figure CN114118327B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, equipment, medium and program product for determining the moving direction of an object, which can be applied to the field of computer technology and the field of financial technology. The method for determining the moving direction of an object includes: determining a first scanning record and a second scanning record of the object, wherein the first scanning record includes first time information and first position information of the object being scanned at a first preset point, and the second scanning record includes second time information and second position information of the object being scanned at a second preset point; calculating a first time interval between the first scanning record and the second scanning record according to the first time information and the second time information; determining a time sequence of the object being scanned at the first preset point and the second preset point according to the first time information and the second time information when the first time interval is greater than a first preset threshold; determining a setting sequence of the first preset point and the second preset point in the first direction according to the first position information and the second position information; and determining the moving direction of the object according to the time sequence and the setting sequence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and more specifically to a method, device, equipment, medium and program product for determining a moving direction of an object. Background Art

[0002] At present, the main method of monitoring the entry and exit of objects is to use infrared detectors to detect the direction. However, this method can only determine entry or exit at the same time. However, if multiple objects move in different directions at the same time, the infrared detector cannot accurately determine the moving direction of each object.

[0003] With the emergence of RFID scanners, different items can be identified at the same time. However, in actual applications, the scanner may misjudge the entry and exit of items due to mis-scanning. Summary of the invention

[0004] In view of the above problems, the present disclosure provides a method, an apparatus, a device, a medium and a program product for determining the moving direction of an object.

[0005] According to a first aspect of the present disclosure, there is provided a method for determining a moving direction of an object, comprising:

[0006] Determine a first scanning record and a second scanning record of the object, wherein the first scanning record includes first time information and first position information of the object being scanned at a first preset point, and the second scanning record includes second time information and second position information of the object being scanned at a second preset point;

[0007] Calculate a first time interval between the first scan record and the second scan record according to the first time information and the second time information;

[0008] When the first time interval is greater than the first preset threshold, determining the time sequence in which the object is scanned at the first preset point and the second preset point according to the first time information and the second time information;

[0009] Determining, according to the first position information and the second position information, a setting order of the first preset point and the second preset point in the first direction;

[0010] Determine the direction of movement of items based on the time sequence and setting sequence.

[0011] According to an embodiment of the present disclosure, determining the arrangement order of the first preset point and the second preset point in the first direction according to the first position information and the second position information includes:

[0012] According to the first position information and the second position information, a directed line segment is established by taking the first position as a starting point and the second position as an end point;

[0013] Determine the direction of the directed line segment as a first direction;

[0014] According to the arrangement order of the first position and the second position along the direction of the directed line segment, the arrangement order of the first preset point and the second preset point in the first direction is determined.

[0015] According to an embodiment of the present disclosure, determining the moving direction of an object according to a time sequence and a setting sequence includes:

[0016] When the time sequence is the same as the setting sequence, determining the moving direction of the object as the first direction;

[0017] In the case where the time sequence is opposite to the setting sequence, the moving direction of the object is determined to be the second direction.

[0018] According to an embodiment of the present disclosure, a third preset position point is further provided in the first direction, further comprising:

[0019] When it is determined that the moving direction of the object is the first direction, a third scanning record is acquired, wherein the third scanning record includes third time information when the object is scanned at a third preset position point;

[0020] Calculating a second time interval between the second scanning record and the third scanning record according to the second time information and the third time information;

[0021] Calculate a first difference between the first time interval and the second time interval;

[0022] When the first difference is less than the second preset threshold, the second scanning record is deleted.

[0023] According to an embodiment of the present disclosure, when the first difference is greater than the second preset threshold, information indicating that the moving direction of the item is the first direction is sent twice to the asset management system.

[0024] According to an embodiment of the present disclosure, the above method further includes:

[0025] From the scan record list, obtain the scan time of the Nth scan record and the scan time of the first scan record, where N is a positive integer greater than or equal to 2.

[0026] Calculate a second difference between the scanning time of the Nth scanning record and the scanning time of the first scanning record;

[0027] When the second difference is greater than the third preset threshold, the Nth scanning record is deleted.

[0028] According to an embodiment of the present disclosure, determining a first scanning record and a second scanning record of an object includes:

[0029] According to the identification information of the object, a plurality of scanning records are obtained from the scanning record list, wherein each scanning record includes the preset point identification information;

[0030] According to the preset point identification information, a first scanning record in which the object is scanned at a first preset point and a second scanning record in which the object is scanned at a second preset point are determined from the plurality of scanning records.

[0031] The second aspect of the present disclosure provides a device for determining the moving direction of an object, comprising: a first determination module, a first calculation module, a second determination module, a third determination module and a fourth determination module. The first determination module is used to determine the first scanning record and the second scanning record of the object, wherein the first scanning record includes the first time information and the first position information of the object being scanned at the first preset point, and the second scanning record includes the second time information and the second position information of the object being scanned at the second preset point. The first calculation module is used to calculate the first time interval of the first scanning record and the second scanning record according to the first time information and the second time information. The second determination module is used to determine the time sequence of the object being scanned at the first preset point and the second preset point according to the first time information and the second time information when the first time interval is greater than the first preset threshold. The third determination module is used to determine the setting sequence of the first preset point and the second preset point in the first direction according to the first position information and the second position information. The fourth determination module is used to determine the moving direction of the object according to the time sequence and the setting sequence.

[0032] According to an embodiment of the present disclosure, the third determination module includes an establishment unit, a first determination unit, and a second determination unit. The establishment unit is used to establish a directed line segment based on the first position information and the second position information, with the first position as the starting point and the second position as the end point. The first determination unit is used to determine the direction of the directed line segment as the first direction. The second determination unit is used to determine the arrangement order of the first preset point and the second preset point in the first direction based on the arrangement order of the first position and the second position along the direction of the directed line segment.

[0033] According to an embodiment of the present disclosure, the fourth determination module includes a third determination unit and a fourth determination unit. The third determination unit is used to determine that the moving direction of the object is the first direction when the time sequence is the same as the setting sequence. The fourth determination unit is used to determine that the moving direction of the object is the second direction when the time sequence is opposite to the setting sequence.

[0034] According to an embodiment of the present disclosure, the above-mentioned device further includes a first acquisition module, a second calculation module, a third calculation module, and a first deletion module. The first acquisition module is used to acquire a third scanning record when it is determined that the moving direction of the object is the first direction, wherein the third scanning record includes third time information when the object is scanned at a third preset position point. The second calculation module is used to calculate the second time interval between the second scanning record and the third scanning record based on the second time information and the third time information. The third calculation module is used to calculate the first difference between the first time interval and the second time interval. The first deletion module is used to delete the second scanning record when the first difference is less than the second preset threshold.

[0035] According to an embodiment of the present disclosure, the above-mentioned device also includes a sending module, which is used to send information indicating that the moving direction of the item is a first direction twice to the asset management system when the first difference is greater than a second preset threshold.

[0036] According to an embodiment of the present disclosure, the above-mentioned device further includes: a second acquisition module, a fourth calculation module, and a second deletion module. The second acquisition module is used to obtain the scanning time of the Nth scanning record and the scanning time of the first scanning record from the scanning record list, wherein N is a positive integer greater than or equal to 2. The fourth calculation module is used to calculate the second difference between the scanning time of the Nth scanning record and the scanning time of the first scanning record. The second deletion module is used to delete the Nth scanning record when the second difference is greater than a third preset threshold.

[0037] According to an embodiment of the present disclosure, the first determination module includes an acquisition unit and a fifth determination unit. The acquisition unit is used to acquire multiple scanning records from the scanning record list according to the identification information of the object, wherein each scanning record includes the preset point identification information. The fifth determination unit is used to determine, from the multiple scanning records, a first scanning record in which the object is scanned at the first preset point and a second scanning record in which the object is scanned at the second preset point according to the preset point identification information.

[0038] The third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned method for determining the direction of movement of an object.

[0039] The fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned method for determining the direction of movement of an object.

[0040] The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned method for determining the moving direction of an object when executed by a processor.

[0041] According to the embodiment of the present disclosure, by determining two scanning records of an object being scanned at two preset points respectively, calculating the scanning time interval of the two scanning records, and when the scanning time interval is greater than a preset threshold, determining the time sequence of the object being scanned at the two preset points, and determining the moving direction of the object according to the setting order and time sequence of the two preset points in the first direction. Since the moving direction of the object is determined only when the time interval between the scanning of the same object at two preset points is greater than the preset threshold, the problem of incorrectly determining the moving direction of the object due to mis-scanning of the RFID scanning antenna is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0043] Figure 1 A diagram schematically shows an application scenario of the method for determining the moving direction of an object according to an embodiment of the present disclosure;

[0044] Figure 2 A flow chart schematically shows a method for determining a moving direction of an object according to an embodiment of the present disclosure;

[0045] Figure 3 A flowchart of a method for determining a preset point setting sequence according to an embodiment of the present disclosure is schematically shown;

[0046] Figure 4 A flowchart of a method for deleting duplicate scan records according to an embodiment of the present disclosure is schematically shown;

[0047] Figure 5 A flowchart of a method for deleting a timeout scan record according to an embodiment of the present disclosure is schematically shown;

[0048] Figure 6 A flowchart of a method for determining a first scanning record and a second scanning record of an object according to an embodiment of the present disclosure is schematically shown;

[0049] Figure 7 The following schematically shows a logic block diagram for determining the moving direction of an object according to an embodiment of the present disclosure;

[0050] Figure 8 A structural block diagram schematically shows an apparatus for determining a moving direction of an object according to an embodiment of the present disclosure; and

[0051] Fig. 9A block diagram of an electronic device suitable for implementing a method for determining a moving direction according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0052] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0053] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0054] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0055] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0056] It should be noted that the method and device for determining the direction of movement of an object disclosed in the present invention can be used in the financial field and the computer technology field, and can also be used in any field other than the financial field. The application field of the method and device for determining the direction of movement of an object disclosed in the present invention is not limited.

[0057] Figure 1 The following schematically shows an application scenario diagram for determining the moving direction of an object according to an embodiment of the present disclosure.

[0058] like Figure 1 As shown, the application scenario 100 according to this embodiment may include RFID scanners 101, 102, 103, a network 104, an RFID gateway server 105, and an asset management system 106. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, and the like.

[0059] Multiple scanning antennas may be connected to the RFID scanners 101, 102, and 103, such as scanning antenna 101A, scanning antenna 101B, scanning antenna 101C, scanning antenna 102A, scanning antenna 102B, scanning antenna 102C, scanning antenna 103A, scanning antenna 103B, and scanning antenna 103C. The RFID scanners 101, 102, and 103 may be provided with an antenna at a preset point A, a preset point B, and a preset point C, respectively, through a feeder line. For example, scanning antenna 101A, scanning antenna 102A, and scanning antenna 103A are provided at preset point A, scanning antenna 101B, scanning antenna 102B, and scanning antenna 103B are provided at preset point B, and scanning antenna 101C, scanning antenna 102C, and scanning antenna 103C are provided at preset point C.

[0060] The movable object is provided with a unique tag that can be recognized by the RFID scanners 101, 102, and 103. Each scanning antenna and RFID scanner has a unique identification ID. The tag information of the movable object, the identification ID information of the scanning antennas 101A~103C, the identification ID information of the RFID scanners 101, 102, and 103, and the location information of each scanning antenna are all stored in the asset management system 106.

[0061] When the movable object moves, assuming it is scanned by the scanning antenna 101A and the scanning antenna 101B, the scanning antenna A will send the identification ID information of the scanning antennas 101A and 101B, the identification ID information of the RFID scanner 101, the tag information of the movable object 107, the position information of the scanning antennas 101A and 101B, and the scanning time information of the scanning antennas 101A and 101B respectively scanning the movable object to the RFID gateway server 105 through the network 104. The RFID gateway server 105 executes the method for determining the moving direction of an object in an embodiment of the present disclosure to determine the moving direction of the movable object, and sends the result information used to characterize the moving direction of the movable object to the asset management system 106.

[0062] It should be noted that the method for determining the moving direction of an item provided in the embodiment of the present disclosure can generally be executed by the RFID gateway server 105. Accordingly, the device for determining the moving direction of an item provided in the embodiment of the present disclosure can generally be set in the RFID gateway server 105. The RFID scanners 101 to 103, since scanning antennas are all set at the same preset point, such as 101A, 102A and 103A, can realize the backup of scanning data, and each scanner can work simultaneously or in turns.

[0063] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0064] The following will be based on Figure 1 The scene described by Figure 2 to Figure 7 The ... method of the disclosed embodiment is described in detail.

[0065] Figure 2 The flowchart of the method for determining the moving direction of an object according to an embodiment of the present disclosure is schematically shown.

[0066] like Figure 2 As shown, the process of determining the moving direction of the object in this embodiment includes operations S210 to S250.

[0067] In operation S210, a first scanning record and a second scanning record of the object are determined, wherein the first scanning record includes first time information and first position information when the object is scanned at a first preset point, and the second scanning record includes second time information and second position information when the object is scanned at a second preset point.

[0068] According to the embodiments of the present disclosure, Figure 1 For example, the first scanning record may be a scanning record of the object being scanned at the preset point A, the first scanning time information may be 8:15:10, and the first position information may be the position of the preset point A. The second scanning record may be a scanning record of the object being scanned at the preset point B, the second scanning time information may be 8:15:12, and the second position information may be the position of the preset point B.

[0069] In operation S220, a first time interval between the first scanning record and the second scanning record is calculated according to the first time information and the second time information.

[0070] According to an embodiment of the present disclosure, the first time interval can be calculated based on the difference between the second scanning time and the first scanning time. Taking the first scanning time information of 8:15:10 and the second scanning time information of 8:15:12 as an example, the calculated first time interval is 2 seconds.

[0071] In operation S230, when the first time interval is greater than the first preset threshold, a time sequence in which the object is scanned at the first preset point and the second preset point is determined according to the first time information and the second time information.

[0072] According to an embodiment of the present disclosure, the first preset threshold can be set to 1 second. When the first time interval is greater than 1 second, since the first scanning time information is 8:15:10, the second scanning time information can be 8:15:12. It can be determined that the order in which the object is scanned at preset point A and preset point B is that the object is first scanned at preset point A and then scanned at preset point B.

[0073] In operation S240, determining the arrangement order of the first preset point and the second preset point in the first direction according to the first position information and the second position information;

[0074] According to an embodiment of the present disclosure, for example: preset point A can be set inside the door, preset point B can be set outside the door, and the first direction can be the direction of going out. Then, the setting order of preset point A and preset point B in the direction of going out is A first and then B.

[0075] In operation S250, a moving direction of the object is determined according to the time sequence and the setting sequence.

[0076] According to an embodiment of the present disclosure, for example, the time sequence may be that the object is first scanned at a preset point A and then scanned at a preset point B, and the setting order may be A first and then B, so the direction of the object's movement can be determined as the direction of the exit.

[0077] According to the embodiment of the present disclosure, by determining two scanning records of an object being scanned at two preset points respectively, calculating the scanning time interval of the two scanning records, and when the scanning time interval is greater than a preset threshold, determining the time sequence of the object being scanned at the two preset points, and determining the moving direction of the object according to the setting order and time sequence of the two preset points in the first direction. Since the moving direction of the object is determined only when the time interval between the scanning of the same object at two preset points is greater than the preset threshold, the problem of incorrectly determining the moving direction of the object due to mis-scanning of the RFID scanning antenna is solved.

[0078] Figure 3 A flowchart of a method for determining a preset point setting order according to an embodiment of the present disclosure is schematically shown.

[0079] like Figure 3 As shown, the method for determining the order of setting preset points in this embodiment includes operations S310 to S330.

[0080] In operation S310, a directed line segment is established based on the first position information and the second position information, with the first position as a starting point and the second position as an end point.

[0081] According to an embodiment of the present disclosure, the first position is the position of the preset point A, and the second position is the position of the preset point B. With the position of the preset point A as the starting point and the position of the preset point B as the end point, the established directed line segment may be A→B.

[0082] In operation S320, a direction of the directed line segment is determined as a first direction.

[0083] According to an embodiment of the present disclosure, for example, the direction of the directed line segment A→B can be determined as the first direction. For example, if the preset point A is set inside the door and the preset point B is set outside the door, the direction of the directed line segment A→B can be the direction of going out, and the first direction is the direction of going out.

[0084] In operation S330, a disposition order of the first preset point and the second preset point in the first direction is determined according to an arrangement order of the first position and the second position along the direction of the directed line segment.

[0085] According to an embodiment of the present disclosure, for example, if the positions of preset point A and preset point B are arranged in the direction of directed line segment A→B in the order of A first and B later, then it can be determined that the setting order of preset point A and preset point B in the direction of exit is A first and B later.

[0086] According to an embodiment of the present disclosure, a directed line segment is established with a first position as a starting point and a second position as an end point, and the direction of the directed line segment is determined as a first direction. The setting order of the two preset points in the first direction is determined according to the arrangement order of the two preset points along the direction of the directed line segment. Multiple scanning points can be set according to needs, and the moving direction of the object can be determined according to the setting order and time order of any two scanning points therein. This solves the problem in the related art that only two scanning points are prone to missed scans, and the problem that only two scanning points are set and cannot cope with scenarios with complex application environments.

[0087] According to an embodiment of the present disclosure, determining the moving direction of an object according to a time sequence and a setting sequence includes:

[0088] When the time sequence is the same as the setting sequence, determining the moving direction of the object as the first direction;

[0089] In the case where the time sequence is opposite to the setting sequence, the moving direction of the object is determined to be the second direction.

[0090] According to an embodiment of the present disclosure, for example, if the time when an object is scanned at preset point A is 9:10:15, and the time when the object is scanned at preset point B is 9:10:16, then the time sequence is A first and then B. Assuming that preset point A is set inside the door, preset point B is set outside the door, and the first direction is the exit direction, then the setting order of preset point A and preset point B in the exit direction is A first and then B. The time sequence is the same as the setting order, and it can be determined that the moving direction of the object is the exit direction.

[0091] According to an embodiment of the present disclosure, for example, if the time when the object is scanned at preset point A is 10:12:15, and the time when the object is scanned at preset point B is 10:12:13, then the time sequence is B first and then A. Assuming that preset point A is set inside the door, preset point B is set outside the door, and the first direction is the exit direction, then the setting order of preset point A and preset point B in the exit direction is A first and then B. The time sequence is opposite to the setting order, and it can be determined that the moving direction of the object is the second direction, and the second direction is the entrance direction.

[0092] According to the embodiments of the present disclosure, the direction of movement of an object is determined based on the time sequence and the setting sequence of preset points. This can be adapted to the scenario where multiple scanning points are set in a complex environment. The direction of movement of the object can be determined only if the scanning antennas of any two scanning points scan the object. This can solve the problem of missed scans due to scanner damage in multiple scanning points.

[0093] Figure 4 A flowchart of a method for deleting duplicate scan records according to an embodiment of the present disclosure is schematically shown.

[0094] like Figure 4 As shown, this embodiment includes operations S410 to S440.

[0095] In operation S410, when it is determined that the moving direction of the object is the first direction, a third scanning record is acquired, wherein the third scanning record includes third time information when the object is scanned at a third preset position point.

[0096] According to an embodiment of the present disclosure, for example, it is determined that the moving direction of the object is the exit direction. A preset point C is also set in the exit direction. The third scanning record includes the third time information when the object is scanned at the preset point C. Assuming that the third time information is 8:15:13, the first scanning time information is 8:15:10, and the second scanning time information may be 8:15:12.

[0097] In operation S420, a second time interval between the second scanning record and the third scanning record is calculated according to the second time information and the third time information.

[0098] According to an embodiment of the present disclosure, the second time interval can be calculated according to the difference between the second scanning time and the third scanning time. For example, if the third time information is 8:15:13 and the second scanning time information is 8:15:12, the calculated second time interval is 1 second.

[0099] In operation S430, a first difference between the first time interval and the second time interval is calculated.

[0100] According to an embodiment of the present disclosure, for example, if the first time interval is 1 second and the second time interval is 1 second, then the first difference is 0 second.

[0101] In operation S440, when the first difference is less than the second preset threshold, the second scanning record is deleted.

[0102] According to an embodiment of the present disclosure, for example, the second preset threshold can be set to 2 seconds, and the first difference is less than the second preset threshold, indicating that the object passes through preset points A, B, and C continuously. Therefore, the scanning record of the intermediate preset point B can be deleted.

[0103] According to an embodiment of the present disclosure, in multiple scanning records in the same direction of movement of an object, the time intervals of scanning times of adjacent preset points can be calculated. When the difference between the time intervals of scanning times of two adjacent preset points is less than a preset threshold, the scanning record of the middle point is determined to be a duplicate scanning record, and the scanning record of the middle point is deduplicated, thereby saving memory space in the asset management system.

[0104] According to an embodiment of the present disclosure, when the first difference is greater than the second preset threshold, information indicating that the moving direction of the item is the first direction is sent twice to the asset management system.

[0105] According to an embodiment of the present disclosure, assuming that the third time information is 8:15:15, the first scanning time information is 8:15:10, and the second scanning time information is 8:15:11. The first difference is 3 seconds, which is greater than the second preset threshold, and the information that the item moves from the preset point A to the preset point B and the information that the item moves from the preset point B to the preset point C are sent to the asset management system.

[0106] According to an embodiment of the present disclosure, since the scanning records cannot be recorded for a long time at the RFID gateway layer, when the same object is scanned by three or more preset points in a row in the same direction, the processing results of the RFID gateway layer can be sent to the asset management system, and the asset management system will process it according to business needs.

[0107] Figure 5 A flowchart of a method for deleting a timed scan record according to an embodiment of the present disclosure is schematically shown.

[0108] like Figure 5 As shown, this embodiment includes operations S510 to S530.

[0109] In operation S510, a scan time of the Nth scan record and a scan time of the first scan record are obtained from the scan record list, where N is a positive integer greater than or equal to 2.

[0110] According to an embodiment of the present disclosure, taking N as 5 as an example, from the scan record list, the scan time of the fifth scan record is obtained as 8:15:15, and the scan time of the first scan record may be 8:15:25.

[0111] In operation S520 , a second difference between the scanning time of the Nth scanning record and the scanning time of the first scanning record is calculated.

[0112] According to an embodiment of the present disclosure, for example, the second difference between the scan time of the fifth scan record and the scan time of the first scan record may be 10 seconds.

[0113] In operation S530, when the second difference is greater than a third preset threshold, the Nth scanning record is deleted.

[0114] According to an embodiment of the present disclosure, for example, the third preset threshold can be set to 3 seconds, and the second difference is 10 seconds. If the second difference is greater than the third preset threshold, it means that the 5th scan record is a timeout record, and the 5th record is deleted.

[0115] According to an embodiment of the present disclosure, by setting a third threshold to delete timed records in the scanning record list, the problem of invalid processing of scanning records of lost items that have been staying at a preset point for a long time can be solved.

[0116] Figure 6 The flowchart of the method for determining the first scanning record and the second scanning record of an object according to an embodiment of the present disclosure is schematically shown.

[0117] According to an embodiment of the present disclosure, the embodiment includes operations S610 to S620.

[0118] In operation S610, a plurality of scanning records are obtained from a scanning record list according to identification information of the object, wherein each scanning record includes preset point identification information.

[0119] According to an embodiment of the present disclosure, the identification information of an item may include unique electronic identity tag information set for the item, and the item scanned by the RFID scanner may be identified by the electronic identity tag information. Assuming that the scanning record list includes scanning records of item A and item B, multiple scanning records of item A are obtained based on the electronic identity tag information. Each record includes the identification information of the preset point where item A is scanned.

[0120] In operation S620, a first scanning record in which the object is scanned at a first preset point and a second scanning record in which the object is scanned at a second preset point are determined from the plurality of scanning records according to the preset point identification information.

[0121] According to an embodiment of the present disclosure, it is assumed that an object passes through a preset point A and a preset point B. Scanning antennas A1 and A2 are set at the preset point A, and scanning antennas B1 and B2 are set at the preset point B. Then, the scanning records of object A scanned by scanning antennas A1 and A2 at the preset point A may include identification information of the preset point A, and the scanning records of object A scanned by scanning antennas B1 and B2 at the preset point B may include identification information of the preset point B.

[0122] According to the embodiment of the present disclosure, since the scanning records of the scanning antennas A1 and B1 are fed back to the first RFID scanner, and the scanning records of the scanning antennas A2 and B2 are fed back to the second RFID scanner, the scanning records in the first RFID scanner and the second RFID scanner are the same, and the purpose of mutual backup can be achieved to prevent the problem of missing scans due to damage of one of the RFID scanners.

[0123] According to an embodiment of the present disclosure, each scanning record may also include identification information of the RFID scanner. In the embodiment of the present disclosure, the above method for determining the moving direction of the object may be executed according to the scanning record in any RFID scanner.

[0124] According to the embodiment of the present disclosure, the scanning record of the same object is first determined according to the identification information of the object, and then the scanning record of the object being scanned at different preset points is determined according to the identification information of the preset point, so as to perform the above method of determining the moving direction of the object. The moving direction of the object can be determined in a complex environment where the same object moves in different directions at the same time.

[0125] Figure 7 The following schematically shows a logic block diagram for determining the moving direction of an object according to an embodiment of the present disclosure.

[0126] like Figure 7 As shown, this embodiment includes operations S701 to S712.

[0127] In operation S701, a first scanning record and a second scanning record of an object are determined, and each scanning record includes scanning time information and scanning position information.

[0128] In operation S702 , a first time interval between a first scanning record and a second scanning record is calculated.

[0129] In operation S703, it is determined that the first time interval is greater than the first preset threshold, and if the first time interval is greater than the first preset threshold, operation S704 is performed. If the first time interval is less than the first preset threshold, it indicates that the first scan record is a mis-scanned record, and the scan records in the scan list are continuously traversed to perform operation S701.

[0130] In operation S704, a time sequence in which the object is scanned at the first preset point and the second preset point is determined according to the first time information and the second time information.

[0131] In operation S705, a disposition order of the first preset point and the second preset point in the first direction is determined according to the first position information and the second position information.

[0132] In operation S706, the moving direction of the object is determined according to the time sequence and the setting sequence.

[0133] In operation S707, when the moving direction of the object is determined, a third scanning record is acquired;

[0134] In operation S708, a second time interval between the second scanning record and the third scanning record is calculated according to the second time information and the third time information.

[0135] In operation S709 , a first difference between the first time interval and the second time interval is calculated.

[0136] In operation S710, it is determined whether the first difference is less than a second preset threshold, and if the first difference is less than the second preset threshold, operation S711 is performed. If the first difference is greater than the second preset threshold, operation S712 is performed.

[0137] In operation S711, the second scanning record is deleted.

[0138] In operation S712, the result information of twice determining the moving direction of the object is sent to the asset management system.

[0139] According to an embodiment of the present disclosure, for example, the first time information of the scanned object A at the preset point A is 9:10:12, and the second time information of the scanned object A at the preset point B is 9:10:14. The first time interval is calculated to be 2 seconds, and assuming that the first preset threshold is 1 second, the first time interval is greater than the first preset threshold, and operation 704 can be performed to determine that the time sequence is A first and then B.

[0140] According to an embodiment of the present disclosure, assuming that the preset point A is set inside the door, the preset point B is set outside the door, and the first direction is the exit direction, the setting order of the preset points is A first and then B. Since the time sequence and the setting order are the same, it can be determined that the moving direction of the object is the exit direction.

[0141] According to an embodiment of the present disclosure, a preset point C is further set in the direction of exiting, and the third time information when the object A is scanned at the preset point C is 9:10:15. The second time interval is calculated to be 1 second, and the first difference is 1 second. Assuming that the second preset threshold is 2 seconds, the first difference is less than the second preset threshold, and operation S711 can be performed to delete the second operation record and perform deduplication processing.

[0142] Based on the above method for determining the moving direction of an object, the present disclosure also provides a device for determining the moving direction of an object. Figure 8 The device is described in detail.

[0143] Figure 8 The structural block diagram of the device for determining the moving direction of an object according to an embodiment of the present disclosure is schematically shown.

[0144] like Figure 8 As shown, the device 800 for determining the moving direction of an object in this embodiment includes: a first determining module 810 , a first calculating module 820 , a second determining module 830 , a third determining module 840 and a fourth determining module 850 .

[0145] The first determination module 810 is used to determine a first scanning record and a second scanning record of the object, wherein the first scanning record includes first time information and first location information of the object being scanned at a first preset point, and the second scanning record includes second time information and second location information of the object being scanned at a second preset point. In one embodiment, the first determination module 810 can be used to perform the operation S210 described above, which will not be described in detail herein.

[0146] The first calculation module 820 is used to calculate the first time interval between the first scan record and the second scan record according to the first time information and the second time information. In one embodiment, the first calculation module 820 can be used to perform the operation S220 described above, which will not be described in detail here.

[0147] The second determination module 830 is used to determine the time sequence of the object being scanned at the first preset point and the second preset point according to the first time information and the second time information when the first time interval is greater than the first preset threshold. In one embodiment, the second determination module 830 can be used to perform the operation S230 described above, which will not be repeated here.

[0148] The third determination module 840 is used to determine the arrangement order of the first preset point and the second preset point in the first direction according to the first position information and the second position information. In one embodiment, the third determination module 840 can be used to perform the operation S240 described above, which will not be repeated here.

[0149] The fourth determination module 850 is used to determine the moving direction of the object according to the time sequence and the setting sequence. In one embodiment, the fourth determination module 850 can be used to perform the operation S250 described above, which will not be described in detail here.

[0150] According to an embodiment of the present disclosure, the third determination module includes an establishment unit, a first determination unit, and a second determination unit. The establishment unit is used to establish a directed line segment based on the first position information and the second position information, with the first position as the starting point and the second position as the end point. The first determination unit is used to determine the direction of the directed line segment as the first direction. The second determination unit is used to determine the arrangement order of the first preset point and the second preset point in the first direction based on the arrangement order of the first position and the second position along the direction of the directed line segment.

[0151] According to an embodiment of the present disclosure, the fourth determination module includes a third determination unit and a fourth determination unit. The third determination unit is used to determine that the moving direction of the object is the first direction when the time sequence is the same as the setting sequence. The fourth determination unit is used to determine that the moving direction of the object is the second direction when the time sequence is opposite to the setting sequence.

[0152] According to an embodiment of the present disclosure, the above-mentioned device further includes a first acquisition module, a second calculation module, a third calculation module, and a first deletion module. The first acquisition module is used to acquire a third scanning record when it is determined that the moving direction of the object is the first direction, wherein the third scanning record includes third time information when the object is scanned at a third preset position point. The second calculation module is used to calculate the second time interval between the second scanning record and the third scanning record based on the second time information and the third time information. The third calculation module is used to calculate the first difference between the first time interval and the second time interval. The first deletion module is used to delete the second scanning record when the first difference is less than the second preset threshold.

[0153] According to an embodiment of the present disclosure, the above-mentioned device also includes a sending module, which is used to send information indicating that the moving direction of the item is a first direction twice to the asset management system when the first difference is greater than a second preset threshold.

[0154] According to an embodiment of the present disclosure, the above-mentioned device further includes: a second acquisition module, a fourth calculation module, and a second deletion module. The second acquisition module is used to obtain the scanning time of the Nth scanning record and the scanning time of the first scanning record from the scanning record list, wherein N is a positive integer greater than or equal to 2. The fourth calculation module is used to calculate the second difference between the scanning time of the Nth scanning record and the scanning time of the first scanning record. The second deletion module is used to delete the Nth scanning record when the second difference is greater than a third preset threshold.

[0155] According to an embodiment of the present disclosure, the first determination module includes an acquisition unit and a fifth determination unit. The acquisition unit is used to acquire multiple scanning records from the scanning record list according to the identification information of the object, wherein each scanning record includes the preset point identification information. The fifth determination unit is used to determine, from the multiple scanning records, a first scanning record in which the object is scanned at the first preset point and a second scanning record in which the object is scanned at the second preset point according to the preset point identification information.

[0156] According to an embodiment of the present disclosure, any multiple modules of the first determination module 810, the first calculation module 820, the second determination module 830, the third determination module 840 and the fourth determination module 850 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first determination module 810, the first calculation module 820, the second determination module 830, the third determination module 840 and the fourth determination module 850 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or by any one of the three implementation methods of software, hardware and firmware or by a suitable combination of any of them. Alternatively, at least one of the first determination module 810, the first calculation module 820, the second determination module 830, the third determination module 840 and the fourth determination module 850 may be at least partially implemented as a computer program module, which may perform a corresponding function when executed.

[0157] Fig. 9A block diagram of an electronic device suitable for implementing a method for determining a moving direction of an object according to an embodiment of the present disclosure is schematically shown.

[0158] like Fig. 9 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0159] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0160] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage portion 908 as needed.

[0161] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0162] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.

[0163] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method for the direction of movement of the object provided in the embodiment of the present disclosure.

[0164] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 901. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0165] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0166] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0167] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0168] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0169] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0170] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for determining the direction of movement of an object, include: Determine a first scanning record and a second scanning record of the object, wherein the first scanning record includes first time information and first position information of the object being scanned at a first preset point, and the second scanning record includes second time information and second position information of the object being scanned at a second preset point; Calculating a first time interval between the first scanning record and the second scanning record according to the first time information and the second time information; When the first time interval is greater than a first preset threshold, determining a time sequence in which the object is scanned at the first preset point and the second preset point according to the first time information and the second time information; Determining, according to the first position information and the second position information, a setting order of the first preset point and the second preset point in a first direction; Determining the moving direction of the object according to the time sequence and the setting sequence; Wherein, determining the arrangement order of the first preset point and the second preset point in the first direction according to the first position information and the second position information includes: According to the first position information and the second position information, a directed line segment is established by taking the first position as a starting point and the second position as an end point; Determine the direction of the directed line segment as a first direction; Determining a setting order of the first preset point and the second preset point in the first direction according to an arrangement order of the first position and the second position along the direction of the directed line segment; Wherein, determining the moving direction of the object according to the time sequence and the setting sequence includes: In a case where the time sequence is the same as the setting sequence, determining the moving direction of the object to be the first direction; In a case where the time sequence is opposite to the setting sequence, determining the moving direction of the object to be a second direction; A third preset position point is also set in the first direction, and further includes: When it is determined that the moving direction of the object is the first direction, a third scanning record is acquired, wherein the third scanning record includes third time information when the object is scanned at the third preset position point; Calculating a second time interval between the second scanning record and the third scanning record according to the second time information and the third time information; calculating a first difference between the first time interval and the second time interval; When the first difference is less than a second preset threshold, deleting the second scanning record; From the scan record list, obtain the scan time of the Nth scan record and the scan time of the first scan record, where N is a positive integer greater than or equal to 2. Calculating a second difference between the scanning time of the Nth scanning record and the scanning time of the first scanning record; When the second difference is greater than a third preset threshold, the Nth scanning record is deleted.

2. The method according to claim 1, further comprising: include: When the first difference is greater than the second preset threshold, information indicating that the moving direction of the object is the first direction is sent to the asset management system twice.

3. The method according to claim 1, in, Determining a first scanning record and a second scanning record of an item includes: According to the identification information of the object, a plurality of scanning records are obtained from the scanning record list, wherein each scanning record includes the preset point identification information; According to the preset point identification information, the first scanning record in which the object is scanned at the first preset point and the second scanning record in which the object is scanned at the second preset point are determined from the multiple scanning records.

4. A device for determining the direction of movement of an object, include: A first acquisition module is used to determine a first scanning record and a second scanning record of the object, wherein the first scanning record includes first time information and first position information of the object being scanned at a first preset point, and the second scanning record includes second time information and second position information of the object being scanned at a second preset point; A first calculation module, configured to calculate a first time interval between the first scanning record and the second scanning record according to the first time information and the second time information; A first determining module, configured to determine, when the first time interval is greater than a first preset threshold, a time sequence in which the object is scanned at the first preset point and the second preset point according to the first time information and the second time information; A second determining module, configured to determine a setting order of the first preset point and the second preset point in a first direction according to the first position information and the second position information; A third determining module, used to determine the moving direction of the object according to the time sequence and the setting sequence; The third determination module comprises: an establishing unit, configured to establish a directed line segment according to the first position information and the second position information, taking the first position as a starting point and the second position as an end point; A first determining unit, configured to determine the direction of the directed line segment as a first direction; A second determining unit, configured to determine a setting order of the first preset point and the second preset point in the first direction according to an arrangement order of the first position and the second position along the direction of the directed line segment; The fourth determination module includes: a third determining unit, configured to determine that the moving direction of the object is the first direction when the time sequence is the same as the setting sequence; A fourth determining unit, configured to determine that the moving direction of the object is a second direction when the time sequence is opposite to the setting sequence; A third preset position point is also set in the first direction, and the device further includes: A first acquisition module, configured to acquire a third scanning record when it is determined that the moving direction of the object is the first direction, wherein the third scanning record includes third time information when the object is scanned at the third preset position point; A second calculation module, configured to calculate a second time interval between the second scanning record and the third scanning record according to the second time information and the third time information; A third calculation module, configured to calculate a first difference between the first time interval and the second time interval; A first deleting module, configured to delete the second scanning record when the first difference is less than a second preset threshold; The second acquisition module is used to acquire the scanning time of the Nth scanning record and the scanning time of the first scanning record from the scanning record list, wherein N is a positive integer greater than or equal to 2, a fourth calculation module, configured to calculate a second difference between the scanning time of the Nth scanning record and the scanning time of the first scanning record; The second deleting module is used to delete the Nth scanning record when the second difference is greater than a third preset threshold.

5. An electronic device, include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 3.

6. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 3.

7. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.