A flame detection method, device, equipment and medium combined with a polarizer
By using compound polarizers and geometric calculations in the flame detection system, the problem of misjudgment of flame detection in illuminated environments is solved, achieving higher detection accuracy and reliability.
Patent Information
- Application Number
- CN202510276658.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-10
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2045-03-10
AI Technical Summary
Existing flame detection technology is prone to misjudgment in strong or weak light environments, resulting in reduced detection accuracy.
A composite polarizer is used to switch the polarizer state under different light intensities, and geometric calculations are combined to determine the angle between the light source segment and the reference line to perform preliminary judgment and secondary confirmation of the flame event.
It effectively reduces false alarms of flame events caused by interference from the lighting environment and improves the accuracy and reliability of flame detection.
Smart Images

Figure CN120388325B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of flame detection, and in particular to a flame detection method, device, equipment and medium combined with a polarizer. BACKGROUND
[0002] Cameras are often used for real-time monitoring in public places, important facilities and large events, and a flame detection system is used to timely identify potential fire risks.
[0003] The detection method in the related art is to realize flame detection through a 2D video picture, which is sensitive to light conditions. Changes in light in the video picture can affect the recognition of flame features, thereby affecting the accuracy of detection. For example, in strong light or weak light environments, the color, brightness and other features of the flame may change, causing the camera to misjudge other bright light sources (such as car lights, reflective objects, etc.) as flames, resulting in unnecessary alarms. SUMMARY
[0004] Therefore, the purpose of the embodiments of the present application is to provide a flame detection method, device, equipment and medium combined with a polarizer to improve the accuracy of flame detection.
[0005] In one aspect, the embodiments of the present application provide a flame detection method combined with a polarizer, which comprises the following steps:
[0006] When the composite polarizer is in a state without a polarizing sheet, the image acquisition of the detection area by the camera device is controlled; wherein the composite polarizer is arranged in the acquisition direction of the camera device, and the composite polarizer comprises a state without a polarizing sheet and a plurality of levels of polarizing sheet states;
[0007] If a flame target is detected in the first image acquired by the camera device, the composite polarizer is set to a polarizing sheet state corresponding to the intensity of the ambient light;
[0008] A light source target is detected in the second image acquired by the camera device, and if it is determined that there is a light source target corresponding to the flame target in the second image, and the number of light source targets is multiple, a plurality of light source line segments are formed based on the plurality of light source targets, and it is determined whether there is a flame event based on the included angle between the light source line segments and the two reference lines with the shortest distance; wherein the reference line is a line segment in the detection area that is perpendicular to the driving line and parallel to the road surface.
[0009] Optionally, the composite polarizer is set to a polarizing sheet state corresponding to the intensity of the ambient light, which comprises:
[0010] obtain a corresponding relation table between average light intensity and polarizer state, the corresponding relation table comprising a plurality of continuous light intensity intervals, each light intensity interval corresponding to a polarizer state, the level of the polarizer state increasing with the decrease of the light intensity interval;
[0011] determine the light intensity interval in which the ambient light intensity is located in the corresponding relation table, and set the polarizer to the polarizer state corresponding to the light intensity interval.
[0012] Optionally, the determining whether the light source target corresponding to the flame target exists in the second image comprises:
[0013] if the flame target is detected in the first image collected by the camera, obtaining the initial position and moving speed of the flame target in the detection area;
[0014] determining the time difference between collecting the second image and the first image, and determining the predicted position of the flame target based on the time difference, the initial position of the flame target in the detection area and the moving speed of the flame target;
[0015] based on whether the position of the light source target in the detection area is within the predicted position of the flame target, if yes, determining that the light source target corresponding to the flame target exists in the second image.
[0016] Optionally, the method further comprises:
[0017] if it is determined that the light source target corresponding to the flame target exists in the second image, and the number of the light source target is one, determining that the flame target is a flame, and a flame event exists.
[0018] Optionally, the forming a plurality of light source line segments based on the plurality of light source targets comprises:
[0019] obtaining the position of each light source target in the detection area, determining the center point of each light source target, and connecting the center points of the light source targets two by two to form a plurality of light source line segments.
[0020] Optionally, the determining whether a flame event exists based on the included angle between the light source line segment and the two reference lines with the shortest distance comprises:
[0021] if it is determined that both of the included angles are greater than the included angle threshold, determining that the flame target is a flame, and determining that a flame event exists.
[0022] Optionally, the method further comprises:
[0023] after determining whether the flame target is a flame, setting the compound polarizer to the no-polarizer state.
[0024] In another aspect, the embodiments of the present application provide a flame detection device combined with a polarizer, characterized in that the device comprises:
[0025] a first module configured to control the image acquisition device to acquire images of the detection area when the composite polarizer is in the state without polarizer; wherein the composite polarizer is arranged in the acquisition direction of the image acquisition device, and the composite polarizer comprises the state without polarizer and a plurality of states with polarizers;
[0026] a second module configured to set the composite polarizer to the state with polarizer corresponding to the intensity of the ambient light if the flame target is detected in the first image acquired by the image acquisition device;
[0027] a third module configured to detect the light source target in the second image acquired by the image acquisition device, and determine whether there is a flame event based on the included angle between the light source line segment and the two reference lines with the shortest distance if it is determined that there are a plurality of light source targets corresponding to the flame target in the second image; wherein the reference line is a line segment in the detection area which is perpendicular to the driving line and parallel to the road surface.
[0028] In another aspect, the embodiments of the present application provide an electronic device, comprising:
[0029] at least one processor;
[0030] at least one memory configured to store at least one program;
[0031] when the at least one program is executed by the at least one processor, the at least one processor implements the above method.
[0032] In another aspect, the embodiments of the present application provide a computer readable storage medium, wherein the computer readable storage medium stores a program executable by a processor, and the program executable by the processor is used to execute the above method when executed by the processor.
[0033] The embodiments of the present application have the following beneficial effects: in the embodiments, when the flame target is detected in the state without polarizer, it is preliminarily determined that the flame event may occur; then the state with polarizer corresponding to the intensity of the ambient light is determined, the polarizer in front of the camera is set to the state with polarizer, and then the image acquisition is continued; the secondary confirmation of the flame event is realized, the relationship between the light source line segment and the known reference line is determined through geometric calculation, and the included angle is calculated to distinguish the nature of the light source. The present application filters the light of the video image by adding the polarizer, effectively reduces the false alarm of the flame event caused by the interference of the light environment of the detected video image, and improves the accuracy of the flame event detection. BRIEF DESCRIPTION OF DRAWINGS
[0034] In order to make the technical solutions of the embodiments of the present application or the prior art clearer, the accompanying drawings needed in the embodiments will be briefly introduced. Obviously, the accompanying drawings in the following description only represent some embodiments of the present application. Those skilled in the art can obtain other accompanying drawings based on these accompanying drawings without any creative effort.
[0035] Figure 1 is a step flow diagram of a flame detection method combined with a polarizer provided by the embodiment of the present application;
[0036] Figure 2 is a schematic diagram of a detection area in the embodiment of the present application;
[0037] Figure 3 is a front view of a composite polarizer in the embodiment of the present application;
[0038] Figure 4 is a design schematic diagram of a composite polarizer in the embodiment of the present application;
[0039] Figure 5 is a schematic diagram of a state without a polarizing sheet in the embodiment of the present application;
[0040] Figure 6 is a schematic diagram of a state of a first-order polarizing sheet in the embodiment of the present application;
[0041] Figure 7 is a schematic diagram of a state of a second-order polarizing sheet in the embodiment of the present application;
[0042] Figure 8 is a structure block diagram of a flame detection device combined with a polarizer provided by the embodiment of the present application;
[0043] Figure 9 is a structure block diagram of an electronic device provided by the embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the technical solutions of the embodiments of the present application or the prior art clearer, the accompanying drawings needed in the embodiments will be briefly introduced. Obviously, the accompanying drawings in the following description only represent some embodiments of the present application. Those skilled in the art can obtain other accompanying drawings based on these accompanying drawings without any creative effort. The embodiments described in the following exemplary embodiments do not represent all the embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.
[0045] It is to be understood that the terms "first", "second", and the like, used herein can be used to describe various concepts, but unless specifically stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of embodiments of the present application, first information can also be referred to as second information, and similarly, second information can also be referred to as first information. Depending on the context, the word "if" as used herein can be interpreted as "when" or "upon determining" or "in response to determining".
[0046] The terms "at least one", "multiple", "each", "any", and the like used herein include one, two or more, multiple includes two or more, each refers to each of the corresponding plurality, and any refers to any one of the plurality.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing embodiments of the present application and are not intended to limit the present application.
[0048] As shown in Figure 1 and Figure 2 Embodiments of the present application provide a flame detection method combined with a polarizer, the method comprising the following steps:
[0049] S100, in the state of no polarizer of the composite polarizer, controlling the image acquisition device to acquire images of the detection area; wherein the composite polarizer is arranged in the acquisition direction of the image acquisition device, and the composite polarizer comprises a state of no polarizer and a plurality of states of polarizer;
[0050] S200, if a flame target is detected in the first image acquired by the image acquisition device, the composite polarizer is set to the state of polarizer corresponding to the intensity of ambient light;
[0051] By adjusting the brightness and contrast, filtering the background noise, and highlighting the light source to be detected, the light source changes are responded in real time by timely adjusting the polarizer, and the probability of false judgment is reduced.
[0052] S300, detecting the light source target in the second image acquired by the image acquisition device, if it is determined that there is a light source target corresponding to the flame target in the second image, and the number of light source targets is multiple, forming a plurality of light source line segments based on the plurality of light source targets, and determining whether there is a flame event based on the included angle between the light source line segments and the two reference lines with the shortest distance; wherein the reference line is a line segment in the detection area perpendicular to the driving line and parallel to the road surface.
[0053] The application, through the embodiment, through image preprocessing and feature extraction on the monitoring video, acquires flame target detection by image recognition algorithm, if the flame target is detected, the possibility of flame event is preliminarily judged; then the corresponding level of polaroid state is determined according to the environmental light intensity, the polaroid in front of the camera is set to the polaroid state, and then the image acquisition is continued; the secondary confirmation of the flame event is realized, the relationship between the light source and the known reference line is judged by using geometric calculation, and the angle is calculated to distinguish the nature of the light source.
[0054] Compared with the traditional flame detection method based on computer vision and deep learning, the original acquired video picture is greatly affected by light interference, the video picture is filtered by adding a polaroid, the false alarm of the flame event caused by the light environment interference of the detected video picture is effectively reduced, and the accuracy of the flame event detection is improved.
[0055] In the related art, after detecting the flame event, the video detection alone will form a large spot under the night camera effect due to the car light irradiation effect, which is highly similar to the appearance of the flame, and is easy to cause false alarm. In order to reduce the influence of the light spot, a polaroid is added in front of the camera, the polaroid reduces the brightness of the light spot and restores the light source, and the flame event confirmation is realized by detecting the light source.
[0056] However, the addition of the polaroid will cause the following problems in the video picture:
[0057] ① Light loss: Anti-glare processing may reduce the light passing through the polaroid, which may cause the image or visual effect to be dark in some cases;
[0058] ② Color deviation: different types of anti-glare polaroids may introduce a certain degree of color deviation, affecting the accuracy of color;
[0059] ③ Possible blur: in some cases, low-quality polaroids may cause image blur, affecting the clarity.
[0060] In order to reduce the influence of the polaroid on the video picture effect, the application introduces an automatic control technology for the polaroid. When the normal camera detects a flame event, the polaroid in the polaroid is added in front of the camera, the light source intensity is reduced through the polaroid, and the secondary confirmation is carried out. After the event is confirmed, the polaroid is automatically returned. The present application can realize the secondary confirmation of the flame event by automatically adjusting the polaroid state without affecting the video picture.
[0061] The grade of the polaroid is usually divided into two levels, as follows:
[0062] Primary polarized glasses: the polarization direction of this type of glasses is parallel to the filter used. It can effectively reduce mirroring and is relatively low in price. Primary polarized glasses are widely used in basic daily life.
[0063] Secondary polarized glasses: the polarization direction of this type of glasses is perpendicular to that of primary polarized glasses. Compared with primary polarized glasses, secondary polarized glasses can better eliminate mirroring and reflection, and provide better clarity and contrast. Secondary polarized glasses are mainly used in outdoor sports, driving, field exploration and other scenarios.
[0064] Polarized glasses rotation principle design:
[0065] In order to meet the needs of different environmental brightness in actual scenarios, the polarized glasses are designed as a multi-state composite polarized glasses, which can be transformed into three states, i.e. no polarized plate, primary polarized plate and secondary polarized plate. According to the environmental brightness, the polarized glasses are rotated to achieve the effect of light filtering. The overall design is shown in Figure 3 and Figure 4 .
[0066] Under normal circumstances, the polarized glasses are in the polarized glasses box. When a flame event is detected, the frame processing stage enters a loop body to continuously read each frame in the video. For each frame, first convert the frame to a grayscale image, which can simplify the subsequent brightness calculation. Then, the program calculates the brightness index of the current frame, i.e. the average illumination intensity. Finally, according to the average illumination intensity, the rotation state of the polarized glasses is set, and the control period of the polarized glasses is 1S each time. After 1S, the polarized plate state light = 0 is restored.
[0067] When the polarized plate state Light = 0, there is no polarized plate in front of the camera, maintaining the initial state. The state of no polarized plate is shown in Figure 5 .
[0068] When the polarized plate state Light = 1, the step motor rotates clockwise by 120°, and the primary polarized plate is in front of the camera. When resetting, the step motor rotates counterclockwise by 120°. The state of the primary polarized plate is shown in Figure 6 .
[0069] When the polarized plate state Light = 2, the step motor rotates counterclockwise by 120°, and the secondary polarized plate is in front of the camera. When resetting, the step motor rotates clockwise by 120°. The state of the secondary polarized plate is shown in Figure 7 .
[0070] In some embodiments, the setting of the composite polarized glasses to the polarized plate state corresponding to the environmental illumination intensity comprises:
[0071] S210, acquire a corresponding relationship table between average illumination intensity and polaroid state, the corresponding relationship table comprising a plurality of continuous illumination intensity intervals, each illumination intensity interval corresponding to a polaroid state, the level of the polaroid state increasing with the decrease of the illumination intensity interval;
[0072] S220, determine the illumination intensity interval in which the ambient illumination intensity is located in the corresponding relationship table, and set the polaroid to the polaroid state corresponding to the illumination intensity interval.
[0073] The embodiment controls the polaroid state of the polaroid through brightness calculation, avoids excessive filtering to cause light loss, and affects the detection effect.
[0074] Specifically, the corresponding relationship between the polaroid state and the illumination intensity is as follows:
[0075] In actual scenarios, the camera picture can be divided into four cases, namely, daytime, evening / sunset, night with light, and night without light, according to the ambient brightness.
[0076] In the case where no polaroid is added, video pictures of four scenes, namely, daytime, evening / sunset, night with light, and night without light, are acquired from the camera, the ambient brightness of the video pictures is detected, and the average illumination intensity of the four scenes is calculated.
[0077] Table 1: Average illumination intensity of four scenes without adding a polaroid (unit: lux)
[0078]
[0079] According to the above actual measured data, the corresponding relationship between the illumination intensity and the polaroid state is set as follows:
[0080] When the average illumination intensity is greater than 100, the polaroid state light = 0; indicating that there is no polaroid in front of the camera;
[0081] When 80 < average illumination intensity < 100, the polaroid state light = 1; indicating that the first-order polaroid is in front of the camera.
[0082] When the average illumination intensity is less than 80, the polaroid state light = 2; indicating that the second-order polaroid is in front of the camera.
[0083] In some embodiments, the determination of whether the light source target corresponding to the flame target exists in the second image comprises:
[0084] S310, if the flame target is detected in the first image collected by the camera, the initial position and the moving speed of the flame target in the detection region are acquired;
[0085] S320, determining a time difference between the acquisition of the second image and the first image, determining a predicted position of the flame target based on the time difference, and an initial position and a moving speed of the flame target in the detection area;
[0086] S330, determining whether the position of the light source target in the detection area is within the predicted position of the flame target, and if so, determining that the light source target corresponding to the flame target exists in the second image.
[0087] The embodiment predicts the position of the flame target, compares the position of the light source, identifies the possibility of the light source target being the flame, and thus realizes more accurate fire detection and early warning.
[0088] In some embodiments, the method further comprises:
[0089] If it is determined that the light source target corresponding to the flame target exists in the second image, and the number of the light source target is one, it is determined that the flame target is a flame, and a flame event exists.
[0090] In the embodiment, after combining the filter lens, the illumination interference is excluded. If the detected light source target is single and the light source target corresponding to the flame target exists, it is indicated that the light source target is the flame target, and it is confirmed that an actual flame event exists.
[0091] In some embodiments, the forming of the plurality of light source line segments based on the plurality of light source targets comprises:
[0092] The position of each light source target in the detection area is obtained, the center point of each light source target is determined, and the center points of the light source targets are connected two by two to form a plurality of light source line segments.
[0093] The embodiment simplifies the light source target in the form of a center point, connects the center points of the light source targets two by two to form a plurality of light source line segments, improves the efficiency of generating the light source line segments, facilitates the analysis and identification of the emission direction of the light source, and ensures the accuracy and real-time performance of the fire detection.
[0094] In some embodiments, the determining of whether the flame event exists based on the included angle between the light source line segment and the two reference lines with the shortest distance comprises:
[0095] If it is determined that the two included angles are greater than the included angle threshold, it is determined that the flame target is a flame, and a flame event exists.
[0096] The embodiment ensures that the flame event can be accurately determined even in a complex background through the included angle calculation method. By comparing the included angles between the light source line segment and the two reference lines, false positives can be effectively excluded, and the accuracy and reliability of the fire detection system are improved.
[0097] In some embodiments, the method further comprises:
[0098] After determining whether the flame target is a flame, the compound polarizer is set to a non-polarized state;
[0099] In this embodiment, after determining the flame target, the non-polarized state is re-adjusted to ensure that subsequent image acquisition is not affected by polarization, thereby providing optimal image quality for detection of other potential fire sources.
[0100] The overall process of the embodiment of the present application is as follows:
[0101] Detecting the flame target in the non-polarized state;
[0102] Condition one: no flame target is detected in the non-polarized state:
[0103] If no flame target is detected in the video image, the polarizer remains in the original state, i.e. light = 0.
[0104] Condition two: a flame target is detected in the non-polarized state; after setting the polarized state of the polarizer, a light source target is obtained;
[0105] Record the flame coordinates;
[0106] If a flame event is detected in the video image, record the initial position of the flame event, and the coordinate format of the initial position is fire_1steven = [x1, y1, w1, h1], where (x1, y1) is the center point coordinate of the flame, and w1 and h1 are the width and height, respectively.
[0107] Calculate the moving speed and direction of the flame to estimate its predicted position at a predicted time. The coordinate calculation formula of the predicted position is: Fire_newlocal = fire_1steven + speed x time; where speed represents the moving speed of the flame (the moving speed is a vector containing direction), time represents the set predicted time, and Fire_newlocal represents the coordinate of the predicted position.
[0108] The motion model is implemented using a Kalman filter to improve the accuracy of the prediction. The moving speed of the flame is obtained through the motion model. By using the Kalman filter combined with the motion model (such as uniform linear motion) to predict the future position of the target, effective tracking in dynamic scenes is ensured.
[0109] Control the polarizer; adjust the polarized state according to the corresponding relationship between the light intensity and the polarized state. After adjusting the polarizer to the polarized state corresponding to the light intensity, continue to detect.
[0110] Acquire a monitoring video, and cut a current frame image from the monitoring video to detect a light source target in the current frame image;
[0111] Traverse the light source target detected in the current frame image to acquire a position of the light source target, and the coordinates of the position are expressed as fire_2ndeven=[x2, y2, w2, h2]. In the current frame image, it is judged whether the predicted position Fire_newlocal contains the coordinates of the position fire_2ndeven of the light source target.
[0112] If the acquired light source target is only one, and it is judged that the predicted position contains the position of the light source target, the light source target is determined to be a flame, and it is determined that a flame event occurs.
[0113] Condition three: in the state of no polarizer, a flame target is detected; after the polarizer of the polarizing lens is set, multiple light source targets are acquired;
[0114] Acquire the coordinates of all light sources fire_2ndeven1, fire_2ndeven2,....
[0115] Connect the light source center points two by two to form light source line segments fire_2nd_line1, fire_2nd_line2,....
[0116] Calculate the shortest distance;
[0117] Calculate the shortest distance between the light source line segments fire_2nd_line1, fire_2nd_line2,... and the known reference lines x1, x2, x3,..., to obtain the two reference lines with the shortest distance to the light source line segments. For example, the two reference lines with the shortest distance to fire_2nd_line1 are x1 and x2.
[0118] Calculate the included angle;
[0119] Calculate the included angle between each light source line segment and the reference line. For example:
[0120] Calculate the included angle angles1 between fire_2nd_line1 and the reference line x1.
[0121] Calculate the included angle angles2 between fire_2nd_line1 and the reference line x2.
[0122] Judge the included angle;
[0123] If one of the included angles is less than 5°, it is determined that the flame target is caused by a car light. For example:
[0124] When aangles1<5° or angles2<5°, it is determined that the light source is caused by a car light, and the flame event is excluded.
[0125] If all angles are greater than 5°, the flame target is determined to be caused by a flame. For example:
[0126] When angles1>5° and angles2>5°, the flame target is determined to be a flame, and a flame event is confirmed.
[0127] After determining that a flame event occurs, the polaroid state is reset to the no-polaroid state.
[0128] According to motion prediction, it is determined whether multiple flame targets are the same event; according to motion prediction, if the positions of the flame targets coincide, it is defined as the same event, and repeated detection is no longer performed.
[0129] In the embodiment of the present application, when the vehicle is driving, one or more light sources will appear on the video image, and the positions of the light sources are restored after being filtered by the polaroid. The center points of any two light sources are connected to obtain a light source line segment fire_2nd_line.
[0130] Considering the existence of road corner and the like, a plurality of reference lines X1, X2, X3,... perpendicular to the driving line and parallel to the road surface are taken according to the change of the road surface in the road surface detection area.
[0131] Considering the case that the driving direction of the vehicle remains straight with the direction of the road surface, the vehicle light line remains relatively parallel to the road surface, and the vehicle light line remains relatively parallel to the reference line, so that the light source line segment detected remains relatively parallel to the reference line.
[0132] Considering the case that the vehicle bounces up and down, turns left and right, and the road surface turns, that is, the driving direction of the vehicle and the direction of the road surface exist a deflection angle, the vehicle light line and the reference line also exist a deflection angle, so a threshold value angles of the deflection angle is set, and the initial value of angles is 5°.
[0133] Referring to Figure 8 The embodiment of the present application provides a flame detection device combined with a polaroid, which comprises:
[0134] A first module is used for controlling the image acquisition of the detection area by the camera device when the composite polaroid is in the no-polaroid state; wherein the composite polaroid is arranged in the acquisition direction of the camera device, and the composite polaroid comprises a no-polaroid state and a plurality of levels of polaroid states.
[0135] A second module is used for setting the composite polaroid to the polaroid state corresponding to the intensity of the ambient light if a flame target is detected in the first image acquired by the camera device.
[0136] The third module is configured to detect the light source target in the second image collected by the camera, and if it is determined that the light source target corresponding to the flame target exists in the second image and the number of the light source targets is multiple, form a plurality of light source line segments based on the multiple light source targets, and determine whether the flame event exists based on the included angle between the light source line segments and the two reference lines with the shortest distance; wherein the reference line is a line segment in the detection area that is perpendicular to the driving line and parallel to the road surface.
[0137] It can be understood that the contents in the above method embodiments are all applicable to the present device embodiments, the present device embodiments specifically implement the functions of the above method embodiments, and achieve the same beneficial effects as the above method embodiments.
[0138] Reference Figure 9 The present application also provides an electronic device, which comprises a memory and a processor, the memory stores a computer program, and the processor implements the method in the above embodiments when executing the computer program.
[0139] It can be understood that the contents in the above method embodiments are all applicable to the present device embodiments, the present device embodiments specifically implement the functions of the above method embodiments, and achieve the same beneficial effects as the above method embodiments.
[0140] The present application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the above method.
[0141] It can be understood that the contents in the above method embodiments are all applicable to the present device embodiments, the present device embodiments specifically implement the functions of the above method embodiments, and achieve the same beneficial effects as the above method embodiments.
[0142] The memory is a non-transitory computer readable storage medium, which can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state memory device. In some embodiments, the memory can optionally include a memory remotely arranged relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0143] The embodiments described in the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, with the evolution of technology and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0144] Those skilled in the art can understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and can include more or fewer steps than shown in the figures, or combine certain steps, or different steps.
[0145] The device embodiments described above are only schematic, and the units described as separate components can or can not be physically separate, that is, can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0146] Those skilled in the art can understand that all or some of the steps in the above disclosed method, the function modules / units in the system and the device can be implemented as software, firmware, hardware and their appropriate combinations.
[0147] The terms "first", "second", "third", "fourth" and the like (if any) in the specification of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0148] It should be understood that, in the present application, "at least one" means one or more, and "multiple" means two or more. "And / or" is used to describe the relationship between associated objects, which means that there can be three relationships, for example, "A and / or B" can mean: only A, only B, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects. "At least one of the following" or similar expressions means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0149] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the above units is only a logical function division, and actual implementation can have another division manner, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed units can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0150] The units described above as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on multiple network units. According to actual needs, some or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0151] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0152] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, essentially or in other words, the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes multiple instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program storage media.
[0153] The preferred embodiments of the embodiments of the present application are described above with reference to the accompanying drawings, and are not limited to the scope of the embodiments of the present application. Any modifications, equivalent replacements and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall be within the scope of the embodiments of the present application.
Claims
1. A flame detection method in combination with a polarizer, characterized in that: The method comprises the following steps: When the composite polarizer is in a state without a polarizer, controlling the camera device to collect images of the detection area; wherein the composite polarizer is arranged in a collection direction of the camera device, and the composite polarizer includes a state without a polarizer and multiple levels of polarizer states; If a flame target is detected in the first image captured by the camera device, the composite polarizer is set to a polarizer state corresponding to a level of ambient light intensity; A light source target is detected in a second image captured by the camera device. If it is determined that a light source target corresponding to the flame target exists in the second image, and there are multiple light source targets, multiple light source line segments are formed based on the multiple light source targets, and whether a flame event exists is determined based on the angle between the light source line segment and two reference lines with the shortest distance; wherein the reference line is a line segment perpendicular to the driving lane and parallel to the road surface in the detection area.
2. The method according to claim 1, characterized in that Setting the composite polarizer to a polarizer state corresponding to the level of ambient light intensity includes: Obtaining a correspondence table between average light intensity and polarizer states, the correspondence table comprising a plurality of consecutive light intensity intervals, each light intensity interval corresponding to a polarizer state, and the level of the polarizer state increasing as the light intensity interval decreases; Determine the light intensity range of the ambient light intensity in the corresponding relationship table, and set the polarizer to a polarizer state corresponding to the light intensity range.
3. The method according to claim 2, characterized in that The determining whether there is a light source target corresponding to the flame target in the second image includes: If a flame target is detected in the first image captured by the camera device, an initial position and a moving speed of the flame target in the detection area are obtained; determining a time difference between capturing the second image and the first image, and determining a predicted position of the flame target based on the time difference and an initial position and a moving speed of the flame target in the detection area; Based on whether the position of the light source target in the detection area is within the predicted position of the flame target, if so, it is determined that there is a light source target corresponding to the flame target in the second image.
4. The method according to claim 1, wherein The method further comprises: If it is determined that a light source target corresponding to the flame target exists in the second image, and the number of the light source target is one, then it is determined that the flame target is a flame and a flame event occurs.
5. The method according to claim 1, wherein The forming of a plurality of light source line segments based on the plurality of light source targets comprises: The position of each light source target in the detection area is obtained, the center point of each light source target is determined, and the center points of each light source target are connected in pairs to form multiple light source line segments.
6. The method according to claim 1, characterized in that The determining whether a flame event exists based on the angle between the light source segment and the two reference lines with the shortest distances comprises: If it is determined that both included angles are greater than the included angle threshold, the flame target is determined to be a flame, and a flame event is determined to exist.
7. The method according to claim 1, characterized in that The method further comprises: After determining whether the flame target is a flame, the composite polarizer is set to a non-polarizer state.
8. A flame detection device combined with a polarizer, characterized in that: The device comprises: The first module is configured to control the camera device to capture images of the detection area when the composite polarizer is in a non-polarizer state; wherein the composite polarizer is arranged in a collection direction of the camera device, and the composite polarizer includes a non-polarizer state and multiple levels of polarizer states; The second module is configured to set the composite polarizer to a polarizer state corresponding to a level of ambient light intensity if a flame target is detected in the first image captured by the camera device; The third module is used to detect light source targets in the second image captured by the camera device. If it is determined that there is a light source target corresponding to the flame target in the second image, and there are multiple light source targets, multiple light source line segments are formed based on the multiple light source targets, and whether there is a flame event is determined based on the angle between the light source line segment and the two reference lines with the shortest distance; wherein the reference line is a line segment perpendicular to the driving lane and parallel to the road surface in the detection area.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is configured to perform the method according to any one of claims 1 to 7 when executed by the processor.
Citation Information
Patent Citations
Method and device for reading identification mark on surface of wafer
CN101334840A
Stereoscopic image display and method for producing the same
CN101639617A