Disclosure of Invention
Aiming at the problems in the prior art, the method for processing the video file with the temperature information is provided. The method comprises the following steps:
when the infrared thermal imaging picture is recorded, simultaneously recording picture full-screen temperature data and a current temperature measurement rule output by equipment;
packaging the infrared thermal imaging image picture, full-screen temperature data and current temperature measurement rule information into a source data packet;
reading full-screen temperature measurement data and temperature measurement rule information before starting playback of the video recording file;
acquiring picture full-screen temperature data and temperature measurement rule information when a video is played;
and calculating the temperature measurement result of the temperature measurement rule in real time and overlapping and displaying the temperature measurement result on the played back video.
Wherein the method further comprises: temperature measurement objects can be edited in the process of playing the video; positioning the time period of the alarm video through the alarm temperature of the temperature measurement object, and storing the edited modification data packet;
then uploading the source data packet and the modification data packet to a designated area of a cloud server;
the designated area comprises a first memory and a second memory, wherein the first memory is used for realizing the storage of source data packets, and the second memory is used for realizing the storage of modification data packets;
the cloud server sends the full data of the source data packet and the modified data packet to the central server; the full data comprises all information of a source data packet and a modification data packet;
the cloud server sends the source data packet and/or the component data of the modified data packet to the user server; the component data includes partial information of the source packet and/or the modified packet and preset watermark information.
Before transmitting the data packets, the cloud server further acquires header setting modes of source data packets and modified data packets and identification information respectively allocated to the source data packets and the modified data packets from the central server, wherein the identification information corresponds to the header setting modes one to one;
the cloud server sets headers for the source data packet and the modification data packet respectively according to the setting mode of the headers and the identification information of the source data packet and the modification data packet so as to obtain a header of the source data packet and a header of the modification data packet; wherein, the setting mode of the source data packet and the header of the modified data packet are different;
the cloud server respectively adds the header of the source data packet and the header of the modification data packet to the source data packet and the modification data packet to obtain an encapsulated source data packet and an encapsulated modification data packet, and then uploads the encapsulated source data packet and the encapsulated modification data packet to the central server;
after receiving the encapsulated source data packet and the encapsulated modified data packet, the central server determines identification information in the data packet, determines a setting mode of a header according to the identification information, then respectively calculates the headers of the source data packet and the modified data packet, and respectively compares the headers with the headers in the encapsulated source data packet and the encapsulated modified data packet;
if the data packets are the same, the data packets are in accordance with the requirements; deleting headers in the encapsulated source data packet and the encapsulated modified data packet by the central server to obtain a source data packet and a modified data packet;
before transmitting the data packet, the cloud server further comprises an interception rule for acquiring the component data from the central server, a permission transmission certificate for the component data, a watermark setting mode, a header setting mode for a source data packet and a modification data packet, and identification information respectively distributed for the source data packet and the modification data packet, wherein the identification information corresponds to the header setting modes one to one;
the cloud server determines whether transmission is needed according to the permission transmission certificate of the component data, if so, intercepts the data packet according to the interception rule of the component data, and then adds the watermark to the intercepted data packet according to the watermark setting mode to obtain the component data; the component data is the component data of a source data packet and/or a modification data packet;
the cloud server sets a header for the component data according to the setting mode of the header, the source data packet and the identification information of the modified data packet to obtain a component data header; then transmitting the component data including the header to a user server;
after receiving the component data including the header, the user server stores the component data in a temporary buffer area, and then forwards the component data including the header to a central server;
after receiving the component data comprising the header, the central server acquires a permission transmission certificate of the component data from the header, and determines an interception rule, a watermark setting mode, a header setting mode of a source packet and a modification packet of the component data and identification information respectively distributed for the source packet and the modification packet according to the certificate; then, regenerating a header and component data according to the information and the full data received from the cloud server, comparing the newly generated component data and the header with the component data and the header from the user server respectively, and sending response feedback to the user server to inform the user server of the correctness of the data transmitted by the user server when the newly generated component data and the header are consistent;
after receiving the response feedback of the central server, the user server determines the correctness of the component data, then determines the type of the component data comprising the header, and respectively stores the component data into corresponding user storage areas through category matching; the user storage area only has read-only authority and cannot be changed and forwarded.
The management personnel can acquire the full data from the central server, determine the video files therein and the detection time points;
then obtaining full-screen temperature data of the time point;
calculating a temperature result of an object in a temperature measuring area;
displaying the temperature measurement area and the temperature measurement result on the video;
when determining that the abnormality exists according to the temperature measurement result, the method further comprises the following steps: acquiring historical temperature information of an object, and constructing a historical temperature curve of the object according to the historical temperature information of the object;
and displaying the historical temperature curve at a designated position of a display.
When the temperature detection early warning system records the infrared thermal imaging picture, the invention synchronously stores the image picture, all full-screen temperature data and temperature measurement rule information in the recording time period. When the infrared video file is opened by the offline temperature analysis software, determining whether full-screen temperature data and a temperature measuring area exist or not and opening the full-screen temperature data and the temperature measuring area; when the infrared video file is played, the full-screen temperature data and the current data of the temperature measurement rule are positioned through the currently played time point, and the current temperature result of the temperature measurement rule is calculated and displayed on the played video picture through the real-time analysis of the recorded full-screen temperature data. The invention also relates to a remote data transmission process, namely, transmitting the full data to the central server for the processing of the supervisory personnel, transmitting the component data to the user server for the checking of the appointed user, and determining the accuracy of the data through the interaction of the central server and the user server; through setting the storage area and the storage data in the user server, the safety of the data is ensured, and the data is effectively prevented from being tampered.
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic views illustrating only the basic structure of the present invention in a schematic manner, and thus show only the constitution related to the present invention.
When the temperature detection early warning system records the infrared thermal imaging picture, the invention synchronously stores the image picture, all full-screen temperature data and temperature measurement rule information in the recording time period. When the infrared video file is opened by the offline temperature analysis software, determining whether full-screen temperature data and a temperature measuring area exist or not and opening the full-screen temperature data and the temperature measuring area; when the infrared video file is played, the full-screen temperature data and the current data of the temperature measurement rule are positioned through the currently played time point, and the current temperature result of the temperature measurement rule is calculated and displayed on the played video picture through the real-time analysis of the recorded full-screen temperature data. After the user edits the temperature measurement rule, the offline temperature analysis software calculates the temperature result through the edited temperature measurement rule and displays the temperature result on a video picture. In the off-line temperature analysis software, through the temperature alarm threshold value of the temperature measurement rule, a user can automatically analyze all videos or several videos in a time period according to a certain temperature measurement rule, and the time period in which the temperature alarm occurs in the temperature measurement rule is positioned and displayed for playback, so that the temperature change conditions before, during and after the temperature fault occurs after the target equipment is quickly played back and positioned. The invention also relates to a remote data transmission process, namely, transmitting the full data to the central server for the processing of the supervisory personnel, transmitting the component data to the user server for the checking of the appointed user, and determining the accuracy of the data through the interaction of the central server and the user server; through setting the storage area and the storage data in the user server, the safety of the data is ensured, and the data is effectively prevented from being tampered.
The specific scheme is as follows: a method for processing a video file having temperature information is provided. The recording and processing of the video can be realized by a device in a local area network, or can be realized by a device in a wide area network, such as a local acquisition device, and a processing and playing device located in the local area network or the wide area network. The method comprises the following steps: as shown in fig. 1, when video recording is started, it is judged whether or not it is thermal imaging; if yes, starting to save full-screen temperature measurement data and starting to save temperature measurement objects, wherein the temperature measurement objects can be one or more of temperature measurement areas, temperature measurement targets, temperature measurement rules and the like, and the steps can be implemented as follows: when the infrared thermal imaging picture is recorded, simultaneously recording picture full-screen temperature data and a current temperature measurement rule output by equipment;
packaging the infrared thermal imaging image picture, full-screen temperature data and current temperature measurement rule information into a source data packet;
reading full-screen temperature measurement data and temperature measurement rule information before starting playback of the video recording file;
when playing a video, as shown in fig. 2, judging whether the video is a thermal imaging video, if so, judging whether full-screen temperature data exists, if so, obtaining full-screen temperature data of a picture and temperature measurement rule information, namely opening the full-screen temperature data; then judging whether temperature measurement area data exist or not, if so, opening the temperature measurement area data, and if not, reconstructing the temperature measurement area data;
and calculating the temperature measurement result of the temperature measurement rule in real time and displaying the temperature measurement result on the played video in an overlapping manner, wherein the playing flow is shown in fig. 3.
Wherein the method further comprises: temperature measurement objects can be edited in the process of playing the video; opening or reconstructing temperature measurement area data according to whether the temperature measurement area data exist or not; and positioning the time period of the alarm video through the alarm temperature of the temperature measurement object, and storing the edited modified data packet.
When the infrared thermal imaging picture is recorded, full-screen temperature data and the current temperature measurement rule of the picture output by equipment are recorded, and the infrared thermal imaging picture, the full-screen temperature data and the current temperature measurement rule information are packed into a packet; reading full-screen temperature measurement data and temperature measurement rule information before starting playback of the video recording file, obtaining picture full-screen temperature data and temperature measurement rule information of the time period when playing a video, calculating a temperature measurement result of the temperature measurement rule in real time and displaying the temperature measurement result on the played video in an overlapping manner; temperature measuring objects can be edited (added, modified and deleted) in the process of playing the video; and positioning the time period from the alarm temperature of the temperature measurement object to the alarm video.
When the infrared thermal imaging is recorded, full-screen temperature data and the current temperature measurement object are simultaneously saved. And reading the full-screen temperature measurement data and the current temperature measurement object while playing the video file. The infrared thermal imaging image picture, the full-screen temperature data and the current temperature measurement rule information are packaged into the source data packet, so that the monitored full data can be obtained, the display content can be set pertinently according to the requirements of a user by allowing editing of the temperature measurement object, the alarm information and the corresponding time point can be obtained in time, and the accuracy of fault positioning is improved.
Then uploading the source data packet and the modification data packet to a designated area of a cloud server; the designated area comprises a first memory and a second memory, wherein the first memory is used for realizing the storage of source data packets, and the second memory is used for realizing the storage of modification data packets; the data in the memory is not allowed to be edited and can only be read, so that the stored data is guaranteed to be tamper-proof; in order to improve the utilization rate of the storage space, after the data is transmitted, after response feedback sent by a server and confirming the receipt of the data is received, and after a preset time interval, deletion operation is executed to release network resources, so that the effective cyclic utilization of the storage resources is realized.
The cloud server sends the full data of the source data packet and the modified data packet to the central server; the full data comprises all information of a source data packet and a modification data packet;
the cloud server sends the source data packet and/or the component data of the modified data packet to the user server; the component data includes partial information of the source packet and/or the modified packet and preset watermark information.
Before transmitting the data packets, the cloud server further acquires header setting modes of source data packets and modified data packets and identification information respectively allocated to the source data packets and the modified data packets from the central server, wherein the identification information corresponds to the header setting modes one to one;
the cloud server sets headers for the source data packet and the modification data packet respectively according to the setting mode of the headers and the identification information of the source data packet and the modification data packet so as to obtain a header of the source data packet and a header of the modification data packet; wherein, the setting mode of the source data packet and the header of the modified data packet are different;
the cloud server respectively adds the header of the source data packet and the header of the modification data packet to the source data packet and the modification data packet to obtain an encapsulated source data packet and an encapsulated modification data packet, and then uploads the encapsulated source data packet and the encapsulated modification data packet to the central server;
after receiving the encapsulated source data packet and the encapsulated modified data packet, the central server determines identification information in the data packet, determines a setting mode of a header according to the identification information, then respectively calculates the headers of the source data packet and the modified data packet, and respectively compares the headers with the headers in the encapsulated source data packet and the encapsulated modified data packet;
if the data packets are the same, the data packets are in accordance with the requirements; deleting headers in the encapsulated source data packet and the encapsulated modified data packet by the central server to obtain a source data packet and a modified data packet; if the difference is not the same, feeding back abnormal transmission information through a safety channel between the central server and the cloud server to indicate the transmission abnormality; the safety channel is different from the data transmission channel, and the abnormal transmission information only comprises a header of a data packet; when the cloud server receives the header through the secure channel, the cloud server can know that the central server receives the abnormal data; the cloud server then determines whether the data is forged or the data is wrong in transmission according to the header data, and if the data is wrong in transmission, the cloud server acquires the information related to the header again through interaction with the central server and then performs retransmission.
In the transmission process, according to the indication of the central server, a header is added at the cloud server, and the header is deleted at the central server, wherein the header is mainly used for identification and data verification, and the source data packet and the modified data packet in the process can be processed without any treatment and only need to be packaged externally, so that the operation complexity is reduced; the data transmission efficiency is improved. Meanwhile, abnormal disguised messages can be found in time in the detection process; the safety of interaction between the servers is improved.
Before transmitting the data packet, the cloud server further comprises an interception rule for acquiring the component data from the central server, a permission transmission certificate for the component data, a watermark setting mode, a header setting mode for a source data packet and a modification data packet, and identification information respectively distributed for the source data packet and the modification data packet, wherein the identification information corresponds to the header setting modes one to one; the transmission certificate has a temporary corresponding relation with an interception rule, a watermark setting mode, a header setting mode of a source data packet and a modification data packet and identification information respectively distributed to the source data packet and the modification data packet;
the cloud server determines whether transmission is needed according to the permission transmission certificate of the component data, if so, intercepts the data packet according to the interception rule of the component data, and then adds the watermark to the intercepted data packet according to the watermark setting mode to obtain the component data; the component data is the component data of a source data packet and/or a modification data packet; wherein the watermark comprises a visible watermark and an invisible watermark; the invisible watermark comprises identification information of a cloud server, a central server and a user server, an identification corresponding to a watermark device mode, and identification information respectively distributed by a source data packet and a modified data packet; because the watermark has a plurality of setting modes, the central server can set identification information corresponding to each watermark setting mode.
The cloud server sets a header for the component data according to the setting mode of the header, the source data packet and the identification information of the modified data packet to obtain a component data header; then transmitting the component data including the header to a user server; the component data header may further include a type identifier and a region identifier of the object; the type identification and the area identification of the object are uniformly set by the central server and are issued to the cloud server and the user server.
After receiving the component data including the header, the user server stores the component data in a temporary buffer area, and then forwards the component data including the header to a central server;
after receiving the component data comprising the header, the central server acquires a permission transmission certificate of the component data from the header, and determines an interception rule, a watermark setting mode, a header setting mode of a source packet and a modification packet of the component data and identification information respectively distributed for the source packet and the modification packet according to the certificate; then, regenerating a header and component data according to the determined interception rule of the component data, the watermark setting mode, the header setting mode of the source data packet and the modifying data packet, identification information respectively distributed to the source data packet and the modifying data packet, and the full-amount data received from the cloud server, comparing the newly generated component data and the header with the component data and the header from the user server respectively, judging the consistency of the server identification and the data identification in the watermark again when the component data and the header are consistent, and if the component data and the header are consistent, sending response feedback to the user server to inform the correctness of the data transmitted by the user server;
after receiving the response feedback of the central server, the user server determines the correctness of the component data, then determines the type of the component data comprising the header, and respectively stores the component data into corresponding user storage areas through category matching; the user storage area only has read-only authority and cannot be changed and forwarded. When a user registers in a user server, the user is required to select information such as the type of an object concerned by the user, the area (the area/physical position where the object is located) and the like, then the user server allocates a storage area for the registered user, and the storage area is matched according to the type of the object concerned by the registered user and the area label, so that after data sent by the cloud server is received, matching is carried out according to the object and/or the area label. The data processing efficiency is improved. In order to improve the matching efficiency of the data, the cloud server may further use the object class identifier and/or the area identifier as a visible watermark to facilitate the identification of the identification information.
Before the user server stores the data in the user storage area, adding a time stamp in a visible watermark mode; and the visible watermark added by the cloud server is superposed and displayed. Therefore, the uniqueness of the data can be ensured, and the safety of the data is improved.
The management personnel can acquire the full data from the central server, and the local user can acquire the full data from the temperature detection early warning system; determining a video file therein and a detection time point; meanwhile, a temperature measuring area can be selected or added and the alarm temperature can be set;
then obtaining full-screen temperature data of the time point;
calculating a temperature result of an object in a temperature measuring area;
displaying the temperature measurement area and the temperature measurement result on the video;
when the abnormal condition exists according to the temperature measurement result, the method further comprises the following steps: acquiring historical temperature information of an object, and constructing a historical temperature curve of the object according to the historical temperature information of the object;
and displaying the historical temperature curve at a designated position of a display.
By displaying the historical temperature change curve when the abnormity is obtained, the abnormity condition of the object can be analyzed more visually, and the data processing efficiency is improved.
The alarm condition may be set according to an operation defined by a user, so that the required alarm information may be acquired according to the set condition, as shown in fig. 4. The method comprises the following specific steps: a user selects or adds a temperature measuring area and sets alarm temperature, then selects a time period or video and reads all full-screen temperature data; and traversing all full-screen temperature data according to the temperature measuring area and the alarm temperature, recording the alarm time, and displaying the alarm time. The user can set alarm conditions according to actual requirements, select a target time period/video, and can accurately acquire required alarm information according to the set conditions to realize accurate positioning of alarm time.
When the temperature detection early warning system records the infrared thermal imaging picture, the invention synchronously stores the image picture, all full-screen temperature data and temperature measurement rule information in the recording time period. When the infrared video file is opened by the offline temperature analysis software, determining whether full-screen temperature data and a temperature measuring area exist or not and opening the full-screen temperature data and the temperature measuring area; when the infrared video file is played, the full-screen temperature data and the current data of the temperature measurement rule are positioned through the currently played time point, and the current temperature result of the temperature measurement rule is calculated and displayed on the played video picture through the real-time analysis of the recorded full-screen temperature data. The invention also relates to a remote data transmission process, namely, transmitting the full data to the central server for the processing of the supervisory personnel, transmitting the component data to the user server for the checking of the appointed user, and determining the accuracy of the data through the interaction of the central server and the user server; through setting the storage area and the storage data in the user server, the safety of the data is ensured, and the data is effectively prevented from being tampered.
In light of the foregoing description of the preferred embodiment of the present invention, many modifications and variations will be apparent to those skilled in the art without departing from the spirit and scope of the invention. The technical scope of the present invention is not limited to the content of the specification, and must be determined according to the scope of the claims.