Animal body temperature detection system for animal husbandry and veterinary medicine

By analyzing the grayscale fluctuations and temperature distribution differences in the infrared temperature area, integrating the degree of infrared temperature disturbance, and performing adaptive denoising processing, the problem of inaccurate temperature information caused by electromagnetic interference in the infrared temperature measurement device is solved, and the body temperature of livestock animals is improved. Detection accuracy and reliability.

CN118362207BActive Publication Date: 2024-08-30KAIXIN (DALIAN) INTERNET SERVICES CO LTD
View PDF 26 Cites 0 Cited by

Patent Information

Application Number
CN202410789668.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-08-30
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

Due to the electromagnetic interference of the internal electronic equipment during operation, the existing infrared temperature measurement device cannot effectively distinguish the temperature information of livestock animals and environmental areas, which affects the accurate expression of the core livestock animal temperature information in the infrared image and reduces the infrared body temperature detection of animals. accuracy of results.

Method used

Using the livestock animal infrared temperature grayscale image acquisition module, animal infrared temperature information degree acquisition module, infrared temperature disturbance degree acquisition module and infrared body temperature detection module, by analyzing the discrete grayscale fluctuations and comprehensive temperature distribution in the infrared temperature area, the integration According to the degree of infrared temperature disturbance, adaptive denoising is performed to improve the accuracy of expression of core livestock animal temperature information in infrared images.

Benefits of technology

By analyzing the difference in temperature information distribution between livestock animals and environmental areas, the core livestock animal temperature information is screened out, and the denoising intensity is adaptively adjusted to improve the denoising efficiency and the accuracy of temperature information in infrared images, and enhance the animal body temperature detection results. credibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118362207B
    Figure CN118362207B
Patent Text Reader

Abstract

The present invention relates to the field of infrared body temperature detection technology, and specifically to an animal body temperature detection system for animal husbandry and veterinary medicine, comprising: an infrared temperature grayscale image acquisition module for animal husbandry, an infrared temperature information degree acquisition module for animal husbandry, an infrared temperature disturbance degree acquisition module, and an infrared body temperature detection module; the discreteness of grayscale fluctuations under animal information in the same infrared temperature region is analyzed to obtain the discreteness of animal temperature distribution; based on the discreteness of animal temperature distribution, the temperature distribution between the infrared temperature region and the surrounding area is integrated to obtain the infrared temperature information degree of the animal; the infrared temperature disturbance degree is obtained according to the infrared temperature information degree of the animal; a denoised infrared body temperature image is obtained according to the infrared temperature disturbance degree; and the denoised infrared body temperature image is subjected to body temperature detection. The present invention improves the accuracy of the expression of core animal husbandry temperature information in infrared images and improves the credibility of animal body temperature detection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of infrared body temperature detection, and in particular to an animal body temperature detection system for animal husbandry and veterinary medicine. Background Art

[0002] The body temperature of livestock is an important physiological indicator that reflects the health of animals. Observers can effectively detect the health status of livestock by observing the changes in their body temperature. The existing technology usually uses infrared temperature measuring devices to measure the temperature of livestock non-contactly. However, when the infrared measuring device is in operation, it will generate noise due to the electromagnetic interference of its internal electronic equipment, and it cannot effectively distinguish the temperature information of livestock and the environment. This interferes with the accurate expression of the temperature information of the core livestock in the infrared image, reducing the accuracy of the infrared body temperature detection results of the animals. Summary of the invention

[0003] The present invention provides an animal body temperature detection system for animal husbandry and veterinary medicine to solve the existing problem that when the infrared measuring device is in operation, it will generate noise due to the electromagnetic interference of its internal electronic equipment, and it is impossible to effectively distinguish the temperature information of the livestock and the environmental area, which interferes with the accurate expression of the temperature information of the core livestock in the infrared image.

[0004] The animal body temperature detection system for animal husbandry and veterinary medicine of the present invention adopts the following technical scheme:

[0005] Includes the following modules:

[0006] A livestock infrared temperature grayscale image acquisition module is used to acquire a livestock infrared temperature grayscale image, wherein the livestock infrared grayscale image includes a plurality of infrared temperature regions;

[0007] The animal infrared temperature information degree acquisition module is used to analyze the discreteness of grayscale fluctuations under the animal information in the same infrared temperature area, and obtain the animal temperature distribution dispersion in each infrared temperature area; based on the animal temperature distribution dispersion, the temperature distribution between the infrared temperature area and the surrounding area is integrated to obtain the animal infrared temperature information degree in each infrared temperature area;

[0008] The infrared temperature disturbance degree acquisition module is used to analyze the distribution stability of different grayscale details in the same infrared temperature area, and integrate the infrared temperature information of animals in different infrared temperature areas to obtain the infrared temperature disturbance degree of the infrared temperature grayscale image of livestock animals;

[0009] The infrared body temperature detection module is used to adaptively denoise the infrared temperature grayscale image of livestock according to the degree of infrared temperature disturbance to obtain a denoised infrared body temperature image; and perform body temperature detection on the denoised infrared body temperature image.

[0010] Preferably, the method for obtaining the discreteness of the animal temperature distribution is:

[0011] For any infrared temperature region, the gradient and grayscale information within the infrared temperature region are compared to obtain the animal infrared temperature membership of the infrared temperature region;

[0012] Analyze the grayscale discrete distribution in the infrared temperature area to obtain the infrared temperature information dispersion of the infrared temperature area;

[0013] According to the animal infrared temperature membership and the infrared temperature information dispersion, the animal temperature distribution dispersion in the infrared temperature area is obtained.

[0014] Preferably, the method for obtaining the animal infrared temperature membership is:

[0015] According to the gray content and gradient content in the infrared temperature area, the animal infrared temperature membership of the infrared temperature area is obtained; the animal infrared temperature membership is positively correlated with the gray content and negatively correlated with the gradient content.

[0016] Preferably, the method for obtaining the dispersion of the infrared temperature information is:

[0017] By comparing the grayscale difference between different pixel points in the infrared temperature area and the entire infrared temperature area, the infrared temperature information dispersion of the infrared temperature area is obtained; the infrared temperature information dispersion is positively correlated with the grayscale difference.

[0018] Preferably, after calculating the discreteness of the animal temperature distribution, the method further comprises:

[0019] The dispersion of animal temperature distribution was normalized.

[0020] Preferably, the method for obtaining the infrared temperature information of the animal is:

[0021] Record any infrared temperature area as the target infrared temperature area;

[0022] According to the overall distribution of regional grayscale between the target infrared temperature area and other surrounding infrared temperature areas, and the discreteness of animal temperature distribution in the target infrared temperature area, the degree of animal infrared temperature information in the target infrared temperature area is obtained; the infrared temperature information degree is positively correlated with the overall distribution of regional grayscale, and negatively correlated with the discreteness of animal temperature distribution.

[0023] Preferably, after calculating the infrared temperature information of the animal, the method further comprises:

[0024] Normalize the degree of animal infrared temperature information.

[0025] Preferably, the method for obtaining the infrared temperature disturbance degree is:

[0026] For any infrared temperature region, a number of pixel points in the infrared temperature region are divided into a number of temperature detail regions;

[0027] Based on the degree of animal infrared temperature information, the distribution content of animal infrared temperature information in different temperature detail areas is analyzed, and the degree of temperature type disturbance in each temperature detail area is obtained by combining the change stability of grayscale distribution in different temperature detail areas;

[0028] According to the temperature type disturbance degree, the infrared temperature disturbance degree of the infrared temperature area is obtained.

[0029] Preferably, the method for obtaining the degree of disturbance of the temperature detail area is:

[0030] According to the degree of infrared temperature information of animals, several temperature detail areas are divided into several animal temperature areas and several environmental temperature areas;

[0031] Get the animal grayscale variance of the animal temperature region;

[0032] Get the ambient grayscale variance of the ambient temperature area;

[0033] According to the animal grayscale variance and the animal infrared temperature information degree, the temperature detail area disturbance degree of the animal temperature area is obtained; the temperature detail area disturbance degree of the animal temperature area is negatively correlated with the animal grayscale variance and positively correlated with the animal infrared temperature information;

[0034] According to the environmental grayscale variance and the animal infrared temperature information level, the temperature detail area disturbance level of the environmental temperature area is obtained; the temperature detail area disturbance level of the environmental temperature area is negatively correlated with the environmental grayscale variance and negatively correlated with the animal infrared temperature information level.

[0035] Preferably, after calculating the infrared temperature disturbance degree, the method further comprises:

[0036] The degree of infrared temperature disturbance is normalized.

[0037] The beneficial effects of the technical solution of the present invention are as follows: by analyzing the discrete situation of grayscale fluctuations under animal information in the same infrared temperature area, the discreteness of animal temperature distribution is obtained; wherein the discreteness of animal temperature distribution is used to describe the degree of interference to the animal surface temperature information contained in the infrared temperature area, so that the interference relationship of noise to the image information that may represent the animal surface temperature is more obvious; based on the discreteness of animal temperature distribution, the temperature distribution situation between the infrared temperature area and the surrounding area is integrated to obtain the degree of animal infrared temperature information; wherein the degree of animal infrared temperature information is used to describe the possibility that the infrared temperature area as a whole belongs to a part of the animal surface area, so that the surface temperature of livestock animals can be more clearly represented; analyzing the same infrared temperature area The distribution stability of different grayscale details in the external temperature area is calculated, and the degree of infrared temperature information of animals in different infrared temperature areas is integrated to obtain the degree of infrared temperature disturbance; wherein the degree of infrared temperature disturbance is used to describe the influence of noise on the expression of actual animal surface temperature information, thereby improving the denoising effect; the present invention screens out the core livestock animal temperature information by analyzing the distribution difference law between the temperature information in the livestock and environmental areas, and adaptively adjusts the denoising intensity of the livestock animal infrared temperature grayscale image according to the condition that the core livestock animal temperature information is disturbed by noise, thereby improving the denoising efficiency, improving the accuracy of the expression of the core livestock animal temperature information in the infrared image, and improving the credibility of the animal body temperature detection results. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 It is a structural block diagram of an animal body temperature detection system for animal husbandry and veterinary medicine of the present invention;

[0040] Figure 2 It is a schematic diagram of the infrared temperature grayscale map of livestock animals of the present invention. DETAILED DESCRIPTION

[0041] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation, structure, features and effects of an animal temperature detection system for animal husbandry and veterinary medicine proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0042] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0043] The specific scheme of the animal body temperature detection system for animal husbandry and veterinary medicine provided by the present invention is described in detail below with reference to the accompanying drawings.

[0044] See also Figure 1 , which shows a structural block diagram of an animal body temperature detection system for animal husbandry and veterinary medicine provided by an embodiment of the present invention, the system includes the following modules:

[0045] The livestock infrared temperature grayscale image acquisition module 101 acquires the livestock infrared temperature grayscale image, wherein the livestock infrared grayscale image includes a plurality of infrared temperature regions.

[0046] It should be noted that the existing technology usually uses infrared temperature measuring devices to perform non-contact temperature measurement on livestock. However, when the infrared measuring device is in operation, it will generate noise due to the electromagnetic interference of its internal electronic equipment. It cannot effectively distinguish the temperature information of livestock and the environmental area, interferes with the accurate expression of the temperature information of core livestock animals in the infrared image, and reduces the accuracy of the animal's infrared body temperature detection results.

[0047] In a specific implementation of the embodiment of the present invention, the method for obtaining the infrared temperature grayscale image and the infrared temperature area of ​​livestock is:

[0048] Use an infrared thermal imager to collect thermal images of livestock, convert the thermal images into grayscale images to obtain infrared temperature grayscale images of livestock; perform superpixel segmentation on the infrared temperature grayscale images of livestock to obtain several superpixel blocks, and record each superpixel block as an infrared temperature region. Figure 2 , which shows a schematic diagram of the infrared temperature grayscale map of livestock animals.

[0049] It should be noted that this embodiment is described by taking pigs as an example of livestock, and this embodiment does not specifically limit livestock, wherein livestock can be used according to specific implementation conditions; in addition, grayscale processing is a well-known technology and will not be described in detail in this embodiment; the process of superpixel segmentation of an image is a well-known content of the superpixel segmentation algorithm and will not be described in detail in this embodiment.

[0050] So far, several infrared temperature areas in the infrared temperature grayscale image of livestock are obtained through the above method.

[0051] The animal infrared temperature information degree acquisition module 102 analyzes the discreteness of the grayscale fluctuations under the animal information in the same infrared temperature area to obtain the animal temperature distribution discreteness in each infrared temperature area; based on the animal temperature distribution discreteness, the temperature distribution between the infrared temperature area and the surrounding area is integrated to obtain the animal infrared temperature information degree in each infrared temperature area.

[0052] It should be noted that the infrared temperature grayscale map of livestock mainly includes temperature information of livestock and the environment. For the environment, the temperature information in the environment is relatively dispersed because it contains fewer heat sources and is easily affected by other heat sources. For livestock, since the livestock itself is a heat source that continuously emits heat and is not easily affected by other heat sources, the temperature information on the surface of livestock is relatively concentrated. Therefore, the discreteness of grayscale fluctuations under animal information in the same infrared temperature area can be analyzed to obtain the discreteness of animal temperature distribution in each infrared temperature area. The larger the discreteness of animal temperature distribution, the more dispersed the animal surface temperature distribution in the infrared temperature area, reflecting that the animal surface temperature information contained in the infrared temperature area is more interfered. At the same time, because different parts of the body surface of livestock animals dissipate heat differently, there are high heat dissipation areas and low heat dissipation areas. These different heat dissipation areas may have areas that are close to the ambient temperature information; therefore, based on the discreteness of the animal temperature distribution, the temperature distribution between the infrared temperature area and the surrounding area can be combined to obtain the degree of animal infrared temperature information in each infrared temperature area; if the degree of animal infrared temperature information is greater, it means that the infrared temperature area contains more animal surface temperature information, reflecting that the infrared temperature area as a whole is more a part of the animal's body surface area.

[0053] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the animal distribution temperature dispersion is: for any infrared temperature area, compare the gradient and grayscale information in the infrared temperature area to obtain the animal infrared temperature membership of the infrared temperature area; analyze the grayscale discrete distribution in the infrared temperature area to obtain the infrared temperature information dispersion of the infrared temperature area; obtain the animal temperature distribution dispersion of the infrared temperature area according to the animal infrared temperature membership and the infrared temperature information dispersion. The specific process is as follows:

[0054] 1. Obtain the animal infrared temperature membership of the infrared temperature area.

[0055] It should be noted that, under normal circumstances, compared with the temperature information in the environment, the distribution of livestock animal surface temperature information is more continuous, and the overall temperature is relatively high, so that the corresponding gradient amplitude is relatively small and the grayscale value is relatively large; therefore, by comparing the changes in the gradient amplitude and grayscale in the infrared temperature area, the animal infrared temperature membership of the infrared temperature area can be obtained. The larger the animal infrared temperature membership, the more animal surface temperature information belongs to the infrared temperature area.

[0056] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the animal infrared temperature membership is: according to the gray content and gradient content in the infrared temperature area, the animal infrared temperature membership of the infrared temperature area is obtained; the animal infrared temperature membership is positively correlated with the gray content and negatively correlated with the gradient content. As an example, the animal infrared temperature membership of the infrared temperature area can be calculated by the following formula:

[0057]

[0058] In the formula, Indicates the animal infrared temperature membership of the infrared temperature zone; Represents the number of all pixels in the infrared temperature area; Indicates the infrared temperature zone The gray value of each pixel; Indicates the infrared temperature zone The gradient amplitude of each pixel; Indicates the preset hyperparameters. In this embodiment, , used to prevent the denominator from being 0.

[0059] It should be noted that, if the animal infrared temperature membership is greater, it means that there is more information about the animal surface temperature in the infrared temperature area; in addition, the process of obtaining the gradient amplitude is a well-known content of the Sobel algorithm and will not be repeated in this embodiment.

[0060] 2. Obtain the dispersion of infrared temperature information in the infrared temperature area.

[0061] It should be noted that, for any infrared temperature zone, the temperature information contained in the infrared temperature zone may include ambient temperature information or animal surface temperature information, and the content of these two temperature information in the infrared temperature zone will continuously affect the dispersion of the temperature information in the infrared temperature zone; therefore, the dispersion of the infrared temperature information in the infrared temperature zone can be obtained by analyzing the grayscale discrete distribution in the infrared temperature zone; if the dispersion of the infrared temperature information is greater, it means that the ambient temperature information occupies more content in the infrared temperature zone.

[0062] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the infrared temperature information dispersion is: by comparing the grayscale difference between different pixel points in the infrared temperature area and the infrared temperature area as a whole, the infrared temperature information dispersion of the infrared temperature area is obtained; the infrared temperature information dispersion is positively correlated with the grayscale difference. As an example, the infrared temperature information dispersion of the infrared temperature area can be calculated by the following formula:

[0063]

[0064] In the formula, Indicates the dispersion of infrared temperature information in the infrared temperature area; Represents the number of all pixels in the infrared temperature area; Indicates the infrared temperature zone The gray value of each pixel; Represents the mean gray value of all pixels in the infrared temperature area; Indicates taking the absolute value.

[0065] It should be noted that Used to describe grayscale differences; if the dispersion of infrared temperature information is greater, it means that the ambient temperature information occupies more content in the infrared temperature area.

[0066] 3. According to the animal infrared temperature membership and the infrared temperature information dispersion, the animal temperature distribution dispersion in the infrared temperature area is obtained.

[0067] The normalized value of the product of the animal infrared temperature membership and the infrared temperature information dispersion is taken as the animal temperature distribution dispersion in the infrared temperature area.

[0068] Furthermore, the discreteness of animal temperature distribution in each infrared temperature zone is obtained.

[0069] It should be noted that, if the dispersion of the animal temperature distribution is greater, it means that the animal surface temperature distribution in the infrared temperature area is more dispersed, reflecting that the animal surface temperature information contained in the infrared temperature area is more interfered.

[0070] It is particularly noted that this embodiment uses A linear normalization function is used for normalization processing, wherein the implementer can select the normalization function according to the actual situation.

[0071] So far, the animal temperature distribution dispersion in each infrared temperature zone is obtained through the above process.

[0072] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the degree of infrared temperature information of animals is: record any infrared temperature area as the target infrared temperature area; obtain the degree of infrared temperature information of animals in the target infrared temperature area according to the overall distribution of regional grayscale between the target infrared temperature area and other surrounding infrared temperature areas, and the discreteness of animal temperature distribution in the target infrared temperature area; the degree of infrared temperature information is positively correlated with the overall distribution of regional grayscale, and negatively correlated with the discreteness of animal temperature distribution. As an example, the degree of infrared temperature information of animals in the target infrared temperature area can be calculated by the following formula:

[0073]

[0074] In the formula, Indicates the degree of animal infrared temperature information in the target infrared temperature area; Represents the mean grayscale value of all pixels in the target infrared temperature area; Represents the mean grayscale value of all pixels in all infrared temperature areas within the eight neighborhoods of the target infrared temperature area; Indicates the dispersion of animal temperature distribution in the target infrared temperature area.

[0075] It should be noted that Used to describe the overall distribution of regional grayscale; if the degree of animal infrared temperature information is greater, it means that the infrared temperature area contains more animal surface temperature information, reflecting that the infrared temperature area as a whole is more a part of the animal's body surface.

[0076] Furthermore, the degree of animal infrared temperature information in each infrared temperature zone is obtained.

[0077] So far, the infrared temperature information level of animals in each infrared temperature zone is obtained through the above method.

[0078] The infrared temperature disturbance degree acquisition module 103 analyzes the distribution stability of different grayscale details in the same infrared temperature area, and integrates the infrared temperature information degrees of animals in different infrared temperature areas to obtain the infrared temperature disturbance degree of the infrared temperature grayscale image of livestock animals.

[0079] It should be noted that, for any infrared temperature region, the infrared temperature region usually contains a variety of temperature information, which characterizes the temperature content of animals and the environment, and is distributed in the infrared temperature region according to a certain distribution rule. The more stable the distribution of the grayscale information characterizing the animal temperature information, the less the infrared temperature region is disturbed by noise, reflecting that the intensity of denoising required for the infrared temperature region is greater; therefore, the degree of infrared temperature disturbance of the infrared temperature grayscale image of livestock can be obtained by analyzing the distribution stability of different grayscale details in the same infrared temperature region and integrating the degree of infrared temperature information of animals in different infrared temperature regions; if the degree of infrared temperature disturbance is greater, it means that the animal surface temperature in the infrared temperature grayscale image of livestock is disturbed by noise to a greater extent, reflecting that the intensity of denoising required for the infrared temperature region is greater.

[0080] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the degree of infrared temperature disturbance is as follows: for any infrared temperature area, a number of pixel points in the infrared temperature area are divided into a number of temperature detail areas; based on the degree of animal infrared temperature information, the distribution content of animal infrared temperature information in different temperature detail areas is analyzed, and the degree of temperature type disturbance of each temperature detail area is obtained in combination with the change stability of the grayscale distribution in different temperature detail areas; according to the degree of temperature type disturbance, the degree of infrared temperature disturbance of the infrared temperature area is obtained. The specific process is as follows:

[0081] 1. Get the temperature details area.

[0082] The method for obtaining the temperature detail area is as follows: taking the Euclidean distance between different pixel points in the infrared temperature area as the distance metric, clustering all the pixel points in the infrared temperature area according to the distance metric to obtain several clusters, and recording each cluster as the temperature detail area.

[0083] It should be noted that the acquisition of Euclidean distance is a well-known technology and will not be described in detail in this embodiment; the process of clustering based on distance measurement is a well-known content of the K-means clustering algorithm, wherein the K value in the K-means clustering algorithm is obtained by the elbow method, which is also a well-known technology and will not be described in detail in this example.

[0084] 2. Get the degree of disturbance in the temperature detail area.

[0085] It should be noted that in the same infrared temperature area, there may be temperatures with the same numerical value between the ambient temperature information and the animal surface temperature information. However, due to the large difference in the discrete distribution laws between the ambient temperature information and the animal surface temperature information, and the fact that these temperatures with the same numerical value are usually distributed continuously, the distribution content of the animal infrared temperature information in different temperature detail areas can be analyzed based on the degree of animal infrared temperature information, and the degree of temperature type disturbance of each temperature detail area can be obtained by combining the stability of the change of grayscale distribution in different temperature detail areas; if the degree of temperature type disturbance is greater, it means that the temperature detail area is affected by noise interference and has a greater impact on the final body temperature detection result, reflecting that the temperature detail area is more likely to belong to the animal surface part.

[0086] Preferably, in some implementations of the embodiments of the present invention, the method for obtaining the degree of disturbance of the temperature detail area is: according to the degree of animal infrared temperature information, several temperature detail areas are divided into several animal temperature areas and several environmental temperature areas; the animal grayscale variance of the animal temperature area is obtained; the environmental grayscale variance of the environmental temperature area is obtained; according to the animal grayscale variance and the degree of animal infrared temperature information, the degree of disturbance of the temperature detail area of ​​the animal temperature area is obtained; the degree of disturbance of the temperature detail area of ​​the animal temperature area is negatively correlated with the animal grayscale variance and positively correlated with the animal infrared temperature information; according to the environmental grayscale variance and the degree of animal infrared temperature information, the degree of disturbance of the temperature detail area of ​​the environmental temperature area is obtained; the degree of disturbance of the temperature detail area of ​​the environmental temperature area is negatively correlated with the environmental grayscale variance and negatively correlated with the degree of animal infrared temperature information. The specific process is as follows:

[0087] Taking any temperature detail area as an example, referring to the method for obtaining the infrared temperature information level of animals in the infrared temperature area, the infrared temperature area is replaced with the temperature detail area to obtain the infrared temperature information level of animals in the temperature detail area; a threshold value of the infrared temperature information level of animals in a temperature detail area is preset. , if the animal infrared temperature information level in the temperature detail area is less than , the temperature detail area is recorded as the ambient temperature area; if the animal infrared temperature information level in the temperature detail area is greater than or equal to , record the temperature detail area as the animal temperature area; obtain several animal temperature areas and several environmental temperature areas. This example is described as an example, and this embodiment is not specifically limited. It may depend on the specific implementation situation.

[0088] Furthermore, taking any animal temperature region as an example, the variance of the grayscale values ​​of all pixels in the animal temperature region is used as the animal grayscale variance of the animal temperature region; the ratio of the animal infrared temperature information level to the animal grayscale variance of the animal temperature region is used as the temperature detail region disturbance level of the animal temperature region. The temperature detail region disturbance level of each animal temperature region is obtained.

[0089] Furthermore, taking any ambient temperature region as an example, the variance of the grayscale values ​​of all pixels in the ambient temperature region is taken as the ambient grayscale variance of the ambient temperature region; the inversely proportional normalized value of the product between the animal infrared temperature information level in the ambient temperature region and the animal grayscale variance is taken as the temperature detail region disturbance level of the ambient temperature region. The temperature detail region disturbance level of each ambient temperature region is obtained.

[0090] It is particularly noted that this embodiment adopts the default Model to present inverse proportional relationship and normalization, As the input of the model, the implementer can choose the inverse proportional function and the normalization function according to the actual situation.

[0091] In summary, the temperature detail region disturbance degree of each temperature detail region is obtained.

[0092] 3. According to the disturbance degree of the temperature detail area, the infrared temperature disturbance degree of the infrared temperature area is obtained.

[0093] The normalized value of the mean disturbance degree of the temperature detail areas of all temperature detail areas is used as the infrared temperature disturbance degree of the infrared temperature grayscale image of livestock.

[0094] So far, the infrared temperature disturbance degree of the infrared temperature grayscale image of livestock is obtained through the above method.

[0095] The infrared body temperature detection module 104 performs adaptive denoising on the infrared temperature grayscale image of the livestock according to the degree of infrared temperature disturbance to obtain a denoised infrared body temperature image; and performs body temperature detection on the denoised infrared body temperature image.

[0096] The degree of infrared temperature disturbance of the infrared temperature grayscale image of the livestock is used as the weight of the Gaussian filter, and the infrared temperature of the livestock is filtered and denoised to obtain a denoised infrared body temperature image; the denoised infrared body temperature image is input into the digital intelligent body temperature detection module for temperature detection. The process of filtering and denoising the image according to the weight is a well-known content of the Gaussian filter algorithm, and will not be repeated in this embodiment.

[0097] At this point, this embodiment is completed.

[0098] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An animal body temperature detection system for animal husbandry and veterinary medicine, characterized in that: The system includes the following modules: A livestock infrared temperature grayscale image acquisition module is used to acquire a livestock infrared temperature grayscale image, wherein the livestock infrared grayscale image includes a plurality of infrared temperature regions; The animal infrared temperature information degree acquisition module is used to analyze the discreteness of grayscale fluctuations under the animal information in the same infrared temperature area, and obtain the animal temperature distribution dispersion in each infrared temperature area; based on the animal temperature distribution dispersion, the temperature distribution between the infrared temperature area and the surrounding area is integrated to obtain the animal infrared temperature information degree in each infrared temperature area; The infrared temperature disturbance degree acquisition module is used to analyze the distribution stability of different grayscale details in the same infrared temperature area, and integrate the infrared temperature information of animals in different infrared temperature areas to obtain the infrared temperature disturbance degree of the infrared temperature grayscale image of livestock animals; The infrared body temperature detection module is used to adaptively denoise the infrared temperature grayscale image of livestock animals according to the degree of infrared temperature disturbance to obtain a denoised infrared body temperature image; and perform body temperature detection on the denoised infrared body temperature image; The method for obtaining the infrared temperature information of the animal is as follows: Record any infrared temperature area as the target infrared temperature area; According to the overall distribution of regional grayscale between the target infrared temperature area and other surrounding infrared temperature areas, and the discreteness of animal temperature distribution in the target infrared temperature area, the degree of animal infrared temperature information in the target infrared temperature area is obtained; the degree of infrared temperature information is positively correlated with the overall distribution of regional grayscale, and negatively correlated with the discreteness of animal temperature distribution; The method for obtaining the infrared temperature disturbance degree is: For any infrared temperature region, a number of pixel points in the infrared temperature region are divided into a number of temperature detail regions; Based on the degree of animal infrared temperature information, the distribution content of animal infrared temperature information in different temperature detail areas is analyzed, and the degree of temperature type disturbance in each temperature detail area is obtained by combining the change stability of grayscale distribution in different temperature detail areas; According to the temperature type disturbance degree, the infrared temperature disturbance degree of the infrared temperature area is obtained.

2. The animal body temperature detection system for animal husbandry and veterinary medicine according to claim 1, characterized in that: The method for obtaining the discreteness of the animal temperature distribution is: For any infrared temperature region, the gradient and grayscale information within the infrared temperature region are compared to obtain the animal infrared temperature membership of the infrared temperature region; Analyze the grayscale discrete distribution in the infrared temperature area to obtain the infrared temperature information dispersion of the infrared temperature area; According to the animal infrared temperature membership and the infrared temperature information dispersion, the animal temperature distribution dispersion in the infrared temperature area is obtained.

3. The animal body temperature detection system for animal husbandry and veterinary medicine according to claim 2, characterized in that: The method for obtaining the animal infrared temperature membership is: According to the gray content and gradient content in the infrared temperature area, the animal infrared temperature membership of the infrared temperature area is obtained; the animal infrared temperature membership is positively correlated with the gray content and negatively correlated with the gradient content.

4. The animal body temperature detection system for animal husbandry and veterinary medicine according to claim 2, characterized in that: The method for obtaining the dispersion of the infrared temperature information is as follows: By comparing the grayscale difference between different pixel points in the infrared temperature area and the entire infrared temperature area, the infrared temperature information dispersion of the infrared temperature area is obtained; the infrared temperature information dispersion is positively correlated with the grayscale difference.

5. The animal body temperature detection system for animal husbandry and veterinary medicine according to claim 1, characterized in that: After calculating the dispersion of animal temperature distribution, it also includes: The dispersion of animal temperature distribution was normalized.

6. The animal body temperature detection system for animal husbandry and veterinary medicine according to claim 1, characterized in that: After calculating the degree of animal infrared temperature information, it also includes: Normalize the degree of animal infrared temperature information.

7. The animal body temperature detection system for animal husbandry and veterinary medicine according to claim 1, characterized in that: The method for obtaining the degree of disturbance in the temperature detail area is as follows: According to the degree of infrared temperature information of animals, several temperature detail areas are divided into several animal temperature areas and several environmental temperature areas; Get the animal grayscale variance of the animal temperature region; Get the ambient grayscale variance of the ambient temperature area; According to the animal grayscale variance and the animal infrared temperature information degree, the temperature detail area disturbance degree of the animal temperature area is obtained; the temperature detail area disturbance degree of the animal temperature area is negatively correlated with the animal grayscale variance and positively correlated with the animal infrared temperature information; According to the environmental grayscale variance and the animal infrared temperature information level, the temperature detail area disturbance level of the environmental temperature area is obtained; the temperature detail area disturbance level of the environmental temperature area is negatively correlated with the environmental grayscale variance and negatively correlated with the animal infrared temperature information level.

8. The animal body temperature detection system for animal husbandry and veterinary medicine according to claim 1, characterized in that: After calculating the degree of infrared temperature disturbance, it also includes: The degree of infrared temperature disturbance is normalized.

Citation Information

Patent Citations

  • Method, device and handhold device for measuring human body heart rate based on visible image

    CN103054569A

  • Minimum resolvable temperature difference objective testing method of thermal imager

    CN105043554A

  • Fast noise-containing image two-dimensional maximum between-class variance threshold value method

    CN106709928A

  • Animal target image extraction method and system

    CN108038864A

  • Self-adaptive non-local fuzzy C-means clustering SAR image segmentation algorithm

    CN110147795A