Open fire detection method and system based on Hongmeng operating system

Through the open flame detection method based on Hongmeng operating system, image collection and segmentation strategies are used to generate accurate alarm information, which solves the problems of slow response speed and high false alarm rate of traditional open flame prevention and control methods, and improves the safety and detection of open flame prevention and control areas. accuracy.

CN118658130BActive Publication Date: 2024-10-25JIANGSU RUNKAIHONG DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411151764.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-10-25
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

The traditional open flame prevention and control method relies on manual inspection and simple sensor alarms. It has problems such as long inspection cycle, slow response speed, and high false alarm rate. It is difficult to meet the actual needs in complex environments, especially when safety prevention needs to be carried out according to the open flame area. Control the need to generate accurate alarm information in a timely manner.

Method used

Based on the open flame detection method of Hongmeng operating system, the PLC controller controls the acquisition equipment to collect images of the open flame prevention and control area, uses the open flame segmentation strategy and distance restriction strategy to process the fire source detection image, and generates regional alarm information and distance alarm information. Sent to Hongmeng warning device.

Benefits of technology

It achieves safety prevention and control based on the actual open flame area, generates accurate alarm information in a timely manner, improves the safety of the open flame prevention and control area, and ensures the accuracy of open flame detection results in the area and timely warning of personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658130B_ABST
    Figure CN118658130B_ABST
Patent Text Reader

Abstract

The present invention provides an open fire detection method and system based on the Hongmeng operating system. The method and system control the Hongmeng acquisition device based on a PLC controller to perform image acquisition on the open fire prevention and control area to obtain a fire source detection image corresponding to the open fire prevention and control area; the open fire area in the fire source detection image is segmented according to the open fire segmentation strategy to obtain a residual fire detection image, and when it is determined that the residual fire detection image does not contain personnel information but has an open fire pixel value, regional alarm information is generated; when it is determined that the residual fire detection image contains personnel information, the residual fire detection image is monitored based on the distance limitation strategy and the open fire pixel value to generate distance alarm information; and the regional alarm information or the distance alarm information is sent to the Hongmeng warning device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to data processing technology, and in particular to an open flame detection method and system based on Hongmeng operating system. Background Art

[0002] Hongmeng system is a new distributed operating system for all scenarios. It can organically connect people, equipment, and scenarios, and is therefore widely used. With the continuous improvement of fire safety requirements in modern society, safety monitoring of areas with open flames has become an important part of the work.

[0003] Traditional open fire prevention and control mainly relies on manual inspections and simple sensor alarms. This method has problems such as long inspection cycles, slow response speeds, and high false alarm rates. Especially in some complex environments and other areas, traditional monitoring methods are difficult to meet actual needs.

[0004] Therefore, how to conduct safety control based on the actual open fire area and generate accurate alarm information in a timely manner to warn personnel has become an urgent problem that needs to be solved. Summary of the invention

[0005] The present invention provides an open fire detection method and system based on the Hongmeng operating system, which can perform safety prevention and control according to the actual open fire area and generate accurate alarm information in time to warn personnel.

[0006] A first aspect of an embodiment of the present invention provides an open fire detection method based on Hongmeng operating system, including:

[0007] Based on the PLC controller, the Hongmeng acquisition device is controlled to collect images of the open fire prevention and control area to obtain a fire source detection image corresponding to the open fire prevention and control area;

[0008] Segmenting the open fire area in the fire source detection image according to the open fire segmentation strategy to obtain a residual fire detection image, and generating regional alarm information when it is determined that the residual fire detection image does not contain personnel information and has an open fire pixel value;

[0009] When it is determined that there is personnel information in the afterfire detection image, the afterfire detection image is monitored based on the distance restriction strategy and the open fire pixel value to generate distance alarm information;

[0010] Send the area alarm information or the distance alarm information to the Hongmeng warning device.

[0011] Optionally, in a possible implementation manner of the first aspect, segmenting the open fire area in the fire source detection image according to the open fire segmentation strategy to obtain a residual fire detection image, and generating regional alarm information when it is determined that the residual fire detection image does not have personnel information but has an open fire pixel value, includes:

[0012] Based on OpenCV, the heated brackets in the fire source detection image are identified to obtain the bracket contours corresponding to each heated bracket, and a coordinate system is constructed in the fire source detection image based on a preset origin;

[0013] Obtaining the minimum horizontal coordinate and the maximum horizontal coordinate, and the minimum vertical coordinate and the maximum vertical coordinate of each of the bracket contours in the fire source detection image;

[0014] Obtain a limiting ordinate according to the sum of a preset limiting value and the maximum ordinate, and construct a horizontal dividing vertical line perpendicular to the Y axis based on the limiting ordinate and the minimum ordinate;

[0015] Constructing a vertical segmentation line perpendicular to the X-axis based on the minimum horizontal coordinate and the maximum horizontal coordinate, and obtaining an open fire area of ​​the fire source detection image according to the horizontal segmentation line and the vertical segmentation line;

[0016] Deleting the fire source detection image according to the open fire area to obtain a residual fire detection image;

[0017] When it is determined that the residual fire detection image does not contain any personnel information but contains an open fire pixel value, regional alarm information is generated.

[0018] Optionally, in a possible implementation manner of the first aspect, when determining that the afterfire detection image contains personnel information, monitoring the afterfire detection image based on a distance restriction strategy and the open fire pixel value to generate distance alarm information includes:

[0019] When it is determined that there is personnel information in the afterfire detection image, a personnel outline corresponding to the personnel information in the afterfire detection image is obtained based on OpenCV, and contour pixel points in the personnel outline are counted to obtain a personnel pixel point set;

[0020] Determine the open fire pixel points in the afterfire detection image according to the open fire pixel values, and count the open fire pixel points to obtain an open fire pixel point set;

[0021] Performing mean calculation based on the extreme values ​​of the horizontal coordinates in the set of open fire pixel points to obtain the horizontal coordinates of the open fire, performing mean calculation based on the extreme values ​​of the vertical coordinates in the set of open fire pixel points to obtain the vertical coordinates of the open fire, and obtaining the center point of the open fire based on the horizontal coordinates of the open fire and the vertical coordinates of the open fire;

[0022] Determine the distance between the center point of the open fire and each contour pixel point in the set of pixel points of the personnel as the afterfire distance;

[0023] When it is determined that the residual fire distance is greater than the preset limit distance, a distance alarm message is generated.

[0024] Optionally, in a possible implementation of the first aspect, in response to the configuration information sent by the Hongmeng warning device, extracting the heating appliance in the fire source detection image, receiving the heating type configured by the Hongmeng warning device for the heating appliance and multiple heating stages of the heating type, and obtaining the current time;

[0025] Extracting the heating duration of each heating stage, and obtaining the heating time period of each heating stage based on the current moment and the heating duration of the corresponding heating stage;

[0026] The fire intensity of each heating stage is configured according to the fire intensity configuration strategy and the heating period, so as to obtain a fire intensity configuration image corresponding to each heating stage.

[0027] Optionally, in a possible implementation of the first aspect, the extracting the heated appliance in the fire source detection image in response to the configuration information sent by the Hongmeng warning device includes:

[0028] In response to the configuration information sent by the Hongmeng warning device, extracting the outline intersecting with the bracket outline and located above the bracket outline in the fire source detection image based on OpenCV as the appliance outline;

[0029] The fire source detection image is extracted according to the appliance contour to obtain the heated appliance in the fire source detection image.

[0030] Optionally, in a possible implementation of the first aspect, configuring the fire intensity of each heating stage according to the fire intensity configuration strategy and the heating period to obtain a fire intensity configuration image corresponding to each heating stage includes:

[0031] Based on the preset adjustment time, the beginning and the end of each heating period are respectively shortened and adjusted to obtain a configuration period corresponding to each heating stage;

[0032] Selecting the fire source detection images within each of the configuration time periods at intervals as the images to be selected, and determining the maximum height of the open flame and the average height of the open flame of each of the images to be selected;

[0033] A first coefficient value is obtained based on the product of the maximum height of the open flame and the first weight value, and a second coefficient value is obtained based on the product of the average height of the open flame and the second weight value;

[0034] Based on the sum of the first coefficient value and the second coefficient value, a fire intensity coefficient corresponding to each of the images to be selected is obtained, and the fire intensity coefficients of the images to be selected within the configuration period are averaged to obtain an average coefficient corresponding to each of the configuration period;

[0035] The fire intensity difference is obtained according to the absolute value of the difference between the average coefficient and the fire intensity coefficient of the image to be selected within the corresponding configuration period, and the image to be selected corresponding to the smallest fire intensity difference is selected as the fire intensity configuration image corresponding to the corresponding heating stage.

[0036] Optionally, in a possible implementation manner of the first aspect, the step of selecting the fire source detection images within each of the configured time periods as the images to be selected, and determining the maximum height of an open flame and an average height of an open flame of each of the images to be selected, comprises:

[0037] Interval-selecting fire source detection images within each of the configured time periods as images to be selected, counting the open fire pixel points in the images to be selected, and obtaining an open fire pixel point set corresponding to the images to be selected;

[0038] Based on OpenCV, the shape of the set of open fire pixel points in the image to be selected is recognized to obtain the open fire outline, and the outline pixel points corresponding to the upper outline line in the open fire outline are obtained as fire contour points;

[0039] Obtaining the ordinate of the fire contour point as the fire height, and selecting the largest fire height as the maximum height of the open flame of each of the images to be selected;

[0040] Counting the number of the corresponding fire contour points based on each fire height, obtaining the number of equal heights corresponding to each fire height, and obtaining the total number of the fire contour points;

[0041] According to the ratio of the number of equal heights to the total number, the number percentage corresponding to the fire height is obtained, and the fire height corresponding to the largest number percentage is selected as the average height of the open flame of each of the images to be selected.

[0042] Optionally, in a possible implementation of the first aspect, the method further includes:

[0043] In response to the monitoring information sent by the Hongmeng warning device, extract the heating device in the fire source detection image, and receive the heating type selected by the Hongmeng warning device based on the heating device;

[0044] When it is determined that there is no personnel information in the fire source detection image, a fire configuration image corresponding to the heating type of the heating device is retrieved based on the heating stage, and the maximum height of the open flame in the fire configuration image is obtained as the standard height;

[0045] According to the open fire pixel value, the maximum height of the open fire in the fire source detection image is obtained in real time as the actual height;

[0046] When it is determined that the actual height is greater than the standard height, a fire alarm message is generated and sent to the Hongmeng warning device.

[0047] Optionally, in a possible implementation of the first aspect, the method further includes:

[0048] Obtaining a bottom contour line below the device contour, and determining an intersection point between the bottom contour line and the bracket contour as a placement point;

[0049] Determine the minimum horizontal coordinate in the bottom contour line as the first tool coordinate, and the maximum horizontal coordinate as the second tool coordinate, and obtain the minimum horizontal coordinate corresponding to the placement point as the first placement coordinate, and the maximum horizontal coordinate as the second placement coordinate;

[0050] Obtaining a first placement distance according to a difference between the first placement coordinate and the first tool coordinate;

[0051] Obtaining a second placement distance based on a difference between the second tool coordinate and the second placement coordinate;

[0052] A placement deviation value is obtained based on the absolute value of the difference between the first placement distance and the second placement distance. When it is determined that the placement deviation value is greater than the preset placement value, a placement alarm message is generated and sent to the Hongmeng warning device.

[0053] A second aspect of an embodiment of the present invention provides an open fire detection system based on the Hongmeng operating system, including:

[0054] An acquisition module is used to control the Hongmeng acquisition device to acquire images of the open fire prevention and control area based on the PLC controller to obtain a fire source detection image corresponding to the open fire prevention and control area;

[0055] a segmentation module, configured to segment the open fire area in the fire source detection image according to the open fire segmentation strategy to obtain a residual fire detection image, and generate regional alarm information when it is determined that the residual fire detection image does not contain personnel information and has an open fire pixel value;

[0056] A monitoring module, for monitoring the afterfire detection image based on a distance restriction strategy and the open fire pixel value to generate distance alarm information when determining that there is personnel information in the afterfire detection image;

[0057] A sending module is used to send the area alarm information or the distance alarm information to the Hongmeng warning device.

[0058] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a memory, a processor and a computer program, wherein the computer program is stored in the memory, and the processor runs the computer program to execute the first aspect of the present invention and various methods that may be involved in the first aspect.

[0059] According to a fourth aspect of an embodiment of the present invention, a storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the first aspect of the present invention and various methods that may be involved in the first aspect.

[0060] The beneficial effects of the present invention are as follows:

[0061] 1. The present invention can perform safety control according to the actual open fire area, generate accurate alarm prompt information in time, and improve the safety of the open fire control area. Among them, the present invention can collect images of the open fire control area, and can segment the open fire area in the collected fire source detection image, so as to perform open fire analysis on the remaining residual fire detection image. When there are no personnel in the remaining area and there is an open fire at the same time, the corresponding regional alarm information can be generated in time to remind the personnel that there is an abnormal open fire in the area to ensure the safety of the area. Secondly, the present invention can also determine whether the corresponding open fire is abnormal when there are personnel and open fire in the area according to the distance restriction strategy, so as to generate a distance alarm information for the situation with personnel and send it to the Hongmeng warning device corresponding to the personnel, so as to remind the personnel to pay attention to the open fire.

[0062] 2. The present invention can segment the open fire area in the fire source detection image, so as to perform open fire analysis and obtain corresponding alarm information. Among them, the present invention can establish a coordinate system in the fire source detection image to determine the bracket outline, and then subsequently determine the accurate open fire area for open fire detection, so as to make the detection result more accurate and ensure regional safety. Secondly, the present invention can determine that when the open fire is far away and is not a normal open fire generated by a person, it can generate an alarm information to prompt the person according to the distance between the open fire and the person.

[0063] 3. The present invention can configure common equipment and the size of open flames to improve the accuracy of data for detecting open flames. Among them, the present invention can configure the state of normal open flames in the area, so that in the subsequent real-time monitoring, the current open flame situation can be accurately judged, so that the generated alarm information is more accurate, and when the actual height of the real-time open flame is greater than the standard height, the present invention can judge that the current fire is too large and abnormal, thereby generating fire alarm information and sending it to the Hongmeng warning device to remind personnel that the current fire is abnormal and to check it in time to ensure safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 A flow chart of an open flame detection method based on Hongmeng operating system provided by the present invention;

[0065] Figure 2 A schematic diagram of the structure of an open fire detection system based on the Hongmeng operating system provided by the present invention;

[0066] Figure 3 A schematic diagram of the hardware structure of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0067] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0068] like Figure 1 As shown, the present invention provides an open fire detection method based on Hongmeng operating system, comprising:

[0069] S1, based on the PLC controller, controls the Hongmeng acquisition device to collect images of the open fire prevention and control area, and obtains a fire source detection image corresponding to the open fire prevention and control area.

[0070] It should be noted that the existing technology usually detects areas without fire sources. When a fire source is detected in the corresponding area, it can be said that a fire accident may occur, and an early warning can be given. However, this solution can perform real-time monitoring of areas where open flames will originally appear. For example, the kitchen area with open flames can be monitored to ensure that the corresponding open flames will not appear accidentally and cause fire accidents.

[0071] It can be understood that the PLC controller is a device that can control electrical equipment, the Hongmeng acquisition device is an acquisition device with the Hongmeng system, which can be a camera for shooting, the open fire prevention and control area is an area where open flames usually appear, such as the kitchen area, and the fire source detection image is an image taken when detecting the fire source.

[0072] It is worth mentioning that the Hongmeng acquisition device can collect images of the open fire prevention and control area in a head-on position, so that the fire situation of the open fire can be clearly captured.

[0073] Through the above implementation manner, the present invention can obtain fire source detection images to monitor open flames and prevent accidents.

[0074] S2, segmenting the open fire area in the fire source detection image according to the open fire segmentation strategy to obtain a residual fire detection image, and generating regional alarm information when it is determined that the residual fire detection image does not contain personnel information but has an open fire pixel value.

[0075] It should be noted that when monitoring a spatial area that originally had an open flame to obtain a fire source detection image, after the image of the open flame area is segmented, if there is no person in the remaining image and there is still an open flame, it can be said that except for the original open flame area, the rest of the area still has an open flame and there are no people. Smoking and lighting a fire can be ruled out, and a fire accident may occur in the area, so an alarm message can be generated to remind people to take timely precautions.

[0076] It can be understood that the open flame area is the area where the fire source is generated, such as the flame area of ​​the gas stove in the kitchen. The residual fire detection image is the remaining image obtained after segmenting the open flame area in the fire source detection image. The open flame pixel value is the pixel value of the open flame, such as red. The regional alarm information is the prompt information for alarming the area, for example, the prompt alarm information that the corresponding area has an open flame.

[0077] For example: when monitoring a kitchen area where an open flame appears, after segmenting the open flame area at the gas stove in the acquired image, it is detected that there is still an open flame in the remaining area. At the same time, it is found that there is no person in the kitchen. This indicates that an abnormal fire source has appeared in the kitchen. Therefore, to ensure safety, an alarm message will be generated so that subsequent personnel can extinguish the fire in time.

[0078] Through the above implementation, the present invention can generate regional alarm information according to actual conditions, so as to send it to corresponding personnel later, so as to take measures in time to ensure regional safety.

[0079] In some embodiments, step S2 (segmenting the open fire area in the fire source detection image according to the open fire segmentation strategy to obtain a residual fire detection image, and determining that the residual fire detection image does not contain personnel information and has an open fire pixel value, generating regional alarm information) includes:

[0080] S21, identifying the heated supports in the fire source detection image based on OpenCV, obtaining the support contours corresponding to the heated supports, and constructing a coordinate system in the fire source detection image based on a preset origin.

[0081] It can be understood that the heated bracket is a bracket that can be heated, such as a gas bracket on a gas stove, the bracket contour is the contour of the bracket, and the preset origin is a pre-set origin position, which can be any point, such as the position point in the lower left corner of the image.

[0082] It is not difficult to understand that the flame is usually inside the heated bracket. Therefore, a coordinate system can be established in the fire source detection image to determine the bracket outline, and then the exact open flame area can be determined later for open flame detection, making the detection results more accurate and ensuring regional safety.

[0083] S22, obtaining the minimum horizontal coordinate and the maximum horizontal coordinate, and the minimum vertical coordinate and the maximum vertical coordinate of each of the bracket contours in the fire source detection image.

[0084] It is understandable that the minimum horizontal and vertical coordinates and the maximum horizontal and vertical coordinates can be obtained according to the coordinates corresponding to the bracket outline, so as to facilitate the subsequent determination of the corresponding open fire area.

[0085] Among them, the minimum horizontal coordinate is the minimum value of the horizontal coordinate, the maximum horizontal coordinate is the maximum value of the horizontal coordinate, the minimum vertical coordinate is the minimum value of the vertical coordinate, and the maximum vertical coordinate is the maximum value of the vertical coordinate.

[0086] S23, obtaining a restricted ordinate according to the sum of a preset restricted value and the maximum ordinate, and constructing a horizontal dividing vertical line perpendicular to the Y axis based on the restricted ordinate and the minimum ordinate.

[0087] It is understandable that when the open flame is a big fire, the corresponding flame may exceed the height of the heated support, but the flame will not be too high. Therefore, a numerical value can be pre-set according to the actual height of the flame exceeding the support, which can include the highest burning height of the open flame, thereby improving the accuracy of the subsequent open flame area.

[0088] Among them, the preset limit value is a pre-set value, the limit vertical coordinate is the vertical coordinate for determining the open fire area, and the horizontal dividing vertical line is a horizontal dividing line perpendicular to the Y-axis.

[0089] It is not difficult to understand that by summing the preset limit value and the value of the maximum ordinate, the obtained limit ordinate is the height value that the open flame will not exceed, so the vertical position height of the open flame area can be determined.

[0090] Through the above implementation, the present invention can obtain a horizontal segmentation vertical line, so as to accurately determine the open fire area of ​​the fire source detection image together with the subsequent vertical segmentation vertical line.

[0091] S24, constructing a longitudinal segmentation vertical line perpendicular to the X-axis based on the minimum horizontal coordinate and the maximum horizontal coordinate, and obtaining an open fire area of ​​the fire source detection image according to the horizontal segmentation vertical line and the longitudinal segmentation vertical line.

[0092] It can be understood that the vertical dividing line is a horizontal dividing line perpendicular to the X-axis.

[0093] It is not difficult to understand that the enclosed area obtained according to the horizontal dividing vertical line and the vertical dividing vertical line is the open fire area of ​​the fire source detection image.

[0094] S25, deleting the fire source detection image according to the open fire area to obtain a residual fire detection image.

[0095] It can be understood that the open fire area in the fire source detection image is deleted to obtain a residual fire detection image without the open fire area image, so that the residual fire detection image can be subsequently detected to determine whether there is an open fire in the remaining area. When an open fire is detected, an alarm can be issued in time to ensure the safety of the area.

[0096] S26, when it is determined that the residual fire detection image does not contain any personnel information but contains an open fire pixel value, generating regional alarm information.

[0097] It can be understood that personnel image recognition can be performed on the residual fire detection image to determine that there is no personnel information in the residual fire detection image. At the same time, when the residual fire detection image is detected with an open fire pixel value, it can be said that an open fire has appeared in the non-open fire area of ​​the corresponding area, and there are no personnel, so dangerous accidents may occur. Therefore, regional alarm information can be generated for subsequent sending to the corresponding personnel so that they can take timely measures to ensure regional safety.

[0098] S3: When it is determined that the residual fire detection image contains personnel information, the residual fire detection image is monitored based on the distance restriction strategy and the open fire pixel value to generate distance alarm information.

[0099] It can be understood that when the presence of people is detected in the space through the residual fire detection image, it can be determined whether the corresponding open fire is normally generated by the person based on the distance between the open fire and the person. For example, when a person may be smoking in the kitchen, the open fire pixel value will also be detected in the corresponding residual fire detection image, but the corresponding open fire position is close to the person, so no alarm information will be generated. However, when the open fire is far away and it is not an open fire normally generated by a person, an alarm information can be generated to alert the person.

[0100] Among them, the distance alarm information is the open fire alarm information generated according to the distance.

[0101] Through the above implementation, the present invention can obtain distance alarm information so as to subsequently send it to relevant personnel so as to extinguish the fire in time and ensure the safety of personnel.

[0102] In some embodiments, step S3 (when determining that the afterfire detection image contains personnel information, monitoring the afterfire detection image based on the distance restriction strategy and the open fire pixel value to generate distance alarm information) includes:

[0103] S31, when it is determined that there is personnel information in the residual fire detection image, the personnel contour corresponding to the personnel information in the residual fire detection image is obtained based on OpenCV, and the contour pixel points in the personnel contour are counted to obtain a personnel pixel point set.

[0104] It can be understood that the personnel information is the personnel image information, the personnel contour is the contour of the personnel image, the contour pixel points are the pixel points of the personnel contour in the residual fire detection image, and the personnel pixel point set is the set of personnel contour pixel points.

[0105] Through the above implementation, the present invention can obtain a set of pixel points of a person, so that the distance between the person and the open fire can be accurately determined later, which is convenient for generating corresponding alarm information.

[0106] S32, determining the open fire pixel points in the afterfire detection image according to the open fire pixel values, and counting the open fire pixel points to obtain an open fire pixel point set.

[0107] It can be understood that an open fire pixel point is a pixel point having an open fire pixel value, and an open fire pixel point set is a set of open fire pixel points.

[0108] S33, performing mean calculation based on the extreme values ​​of the horizontal coordinates in the open fire pixel point set to obtain the horizontal coordinate of the open fire, performing mean calculation based on the extreme values ​​of the vertical coordinates in the open fire pixel point set to obtain the vertical coordinate of the open fire, and obtaining the center point of the open fire based on the horizontal coordinate of the open fire and the vertical coordinate of the open fire.

[0109] It can be understood that the extreme values ​​of the horizontal coordinate are the maximum and minimum values ​​of the horizontal coordinate, and the open fire horizontal coordinate is the central horizontal coordinate of the pixel point of the open fire. For example, when the maximum value of the horizontal coordinate in the open fire pixel point set is 10, and the minimum value of the horizontal coordinate in the open fire pixel point set is 6, then the open fire horizontal coordinate is (10+6) / 2=8, and the extreme values ​​of the vertical coordinate are the maximum and minimum values ​​of the vertical coordinate, and the open fire vertical coordinate is the central vertical coordinate of the pixel point of the open fire. For example, when the maximum value of the vertical coordinate in the open fire pixel point set is 12, and the minimum value of the vertical coordinate in the open fire pixel point set is 6, then the open fire vertical coordinate is (12+6) / 2=9.

[0110] The center point of the open flame is the position point corresponding to the coordinates of the center of the open flame. For example, when the horizontal coordinate of the open flame is 8 and the vertical coordinate of the open flame is 9, the center point of the open flame is the position point corresponding to the coordinates (8,9).

[0111] Through the above implementation, the present invention can obtain the center point of the open fire, so as to subsequently calculate the distance between the open fire and the person, thereby generating corresponding alarm information.

[0112] S34, determining the distance between the center point of the open fire and each contour pixel point in the personnel pixel point set as the afterfire distance.

[0113] It can be understood that the residual fire distance is the distance between the center point of the open fire and each contour pixel point.

[0114] Through the above implementation mode, the present invention can obtain the residual fire distance, so as to facilitate the subsequent judgment of the abnormality of the fire source, thereby generating distance alarm information so that relevant personnel can take timely prevention and control measures.

[0115] S35, when it is determined that the residual fire distance is greater than the preset limit distance, generating distance alarm information.

[0116] It is understandable that when the residual fire distance is greater than the preset limit distance, it may indicate that the corresponding identified open fire may not be caused by people smoking or other normal factors. Therefore, a distance alarm information will be generated so that personnel can take timely prevention and control measures to ensure safety.

[0117] S4, sending the area alarm information or the distance alarm information to the Hongmeng warning device.

[0118] It is understandable that the Hongmeng warning device is a terminal device that can receive information, such as mobile phones, computers, etc.

[0119] It is not difficult to understand that the generated area alarm information or distance alarm information will be sent to the Hongmeng warning device of relevant personnel so that personnel can check it in time and take quick measures to ensure the safety of the area.

[0120] It should be noted that, when personnel use open flames to perform tasks, the flames of the corresponding open flames at different stages may change. For example, when personnel use open flames to cook in the kitchen, different pots and cooking styles have different sizes of the corresponding open flames. For example, the equipment properties of frying pans and woks are different. The bottom of the frying pan is flat, and when the frying pan is placed on the heated support, the height of the flame is below the bottom, while the bottom of the wok is convex, and when the wok is placed on the heated support, the flame will exceed the bottom of the pot. In addition, the open flames of different cooking styles may also be different. For example, a low flame may be used in the first stage, and a high flame may be used in the next stage. Therefore, in order to make the data for detecting open flames more accurate, common equipment and the size of open flames can be configured, which also includes:

[0121] A1, respond to the configuration information sent by the Hongmeng warning device, extract the heating appliance in the fire source detection image, receive the heating type configured by the Hongmeng warning device for the heating appliance, and multiple heating stages of the heating type, and obtain the current time.

[0122] It should be noted that in order to ensure that the open flame can be accurately monitored in real time in the future, information configuration of the open flame status in normal use can be performed.

[0123] It can be understood that the configuration information is the information that personnel use to configure the operation of the Hongmeng warning device. The heated appliance is an appliance that can be heated, such as a wok or a casserole. The heated type is a type that can be operated with an open flame, such as the cooking type in cooking, making soup, cooking, etc. The heating stage is the stage where an open flame is used for operation, such as the slow cooking stage over low heat and the stir-frying stage over high heat. The current moment is the current time value for the configuration.

[0124] Through the above implementation, the present invention can configure the state of normal open fire in the area, so that in the subsequent real-time monitoring, the current open fire situation can be accurately judged, making the generated alarm information more accurate.

[0125] In some embodiments, step A1 (the step of responding to the configuration information sent by the Hongmeng warning device and extracting the heated appliance in the fire source detection image) includes:

[0126] A11, in response to the configuration information sent by the Hongmeng warning device, extract the outline in the fire source detection image that intersects with the bracket outline and is above the bracket outline as the appliance outline based on OpenCV.

[0127] It will be appreciated that the appliance contour is the contour of the heated appliance.

[0128] It is not difficult to understand that when personnel send configuration information to the Hongmeng warning device, the fire source detection image can be automatically recognized to obtain the outline of the appliance currently being configured, so as to facilitate the subsequent determination of the corresponding heating appliance and configure the open flame data information for the relevant heating appliance, so as to make the subsequent monitoring results more accurate.

[0129] A12, extracting the fire source detection image according to the outline of the appliance to obtain the heating appliance in the fire source detection image.

[0130] It can be understood that by extracting the image in the outline of the appliance in the fire source detection image, the heated appliance in the fire source detection image can be obtained, which is convenient for subsequent open flame detection.

[0131] A2, extracting the heating duration of each heating stage, and obtaining the heating time period of each heating stage based on the current moment and the heating duration of the corresponding heating stage.

[0132] It is understandable that when using open flames for cooking, the cooking stages corresponding to different types of heating are different, and thus the flame size of the open flame will also change. Therefore, it is necessary to extract the corresponding heating duration to obtain the heating period, which will facilitate the subsequent selection of a more suitable fire configuration image in the heating period, thereby facilitating subsequent open flame monitoring.

[0133] Among them, the heating duration is the length of time of heating, for example, 5 minutes, 20 minutes, and the heating period is the heating time period. For example, the current time of the low fire stage is 14:04, and this is the low fire stage and the corresponding heating duration is 5 minutes, then the obtained heating period is 14:04-14:09.

[0134] Through the above implementation, the present invention can obtain the heating period corresponding to the heating stage, so that a more reasonable image can be selected in the heating period later, so that the accuracy of the alarm information can be improved when performing subsequent open fire monitoring.

[0135] A3, configuring the fire intensity of each heating stage according to the fire intensity configuration strategy and the heating period, and obtaining a fire intensity configuration image corresponding to each heating stage.

[0136] It can be understood that the fire intensity refers to the size of an open flame, and the fire intensity configuration image refers to an image with an open flame intensity.

[0137] For example, when a frying pan is used for cooking, if the corresponding first heating stage is a low-fire stage, a fire image of the corresponding heating appliance in the low-fire stage can be configured in advance.

[0138] Through the above implementation, the present invention can obtain a fire configuration image, so that when subsequently monitoring the open fire, the corresponding real-time fire source detection image can be compared with the fire configuration image to determine the open fire situation.

[0139] In some embodiments, step A3 (configuring the fire intensity of each heating stage according to the fire intensity configuration strategy and the heating period to obtain a fire intensity configuration image corresponding to each heating stage) includes:

[0140] A31, based on the preset adjustment time, respectively shorten and adjust the beginning and end of each heating period to obtain a configuration period corresponding to each heating stage.

[0141] It is understandable that the fire intensity will be adjusted between different stages. Therefore, the fire intensity at the beginning and end of the corresponding heating period will change. For example, a small fire will be changed to a large fire. In order to accurately identify the fire situation corresponding to the heating stage, the beginning and end of the heating period can be adjusted to a preset adjustment time reduction, thereby obtaining the configuration time period of the heating stage, which is convenient for the subsequent selected images to perform more accurate open flame detection.

[0142] Among them, the preset adjustment time is a pre-set time, which may be 10s, and the configuration time period is the time period obtained by reducing the beginning and end of the heating period by the preset adjustment time period. For example, when the heating period is 14:04-14:09 and the preset adjustment time period is 10s, the configuration time period may be 14:14-14:19.

[0143] A32, selecting the fire source detection images within each of the configured time periods at intervals as images to be selected, and determining the maximum height and average height of the open flame of each of the images to be selected.

[0144] It is understandable that since there are more fire source detection images in the configuration period and the differences between the fire source detection images collected in a shorter time are smaller, in order to reduce the amount of data processing, the fire source detection images may be selected at intervals.

[0145] Among them, the image to be selected is the fire source detection image selected within the configuration time period, so as to determine the open flame height information, the maximum open flame height is the maximum height of the open flame in the image to be selected, and the average open flame height is the average height of the open flame in the image to be selected.

[0146] In some embodiments, step A32 (selecting the fire source detection images within each of the configured time periods as the images to be selected, and determining the maximum height of the open flame and the average height of the open flame of each of the images to be selected) includes:

[0147] A321, select the fire source detection images within each of the configured time periods at intervals as the images to be selected, count the open fire pixel points in the images to be selected, and obtain the open fire pixel point set corresponding to the images to be selected.

[0148] It can be understood that the fire source detection images can be selected at intervals within the configured time period. For example, a fire source detection image can be selected every 30 seconds, so that the selected fire source detection images can be used as images to be selected, and then the open flame pixel points in the selected images can be counted to obtain the open flame pixel point set corresponding to the image to be selected, so as to subsequently determine the maximum open flame height and the average open flame height of the open flame in the image to be selected.

[0149] A322, based on OpenCV, recognize the shape of the set of open fire pixel points in the image to be selected, obtain the open fire contour, and obtain the contour pixel points corresponding to the upper contour line in the open fire contour as the fire contour points.

[0150] It can be understood that the open flame contour is a shape contour composed of a set of open flame pixel points in the image to be selected, and the fire contour point is the contour pixel point corresponding to the upper contour line in the open flame contour. For example, when a frying pan is placed above the open flame, the contour pixel point corresponding to the contour line of the bottom contour of the frying pan is the fire contour point.

[0151] Through the above implementation, the present invention can obtain fire contour points, so as to facilitate the subsequent determination of the maximum height and average height of the open flame.

[0152] A323, obtaining the ordinate of the fire contour point as the fire height, and selecting the largest fire height as the maximum height of the open flame of each of the images to be selected.

[0153] It can be understood that the fire height is the value of the vertical coordinate of the fire contour point. For example, when the vertical coordinate of the fire contour point is 10, the corresponding fire height is 10, so the maximum value of the fire height can be used as the maximum height of the open flame.

[0154] A324, based on each fire height, count the number of corresponding fire contour points, obtain the number of equal heights corresponding to each fire height, and obtain the total number of fire contour points.

[0155] It can be understood that the number of equal heights is the number of fire contour points having the same fire height, and the total number of fire contour points is the number of all fire contour points.

[0156] Through the above implementation, the present invention can obtain the number of equal heights and the total number, so as to facilitate the subsequent determination of the average height of the open flame.

[0157] A325, according to the ratio of the number of equal heights to the total number, obtain the number percentage corresponding to the fire height, and select the fire height corresponding to the largest number percentage as the average height of the open flame of each of the images to be selected.

[0158] It can be understood that the quantity percentage is the ratio of the equal-height quantity to the total quantity. For example, when the equal-height quantity corresponding to the fire height of 8 is 200, and the total quantity is 1000, then the quantity percentage corresponding to the fire height of 8 is 200 / 1000=1 / 5.

[0159] It is not difficult to understand that when the fire height of 7 accounts for 3 / 5, the fire height of 8 accounts for 1 / 5, the fire height of 10 accounts for 1 / 10, and the fire height of 9 accounts for 1 / 10, then the fire height of 7 corresponding to the proportion of 3 / 5 can be used as the average height of the open flame in the image to be selected.

[0160] A33, obtains a first coefficient value based on the product of the maximum height of the open flame and the first weight value, and obtains a second coefficient value based on the product of the average height of the open flame and the second weight value.

[0161] It can be understood that the first weight value is the weight value of the maximum height of the open flame, which can be pre-set manually, and the first coefficient value is the product of the maximum height of the open flame and the first weight value, and the second weight value is the weight value of the average height of the open flame, which can be pre-configured manually, and the second coefficient value is the product of the average height of the open flame and the second weight value.

[0162] It is worth mentioning that the fire is relatively stable in the corresponding heating stage, so the corresponding average height of the fire can better reflect the stability of the fire. Therefore, in order to ensure that the selected image is more valuable for reference, the pre-set second weight value is greater than the first weight value.

[0163] Through the above implementation, the present invention can obtain the first coefficient value and the second coefficient value, so as to obtain the fire intensity coefficient later, thereby selecting the image to be selected.

[0164] A34, based on the sum of the first coefficient value and the second coefficient value, obtain the fire intensity coefficient corresponding to each of the images to be selected, calculate the average of the fire intensity coefficients of the images to be selected within the configuration time period, and obtain the average coefficient corresponding to each of the configuration time periods.

[0165] It can be understood that the fire intensity coefficient is the fire intensity coefficient value corresponding to the image to be selected, which is the sum of the first coefficient value and the second coefficient value, and the average coefficient is the average value of the fire intensity coefficients of the images to be selected in each configuration time period.

[0166] A35, obtain the fire intensity difference according to the average coefficient and the absolute value of the fire intensity coefficient difference of the image to be selected within the corresponding configuration period, and select the image to be selected corresponding to the smallest fire intensity difference as the fire intensity configuration image corresponding to the corresponding heating stage.

[0167] It is understandable that in order to select an image that more accurately matches the corresponding heating stage, it can be determined based on the fire intensity difference, and the image to be selected corresponding to the smallest fire intensity difference can be used as the fire configuration image corresponding to the corresponding heating stage.

[0168] Among them, the fire intensity difference is the absolute value of the difference between the average coefficient and the fire intensity coefficient of the image to be selected in the corresponding configuration period. For example, when the average coefficient is 7.5, the fire intensity coefficients of the images to be selected in the corresponding configuration period are 7.9, 8, 6.9, etc., then the fire intensity differences are 0.4, 0.5, and 0.6 respectively. Since 0.4<0.5<0.6, the image to be selected corresponding to 0.4 can be used as the fire intensity configuration image corresponding to the corresponding heating stage.

[0169] In some embodiments, it also includes:

[0170] B1, respond to the monitoring information sent by the Hongmeng warning device, extract the heating appliance in the fire source detection image, and receive the heating type selected by the Hongmeng warning device based on the heating appliance.

[0171] It should be noted that when personnel have completed the configuration of all open flame usage, when personnel receive the monitoring information sent by the Hongmeng warning device, they can conduct real-time monitoring of the open fire prevention and control area.

[0172] It can be understood that the monitoring information is the command information for sending monitoring, so as to extract the corresponding heating appliance from the real-time monitored fire source detection image, and receive the heating type selected by the Hongmeng warning device according to the heating appliance, so as to subsequently compare it with the standard fire configuration image to achieve accurate open flame monitoring.

[0173] B2. When it is determined that there is no personnel information in the fire source detection image, a fire configuration image corresponding to the heating type of the heating device is retrieved based on the heating stage, and the maximum height of the open flame in the fire configuration image is obtained as the standard height.

[0174] It can be understood that when there is no personnel information in the fire source detection image, the fire configuration image of the corresponding heating type of the heating appliance at the corresponding heating stage is retrieved, and the maximum height of the open flame in the fire configuration image is used as the standard height, so as to facilitate the judgment of whether the fire in the fire source detection image is abnormal and realize real-time open flame monitoring.

[0175] B3, obtaining the maximum height of the open flame in the fire source detection image as the actual height in real time according to the open flame pixel value.

[0176] It can be understood that the actual height is the maximum height of the open flame in the fire source detection image obtained in real time.

[0177] B4. When it is determined that the actual height is greater than the standard height, a fire alarm message is generated and sent to the Hongmeng warning device.

[0178] It can be understood that when the actual height is greater than the standard height, it means that the current open flame height is higher than the standard height of the corresponding heating stage, and the fire is too large and abnormal. Therefore, a fire alarm information can be generated and sent to the Hongmeng warning device to remind personnel that the current fire is abnormal and to check it in time to ensure safety.

[0179] Among them, the fire alarm information is the alarm information that prompts the abnormal fire.

[0180] It should be noted that when people place the heating device in real life, the position may be offset, resulting in uneven heating and causing dangerous accidents. Therefore, in order to monitor and remind people in time, in some embodiments, it also includes:

[0181] C1, obtaining the bottom contour line below the device contour, and determining the intersection of the bottom contour line and the bracket contour as the placement point.

[0182] It can be understood that the bottom contour line is the contour line located at the bottom of the device contour.

[0183] It is not difficult to understand that when the heated device is placed on the heated support, the heated device and the heated support will have corresponding intersection points, so the corresponding intersection points can be used as placement points.

[0184] C2, determine the minimum horizontal coordinate in the bottom contour line as the first tool coordinate, and the maximum horizontal coordinate as the second tool coordinate, and obtain the minimum horizontal coordinate corresponding to the placement point as the first placement coordinate, and the maximum horizontal coordinate as the second placement coordinate.

[0185] It can be understood that the first tool coordinate is the minimum horizontal coordinate in the bottom contour line, the second tool coordinate is the maximum horizontal coordinate, the first placement coordinate is the minimum horizontal coordinate corresponding to the placement point, and the second placement coordinate is the maximum horizontal coordinate corresponding to the placement point.

[0186] Through the above-mentioned implementation, the present invention can obtain the first placement coordinate and the second placement coordinate, so as to judge the standardization of the position of the heating device.

[0187] C3, obtaining a first placement distance according to a difference between the first placement coordinate and the first tool coordinate.

[0188] It can be understood that the first placement distance is the difference between the first placement coordinate and the first tool coordinate.

[0189] Through the above implementation, the present invention can obtain the first placement distance, so as to determine the placement deviation value subsequently, and then generate placement alarm information.

[0190] C4, obtaining a second placement distance based on the difference between the second tool coordinate and the second placement coordinate.

[0191] It can be understood that the second placement distance is the difference between the second tool coordinate and the second placement coordinate.

[0192] C5. Obtain a placement deviation value based on the absolute value of the difference between the first placement distance and the second placement distance. When it is determined that the placement deviation value is greater than the preset placement value, generate a placement alarm message and send it to the Hongmeng warning device.

[0193] It can be understood that the placement deviation value is the absolute value of the difference between the first placement distance and the second placement distance, the preset placement value is a preset reference value for allowing position deviation, and the placement alarm information is a warning message indicating that the placement position of the device is offset.

[0194] It is not difficult to understand that when the placement deviation value is greater than the preset placement value, it means that the offset of the appliance is large, which may cause dangerous accidents. Therefore, the corresponding placement alarm information will be generated and sent to the Hongmeng warning device, so that relevant personnel can make timely adjustments to improve the safety of the open fire prevention and control area.

[0195] See also Figure 2 , is a schematic diagram of the structure of an open fire detection system based on the Hongmeng operating system provided in an embodiment of the present invention, and the open fire detection system based on the Hongmeng operating system includes:

[0196] An acquisition module is used to control the Hongmeng acquisition device to acquire images of the open fire prevention and control area based on the PLC controller to obtain a fire source detection image corresponding to the open fire prevention and control area;

[0197] a segmentation module, configured to segment the open fire area in the fire source detection image according to the open fire segmentation strategy to obtain a residual fire detection image, and generate regional alarm information when it is determined that the residual fire detection image does not contain personnel information and has an open fire pixel value;

[0198] A monitoring module, for monitoring the afterfire detection image based on a distance restriction strategy and the open fire pixel value to generate distance alarm information when determining that there is personnel information in the afterfire detection image;

[0199] A sending module is used to send the area alarm information or the distance alarm information to the Hongmeng warning device.

[0200] See also Figure 3 , is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention, the electronic device 30 includes: a processor 31, a memory 32 and a computer program; wherein

[0201] The memory 32 is used to store the computer program, which may also be a flash memory. The computer program is, for example, an application program, a functional module, etc. for implementing the above method.

[0202] The processor 31 is used to execute the computer program stored in the memory to implement each step performed by the device in the above method. For details, please refer to the relevant description in the above method embodiment.

[0203] Optionally, the memory 32 may be independent or integrated with the processor 31 .

[0204] When the memory 32 is a device independent of the processor 31, the device may further include:

[0205] The bus 33 is used to connect the memory 32 and the processor 31 .

[0206] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided by the various embodiments described above.

[0207] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0208] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.

[0209] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0210] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting open flames based on Hongmeng operating system, characterized in that: include: Based on the PLC controller, the Hongmeng acquisition device is controlled to collect images of the open fire prevention and control area to obtain a fire source detection image corresponding to the open fire prevention and control area; Segmenting the open fire area in the fire source detection image according to the open fire segmentation strategy to obtain a residual fire detection image, and generating regional alarm information when it is determined that the residual fire detection image does not contain personnel information and has an open fire pixel value; When it is determined that there is personnel information in the afterfire detection image, the afterfire detection image is monitored based on the distance restriction strategy and the open fire pixel value to generate distance alarm information; Sending the area alarm information or the distance alarm information to the Hongmeng alarm device; The open fire area in the fire source detection image is segmented according to the open fire segmentation strategy to obtain a residual fire detection image, and when it is determined that the residual fire detection image does not contain personnel information but has an open fire pixel value, regional alarm information is generated, including: Based on OpenCV, the heated brackets in the fire source detection image are identified to obtain the bracket contours corresponding to each heated bracket, and a coordinate system is constructed in the fire source detection image based on a preset origin; Obtaining the minimum horizontal coordinate and the maximum horizontal coordinate, and the minimum vertical coordinate and the maximum vertical coordinate of each of the bracket contours in the fire source detection image; Obtain a limiting ordinate according to the sum of a preset limiting value and the maximum ordinate, and construct a horizontal dividing vertical line perpendicular to the Y axis based on the limiting ordinate and the minimum ordinate; Constructing a vertical segmentation line perpendicular to the X-axis based on the minimum horizontal coordinate and the maximum horizontal coordinate, and obtaining an open fire area of ​​the fire source detection image according to the horizontal segmentation line and the vertical segmentation line; Deleting the fire source detection image according to the open fire area to obtain a residual fire detection image; When it is determined that the residual fire detection image does not contain personnel information but contains open fire pixel values, generating regional alarm information; When it is determined that there is personnel information in the afterfire detection image, the afterfire detection image is monitored based on the distance restriction strategy and the open fire pixel value to generate distance alarm information, including: When it is determined that there is personnel information in the afterfire detection image, a personnel outline corresponding to the personnel information in the afterfire detection image is obtained based on OpenCV, and contour pixel points in the personnel outline are counted to obtain a personnel pixel point set; Determine the open fire pixel points in the afterfire detection image according to the open fire pixel values, and count the open fire pixel points to obtain an open fire pixel point set; Performing mean calculation based on the extreme values ​​of the horizontal coordinates in the set of open fire pixel points to obtain the horizontal coordinates of the open fire, performing mean calculation based on the extreme values ​​of the vertical coordinates in the set of open fire pixel points to obtain the vertical coordinates of the open fire, and obtaining the center point of the open fire based on the horizontal coordinates of the open fire and the vertical coordinates of the open fire; Determine the distance between the center point of the open fire and each contour pixel point in the set of pixel points of the personnel as the afterfire distance; When it is determined that the residual fire distance is greater than the preset limit distance, a distance alarm message is generated.

2. The method according to claim 1, characterized in that Also includes: In response to the configuration information sent by the Hongmeng warning device, extract the heating device in the fire source detection image, receive the heating type configured by the Hongmeng warning device for the heating device and multiple heating stages of the heating type, and obtain the current time; Extracting the heating duration of each heating stage, and obtaining the heating time period of each heating stage based on the current moment and the heating duration of the corresponding heating stage; The fire intensity of each heating stage is configured according to the fire intensity configuration strategy and the heating period, so as to obtain a fire intensity configuration image corresponding to each heating stage.

3. The method according to claim 2, characterized in that The step of extracting the heat-receiving device in the fire source detection image in response to the configuration information sent by the Hongmeng warning device includes: In response to the configuration information sent by the Hongmeng warning device, extracting the outline intersecting with the bracket outline and located above the bracket outline in the fire source detection image based on OpenCV as the appliance outline; The fire source detection image is extracted according to the appliance contour to obtain the heated appliance in the fire source detection image.

4. The method according to claim 2, characterized in that: The fire intensity of each heating stage is configured according to the fire intensity configuration strategy and the heating period to obtain a fire intensity configuration image corresponding to each heating stage, including: Based on the preset adjustment time, the beginning and the end of each heating period are respectively shortened and adjusted to obtain a configuration period corresponding to each heating stage; Selecting the fire source detection images within each of the configuration time periods at intervals as the images to be selected, and determining the maximum height of the open flame and the average height of the open flame of each of the images to be selected; A first coefficient value is obtained based on the product of the maximum height of the open flame and the first weight value, and a second coefficient value is obtained based on the product of the average height of the open flame and the second weight value; Based on the sum of the first coefficient value and the second coefficient value, a fire intensity coefficient corresponding to each of the images to be selected is obtained, and the fire intensity coefficients of the images to be selected within the configuration period are averaged to obtain an average coefficient corresponding to each of the configuration period; The fire intensity difference is obtained according to the absolute value of the difference between the average coefficient and the fire intensity coefficient of the image to be selected within the corresponding configuration period, and the image to be selected corresponding to the smallest fire intensity difference is selected as the fire intensity configuration image corresponding to the corresponding heating stage.

5. The method according to claim 4, characterized in that The step of selecting the fire source detection images within each of the configured time periods as the images to be selected, and determining the maximum height of the open flame and the average height of the open flame of each of the images to be selected, comprises: Interval-selecting fire source detection images within each of the configured time periods as images to be selected, counting the open fire pixel points in the images to be selected, and obtaining an open fire pixel point set corresponding to the images to be selected; Based on OpenCV, the shape of the set of open fire pixel points in the image to be selected is recognized to obtain the open fire outline, and the outline pixel points corresponding to the upper outline line in the open fire outline are obtained as fire contour points; Obtaining the ordinate of the fire contour point as the fire height, and selecting the largest fire height as the maximum height of the open flame of each of the images to be selected; Counting the number of the corresponding fire contour points based on each fire height, obtaining the number of equal heights corresponding to each fire height, and obtaining the total number of the fire contour points; According to the ratio of the number of equal heights to the total number, the number percentage corresponding to the fire height is obtained, and the fire height corresponding to the largest number percentage is selected as the average height of the open flame of each of the images to be selected.

6. The method according to claim 5, characterized in that Also includes: In response to the monitoring information sent by the Hongmeng warning device, extract the heating device in the fire source detection image, and receive the heating type selected by the Hongmeng warning device based on the heating device; When it is determined that there is no personnel information in the fire source detection image, a fire configuration image corresponding to the heating type of the heating device is retrieved based on the heating stage, and the maximum height of the open flame in the fire configuration image is obtained as the standard height; According to the open fire pixel value, the maximum height of the open fire in the fire source detection image is obtained in real time as the actual height; When it is determined that the actual height is greater than the standard height, a fire alarm message is generated and sent to the Hongmeng warning device.

7. The method according to claim 3, characterized in that Also includes: Obtaining a bottom contour line below the device contour, and determining an intersection point between the bottom contour line and the bracket contour as a placement point; Determine the minimum horizontal coordinate in the bottom contour line as the first tool coordinate, and the maximum horizontal coordinate as the second tool coordinate, and obtain the minimum horizontal coordinate corresponding to the placement point as the first placement coordinate, and the maximum horizontal coordinate as the second placement coordinate; Obtaining a first placement distance according to a difference between the first placement coordinate and the first tool coordinate; Obtaining a second placement distance based on a difference between the second tool coordinate and the second placement coordinate; A placement deviation value is obtained based on the absolute value of the difference between the first placement distance and the second placement distance. When it is determined that the placement deviation value is greater than the preset placement value, a placement alarm message is generated and sent to the Hongmeng warning device.

8. An open fire detection system based on Hongmeng operating system, characterized in that: include: An acquisition module is used to control the Hongmeng acquisition device to acquire images of the open fire prevention and control area based on the PLC controller to obtain a fire source detection image corresponding to the open fire prevention and control area; a segmentation module, configured to segment the open fire area in the fire source detection image according to the open fire segmentation strategy to obtain a residual fire detection image, and generate regional alarm information when it is determined that the residual fire detection image does not contain personnel information and has an open fire pixel value; A monitoring module, for monitoring the afterfire detection image based on a distance restriction strategy and the open fire pixel value to generate distance alarm information when determining that there is personnel information in the afterfire detection image; A sending module, used for sending the area alarm information or the distance alarm information to the Hongmeng alarm device; The open fire area in the fire source detection image is segmented according to the open fire segmentation strategy to obtain a residual fire detection image, and when it is determined that the residual fire detection image does not contain personnel information but has an open fire pixel value, regional alarm information is generated, including: Based on OpenCV, the heated brackets in the fire source detection image are identified to obtain the bracket contours corresponding to each heated bracket, and a coordinate system is constructed in the fire source detection image based on a preset origin; Obtaining the minimum horizontal coordinate and the maximum horizontal coordinate, and the minimum vertical coordinate and the maximum vertical coordinate of each of the bracket contours in the fire source detection image; Obtain a limiting ordinate according to the sum of a preset limiting value and the maximum ordinate, and construct a horizontal dividing vertical line perpendicular to the Y axis based on the limiting ordinate and the minimum ordinate; Constructing a vertical segmentation line perpendicular to the X-axis based on the minimum horizontal coordinate and the maximum horizontal coordinate, and obtaining an open fire area of ​​the fire source detection image according to the horizontal segmentation line and the vertical segmentation line; Deleting the fire source detection image according to the open fire area to obtain a residual fire detection image; When it is determined that the residual fire detection image does not contain personnel information but contains open fire pixel values, generating regional alarm information; When it is determined that there is personnel information in the afterfire detection image, the afterfire detection image is monitored based on the distance restriction strategy and the open fire pixel value to generate distance alarm information, including: When it is determined that there is personnel information in the afterfire detection image, a personnel outline corresponding to the personnel information in the afterfire detection image is obtained based on OpenCV, and contour pixel points in the personnel outline are counted to obtain a personnel pixel point set; Determine the open fire pixel points in the afterfire detection image according to the open fire pixel values, and count the open fire pixel points to obtain an open fire pixel point set; Performing mean calculation based on the extreme values ​​of the horizontal coordinates in the set of open fire pixel points to obtain the horizontal coordinates of the open fire, performing mean calculation based on the extreme values ​​of the vertical coordinates in the set of open fire pixel points to obtain the vertical coordinates of the open fire, and obtaining the center point of the open fire based on the horizontal coordinates of the open fire and the vertical coordinates of the open fire; Determine the distance between the center point of the open fire and each contour pixel point in the set of pixel points of the personnel as the afterfire distance; When it is determined that the residual fire distance is greater than the preset limit distance, a distance alarm message is generated.