A method for identifying pollutants in aquaculture areas

The water surface image is obtained by drone and odd blocks are extracted and processed in the cloud server, which solves the problem of low pollutant identification accuracy and efficiency in aquaculture areas, achieves fast and accurate pollutant identification and labeling, and improves the quality of water bodies. quality and monitoring efficiency, reducing costs.

CN118196716BActive Publication Date: 2024-08-27GUANGDONG OCEAN UNIVERSITY
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410584928.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-08-27
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

Traditional pollutant treatment methods have problems with low identification accuracy and efficiency in aquaculture areas. They are affected by factors such as fish activity, plant floating, and weather changes, resulting in image distortion and making it difficult to reflect the pollution status in real time and comprehensively.

Method used

UAVs are used to obtain water surface images and sent to the cloud server. Through odd block extraction and pixel analysis, odd block distribution is generated and pollutant locations are marked to achieve fast and accurate pollutant identification and labeling.

Benefits of technology

It improves the water quality in aquaculture areas, reduces labor cleaning costs, improves the response speed of the monitoring center to pollutant treatment, avoids unnecessary cleaning operations, saves aquaculture resources, and makes water quality management more intelligent and precise. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118196716B
    Figure CN118196716B
Patent Text Reader

Abstract

The present invention relates to the field of image processing, and provides a method for identifying pollutants in an aquaculture area, obtaining a water surface image of the aquaculture area and sending it to a cloud server, in which an odd block extraction process is performed on the water surface image to obtain an odd block distribution, and the water surface image is marked with pollutants according to the odd block distribution, and the water surface image after the pollutant marking is sent to a monitoring center. The method can improve the water quality in the aquaculture area, reduce the manpower cleaning cost, and improve the response speed of the monitoring center to the pollutant treatment. The water surface image is quickly processed in a short time by the cloud server in the form of pixel analysis and numerical calculation, and the pollutants are efficiently identified and marked. While improving the efficiency of water quality monitoring, unnecessary extensive cleaning operations are avoided, aquaculture resources are saved, and water quality management is made more intelligent and precise.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of image processing, and in particular to a method for identifying pollutants in an aquaculture area. Background Art

[0002] Traditional pollutant treatment methods mainly rely on regular manual intervention, which has a long treatment cycle and high costs, and it is difficult to reflect the pollution status of the entire aquaculture area in real time and comprehensively. In recent years, pollutant identification methods based on deep learning and computer vision have been widely used. Through real-time monitoring and automatic identification of pollutants, it provides a more effective solution to pollution sources compared to traditional manual intervention.

[0003] However, due to the rapid changes in the aquaculture environment and the high complexity of the scene, the pollutant identification technology based on image processing is often affected by some factors, which leads to a decrease in its recognition accuracy and efficiency. For example, fish activities, floating plants, and insufficient lighting conditions caused by weather changes have caused a certain degree of interference to the pixel information in the water surface image, resulting in image distortion, which affects the accuracy of the recognition result. Therefore, a method for identifying pollutants in aquaculture areas based on image processing technology is proposed to achieve rapid, accurate and real-time monitoring of the pollution status in aquaculture areas, thereby improving the efficiency and effectiveness of water quality management. Summary of the invention

[0004] The purpose of the present invention is to propose a method for identifying pollutants in an aquaculture area to solve one or more technical problems existing in the prior art and at least provide a beneficial option or create conditions.

[0005] The present invention provides a method for identifying pollutants in an aquaculture area, which obtains a water surface image of the aquaculture area and sends it to a cloud server. In the cloud server, the water surface image is subjected to odd block extraction processing to obtain an odd block distribution, and the water surface image is marked with pollutants according to the odd block distribution, and the water surface image after the pollutant marking is sent to a monitoring center. The method can improve the water quality in the aquaculture area, reduce the manpower cleaning cost, and improve the response speed of the monitoring center to the treatment of pollutants. The water surface image is quickly processed in a short time by the cloud server in the form of pixel analysis and numerical calculation, and the pollutants are efficiently identified and marked. While improving the efficiency of water quality monitoring, unnecessary extensive cleaning operations are avoided, aquaculture resources are saved, and water quality management is made more intelligent and precise.

[0006] In order to achieve the above object, according to one aspect of the present invention, a method for identifying pollutants in an aquaculture area is provided, the method comprising the following steps:

[0007] S100, obtaining a water surface image of the aquaculture area and sending it to a cloud server;

[0008] S200, in the cloud server, performing odd block extraction processing on the water surface image to obtain an odd block distribution;

[0009] S300, marking pollutants on the water surface image according to the distribution of odd blocks;

[0010] S400, sending the water surface image after the pollutant marking to the monitoring center.

[0011] Furthermore, in step S100, the method of obtaining the water surface image of the aquaculture area and sending it to the cloud server is specifically as follows: deploying a drone above the aquaculture area, photographing the water surface of the aquaculture area by the drone, obtaining the water surface image of the aquaculture area, and sending the water surface image to the cloud server by the drone;

[0012] Among them, the drone has a built-in IoT card and is connected to the mobile Internet, establishing communication with the cloud server through the mobile Internet.

[0013] Furthermore, in step S200, in the cloud server, the water surface image is subjected to an odd block extraction process, and a method for obtaining an odd block distribution is specifically as follows:

[0014] S201, eliminating the background part in the water surface image to obtain the foreground part of the water surface, wherein the foreground part is composed of a plurality of closed areas, each of which contains some pixels, and each pixel corresponds to a unique pixel value;

[0015] The number of the multiple closed regions is N, reg(i) represents the i-th closed region among the N closed regions, i is a sequence number, i=1, 2, ..., N, Sp(i) represents the total number of pixels in reg(i), then the N closed regions reg(1), reg(2), ..., reg(N) correspond to the N total number of pixels Sp(1), Sp(2), ..., Sp(N), and go to S202;

[0016] S202, Sp(1), Sp(2), ..., Sp(N) are stored in an array Sp[], where the array Sp[] contains N values, Sp(i) represents the i-th value in the array Sp[], and a first odd-column array Foa[] is generated according to the array Sp[].

[0017] Calculate the odd block sequence value of each closed area, and use osv(i) to represent the odd block sequence value corresponding to reg(i), then N closed areas reg(1), reg(2), ..., reg(N) correspond to N odd block sequence values ​​osv(1), osv(2), ..., osv(N), store osv(1), osv(2), ..., osv(N) in an array osv[], then the array osv[] contains N values, osv(i) represents the i-th value in the array osv[], and generate a second odd column array Soa[] according to the array osv[]; go to S203;

[0018] S203, obtain odd block distribution according to Foa[] and Soa[].

[0019] The beneficial effects of this step are as follows: since aquaculture waters require regular environmental maintenance, such as cleaning up garbage on the water surface or oxygenating and changing water bodies, in order to ensure the quality of the aquaculture environment, pollutants on the surface of the waters usually need to be cleaned up manually on site, which increases certain management costs. At the same time, pollutants should be treated only when they reach a certain amount. Too frequent cleaning or too long cleaning intervals are not conducive to cost control or water management. Therefore, identifying and controlling the pollution status of aquaculture areas through remote monitoring is one of the effective means to reduce water surface pollutants. Taking into account the appearance of aquatic animals on the water surface at the moment of image capture or the influence of water surface on the refraction of light, which causes noise pixels (i.e., pixels that do not reflect pollutants) to appear in the image, this step can effectively reduce the pollution of aquaculture areas. The method of the step extracts odd blocks from the water surface image, and the odd blocks reflect the location of the pollutants. The odd block sequence value of each closed area is used as the recognition degree of the pollutant. At the same time, two sets of odd column arrays are generated by pixel calculation. By comparing the position difference values ​​of the closed areas in the two sets of odd column arrays, the specific distribution of the odd blocks is determined. If any closed area has a large change after two pixel calculations, the possibility that the area is the area where the pollutants are located is low, which is usually caused by the interference of noise pixels. Accurate and efficient identification of pollutants on the water surface of aquaculture areas is achieved in a high-precision marking manner, reducing labor costs, avoiding excessive or insufficient cleaning, providing effective data support for water cleaning planning, and further protecting and improving water quality.

[0020] Furthermore, the method for generating the first odd column array Foa[] according to the array Sp[] is specifically as follows:

[0021] Set variable x, and use Sp(x) to represent the x-th value of variable x in array Sp[]. Note that there are Foa(x) values ​​in array Sp[] that are less than Sp(x) (if all values ​​in array Sp[] are not less than Sp(x), then Foa(x)=0);

[0022] Traverse x from x=1 to x=N to obtain Foa(1), Foa(2), …, Foa(N), and use Foa(1), Foa(2), …, Foa(N) to form the array Foa[], and Foa(i) represents the i-th value in the array Foa[].

[0023] Furthermore, the method for calculating the odd block sequence value of each closed area is specifically as follows:

[0024] For the i-th closed area reg(i) among N closed areas, reg(i) contains Sp(i) pixels, and P(i,j) represents the pixel value corresponding to the j-th pixel among these Sp(i) pixels, where j is the sequence number, j=1,2,…,Sp(i);

[0025] Among the Sp(i) pixels, all pixels with pixel values ​​less than P(i,j) form a first pixel combination, all pixels with pixel values ​​greater than P(i,j) form a second pixel combination, the sum of the pixel values ​​of all pixels in the first pixel combination minus P(i,j) is used as the first denominator, the sum of the pixel values ​​of all pixels in the second pixel combination is used as the first numerator, and the value obtained by dividing the first numerator by the first denominator is recorded as the first sequence value;

[0026] Traverse j from j=1 to j=Sp(i) to obtain Sp(i) first sequence values, accumulate these Sp(i) first sequence values ​​to obtain the odd block sequence value osv(i) corresponding to reg(i).

[0027] Furthermore, the method for generating the second odd column array Soa[] according to the array osv[] is specifically as follows:

[0028] Set variable y, and use osv(y) to represent the yth value of variable y in array osv[]. Note that there are Soa(y) values ​​in array osv[] that are less than osv(y);

[0029] Traverse y from y=1 to y=N to obtain Soa(1), Soa(2), …, Soa(N), and use Soa(1), Soa(2), …, Soa(N) to form an array Soa[], and use Soa(i) to represent the i-th value in the array Soa[].

[0030] Furthermore, the method for obtaining the odd block distribution according to Foa[] and Soa[] is specifically as follows:

[0031] Sequentially, make a pairwise difference between the N values ​​in the array Foa[] and the N values ​​in the array Soa[] to obtain N first difference values, take the average of the absolute values ​​of the N first difference values ​​as the first value, take the maximum value of the N first difference values ​​as the second value, and record the value obtained by dividing the first value by the second value as the odd difference value, and create a blank array R[];

[0032] Set variable t, use Foa(t) to represent the t-th value in array Foa[], and use Soa(t) to represent the t-th value in array Soa[]. If the absolute value of the difference between Foa(t) and Soa(t) is less than or equal to the odd difference, add the value of Foa(t) to array R[] (array R[] is used to store the sequence number value of the odd block);

[0033] Traverse t from t=1 to t=N to complete writing to the array R[];

[0034] Suppose that the array R[] contains S values, and R(k) represents the kth value in the array R[], where k is the sequence number, k=1,2,…,S. Then the array R[] consists of S values ​​R(1),R(2),…,R(S). Among the N closed regions reg(1),reg(2),…,reg(N), mark reg(R(1)),reg(R(2)),…,reg(R(S)) as the closed regions where the odd blocks are located.

[0035] Among them, reg(R(1)) represents the R(1)th closed area among N closed areas, reg(R(2)) represents the R(2)th closed area among N closed areas, and reg(R(S)) represents the R(S)th closed area among N closed areas.

[0036] Furthermore, in step S300, the method for marking pollutants in the water surface image according to the distribution of odd blocks is specifically as follows: among the N closed areas of the water surface image, the closed area marked with odd blocks is marked as the location of the pollutant.

[0037] Furthermore, in step S400, the method of sending the water surface image after the pollutant marking to the monitoring center is specifically as follows:

[0038] Through the server, the water surface image after pollutant marking is sent to the monitoring center, which is the control center of the aquaculture area. The monitoring center is used to collect and process monitoring information of the aquaculture area to ensure the safety and environmental quality of the aquaculture area.

[0039] The beneficial effects of the present invention are as follows: the method can improve the water quality in aquaculture areas, reduce labor cleaning costs, and increase the response speed of the monitoring center to pollutant treatment. Through a cloud server, water surface images can be quickly processed in a short time by pixel analysis and numerical calculation, thereby achieving efficient identification and marking of pollutants. While improving the efficiency of water quality monitoring, unnecessary extensive cleaning operations are avoided, aquaculture resources are saved, and water quality management is made more intelligent and precise. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The above and other features of the present invention will become more obvious by describing in detail the embodiments shown in the accompanying drawings. The same reference numerals in the accompanying drawings of the present invention represent the same or similar elements. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other accompanying drawings can be obtained based on these accompanying drawings without creative work. In the accompanying drawings:

[0041] Figure 1 Shown is a flow chart of a method for identifying contaminants in an aquaculture area. DETAILED DESCRIPTION

[0042] The following will be combined with the embodiments and drawings to clearly and completely describe the concept, specific structure and technical effects of the present invention, so as to fully understand the purpose, scheme and effect of the present invention. It should be noted that the embodiments and features in the embodiments of this application can be combined with each other without conflict.

[0043] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0044] like Figure 1 The flowchart of the method for identifying pollutants in an aquaculture area according to the present invention is shown below. Figure 1 A method for identifying pollutants in an aquaculture area according to an embodiment of the present invention will be described.

[0045] The present invention provides a method for identifying pollutants in an aquaculture area, the method comprising the following steps:

[0046] S100, obtaining a water surface image of the aquaculture area and sending it to a cloud server;

[0047] S200, in the cloud server, performing odd block extraction processing on the water surface image to obtain an odd block distribution;

[0048] S300, marking pollutants on the water surface image according to the distribution of odd blocks;

[0049] S400, sending the water surface image after the pollutant marking to the monitoring center.

[0050] Furthermore, in step S100, the method of obtaining the water surface image of the aquaculture area and sending it to the cloud server is specifically as follows: deploying a drone above the aquaculture area, photographing the water surface of the aquaculture area by the drone, obtaining the water surface image of the aquaculture area, and sending the water surface image to the cloud server by the drone;

[0051] Among them, the drone has a built-in IoT card and is connected to the mobile Internet, establishing communication with the cloud server through the mobile Internet.

[0052] Furthermore, in step S200, in the cloud server, the water surface image is subjected to an odd block extraction process, and a method for obtaining an odd block distribution is specifically as follows:

[0053] S201, removing the background (or background, i.e., water surface) portion in the water surface image (pixels showing the water surface account for a large proportion in the water surface image, and the background of the water surface is removed to facilitate the extraction of some pixels reflecting pollutants), and obtaining a foreground portion of the water surface, wherein the foreground portion is composed of a plurality of closed areas (pollutants are dispersedly distributed in these closed areas), each of which contains some pixels, and each pixel corresponds to a unique pixel value;

[0054] The closed area is defined as follows: for some pixels gathered in the water surface image, if there are no pixels at the edge of the area composed of these pixels, then the area composed of these pixels is called a closed area;

[0055] The number of the multiple closed regions is N, reg(i) represents the i-th closed region among the N closed regions, i is a sequence number, i=1, 2, ..., N, Sp(i) represents the total number of pixels in reg(i), then the N closed regions reg(1), reg(2), ..., reg(N) correspond to the N total number of pixels Sp(1), Sp(2), ..., Sp(N), and go to S202;

[0056] S202, Sp(1), Sp(2), ..., Sp(N) are stored in an array Sp[], where the array Sp[] contains N values, Sp(i) represents the i-th value in the array Sp[], and a first odd-column array Foa[] is generated according to the array Sp[].

[0057] Calculate the odd block sequence value of each closed area, and use osv(i) to represent the odd block sequence value corresponding to reg(i), then N closed areas reg(1), reg(2), ..., reg(N) correspond to N odd block sequence values ​​osv(1), osv(2), ..., osv(N), store osv(1), osv(2), ..., osv(N) in an array osv[], then the array osv[] contains N values, osv(i) represents the i-th value in the array osv[], and generate a second odd column array Soa[] according to the array osv[]; go to S203;

[0058] S203, obtain odd block distribution according to Foa[] and Soa[].

[0059] Furthermore, the method for generating the first odd column array Foa[] according to the array Sp[] is specifically as follows:

[0060] Set variable x, and use Sp(x) to represent the x-th value of variable x in array Sp[]. Note that there are Foa(x) values ​​in array Sp[] that are less than Sp(x) (if all values ​​in array Sp[] are not less than Sp(x), then Foa(x)=0);

[0061] Traverse x from x=1 to x=N to obtain Foa(1), Foa(2), …, Foa(N), and use Foa(1), Foa(2), …, Foa(N) to form the array Foa[], and Foa(i) represents the i-th value in the array Foa[].

[0062] Furthermore, the method for calculating the odd block sequence value of each closed area is specifically as follows:

[0063] For the i-th closed area reg(i) among N closed areas, reg(i) contains Sp(i) pixels, and P(i,j) represents the pixel value corresponding to the j-th pixel among these Sp(i) pixels, where j is the sequence number, j=1,2,…,Sp(i);

[0064] Among the Sp(i) pixels, all pixels with pixel values ​​less than P(i,j) form a first pixel combination, all pixels with pixel values ​​greater than P(i,j) form a second pixel combination, the sum of the pixel values ​​of all pixels in the first pixel combination minus P(i,j) is used as the first denominator, the sum of the pixel values ​​of all pixels in the second pixel combination is used as the first numerator, and the value obtained by dividing the first numerator by the first denominator is recorded as the first sequence value;

[0065] Traverse j from j=1 to j=Sp(i), thereby obtaining Sp(i) first sequence values, and accumulate these Sp(i) first sequence values ​​to obtain the odd block sequence value osv(i) corresponding to reg(i);

[0066] Its specific mathematical expression is:

[0067]

[0068] Where Less[P(i,j)] represents the sum of the pixel values ​​of all pixels whose pixel values ​​are less than P(i,j), and Large[P(i,j)] represents the sum of the pixel values ​​of all pixels whose pixel values ​​are greater than P(i,j).

[0069] Furthermore, the method for generating the second odd column array Soa[] according to the array osv[] is specifically as follows:

[0070] Set variable y, and use osv(y) to represent the yth value of variable y in array osv[]. Note that there are Soa(y) values ​​in array osv[] that are less than osv(y);

[0071] Traverse y from y=1 to y=N to obtain Soa(1), Soa(2), …, Soa(N), and use Soa(1), Soa(2), …, Soa(N) to form an array Soa[], and use Soa(i) to represent the i-th value in the array Soa[].

[0072] Furthermore, the method for obtaining the odd block distribution according to Foa[] and Soa[] is specifically as follows:

[0073] Sequentially, make a pairwise difference between the N values ​​in the array Foa[] and the N values ​​in the array Soa[] to obtain N first difference values, take the average of the absolute values ​​of the N first difference values ​​as the first value, take the maximum value of the N first difference values ​​as the second value, and record the value obtained by dividing the first value by the second value as the odd difference value, and create a blank array R[];

[0074] Set variable t, use Foa(t) to represent the t-th value in array Foa[], and use Soa(t) to represent the t-th value in array Soa[]. If the absolute value of the difference between Foa(t) and Soa(t) is less than or equal to the odd difference, add the value of Foa(t) to array R[] (array R[] is used to store the sequence number value of the odd block);

[0075] Traverse t from t=1 to t=N to complete writing to the array R[];

[0076] Suppose that the array R[] contains S values, and R(k) represents the kth value in the array R[], where k is the sequence number, k=1,2,…,S. Then the array R[] consists of S values ​​R(1),R(2),…,R(S). Among the N closed regions reg(1),reg(2),…,reg(N), mark reg(R(1)),reg(R(2)),…,reg(R(S)) as the closed regions where the odd blocks are located.

[0077] Among them, reg(R(1)) represents the R(1)th closed area among N closed areas, reg(R(2)) represents the R(2)th closed area among N closed areas, and reg(R(S)) represents the R(S)th closed area among N closed areas.

[0078] Furthermore, in step S300, the method for marking pollutants in the water surface image according to the distribution of odd blocks is specifically as follows: among the N closed areas of the water surface image, the closed area marked with odd blocks is marked as the location of the pollutant.

[0079] Furthermore, in step S400, the method of sending the water surface image after the pollutant marking to the monitoring center is specifically as follows:

[0080] Through the server, the water surface image after pollutant marking is sent to the monitoring center, which is the control center of the aquaculture area. The monitoring center is used to collect and process monitoring information of the aquaculture area to ensure the safety and environmental quality of the aquaculture area.

[0081] The present invention provides a method for identifying pollutants in an aquaculture area, which obtains a water surface image of an aquaculture area and sends it to a cloud server. In the cloud server, the water surface image is subjected to odd block extraction processing to obtain an odd block distribution. According to the odd block distribution, the water surface image is marked with pollutants, and the water surface image after the pollutant marking is completed is sent to a monitoring center. The method can improve the water quality in the aquaculture area, reduce the cost of manpower cleaning, and improve the response speed of the monitoring center to pollutant treatment. Through the cloud server, the water surface image is quickly processed in a short time by pixel analysis and numerical calculation, and the efficient identification and marking of pollutants are realized. While improving the efficiency of water quality monitoring, unnecessary extensive cleaning operations are avoided, aquaculture resources are saved, and water quality management is made more intelligent and precise. Although the description of the present invention has been quite detailed and several embodiments are described in particular, it is not intended to be limited to any of these details or embodiments or any special embodiments, so as to effectively cover the predetermined scope of the present invention. In addition, the above description of the present invention is based on the foreseeable embodiments of the inventor, and its purpose is to provide a useful description, and those non-substantial changes to the present invention that have not yet been foreseen can still represent equivalent changes to the present invention.

Claims

1. A method for identifying pollutants in an aquaculture area, characterized in that: The method comprises the following steps: S100, obtaining a water surface image of the aquaculture area and sending it to a cloud server; S200, in the cloud server, performing odd block extraction processing on the water surface image to obtain an odd block distribution; S300, marking pollutants on the water surface image according to the distribution of odd blocks; S400, sending the water surface image after the pollutant marking to the monitoring center; Among them, in step S200, in the cloud server, the water surface image is subjected to odd block extraction processing, and the method for obtaining the odd block distribution is specifically as follows: S201, eliminating the background part in the water surface image to obtain the foreground part of the water surface, wherein the foreground part is composed of a plurality of closed areas, each of which contains some pixels, and each pixel corresponds to a unique pixel value; The number of the multiple closed regions is N, reg(i) represents the i-th closed region among the N closed regions, Sp(i) represents the total number of pixels in reg(i), then the N closed regions reg(1), reg(2), ..., reg(N) correspond to the N total number of pixels Sp(1), Sp(2), ..., Sp(N), and go to S202; S202, Sp(1), Sp(2), ..., Sp(N) are stored in an array Sp[], where the array Sp[] contains N values, Sp(i) represents the i-th value in the array Sp[], and a first odd-column array Foa[] is generated according to the array Sp[]. Calculate the odd block sequence value of each closed area, and use osv(i) to represent the odd block sequence value corresponding to reg(i), then N closed areas reg(1), reg(2), ..., reg(N) correspond to N odd block sequence values ​​osv(1), osv(2), ..., osv(N), store osv(1), osv(2), ..., osv(N) in an array osv[], then the array osv[] contains N values, osv(i) represents the i-th value in the array osv[], and generate a second odd column array Soa[] according to the array osv[]; go to S203; S203, obtaining odd block distribution according to Foa[] and Soa[]; The method for generating the first odd column array Foa[] according to the array Sp[] is specifically as follows: Set variable x, and use Sp(x) to represent the xth value of variable x in array Sp[]. Note that there are Foa(x) values ​​in array Sp[] that are less than Sp(x); Traverse x from x=1 to x=N to obtain Foa(1), Foa(2), …, Foa(N), and use Foa(1), Foa(2), …, Foa(N) to form the array Foa[], and use Foa(i) to represent the i-th value in the array Foa[]; The method for calculating the odd block sequence value of each closed area is as follows: For the i-th closed area reg(i) among N closed areas, reg(i) contains Sp(i) pixels, and P(i,j) represents the pixel value corresponding to the j-th pixel among the Sp(i) pixels; Among the Sp(i) pixels, all pixels with pixel values ​​less than P(i,j) form a first pixel combination, all pixels with pixel values ​​greater than P(i,j) form a second pixel combination, the sum of the pixel values ​​of all pixels in the first pixel combination minus P(i,j) is used as the first denominator, the sum of the pixel values ​​of all pixels in the second pixel combination is used as the first numerator, and the value obtained by dividing the first numerator by the first denominator is recorded as the first sequence value; Traverse j from j=1 to j=Sp(i), thereby obtaining Sp(i) first sequence values, and accumulate these Sp(i) first sequence values ​​to obtain the odd block sequence value osv(i) corresponding to reg(i); The specific method of generating the second odd column array Soa[] according to the array osv[] is: Set variable y, and use osv(y) to represent the yth value of variable y in array osv[]. Note that there are Soa(y) values ​​in array osv[] that are less than osv(y); Traverse y from y=1 to y=N to obtain Soa(1), Soa(2), ..., Soa(N), and use Soa(1), Soa(2), ..., Soa(N) to form an array Soa[], and use Soa(i) to represent the i-th value in the array Soa[]; The method of obtaining the odd block distribution according to Foa[] and Soa[] is as follows: Sequentially, make a pairwise difference between the N values ​​in the array Foa[] and the N values ​​in the array Soa[] to obtain N first difference values, take the average of the absolute values ​​of the N first difference values ​​as the first value, take the maximum value of the N first difference values ​​as the second value, and record the value obtained by dividing the first value by the second value as the odd difference value, and create a blank array R[]; Set variable t, and use Foa(t) to represent the t-th value in the array Foa[], and use Soa(t) to represent the t-th value in the array Soa[]. If the absolute value of the difference between Foa(t) and Soa(t) is less than or equal to the odd difference, then add the value of Foa(t) to the array R[]. Traverse t from t=1 to t=N to complete writing to the array R[]; Let the array R[] contain S values, and R(k) represents the kth value in the array R[], then the array R[] consists of S values ​​R(1), R(2), …, R(S). Among the N closed regions reg(1), reg(2), …, reg(N), reg(R(1)), reg(R(2)), …, reg(R(S)) are marked as the closed regions where the odd blocks are located.

2. A method for identifying pollutants in an aquaculture area according to claim 1, characterized in that: In step S100, the method for obtaining the water surface image of the aquaculture area and sending it to the cloud server is specifically as follows: deploying a drone above the aquaculture area, photographing the water surface of the aquaculture area by the drone, obtaining the water surface image of the aquaculture area, and sending the water surface image to the cloud server by the drone; Among them, the drone has a built-in IoT card and is connected to the mobile Internet, and establishes communication with the cloud server through the mobile Internet.

3. The method for identifying pollutants in an aquaculture area according to claim 1, characterized in that: In step S300, the method for marking pollutants in the water surface image according to the distribution of odd blocks is specifically as follows: among the N closed areas of the water surface image, the closed area marked with odd blocks is marked as the location of the pollutant.

Citation Information

Patent Citations

  • Parallogram-YOLOv4-based thermal power plant rain outlet pollutant identification method

    CN113792638A

  • Online monitoring system for fish enhancement and release

    CN114615252A

  • Livestock breeding intelligent monitoring method based on edge calculation

    CN114842501A

  • Aquaculture environment monitoring management method and system

    CN115200647A

  • Method for estimating biomass of cultured nori based on spectral image

    CN115684037A