Data synchronization method, system, device and storage medium

文档序号:614234 发布日期:2021-05-07 浏览:13次 中文

阅读说明:本技术 数据同步方法、系统、装置和存储介质 (Data synchronization method, system, device and storage medium ) 是由 许璐 刘正军 陈一铭 于 2020-12-28 设计创作,主要内容包括:本申请涉及一种数据同步方法、系统、装置和存储介质。该方法包括:数据同步系统通过获取高光谱相机采集的图像信息和全球定位系统GPS设备采集的每秒脉冲信号PPS,根据图像信息中的第一目标图像信号和PPS信号,计算图像数据对应的时间数据,将图像数据和时间数据进行拼接,得到同步数据。由于第一目标图像信号为图像帧有效位,帧有效位是最为接近曝光后采集线阵数据的时间信号,以此信号为基准计算得到的时间同步数据会最为准确,提高了数据同步的准确性,不需要定制专业的相机或者处理器,降低了数据同步的成本,且,进一步地,在每次进行图像数据和时间数据同步之后,进行数据的拼接再进行存储,大大节约了后期的时间匹配工作。(The application relates to a data synchronization method, a system, a device and a storage medium. The method comprises the following steps: the data synchronization system calculates time data corresponding to image data according to a first target image signal and a PPS signal in image information by acquiring image information acquired by a hyperspectral camera and a pulse per second signal PPS acquired by GPS equipment, and splices the image data and the time data to obtain synchronization data. Because the first target image signal is an image frame effective bit which is a time signal closest to the linear array data acquired after exposure, time synchronization data calculated by taking the signal as a reference can be most accurate, the accuracy of data synchronization is improved, a professional camera or a processor is not required to be customized, the cost of data synchronization is reduced, and further, after the image data and the time data are synchronized each time, the data are spliced and stored, so that the later time matching work is greatly saved.)

1. A method for synchronizing data, the method comprising:

acquiring image information acquired by a hyperspectral camera and pulse per second signals PPS acquired by GPS equipment; the image information includes image data and a plurality of image signals;

calculating time data corresponding to the image data according to a first target image signal and the PPS signal; the first target image signal is an image frame effective bit signal;

and splicing the image data and the time data to obtain synchronous data.

2. The method according to claim 1, wherein said calculating temporal data corresponding to said image data based on said first target image signal and said PPS signal comprises:

when the rising edge of the PPS signal arrives, acquiring first time data and resetting a system counter;

when the rising edge of the first target image signal arrives, determining second time data of the first target image signal according to the system clock and the count value of the system counter;

and obtaining time data corresponding to the image data according to the first time data and the second time data.

3. The method of claim 2, wherein determining the second time data of the first target image signal according to the system clock and the count value of the system counter when the rising edge of the first target image signal arrives comprises:

and carrying out quotient calculation on the counting number of the system counter and the system clock to obtain second time data of the first target image signal.

4. The method of claim 3, further comprising:

acquiring reference time; the reference time is calculated by taking Greenwich mean time as a reference according to a preset algorithm;

obtaining time data corresponding to the image data according to the first time data and the second time data, including:

and obtaining time data corresponding to the image data according to the first time data, the second time data and the reference time.

5. The method of claim 1, wherein after the receiving image information collected based on a hyperspectral camera, the method further comprises:

when the rising edge of a second target image signal arrives, storing the image data into a preset storage space; the second target image signal is an image line valid bit signal.

6. The method of claim 1, wherein said stitching the image data and the time data to obtain synchronized data comprises:

and splicing the image data and the time data in a preset storage space according to a preset splicing sequence to obtain the synchronous data.

7. The method according to any one of claims 1-6, further comprising:

under the condition that the PPS signal is lost, acquiring a count value of a system counter corresponding to the moment of PPS signal loss;

and calculating time data corresponding to the image data according to the received PPS signal, the counting value of the system counter, the first target image signal and the reference time.

8. A data synchronization system is characterized by comprising a hyperspectral camera, GPS equipment, an FPGA module and a storage module;

the hyperspectral camera is used for acquiring image information; the image information includes image data and a plurality of image signals;

the GPS equipment is used for acquiring pulse signals PPS per second;

the FPGA module is used for calculating time data corresponding to the image data according to the image data and the PPS signal;

the storage module is used for storing the image data and the time data and splicing the image data and the time data to obtain synchronous data.

9. A data synchronization apparatus, the apparatus comprising:

the receiving module is used for acquiring image information acquired by the hyperspectral camera and pulse per second signals PPS acquired by GPS equipment; the image information includes image data and a plurality of image signals;

the calculation module is used for calculating time data corresponding to the image data according to a first target image signal and the PPS signal; the first target image signal is an image frame valid bit signal of the image signal;

and the splicing module is used for splicing the image data and the time data to obtain synchronous data.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.

Technical Field

The present application relates to the field of mapping technologies, and in particular, to a data synchronization method, system, apparatus, and storage medium.

Background

Because unmanned aerial vehicle's small, light in weight, the advantage of the condition of taking off and land, the image data's of high spectral resolution's continuity, narrow wave band advantage can be acquireed to the hyperspectral imaging technique, can be with unmanned aerial vehicle and the integrated application to the remote sensing survey and drawing field of hyperspectral camera.

In the surveying and mapping process, in order to obtain the space-time position of the unmanned aerial vehicle at the moment of photographing, the accurate time of an aerial survey camera carried on the unmanned aerial vehicle during exposure needs to be obtained firstly. And acquiring the accurate time of the aerial survey camera during exposure requires synchronizing the hyperspectral image data with the unmanned aerial vehicle GPS time data.

In the prior art, a method for synchronizing hyperspectral image data and unmanned aerial vehicle GPS time data includes that image data and GPS time data are synchronously processed by customizing a professional On Screen Display (OSD) chip or by using a professional customized camera.

However, the technique of customizing a professional OSD chip or customizing a professional camera is complicated and relatively high in cost.

Disclosure of Invention

In view of the above, it is necessary to provide a data synchronization method, system, device and storage medium that can be implemented at lower cost.

In a first aspect, a data synchronization method is provided, and the method includes:

acquiring image information acquired by a hyperspectral camera and pulse per second signals PPS acquired by GPS equipment; the image information includes image data and a plurality of image signals;

calculating time data corresponding to the image data according to the first target image signal and the PPS signal; the first target image signal is an image frame effective bit signal;

and splicing the image data and the time data to obtain synchronous data.

In one embodiment, the calculating time data corresponding to the image data according to the first target image signal and the PPS signal includes:

when the rising edge of the PPS signal arrives, first time data are obtained, and a system counter is cleared;

when the rising edge of the first target image signal arrives, determining second time data of the first target image signal according to a system clock and the count value of a system counter;

and obtaining time data corresponding to the image data according to the first time data and the second time data.

In one embodiment, the determining the second time data of the first target image signal according to the system clock and the count value of the system counter when the rising edge of the first target image signal arrives includes:

and carrying out quotient calculation on the counting number of the system counter and the system clock to obtain second time data of the first target image signal.

In one embodiment, the method further includes:

acquiring reference time; the reference time is calculated by taking Greenwich mean time as a reference according to a preset algorithm;

obtaining time data corresponding to the image data according to the first time data and the second time data, wherein the time data comprises:

and obtaining time data corresponding to the image data according to the first time data, the second time data and the reference time.

In one embodiment, after receiving the image information acquired based on the hyperspectral camera, the method further comprises:

when the rising edge of the second target image signal arrives, storing the image data into a preset storage space; the second target image signal is an image line valid bit signal.

In one embodiment, the splicing the image data and the time data to obtain the synchronization data includes:

and splicing the image data and the time data in the preset storage space according to a preset splicing sequence to obtain synchronous data.

In one embodiment, the method further includes:

under the condition of PPS signal loss, acquiring a count value of a system counter corresponding to the PPS signal loss moment;

time data corresponding to the image data is calculated based on the received PPS signal, the count value of the system counter, the first target image signal, and the reference time.

In a second aspect, a data synchronization system is provided, which includes a hyperspectral camera, GPS equipment, an FPGA module, and a storage module;

the hyperspectral camera is used for acquiring image information; the image information includes image data and a plurality of image signals;

the GPS equipment is used for acquiring pulse signals PPS per second;

the FPGA module is used for calculating time data corresponding to the image data according to the image data and the PPS signal;

and the storage module is used for storing the image data and the time data and splicing the image data and the time data to obtain synchronous data.

In a third aspect, a data synchronization apparatus is provided, the apparatus comprising:

the receiving module is used for acquiring image information acquired by the hyperspectral camera and pulse per second signals PPS acquired by GPS equipment; the image information includes image data and a plurality of image signals;

the calculation module is used for calculating time data corresponding to the image data according to the first target image signal and the PPS signal; the first target image signal is an image frame effective bit signal of the image signal;

and the splicing module is used for splicing the image data and the time data to obtain synchronous data.

In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the data synchronization method of any of the first aspects described above.

According to the data synchronization method, the data synchronization device and the storage medium, the data synchronization system obtains the image information acquired by the hyperspectral camera and the pulse per second signal PPS acquired by the GPS equipment, calculates the time data corresponding to the image data according to the first target image signal and the PPS signal in the image information, and splices the image data and the time data to obtain the synchronization data. Because the first target image signal is an image frame effective bit which is a time signal closest to the linear array data acquired after exposure, time synchronization data calculated by taking the signal as a reference can be most accurate, the accuracy of data synchronization is improved, a professional camera or a processor is not required to be customized, the cost of data synchronization is reduced, and further, after the image data and the time data are synchronized each time, the data are spliced and stored, so that the later time matching work is greatly saved.

Drawings

FIG. 1 is a diagram of an exemplary data synchronization method;

FIG. 2 is a flow diagram illustrating a method for data synchronization in one embodiment;

FIG. 3 is a flow diagram illustrating a method for data synchronization in one embodiment;

FIG. 4 is a flow diagram illustrating a method for data synchronization in one embodiment;

FIG. 5 is a flow diagram that illustrates a method for data synchronization in one embodiment;

FIG. 6 is a block diagram showing the structure of a data synchronization apparatus according to an embodiment;

FIG. 7 is a block diagram showing the structure of a data synchronization apparatus according to an embodiment;

FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

The data synchronization method provided by the application can be applied to the application environment shown in fig. 1. Wherein, integrated in the unmanned aerial vehicle 01 has data synchronization system, and data synchronization system includes hyperspectral camera 1, GPS equipment 2, FPGA module 3 and storage module 4. The hyperspectral camera 1 and the GPS equipment 2 are in communication connection with the FPGA module 3 respectively, the hyperspectral camera 1 is in communication connection with the storage module 4, and the FPGA module 3 is in communication connection with the storage module 4.

The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. It should be noted that the data synchronization method provided in the embodiments of fig. 2 to fig. 5 of the present application has an execution main body that is a data synchronization system, and may also be a data synchronization apparatus, and the data synchronization apparatus may be a part or all of the data synchronization system through software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is a data synchronization system as an example.

In an embodiment, as shown in fig. 2, a data synchronization method is provided, which relates to a process in which a data synchronization system acquires image information acquired by a hyperspectral camera and a pulse per second signal PPS acquired by a global positioning system GPS device, and calculates time data corresponding to the image data according to a first target image signal of the image information and the PPS signal, so as to splice the image data and the time data to obtain synchronized data, and includes the following steps:

s201, acquiring image information acquired by a hyperspectral camera and pulse per second signals PPS acquired by GPS equipment; the image information includes image data and a plurality of image signals.

The data synchronization system collects currently required image information through the hyperspectral camera and collects PPS signals through built-in GPS equipment.

In this embodiment, optionally, the hyperspectral camera 1 adopts an internal triggering mode, the hyperspectral camera 1 adopts a camera _ link interface for transmitting an image, and the image and the signal can be analyzed into 24-bit image bits and 4-bit signal bits after the interface transmits data and a decoding chip. The signal bits are respectively a data valid bit DVAL, a frame valid bit FVAL, a line valid bit LVAL, and a reserved bit. When the DVAL signal is at a high level, the image data signal is valid, when the FVAL signal is at a high level, the image linear array data is valid, and when the LVAL signal is at a high level, the spectrally separated different waveband linear array data is valid. The data synchronization system acquires the image information acquired by the hyperspectral camera, acquires the PPS signal through the GPS equipment, and transmits the image signal and the PPS signal in the image information to the FPGA module to calculate the time data.

S202, calculating time data corresponding to the image data according to the first target image signal and the PPS signal; the first target image signal is an image frame valid bit signal.

The first target image signal is a frame valid bit FVLA, and the frame valid bit FVAL signal is a time signal closest to the linear array data acquired after exposure, so that the time synchronization data calculated by using the frame valid bit FVAL signal as a reference is most accurate.

In this embodiment, the data synchronization system calculates time data corresponding to the image data according to the acquired first target image signal and the PPS signal. Optionally, the PPS signal is a pulse per second signal, the number of pulses generated by the PPS signal is calculated when a rising edge of the PPS signal arrives, that is, an integer bit time of the PPS signal is calculated, and a decimal time of the image data is calculated when a rising edge of the frame valid bit signal arrives.

And S203, splicing the image data and the time data to obtain synchronous data.

In this embodiment, the image frame data and the obtained time data are spliced. Optionally, the data synchronization system may store the image data in the storage module when the image data is acquired, store the time data in the storage module after the time data corresponding to the image data is obtained through calculation, and implement splicing storage with the image data. Or, after the time data corresponding to the image data is obtained through calculation, the data synchronization system may first store the time data in the storage module, then acquire the image data, and perform splicing storage on the image data and the time data. The stitching sequence of the image data and the time data can be determined according to the actual situation, which is not limited in this embodiment.

In the data synchronization method, the data synchronization system calculates time data corresponding to image data according to a first target image signal and a PPS signal in image information by acquiring image information acquired by a hyperspectral camera and a pulse per second signal PPS acquired by GPS equipment, and splices the image data and the time data to obtain synchronization data. Because the first target image signal is an image frame effective bit which is a time signal closest to the linear array data acquired after exposure, time synchronization data calculated by taking the signal as a reference can be most accurate, the accuracy of data synchronization is improved, a professional camera or a processor is not required to be customized, the cost of data synchronization is reduced, and further, after the image data and the time data are synchronized each time, the data are spliced and stored, so that the later time matching work is greatly saved.

In one embodiment, as shown in fig. 3, the calculating the time data corresponding to the image data according to the first target image signal and the PPS signal includes:

s301, when the rising edge of the PPS signal arrives, first time data are obtained, and a system counter is cleared.

The FPGA module is internally provided with a system counter, and the system counter is cleared when the rising edge of the PPS signal arrives, namely, the system counter is reset. In this embodiment, when the data synchronization system reaches the rising edge of the PPS signal, the first time data of the PPS signal is obtained, since the PPS signal is a pulse per second signal, that is, the PPS signal generates a rising edge signal per second, the system counter is cleared, and at the same time, the pulse signal generated by the PPS signal, that is, the whole second data generated by the PPS signal is obtained, and the obtained pulse signal is used as the time data of the integer part of the current image data, and the system counter is cleared and counting is restarted.

S302, when the rising edge of the first target image signal arrives, second time data of the first target image signal is determined according to a system clock and the count value of a system counter.

And when the rising edge of the frame effective bit is detected to reach, determining the count value of a system counter, and calculating second time data according to a preset system clock. In the present embodiment, the preset system clock refers to the counting frequency of the system per second, for example, the system clock may be 200MHz, which means that 200M counts are counted per second of the system time. Then, according to the preset system clock and the counting value of the current system counter, the time data of the fractional part of the current first target image signal can be obtained through calculation.

In one embodiment, the second time data of the first target image signal may optionally be obtained by quotient-ing the count of the system counter and the system clock.

In this embodiment, for example, when the rising edge of the first target image signal reaches, the count value of the system counter is 100M, and the system clock is set to 200MHZ, that is, when the system counter counts 200M, it is one second, then the 100M count is counted, and by setting 100M/200M to 0.5, the time data of the corresponding decimal part of the current image data can be calculated to be 0.5 s. It should be noted that the data synchronization system may perform the above calculation based on the built-in division register, and the precision of the calculation result may be affected by the system clock and the bit width of the division register, which is not limited in this embodiment.

And S303, obtaining time data corresponding to the image data according to the first time data and the second time data.

In this embodiment, the data synchronization system determines time data corresponding to the image data according to the calculated first time data of the integer part and the calculated second time data of the fractional part, and optionally, the data synchronization system may superimpose the first time data and the second time data, and calculate time data corresponding to the image data, which is not limited in this embodiment.

In this embodiment, time data of a decimal part of image data is calculated according to a rising edge reaching time of a frame significant bit, time data of an integer part of the image data is determined according to a PPS signal, a frame significant bit FVAL signal is a time signal closest to linear array data acquired after exposure, time synchronization data calculated by taking the frame significant bit FVAL signal as a reference is most accurate, and the PPS signal is a pulse per second signal, so that the acquired time data of the integer part is also accurate, and the time data acquired based on the frame significant bit FVAL signal and the PPS signal is accurate without depending on a professional camera or a professional processor.

Optionally, in order to synchronize the time data corresponding to the image data with the universal time, in an embodiment, the method further includes:

acquiring reference time; the reference time is calculated by taking Greenwich mean time as a reference according to a preset algorithm.

The reference time refers to the time, the hour, the minute and the second of the year, the month, the day, the hour, the longitude and the latitude, the satellite heading, the speed, the declination and the like which take Greenwich mean time as the reference.

In this embodiment, time information in the GPRMC information is extracted through the POS antenna via the serial port, entered into the FPGA module, and analyzed from ASCII code to 16 system, and the time information is brought into the POS antenna through the zeilar formula, so as to calculate the current week number. And adding the extracted time, minute and second information to obtain the time base relative to the 0 week and second moment. And taking the time as a time reference, and obtaining complete time synchronization information through the first time data and the second time data of the PPS second pulse.

In this embodiment, the data synchronization system may obtain complete time synchronization information of the image data in the universal time based on the reference time, the first time data, and the second time data, so that the time data corresponding to the image data is more accurate and complete.

Then, obtaining time data corresponding to the image data according to the first time data and the second time data includes:

and obtaining time data corresponding to the image data according to the first time data, the second time data and the reference time.

In this embodiment, the data synchronization system determines the time data corresponding to the image data according to the calculated first time data of the integer part, the calculated second time data of the fractional part, and the calculated reference time, and optionally, the data synchronization system may superimpose the first time data, the second time data, and the reference time data, and calculate the time data corresponding to the image data, which is not limited in this embodiment.

In this embodiment, the data synchronization system obtains time data corresponding to the image data according to the reference time, the first time data, and the second time data, and the obtained time data is relatively accurate.

While calculating the time data corresponding to the image data, the data synchronization system may also store the image data, and in one embodiment, after receiving the image information collected by the hyperspectral camera, the method further includes:

when the rising edge of the second target image signal arrives, storing the image data into a preset storage space; the second target image signal is an image line valid bit signal.

The second target image signal refers to a line effective bit LVAL, and the data of the linear arrays of different wave bands after light splitting is effective when the line effective bit LVAL is at a high level. That is, the data synchronization system can acquire valid image data only when the line valid bit LVAL rises.

In this embodiment, when detecting that the rising edge of the line valid bit LVAL reaches, the data synchronization system acquires current image data and stores the image data in the storage module.

In this embodiment, the data synchronization system can calculate the data time and store the image data into the storage module when detecting that the rising edge of the line valid bit reaches, so that the image data can be stored in time, and resource waste caused by the fact that the image data cannot be stored in time is avoided.

After storing the image data, in an embodiment, the splicing the image data and the time data to obtain the synchronization data includes:

and splicing the image data and the time data in the preset storage space according to a preset splicing sequence to obtain synchronous data.

The preset splicing sequence refers to a splicing sequence of image data before and time data after determined according to actual conditions.

In this embodiment, in the process of calculating time data, the data synchronization system stores the image data into the storage module, and after the time data corresponding to the current image data is calculated, stores the time data into the storage module, and enables the storage module to perform a stitching operation on the current image data and the time data to obtain the current image data and the time data after current synchronization.

In the embodiment, after the image data is acquired and the time data is calculated, the image data and the time data are spliced once, instead of matching and splicing the data after all the image data and the time data are stored, so that the work of respectively storing the image frame data and the GPS time data and then splicing is avoided, and the splicing time at the later stage is saved.

In the process of receiving the PPS signal, it is not avoided that the unmanned aerial vehicle is in a harsh environment to cause the loss of the PPS signal, and in one embodiment, as shown in fig. 4, the method further includes:

s401, under the condition that the PPS signal is lost, the counting value of the system counter corresponding to the PPS signal loss moment is obtained.

In this embodiment, the PPS signal is provided by the GPS device, which may result in the PPS signal being lost if the drone flies into an area where the GPS signal is weak. In this case, a system counter is built in the data synchronization system to perform the secondary pulse-per-second counting. For example, if the system selects a frequency of 200MHz, the counter counts every 200M pulses to obtain a pulse-per-second count, and then the pulse-per-second count is accumulated to obtain an integer number of second time bits of the image frame.

Optionally, the PPS signal provided by the GPS device in the data synchronization system and the pulse per second signal provided by the system counter are two independent parts, and when the two parts are still not unified after a plurality of clock cycles, it indicates that the PPS signal is lost, and at this time, the time of the system counter of the data synchronization system needs to be taken as the reference to calculate the time data, which is not limited in this embodiment.

S402, time data corresponding to the image data is calculated based on the received PPS signal, the count value of the system counter, the first target image signal, and the reference time.

In this embodiment, time data corresponding to the image data is obtained through superposition calculation according to the time corresponding to the PPS signal before the PPS signal is lost, the count value of the system counter, the second time data obtained through calculation according to the first target image signal, and the preset reference time, which is not limited in this embodiment.

In this embodiment, under the condition that the PPS signal is lost, the acquisition of the time synchronization data may be assisted by a system counter in the data synchronization system, so that the time data corresponding to the image data is more accurate, the condition that the time data cannot be calculated is avoided, and the reliability and stability of the data synchronization system are improved.

To better explain the above method, as shown in fig. 5, the present embodiment provides a data synchronization method, which specifically includes:

s101, acquiring image information acquired by a hyperspectral camera and pulse per second signals PPS acquired by GPS equipment;

s102, when the rising edge of the PPS signal arrives, acquiring first time data, and resetting a system counter;

s103, when the rising edge of the first target image signal arrives, determining second time data of the first target image signal according to a system clock and the count value of a system counter;

s104, acquiring reference time; the reference time is calculated by taking Greenwich mean time as a reference according to a preset algorithm;

s105, obtaining time data corresponding to the image data according to the first time data, the second time data and the reference time;

s106, when the rising edge of the second target image signal arrives, storing the image data into a preset storage space;

and S107, splicing the image data and the time data in the preset storage space according to a preset splicing sequence to obtain synchronous data.

In the embodiment, because the first target image signal is the image frame effective bit, and the frame effective bit is the time signal which is closest to the linear array data acquired after exposure, the time synchronization data calculated by taking the first target image signal as a reference is most accurate, the accuracy of data synchronization is improved, a professional camera or a processor is not required to be customized, the cost of data synchronization is reduced, and further, after the image data and the time data are synchronized each time, the data are spliced and stored, so that the later time matching work is greatly saved.

The data synchronization method provided by the above embodiment has similar implementation principle and technical effect to those of the above method embodiment, and is not described herein again.

It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.

In one embodiment, as shown in fig. 1, a data synchronization system is provided, which includes a hyperspectral camera, a GPS device, an FPGA module, and a storage module;

the hyperspectral camera is used for acquiring image information; the image information includes image data and a plurality of image signals;

the GPS equipment is used for acquiring pulse signals PPS per second;

the FPGA module is used for calculating time data corresponding to the image data according to the image data and the PPS signal;

and the storage module is used for storing the image data and the time data and splicing the image data and the time data to obtain synchronous data.

In the embodiment, because the first target image signal is the image frame effective bit, and the frame effective bit is the time signal which is closest to the linear array data acquired after exposure, the time synchronization data calculated by taking the first target image signal as a reference is most accurate, the accuracy of data synchronization is improved, a professional camera or a processor is not required to be customized, the cost of data synchronization is reduced, and further, after the image data and the time data are synchronized each time, the data are spliced and stored, so that the later time matching work is greatly saved.

The data synchronization system provided in the foregoing embodiment has similar implementation principles and technical effects to those of the foregoing method embodiment, and is not described herein again.

In one embodiment, as shown in fig. 6, there is provided a data synchronization apparatus including: receiving module 01, calculation module 02 and concatenation module 03, wherein:

the receiving module 01 is used for acquiring image information acquired by a hyperspectral camera and pulse per second signals PPS acquired by GPS equipment; the image information includes image data and a plurality of image signals;

the calculating module 02 is used for calculating time data corresponding to the image data according to the first target image signal and the PPS signal; the first target image signal is an image frame effective bit signal of the image signal;

and the splicing module 03 is configured to splice the image data and the time data to obtain synchronous data.

In one embodiment, the calculating module 02 is configured to obtain first time data when a rising edge of the PPS signal arrives, and zero out a system counter; when the rising edge of the first target image signal arrives, determining second time data of the first target image signal according to a system clock and the count value of a system counter; and obtaining time data corresponding to the image data according to the first time data and the second time data.

In one embodiment, the calculating module 02 is configured to quotient the count of the system counter and the system clock to obtain the second time data of the first target image signal.

In an embodiment, as shown in fig. 7, the data synchronization apparatus further includes an obtaining module 04;

an obtaining module 04, configured to obtain a reference time; the reference time is calculated by taking Greenwich mean time as a reference according to a preset algorithm; obtaining time data corresponding to the image data according to the first time data and the second time data, wherein the time data comprises: and obtaining time data corresponding to the image data according to the first time data, the second time data and the reference time.

In an embodiment, the stitching module 03 is further configured to store the image data into a preset storage space when a rising edge of the second target image signal arrives; the second target image signal is an image line valid bit signal.

In an embodiment, the splicing module 03 is configured to splice image data and time data in a preset storage space according to a preset splicing sequence to obtain synchronous data.

In an embodiment, the calculating module 02 is further configured to, under the condition that the PPS signal is lost, obtain a count value of a system counter corresponding to the PPS signal loss time; time data corresponding to the image data is calculated based on the received PPS signal, the count value of the system counter, the first target image signal, and the reference time.

For specific limitations of the data synchronization apparatus, reference may be made to the above limitations of the data synchronization method, which is not described herein again. The modules in the data synchronization device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a data synchronization method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.

Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

acquiring image information acquired by a hyperspectral camera and pulse per second signals PPS acquired by GPS equipment; the image information includes image data and a plurality of image signals;

calculating time data corresponding to the image data according to the first target image signal and the PPS signal; the first target image signal is an image frame effective bit signal;

and splicing the image data and the time data to obtain synchronous data.

The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.

In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:

acquiring image information acquired by a hyperspectral camera and pulse per second signals PPS acquired by GPS equipment; the image information includes image data and a plurality of image signals;

calculating time data corresponding to the image data according to the first target image signal and the PPS signal; the first target image signal is an image frame effective bit signal;

and splicing the image data and the time data to obtain synchronous data.

The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:照明设备的状态同步方法、介质及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!