Disclosure of Invention
In order to solve the problems in the prior art, a picture processing method with temperature information is provided.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a method of picture processing with temperature information, the method comprising:
when the picture is captured, the temperatures corresponding to all pixel points of the full screen are saved;
synthesizing a first picture with temperature information according to the captured picture and the temperatures of all pixel points;
storing the first picture in a hard disk;
acquiring a temperature area to be measured;
editing the first picture according to the area to be measured to generate a second picture;
and covering the second picture with the first picture, or storing the second picture in a mode of copying the first picture.
Uploading the stored pictures to a cloud storage pool, wherein the pictures in the cloud storage pool are not allowed to be edited;
after the cloud storage pool obtains the picture, obtaining the highest temperature value T in the picture and the personnel density P of the environment where the picture is located; selecting an uploading strategy according to the highest temperature value T and the personnel density P, and uploading the pictures to the data center according to the uploading strategy;
the data center adopts a hierarchical structure and sequentially comprises a first-level data center, a second-level data center, a third-level data center and a fourth-level data center from top to bottom, wherein the upper-level data center can manage the lower-level data center, and the lower-level data center uploads picture data to the upper-level data center according to a specific strategy after receiving the picture data; various communication modes are supported between each level of data center and the cloud storage pool;
the selecting of the uploading strategy according to the maximum temperature value T and the personnel density P specifically comprises the following steps:
when in use
Then, a communication mode with the highest stability between the cloud storage pool and each level of data center is determined, and then the picture data are simultaneously sent to each data center based on the determined communication mode, wherein the communication modes between each data center and the cloud storage pool can be different;
when in use
,
When the weight W of the picture is calculated, when
Determining a communication mode between the cloud storage pool and the primary data center, and selecting the communication mode with the highest security to upload picture data; determining communication modes between the cloud storage pool and second, third and fourth level data centers, and selecting the communication mode with the highest stability to upload picture data; when in use
Determining a communication mode between the cloud storage pool and the primary and secondary data centers, and selecting the communication mode with the highest security to upload picture data; determining communication modes between the cloud storage pool and the three-level and four-level data centers, and selecting stabilityUploading the picture data in the communication mode with the highest performance; wherein the content of the first and second substances,
is a preset weight threshold;
wherein the content of the first and second substances,
(ii) a a. b is a constant coefficient;
when in use
,
Then, determining a communication mode between the cloud storage pool and the second-level data center, selecting a communication mode with the highest security to upload picture data, determining a communication mode between the cloud storage pool and the third-level and fourth-level data centers, and selecting a communication mode with the highest stability to upload the picture data; the first-level data center respectively acquires picture data from the second-level data center, the third-level data center and the fourth-level data center, and checks the picture according to a header file of the picture data;
when in use
,
Determining a communication mode between the cloud storage pool and the third-level data center, selecting a communication mode with the highest security to upload picture data, determining a communication mode between the cloud storage pool and the fourth-level data center, and selecting a communication mode with the highest stability to upload the picture data; the second-level data center respectively acquires picture data from the third-level data center and the fourth-level data center, and checks the picture according to a header file of the picture data; the first-level data center respectively acquires picture data from the second-level data center, the third-level data center and the fourth-level data center, and checks the picture according to a header file of the picture data;
when in use
,
When the current is over; determining a communication mode between the cloud storage pool and the four-level data center, and selecting the communication mode with the highest security to upload picture data; then, the four-level data center respectively uploads the picture data to the first-level data center, the second-level data center and the third-level data center in sequence.
Wherein the content of the first and second substances,
is to determine a high level threshold for the area indicated by the picture from historical temperature data,
determining a normal temperature value of a region indicated by the picture according to historical temperature data;
an average density value determined according to historical density data of the area indicated by the picture;
determining the highest temperature value of the area indicated by the picture according to historical temperature data;
determining the highest density value of the area indicated by the picture according to historical temperature data; the stability of the communication mode is determined according to the packet loss rate and the signal strength; the safety of the communication mode is determined by the packet loss rate and the fault tolerance rate.
The cloud storage pool further comprises a cache storage pool, a transferred storage pool and an unvarnished storage pool; the cache storage pool is used for storing pictures from the hard disk, the pictures are not allowed to be modified, and the uploaded storage pool is used for storing the uploaded picture data, wherein the picture data in the uploaded storage pool comprises a first head file with a communication mode identification, a picture identification and a sent time stamp; the unvarnished storage pool comprises the picture data which has determined the transmission mode and waits for transmission; the picture data in the unvarnished storage pool comprises a second header file with a communication mode identifier and a picture identifier;
periodically detecting the storage time length of the pictures in the cache storage pool, and automatically deleting the pictures when the storage time length exceeds the first time length; the uploaded picture data are stored in the uploaded storage pool, feedback data from each level of data center are detected in real time, and when response information confirming receipt is received, the corresponding picture data are deleted; wherein the response message includes the first header file; and when the transmitted storage pool determines that the picture data before the time indicated by the time stamp is stored according to the time stamp in the first head file, re-determining the transmission mode and retransmitting the picture data.
Wherein when
,
Then, determining the information of the person appearing in the picture, specifically comprising: determining the number of persons in the picture and determining the current temperature of each person in the picture
Selecting
The method comprises the steps that (1) people are used as target people, characteristic information of the target people is obtained, the number M of the target people is determined, the passing points of the target people are obtained, and the passing points with abnormity and the number N of the passing points are determined;
when the value of M x N is larger than a preset threshold value, selecting a transmission mode different from the picture data to upload the related information of the personnel according to the current transmission rate and stability of each communication mode;
wherein the personnel-related information includes: the method comprises the following steps of obtaining characteristic information of target personnel, the number M of the target personnel, the number N of abnormal passing points and abnormal passing points, and a header file of picture data.
The system comprises a three-level data center, a four-level data center, a two-level data center, a first-level data center and a second-level data center, wherein the three-level data center receives picture data from the four-level data center, the two-level data center simultaneously receives picture data from the three-level data center and the four-level data center, and the one-level data center simultaneously receives picture data from the two; after receiving the picture data, each level of data center adds a data center identifier in a header file; the first level, second level and third level data centers verify the received picture data, including: comparing and verifying the plurality of picture data according to the size of the picture, the picture identification and the time stamp in the header file; if the image data are consistent with the image data, only one image data is reserved, and identification information of each level of data center through which the image data pass is added in a header file of the image data.
The invention has the advantages that the invention provides a picture processing method with temperature information, which not only can obtain the picture captured by the early warning system, but also can obtain the temperature of all pixel points from the real-time video stream and synthesize the temperature to obtain the picture with the temperature information, and the picture can be modified based on the area to be detected through the offline picture temperature analysis software to obtain the temperature information of the required area, so that a user can obtain the temperature information of any point on the picture according to the actual requirement; meanwhile, the invention also sets an uploading strategy of the picture data, realizes the storage of the source data through the unchangeable cache storage pool, and ensures the safety, stability and reliability of the uploading of the picture data through the setting of the uploading mode; the data accuracy is improved by setting different verification modes for newly-transmitted data and re-transmitted data.
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.
As shown in fig. 1, the image processing method with temperature information provided by the present invention saves the temperatures of all pixel points of the full screen while capturing the image. The temperature information of any pixel point on the picture can be acquired through a special picture analysis tool. And realizing the off-line analysis of the temperature of any point in the picture.
A method for processing pictures with temperature information, wherein a capturing process is shown in fig. 2, the method comprises:
when the picture is captured, the temperatures corresponding to all pixel points of the full screen are saved; namely, when the temperature detection early warning system captures the picture, the temperature information of all pixel points of the full screen is simultaneously stored;
synthesizing a first picture with temperature information according to the captured picture and the temperatures of all pixel points;
storing the first picture in a hard disk;
acquiring a temperature area to be measured;
editing the first picture according to the area to be measured to generate a second picture; by adding an off-line picture temperature analysis software, the software can open a picture file with temperature and edit (add, modify and delete) a temperature measurement area on the picture to obtain temperature information of any point on the picture; meanwhile, the color palette can be modified, and the background picture can be regenerated, wherein the specific content is shown in fig. 3; the user can set different areas according to different detected targets and display temperature information in the specific areas.
Covering the second picture with the first picture, or storing the second picture in a mode of the first picture copy; the stored information includes pictures, temperature data and picture parameters.
When the temperature detection early warning system captures a picture, full-screen temperature data is captured at the same time and stored in the hard disk in a specific format, and when the picture file is browsed by a conventional picture browsing tool, only one common picture is obtained; when the special picture temperature analysis tool is opened, temperature measurement areas can be added, modified and deleted on the picture, temperature measurement parameters such as color palettes and radiances can be modified, temperature measurement operation on any point of the picture can be achieved, the original picture can be updated, and a newly edited picture can be stored.
After the picture is edited locally, the picture can be uploaded to a data center through a cloud, wherein the picture can comprise a first picture and/or a second picture.
Uploading the pictures to a cloud storage pool, wherein the pictures in the cloud storage pool are not allowed to be edited; since the storage pool disables the editing function, it has only the encapsulation and transmission functions of data, thereby securing the security of the source data.
After the cloud storage pool obtains the picture, obtaining the highest temperature value T in the picture and the personnel density P of the environment where the picture is located; selecting an uploading strategy according to the highest temperature value and the personnel density P, and uploading the picture data to a data center according to the uploading strategy, wherein the data center adopts a hierarchical structure and sequentially comprises a first-level data center, a second-level data center, a third-level data center and a fourth-level data center from top to bottom; various communication modes are supported between each level of data center and the cloud storage pool; the multiple communication modes can be various common communication modes at present, and include one or more of various long-distance communication modes such as wired communication, wireless communication, 4G, 5G, WIFI (wireless fidelity), GPRS (general packet radio service), microwave communication and satellite communication. Besides supporting various existing communication modes, a special safety channel is also built between each level of data centers for realizing specific data transmission.
When the detection is to detect the temperature of the person in the captured picture, the maximum value refers to the maximum value of the temperature of the person in the picture, and a specific detection target can be set according to actual requirements, so that the density can be changed according to the actual requirements.
The selecting of the uploading strategy according to the maximum temperature value T and the personnel density P specifically comprises the following steps:
when in use
Determining a communication mode with the highest stability between the cloud storage pool and each level of data center, and then sending the picture data to each data center simultaneously based on the determined communication mode, wherein the communication modes between each data center and the cloud storage pool can be different or the same;
in the field, high temperature may have different standards, and when the temperature is higher than a certain value, the high temperature is in a dangerous state, such as a person is in a high-burning state (greater than 38.5 (adults) or 39 (children)), or the temperature of the equipment exceeds an upper limit value, and therefore, for the temperature higher than the standard value, a high-level threshold is set to identify whether the high-risk state is in, and for the state, regardless of the density of the persons, reporting needs to be performed in a most stable manner, so as to improve the stability of data, facilitate emergency processing of the data centers at different levels for the received data, and be able to timely discover abnormal conditions of each area, and make similar emergency measures according to corresponding plans, improve the consistency of processing abnormal matters of the data centers at different levels, and improve emergency efficiency.
When in use
,
When the weight W of the picture is calculated, when
In time, the cloud storage pool and the primary data are determinedSelecting a communication mode with highest safety for uploading picture data according to a communication mode between centers; determining communication modes between the cloud storage pool and second, third and fourth level data centers, and selecting the communication mode with the highest stability to upload picture data; when in use
Determining a communication mode between the cloud storage pool and the primary and secondary data centers, and selecting the communication mode with the highest security to upload picture data; determining a communication mode between the cloud storage pool and the third-level and fourth-level data centers, and selecting the communication mode with the highest stability to upload picture data; wherein the content of the first and second substances,
is a preset weight threshold; it can be determined statistically from historical data or empirically in the art. When uploading picture data to the upper data center, the lower data center uses the redundant link to perform communication, that is, at least two communication modes are used for transmission, for example, the communication mode is determined based on the stabilization and/or the safety of the communication mode.
Wherein the content of the first and second substances,
(ii) a a. b is a constant coefficient;
when in use
,
Then, determining a communication mode between the cloud storage pool and the second-level data center, selecting a communication mode with the highest security to upload picture data, determining a communication mode between the cloud storage pool and the third-level and fourth-level data centers, and selecting a communication mode with the highest stability to upload the picture data; the first-level data center respectively obtains picture data from the second-level data center, the third-level data center and the fourth-level data center, and pictures are included according to the picture dataChecking the picture of a header file of the data;
when in use
,
Determining a communication mode between the cloud storage pool and the third-level data center, selecting a communication mode with the highest security to upload picture data, determining a communication mode between the cloud storage pool and the fourth-level data center, and selecting a communication mode with the highest stability to upload the picture data; the second-level data center respectively acquires picture data from the third-level data center and the fourth-level data center, and checks the picture according to a header file comprising the picture data; the first-level data center respectively acquires picture data from the second-level data center, the third-level data center and the fourth-level data center, and checks the picture according to a header file comprising the picture data;
when in use
,
When the current is over; determining a communication mode between the cloud storage pool and the four-level data center, and selecting the communication mode with the highest security to upload picture data; then, the four-level data center respectively uploads the picture data to the first-level data center, the second-level data center and the third-level data center in sequence.
Wherein the content of the first and second substances,
is to determine a high level threshold for the area indicated by the picture from historical temperature data,
determining a normal temperature value of a region indicated by the picture according to historical temperature data;
according to the picture instituteAn average density value determined from historical density data indicative of the region;
determining the highest temperature value of the area indicated by the picture according to historical temperature data;
determining the highest density value of the area indicated by the picture according to historical temperature data; wherein, the stability is determined according to the packet loss rate and the signal strength; wherein the security is determined by the packet loss rate and the fault tolerance rate.
According to the invention, the uploading process of the picture data is set through the mode, and the communication mode is selected based on different network performances in the uploading process, so that not only are various transmission resources supported by the equipment effectively utilized, but also the safety and stability of data transmission are ensured; the method and the device can be better suitable for processing various picture data, and the processing efficiency of the network is improved.
The cloud storage pool further comprises a cache storage pool, a transferred storage pool and an unvarnished storage pool; the cache storage pool is used for storing pictures from the hard disk, the pictures are not allowed to be modified, and the uploaded storage pool is used for storing the uploaded picture data, wherein the picture data in the uploaded storage pool comprises a first head file with a communication mode identification, a picture identification and a sent time stamp; the unvarnished storage pool comprises the picture data which has determined the transmission mode and waits for transmission; the picture data in the unvarnished storage pool comprises a second header file with a communication mode identifier and a picture identifier;
periodically detecting the storage time length of data in the cache storage pool, and automatically deleting the data when the storage time length exceeds the first time length; detecting feedback data from each level of data center in real time in the transmitted storage pool, and deleting corresponding picture data when receiving response information confirming receipt; wherein the response message includes the first header file; and when the transmitted storage pool determines that the picture data before the time indicated by the time stamp is stored according to the time stamp in the first head file, re-determining the transmission mode and retransmitting the picture data.
In the process, the data center only feeds back and confirms that the response information is received, and does not feed back the data which is not received, and the cloud storage pool can determine the data which fails to be transmitted according to the timestamp in the response information and then retransmit the data which fails to be transmitted; therefore, the picture data stored in the transmitted storage pool comprises the transmission mode used before, so that the retransmission is carried out by using the transmission mode which is different from the previous transmission mode and receives the response information, thereby improving the reliability of the retransmission. Preferably, the cloud storage may further include a retransmission storage pool; the retransmission data may also be dumped to an untransmitted memory pool for transmission.
Wherein when
,
Then, determining the information of the person appearing in the picture, specifically comprising: determining the number of persons in the picture and determining the current temperature of each person in the picture
Selecting
When the value of M x N is larger than a preset threshold value, a transmission mode different from picture data is selected according to the current transmission rate and stability of each communication mode to upload the related information of the personnel, and the related information of the personnel is transmitted to each data center, wherein the related information of the personnel comprises: the method comprises the following steps of obtaining characteristic information of target personnel, the number M of the target personnel, the number N of abnormal passing points and abnormal passing points, and a header file of picture data. Wherein the characteristic information of the target person may be biological characteristic information,Terminal identification, identity information, etc.
The transmission of the personnel related information uses a transmission mode different from that of the picture data and simultaneously transmits the personnel related information to the data centers at all levels, so that the missing report and the wrong report of the data can be prevented, the safety and the accuracy of the data centers at all levels are improved, the data centers at all levels can assign proper measures conveniently, and the inconsistency of the upper and lower data centers for exception handling is reduced.
When uploading the personnel related information to the upper data center, the lower data center uses the redundant link to perform communication, that is, at least uses two communication modes to perform transmission, for example, at least one communication mode is determined based on the stabilization and/or safety of the communication modes, and a special safety channel between the data centers is used to perform transmission. Therefore, the safety and timeliness of the information transmission are improved.
The system comprises a three-level data center, a four-level data center, a two-level data center, a first-level data center and a second-level data center, wherein the three-level data center receives picture data from the four-level data center, the two-level data center simultaneously receives picture data from the three-level data center and the four-level data center, and the one-level data center simultaneously receives picture data from the two; after receiving the picture data, each level of data center adds a data center identifier in a header file; the first level, second level and third level data centers verify the received picture data, including: comparing and verifying the plurality of picture data according to the size of the picture, the picture identification and the time stamp in the header file; if the image data are consistent, only one image data is reserved, and identification information of each level of data center through which the image data pass is added in a header file of the image data;
if the picture data are inconsistent, acquiring the picture data again from the buffer storage pool, wherein header files of the image data which are acquired again also comprise T, P corresponding to the picture and region information, then comparing again according to the region information, the value of T × P, the size of the picture and picture marks in the header files, determining the picture data which are consistent with the image data which are acquired again and data center marks (reliable data center marks) corresponding to the picture data which are acquired again, and then determining marks (unreliable data center marks) of data centers corresponding to the inconsistent picture data; respectively adding a reliable data center identifier and an unreliable data center identifier in a header file of the picture data; when the upper-level data center finishes the data determination, the determined image data is sent to the unreliable data center again, and the data abnormality is informed; the reliability of the data center can be used for evaluating each data center.
And for the data acquired from the cache storage pool, different indexes are adopted for comparison and verification, so that the safety of data verification is improved, and the accuracy of data of each level of data center is ensured.
Wherein when
,
When the real-time data is processed, the abnormal data can be informed through a display device independently arranged in the detected environment; when the processed data is not real-time data, the abnormal information can be informed in a short message mode and the like by acquiring the terminal information of the target person; and informing a management mechanism to which the target person belongs to check. Therefore, various exceptions can be processed in time, and potential risks are reduced.
The invention provides a picture processing method with temperature information, which can not only obtain a picture captured by an early warning system, but also obtain the temperature of all pixel points from a real-time video stream and synthesize the temperature to obtain a picture with temperature information, and can modify the picture based on a region to be detected through offline picture temperature analysis software to obtain the temperature information of a required region, so that a user can obtain the temperature information of any point on the picture according to actual needs; meanwhile, the invention also sets an uploading strategy of the picture, realizes the storage of the source data through the unchangeable cache storage pool, and ensures the safety, stability and reliability of the uploading of the picture data through the setting of the uploading mode; the data accuracy is improved by setting different verification modes for newly-transmitted data and re-transmitted data.
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.