CN117830204B - Digital system is administered to fire control potential safety hazard - Google Patents

Digital system is administered to fire control potential safety hazard Download PDF

Info

Publication number
CN117830204B
CN117830204B CN202310602083.0A CN202310602083A CN117830204B CN 117830204 B CN117830204 B CN 117830204B CN 202310602083 A CN202310602083 A CN 202310602083A CN 117830204 B CN117830204 B CN 117830204B
Authority
CN
China
Prior art keywords
hidden
region
sub
gray value
translation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310602083.0A
Other languages
Chinese (zh)
Other versions
CN117830204A (en
Inventor
柯经弟
刘辉
贾宝库
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Huashun Electronic Technology Co ltd
Original Assignee
Zhejiang Huashun Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Huashun Electronic Technology Co ltd filed Critical Zhejiang Huashun Electronic Technology Co ltd
Priority to CN202310602083.0A priority Critical patent/CN117830204B/en
Publication of CN117830204A publication Critical patent/CN117830204A/en
Application granted granted Critical
Publication of CN117830204B publication Critical patent/CN117830204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The invention relates to the technical field of fire safety hazard treatment, in particular to a digital fire safety hazard treatment system. The system comprises: and a data perception module: the method comprises the steps of acquiring images of fire-fighting equipment and corresponding shooting information, and acquiring a coding sequence; the optimal translation gray value acquisition module: the method comprises the steps of screening a region to be hidden according to gray distribution of each sub-region and sub-regions in a neighborhood of the sub-region; according to the gray difference corresponding to each gray value before and after shifting by taking each gray value as an initial shifting gray value, determining the optimal shifting gray value corresponding to each region to be hidden; a hidden information image acquisition module: the method comprises the steps of carrying out translation processing on a region to be hidden based on an optimal translation gray value and a coding sequence to obtain a hidden information image; fire safety hidden danger judging module: and the method is used for judging the potential security hazards of the fire protection based on the hidden information image. The invention can ensure that the images of the fire-fighting equipment are all used in one picture, and strengthen the treatment of the fire-fighting potential safety hazard.

Description

Digital system is administered to fire control potential safety hazard
Technical Field
The invention relates to the technical field of fire safety hazard treatment, in particular to a digital fire safety hazard treatment system.
Background
Along with the development of science and technology, digital fire safety hidden trouble management and investigation are more and more widely applied, and the specific investigation process comprises the following steps: when the hidden danger investigation starts, a peripheral inspection target is obtained according to the positioning of an inspector, multi-user simultaneous inspection operation is realized through small program code scanning, hidden danger input provides shooting evidence collection, the on-site signature of an inspected user is confirmed, then hidden danger correction documents are pushed to an inspected enterprise responsible person or a place owner through evidence collection photos, hidden danger details are checked through small programs, and hidden danger closed-loop management of on-line correction and off-line review is completed. This way of troubleshooting the hidden trouble reduces a lot of manpower and material costs.
When the digital fire-fighting hidden trouble investigation is carried out by utilizing an image form, in order to prevent illegal personnel from carrying out multi-purpose image, namely, a qualified image is checked and used for multiple times, the fire-fighting equipment conceal with hidden trouble is required to be added with watermarks for each uploaded image to ensure the disposable use of the image, most of the prior algorithms only carry out airspace addition on the image watermarks, and the watermark adding mode is extremely easy to be removed by a watermark removing related algorithm, thereby being unfavorable for the treatment of fire-fighting hidden trouble.
Disclosure of Invention
In order to solve the problem that the existing watermark adding effect is poor, so that the subsequent fire safety hidden danger treatment is problematic, the invention aims to provide a fire safety hidden danger treatment digital system, and the adopted technical scheme is as follows:
The invention provides a digital system for controlling fire safety hidden trouble, which comprises the following components:
And a data perception module: the method comprises the steps of acquiring an image of a fire-fighting equipment to be checked and corresponding shooting information, and encoding the shooting information and size information of the image to obtain a coding sequence;
The optimal translation gray value acquisition module: the method is used for determining the suitability of hidden information of each sub-region according to the gray level distribution of each sub-region in the image and the sub-region in the neighborhood of the sub-region; screening a region to be hidden based on the suitability, wherein the region formed by the region to be hidden and all the subregions in the neighborhood of the region to be hidden is used as a region to be analyzed corresponding to the region to be hidden; according to the gray difference of the areas to be analyzed, which correspond to each area to be hidden before and after translation, by taking each gray value as an initial translation gray value, calculating the translation influence degree of each area to be hidden, which corresponds to each gray value; determining an optimal translation gray value corresponding to each region to be hidden based on the translation influence degree;
A hidden information image acquisition module: the method comprises the steps of carrying out translation processing on each region to be hidden based on the optimal translation gray value and the coding sequence to obtain a hidden information image;
fire safety hidden danger judging module: and the method is used for judging the potential security hazards of the fire protection based on the hidden information image.
Preferably, the determining the suitability of the hidden information of each sub-region according to the gray distribution of each sub-region in the image and the sub-region in the neighborhood of the sub-region includes:
For any sub-region:
Counting the total number of pixel points corresponding to each gray value in all the sub-regions in the neighborhood of the sub-region, and taking the ratio of the total number to the number of pixel points corresponding to the gray value in the sub-region as the weight corresponding to the gray value; the ratio of the total number to the number of the pixel points in all the subareas in the subareas and the neighborhood thereof is recorded as a first duty ratio; and determining the suitability of the hidden information of the subarea according to the first duty ratio, the type number of the gray values of the pixel points in the subarea and the weight, wherein the type number and the weight are in positive correlation with the suitability, and the first duty ratio is in negative correlation with the suitability.
Preferably, the suitability of the hidden information of the ith sub-area is calculated by adopting the following formula:
wherein, a i is the fit degree of hidden information of the ith sub-area, M g is the number of pixels with gray values g in the ith sub-area, K is the number of sub-areas in the neighborhood of the ith sub-area, M kg is the number of pixels with gray values g in the kth sub-area in the neighborhood of the ith sub-area, N 0 is the number of pixels in the ith sub-area and all sub-areas in the neighborhood thereof, M i is the kind number of gray values of pixels in the ith sub-area, and e is a natural constant; representing the weight corresponding to the gray value g,/> Representing a first duty cycle.
Preferably, the screening the area to be hidden based on the suitability includes: and sequencing the suitability according to a preset sequence to obtain a suitability sequence, and taking subregions corresponding to a preset number of elements in the suitability sequence as regions to be hidden.
Preferably, the calculating, according to the gray scale difference of the to-be-analyzed region corresponding to each to-be-hidden region before and after the translation with each gray scale value as the initial translation gray scale value, the corresponding translation influence degree of each to-be-hidden region under each gray scale value includes:
For any region to be hidden:
The information entropy of the to-be-analyzed area corresponding to the to-be-hidden area before the translation of the gray value is recorded as a first information entropy, and the information entropy of the to-be-analyzed area corresponding to the to-be-hidden area after the translation is carried out by taking each gray value as an initial translation gray value is recorded as a second information entropy; and taking the difference between the first information entropy and the second information entropy as the translation influence degree corresponding to the region to be hidden under the corresponding gray value.
Preferably, the determining, based on the translation influence degree, an optimal translation gray value corresponding to each region to be hidden includes:
for any region to be hidden: and taking the gray value corresponding to the minimum translation influence degree as the optimal translation gray value corresponding to the region to be hidden.
Preferably, the performing translation processing on each region to be hidden based on the optimal translation gray value and the coding sequence to obtain a hidden information image includes:
And distributing the characters in the coding sequence to the areas to be hidden according to a preset rule, and respectively carrying out gray histogram translation processing on each area to be hidden based on the optimal translation gray value corresponding to each area to be hidden and the corresponding characters to obtain a hidden information image.
Preferably, the encoding the shooting information and the size information of the image to obtain the encoding sequence includes:
and performing field splicing on the shooting information and the size information of the image to obtain a corresponding character string, and obtaining a coding sequence based on the character string.
The invention has at least the following beneficial effects:
According to the method, firstly, the text information to be hidden is encoded to obtain a coding sequence, then, according to the gray distribution condition of each sub-region in the image of the fire-fighting equipment to be checked and the sub-region in the neighborhood of the sub-region, the suitability of the hidden information of each sub-region is analyzed, if the gray level difference of each sub-region pixel point is analyzed after translation processing is carried out on the gray level value of each sub-region pixel point, the image structure of the sub-region and the neighborhood of the sub-region is destroyed, the uniformity of the sub-region and the whole image is lost, so that the sub-region is more obvious in the whole image, the safety of the hidden information of the sub-region is indicated, and the sub-region is unsuitable as the sub-region of the hidden information. Compared with the existing space domain watermark adding mode, the method provided by the invention has the advantages that the added information of the space domain watermark is hidden in the form of translating the gray value, so that the watermark with hidden information is kept even if the space domain watermark is removed, the situation that one image is multipurpose due to watermark loss is avoided, one image of a fire-fighting equipment is ensured, and the treatment of the fire-fighting safety hidden trouble can be enhanced.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions and advantages of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a system block diagram of a digital fire safety hazard management system according to an embodiment of the present invention.
Detailed Description
In order to further describe the technical means and effects adopted by the invention to achieve the preset aim, the invention provides a digital system for controlling fire safety hazards according to the invention, which is described in detail below with reference to the accompanying drawings and the preferred embodiment.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The invention provides a specific scheme of a digital fire safety hazard management system, which is specifically described below with reference to the accompanying drawings.
An embodiment of a digital fire safety hazard management system:
The specific scene aimed at by this embodiment is: the specific investigation process of the digital fire safety hidden trouble treatment is as follows: when the hidden danger investigation starts, a peripheral inspection target is obtained according to the positioning of an inspector, multi-user simultaneous inspection operation is realized through small program code scanning, hidden danger input provides shooting evidence collection, the on-site signature of an inspected user is confirmed, then hidden danger correction documents are pushed to an inspected enterprise responsible person or a place owner through evidence collection photos, hidden danger details are checked through small programs, and hidden danger closed-loop management of on-line correction and off-line review is completed. However, when the fire-fighting potential safety hazard management digital system is utilized to verify the information of the fire-fighting equipment, illegal personnel can autonomously change the watermark to replace the information by utilizing the qualified image information in order to not report or hide the real image data of the fire-fighting equipment with the hidden danger, so that the embodiment ensures one image by adding the hidden watermark and the airspace watermark to the fire-fighting potential safety hazard management digital system, and the fire-fighting potential safety hazard investigation or management by the fire-fighting potential safety hazard management digital system is safer and more accurate.
The embodiment provides a fire-fighting potential safety hazard management digital system, as shown in fig. 1, which comprises a data sensing module, an optimal translation gray value acquisition module, a hidden information image acquisition module and a fire-fighting potential safety hazard judgment module, and is respectively described below.
I, data perception module
The data sensing module of the embodiment is used for acquiring an image of the fire-fighting equipment to be checked and corresponding shooting information, and encoding the shooting information and the size information of the image to obtain a coding sequence.
The main functions of the data perception module are to collect images of the fire-fighting equipment to be inspected and corresponding shooting information, firstly shooting personnel shoot the fire-fighting equipment to be inspected by using a mobile phone or a camera to obtain the images of the fire-fighting equipment to be inspected, and then collecting information of the shooting personnel, wherein the shooting information comprises time information, position information, personal information and the like of the shooting personnel when the shooting personnel shoots the corresponding images, and the position information comprises longitude and latitude.
The data perception module acquires the image of the fire-fighting equipment to be checked and the corresponding shooting information, then adds hidden watermarks based on the image information and the shooting information, generates hidden character string information on the basis, divides the whole image into areas, and hides each binary character in different subareas by using a histogram translation technology, so that one image of the fire-fighting equipment image is used.
II, optimal translation gray value acquisition module
The optimal translation gray value obtaining module of the embodiment is used for determining the suitability of hidden information of each sub-region according to gray distribution of each sub-region and sub-regions in the neighborhood of the sub-region in the image; screening a region to be hidden based on the suitability, wherein the region formed by the region to be hidden and all the subregions in the neighborhood of the region to be hidden is used as a region to be analyzed corresponding to the region to be hidden; according to the gray difference of the areas to be analyzed, which correspond to each area to be hidden before and after translation, by taking each gray value as an initial translation gray value, calculating the translation influence degree of each area to be hidden, which corresponds to each gray value; and determining an optimal translation gray value corresponding to each area to be hidden based on the translation influence degree.
In consideration of the fact that the conventional visual watermarking technology is easily removed by a watermarking algorithm, and then the image of the fire-fighting equipment to be checked, with the watermark removed, is utilized to carry out one-image multi-purpose, so that the embodiment utilizes information corresponding to the image collected by the data sensing module and shooting information to carry out histogram translation hidden watermark encryption, but the conventional histogram translation hidden watermark encryption can only hide less information and cannot carry out information hiding with larger data volume, the embodiment screens the area capable of hiding information by dividing the whole image, calculates gray values of gray histogram translation of the selected area, and then utilizes the gray histogram translation technology to carry out information hiding to achieve the purpose of information encryption.
Because the size information and the shooting information of the image are data in different formats, when the hidden watermark is embedded by using the gray histogram, the hidden watermark cannot be normally embedded because the formats of the information are not uniform, so that the hidden watermark needs to be encoded to obtain information with uniform formats. Before unified coding, firstly performing field splicing on shooting information and size information of an image, wherein the field splicing sequence is as follows: longitude, latitude, shooting time, picture width and picture height, wherein the shooting time is written in terms of time of year, month, day, minute and second, the units of the picture width and the picture height are pixel values, corresponding character strings are obtained in a field splicing mode, signature name throttling is generated on the character strings by adopting an SHA256withRSA signature algorithm, and a Base64 algorithm is used for encoding the signature byte stream to obtain a coding sequence. The purpose of adding the image size information is to prevent illegal personnel from damaging the original watermark of the image by adopting an image clipping mode, the purpose of signing by using the SHA256withRSA signature algorithm is to ensure that the information to be hidden is unique and safer, and the byte stream corresponding to the signature is greatly changed even if the original character string is changed by the signature produced by the SHA256withRSA signature algorithm, so that the information to be hidden is signed by using the signature. Up to this point, a coding sequence consisting of 256-bit binary numbers is obtained, i.e. a binary string to be hidden of length 256 bits is obtained.
The embodiment has obtained the code sequence formed by 256 bits binary numbers, then the embodiment carries out the regional processing to the image of the fire-fighting equipment to be checked to obtain a plurality of subareas, then screens all subareas, carries out the histogram extraction to the screened subareas, selects the proper gray value and utilizes the gray histogram translation technology to hide the 256 bits character string.
Specifically, firstly, the image of the fire-fighting equipment to be checked is subjected to regional processing, the size of each sub-region is b×b, a plurality of sub-regions are obtained, namely, the image of the fire-fighting equipment to be checked is divided into a plurality of sub-regions with equal sizes, and the number of pixels in the image of the fire-fighting equipment to be checked is more, so that the number of sub-regions is far greater than 256, the information hiding of enough sub-regions is ensured, the value of b is set to be 25 in the embodiment, and in the specific application, an implementer can set the value of b according to specific conditions.
In this embodiment, reversible information hiding is performed by using a translation technique of a gray histogram, and when information hiding is performed by using the gray histogram translation technique, a certain specific gray value and all gray values after the certain specific gray value need to be translated, and an image has a relatively strict composition structure. Based on this, for the i-th sub-region: counting the total number of pixel points corresponding to each gray value in all the sub-areas in the neighborhood of the ith sub-area, taking the ratio of the total number to the number of pixel points corresponding to the gray value in the ith sub-area as the weight corresponding to the gray value, recording the ratio of the total number to the number of pixel points in the ith sub-area and all the sub-areas in the neighborhood thereof as a first duty ratio, and calculating the suitability of hidden information of the ith sub-area according to the first duty ratio, the type number and the weight of the gray value of the pixel point in the ith sub-area; the specific calculation formula of the fit degree of the hidden information of the ith sub-area is as follows:
Wherein a i is the suitability of the hidden information of the ith sub-area, M g is the number of pixels with gray values g in the ith sub-area, K is the number of sub-areas in the neighborhood of the ith sub-area, M kg is the number of pixels with gray values g in the kth sub-area in the neighborhood of the ith sub-area, N 0 is the number of pixels in the ith sub-area and all sub-areas in the neighborhood thereof, M i is the number of classes of gray values of pixels in the ith sub-area, and e is a natural constant.
In this embodiment, the preset neighborhood is eight neighborhoods, so the value of K is 8, and in a specific application, an implementer can set according to a specific situation.Representing the total number of pixel points corresponding to the gray value g in all the sub-areas in the neighborhood of the ith sub-area, namely the total number of pixel points corresponding to the gray value g in eight sub-areas around the ith sub-area; Representing the weight corresponding to the gray value g; /(I) Is a first duty cycle; g.epsilon.0,255.
In the embodiment, the ratio of the total number of the pixel points corresponding to each gray value in all the sub-areas in the neighborhood of the ith sub-area to the number of the pixel points corresponding to the corresponding gray value in the ith sub-area is used as the weight; if the number of the pixel points with the gray value g of all the sub-areas in the neighborhood of the ith sub-area is larger, and the number of the pixel points with the gray value g in the ith sub-area is smaller, the gray value g is used as the gray value of the gray histogram translation of the ith sub-area, and the smaller the difference between the gray value g and the sub-areas in the neighborhood is, namely the larger the corresponding weight is. If the ratio of the number of the pixel points with the gray value g in the sub-area in the neighborhood of the ith sub-area to the total number of the pixel points in the ith sub-area and all the sub-areas in the neighborhood of the ith sub-area is smaller, the smaller the difference between the ith sub-area and the sub-area in the neighborhood is, namely the smaller the corresponding first duty ratio is, after the translation processing is carried out by taking the gray value g as the gray value of the translation of the gray histogram of the ith sub-area. The smaller the number of kinds of gray values of pixel points in the ith sub-region, the more single the information of the sub-region is, the larger the change of the sub-region after gray histogram translation is carried out, and the larger the visual difference is presented. When the number of kinds of gray values of pixel points in the ith sub-area is smaller, the weight corresponding to the gray values is smaller, and the sum of the first duty ratio is larger, the difference between the sub-area and the sub-area in the adjacent area is larger after the gray histogram is translated, the ith sub-area is more unsuitable as an area for hiding information, namely the corresponding fitting degree is smaller; when the number of kinds of gray values of pixel points in the ith sub-area is larger, the weight corresponding to the gray values is larger, and the sum of the first duty ratios is smaller, the difference between the sub-area and the sub-area in the adjacent area is smaller after the gray histogram is translated, and the ith sub-area is more suitable as an area for hiding information, namely the corresponding suitability is larger.
By adopting the method, the suitability of the hidden information of each sub-region can be obtained, namely, the suitability of the hidden information of each sub-region is evaluated based on the gray level distribution of each sub-region and the sub-region in the neighborhood of the sub-region, and then the region to be hidden is screened based on the suitability.
Then sequencing the suitability according to a preset sequence to obtain a suitability sequence, and taking sub-regions corresponding to a preset number of elements in the suitability sequence as regions to be hidden based on the preset sequence; the larger the suitability of the hidden information is, the more suitable the corresponding subareas are for the hidden information, so that a preset number of subareas with large suitability are required to be selected as the subareas of the hidden information, in this embodiment, the suitability of all subareas of the hidden information is ordered in the order from large to small, a suitability sequence is obtained, the subareas corresponding to the former preset number of suitability in the suitability sequence are used as the areas to be hidden, the preset number in this embodiment is 256, therefore, the subareas corresponding to the former 256 suitability in the suitability sequence are used as the areas to be hidden, that is, 256 areas to be hidden are screened out, in specific application, an implementer can set the preset number according to specific situations, and also order the suitability of all subareas of the hidden information in the order from small to large, a suitability sequence is obtained, and the subareas corresponding to the last preset number of suitability in the suitability sequence are used as the areas to be hidden.
Next, in this embodiment, each region to be hidden is analyzed, and based on the gray level difference of each region to be hidden before and after the gray level histogram translation process, the optimal translation gray level value of each region to be hidden is determined. In this embodiment, the j-th area to be hidden is taken as an example, and other areas to be hidden can be processed by using the method provided in this embodiment.
For the j-th area to be hidden:
Considering that after the gray histogram is translated in the region to be hidden, the information can be better hidden only if the change of the gray value of the whole image is not obvious, so that the embodiment needs to evaluate the information change degree of the j-th region to be hidden and the subregions in the surrounding vicinity when the j-th region to be hidden is translated in the gray value k as the gray value of the gray histogram, if the gray difference of the j-th region to be hidden and the subregions in the surrounding vicinity is larger after the gray histogram is translated in the gray value k, the information change of the region to be hidden and the subregions in the surrounding vicinity is more, and the j-th region to be hidden cannot achieve a better effect when the gray histogram is translated in the j-th region to be hidden in the gray value k; if the gray level difference between the region to be hidden and the sub-region in the adjacent region is smaller after the j-th region to be hidden carries out gray level histogram translation by the gray level value k, the information change between the region to be hidden and the sub-region in the adjacent region around the region to be hidden is not obvious before and after the processing, and the j-th region to be hidden carries out gray level histogram translation processing by the gray level value k, so that a better processing effect can be achieved. Considering that the information entropy can reflect the chaotic degree of the gray value of the pixel point, the embodiment reflects the gray difference condition of the region to be hidden before and after the histogram translation processing based on the difference of the information entropy. Based on this, in this embodiment, the region formed by the region to be hidden and all the sub-regions in the adjacent region is first used as the region to be analyzed corresponding to the region to be hidden, that is, the j-th region to be hidden is used as the central region, the central region and the surrounding sub-regions are combined, and the combined region is used as the region to be analyzed corresponding to the region to be hidden. Then, based on the gray difference condition of the region to be analyzed, which corresponds to the region to be hidden before and after translation, by taking each gray value as an initial translation gray value, determining the translation influence degree of the region to be hidden under each gray value, specifically, recording the information entropy of the region to be analyzed, which corresponds to the j-th region to be hidden before translation of the gray value, as a first information entropy, recording the information entropy of the region to be analyzed, which corresponds to the j-th region to be hidden after translation by taking each gray value as an initial translation gray value, as a second information entropy, and taking the difference between the first information entropy and the second information entropy as the translation influence degree of the j-th region to be hidden under the corresponding gray value; the specific calculation formula of the translation influence degree corresponding to the j-th region to be hidden under the gray value k is as follows:
Yjk=|Ej-E′jk|
Wherein Y jk is the translation influence degree of the j-th to-be-hidden area corresponding to the gray value k, E j is the information entropy of the to-be-analyzed area corresponding to the j-th to-be-hidden area before the gray value translation, E' jk is the information entropy of the to-be-analyzed area corresponding to the j-th to-be-hidden area after the gray value k is used as the initial translation gray value for translation, and I is absolute value sign.
E j represents a first information entropy, and the calculation formula is as followsS is the gray value of the pixel point, P s is the probability of the occurrence of the pixel point with the gray value s in the region to be analyzed corresponding to the j-th region to be hidden, and log () is a logarithmic function taking constant 2 as a base number; e' jk is a second information entropy, and the calculation formula is as follows: /(I)T is the gray value of the pixel point, and P' t is the probability of the pixel point with the gray value of t in the corresponding region to be analyzed after the j-th region to be hidden carries out gray histogram translation by the gray value of k. The calculation process of the information entropy is the prior art, and will not be repeated here.
When the j-th to-be-hidden area carries out gray histogram translation by using a gray value k, the corresponding to-be-analyzed area information change degree is larger, and the fact that the gray value k is not suitable for being used as the translation gray value of the j-th to-be-hidden area is indicated, namely the larger the translation influence degree of the j-th to-be-hidden area under the gray value k is; when the j-th to-be-hidden area carries out gray histogram translation by using the gray value k, the corresponding to the to-be-analyzed area information change degree is smaller, and the more suitable the gray value k is as the translation gray value of the j-th to-be-hidden area, namely the smaller the translation influence degree of the j-th to-be-hidden area under the gray value k is.
So far, the translation influence degree corresponding to the j-th to-be-hidden area under all gray values is obtained, and the gray value corresponding to the translation influence degree when the translation influence degree takes the minimum value is used as the optimal translation gray value corresponding to the j-th to-be-hidden area.
The optimal translation gray value acquisition module of the fire safety hidden danger management digital system acquires the optimal translation gray value corresponding to each region to be hidden, and is subsequently used for carrying out gray histogram translation processing on each region to be hidden so as to hide image information and shooting information.
III, hidden information image acquisition module
The hidden information image obtaining module of the present embodiment is configured to perform translation processing on each region to be hidden based on the optimal translation gray value and the coding sequence, so as to obtain a hidden information image.
The optimal translation gray value obtaining module of the present embodiment obtains an optimal translation gray value corresponding to each to-be-hidden area, and since the coding sequence is formed by 256 characters, the present embodiment equally distributes 256 characters in the coding sequence to each to-be-hidden area, that is, each to-be-hidden area distributes one character, and the preset rule of the present embodiment is: numbering the areas to be hidden in the image in sequence from top to bottom and from left to right, sequentially distributing the characters in the coding sequence from left to right to each area to be hidden in sequence from small to large according to the numbers of the areas to be hidden, wherein each area to be hidden has the corresponding characters, the characters corresponding to the areas to be hidden are hidden information, and writing the serial numbers of the subareas corresponding to the hidden information into exif information of the image; in a specific application, the implementer may set character allocation rules according to the specific circumstances. Then, a histogram translation processing technology is adopted, gray histogram translation processing is respectively carried out on each region to be hidden based on the optimal translation gray value corresponding to each region to be hidden and the corresponding character, and an image obtained after the translation processing is recorded as a hidden information image; it should be noted that, when the gray histogram shifting process is performed on a certain area to be hidden, the gray values greater than or equal to the optimal shifting gray values corresponding to the area to be hidden are all subjected to the shifting process, and the gray histogram shifting technology is a known technology and will not be described in detail herein.
By adopting the method, the hidden information image carrying the SHA256withRSA character string is obtained through the regional hidden information implantation processing of the message equipment image. It should be noted that: the hidden information image can be added with an airspace visible watermark by adopting the existing watermark adding method, the hidden information image is embedded by utilizing an airspace watermark embedding algorithm, the embedding position can be the lower left corner of the hidden information image, the embedded watermark color is a light-color watermark, the generally embedded watermark font color is pure white, and in the specific application, an implementer can select the watermark font color according to specific conditions.
IV, fire safety hidden danger judging module
The fire-fighting potential safety hazard judging module of the embodiment is used for judging the fire-fighting potential safety hazard based on the hidden information image.
The method comprises the steps that an optimal translation gray value of an image of a fire-fighting equipment to be checked, which is obtained by a data perception module, is obtained by utilizing a gray histogram translation technology, an optimal translation gray value obtaining module is used for obtaining an optimal translation gray value, a fire-fighting safety hidden danger judging module is used for carrying out information hiding processing based on the optimal translation gray value corresponding to each area to be hidden, whether the fire-fighting equipment to be checked has a situation of multiple purposes or not is judged based on the hidden information image, the hidden information image corresponding to the uploaded image can be stored in a database, whether the hidden information image corresponding to the uploaded image exists in the database or not is judged after each new image is uploaded, if the hidden information image exists, the situation that one image exists in multiple purposes is indicated, and other methods can be adopted for judging the hidden information image. For example, a corresponding code sequence is extracted from the hidden information image corresponding to the uploaded new image, and judgment is made based on the extracted code sequence. When the image uploaded by the user is not a multipurpose image, judging the potential safety hazard of the message; when the image uploaded by the user is a multi-purpose image, the fact that the fire-fighting equipment of the current user has potential safety hazards is indicated, and the fire-fighting equipment of the user needs to be checked in an important way.
According to the embodiment, firstly, the text information to be hidden is encoded to obtain a coding sequence, then, according to the gray level distribution condition of each sub-region in the image of the fire-fighting equipment to be checked and the sub-region in the neighborhood of the sub-region, the suitability of the hidden information of each sub-region is analyzed, if the gray level value of a pixel point of a certain sub-region is damaged by the image structure of the sub-region and the neighborhood of the sub-region after translation processing, the uniformity of the sub-region and the whole image is lost, so that the sub-region is more obvious in the whole image, the safety of the hidden information of the sub-region is indicated, and the sub-region is unsuitable as the sub-region of the hidden information. Compared with the existing spatial watermarking method, the method provided by the embodiment conceals the added information of the spatial watermarking in a mode of translating the gray value, and ensures that the watermark with the hidden information is reserved even if the spatial watermarking is removed, so that the situation that one image is multipurpose is avoided, one image of the fire-fighting equipment is ensured, and the treatment of the fire-fighting safety hidden danger can be enhanced.

Claims (6)

1. A fire safety hazard management digital system, the system comprising:
And a data perception module: the method comprises the steps of acquiring an image of a fire-fighting equipment to be checked and corresponding shooting information, and encoding the shooting information and size information of the image to obtain a coding sequence;
The optimal translation gray value acquisition module: the method is used for determining the suitability of hidden information of each sub-region according to the gray level distribution of each sub-region in the image and the sub-region in the neighborhood of the sub-region; screening a region to be hidden based on the suitability, wherein the region formed by the region to be hidden and all the subregions in the neighborhood of the region to be hidden is used as a region to be analyzed corresponding to the region to be hidden; according to the gray difference of the areas to be analyzed, which correspond to each area to be hidden before and after translation, by taking each gray value as an initial translation gray value, calculating the translation influence degree of each area to be hidden, which corresponds to each gray value; determining an optimal translation gray value corresponding to each region to be hidden based on the translation influence degree;
A hidden information image acquisition module: the method comprises the steps of carrying out translation processing on each region to be hidden based on the optimal translation gray value and the coding sequence to obtain a hidden information image;
Fire safety hidden danger judging module: the method is used for judging the potential security hazards of the fire protection based on the hidden information image;
the determining the suitability of the hidden information of each sub-region according to the gray level distribution of each sub-region and the sub-region in the neighborhood of each sub-region in the image comprises the following steps:
For any sub-region:
Counting the total number of pixel points corresponding to each gray value in all the sub-regions in the neighborhood of the sub-region, and taking the ratio of the total number to the number of pixel points corresponding to the gray value in the sub-region as the weight corresponding to the gray value; the ratio of the total number to the number of the pixel points in all the subareas in the subareas and the neighborhood thereof is recorded as a first duty ratio; determining the suitability of the hidden information of the subarea according to the first duty ratio, the type number of the gray values of the pixel points in the subarea and the weight, wherein the type number and the weight are in positive correlation with the suitability, and the first duty ratio is in negative correlation with the suitability;
According to the gray level difference of the region to be analyzed corresponding to each region to be hidden before and after the translation by taking each gray level value as an initial translation gray level value, calculating the translation influence degree corresponding to each region to be hidden under each gray level value comprises the following steps:
For any region to be hidden:
The information entropy of the to-be-analyzed area corresponding to the to-be-hidden area before the translation of the gray value is recorded as a first information entropy, and the information entropy of the to-be-analyzed area corresponding to the to-be-hidden area after the translation is carried out by taking each gray value as an initial translation gray value is recorded as a second information entropy; and taking the difference between the first information entropy and the second information entropy as the translation influence degree corresponding to the region to be hidden under the corresponding gray value.
2. The digital fire safety hazard management system according to claim 1, wherein the suitability of the hidden information of the ith sub-area is calculated by adopting the following formula:
wherein, a i is the fit degree of hidden information of the ith sub-area, M g is the number of pixels with gray values g in the ith sub-area, K is the number of sub-areas in the neighborhood of the ith sub-area, M kg is the number of pixels with gray values g in the kth sub-area in the neighborhood of the ith sub-area, N 0 is the number of pixels in the ith sub-area and all sub-areas in the neighborhood thereof, M i is the kind number of gray values of pixels in the ith sub-area, and e is a natural constant; The weight corresponding to the gray value g is expressed, Representing a first duty cycle.
3. The fire safety hazard management digital system according to claim 1, wherein said screening the area to be concealed based on the suitability comprises: and sequencing the suitability according to a preset sequence to obtain a suitability sequence, and taking subregions corresponding to a preset number of elements in the suitability sequence as regions to be hidden.
4. The fire safety hazard management digital system according to claim 1, wherein the determining the optimal translation gray value corresponding to each to-be-hidden area based on the translation influence degree comprises:
for any region to be hidden: and taking the gray value corresponding to the minimum translation influence degree as the optimal translation gray value corresponding to the region to be hidden.
5. The fire safety hazard management digital system according to claim 1, wherein the translating each region to be hidden based on the optimal translation gray value and the coding sequence to obtain a hidden information image comprises:
And distributing the characters in the coding sequence to the areas to be hidden according to a preset rule, and respectively carrying out gray histogram translation processing on each area to be hidden based on the optimal translation gray value corresponding to each area to be hidden and the corresponding characters to obtain a hidden information image.
6. The digital fire safety hazard management system according to claim 1, wherein the encoding of the shot information and the size information of the image to obtain the encoded sequence comprises:
and performing field splicing on the shooting information and the size information of the image to obtain a corresponding character string, and obtaining a coding sequence based on the character string.
CN202310602083.0A 2023-05-25 2023-05-25 Digital system is administered to fire control potential safety hazard Active CN117830204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310602083.0A CN117830204B (en) 2023-05-25 2023-05-25 Digital system is administered to fire control potential safety hazard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310602083.0A CN117830204B (en) 2023-05-25 2023-05-25 Digital system is administered to fire control potential safety hazard

Publications (2)

Publication Number Publication Date
CN117830204A CN117830204A (en) 2024-04-05
CN117830204B true CN117830204B (en) 2024-06-25

Family

ID=90504633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310602083.0A Active CN117830204B (en) 2023-05-25 2023-05-25 Digital system is administered to fire control potential safety hazard

Country Status (1)

Country Link
CN (1) CN117830204B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037846A (en) * 2022-05-24 2022-09-09 桂林理工大学 Translation reversible information hiding algorithm based on Arnold and improved difference histogram

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106023058B (en) * 2016-05-25 2019-02-15 广东工业大学 A kind of high-fidelity reversible water mark embedding grammar
CN115329293B (en) * 2022-10-11 2023-02-03 新泰市中医医院 Data safety storage method of intelligent traditional Chinese medicine rehabilitation management system
CN115952549B (en) * 2023-03-13 2023-05-09 北京环球医疗救援有限责任公司 End-to-end medical image privacy data elimination system
CN116109466B (en) * 2023-04-14 2023-07-04 济宁立德印务有限公司 Anti-counterfeiting watermark processing method for printed image

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037846A (en) * 2022-05-24 2022-09-09 桂林理工大学 Translation reversible information hiding algorithm based on Arnold and improved difference histogram

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Reversible data hiding using bit flipping and histogram shifting;Nour Kittawi等;《Multimedia Tools and Applications》;20220219;全文 *

Also Published As

Publication number Publication date
CN117830204A (en) 2024-04-05

Similar Documents

Publication Publication Date Title
Verdoliva Media forensics and deepfakes: an overview
TW416242B (en) An image capturing system and method for automatically watermarking recorded parameters for providing digital image verification
Tzeng et al. Adaptive data hiding in palette images by color ordering and mapping with security protection
CN110796586B (en) Blind watermarking method and system based on digital dot matrix and readable storage medium
CN107622497A (en) Image cropping method, apparatus, computer-readable recording medium and computer equipment
CN107391976A (en) A kind of document protection method and apparatus based on ambient noise and vector watermark
Anbarjafari et al. Imperceptible non-blind watermarking and robustness against tone mapping operation attacks for high dynamic range images
CN113393471A (en) Image processing method and device
Mani et al. A survey on digital image forensics: Metadata and image forgeries
CN101923700A (en) Double-effect digital watermarking method
English Comparison of high capacity steganography techniques
CN117830204B (en) Digital system is administered to fire control potential safety hazard
CN112116565A (en) Countermeasure sample generation method and device for tampered copied image and storage medium
CN116579908A (en) Method and device for implanting encrypted hidden information into image
Maiorana et al. Multi‐bit watermarking of high dynamic range images based on perceptual models
JP4654330B2 (en) Video change device, video change method, and video change program
CN110766597A (en) Picture camouflaging method, picture camouflaging device, electronic equipment and storage medium
Shirali-Shahreza et al. Collage steganography
Wang et al. Deep neural network watermarking based on texture analysis
CN114170470A (en) Sample generation method, device, equipment and storage medium
Saranya et al. A reversible data hiding method for image protection
RU2739936C1 (en) Method of adding digital labels to digital image and apparatus for realizing method
Reddy et al. An Overview on Digital Forensics Tools used in Crime Investigation for Forgery Detection
AU2021103274A4 (en) Design and Analysis of Image Forgery Detection Techniques for Innovative methodologies.
Pradhan et al. A review on digital image forgery detection

Legal Events

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