CN112115132B - Data association method, device, equipment and storage medium - Google Patents

Data association method, device, equipment and storage medium Download PDF

Info

Publication number
CN112115132B
CN112115132B CN201910539290.XA CN201910539290A CN112115132B CN 112115132 B CN112115132 B CN 112115132B CN 201910539290 A CN201910539290 A CN 201910539290A CN 112115132 B CN112115132 B CN 112115132B
Authority
CN
China
Prior art keywords
record
pair
generated
equipment
time interval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910539290.XA
Other languages
Chinese (zh)
Other versions
CN112115132A (en
Inventor
崔轩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910539290.XA priority Critical patent/CN112115132B/en
Publication of CN112115132A publication Critical patent/CN112115132A/en
Application granted granted Critical
Publication of CN112115132B publication Critical patent/CN112115132B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment provides a data association method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a device pair, wherein the device pair comprises: the method comprises the steps of acquiring at least one record pair with a time interval smaller than a preset time interval according to records generated by the first equipment and records generated by the second equipment, wherein each record pair comprises a record generated when the first equipment executes operation and a record generated when the second equipment executes operation, and if the number of record pairs corresponding to the same record content in the equipment pair is larger than a preset value, associating the record pairs in the equipment pair. In the embodiment of the invention, the records generated by different devices are associated based on time and position information, and compared with the prior art, the record generated by the devices does not need to comprise the same field, has no limitation on the record generated by the devices, and can realize data association between any devices.

Description

Data association method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a data association method, a device, equipment and a storage medium.
Background
With the increasing number of informationized applications, more and more media devices play an important role, and particularly, data generated by different media devices are associated, so that the data are mutually communicated and mutually complemented, and the method has a profound effect on building a comprehensive monitoring mechanism.
In the prior art, it is generally based on the same fields, for example: an identification number, which performs data association between different media devices, however, this scheme is not useful for media devices that cannot collect the same field.
Disclosure of Invention
The embodiment of the invention provides a data association method, a device, equipment and a storage medium, which are used for solving the problem that data association can only be carried out through the same field.
In a first aspect, an embodiment of the present invention provides a data association method, including:
acquiring a device pair, the device pair comprising: the device comprises a first device and a second device, wherein the distance between the first device and the second device is smaller than a preset distance;
acquiring at least one record pair with a time interval smaller than a preset time interval according to the record generated by the first device and the record generated by the second device; wherein each record pair comprises a record generated when the first device performs an operation and a record generated when the second device performs an operation;
and if the number of the record pairs corresponding to the same record content in the equipment pair is larger than a preset value, associating the record pairs in the equipment pair.
In one possible design, the method further comprises:
acquiring the position information of any two devices according to the device information table of each device;
acquiring the distance between the two devices according to the position information of the two devices;
and if the distance between the two devices is smaller than the preset distance, forming a device pair.
In one possible design, the number of the device pairs is a plurality, and before the recording is acquired according to the record generated by the first device and the record generated by the second device, at least one recording pair whose recording time interval is less than the preset time interval, the method further includes:
and carrying out group number distribution on each equipment pair, and obtaining the group number of each equipment pair.
In one possible design, the acquiring at least one record pair with a time interval of the records smaller than a preset time interval according to the record generated by the first device and the record generated by the second device includes:
for each device pair, incrementing the group number of the device pair for the record generated by the first device and incrementing the group number of the device pair for the record generated by the second device;
and acquiring at least one record pair with a record time interval smaller than a preset time interval according to the group number of the equipment pair.
In one possible design, the method further comprises:
for each device pair, the number of corresponding record pairs of the same record content is acquired.
In one possible design, the first device and the second device comprise a camera device.
In a second aspect, an embodiment of the present invention provides a data association apparatus, including:
the device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a device pair, and the device pair comprises: the device comprises a first device and a second device, wherein the distance between the first device and the second device is smaller than a preset distance;
the acquisition module is further used for acquiring at least one record pair with a time interval smaller than a preset time interval according to the record generated by the first equipment and the record generated by the second equipment; wherein each record pair comprises a record generated when the first device performs an operation and a record generated when the second device performs an operation;
and the processing module is used for associating the record pairs in the equipment pair if the number of the record pairs corresponding to the same record content is larger than a preset value.
In one possible design, the acquisition module is further configured to:
acquiring the position information of any two devices according to the device information table of each device;
acquiring the distance between the two devices according to the position information of the two devices;
the processing module is further configured to form a device pair if the distance between the two devices is smaller than a preset distance.
In one possible design, the number of the device pairs is plural, and the processing module is further configured to:
and carrying out group number distribution on each equipment pair, and obtaining the group number of each equipment pair.
In one possible design, the acquisition module is specifically configured to:
for each device pair, incrementing the group number of the device pair for the record generated by the first device and incrementing the group number of the device pair for the record generated by the second device;
and acquiring at least one record pair with a record time interval smaller than a preset time interval according to the group number of the equipment pair.
In one possible design, the acquisition module is further configured to:
for each device pair, the number of corresponding record pairs of the same record content is acquired.
In one possible design, the first device and the second device comprise a camera device.
In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored in the memory such that the at least one processor performs the data association method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, where computer executable instructions are stored, and when executed by a processor, implement the data association method according to the first aspect.
In a fifth aspect, embodiments of the present invention provide a computer program product comprising: a computer program for implementing the data association method of the first aspect described above when executed by a processor.
The embodiment provides a data association method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a device pair, wherein the device pair comprises: the method comprises the steps of acquiring at least one record pair with a time interval smaller than a preset time interval according to records generated by the first equipment and records generated by the second equipment, wherein each record pair comprises a record generated when the first equipment executes operation and a record generated when the second equipment executes operation, and if the number of record pairs corresponding to the same record content in the equipment pair is larger than a preset value, associating the record pairs in the equipment pair. In the embodiment of the invention, the records generated by different devices are associated based on time and position information, compared with the prior art, the record generated by the devices is unlimited, the data association between any devices can be realized, the position parameters and the time parameters of the data association can be configured in a self-defining way, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic view of an application scenario of a data association system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data association method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a data association method according to another embodiment of the present invention;
FIG. 4 is a flowchart of a data association method according to another embodiment of the present invention;
FIG. 5 is a schematic diagram of a data association device according to an embodiment of the present invention;
fig. 6 is a schematic hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is an application scenario schematic diagram of a data association system according to an embodiment of the present invention. As shown in fig. 1, the data association system provided in this embodiment includes a terminal device, a device a, and a device B. It should be noted that fig. 1 exemplarily shows two media devices (device a and device B), but the embodiment is not limited thereto, and the media devices may be at least two.
The terminal is used for acquiring data records generated when the equipment A and the equipment B execute operations and judging whether the data records generated by the equipment A and the equipment B can be associated. When device a, device B are electronic probes, the generated data record may include time, the object being photographed, indicating that a certain object was photographed at a certain time. The terminal may be a personal computer, a smart phone, a tablet computer, etc., and the implementation manner of the terminal is not particularly limited in this embodiment.
In addition, in the embodiment of the present invention, the device a and the device B may be, but not limited to, an electronic probe, a radio frequency identification (Radio Frequency Identification, RFID) device, etc., and the device a and the device B may be the same device, or may be different devices, for example, the device a and the device B are both electronic probes, or the device a is an RFID device, and the device B is an electronic probe, which is not limited in the embodiment of the present invention.
It should be noted that, the terminal and the devices a and B may establish connection through a specific transmission line, or may be connected wirelessly, for example, bluetooth, wi-Fi, etc., or may not establish connection, and the user only needs to copy the data records generated by the devices a and B to the terminal for processing.
In the prior art, data association between different devices is generally performed based on the same field, and the description is given by taking the same field as an identification card number as an example, and assuming that when a user enters a certain security gate, a data record generated by the device a includes: the user holds the identification card number and the front photograph of the user, and the data record generated by the equipment B comprises: the identity card number held by the user is the same as the back-image of the user, and the identity card numbers collected by the equipment A and the equipment B are the same, so that the front-image of the user collected by the equipment A and the back-image collected by the equipment B can be correlated, namely, the front-image and the back-image of the user are obtained, and the data are opened and fused, so that a more comprehensive monitoring mechanism is established. However, the above scheme cannot be used for devices that cannot collect the same field.
In order to solve the above problems, an embodiment of the present invention provides a data association method, including: acquiring a device pair, wherein the device pair comprises: the method comprises the steps of acquiring at least one record pair with a time interval smaller than a preset time interval according to records generated by the first equipment and records generated by the second equipment, wherein each record pair comprises a record generated when the first equipment executes operation and a record generated when the second equipment executes operation, and if the number of record pairs corresponding to the same record content in the equipment pair is larger than a preset value, associating the record pairs in the equipment pair.
In the embodiment of the invention, the records generated by different devices are associated based on time and position information, compared with the prior art, the record generated by the devices does not need to comprise the same field, the record generated by the devices is unlimited, the data association between any devices can be realized, the position parameters and the time parameters of the data association can be subjected to custom configuration, and the user experience is improved.
The technical scheme of the embodiment of the invention is described in detail below by adopting a plurality of specific embodiments.
Fig. 2 is a flowchart of a data association method according to an embodiment of the present invention, where the method may be performed by any apparatus for performing the data association method, and the apparatus may be implemented by software and/or hardware. In this embodiment, the apparatus may be integrated in the terminal shown in fig. 1. As shown in fig. 2, the data association method provided by the embodiment of the invention includes the following steps:
s101, acquiring a device pair, wherein the device pair comprises: the device comprises a first device and a second device, wherein the distance between the first device and the second device is smaller than a preset distance.
In this embodiment, when associating a record generated by a first device with a record generated by a second device, a device pair is first acquired, where the device pair includes: the first device and the second device may include a photographing device, for example, the first device is an electronic probe, the second device is an RFID device, and the photographing device may have a certain working range, that is, a scanning range supported by the photographing device, for example, 100 meters, 110 meters, 120 meters, etc., which is not limited by the embodiments of the present invention.
Taking a photographing device as an example, when a record generated by a first device and a record generated by a second device are associated, the time required for the record generated by the first device and the record generated by the second device are the same, then the distance between the first device and the second device is required to be smaller than a preset distance, only when the distance between the first device and a bracket of the second device is smaller than the preset distance, the first device and the second device can generate records for the same object (such as photographing the same object at the same time) at the same time, wherein the preset distance can be 50 meters, 60 meters and 70 meters, and the preset distance can be selected by referring to the working ranges of the first device and the second device.
It should be noted that, the first device and the second device may be the same shooting device, or may be different shooting devices, when the first device and the second device are the same shooting device, the angles, directions, and the like of placement of the first device and the second device may be different, and when the first device and the second device are different shooting devices, the angles, directions, and the like of placement may be different, or may be the same, which is not limited in the embodiment of the present invention, as long as data fusion can be achieved.
S102, acquiring at least one record pair with a time interval smaller than a preset time interval according to the record generated by the first device and the record generated by the second device.
The number of records generated by the first device can be multiple, and the number of records generated by the second device can be multiple; the record generated by the device generally includes the time of generating the record, for example, the image acquired by the electronic probe includes the time of acquiring the image, so the record generated by the first device in this embodiment may be all records within the first preset time, and the record generated by the second device may also be all records within the first preset time; alternatively, the record generated by the first device may be all records from the initial execution of the operation by the first device, the record generated by the second device may also be all records from the initial execution of the operation by the second device, and the time period for selecting the record generated by the first device and the record generated by the second device may be determined according to actual needs, which is not limited in the embodiment of the present invention.
In one possible design, for each record generated by the first device, traversing all records generated by the second device, and acquiring at least one record pair with a time interval of the records smaller than a preset time interval, wherein each record pair comprises a record generated when the first device performs an operation and a record generated when the second device performs an operation; or traversing all records generated by the first device for each record generated by the second device, and acquiring at least one record pair with the time interval of the records smaller than the preset time interval.
Taking the first device as an electronic probe and the second device as an RFID device as an example, specific descriptions will be given with reference to table 1 and table 2, where table 1 is a record generated by the electronic probe, and table 2 is a record generated by the RFID device.
TABLE 1
TABLE 2
If the electronic probe and the RFID device are one device pair and the preset time interval is 10 seconds, the record pair obtained according to the method comprises the following steps: electronic probe-1 (first record of electronic probe) and RFID device-1 (first record of RFID device), electronic probe-2 and RFID device-2, electronic probe-3 and RFID device-3, electronic probe-4 and RFID device-4.
It should be noted that, in theory, in this embodiment, in one record pair, the record generated by the first device and the record generated by the second device should be simultaneous, but because the software and hardware results of each device are different, the time of the record generation will also deviate, so the preset time interval may be determined according to the specific device, which is not limited in this embodiment of the present invention.
Of course, the above is described by way of example only with respect to one device pair, and in one possible design, the number of device pairs is plural, and for each device pair, at least one record pair whose recording time interval is less than the preset time interval may be acquired in the above manner.
And S103, if the number of the corresponding record pairs of the same record content in the equipment pair is larger than a preset value, associating the record pairs in the equipment pair.
In this embodiment, since there may be a plurality of records corresponding to the same record content in the records generated by the apparatus, as in table 1, among the four records generated by the electronic probe, the record content of the electronic probe-1, the record content of the electronic probe-2, and the record content of the electronic probe-4 are all user 2.
Also taking tables 1 and 2 as an example, the number of record pairs corresponding to the user 1 collected by the electronic probe is 1 (the electronic probe-3 and the RFID device-3), and the number of record pairs corresponding to the user 2 is 3 (the electronic probe-1 and the RFID device-1, the electronic probe-2 and the RFID device-2, the electronic probe-3 and the RFID device-3, which indicate that the record of the electronic probe collecting user 2 and the record of the RFID device collecting user 3 collide 3 times.
For each device pair, if the number of the record pairs in the device pair is greater than a preset value, associating the record pairs in the device pair, and if the preset value is 2, determining that the user 1 and the user 4 are not the same person in the above exemplary device pair because the number of the record pairs corresponding to the user 1 is 1 (less than 2);
and if the number of record pairs corresponding to the user 2 is 3 (greater than 2), determining that the user 2 acquired by the electronic probe and the user 3 acquired by the RFID equipment are the same, associating the two records of the electronic probe-1 and the RFID equipment-1, associating the two records of the electronic probe-2 and the RFID equipment-2, and associating the electronic probe-4 and the RFID equipment-4, so that the personnel acquired by different equipment simultaneously can be mapped with each other, and a more comprehensive monitoring mechanism can be established.
The data association method provided in this embodiment obtains a device pair, where the device pair includes: the method comprises the steps of acquiring at least one record pair with a time interval smaller than a preset time interval according to records generated by the first equipment and records generated by the second equipment, wherein each record pair comprises a record generated when the first equipment executes operation and a record generated when the second equipment executes operation, and if the number of record pairs corresponding to the same record content in the equipment pair is larger than a preset value, associating the record pairs in the equipment pair. In the embodiment of the invention, the records generated by different devices are associated based on time and position information, compared with the prior art, the record generated by the devices does not need to comprise the same field, the record generated by the devices is unlimited, the data association between any devices can be realized, the position parameters and the time parameters of the data association can be subjected to custom configuration, and the user experience is improved.
Based on the embodiment of fig. 2 described above, the method further includes how the device pairs are composed. The following is a description of a specific embodiment. Fig. 3 is a flowchart of a data association method according to another embodiment of the present invention, and as shown in fig. 3, the data association method according to the embodiment of the present invention further includes the following steps:
s201, acquiring position information of any two devices according to a device information table of each device.
Each device corresponds to a device information table, the device information table includes the position information of the device, and the device information table can be obtained after the device is installed and fixed at a certain position. In the implementation of the scheme, cartesian product operation is performed according to the device information table of each device, and the position information of any two devices is obtained.
S202, acquiring the distance between two devices according to the position information of the two devices.
In this embodiment, the location information of the device includes longitude and latitude information of the device, and according to the longitude and latitude information of two devices, the distance between the two devices can be obtained, and the specific calculation method is similar to the existing calculation method for calculating the distance by adopting longitude and latitude, and will not be described herein.
S203, if the distance between the two devices is smaller than the preset distance, forming a device pair.
In this embodiment, if the distance between the two devices is smaller than the preset distance, the two devices are formed into a device pair, and only when the distance between the first device and the second device is smaller than the preset distance, the first device and the second device can generate records for the same object (such as shooting the same object at the same time) at the same time, so as to realize record pair association, wherein the preset distance can be 50 meters, 60 meters or 70 meters, the preset distance can be selected by referring to the working ranges of the first device and the second device, and the specific value of the preset distance is not limited in the embodiment of the present invention.
According to the data association method provided by the embodiment, the position information of any two devices is acquired according to the device information table of each device, the distance between the two devices is acquired according to the position information of the two devices, and if the distance between the two devices is smaller than the preset distance, a device pair is formed. In this embodiment, device screening is performed based on the existing location information first, and compared with the prior art, the record generated by the device does not need to include the same field, so that the record generated by the device is unlimited, and the distance parameter associated with the data can be configured in a self-defined manner, thereby improving user experience.
Based on the embodiments of fig. 2 and fig. 3, when the number of the device pairs is plural, the method further includes assigning a group number to each device pair, which will be described below by using a specific embodiment. Fig. 4 is a flowchart of a data association method according to another embodiment of the present invention, and as shown in fig. 4, the data association method according to the embodiment of the present invention further includes the following steps:
s301, acquiring a device pair.
The number of the device pairs is multiple, each device pair comprises a first device and a second device, and the distance between the first device and the second device is smaller than the preset distance. The execution of step 301 is similar to that of step 101 shown in fig. 2, and will not be described here.
S302, assigning the group number to each device pair, and acquiring the group number of each device pair.
S303, for each device pair, adding the group number of the device pair to the record generated by the first device, and adding the group number of the device pair to the record generated by the second device.
Specifically, since the number of the device pairs is multiple, after the device pairs are obtained, the group number of each device pair can be allocated to obtain the group number of each device pair, and the group number of the device pair is the unique identifier of the device pair.
For example, if the number of the device pairs is 3, the device pairs are respectively a first device pair, a second device pair, and a third device pair, and the group number of each device pair is allocated, the group number of the first device pair may be 1-2, the group number of the second device pair may be 2-3, and the group number of the third device pair may be 3-4.
Then, for each device pair, the record generated for the first device is added with the (join) device pair group number, and the record generated for the second device is added with the device pair group number, taking the first device pair as an example, the record generated for the first device includes "8 points, user 1", indicating that user 1 is shot at 8 points, after adding the device pair group number, "8 points, user 1, 1-2", the record generated for the second device includes "9 points, user 3, 1-2", after adding the device pair group number.
The group number of the device pair is increased for all records generated by the first device and the group number of the device pair is increased for all records generated by the second device for each device pair in the manner described above.
It should be noted that, for the above-mentioned exemplary 3 device pairs, the first device pair includes device 1 and device 2, the second device pair includes device 2 and device 3, the third device pair includes device 3 and device 4, the first device pair has a group number of 1-2, the second device pair has a group number of 2-3, since device 2 is a superposition device of the first device pair and the second device pair, the record generated by device 2 increases the group numbers of 1-2 and 2-3, which is equivalent to that of the first device pair and the second device pair, both of which are added to the record generated by device 2, for example, the record generated by device 2 is "9 points, user 3, 1-2, 2-3", that is, the record generated by device 2 belongs to both of 1-2 groups and 2-3 groups after adding the group number; or "9 points, users 3, 1-2", "9 points, users 3, 2-3" two records.
Of course, the above is merely illustrative of the form of the record generated by the device and the form of the record after adding the group number, and the present embodiment is not limited thereto.
S304, according to the group number of the equipment pair, at least one record pair with the record time interval smaller than the preset time interval is obtained.
Since the number of the device pairs is plural, the number of the records generated by each device is also plural, and in order to improve the calculation efficiency, in this embodiment, since the records corresponding to the same device pair group number represent records belonging to one device pair, at least one record pair whose recording time interval is smaller than the preset time interval is acquired from the plural records according to the device pair group number, that is, at least one record pair whose recording time interval is smaller than the preset time interval is acquired from each device pair according to the group number of each device pair.
If the record generated by one device increases the group numbers of two device pairs, the record corresponding to the device can be acquired according to any group number included in the record.
S305, acquiring the number of record pairs corresponding to the same record content for each device pair.
In the implementation of the scheme, the number of the record pairs corresponding to the same record content in each device pair is obtained according to the group number of each device pair.
S306, if the number of the record pairs corresponding to the same record content in the equipment pairs is larger than a preset value, associating the record pairs in the equipment pairs.
The execution of step 306 is similar to that of step 103 shown in fig. 2, and will not be described here.
The data association method provided in this embodiment includes: the method comprises the steps of obtaining equipment pairs, distributing group numbers to each equipment pair, obtaining the group numbers of each equipment pair, adding the group numbers of the equipment pairs to records generated by a first equipment aiming at each equipment pair, adding the group numbers of the equipment pairs to records generated by a second equipment, obtaining at least one record pair with a record time interval smaller than a preset time interval according to the group numbers of the equipment pairs, obtaining the number of record pairs corresponding to the same record content aiming at each equipment pair, and associating the record pairs in the equipment pair if the number of record pairs corresponding to the same record content is larger than a preset value. Based on time and position information, records generated by different devices are associated, compared with the prior art, the records generated by the devices do not need to include the same field, the records generated by the devices are unlimited, data association between any devices can be realized, and position parameters and time parameters of the data association can be configured in a self-defining way, so that user experience is improved.
Fig. 5 is a schematic structural diagram of a data association device according to an embodiment of the present invention, and as shown in fig. 5, the data association device 10 includes: an acquisition module 11 and a processing module 12.
An acquisition module 11, configured to acquire a device pair, where the device pair includes: the device comprises a first device and a second device, wherein the distance between the first device and the second device is smaller than a preset distance;
the acquiring module 11 is further configured to acquire at least one record pair with a time interval of the records smaller than a preset time interval according to the record generated by the first device and the record generated by the second device; wherein each record pair comprises a record generated when the first device performs an operation and a record generated when the second device performs an operation;
and the processing module 12 is configured to associate the record pairs in the device pair if the number of record pairs corresponding to the same record content in the device pair is greater than a preset value.
In one possible design, the acquisition module 11 is further configured to:
acquiring the position information of any two devices according to the device information table of each device;
acquiring the distance between the two devices according to the position information of the two devices;
the processing module is further configured to form a device pair if the distance between the two devices is smaller than a preset distance.
In one possible design, the number of the device pairs is plural, and the processing module 12 is further configured to:
and carrying out group number distribution on each equipment pair, and obtaining the group number of each equipment pair.
In one possible design, the acquiring module 11 is specifically configured to:
for each device pair, incrementing the group number of the device pair for the record generated by the first device and incrementing the group number of the device pair for the record generated by the second device;
and acquiring at least one record pair with a record time interval smaller than a preset time interval according to the group number of the equipment pair.
In one possible design, the acquisition module 11 is further configured to:
for each device pair, the same record content is acquired corresponding to the number of record pairs.
In one possible design, the first device and the second device comprise a camera device.
The data association device provided in this embodiment may be used to execute the technical solution of the foregoing method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
Fig. 6 is a schematic hardware structure of a terminal device according to an embodiment of the present invention, as shown in fig. 6, the terminal device 20 of this embodiment includes: a processor 21 and a memory 22; wherein the method comprises the steps of
A memory 22 for storing computer-executable instructions;
a processor 21 for executing computer-executable instructions stored in a memory to perform the steps performed by the receiving device in the above-described embodiments. Reference may be made in particular to the relevant description of the embodiments of the method described above.
In the alternative, the memory may be separate or integrated with the processor.
When the memories are provided separately, the terminal device 20 further comprises a bus 23 for connecting said memory 22 and the processor 21.
The embodiment of the invention also provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and when a processor executes the computer execution instructions, the data association method is realized.
The embodiment of the invention also provides a computer program product, which comprises: a computer program for implementing a data association method as described above when executed by a processor.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit. The units formed by the modules can be realized in a form of hardware or a form of hardware and software functional units.
The integrated modules, which are implemented in the form of software functional modules, may be stored in a computer readable storage medium. The software functional module is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform some of the steps of the methods described in the embodiments of the present application.
It should be understood that the above processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile memory NVM, such as at least one magnetic disk memory, and may also be a U-disk, a removable hard disk, a read-only memory, a magnetic disk or optical disk, etc.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). It is also possible that the processor and the storage medium reside as discrete components in an electronic device or a master device.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (14)

1. A data association method applied to a terminal device, comprising:
acquiring a device pair, the device pair comprising: the device comprises a first device and a second device, wherein the distance between the first device and the second device is smaller than a preset distance;
acquiring at least one record pair with a time interval smaller than a preset time interval according to the record generated by the first device and the record generated by the second device; wherein each record pair comprises a record generated when the first device performs an operation and a record generated when the second device performs an operation;
and if the number of the record pairs corresponding to the same record content in the equipment pair is larger than a preset value, associating the record pairs in the equipment pair.
2. The method according to claim 1, wherein the method further comprises:
acquiring the position information of any two devices according to the device information table of each device;
acquiring the distance between the two devices according to the position information of the two devices;
and if the distance between the two devices is smaller than the preset distance, forming a device pair.
3. The method of claim 1, wherein the number of pairs of devices is a plurality, and wherein the step of obtaining at least one pair of records having a time interval less than a preset time interval from the first device-generated record and the second device-generated record further comprises:
and carrying out group number distribution on each equipment pair, and obtaining the group number of each equipment pair.
4. A method according to claim 3, wherein the obtaining at least one record pair having a time interval of records less than a preset time interval from the first device-generated record and the second device-generated record comprises:
for each device pair, incrementing the group number of the device pair for the record generated by the first device and incrementing the group number of the device pair for the record generated by the second device;
and acquiring at least one record pair with a record time interval smaller than a preset time interval according to the group number of the equipment pair.
5. The method according to claim 4, wherein the method further comprises:
for each device pair, the number of record pairs corresponding to the same record content is acquired.
6. The method of any of claims 1-5, wherein the first device and the second device comprise a photographing device.
7. A data association apparatus, comprising:
the device comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a device pair, and the device pair comprises: the device comprises a first device and a second device, wherein the distance between the first device and the second device is smaller than a preset distance;
the acquisition module is further used for acquiring at least one record pair with a time interval smaller than a preset time interval according to the record generated by the first equipment and the record generated by the second equipment; wherein each record pair comprises a record generated when the first device performs an operation and a record generated when the second device performs an operation;
and the processing module is used for associating the record pairs in the equipment pair if the number of the record pairs corresponding to the same record content is larger than a preset value.
8. The apparatus of claim 7, wherein the acquisition module is further configured to:
acquiring the position information of any two devices according to the device information table of each device;
acquiring the distance between the two devices according to the position information of the two devices;
the processing module is further configured to form a device pair if the distance between the two devices is smaller than a preset distance.
9. The apparatus of claim 7, wherein the number of pairs of devices is a plurality, the processing module further configured to:
and carrying out group number distribution on each equipment pair, and obtaining the group number of each equipment pair.
10. The apparatus of claim 9, wherein the obtaining module is specifically configured to:
for each device pair, incrementing the group number of the device pair for the record generated by the first device and incrementing the group number of the device pair for the record generated by the second device;
and acquiring at least one record pair with a record time interval smaller than a preset time interval according to the group number of the equipment pair.
11. The apparatus of claim 10, wherein the acquisition module is further configured to:
for each device pair, the number of corresponding record pairs of the same record content is acquired.
12. The apparatus of any of claims 7-11, wherein the first device and the second device comprise a photographing device.
13. A terminal device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the data association method of any one of claims 1 to 6.
14. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor implement the data association method of any of claims 1 to 6.
CN201910539290.XA 2019-06-20 2019-06-20 Data association method, device, equipment and storage medium Active CN112115132B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910539290.XA CN112115132B (en) 2019-06-20 2019-06-20 Data association method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910539290.XA CN112115132B (en) 2019-06-20 2019-06-20 Data association method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112115132A CN112115132A (en) 2020-12-22
CN112115132B true CN112115132B (en) 2024-02-13

Family

ID=73796129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910539290.XA Active CN112115132B (en) 2019-06-20 2019-06-20 Data association method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112115132B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995590A (en) * 2017-11-30 2018-05-04 维沃移动通信有限公司 A kind of information recording method and mobile terminal
WO2018103440A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Network positioning method and terminal device
CN108920601A (en) * 2018-06-27 2018-11-30 中国联合网络通信集团有限公司 A kind of data matching method and device
CN109309757A (en) * 2018-08-24 2019-02-05 百度在线网络技术(北京)有限公司 Memorandum based reminding method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108605310B (en) * 2016-11-30 2021-02-12 华为技术有限公司 Method and device for adjusting positioning period

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018103440A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Network positioning method and terminal device
CN107995590A (en) * 2017-11-30 2018-05-04 维沃移动通信有限公司 A kind of information recording method and mobile terminal
CN108920601A (en) * 2018-06-27 2018-11-30 中国联合网络通信集团有限公司 A kind of data matching method and device
CN109309757A (en) * 2018-08-24 2019-02-05 百度在线网络技术(北京)有限公司 Memorandum based reminding method and terminal

Also Published As

Publication number Publication date
CN112115132A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN108845877B (en) Method, device and system for managing memory
CN110046900B (en) Invoice revocation method and device based on block chain and electronic equipment
CN113676606B (en) Shutdown method and apparatus
CN109656487B (en) Data processing method, device, equipment and storage medium
TW202032466A (en) User age prediction method, apparatus, and device
CN109271564A (en) Declaration form querying method and equipment
CN112363935A (en) Data joint debugging method and device, electronic equipment and storage medium
CN110704198A (en) Data operation method, device, storage medium and processor
CN114697440B (en) Network management method and mobile terminal
CN111767481B (en) Access processing method, device, equipment and storage medium
CN112115132B (en) Data association method, device, equipment and storage medium
CN108647102A (en) Service request processing method, device and the electronic equipment of heterogeneous system
CN108876339B (en) E-pet transaction method and device based on certificate
CN110070383B (en) Abnormal user identification method and device based on big data analysis
CN113392138B (en) Statistical analysis method, device, server and storage medium for private data
CN110008714A (en) The method, apparatus and electronic equipment of data encryption based on confrontation neural network
CN109725856B (en) Shared node management method and device, electronic equipment and storage medium
CN112995982B (en) Method, device, server and storage medium for scheduling cloud SIM card
CN110209666B (en) data storage method and terminal equipment
CN113379347A (en) Express delivery warehouse-out management method and device, electronic equipment and storage medium
CN112907365A (en) Transaction data detection method, device and equipment
CN113301597B (en) Network analysis method and equipment
CN114422966B (en) Information sending method and electronic equipment
CN111371818A (en) Data request verification method, device and equipment
CN105991611B (en) Account management method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant