CN114241389A - Combustion substance identification method, electronic device, and readable storage medium - Google Patents

Combustion substance identification method, electronic device, and readable storage medium Download PDF

Info

Publication number
CN114241389A
CN114241389A CN202111584127.9A CN202111584127A CN114241389A CN 114241389 A CN114241389 A CN 114241389A CN 202111584127 A CN202111584127 A CN 202111584127A CN 114241389 A CN114241389 A CN 114241389A
Authority
CN
China
Prior art keywords
smoke
flame
target
pixel value
color
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.)
Pending
Application number
CN202111584127.9A
Other languages
Chinese (zh)
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.)
Institute of Advanced Technology University of Science and Technology of China
Original Assignee
Institute of Advanced Technology University of Science and Technology of China
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 Institute of Advanced Technology University of Science and Technology of China filed Critical Institute of Advanced Technology University of Science and Technology of China
Priority to CN202111584127.9A priority Critical patent/CN114241389A/en
Publication of CN114241389A publication Critical patent/CN114241389A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Landscapes

  • Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Fire-Detection Mechanisms (AREA)

Abstract

The application discloses a combustion substance identification method, an electronic device and a readable storage medium, wherein the combustion substance identification method comprises the following steps: acquiring a scene of fire picture; extracting at least one target smoke region and at least one target flame region from the picture of the fire scene; determining the actual measurement smoke color corresponding to each target smoke area according to the actual measurement smoke pixel value of each target smoke area, and determining the actual measurement flame color corresponding to each target flame area according to the actual measurement flame pixel value of each target flame area; and identifying a target combustion substance according to the measured smoke color and the measured flame color. The application solves the technical problem that the fire rescue scheme is low in accuracy.

Description

Combustion substance identification method, electronic device, and readable storage medium
Technical Field
The present application relates to the field of image recognition technologies, and in particular, to a method for recognizing a combustion substance, an electronic device, and a readable storage medium.
Background
A fire disaster is a multiple disaster which endangers the safety of people's lives and properties, in the fire disaster, smoke and flame are the first signal and the important identifiable signal of the fire disaster, through analyzing the smoke and flame, the fire disaster can be effectively helped by related rescuers to deal with the fire disaster in time, and the casualties and property loss can be reduced to the greatest extent, at present, most of video monitoring equipment applied to production and life has the function of detecting the smoke of the fire disaster, but the fire disaster can be recognized as soon as possible, but different rescue modes required by different fire disasters are different, after the firemen need to arrive at the site, a rescue plan is made according to the actual conditions visible outside the fire scene, and proper fire extinguishers are selected, and the common fire extinguishers are roughly divided into dry powder extinguishers, haloalkane extinguishers, carbon dioxide extinguishers, foam extinguishers and the like, and the purposes of the common fire extinguishers are different, the accuracy of the rescue scheme formulation has great influence on the fire rescue effect.
Disclosure of Invention
The application mainly aims to provide a combustion substance identification method, electronic equipment and a readable storage medium, and aims to solve the technical problem of low accuracy of a fire rescue scheme.
In order to achieve the above object, the present application provides a combustion substance identifying method including:
acquiring a scene of fire picture;
extracting at least one target smoke region and at least one target flame region from the picture of the fire scene;
determining the actual measurement smoke color corresponding to each target smoke area according to the actual measurement smoke pixel value of each target smoke area, and determining the actual measurement flame color corresponding to each target flame area according to the actual measurement flame pixel value of each target flame area;
and identifying a target combustion substance according to the measured smoke color and the measured flame color.
Optionally, the step of determining the measured smoke color corresponding to each of the target smoke regions according to the measured smoke pixel value of each of the target smoke regions includes:
determining a smoke pixel value range to which each actually measured smoke pixel value of each target smoke region belongs;
if the actual measurement smoke pixel values exceeding a preset first proportion belong to the same smoke pixel value range in the actual measurement smoke pixel values corresponding to the target smoke areas, taking the same smoke pixel value range as a target smoke pixel value range;
and determining the smoke color corresponding to the target smoke pixel value range as the measured smoke color corresponding to the target smoke area.
Optionally, the step of determining the respective measured flame color of each target flame region according to the measured flame pixel value of each target flame region includes:
determining a flame pixel value range to which each actually measured flame pixel value of each target flame area belongs;
if the actual measurement flame pixel values exceeding a preset second proportion belong to the same flame pixel value range in the actual measurement flame pixel values corresponding to the target flame areas, taking the same flame pixel value range as a target smoke pixel value range;
and determining the flame color corresponding to the target flame pixel value range as the actually measured flame color corresponding to the target flame area.
Optionally, the step of identifying a target combustion substance from the measured smoke colour and the measured flame colour comprises:
and determining a target combustion substance corresponding to the actual combination of the actually measured smoke color and the actually measured flame color according to the mapping relation between the combination of the smoke color and the flame color and the combustion substance.
Optionally, after the step of identifying a target combustion substance from the measured smoke color and the measured flame color, further comprising:
and outputting identification result information and prompt information for checking image data according to the target combustion substance.
Optionally, after the step of outputting the identification result information and the prompt information for viewing the image data according to the target combustion substance, the method further includes:
when an image data viewing request triggered based on the prompt information is detected, carrying out standardization processing on each target smoke area and each target flame area to obtain a standard fire scene picture;
and displaying the standard fire scene picture.
Optionally, when an image data viewing request triggered based on the prompt information is detected, the step of performing standardized processing on each target smoke region and each target flame region to obtain a standard scene-of-fire picture includes:
when an image data viewing request triggered based on the prompt information is detected, carrying out standardization processing on each target smoke area and each target flame area to obtain a standard target picture;
acquiring a fire video corresponding to the fire scene picture and a related picture of a preset frame number adjacent to the fire scene picture in the fire video;
extracting at least one related smoke region and at least one related flame region from the related pictures, and carrying out standardization processing on each related smoke region and each related flame region to obtain standard related pictures;
and combining the standard target picture and the standard related picture to generate a dynamic standard scene-of-fire picture.
Optionally, the step of normalizing each of the target smoke regions and each of the target flame regions comprises:
judging whether the actual measurement smoke pixel values of the target smoke areas belong to a first threshold interval of preset reference smoke pixel values or not;
replacing the initial smoke pixel values in the first threshold interval in each actually measured smoke pixel value with the reference smoke pixel value;
judging whether the actual measurement flame pixel values of the target flame areas belong to a second threshold interval of preset reference flame pixel values or not;
and replacing the initial flame pixel values which belong to the second threshold interval in each measured flame pixel value with the reference flame pixel value.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: a memory, a processor and a program of the combustion substance identification method stored on the memory and executable on the processor, the program of the combustion substance identification method being executable by the processor to implement the steps of the combustion substance identification method as described above.
The present application also provides a readable storage medium which is a computer-readable storage medium having stored thereon a program for implementing a combustion substance identification method, which when executed by a processor implements the steps of the combustion substance identification method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, carries out the steps of the combustion material identification method as described above.
The application provides a burning substance identification method, electronic equipment and a readable storage medium, which realize the characteristic extraction of smoke and flame from a picture of a firing scene by obtaining the picture of the firing scene and extracting at least one target smoke area and at least one target flame area from the picture of the firing scene, realize the identification of corresponding smoke colors and flame colors according to image pixels of the smoke area and the flame area by determining the actual measurement smoke colors respectively corresponding to the target smoke areas according to the actual measurement smoke pixel values of the target smoke areas and determining the actual measurement flame colors respectively corresponding to the target flame areas according to the actual measurement flame pixel values of the target flame areas, realize the difference of the smoke colors and the flame colors generated by burning different substances according to the actual measurement smoke colors and the actual measurement flame colors, the method has the advantages that burning substances are identified and judged, only pictures of a fire scene in the fire occurrence process need to be acquired, smoke colors and flame colors in the pictures can be detected, quick judgment of the burning substances in the fire is realized, effective and accurate technical support is provided for formulation of a rescue scheme, so that the rescuers can determine the accurate rescue scheme as early as possible according to the burning substances before arriving at the scene, the lower-accuracy rescue plan formulated by the rescuers only according to the scene visible outside the fire but not the burning substances inside after arriving at the scene is avoided, the technical problem of lower accuracy of the fire rescue scheme is solved, and the fire rescue effect is greatly improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a combustion material identification method of the present application;
FIG. 2 is a schematic flow chart diagram illustrating another embodiment of a combustion material identification method of the present application;
FIG. 3 is a schematic view of a scene of a fire in the combustion material recognition method of the present application;
fig. 4 is a schematic structural diagram of a hardware operating environment related to a combustion substance identification method in an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A fire disaster is a multiple disaster which endangers the safety of people's lives and properties, in the fire disaster, smoke and flame are the first signal and the important identifiable signal of the fire disaster, through analyzing the smoke and flame, the fire disaster can be effectively helped by related rescuers to deal with the fire disaster in time, and the casualties and property loss can be reduced to the greatest extent, at present, most of video monitoring equipment applied to production and life has the function of detecting the smoke of the fire disaster, but the fire disaster can be recognized as soon as possible, but different rescue modes required by different fire disasters are different, after the firemen need to arrive at the site, a rescue plan is made according to the actual conditions visible outside the fire scene, and proper fire extinguishers are selected, and the common fire extinguishers are roughly divided into dry powder extinguishers, haloalkane extinguishers, carbon dioxide extinguishers, foam extinguishers and the like, and the purposes of the common fire extinguishers are different, such as: the dry powder fire extinguisher can be used for putting out combustible liquid, combustible gas and electrified equipment, and cannot be used for extinguishing fire of active metal; the alkyl halide fire extinguisher can be used for extinguishing fire of oil and electrical equipment, but cannot be used for extinguishing fire of substances such as active metal, metal hydride and the like; the carbon dioxide fire extinguisher can be used for extinguishing fire of flammable and combustible liquid, flammable gas and the like, but cannot be used for extinguishing fire in metal hydride and fiber; the foam fire extinguisher is generally used for extinguishing fire by combustible liquid and cannot be used for extinguishing fire by water-soluble liquid and light metal, so that whether a fire disaster occurs or is not enough to meet fire safety work is only known, the type of the fire needs to be further judged, guidance suggestions are provided for follow-up fire rescue work, the accuracy of the rescue scheme is formulated, great influence is caused on the effect of fire rescue, and if substances can be determined to be burnt in advance, the fire rescue work can be greatly facilitated.
In a first embodiment of the combustion substance identification method of the present application, referring to fig. 1, the combustion substance identification method includes:
step S10, acquiring a scene of fire picture;
in the embodiment, specifically, when the fire detection device detects that a fire occurs, image data of a fire scene is obtained, and one or more pictures of the fire scene are obtained from the image data of the fire scene, wherein the image data of the fire scene comprises a monitoring video of the fire scene, video data shot by field personnel, pictures shot at the scene and the like, and the pictures of the fire scene comprise pictures of the scene at different times of fire, for example, pictures of different times in the process from the beginning of fire to the exacerbation of the fire are obtained from the images shot by the monitoring video.
Step S20, extracting at least one target smoke area and at least one target flame area from the picture of the fire scene;
in this embodiment, specifically, a smoke image and a flame image are identified from the picture of the fire scene by an image identification technology, and a target smoke region including all or part of the smoke image and a target flame region including all or part of the flame image are extracted, wherein the target smoke region may be a square region, a circular region, an irregular region or a region included by an external contour of the identified smoke image, and the target flame region may be a square region, a circular region, an irregular region or a region included by an external contour of the identified flame image, and in an implementable manner, referring to fig. 3, in fig. 3, a region a, a region B, a region C, a region D, and a region E are the target smoke region and the target flame region extracted from the picture of the fire scene by the image identification technology, the area A, the area B, the area C and the area D are target smoke areas, and the area E is a target flame area.
Step S30, determining the actual measurement smoke color corresponding to each target smoke area according to the actual measurement smoke pixel value of each target smoke area, and determining the actual measurement flame color corresponding to each target flame area according to the actual measurement flame pixel value of each target flame area;
in this embodiment, specifically, at least one measured smoke pixel value of each target smoke region and at least one measured flame pixel value of each target flame region are collected, a smoke pixel value range to which all or part of the measured smoke pixel values of each target smoke region belong is respectively determined, colors corresponding to all or part of the measured smoke pixel values of each target smoke region are determined according to a preset mapping relationship between the pixel value range and the colors, colors exceeding a preset number or proportion are determined as measured smoke colors corresponding to each target smoke region, a flame pixel value range to which all or part of the measured flame pixel values of each target flame region belong is respectively determined, colors corresponding to all or part of the measured flame pixel values of each target flame region are determined according to a preset mapping relationship between the pixel value range and the colors, determining colors exceeding a preset number or proportion as actual measurement flame colors corresponding to each target flame area, wherein each pixel point of the picture is formed by three channels of red, green and blue, so the pixel values in the embodiment are all formed by three values of R (red), G (green) and B (blue), and the mapping relationship between the pixel value range and the colors can be determined according to the existing research results, big data or self-definition, for example: in an implementable manner, before the actually measured smoke pixel value and the actually measured flame pixel value are extracted, image processing such as background removal, light adjustment, tone adjustment and the like can be performed on the picture to reduce the influence of environmental factors or hardware equipment such as a camera on the smoke image and the flame image.
Optionally, the step of determining the measured smoke color corresponding to each of the target smoke regions according to the measured smoke pixel value of each of the target smoke regions includes:
step A10, determining a smoke pixel value range to which each actually measured smoke pixel value of each target smoke area belongs;
in this embodiment, it should be noted that the smoke pixel value range is a pixel value range determined in advance according to the color of smoke generated when various types of combustion substances are combusted.
Specifically, the smoke pixel value range to which each measured smoke pixel value in each target smoke region belongs is determined respectively.
Step A20, if the actual measurement smoke pixel values exceeding a preset first proportion belong to the same smoke pixel value range in the actual measurement smoke pixel values corresponding to each target smoke area, taking the same smoke pixel value range as a target smoke pixel value range;
in this embodiment, specifically, if the ratio of the measured smoke pixel values belonging to a certain same smoke pixel value range in any one target smoke region to all the measured smoke pixel values in the target smoke region exceeds a preset first ratio, the same smoke pixel value range is set as the target smoke pixel value range.
Step a30, determining the smoke color corresponding to the target smoke pixel value range as the measured smoke color corresponding to the target smoke region.
In this embodiment, specifically, according to a mapping relationship between preset smoke pixel values and smoke colors, a target smoke color corresponding to the target smoke pixel value is determined, and the target smoke color is determined as an actual measurement smoke color corresponding to the target smoke region.
Optionally, the step of determining the respective measured flame color of each target flame region according to the measured flame pixel value of each target flame region includes:
step B10, determining a flame pixel value range to which each actually-measured flame pixel value of each target flame area belongs;
in this embodiment, it should be noted that the flame pixel value range is a pixel value range determined in advance according to the color of the flame generated when various types of combustion substances are combusted.
Specifically, flame pixel value ranges to which the measured flame pixel values in each target flame region belong are determined respectively.
Step B20, if the actual measurement flame pixel values exceeding a preset second proportion belong to the same flame pixel value range in the actual measurement flame pixel values corresponding to each target flame area, taking the same flame pixel value range as a target smoke pixel value range;
in this embodiment, specifically, if the ratio of the measured flame pixel values belonging to a same flame pixel value range in any one of the target flame regions to all the measured flame pixel values in the target flame region exceeds a preset first ratio, the same flame pixel value range is set as the target flame pixel value range.
And step B30, determining the flame color corresponding to the target flame pixel value range as the measured flame color corresponding to the target flame area.
In this embodiment, specifically, according to a mapping relationship between a preset flame pixel value and a flame color, a target flame color corresponding to the target flame pixel value is determined, and the target flame color is determined as an actual measurement flame color corresponding to the target flame region.
Step S40, identifying a target combustion substance from the measured smoke color and the measured flame color.
In this embodiment, the target combustion substance may be a specific substance, such as magnesium, diesel oil, etc., or a generic term of a class of substances, such as combustible gas, combustible metal, electrical equipment, etc., or a generic term of a class of substances including both specific substances and a generic term of a class of substances, and may be set according to actual conditions.
Specifically, one or more first initial combustion substances corresponding to each measured smoke color may be determined according to a preset mapping table of smoke colors and combustion substances, one or more second initial combustion substances corresponding to each measured flame color may be determined according to a preset mapping table of flame colors and combustion substances, and repeated combustion substances in each first initial combustion substance and each second initial combustion substance may be determined as target combustion substances corresponding to the ignition site picture, it is easily understood that different target smoke regions may correspond to the same or different measured smoke colors, and different target flame regions may also correspond to the same or different measured flame colors; or inquiring a preset combination and combustion substance mapping table according to the combination of the smoke color and the flame color, and determining the combustion substance corresponding to the combination. For example, referring to fig. 3, if it is determined that the measured smoke color of the target smoke region a is gray, the measured smoke color of the target smoke region B is black, the measured smoke color of the target smoke region C is black, the measured smoke color of the target smoke region D is gray, and the measured flame color of the target flame region E is red, the measured smoke colors include black and gray, the measured flame colors include red, the combustion substances corresponding to black smoke may be determined to include a and B, the combustion substances corresponding to gray smoke may include B, C and D, the combustion substances corresponding to red flame may include C and D, and the target combustion substances may be finally determined to be C and D, or the combination of smoke colors and flame colors may be determined to include the combination of black smoke and red flame and the combination of gray smoke and red flame, and then the combination of black smoke and red flame is determined to have no corresponding combustion substances, the combination of the gray smoke and the red flame corresponds to the combustion substances c and d, and the target combustion substances c and d are finally determined.
Optionally, the step of identifying a target combustion substance from the measured smoke colour and the measured flame colour comprises:
and determining a target combustion substance corresponding to the actual combination of the actually measured smoke color and the actually measured flame color according to the mapping relation between the combination of the smoke color and the flame color and the combustion substance.
In this embodiment, specifically, each determined measured smoke color and each determined measured flame color are combined to obtain an actual combination composed of the measured smoke color and the measured flame color, and a target combustion substance corresponding to the actual combination is determined according to a mapping relationship between a combination of the smoke color and the flame color and the combustion substance, which is established in advance.
Optionally, after the step of identifying a target combustion substance from the measured smoke color and the measured flame color, further comprising:
step S50, outputting recognition result information and prompt information for viewing image data according to the target combustion substance.
In the present embodiment, specifically, the target combustion substance is output as a combustion substance identification result, so as to inform relevant personnel of the burning substances on the fire scene, facilitate the relevant personnel to select a proper fire extinguisher and make a proper rescue plan according to the burning substances on the fire scene, and output prompt information for checking image data, so that the relevant personnel can determine whether to check the image data of the fire scene according to the prompt information, further confirm the detailed information of the situation of the fire scene, the position of the burning substance and the like, wherein, the image data can be the picture of the fire scene, the video of the fire scene or the picture processed by the picture of the fire scene, for example, a picture of the fire scene in which the target smoke region and the target flame region are marked, a picture of the fire scene in which color tone or light is adjusted, and the like.
In the embodiment, by obtaining a picture of a fire scene, extracting at least one target smoke region and at least one target flame region from the picture of the fire scene, the extraction of the characteristics of smoke and flame from the picture of the fire scene is realized, the actual measurement smoke color corresponding to each target smoke region is determined according to the actual measurement smoke pixel value of each target smoke region, the actual measurement flame color corresponding to each target flame region is determined according to the actual measurement flame pixel value of each target flame region, the corresponding smoke color and flame color are determined according to the image pixels of the smoke region and the flame region, the identification and judgment of combustion substances are realized according to the difference between the smoke color and the flame color generated by the combustion of different substances, the method has the advantages that only the picture of the fire scene in the fire occurrence process needs to be acquired, the smoke color and the flame color in the picture can be detected, the combustion substances in the fire can be rapidly judged, effective and accurate technical support is provided for the formulation of the rescue scheme, so that the rescuers can determine the accurate rescue scheme as early as possible according to the combustion substances before arriving at the scene, the lower-accuracy rescue plan which can be formulated only according to the scene visible outside the fire but not the internal combustion substances after the rescuers arrive at the scene is avoided, the technical problem of lower accuracy of the fire rescue scheme is solved, and the fire rescue effect is greatly improved.
Further, referring to fig. 2, in another embodiment of the present application, the same or similar contents as those in the above embodiment may be referred to the above description, and are not repeated herein. On this basis, the step of obtaining at least one target function file according to the personalized configuration information includes:
step S51, when an image data viewing request triggered based on the prompt information is detected, each target smoke area and each target flame area are subjected to standardization processing to obtain a standard fire scene picture;
in this embodiment, it should be noted that, due to different conditions such as time, light source, and shooting device, the same color may have a difference in pictures shot by different shooting devices in different environments, and the standardization process is a process of replacing a pixel point in a target smoke region that is close to a preset reference color with the preset reference color.
Specifically, when an image data viewing request triggered by user operation generated based on the prompt information is detected, matching each pixel value of each target smoke region and each target flame region in the picture of the fire scene with a preset reference pixel value, and replacing the pixel values capable of being matched with the reference pixel values in the target smoke region and each target flame region with the corresponding reference pixel values to obtain a standard picture of the fire scene.
Optionally, when an image data viewing request triggered based on the prompt information is detected, the step of performing standardized processing on each target smoke region and each target flame region to obtain a standard scene-of-fire picture includes:
step C10, when an image data viewing request triggered based on the prompt information is detected, standardizing each target smoke area and each target flame area to obtain a standard target picture;
in this embodiment, specifically, when an image data viewing request triggered by a user operation generated based on the prompt information is detected, each pixel value of each target smoke region and each target flame region in the picture of the fire scene is matched with a preset reference pixel value, and the pixel values that can be matched with the reference pixel values in the target smoke region and each target flame region are replaced with the corresponding reference pixel values, so as to obtain a standard target picture.
Step C20, acquiring a fire video corresponding to the fire scene picture and a related picture with a preset frame number adjacent to the fire scene picture in the fire video;
in this embodiment, specifically, an ignition video corresponding to the ignition scene picture is obtained, an arrangement position of the ignition scene picture in the ignition video is determined, and a related picture of a preset frame number adjacent to the arrangement position of the ignition scene picture in the ignition video is obtained, where the arrangement position may be determined according to a frame sequence, a number, and the like, for example, a z-frame picture arranged before and/or after the ignition scene picture in the ignition video is used as the related picture.
Step C30, extracting at least one relevant smoke region and at least one relevant flame region from the relevant pictures, and carrying out standardization processing on each relevant smoke region and each relevant flame region to obtain standard relevant pictures;
in this embodiment, specifically, at least one relevant smoke region and at least one relevant flame region are extracted from the relevant picture through an image recognition technology, each pixel value of each relevant smoke region and each relevant flame region in the relevant picture is matched with a preset reference pixel value, and a pixel value that can be matched with the reference pixel value in each relevant smoke region and each relevant flame region is replaced with a corresponding reference pixel value, so as to obtain a standard relevant picture.
And step C40, combining the standard target picture and the standard related picture to generate a dynamic standard scene-of-fire picture.
In this embodiment, specifically, the standard target picture and the standard related picture are combined according to the arrangement order in the video to generate a dynamic standard scene-of-fire picture.
Optionally, the step of normalizing each of the target smoke regions and each of the target flame regions comprises:
step D10, judging whether each actually measured smoke pixel value of each target smoke area belongs to a first threshold interval of a preset reference smoke pixel value;
step D20, replacing the initial smoke pixel value in each actually measured smoke pixel value within the first threshold interval with the reference smoke pixel value;
in this embodiment, it should be noted that the reference smoke pixel value is a pixel value corresponding to a standard color of smoke and flame generated when a preset combustion substance is combusted, the standard color can be obtained by testing through setting a standard environment, shooting equipment and the like, and can also be obtained through analysis according to a paper or big data, in this respect, the present embodiment is not limited, the threshold is an error range determined according to actual conditions, can be obtained by testing through setting standard environment, shooting equipment and the like, can also be obtained according to paper or big data analysis, for example, if the reference smoke pixel value is R value 50, G value 50, B value 50, the threshold value is 15, then pixel values having R values in the range of 35-65 and G values in the range of 35-65 and B values in the range of 35-65 fall within the threshold.
Specifically, whether each measured smoke pixel value of each target smoke region belongs to a preset threshold value of a reference smoke pixel value is respectively judged, an initial smoke pixel value in each measured smoke pixel value, which belongs to the first threshold value interval, is replaced with the reference smoke pixel value, and the initial smoke pixel value in the middle of each measured smoke pixel value, which belongs to the first threshold value interval, is kept unchanged.
Step D30, judging whether each actually measured flame pixel value of each target flame area belongs to a second threshold interval of the preset reference flame pixel value;
and D40, replacing the initial flame pixel values belonging to the second threshold interval in each measured flame pixel value with the reference flame pixel values.
In this embodiment, it should be noted that the reference flame pixel value is a pixel value corresponding to a flame generated when a preset combustion substance is combusted and a standard color of the flame, the standard color can be obtained by testing through setting a standard environment, shooting equipment and the like, and can also be obtained through analysis according to a paper or big data, in this respect, the present embodiment is not limited, the threshold is an error range determined according to actual conditions, can be obtained by testing through setting standard environment, shooting equipment and the like, can also be obtained according to paper or big data analysis, for example, if the reference flame pixel value is 50R value, 50G value, 50B value, the threshold value is 15, then pixel values having R values in the range of 35-65 and G values in the range of 35-65 and B values in the range of 35-65 fall within the threshold.
Specifically, whether each measured flame pixel value of each target flame region belongs to a preset threshold of a reference flame pixel value is respectively judged, an initial flame pixel value in each measured flame pixel value, which belongs to the first threshold interval, is replaced with the reference flame pixel value, and the initial flame pixel value in the middle of each measured flame pixel value, which belongs to the first threshold interval, is kept unchanged.
And step S52, displaying the standard scene of fire picture.
In this embodiment, specifically, the standard picture of the fire scene is displayed so that the user can more intuitively see a more standard and clearer image of the smoke and flame, so as to more accurately determine the burning substance and the situation of the fire scene, in an implementable manner, the mode of displaying the standard picture of the fire scene may further be to establish a link relationship between the standard picture of the fire scene and the identified burning substance, display the picture of the fire scene corresponding to the target burning substance selected by the user based on the selection operation information of the target burning substance by the user, when there are a plurality of pictures of the fire scene, different burning substances may be ignited at different fire periods, so different pictures of the fire scene may identify different burning substances, when the user selects different burning substances, it is desired to know the specific situation of the burning substance, therefore, the picture of the fire scene corresponding to the combustion substance is displayed, and a user can directly obtain the required picture of the fire scene conveniently and know accurate fire information timely.
Further, an embodiment of the present invention provides an electronic device, where the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the combustion substance identification method of the first embodiment.
Referring now to FIG. 4, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic equipment provided by the invention adopts the combustion substance identification method in the embodiment, and the technical problem of low accuracy of a fire rescue scheme is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the invention are the same as the beneficial effects of the method for identifying the combustion substance provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the method of the previous embodiment, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Further, an embodiment of the present invention provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method of identifying combustion substances in the first embodiment.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a scene of fire picture; extracting at least one target smoke region and at least one target flame region from the picture of the fire scene; determining the actual measurement smoke color corresponding to each target smoke area according to the actual measurement smoke pixel value of each target smoke area, and determining the actual measurement flame color corresponding to each target flame area according to the actual measurement flame pixel value of each target flame area; and identifying a target combustion substance according to the measured smoke color and the measured flame color.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the invention stores computer-readable program instructions for executing the combustion substance identification method, and solves the technical problem of low accuracy of a fire rescue scheme. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the invention are the same as the beneficial effects of the combustion substance identification method provided by the embodiment, and are not repeated herein.
Further, the embodiment of the present invention also provides a computer program product, which includes a computer program, and the computer program is executed by a processor to implement the steps of the combustion substance identification method as described above.
The computer program product provided by the application solves the technical problem of low accuracy of a fire rescue scheme. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the invention are the same as the beneficial effects of the combustion substance identification method provided by the embodiment, and are not repeated herein.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A combustion substance identification method, characterized by comprising:
acquiring a scene of fire picture;
extracting at least one target smoke region and at least one target flame region from the picture of the fire scene;
determining the actual measurement smoke color corresponding to each target smoke area according to the actual measurement smoke pixel value of each target smoke area, and determining the actual measurement flame color corresponding to each target flame area according to the actual measurement flame pixel value of each target flame area;
and identifying a target combustion substance according to the measured smoke color and the measured flame color.
2. The combustible substance identification method of claim 1 wherein said step of determining a measured smoke color for each of said target smoke regions based on measured smoke pixel values for each of said target smoke regions comprises:
determining a smoke pixel value range to which each actually measured smoke pixel value of each target smoke region belongs;
if the actual measurement smoke pixel values exceeding a preset first proportion belong to the same smoke pixel value range in the actual measurement smoke pixel values corresponding to the target smoke areas, taking the same smoke pixel value range as a target smoke pixel value range;
and determining the smoke color corresponding to the target smoke pixel value range as the measured smoke color corresponding to the target smoke area.
3. The combustion species identification method of claim 1, wherein said determining a measured flame color corresponding to each of said target flame regions based on measured flame pixel values for each of said target flame regions comprises:
determining a flame pixel value range to which each actually measured flame pixel value of each target flame area belongs;
if the actual measurement flame pixel values exceeding a preset second proportion belong to the same flame pixel value range in the actual measurement flame pixel values corresponding to the target flame areas, taking the same flame pixel value range as a target smoke pixel value range;
and determining the flame color corresponding to the target flame pixel value range as the actually measured flame color corresponding to the target flame area.
4. The combustion material identification method of claim 1 wherein said step of identifying a target combustion material based on said measured smoke color and said measured flame color comprises:
and determining a target combustion substance corresponding to the actual combination of the actually measured smoke color and the actually measured flame color according to the mapping relation between the combination of the smoke color and the flame color and the combustion substance.
5. A combustion substance identification method according to any of claims 1 to 4, wherein said step of identifying a target combustion substance from said measured smoke color and said measured flame color is followed by the further step of:
and outputting identification result information and prompt information for checking image data according to the target combustion substance.
6. The combustion substance identifying method according to claim 5, further comprising, after the step of outputting identification result information and prompt information for viewing image data based on the target combustion substance:
when an image data viewing request triggered based on the prompt information is detected, carrying out standardization processing on each target smoke area and each target flame area to obtain a standard fire scene picture;
and displaying the standard fire scene picture.
7. The combustible substance identification method according to claim 6, wherein the step of standardizing each of the target smoke regions and each of the target flame regions when the image data viewing request triggered based on the prompt information is detected to obtain a standard scene-of-fire picture comprises:
when an image data viewing request triggered based on the prompt information is detected, carrying out standardization processing on each target smoke area and each target flame area to obtain a standard target picture;
acquiring a fire video corresponding to the fire scene picture and a related picture of a preset frame number adjacent to the fire scene picture in the fire video;
extracting at least one related smoke region and at least one related flame region from the related pictures, and carrying out standardization processing on each related smoke region and each related flame region to obtain standard related pictures;
and combining the standard target picture and the standard related picture to generate a dynamic standard scene-of-fire picture.
8. The combustion species identification method of claim 6 wherein said step of normalizing each of said target smoke zones and each of said target flame zones comprises:
judging whether the actual measurement smoke pixel values of the target smoke areas belong to a first threshold interval of preset reference smoke pixel values or not;
replacing the initial smoke pixel values in the first threshold interval in each actually measured smoke pixel value with the reference smoke pixel value;
judging whether the actual measurement flame pixel values of the target flame areas belong to a second threshold interval of preset reference flame pixel values or not;
and replacing the initial flame pixel values which belong to the second threshold interval in each measured flame pixel value with the reference flame pixel value.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the combustion species identification method of any one of claims 1 to 8.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program implementing a combustion substance identifying method, the program implementing the combustion substance identifying method being executed by a processor to implement the steps of the combustion substance identifying method according to any one of claims 1 to 8.
CN202111584127.9A 2021-12-22 2021-12-22 Combustion substance identification method, electronic device, and readable storage medium Pending CN114241389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111584127.9A CN114241389A (en) 2021-12-22 2021-12-22 Combustion substance identification method, electronic device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111584127.9A CN114241389A (en) 2021-12-22 2021-12-22 Combustion substance identification method, electronic device, and readable storage medium

Publications (1)

Publication Number Publication Date
CN114241389A true CN114241389A (en) 2022-03-25

Family

ID=80761565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111584127.9A Pending CN114241389A (en) 2021-12-22 2021-12-22 Combustion substance identification method, electronic device, and readable storage medium

Country Status (1)

Country Link
CN (1) CN114241389A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115909114A (en) * 2022-09-21 2023-04-04 中国人民解放军陆军防化学院 Method and medium for improving display definition of AR glasses in fuming training and glasses

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115909114A (en) * 2022-09-21 2023-04-04 中国人民解放军陆军防化学院 Method and medium for improving display definition of AR glasses in fuming training and glasses
CN115909114B (en) * 2022-09-21 2023-11-10 中国人民解放军陆军防化学院 Method and medium for improving display definition of AR glasses in fuming training and glasses

Similar Documents

Publication Publication Date Title
WO2020034931A1 (en) Data management method for laser gas detector, and data management terminal
US20160187310A1 (en) Image Based Surveillance System
TW201432641A (en) Light leaking inspection system and method thereof
US9640142B2 (en) Apparatus for detecting region of interest and method thereof
WO2017052149A1 (en) Display apparatus and method for controlling display apparatus thereof
CN111896232B (en) Optical machine module testing method, equipment, system and computer readable storage medium
CN107144993B (en) Display panel detection method and device
CN114241389A (en) Combustion substance identification method, electronic device, and readable storage medium
CN103618892A (en) Method for detecting television and television
CN113407461A (en) Interface test method and device, electronic equipment and storage medium
CN115330789A (en) Screen defect detection method, device, equipment and readable storage medium
TW201413443A (en) System and method for displaying test status and marking abnormalities
JP6757927B2 (en) Image processing method and program in the display screen
CN111539595A (en) Method, apparatus, computer device and storage medium for handling alarms
CN108419045B (en) Monitoring method and device based on infrared thermal imaging technology
US20110304467A1 (en) Image monitoring device and method
WO2018113344A1 (en) Vga interface test method, device and system
US11089295B2 (en) Display apparatus, apparatus for proof of play, and method for proof of play of contents
CN114446002B (en) Fire on-line monitoring method, device, medium and system
KR20120127067A (en) Apparatus and method for determining screen equivalency to test compatibility
CN112965911B (en) Interface abnormity detection method and device, computer equipment and storage medium
CN115934179A (en) Service function control method and equipment
CN110674012B (en) Information indication method, device and storage medium
KR20180094731A (en) Apparatus and method for detecting screen recoding in mobile device
CN112817868A (en) Information processing method, apparatus and medium

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