Data synchronization method, device, storage medium and electronic device
By time matching the data information of different data collection devices, the problem of asynchronous data collection time is solved, the data utilization efficiency and processing speed are improved, and the data time synchronization is achieved.
Patent Information
- Application Number
- CN202010970355.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-15
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-09-15
AI Technical Summary
In the existing technology, the data collected by data collection equipment (such as radar and cameras) is not synchronized in time, making it difficult to effectively utilize and synchronize, affecting the efficiency of data analysis and processing.
By obtaining data information from different devices, matching them based on their collection time, and generating matching results to ensure the time synchronization of the data.
It improves the utilization efficiency of data collected by data collection equipment, speeds up subsequent processing, and ensures the synchronization of data time.
Smart Images

Figure CN112148769B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a data synchronization method, device, storage medium and electronic device. Background Art
[0002] Among the current related technologies, traditional security terminal equipment mainly includes visible light cameras, but visible light cameras cannot work at night; although infrared cameras can make up for the defects of visible light cameras, this move undoubtedly increases the cost and difficulty of operation. In addition, optical sensors are also affected by the weather. In foggy days or rainy and snowy days, the monitoring effect is not satisfactory. Therefore, regional monitoring technology based on millimeter wave radar is a hot topic in recent research. Millimeter wave radar actively emits electromagnetic waves and receives signals of the same frequency. It has a very high detection probability for moving objects or objects with large RCS (radar reflection area), and a lower detection probability for stationary objects (the detection probability is not zero). Millimeter wave radar can work 24 hours a day and is less affected by weather.
[0003] Millimeter-wave radar can be used to monitor multiple targets, extract targets of interest to users from multiple targets, and terminate / filter targets that users are not interested in or false targets as soon as possible. One of the purposes of target trajectory classification is to screen / filter targets. For example, in a park, trees shake and form a target trajectory with low speed and small range movement. The target type is a non-human, non-car, and non-animal target. This type of target does not need to be reported, or the trajectory termination method should be called as soon as possible to delete it. If it is a puppy passing through the garden, since it is not the target of the user's attention (the target of the user's attention is a person or a car), the trajectory should also be terminated in time. If it is a trajectory formed by a pedestrian, the radar outputs the pedestrian trajectory information to the camera, and the camera takes pictures or records it based on the trajectory spatial position information provided by the radar.
[0004] However, in the current related technologies, since the data acquisition equipment (for example, radar or camera) needs to process the data accordingly after collecting data, and the collection frequencies of different data acquisition devices are also different, the data between different data acquisition devices cannot be determined as data collected at the same time. Furthermore, it is difficult to conduct a joint analysis based on the data collected by different data acquisition devices, resulting in a technical problem that the data collected by the data acquisition devices is difficult to effectively utilize.
[0005] Currently, no effective solution has been proposed to the technical problem that the data collected by the data acquisition equipment in the related technology is not synchronized in time and is difficult to be effectively used. Summary of the invention
[0006] The embodiments of the present invention provide a data synchronization method, device, storage medium and electronic device to at least solve the technical problem in the related art that the data collected by the data collection equipment is not synchronized in time and is difficult to be effectively used.
[0007] According to one embodiment of the present invention, a data synchronization method is provided, comprising: acquiring a first set of data information from a first device and a second set of data information from a second device, wherein the first set of data information is data information obtained by the first device collecting information on a target area multiple times within a predetermined time period, and the second set of data information is data information obtained by the second device collecting information on the target area multiple times within the predetermined time period, and the data collection frequencies of the first device and the second device are different; based on the collection time when the first device collects the first set of data information and the collection time when the second device collects the second set of data information, matching the data information included in the first set of data information with the data information included in the second set of data information to obtain a matching result.
[0008] According to another embodiment of the present invention, a data synchronization device is provided, comprising: an acquisition module, used to acquire a first set of data information from a first device and a second set of data information from a second device, wherein the first set of data information is data information obtained by the first device collecting information on a target area multiple times within a predetermined time period, and the second set of data information is data information obtained by the second device collecting information on the target area multiple times within the predetermined time period, and the data collection frequencies of the first device and the second device are different; a matching module, used to match data information included in the first set of data information with data information included in the second set of data information based on the collection time of the first device collecting the first set of data information and the collection time of the second device collecting the second set of data information, to obtain a matching result.
[0009] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0010] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0011] Through the present invention, by acquiring the first set of data information from the first device and the second set of data information from the second device, wherein the first set of data information and the second set of data information are respectively data information obtained by the first device and the second device performing multiple information collection on the target area within a predetermined time period, and the data collection frequencies of the first device and the second device are different, the first set of data information and the second set of data information are matched based on the collection time of the first set of data information and the collection time of the second set of data information to obtain a matching result. Therefore, the technical problem that the data collected by the data collection device in the related art is not synchronized in time and is difficult to be effectively utilized can be solved, so as to achieve the technical effect of improving the utilization efficiency of the data collected by the data collection device, accelerating the subsequent processing speed, and ensuring the synchronization of the collected data time. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a hardware structure block diagram of a mobile terminal of a data synchronization method according to an embodiment of the present invention;
[0013] Figure 2 is a flow chart of an optional data synchronization method according to an embodiment of the present invention;
[0014] Figure 3 is a schematic diagram of an optional data synchronization method according to an embodiment of the present invention;
[0015] Figure 4 is a schematic diagram of another optional data synchronization method according to an embodiment of the present invention;
[0016] Figure 5 is a flowchart of another optional data synchronization method according to an embodiment of the present invention;
[0017] Figure 6 is a flowchart of another optional data synchronization method according to an embodiment of the present invention;
[0018] Figure 7 is a schematic diagram of an optional data synchronization method according to an embodiment of the present invention;
[0019] Figure 8 is a flowchart of another optional data synchronization method according to an embodiment of the present invention;
[0020] Fig. 9 It is a schematic diagram of the structure of an optional data synchronization device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0023] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a data synchronization method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0024] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the data synchronization method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0025] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0026] In this embodiment, a method for synchronizing data running on a mobile terminal, a computer terminal or a similar computing device is provided. Figure 2 is a flowchart of an optional data synchronization method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0027] S202, obtaining a first set of data information from a first device and a second set of data information from a second device, wherein the first set of data information is data information obtained by the first device collecting information on a target area multiple times within a predetermined time period, and the second set of data information is data information obtained by the second device collecting information on the target area multiple times within a predetermined time period, and the data collection frequencies of the first device and the second device are different;
[0028] S204, based on the collection time of the first group of data information by the first device and the collection time of the second group of data information by the second device, match the data information included in the first group of data information with the data information included in the second group of data information to obtain a matching result.
[0029] Optionally, in this embodiment, the application scenarios of the above data synchronization method may include but are not limited to parks, construction sites, intersections, roads, park entrances and exits, gates, etc.
[0030] The above is only an example, and this embodiment does not make any specific limitation to this.
[0031] Optionally, in this embodiment, the first device may include but is not limited to radar equipment, video cameras, cameras, recording equipment, scanners and other terminal devices capable of data collection, and the second device may include but is not limited to the same or different types as the first device.
[0032] Optionally, in this embodiment, Figure 3 is a schematic diagram of a network architecture of an optional data synchronization method according to an embodiment of the present invention, such as Figure 3 As shown, the first device 302 collects a first set of data information and sends it to the MCU304, and the second device 306 collects a second set of data information and sends it to the MCU304. The MCU304 matches the first set of data information and the second set of data information based on the collection time of the first device 302 collecting the first set of data information and the collection time of the second device 306 collecting the second set of data information to obtain a corresponding matching result. The above-mentioned MCU304 may include but is not limited to a pre-configured chip or system that can complete the matching processing.
[0033] Optionally, in this embodiment, the above matching result may include but is not limited to determining data information corresponding to the collection time of each data information in the first group of data information from the second group of data information based on the collection time, thereby generating a corresponding matching result.
[0034] Optionally, in this embodiment, the first group of data information may include but is not limited to data information obtained by the first device collecting information from the target area. The target area may be preset by the system or may be configured according to actual business needs. The data information obtained by the first device collecting information from the target area multiple times within a predetermined time period and the data information obtained by the second device collecting information from the target area multiple times within a predetermined time period may include but is not limited to data information obtained by the first device and the second device collecting information from the same target area multiple times in the same time period. The length of the preset time period may be preset by the system or may be configured to continuously collect data until a preset condition is met. The preset condition may include but is not limited to the storage device used to store the first group of data information and / or the second group of data information reaching the maximum storage capacity, the first device and / or the second device failing to work normally, etc.
[0035] The above is only an example, and this embodiment does not impose any specific limitation.
[0036] Optionally, in this embodiment, the data acquisition frequency of the second device is different from the data acquisition frequency of the first device, which may include but is not limited to the data acquisition frequency of the first device being less than the data acquisition frequency of the second device or the data acquisition frequency of the first device being greater than the data acquisition frequency of the second device.
[0037] It should be noted that, when the data collection frequency of the first device is lower than that of the second device, data information having a matching relationship with each data information in the first group of data information can be selected from the second group of data information by including but not limited to taking the first group of data information as a benchmark; and when the data collection frequency of the first device is higher than that of the second device, data information having a matching relationship with each data information in the second group of data information can be selected from the first group of data information by including but not limited to taking the second group of data information as a benchmark.
[0038] Optionally, in this embodiment, the collection time of the first device collecting the first set of data information and the collection time of the second device collecting the second set of data information may include but are not limited to the time when the first device and the second device start data collection, and may also include but are not limited to the time before further processing of the data after the data collection is completed.
[0039] Taking the first device as a millimeter wave radar as an example, the radar signal processing process can be as follows Figure 4 As shown, the process includes the following steps:
[0040] S402, start;
[0041] S404, the millimeter wave radar (corresponding to the aforementioned first device) transmits a signal;
[0042] S406, the signal emitted by the millimeter wave radar contacts the target and a signal reflection occurs;
[0043] S408, receiving the signal after the signal is transmitted;
[0044] S410, sending a control instruction and performing signal processing;
[0045] S412, transmission control instruction;
[0046] S414, encoding the collected data;
[0047] S416, transmitting the encoded data (corresponding to the first set of data information mentioned above)
[0048] S418, next cycle.
[0049] in, Indicates the time when the radar transmits the signal. Indicates the time it takes for a radar signal to be transmitted and then detected. It indicates the time when the radar signal contacts the target, that is, the time point when the radar obtains the target measurement, that is, the collection time when the first device collects the first set of data information. Indicates the time it takes for the radar signal to return. It is generally believed that Since the speed of light is very fast, we assume that It represents the process of signal processing of radar wave signals, the input of which may include but is not limited to radar waves, and the output of which may include but is not limited to the number of target points and detailed target point information. The time consumption cannot be ignored. It is an encoding process, and the time consumption cannot be ignored. The effective information of the control instruction sent in S410 only occupies one byte (frame number) and does not need to be encoded. The time consumption is negligible. It is a transmission process, and although the time consumption is not negligible, the content transmitted by S412 is only one byte, which is negligible compared to the encoded data transmitted in S416.
[0050] It should be noted that the radar operates at a fixed frame rate, and its signal transmission is an unconstrained active behavior, that is, regardless of whether there is a target in the monitoring scene, it executes the above-mentioned S402 to S408 process.
[0051] Taking the second device as a video sensor as an example, the video sensor signal processing process can be as follows: Figure 5 As shown, the process includes the following steps:
[0052] S502, start;
[0053] S504, objects emit light / reflect light;
[0054] S506, the photosensitive component receives a signal (corresponding to the aforementioned video sensor);
[0055] S508, sending a control instruction and performing signal processing;
[0056] S510, transmission control instruction;
[0057] S512, encoding the collected data;
[0058] S514, transmitting the encoded data (corresponding to the aforementioned second set of data information)
[0059] S516, next cycle.
[0060] Among them, the above-mentioned video sensor is a passive device. Indicates the time when the light starts from the target object, Represents the time it takes for a light signal to travel from the target to the video sensor. Indicates the time point corresponding to the target state obtained by the sensor. Indicates the time it takes for light signals to be transmitted. Since the speed of light is very fast, it can be considered that Represents a signal processing process, whose input includes but is not limited to light, and whose output includes but is not limited to RGB image or YUV image. The time consumption cannot be ignored. It is an encoding process, and the time consumption cannot be ignored. The transmission process takes time which cannot be ignored. Step 6: The effective information of the control command sent only occupies one byte (frame number) and does not need to be encoded. The time consumption is negligible. It is a transmission process, and although the time consumption is not negligible, the control instruction transmitted in S510 is only one byte, which is negligible compared to the encoded data transmitted in S514.
[0061] It should be noted that the video sensor operates at a fixed frame rate, and its signal processing process is an unconstrained active behavior, that is, regardless of whether there is a target in the monitoring scene, it will completely execute the process from S502 to S516.
[0062] Through the present invention, by acquiring the first set of data information from the first device and the second set of data information from the second device, wherein the first set of data information and the second set of data information are respectively data information obtained by the first device and the second device performing multiple information collection on the target area within a predetermined time period, and the data collection frequencies of the first device and the second device are different, the first set of data information and the second set of data information are matched based on the collection time of the first set of data information and the collection time of the second set of data information to obtain a matching result. Therefore, the technical problem that the data collected by the data collection device in the related art is not synchronized in time and is difficult to be effectively utilized can be solved, so as to achieve the technical effect of improving the utilization efficiency of the data collected by the data collection device, accelerating the subsequent processing speed, and ensuring the synchronization of the collected data time.
[0063] In an optional embodiment, before matching the data information included in the first group of data information with the data information included in the second group of data information based on the collection time of the first device collecting the first group of data information and the collection time of the second device collecting the second group of data information to obtain a matching result, the method further includes: receiving a first group of control information from the first device and a second group of control information from the second device; determining the time for receiving each control information included in the first group of control information as the collection time when the first device collects the corresponding data information included in the first group of data information, and determining the time for receiving each control information included in the second group of control information as the collection time when the second device collects the corresponding data information included in the second group of data information.
[0064] Optionally, in this embodiment, the first group of control information received from the first device may include but is not limited to: Figure 4 In step S412 shown in FIG. 4 , the first set of control information may include but is not limited to control instructions, such as frame sequence numbers, serial numbers, etc.
[0065] Taking the first device as a millimeter wave radar as an example, the radar sensor signal processing involves many processes, and the time for receiving each control information in the first group of control information is That is, the moment when the radar detects the target. The target information transmission channel involves three processes that are time-consuming and cannot be ignored: and These three processes are serial and have a fixed time (the fluctuation time is very small and can be ignored), so they can be shown as follows:
[0066]
[0067] The target control instruction transmission channel involves a non-negligible time-consuming process: and
[0068]
[0069] It can be seen that the time consumed by the control information transmission channel is much less than the time consumed by the data information transmission channel.
[0070] Taking the second device as a video sensor as an example, the video sensor signal processing involves many processes, and the time for receiving each control information in the second group of control information is That is, the moment when the video detects the target. The target information transmission channel involves three time-consuming processes that cannot be ignored: and These three processes are serial and have a fixed time (the fluctuation time is very small and can be ignored), so they can be shown as follows:
[0071]
[0072] The target control instruction transmission channel involves a non-negligible time-consuming process: and
[0073]
[0074] It can be seen that the time consumed by the control information transmission channel is much less than the time consumed by the data information transmission channel.
[0075] Through this embodiment, the MCU can effectively obtain the time when the first device and the second device collect data information, and then, can match the first set of data information and the second set of data information according to the time when the data information is collected to generate a matching result. Therefore, it can solve the technical problem in the related technology that the data collected by the data acquisition device is not synchronized in time and is difficult to be effectively utilized, thereby achieving the technical effect of improving the utilization efficiency of the data collected by the data acquisition device, accelerating the subsequent processing speed, and ensuring the synchronization of the collected data time.
[0076] In an optional embodiment, determining the time for receiving each control information included in the first group of control information as the collection time for the first device to collect the corresponding data information included in the first group of data information includes: when the first group of control information includes the corresponding first identification information generated and sent by the first device in the order of obtaining each data information included in the first group of data information, determining the time for receiving the first identification information as the time for collecting the data information included in the first group of data information and corresponding to the first identification information; determining the time for receiving each control information included in the second group of control information as the collection time for the second device to collect the corresponding data information included in the second group of data information includes: when the second group of control information includes the corresponding second identification information generated and sent by the second device in the order of obtaining each data information included in the second group of data information, determining the time for receiving the second identification information as the time for collecting the data information included in the second group of data information and corresponding to the second identification information.
[0077] Optionally, in this embodiment, the first identifier and the second identifier may include but are not limited to identifiers capable of recording the acquisition time or acquisition sequence of data information, such as a frame number, an image number, and the like.
[0078] Optionally, in this embodiment, it may include but is not limited to determining the time of receiving the first identification information as the time of collecting data information included in the first group of data information corresponding to the first identification information, and may also include but is not limited to determining the time of receiving the second identification information as the time of collecting data information included in the second group of data information corresponding to the second identification information.
[0079] For example, when the MCU receives the first identification information, the time when the first identification information is received is determined as the time information corresponding to the first identification; when the MCU receives the second identification information, the time when the second identification information is received is determined as the time information corresponding to the second identification, and then matching is performed based on the time information corresponding to the first identification and the time information corresponding to the second identification.
[0080] Through this embodiment, the matching correspondence between the first group of control information and the second group of control information can be efficiently completed, and further, the correspondence between the collection time of the data collected by the first device and the collection time of the data collected by the second device can be obtained, and further, the technical problem existing in the related technology that the data collected by the data collection device is not synchronized in time and difficult to be effectively utilized can be solved, thereby achieving the technical effect of improving the utilization efficiency of the data collected by the data collection device, accelerating the subsequent processing speed, and ensuring the synchronization of the collected data time.
[0081] In an optional embodiment, matching the data information included in the first group of data information with the data information included in the second group of data information based on the collection time of the first device collecting the first group of data information and the collection time of the second device collecting the second group of data information includes: binding the first identifier and the second identifier based on the time of receiving the first identifier and the time of receiving the second identifier, so as to bind the first identifier and the second identifier with the smallest difference in reception time; and matching the data information corresponding to the first identifier included in the first group of data information with the data information corresponding to the second identifier included in the second group of data information according to the binding result of the first identifier and the second identifier.
[0082] Optionally, in this embodiment, the binding of the first identifier and the second identifier may include but is not limited to the following: Figure 6 As shown, taking the first device as a radar and the second device as a camera as an example, the binding relationship may include but is not limited to the following:
[0083] The above binding relationship is generated in such a way that the time difference between the radar control command and the video control command after binding is minimized. It should be noted that the time here is based on the clock on the MCU.
[0084] in, Figure 6 The marked time is the moment on the MCU when the signal reaches the MCU. When executing binding, the radar signal is used as the benchmark (based on the low-frequency sensor, usually the radar operating frequency is lower than the video sensor operating power), such as Figure 6 The left arrow 602 in the middle represents the arrival time of the radar signal, and the left arrow 604 represents the arrival time of the video signal.
[0085] Since the video signal frequency is higher than the radar signal and the binding process is performed based on the radar signal, there will occasionally be a situation where the video signal is blank. Figure 6 The dashed box in the middle indicates the signal for completing the binding.
[0086] The output of the control assignment binding process is a pair of control assignments and an internal time difference, the time difference is
[0087]
[0088] dT i Represents the i-th group binding result.
[0089] Through this embodiment, the technical effect of minimizing the time difference between the radar control instructions and the video control instructions after binding can be achieved.
[0090] In an optional embodiment, before matching the data information included in the first group of data information with the data information included in the second group of data information based on the collection time of the first device collecting the first group of data information and the collection time of the second device collecting the second group of data information to obtain a matching result, the method further includes: receiving a binding result from a target device, wherein the binding result is used to indicate a binding relationship between first identification information of the first group of data information collected by the first device and second identification information of the second group of data information collected by the second device, wherein the first identification information of the data information included in the first group of data information with the smallest reception time difference is bound to the second identification information of the data information included in the second group of data, the first identification information is generated by the first device in the order of obtaining each data information included in the first group of data information and sent to the target device, and the second identification information is generated by the second device in the order of obtaining each data information included in the second group of data information and sent to the target device; matching the data information included in the first group of data information with the data information included in the second group of data information based on the binding result to obtain a matching result.
[0091] Optionally, in this embodiment, the above-mentioned binding relationship is generated by the MCU acquiring the control instruction sent by the first device and the control instruction sent by the second device, and the above-mentioned binding relationship sent by the MCU is received, and then the data information included in the first group of data information is matched with the data information included in the second group of data information according to the binding relationship to obtain a matching result, wherein, taking the first device as a radar, the second device as a camera, and the device generating the binding relationship as the MCU as an example, it can be as follows Figure 7 As shown, MCU702 receives the first identification information and the second identification information sent by the radar 704 and the camera 706 for binding, and generates a corresponding binding relationship, and then sends the above binding relationship to MCU / SOC708, so as to match the data information included in the first group of data information with the data information included in the second group of data information based on the binding result, and obtain a matching result, thereby reducing the computing pressure of the MCU, so that the data acquisition synchronization process of the first device and the second device can be executed in a distributed manner, thereby achieving the technical effect of improving processing efficiency and accelerating time synchronization speed.
[0092] In an optional embodiment, the first identification information includes first frame number information, and the second identification information includes second frame number information.
[0093] In an optional embodiment, based on the collection time of the first device collecting the first group of data information and the collection time of the second device collecting the second group of data information, the data information included in the first group of data information is matched with the data information included in the second group of data information to obtain a matching result, the method further includes: inputting the matching result into a target recognition model to obtain a target recognition result, wherein the target recognition model is a model obtained by training a recognition model to be trained, and the target recognition result is used to indicate whether the target object is included in the matching result.
[0094] Optionally, in this embodiment, the target recognition model can be obtained by training the recognition model to be trained using methods including but not limited to supervised or unsupervised learning. The target recognition result can include but is not limited to indicating whether the target object is included in the matching result, and can also include but is not limited to the probability of the target object being included in the target area, and can also include but is not limited to the probability of performing a corresponding operation after the target object is identified in the target area.
[0095] It should be noted that, taking the first device as a millimeter-wave radar and the second device as a camera as an example, the millimeter-wave radar can monitor multiple targets, extract targets of interest to the user from the multiple targets, and terminate / filter targets that the user is not interested in or false targets as soon as possible. One of the purposes of target trajectory classification is to screen / filter targets. For example, in a park, a level 3 wind blows occasionally, and the trees sway to form a target trajectory with low speed and small range movement. The target type is a non-human, non-car, and non-animal target. This type of target does not need to be reported, or the trajectory termination method is called as soon as possible to delete it. If it is a puppy passing through the garden, since it is not the target of the user's attention (the target of the user's attention is a person or a car), the trajectory should also be terminated in time. If it is a trajectory formed by a pedestrian, the radar outputs the pedestrian trajectory information to the camera, and the camera takes pictures or records it based on the trajectory spatial position information provided by the radar.
[0096] Through this embodiment, the data information collected by the first device and the second device can be synchronized in time, and then the target recognition result obtained by inputting the corresponding data information collected at the same time into the target recognition model can achieve the technical effect of improving the utilization efficiency of data information.
[0097] In an optional embodiment, the first device includes a millimeter wave radar; and the second device includes a video sensor.
[0098] In an optional embodiment, before obtaining a first set of data information from a first device and a second set of data information from a second device, the method further includes: controlling the millimeter-wave radar to solve a set of signals collected by the millimeter-wave radar to obtain a set of target points in the target area and corresponding target point information; generating the first set of data information according to the set of target points and the corresponding target point information; when the target device includes a video sensor, controlling the video sensor to perform signal processing on a set of signals collected by the video sensor to obtain a set of image data; and generating the second set of data information according to the set of image data.
[0099] The present invention will be further described below in conjunction with specific embodiments:
[0100] Figure 8 is a flow chart of an optional data synchronization method according to an embodiment of the present invention, such as Figure 8 As shown, the process includes the following steps:
[0101] Take the first device as a radar, the second device as a video sensor (Camera), and the processing device MCU as an example, wherein steps R1 to R8 are the radar processing flow, C1 to C7 are the video sensor processing flow, and M1 to M4 are the processing device processing flow.
[0102] R1: Radar signal transmission. This step is a fixed period automatic trigger process. Jump to step R2.
[0103] R2: The radar signal hits the target and reflects. Go to step R3.
[0104] R3: The radar sensor receives the radar echo. Jump to R7 and R4 at the same time. If there is a sequence, R7 is executed first.
[0105] R4: Radar signal processing. From the radar echo, calculate the radar target points, such as the number of target points and the content of each target (distance, angle, RCS and radial velocity). This step has low real-time requirements. Jump to step R5.
[0106] R5: Encode. Encode the radar target point information. This step has low real-time requirements. Jump to step R6.
[0107] R6: Transmit. The processor on the radar transmits the radar target point to the SOC. This step has low real-time requirements. Jump to step M3.
[0108] R7: Send control command. The command is the radar frame number, which occupies one byte and contains an integer from 0 to 255. It is used cyclically, i.e. 0->1->…->244->255->0->1->…. This step has a high requirement for real-time performance and a high priority. Jump to step R8.
[0109] R8: Transmit. Send the radar control command to the MCU. This step has high real-time requirements and a higher priority. Jump to step M1.
[0110] C1: Object reflects / illuminates. Where and when the video signal is generated. Jump to step C2.
[0111] C2: The photosensitive components of the video sensor sense light. Jump to C6 and C3 at the same time. If there is a sequence, execute C6 first.
[0112] C3: Video signal processing. This is the process of obtaining RGB or YUV images. This step has low real-time requirements. Jump to step C4.
[0113] C4: Encoding. This step has low real-time requirements. Jump to step C5.
[0114] C5: Transmission. The processor on the video sensor transmits the YUV image to the SOC. This step has low real-time requirements. Jump to step M3.
[0115] C6: Send control command. The command is the video frame number, occupies one byte, and the content is an integer from 0 to 255. It is used cyclically, that is, 0->1->…->244->255->0->1->…. This step has a high requirement for real-time performance and a high priority. Jump to step C7. (1. Extension)
[0116] C7: Transmission. Send the video control command to the MCU. This step has high real-time requirements and a higher priority. Jump to step M1.
[0117] M1: MCU binding. Control command time synchronization, obtain paired radar control commands and video control commands. This step has low real-time requirements. Jump to step M2.
[0118] M2: Transmit. Transmit the bound control instructions to the SOC. This step has low real-time requirements. Jump to step M3.
[0119] M3: Data binding. On the SOC, match the radar frame data and the video frame data based on the control instructions. Jump to step M4.
[0120] M4: End
[0121] Through this embodiment, multiple sensors can work together and complete time synchronization. The time synchronization effect is improved, and the error information is avoided from being brought into the subsequent links, and the self-correction that is difficult to complete in the subsequent links is also avoided. The time delay link can be reduced, and the time delay and time fluctuation size can be reduced. The control instruction transmission link has less transmission content, which can further reduce the time delay and time fluctuation size. The symmetrical hardware circuit design can be designed as a hardware circuit trigger mechanism, which can further reduce the uncertainty of time delay, and can accurately calculate the time difference corresponding to the frame after binding (the error range is controllable), rather than a random value (the range is large), and the real-time dependence condition is less. Technical effect.
[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0123] In this embodiment, a data synchronization device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0124] Fig. 9 is a structural block diagram of an optional data synchronization device according to an embodiment of the present invention, such as Fig. 9 As shown, the device comprises:
[0125] An acquisition module 902 is used to acquire a first set of data information from a first device and a second set of data information from a second device, wherein the first set of data information is data information obtained by the first device collecting information on a target area multiple times within a predetermined time period, and the second set of data information is data information obtained by the second device collecting information on the target area multiple times within the predetermined time period, and the data collection frequencies of the first device and the second device are different;
[0126] The matching module 904 is used to match the data information included in the first group of data information with the data information included in the second group of data information based on the collection time of the first device collecting the first group of data information and the collection time of the second device collecting the second group of data information to obtain a matching result.
[0127] In an optional embodiment, the device is further used for:
[0128] Based on the collection time of the first group of data information collected by the first device and the collection time of the second group of data information collected by the second device, the data information included in the first group of data information is matched with the data information included in the second group of data information, and before obtaining the matching result, a first group of control information from the first device and a second group of control information from the second device are received; the time for receiving each control information included in the first group of control information is determined as the collection time when the first device collects the corresponding data information included in the first group of data information, and the time for receiving each control information included in the second group of control information is determined as the collection time when the second device collects the corresponding data information included in the second group of data information.
[0129] In an alternative embodiment,
[0130] The apparatus is further configured to determine the time of receiving each control information included in the first group of control information as the collection time of the corresponding data information included in the first group of data information by the first device in the following manner: when the first group of control information includes corresponding first identification information generated and sent by the first device in the order of acquiring each data information included in the first group of data information, determine the time of receiving the first identification information as the time of collecting the data information included in the first group of data information and corresponding to the first identification information;
[0131] The device is also used to determine the time of receiving each control information included in the second group of control information as the collection time of the corresponding data information included in the second group of data information by the second device in the following manner: when the second group of control information includes corresponding second identification information generated and sent by the second device in the order of obtaining each data information included in the second group of data information, the time of receiving the second identification information is determined as the time of collecting the data information included in the second group of data information and corresponding to the second identification information.
[0132] In an optional embodiment, the device is also used to match the data information included in the first group of data information with the data information included in the second group of data information based on the collection time of the first device collecting the first group of data information and the collection time of the second device collecting the second group of data information in the following manner: binding the first identifier and the second identifier based on the time of receiving the first identifier and the time of receiving the second identifier to bind the first identifier and the second identifier with the smallest difference in reception time; and matching the data information corresponding to the first identifier included in the first group of data information with the data information corresponding to the second identifier included in the second group of data information according to the binding result of the first identifier and the second identifier.
[0133] In an optional embodiment, the device is further used for:
[0134] Before matching the data information included in the first group of data information with the data information included in the second group of data information based on the collection time of the first device collecting the first group of data information and the collection time of the second device collecting the second group of data information to obtain a matching result, receiving a binding result from a target device, wherein the binding result is used to indicate a binding relationship between the first identification information of the first group of data information collected by the first device and the second identification information of the second group of data information collected by the second device, wherein the first identification information of the data information included in the first group of data information with the smallest difference in reception time is bound with the second identification information of the data information included in the second group of data, the first identification information is generated by the first device in the order of obtaining each data information included in the first group of data information and sent to the target device, and the second identification information is generated by the second device in the order of obtaining each data information included in the second group of data information and sent to the target device; matching the data information included in the first group of data information with the data information included in the second group of data information based on the binding result to obtain a matching result.
[0135] In an optional embodiment, the first identification information includes first frame number information, and the second identification information includes second frame number information.
[0136] In an optional embodiment, the device is also used to: match the data information included in the first group of data information with the data information included in the second group of data information based on the collection time of the first device collecting the first group of data information and the collection time of the second device collecting the second group of data information, and after obtaining the matching result, input the matching result into a target recognition model to obtain a target recognition result, wherein the target recognition model is a model obtained by training the recognition model to be trained, and the target recognition result is used to indicate whether the target object is included in the matching result.
[0137] In an optional embodiment, the first device includes a millimeter wave radar; and the second device includes a video sensor.
[0138] In an optional embodiment, the device is also used to: before obtaining a first set of data information from a first device and a second set of data information from a second device, control the millimeter-wave radar to solve a set of signals collected by the millimeter-wave radar to obtain a set of target points in the target area and corresponding target point information; generate the first set of data information based on the number of target points and the corresponding target point information; when the target device includes a video sensor, control the video sensor to perform signal processing on a set of signals collected by the video sensor to obtain a set of image data; and generate the second set of data information based on the set of image data.
[0139] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0140] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0141] In this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0142] S1, obtaining a first set of data information from a first device and a second set of data information from a second device, wherein the first set of data information is data information obtained by the first device collecting information on a target area multiple times within a predetermined time period, and the second set of data information is data information obtained by the second device collecting information on the target area multiple times within a predetermined time period, and the data collection frequencies of the first device and the second device are different;
[0143] S2, based on the collection time of the first group of data information by the first device and the collection time of the second group of data information by the second device, matching the data information included in the first group of data information with the data information included in the second group of data information to obtain a matching result.
[0144] The computer readable storage medium is further configured to store a computer program for performing the following steps:
[0145] S1, obtaining a first set of data information from a first device and a second set of data information from a second device, wherein the first set of data information is data information obtained by the first device collecting information on a target area multiple times within a predetermined time period, and the second set of data information is data information obtained by the second device collecting information on the target area multiple times within a predetermined time period, and the data collection frequencies of the first device and the second device are different;
[0146] S2, based on the collection time of the first group of data information by the first device and the collection time of the second group of data information by the second device, matching the data information included in the first group of data information with the data information included in the second group of data information to obtain a matching result.
[0147] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0148] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0149] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0150] In an exemplary embodiment, the processor may be configured to perform the following steps via a computer program:
[0151] S1, obtaining a first set of data information from a first device and a second set of data information from a second device, wherein the first set of data information is data information obtained by the first device collecting information on a target area multiple times within a predetermined time period, and the second set of data information is data information obtained by the second device collecting information on the target area multiple times within a predetermined time period, and the data collection frequencies of the first device and the second device are different;
[0152] S2, based on the collection time of the first group of data information by the first device and the collection time of the second group of data information by the second device, matching the data information included in the first group of data information with the data information included in the second group of data information to obtain a matching result.
[0153] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0154] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0155] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A data synchronization method, characterized in that: include: Acquire a first set of data information from a first device and a second set of data information from a second device, wherein the first set of data information is data information obtained by the first device collecting information on a target area multiple times within a predetermined time period, and the second set of data information is data information obtained by the second device collecting information on the target area multiple times within the predetermined time period, and the data collection frequencies of the first device and the second device are different; Based on the collection time when the first device collects the first group of data information and the collection time when the second device collects the second group of data information, matching the data information included in the first group of data information with the data information included in the second group of data information to obtain a matching result; The method also includes: when the data collection frequency of the first device is less than the data collection frequency of the second device, based on the first group of data information, selecting data information that has a matching relationship with each data information in the first group of data information from the second group of data information; when the data collection frequency of the first device is greater than the data collection frequency of the second device, based on the second group of data information, selecting data information that has a matching relationship with each data information in the second group of data information from the first group of data information.
2. The method according to claim 1, characterized in that Before obtaining a matching result, the method further includes: matching data information included in the first group of data information with data information included in the second group of data information based on a collection time when the first device collects the first group of data information and a collection time when the second device collects the second group of data information. receiving a first set of control information from the first device and a second set of control information from the second device; The time for receiving each control information included in the first group of control information is determined as the collection time of the corresponding data information included in the first group of data information by the first device, and the time for receiving each control information included in the second group of control information is determined as the collection time of the corresponding data information included in the second group of data information by the second device.
3. The method according to claim 2, characterized in that Determining the time of receiving each control information included in the first group of control information as the collection time of the corresponding data information included in the first group of data information by the first device comprises: in a case where the first group of control information includes corresponding first identification information generated and sent by the first device in the order of acquiring each data information included in the first group of data information, determining the time of receiving the first identification information as the time of collecting the data information included in the first group of data information and corresponding to the first identification information; Determining the time of receiving each control information included in the second group of control information as the collection time of the corresponding data information included in the second group of data information by the second device includes: when the second group of control information includes corresponding second identification information generated and sent by the second device in the order of obtaining each data information included in the second group of data information, determining the time of receiving the second identification information as the time of collecting the data information included in the second group of data information and corresponding to the second identification information.
4. The method according to claim 3, characterized in that Based on the collection time when the first device collects the first group of data information and the collection time when the second device collects the second group of data information, matching the data information included in the first group of data information with the data information included in the second group of data information includes: Binding the first identifier and the second identifier based on the time when the first identifier is received and the time when the second identifier is received, so as to bind the first identifier and the second identifier with the smallest difference in reception time; According to the binding result of the first identifier and the second identifier, the data information included in the first group of data information and corresponding to the first identifier is matched with the data information included in the second group of data information and corresponding to the second identifier.
5. The method according to claim 1, characterized in that Before obtaining a matching result, the method further includes: matching data information included in the first group of data information with data information included in the second group of data information based on a collection time when the first device collects the first group of data information and a collection time when the second device collects the second group of data information. Receive a binding result from a target device, wherein the binding result is used to indicate a binding relationship between first identification information of the first group of data information collected by the first device and second identification information of the second group of data information collected by the second device, wherein the first identification information of the data information included in the first group of data information with the smallest difference in reception time is bound to the second identification information of the data information included in the second group of data, the first identification information is generated by the first device in the order of acquiring each data information included in the first group of data information and sent to the target device, and the second identification information is generated by the second device in the order of acquiring each data information included in the second group of data information and sent to the target device; Based on the binding result, the data information included in the first group of data information is matched with the data information included in the second group of data information to obtain a matching result.
6. The method according to any one of claims 3 to 5, characterized in that The first identification information includes first frame number information, and the second identification information includes second frame number information.
7. The method according to claim 1, characterized in that After matching the data information included in the first group of data information with the data information included in the second group of data information based on the collection time of the first device collecting the first group of data information and the collection time of the second device collecting the second group of data information, and obtaining a matching result, the method further includes: The matching result is input into a target recognition model to obtain a target recognition result, wherein the target recognition model is a model obtained by training a recognition model to be trained, and the target recognition result is used to indicate whether the matching result contains a target object.
8. The method according to claim 1, characterized in that The first device includes a millimeter wave radar; The second device includes a video sensor.
9. The method according to claim 8, characterized in that Before acquiring the first set of data information from the first device and the second set of data information from the second device, the method further includes: Controlling the millimeter-wave radar to solve a group of signals collected by the millimeter-wave radar to obtain the number of a group of target points in the target area and corresponding target point information; Generate the first set of data information according to the number of the set of target points and the corresponding target point information; In the case where the target device includes a video sensor, controlling the video sensor to perform signal processing on a group of signals collected by the video sensor to obtain a group of image data; The second set of data information is generated according to the set of image data.
10. A data synchronization device, characterized in that: include: an acquisition module, configured to acquire a first set of data information from a first device and a second set of data information from a second device, wherein the first set of data information is data information obtained by the first device collecting information on a target area multiple times within a predetermined time period, and the second set of data information is data information obtained by the second device collecting information on the target area multiple times within the predetermined time period, and the data collection frequencies of the first device and the second device are different; a matching module, configured to match data information included in the first group of data information with data information included in the second group of data information based on a collection time when the first device collects the first group of data information and a collection time when the second device collects the second group of data information, to obtain a matching result; The device is also used for: when the data collection frequency of the first device is less than the data collection frequency of the second device, based on the first group of data information, selecting data information that has a matching relationship with each data information in the first group of data information from the second group of data information; when the data collection frequency of the first device is greater than the data collection frequency of the second device, based on the second group of data information, selecting data information that has a matching relationship with each data information in the second group of data information from the first group of data information.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 9 when executed.
12. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Microwave and video data fusion-based traffic detection method and device
CN106408940A
Terminal operation data monitoring method, terminal device and medium
CN109165136A
Operation monitoring method and device, storage medium and electronic device
CN109905680A
Intelligent household appliance, a control method and device thereof and a storage medium
CN110632849A
Multi-sensor fusion method based on DS-GNN algorithm
CN110726990A
