Method, device, storage medium and electronic device for determining heat source type

By calculating the detection duration and change rate of the heat source in the target temperature measurement area, the heat source type is determined, which solves the problem of inaccurate heat source detection in the existing technology, improves detection accuracy, and enhances fire prevention.

CN114459614BActive Publication Date: 2024-08-30ZHEJIANG PIXFRA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210126673.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-10
Publication Date
2024-08-30
Estimated Expiration
2042-02-10

AI Technical Summary

Technical Problem

The existing technology cannot effectively detect the type of heat source, leading to problems of misjudgment and under-reporting of heat sources. Especially in high-temperature environments such as vehicle engines and exhaust pipes, high-temperature false alarms are prone to occur, and the movement detection of long-distance heat sources is inaccurate.

Method used

By determining the parameter information of the heat source in the target temperature measurement area, the corresponding detection time is calculated, and the change rate of high-temperature pixels is counted to determine whether the heat source is a moving or fixed heat source, thereby setting a reasonable detection time to improve detection accuracy.

Benefits of technology

It improves the detection accuracy of heat source types with different parameters, avoids the problem of misjudgment and underreporting of heat sources, and enhances the prevention of safety accidents such as fires.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114459614B
    Figure CN114459614B
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device, storage medium and electronic device for determining the type of a heat source, the method comprising: determining a target detection duration corresponding to the target heat source based on parameter information of the target heat source included in the target temperature measurement area; determining a target change rate of high-temperature pixels included in the target temperature measurement area after the target detection duration, wherein the high-temperature pixels are pixels whose temperature exceeds a predetermined temperature; and determining the type of the target heat source based on the target change rate. The present invention solves the problem that the type of the heat source cannot be effectively detected in the related art, thereby causing misjudgment and missed reporting of the heat source.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of communications, and in particular, to a method, device, storage medium and electronic device for determining a heat source type. Background Art

[0002] All objects in nature, whether glaciers, flames, human bodies, or even the extremely cold deep space of the universe, will radiate infrared light as long as their temperature is higher than absolute zero (i.e., -273°C). The higher the temperature, the higher the intensity of the infrared radiation. The temperature alarm technology based on thermal imaging temperature measurement allows users to select the target area to be detected in the thermal imaging screen and set the temperature alarm threshold. When the temperature of the temperature measurement area exceeds the threshold, the camera will issue a high temperature alarm. Therefore, this technology has good application scenarios in environments such as garbage recycling plants, paper mills, and cotton and linen mills. However, in the above application scenarios, vehicle engines, exhaust pipes, and even power tools operated by workers may cause false high temperature alarms.

[0003] In the related art, when a heat source is detected, the number of times the heat source appears at the same position within a short period of time is used to determine whether the heat source has moved, so as to achieve the purpose of shielding the moving heat source. When counting the number of times the heat source appears at the same position within a period of time, if other objects block the heat source for a short period of time during this period of time, it will lead to misjudgment of whether the heat source has moved. In addition, when the heat source is far away, the movement speed of the detected heat source will be relatively slow, and it is impossible to effectively determine whether the heat source is a moving heat source by counting the number of times.

[0004] Currently, no effective solution has been proposed to the problem that the related art cannot effectively detect the type of heat source, thus leading to misjudgment and omission of heat sources. Summary of the invention

[0005] Embodiments of the present invention provide a method, device, storage medium and electronic device for determining the type of a heat source, so as to at least solve the problem in the related art that the type of the heat source cannot be effectively detected, thereby causing misjudgment and omission of the heat source.

[0006] According to one embodiment of the present invention, a method for determining the type of heat source is provided, comprising: determining a target detection duration corresponding to the target heat source included in a target temperature measurement area based on parameter information of the target heat source included in the target temperature measurement area; determining a target change rate of high-temperature pixels included in the target temperature measurement area after the target detection duration has elapsed, wherein the high-temperature pixels are pixels whose temperature exceeds a predetermined temperature; and determining the type of the target heat source based on the target change rate.

[0007] In an exemplary embodiment, determining the target detection duration corresponding to the target heat source based on parameter information of the target heat source included in the target temperature measurement area includes: obtaining the target distance between the target heat source and the camera device, wherein the target temperature measurement area is an area set in a target shooting picture of the camera device, and the target shooting picture is a picture taken by the camera device at a target shooting angle; determining the target detection duration corresponding to the target heat source based on the target distance.

[0008] In an exemplary embodiment, before obtaining the target distance between the target heat source and the camera device, the method also includes: setting the target temperature measurement area in the target shooting screen of the camera device; determining the target change rate of the high-temperature pixel points included in the target temperature measurement area after the target detection time has passed, including: obtaining the shooting angle of the camera device after the target detection time has passed; when it is determined that the shooting angle is an angle other than the target shooting angle, adjusting the shooting angle of the camera device to the target shooting angle to obtain the target change rate of the high-temperature pixel points included in the target temperature measurement area.

[0009] In an exemplary embodiment, determining the target detection duration of the target heat source based on the target distance includes at least one of the following: determining the target detection duration corresponding to the target distance from a preconfigured correspondence relationship, wherein the correspondence relationship is used to indicate the relationship between the distance and the detection duration; determining the target detection duration T according to the following formula:

[0010] T=D*T s / D s

[0011] Where D is the target distance, T s and D s They are respectively the preset benchmark duration and benchmark distance.

[0012] In an exemplary embodiment, determining the rate of change of high-temperature pixels included in the target temperature measurement area after the target detection time has passed includes: counting a first number of high-temperature pixels included in the target temperature measurement area and belonging to the target heat source, and, after the target detection time has passed, counting a second number of high-temperature pixels included in the target temperature measurement area and belonging to the target heat source; determining the target change rate based on the first number and the second number.

[0013] In an exemplary embodiment, determining the target change rate based on the first number and the second number includes:

[0014] The target change rate C is determined according to the following formula:

[0015] C=abs(Num1-Num2) / Num1

[0016] Among them, Num1 is the first number, and Num2 is the second number.

[0017] In an exemplary embodiment, determining the type of the target heat source based on the target change rate includes: when it is determined that the target change rate is greater than a predetermined threshold, determining that the target heat source is a mobile heat source; when it is determined that the target change rate is less than or equal to the predetermined threshold, determining that the target heat source is a fixed heat source.

[0018] In an exemplary embodiment, after determining that the target heat source is a fixed heat source, the method further includes: performing a high temperature alarm operation.

[0019] According to another embodiment of the present invention, a device for determining the type of heat source is provided, comprising: a first determination module, used to determine a target detection duration corresponding to the target heat source included in the target temperature measurement area based on parameter information of the target heat source included in the target temperature measurement area; a second determination module, used to determine a target change rate of high-temperature pixel points included in the target temperature measurement area after the target detection time has elapsed, wherein the high-temperature pixel points are pixel points whose temperature exceeds a predetermined temperature; and a third determination module, used to determine the type of the target heat source based on the target change rate.

[0020] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0021] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0022] Through the present invention, the target detection duration corresponding to the target heat source can be determined based on the parameter information of the target heat source included in the target temperature measurement area, and then the target change rate of the high-temperature pixel points included in the target temperature measurement area after the target detection duration has passed can be determined, and then the type of the target heat source can be determined based on the target change rate, wherein the target detection duration is determined based on the parameter information of the target heat source included in the target temperature measurement area, that is, the detection duration corresponding to heat sources with different parameters is different, thereby achieving a more reasonable detection duration for heat sources with different parameters, avoiding the problem of inaccurate detection results of heat source movement due to the use of the same detection duration for heat sources with different parameters. By adopting the present invention, the detection accuracy of heat source types with different parameters can be improved, effectively solving the problem of missing heat sources due to misjudgment of heat source types, and further strengthening the efforts to prevent safety accidents such as fires. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 is a hardware structure block diagram of a mobile terminal of a method for determining a heat source type according to an embodiment of the present invention;

[0024] Figure 2 is a flow chart of a method for determining a heat source type according to an embodiment of the present invention;

[0025] Figure 3 is a flow chart of detecting a mobile heat source according to an embodiment of the present invention;

[0026] Figure 4 4 is a structural block diagram of a device for determining a heat source type according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0029] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for determining a heat source type according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0030] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for determining the type of heat source in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via 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 combinations thereof.

[0031] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0032] In this embodiment, a method for determining the type of heat source is provided, such as Figure 2 As shown, the method comprises the following steps:

[0033] S202, determining a target detection duration corresponding to the target heat source based on parameter information of the target heat source included in the target temperature measurement area;

[0034] S204, determining a target change rate of high-temperature pixels included in the target temperature measurement area after the target detection time has elapsed, wherein the high-temperature pixels are pixels whose temperature exceeds a predetermined temperature;

[0035] S206: Determine the type of the target heat source based on the target change rate.

[0036] Among them, the above operations may be performed by a device with the ability to record and detect temperature, such as a thermal imaging camera, or a controller or processor in a thermal imaging camera, or a controller or processor that is relatively independent of the thermal imaging camera, or other processing devices or processing units with similar processing capabilities.

[0037] In the above embodiment, the number of target heat sources may be one or more. When the number of target heat sources is more than one, the type of each target heat source may be determined repeatedly in accordance with the steps in the above steps S202-S206. For example, in the case where multiple target heat sources are detected in a certain frame image, the frame image may be split into multiple frames based on the multiple target heat sources (the splitting method may be to directly copy the frame image to obtain multiple frames. Of course, the image information containing each target heat source may be extracted for each target heat source included in the frame image to obtain multiple frames), and then the corresponding detection time is determined for the target heat source corresponding to each frame image, and the type of each target heat source is judged based on the corresponding detection time. It should also be noted that a new heat source may be detected during the process of waiting for the target detection time. In this case, the detection time may also be repeated in accordance with the above steps S202-S206. Figure 2 The steps shown are used to determine the type of the new heat source, that is, multiple heat source type determination processes can be executed in parallel.

[0038] In the above embodiment, the above-mentioned predetermined temperature can be set in advance, and after setting, it can be flexibly adjusted based on the actual usage scenario, for example, set to 65°, 80°, 90°, etc. In addition, there can be multiple cameras, so the picture can be shot at the target shooting angle, and the picture can also be shot at other shooting angles, that is, the temperature measurement area can be set in the picture shot at the target shooting angle, and the temperature measurement area can also be set in the picture shot at other shooting angles. For example, when one camera device included in the multiple cameras needs to shoot the picture at a target shooting angle of 45° downward (where the horizontal direction is the x-axis and the vertical direction is the y-axis), the other cameras included in the multiple cameras can shoot the picture at a shooting angle of 15° downward. It should be noted that the setting of the above-mentioned shooting angle is only an exemplary embodiment. Of course, other shooting angles can also be used in actual applications, for example, 30° to the left, 60° to the right, 180° backward, etc. The above-mentioned multiple cameras can judge the type of the same heat source. In order to improve the accuracy of the judgment, when at least two cameras have judged that the type of a heat source is a mobile heat source, the heat source can be determined as a mobile heat source, thereby further improving the accuracy of the heat source type judgment.

[0039] Through the present invention, the target detection duration corresponding to the target heat source can be determined based on the parameter information of the target heat source included in the target temperature measurement area, and then the target change rate of the high-temperature pixel points included in the target temperature measurement area after the target detection duration has passed can be determined, and then the type of the target heat source can be determined based on the target change rate, wherein the target detection duration is determined based on the parameter information of the target heat source included in the target temperature measurement area, that is, the detection duration corresponding to heat sources with different parameters is different, thereby achieving a more reasonable detection duration for heat sources with different parameters, avoiding the problem of inaccurate detection results of heat source movement due to the use of the same detection duration for heat sources with different parameters. By adopting the present invention, the detection accuracy of heat source types with different parameters can be improved, effectively solving the problem of missing heat sources due to misjudgment of heat source types, and further strengthening the efforts to prevent safety accidents such as fires.

[0040] In an optional embodiment, determining the target detection duration corresponding to the target heat source based on the parameter information of the target heat source included in the target temperature measurement area includes: obtaining the target distance between the target heat source and the camera device, wherein the target temperature measurement area is an area set in the target shooting picture of the camera device, and the target shooting picture is a picture shot by the camera device at the target shooting angle; determining the target detection duration corresponding to the target heat source based on the target distance. In this embodiment, the parameter information may include the target distance. In the case of a constant target detection duration, if the heat source moving speed is fixed, the greater the distance between the heat source and the camera device, the smaller the object movement amplitude that can be detected, and vice versa, the smaller the distance between the heat source and the camera device, the greater the heat source movement amplitude that can be detected. Therefore, using the same detection duration for heat sources at different distances will lead to inaccurate detection results of heat source movement, and then in the same picture, the movement of a close-range heat source can be detected but the movement of a far-range heat source cannot be discovered in time, resulting in misjudgment of the far-range heat source type and omission of the heat source, thereby posing certain safety hazards.

[0041] In an optional embodiment, before obtaining the target distance between the target heat source included in the target temperature measurement area and the camera device, the method further includes: setting the target temperature measurement area in the target shooting picture of the camera device; determining the target change rate of the high-temperature pixel points included in the target temperature measurement area after the target detection time period has passed includes: obtaining the shooting angle of the camera device after the target detection time period has passed; when it is determined that the shooting angle is an angle other than the target shooting angle, adjusting the shooting angle of the camera device to the target shooting angle to obtain the target change rate of the high-temperature pixel points included in the target temperature measurement area. In this embodiment, after the target detection time period has passed, before counting the second number of high-temperature pixel points belonging to the target heat source in the target temperature measurement area, in order to ensure the accuracy of the target change rate, the camera device needs to shoot a picture based on the previous target shooting angle. At this time, if the shooting angle of the camera device is an angle other than the target shooting angle, that is, the shooting angle may be adjusted when shooting other objects, and the shooting angle of the current camera device needs to be adjusted to the above-mentioned target shooting angle.

[0042] In an optional embodiment, determining the target detection duration of the target heat source based on the target distance includes at least one of the following methods:

[0043] Method 1: Determine the target detection time corresponding to the target distance from a pre-configured correspondence relationship, wherein the correspondence relationship is used to indicate the relationship between the distance and the detection time; in this embodiment, the detection time that can detect the speed of an object moving within a certain distance interval can be measured in advance, or the detection time corresponding to each distance interval can be determined based on historical experience, thereby obtaining the above-mentioned correspondence relationship (the detection time corresponding to the distance within the distance interval is the same). In addition, the above-mentioned correspondence relationship can also be flexibly adjusted based on the actual application scenario.

[0044] Method 2: Determine the target detection time T according to the following formula: T = D * T s / D s , where D is the target distance, T s and D s are respectively the preset reference duration and reference distance. s and D s The camera equipment can be calibrated experimentally before leaving the factory. Of course, it can also be adjusted according to the actual application. In addition, the target detection time can be adaptively set according to the target distance. For example, in T s and D s When is constant, according to the above formula, the target detection time increases with the increase of target distance.

[0045] In the above embodiments, in addition to the above two methods for determining the target detection time, the target detection time can also be determined according to the moving speed of the target heat source included in the target temperature measurement area. For example, the target detection time corresponding to the target heat source can be determined based on the experience of developers or testers in historically observing the moving speed of the target heat source included in the target temperature measurement area. The faster the target heat source moves, the smaller the corresponding target detection time value can be (the minimum value is not less than the frame interval), and the slower the target heat source moves, the larger the corresponding target detection time value can be.

[0046] In an optional embodiment, determining the change rate of the high-temperature pixel points included in the target temperature measurement area after the target detection time has passed includes: counting a first number of high-temperature pixel points included in the target temperature measurement area and belonging to the target heat source, and counting a second number of high-temperature pixel points included in the target temperature measurement area and belonging to the target heat source after the target detection time has passed; and determining the target change rate based on the first number and the second number. In this embodiment, there may be multiple heat sources detected in the target temperature measurement area, so the distance between each heat source and the camera device can be obtained at the same time, and then the detection time corresponding to each heat source can be determined based on the distance of each heat source, and then the change rate belonging to each heat source can be determined. Of course, the distance between each heat source and the camera device can also be obtained in sequence according to a predetermined acquisition order, for example, the distance between each heat source and the camera device can be obtained in sequence based on the distance from near to far, or the distance between each heat source and the camera device can be obtained in sequence based on the order of the heat source area from large to small, etc. It should be noted that determining the type of target heat source based on the change rate of high-temperature pixels is only an example. In actual applications, the type of target heat source can also be determined based on the change rate of other types of pixels, for example, based on the change rate of non-high-temperature pixels (i.e., pixels other than high-temperature pixels), and so on.

[0047] In an optional embodiment, determining the target change rate based on the first number and the second number includes: determining the target change rate C according to the following formula:

[0048] C=abs(Num1-Num2) / Num1

[0049] Wherein, Num1 is the first number, and Num2 is the second number. In this embodiment, for example, when the first number of high-temperature pixel points belonging to the target heat source included in the target temperature measurement area is detected to be 150, after the target detection time is 10 seconds, when the second number of high-temperature pixel points belonging to the target heat source included in the target temperature measurement area is detected to be 90, the above formula can be used to calculate that the change rate at this time is 40%.

[0050] In an optional embodiment, determining the type of the target heat source based on the target change rate includes: determining that the target heat source is a mobile heat source when the target change rate is greater than a predetermined threshold; determining that the target heat source is a fixed heat source when the target change rate is less than or equal to the predetermined threshold. In this embodiment, the predetermined threshold may be preset, may be set by the camera device before leaving the factory, or may be set by the user, for example, 10%, 20%, 50%, etc. Of course, it may also be flexibly adjusted according to actual application conditions. In addition, when it is determined that the target change rate is greater than the predetermined threshold, it indicates that the proportion of areas in the target heat source where the temperature returns to normal is large, and the target heat source may be determined to be a mobile heat source. When it is determined that the target change rate is less than or equal to the predetermined threshold, it indicates that the proportion of areas in the target heat source where the temperature returns to normal is small, and the target heat source may be determined to be a fixed heat source. For example, if a tree is on fire, the area where the tree is located has always been hot for a period of time, and there is no area where the temperature returns to normal, indicating that the heat source is a fixed heat source.

[0051] In an optional embodiment, after determining that the target heat source is a fixed heat source, the method further includes: executing a high temperature alarm operation. In this embodiment, there can be multiple high temperature alarm operations. For example, the camera device or the processor itself can directly issue an alarm message (including but not limited to at least one of the following: sound alarm, text alarm, light alarm). In addition, the alarm can also be issued by sending the alarm message to a predetermined terminal or pushing it to a monitoring background, for example, pushing the alarm message to the person in charge of the temperature measurement area to instruct the person in charge to execute a high temperature alarm operation, etc. In addition, after determining that the target heat source is a mobile heat source, the high temperature alarm needs to be shielded.

[0052] Obviously, the above-described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0053] The present invention will be specifically described below in conjunction with specific embodiments:

[0054] Figure 3 is a flow chart of detecting a mobile heat source according to an embodiment of the present invention, such as Figure 3 As shown in the figure, the waiting time T needs to be adaptively set according to the different distances of the target moving heat source. The thermal imaging camera is experimentally calibrated before leaving the factory and is set at the reference distance D from the camera lens. s The time T required to detect a moving heat source at a standard speed (e.g., 1 m / s) at a distance s As the reference time, for different distances D in actual use scenarios, the thermal imaging camera uses the formula T = D*T s / D sCalculate the detection time T of the moving heat source at the current distance D. The process includes the following steps:

[0055] S302, start;

[0056] S304, setting a target temperature measurement area in the target shooting picture;

[0057] S306, obtaining a distance D between the target heat source in the target temperature measurement area and the imaging device;

[0058] S308, based on T=D*T s / D s The formula calculates the detection time T;

[0059] S310, performing a first judgment to determine whether there is a high-temperature pixel in the area, and if the first judgment result is no, returning to step S306;

[0060] S312, when the first judgment result is yes, count the number of high-temperature pixels Num1 and the coordinates Loc1 corresponding to each high-temperature pixel;

[0061] S314, wait T seconds;

[0062] S316, detecting all the original high-temperature pixels included in the target heat source, and recording the number Num2 of pixels that are still at high temperature;

[0063] S318, calculating the high temperature point change rate C based on the formula C=abs(Num1-Num2) / Num1;

[0064] S320, performing a second judgment to determine whether C is greater than a threshold (corresponding to the above-mentioned predetermined threshold);

[0065] S322, when the second judgment result is no, there is no moving heat source in the temperature measurement area (that is, the heat source in the temperature measurement area is a fixed heat source);

[0066] S324, reporting high temperature alarm;

[0067] S326, when the second judgment result is yes, there is a moving heat source in the temperature measurement area;

[0068] S328, shield high temperature alarm;

[0069] S330, performing a third judgment to determine whether the program is finished, and if the result of the third judgment is no, returning to step S308;

[0070] S332: When the third judgment result is yes, the process ends.

[0071] As known from the above embodiments, after the user sets the area a to be temperature-detected in the camera image, the distance D of the temperature-detected area is calculated by using a distance-measuring method (for example, laser distance-measuring, etc.), and the reference distance D is calculated according to the reference distance D. s , Benchmark detection time T s , calculate the mobile heat source detection time T in this area a .

[0072] It should also be noted that in actual applications, there is more than one area in the camera screen that needs to be measured for temperature, and the distances between each temperature measurement area and the camera are also different. Therefore, by adopting the method of the present invention, a frame of thermal imaging data can be split into multiple frames of data according to the different distances of the temperature measurement areas. Each frame of data can be processed at a different detection time. After the camera detects a high-temperature heat source in the temperature measurement area, the number of high-temperature pixels Num1 and the coordinates Loc1 corresponding to each high-temperature pixel are recorded. After waiting for a period of time T, all the original high-temperature pixels are detected again based on Loc1, and the number of pixels still at high temperature Num2 is recorded. Then, the change rate Cabs(Num1-Num2) / Nun1 is calculated. When C is greater than the threshold, the high-temperature heat source can be considered to be a mobile heat source. At this time, the high-temperature alarm needs to be shielded. When C is less than or equal to the threshold, the high-temperature heat source can be considered to be a fixed heat source. At this time, a high-temperature alarm needs to be reported.

[0073] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0074] In this embodiment, a device for determining the type of heat source is also provided, and the device is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0075] Figure 4 is a structural block diagram of a device for determining a heat source type according to an embodiment of the present invention. Figure 4As shown, the device comprises:

[0076] A first determination module 42, configured to determine a target detection duration corresponding to a target heat source included in a target temperature measurement area based on parameter information of the target heat source;

[0077] A second determination module 44 is used to determine a target change rate of high-temperature pixels included in the target temperature measurement area after the target detection time has elapsed, wherein the high-temperature pixels are pixels whose temperature exceeds a predetermined temperature;

[0078] The third determination module 46 is configured to determine the type of the target heat source based on the target change rate.

[0079] In an exemplary embodiment, the first determination module 42 includes: a first acquisition unit, used to obtain the target distance between the target heat source and the camera device, wherein the target temperature measurement area is an area set in the target shooting picture of the camera device, and the target shooting picture is a picture taken by the camera device at a target shooting angle; a first determination unit, used to determine the target detection time corresponding to the target heat source based on the target distance.

[0080] In an exemplary embodiment, the above-mentioned device also includes: a setting module, which is used to set the target temperature measurement area in the target shooting picture of the camera device before obtaining the target distance between the target heat source and the camera device; the above-mentioned second determination module 44 includes: a second acquisition unit, which is used to obtain the shooting angle of the camera device after the target detection time has passed; a third acquisition unit, which is used to adjust the shooting angle of the camera device to the target shooting angle when it is determined that the shooting angle is other than the target shooting angle, so as to obtain the target change rate of the high-temperature pixel points included in the target temperature measurement area.

[0081] In an exemplary embodiment, the first determination unit includes at least one of the following: a first determination subunit, configured to determine the target detection duration corresponding to the target distance from a preconfigured correspondence relationship, wherein the correspondence relationship is used to indicate the relationship between the distance and the detection duration; and a second determination subunit, configured to determine the target detection duration T according to the following formula:

[0082] T=D*T s / D s

[0083] Where D is the target distance, T s and D s They are respectively the preset benchmark duration and benchmark distance.

[0084] In an exemplary embodiment, the second determination module 44 includes: a statistical unit for counting a first number of high-temperature pixel points belonging to the target heat source included in the target temperature measurement area, and, after the target detection time has elapsed, counting a second number of high-temperature pixel points belonging to the target heat source included in the target temperature measurement area; and a second determination unit for determining the target change rate based on the first number and the second number.

[0085] In an exemplary embodiment, the second determination unit includes: a third determination subunit, configured to determine the target change rate C according to the following formula:

[0086] C=abs(Num1-Num2) / Num1

[0087] Among them, Num1 is the first number, and Num2 is the second number.

[0088] In an exemplary embodiment, the third determination module 46 includes: a third determination unit, used to determine that the target heat source is a mobile heat source when it is determined that the target change rate is greater than a predetermined threshold; a fourth determination unit, used to determine that the target heat source is a fixed heat source when it is determined that the target change rate is less than or equal to the predetermined threshold.

[0089] In an exemplary embodiment, the above-mentioned device further includes: an execution module, which is used to execute a high temperature alarm operation after determining that the target heat source is a fixed heat source.

[0090] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0091] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0092] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0093] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0094] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0095] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0096] Through the method for determining the type of heat source provided by the present invention, infrared thermal imaging can be used to detect high-temperature points in a temperature measurement area, and based on different distances of high-temperature heat sources in the temperature measurement area, mobile heat sources in the temperature measurement area can be adaptively identified. For example, when a high-temperature heat source is detected in the temperature measurement area, its position is recorded, and after waiting for a period of time T, the high-temperature heat source area is detected again, and the proportion of areas in the original high-temperature area where the temperature returns to normal is counted, so as to determine whether there is a mobile heat source in the area. Subsequently, the problem of not being able to simultaneously detect heat sources at different distances in the same camera image, and the problem of misjudgment and omission of heat sources due to short-term obstruction of the heat source is solved, thereby avoiding the situation where safety hazards such as fire are caused thereby.

[0097] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0098] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for determining a heat source type, characterized in that: include: Determine a target detection duration corresponding to the target heat source based on parameter information of the target heat source included in the target temperature measurement area, wherein the parameter information includes: a target distance between the target heat source and the camera device; Determining a target change rate of high-temperature pixels included in the target temperature measurement area after the target detection time has elapsed, wherein the high-temperature pixels are pixels whose temperature exceeds a predetermined temperature; A type of the target heat source is determined based on the target change rate.

2. The method according to claim 1, characterized in that Determining the target detection duration corresponding to the target heat source based on parameter information of the target heat source included in the target temperature measurement area includes: Acquire a target distance between the target heat source and the camera device, wherein the target temperature measurement area is an area set in a target shooting picture of the camera device, and the target shooting picture is a picture shot by the camera device at a target shooting angle; The target detection duration corresponding to the target heat source is determined based on the target distance.

3. The method according to claim 2, characterized in that Before obtaining the target distance between the target heat source and the camera device, the method further includes: Setting the target temperature measurement area in the target shooting picture of the camera device; Determining a target change rate of high-temperature pixel points included in the target temperature measurement area after the target detection time has passed includes: obtaining a shooting angle of the camera device after the target detection time has passed; and when it is determined that the shooting angle is an angle other than the target shooting angle, adjusting the shooting angle of the camera device to the target shooting angle to obtain the target change rate of high-temperature pixel points included in the target temperature measurement area.

4. The method according to claim 2, characterized in that: Determining the target detection duration corresponding to the target heat source based on the target distance includes at least one of the following: Determining the target detection duration corresponding to the target distance from a preconfigured correspondence relationship, wherein the correspondence relationship is used to indicate a relationship between the distance and the detection duration; The target detection time T is determined according to the following formula: T=D*T s / D s Where D is the target distance, T s and D s They are respectively the preset benchmark duration and benchmark distance.

5. The method according to claim 1, characterized in that: Determining the change rate of the high-temperature pixels included in the target temperature measurement area after the target detection time has elapsed includes: Counting a first number of high-temperature pixel points belonging to the target heat source in the target temperature measurement area, and, after the target detection time has elapsed, counting a second number of high-temperature pixel points belonging to the target heat source in the target temperature measurement area; The target change rate is determined based on the first number and the second number.

6. The method according to claim 5, characterized in that Determining the target change rate based on the first number and the second number includes: The target change rate C is determined according to the following formula: C=abs(Num1-Num2) / Num1 Among them, Num1 is the first number, and Num2 is the second number.

7. The method according to claim 1, characterized in that Determining the type of the target heat source based on the target change rate includes: In the case where it is determined that the target change rate is greater than a predetermined threshold, determining that the target heat source is a moving heat source; When it is determined that the target change rate is less than or equal to the predetermined threshold, the target heat source is determined to be a fixed heat source.

8. The method according to claim 7, characterized in that After determining that the target heat source is a fixed heat source, the method further includes: Perform high temperature alarm operation.

9. A device for determining the type of heat source, characterized in that: include: A first determination module, configured to determine a target detection duration corresponding to a target heat source based on parameter information of a target heat source included in a target temperature measurement area, wherein the parameter information includes: a target distance between the target heat source and an imaging device; A second determination module is used to determine a target change rate of high-temperature pixels included in the target temperature measurement area after the target detection time has elapsed, wherein the high-temperature pixels are pixels whose temperature exceeds a predetermined temperature; A third determination module is used to determine the type of the target heat source based on the target change rate.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 8 when executed by a processor.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Object detecting device, object detecting method and program

    JP2005242488A

  • Mobile body determination device, computer program and mobile body determination method

    JP2008276613A