Pump station scheduling method and equipment based on water level image recognition and storage medium
Through image recognition technology and classification network model, the water level difference value is calculated to schedule drainage, which solves the problem of difficult control of drainage scheduling in the existing technology and achieves efficient drainage scheduling.
Patent Information
- Application Number
- CN202510201454.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-03-25
AI Technical Summary
There is no plan to schedule drainage in drainage pump stations in the prior art, which makes drainage speed and efficiency difficult to control.
The farmland water level information is obtained through image recognition technology, and the classification network model is used to classify the image, and the water level difference value is determined to schedule drainage. Specific steps include obtaining initial images, image clarity repair, category identification, water level analysis and drainage scheduling.
Accurate control of drainage flow is achieved, and the accuracy and efficiency of drainage scheduling of the pump station is improved.
Smart Images

Figure CN119693807A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of image recognition technology, and in particular to a pump station scheduling method, device and storage medium based on image recognition of water level. Background Art
[0002] Farmland is prone to waterlogging. When waterlogging occurs in farmland, it is necessary to drain the water from the farmland. The solution for draining water from farmland is generally to use the slope of the ditch for self-drainage.
[0003] Since the drainage speed of the ditch slope is slow, in order to speed up the drainage speed, a drainage pump station is built to drain the flood water through the drainage pump in the drainage pump station. However, the opening and closing of the drainage pump is often determined by the experience of the on-site personnel, and there is no solution for scheduling the drainage in the drainage pump station in the relevant technology. Summary of the invention
[0004] The embodiments of the present application provide a pump station scheduling method, device and storage medium based on image recognition of water level, so as to solve the problem that there is no solution for scheduling drainage in a drainage pump station in the related art.
[0005] In a first aspect, the present application provides a method for dispatching a pump station based on image recognition of water level, comprising: Acquire a plurality of initial images obtained by photographing multiple farmland areas respectively, and perform image definition restoration processing on the plurality of initial images respectively to obtain a plurality of restored images; Using a classification network model, performing category recognition on each of the multiple repaired images to obtain category information of the multiple repaired images; When the category information of the plurality of repaired images are all normal categories, outputting prompt information; the prompt information is used to indicate that no water supply and drainage treatment of the pump station is required; In a case where the category information of at least one first restored image among the category information of the plurality of restored images is a waterlogging category, determining at least one first shooting position information corresponding to the at least one first restored image; Determining a target pumping station corresponding to the at least one first shooting position information according to the at least one first shooting position information; Acquire a first forepool image and a first rear pool image obtained by photographing the forepool and the rear pool of the target pump station respectively; Performing water level analysis on the first forepool image and the first backpool image to obtain a first forepool water level and a first backpool water level of the target pump station; The drainage of the target pump station is scheduled according to a first water level difference value obtained by subtracting the first rear pool water level from the first front pool water level.
[0006] In some embodiments, performing water level analysis on the first forepool image and the first backpool image to obtain a first forepool water level and a first backpool water level of the target pump station includes: Determine the shortest distances between the multiple corner points of the forebay edge of the target pumping station and the water surface in the first forebay image as multiple first distances; determine the first real distance between the forebay edge of the target pumping station and the water surface according to the average value of the multiple first distances; determine the first forebay water level according to the first real distance and the acquired real height from the forebay edge to the forebay bottom of the target pumping station; The closest distances of multiple corner points of the edge of the back pool of the target pumping station in the first back pool image to the water surface are respectively determined as multiple second distances; the second real distance between the edge of the back pool of the target pumping station and the water surface is determined according to the average value of the multiple second distances; the water level of the first back pool is determined according to the second real distance and the acquired real height from the edge of the back pool of the target pumping station to the bottom of the back pool.
[0007] In some embodiments, the scheduling of drainage of the target pump station according to a first water level difference value of the first front pool water level minus the first back pool water level includes: When the first water level difference is less than a preset difference, the target pump station is determined to perform water pump drainage, and the total water pump drainage flow of the target pump station is determined according to the first water level difference; wherein the preset difference is greater than 0; When the first water level difference is greater than or equal to the preset difference, the target pump station is determined to perform combined drainage by the self-draining gate and the water pump, and the total drainage flow of the water pump of the target pump station is determined according to the first water level difference, the size information of the self-draining gate and the water-passing height of the self-draining gate; According to the total drainage flow of the water pumps, the operation of M drainage water pumps in the target pumping station is controlled; M is an integer greater than or equal to 2.
[0008] In some embodiments, controlling the operation of the M drainage water pumps in the target pump station according to the total drainage flow of the water pumps includes: Obtaining N operable flow rates of each of the M drainage pumps in the target pump station; N is an integer greater than or equal to 2; Selecting an operable flow rate from the N operable flow rates of each drainage water pump to obtain N to the power of M flow rate combinations; wherein each flow rate combination in the N to the power of M flow rate combinations includes M flow rates, and at least one flow rate is different in different flow rate combinations of the N to the power of M flow rate combinations; Determine the sum of the flows of the multiple flows included in each flow combination in the N to the Mth power flow combinations to obtain the sum of the N to the Mth power flows; From the N to the power of M flow sums, determine P flow sums greater than or equal to the total drainage flow of the water pump; P is an integer greater than or equal to 1; Determine P flow combinations corresponding to the P flow sums respectively; According to the P flow combinations, the operation of the M drainage pumps in the target pumping station is controlled.
[0009] In some embodiments, controlling the operation of the M drainage pumps in the target pump station according to the P flow combinations includes: Determine the operating powers of the M drainage water pumps corresponding to the M flow rates included in each flow rate combination in the P flow rate combinations, and determine the total operating costs of the M drainage water pumps according to the operating powers of the M drainage water pumps and the maintenance costs of the M drainage water pumps after use; Determining a minimum operating cost from the P total operating costs corresponding to the P flow combinations; According to the flow combination corresponding to the minimum operating cost, the operation of the M drainage pumps in the target pump station is controlled.
[0010] In some embodiments, the method further comprises: When the category information of at least one second restored image in the category information of the plurality of restored images is a drought category, obtaining at least one second shooting position information corresponding to the at least one second restored image; Determining, according to the at least one second shooting location information, a designated pumping station corresponding to the at least one second shooting location information; Acquire a second fore pool image and a second rear pool image obtained by photographing the fore pool and the rear pool of the designated pump station respectively; Performing water level analysis on the second fore pool image and the second back pool image to obtain the second fore pool water level and the second back pool water level of the designated pump station; The water supply of the designated pumping station is scheduled according to a second water level difference value obtained by subtracting the second rear pool water level from the second front pool water level.
[0011] In some embodiments, performing water level analysis on the second forepool image and the second backpool image to obtain the second forepool water level and the second backpool water level of the designated pump station includes: Determine the closest distances of multiple corner points of the forebay edge of the designated pump station in the second forebay image to the water surface as multiple third distances respectively; determine the third real distance between the forebay edge of the designated pump station and the water surface according to the average value of the multiple third distances; determine the water level of the second forebay according to the third real distance and the acquired real height from the forebay edge to the forebay bottom of the designated pump station; The closest distances of multiple corner points of the edge of the rear pool of the designated pumping station in the second rear pool image to the water surface are respectively determined as multiple fourth distances; the fourth real distance between the edge of the rear pool of the designated pumping station and the water surface is determined according to the average value of the multiple fourth distances; the water level of the second rear pool is determined according to the fourth real distance and the acquired real height from the edge of the rear pool of the designated pumping station to the bottom of the rear pool.
[0012] In some embodiments, before acquiring a plurality of initial images respectively photographed for multiple farmland areas, the method further includes: Obtain R flow rates and R lifts of each of the Q fully adjustable angle pumping water pumps in the designated pumping station at each of the multiple angles; R is an integer greater than or equal to 3, and Q is an integer greater than or equal to 2; Fitting the R flow rates and the R lifts at each angle to obtain a preset corresponding relationship between the flow rate and the lift at each angle; The step of scheduling the water supply of the designated pump station according to the second water level difference value obtained by subtracting the second water level of the second rear pool from the water level of the second front pool comprises: Determine, according to the second water level difference and the preset corresponding relationship, a target flow rate corresponding to the second water level difference at each angle; According to the target flow rate at each angle, determining a target corresponding relationship between the angle and the target flow rate; Determining the target angles of the Q fully adjustable angle pumps according to the target corresponding relationship and the total water supply flow of the designated pump station; Control the Q fully-adjustable angle water pumps to operate at the target angle.
[0013] In a second aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of a pump station scheduling method based on image recognition of water levels as described in the embodiment of the first aspect of the present application are implemented.
[0014] In a third aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of a pump station scheduling method based on image recognition of water levels as described in the embodiment of the first aspect of the present application.
[0015] The pump station scheduling method, equipment and storage medium based on image recognition of water level provided in the embodiments of the present application schedule drainage according to the first water level difference. When the first water level difference is large, the water level of the front pool is much higher than the water level of the rear pool, and the drainage flow rate can be increased. When the first water level difference is small, the drainage flow rate can be appropriately reduced, thereby enabling precise control of the drainage flow rate and improving the accuracy of drainage scheduling for the target pump station. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technical descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 A schematic flow chart of a pump station scheduling method based on image recognition of water level provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0019] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0020] Figure 1 A schematic flow chart of a pump station scheduling method based on image recognition of water level provided in an embodiment of the present application, the method is applied to an electronic device or a processor, such as Figure 1 As shown, the method includes: S101, acquiring a plurality of initial images respectively obtained by photographing a plurality of farmland areas, and performing image definition restoration processing on the plurality of initial images respectively to obtain a plurality of restored images.
[0021] The electronic device in the embodiments of the present application can be any device with data processing capabilities, such as a server, a server cluster, a control device, a visitor machine, a server, a mobile phone, a tablet computer, a laptop computer, a PDA, a personal digital assistant, a portable media player, a smart speaker, a navigation device, a wearable device, a smart bracelet or a desktop computer, etc.
[0022] S102: using a classification network model to perform category recognition on each of the multiple repaired images to obtain category information of the multiple repaired images.
[0023] By performing image clarity restoration processing on the multiple initial images respectively, it is possible to reduce the situation in which the clarity of the images captured is low due to the harsh working environment of the camera used to photograph the farmland and the heavy dust on the camera surface, thereby causing inaccurate image classification. Therefore, the embodiment of the present application can improve the accuracy of image classification.
[0024] Exemplarily, the classification network model may include a convolutional neural network model, a recurrent neural network model, a long short-term memory network model, or a transformer model, etc., which is not limited in the embodiments of the present application.
[0025] S103: When the category information of the plurality of restored images are all normal categories, output prompt information; the prompt information is used to indicate that there is no need to perform water supply and drainage processing of the pump station.
[0026] In some embodiments, when there is at least one first restored image whose category information among the category information of the multiple restored images is a waterlogging category, designated information is output, and the designated information is used to indicate that waterlogging has occurred in the farmland area corresponding to the at least one first restored image.
[0027] In some embodiments, when there is at least one second restored image whose category information is drought category among the category information of the multiple restored images, target information is output, and the target information is used to indicate that the farmland area corresponding to the at least one second restored image is drought.
[0028] In other embodiments, when there is at least one second restored image whose category information is drought category among the category information of the multiple restored images, the water supply of the designated pumping station is scheduled so that the designated pumping station can supply water to the farmland area corresponding to the at least one second restored image.
[0029] S104: When there is at least one first restored image whose category information is a waterlogging category among the category information of the plurality of restored images, determine at least one first shooting position information corresponding to the at least one first restored image.
[0030] In some embodiments, the shooting location information may include identification information of the farmland area. In other embodiments, the shooting location information may include longitude and latitude information of the farmland area. In still other embodiments, the shooting location information may include longitude and latitude information of a camera used to shoot the farmland area.
[0031] S105. Determine a target pumping station corresponding to the at least one first shooting location information according to the at least one first shooting location information.
[0032] In some embodiments, the electronic device may store a target mapping relationship between the shooting location information and a drainage pumping station. For example, a drainage pumping station may drain one or more farmland areas. The target pumping station may be determined based on the target mapping relationship and at least one first shooting location information.
[0033] In some embodiments, the target pump station may include one pump station. In other embodiments, the target pump station may include multiple pump stations.
[0034] S106, acquiring a first forepool image and a first rear pool image obtained by photographing the forepool and the rear pool of the target pump station respectively.
[0035] In some embodiments, the first forepool image and the first backpool image may be acquired from a target pump station monitoring system.
[0036] S107 . Perform water level analysis on the first forepool image and the first backpool image to obtain a first forepool water level and a first backpool water level of the target pump station.
[0037] In an embodiment of the present application, the water level of the first front pool and the water level of the first rear pool are obtained through image analysis, and the image captured by the camera is visible to the user. For example, the first front pool image and the first rear pool image can be displayed on the display screen of the electronic device, or the electronic device sends the first front pool image and the first rear pool image to the display device so that the display device displays. For example, the first front pool image and the first rear pool image can be displayed through the pump station monitoring system interface, and the user can determine whether the camera is damaged based on the displayed first front pool image and the first rear pool image, so that when the camera is normal, it can be determined that the analyzed water level is accurate. However, in the case of using a water level meter or other method to obtain the water level in the related art, the user cannot determine whether the water level measured by the water level meter is accurate, and thus the accuracy of the water level detection cannot be guaranteed. Therefore, the method of determining the water level through image analysis in the embodiment of the present application can obtain accurate water levels of the first front pool and the first rear pool.
[0038] In addition, the pump station monitoring system already has a camera for taking the first front pool image and the first rear pool image. Therefore, the pump station scheduling method in the embodiment of the present application can reuse the first front pool image and the first rear pool image, and there is no need to deploy a water level meter to measure the water level, thereby reducing the construction cost and complexity of the system.
[0039] S108. Discharge of the target pump station is scheduled according to a first water level difference value obtained by subtracting the first rear pool water level from the first front pool water level.
[0040] The pump station scheduling method based on image recognition of water levels provided in the embodiment of the present application schedules drainage according to the first water level difference. When the first water level difference is large, the water level in the front pool is much higher than the water level in the rear pool, and the drainage flow rate can be increased. When the first water level difference is small, the drainage flow rate can be appropriately reduced, thereby enabling precise control of the drainage flow rate and improving the accuracy of drainage scheduling for the target pump station.
[0041] In some embodiments, the acquiring of multiple initial images obtained by photographing multiple farmland areas respectively includes: Obtain Y original images captured by Y cameras associated with each farmland area in the multiple farmland areas; Y is an integer greater than or equal to 2; Splicing the Y original images of each farmland area to obtain a spliced image of each farmland area; A downsampling network model is used to downsample the stitched image of each farmland area to obtain an initial image of each farmland area.
[0042] In some embodiments, different cameras among the Y cameras associated with each farmland area may respectively photograph different sub-areas in each farmland area, and the sub-areas photographed by different cameras may not overlap or may partially overlap.
[0043] In some embodiments, computer vision can be used to stitch the Y original images of each farmland area. In some embodiments, the size of the initial image is the input size of the classification network model.
[0044] In some embodiments, performing water level analysis on the first forepool image and the first backpool image to obtain a first forepool water level and a first backpool water level of the target pump station includes: Determine the shortest distances between the multiple corner points of the forebay edge of the target pumping station and the water surface in the first forebay image as multiple first distances; determine the first real distance between the forebay edge of the target pumping station and the water surface according to the average value of the multiple first distances; determine the first forebay water level according to the first real distance and the acquired real height from the forebay edge to the forebay bottom of the target pumping station; The closest distances of multiple corner points of the edge of the back pool of the target pumping station in the first back pool image to the water surface are respectively determined as multiple second distances; the second real distance between the edge of the back pool of the target pumping station and the water surface is determined according to the average value of the multiple second distances; the water level of the first back pool is determined according to the second real distance and the acquired real height from the edge of the back pool of the target pumping station to the bottom of the back pool.
[0045] There is an intersection line between the pool edge and the pool wall, and the corner point is the point formed by the intersection of the intersection lines. Multiple corner points of the pool edge are located in the plane where the pool edge is located, and also in the plane where the pool wall is located.
[0046] In some embodiments, the first real distance is determined based on the average of the plurality of first distances and the position of the camera relative to the target pump station fore pool. In some embodiments, the second real distance is determined based on the average of the plurality of second distances and the position of the camera relative to the target pump station back pool.
[0047] In some embodiments, the scheduling of drainage of the target pump station according to a first water level difference value of the first front pool water level minus the first back pool water level includes: When the first water level difference is less than a preset difference, the target pump station is determined to perform water pump drainage, and the total water pump drainage flow of the target pump station is determined according to the first water level difference; wherein the preset difference is greater than 0; When the first water level difference is greater than or equal to the preset difference, the target pump station is determined to perform combined drainage by the self-draining gate and the water pump, and the total drainage flow of the water pump of the target pump station is determined according to the first water level difference, the size information of the self-draining gate and the water-passing height of the self-draining gate; According to the total drainage flow of the water pumps, the operation of M drainage water pumps in the target pumping station is controlled; M is an integer greater than or equal to 2.
[0048] In some implementations, the electronic device may store a mapping relationship between the water level difference and the drainage flow, and determine the total drainage flow of the pump at the target pump station based on the mapping relationship and the first water level difference.
[0049] In some embodiments, the total drainage flow of the water pump of the target pumping station is determined based on the first water level difference, the size information of the self-draining gate and the water-passing height of the self-draining gate, including: determining the drainage flow of the self-draining gate based on the size information of the self-draining gate and the water-passing height of the self-draining gate; and subtracting the drainage flow of the self-draining gate from the drainage demand flow of the target pumping station to determine the total drainage flow of the water pump of the target pumping station.
[0050] In some embodiments, the drainage demand flow rate may be determined in response to user input. In other embodiments, the drainage demand flow rate may be determined based on a target waterlogging level. Exemplarily, a mapping relationship between waterlogging levels and flow rates may be stored in the electronic device, and the drainage demand quantity may be determined based on the mapping relationship and the target waterlogging level. Exemplarily, the target waterlogging level may be determined in the following manner: performing image segmentation processing on the at least one first repaired image to determine the waterlogged area and the non-waterlogged area of the at least one first repaired image; determining the first ratio information between the area sum of the waterlogged area of the at least one first repaired image and the area sum of all areas of the at least one first repaired image; and determining the target waterlogging level based on the first ratio information. In yet other embodiments, a mapping relationship between the water level difference and the drainage flow rate may be stored in the electronic device, and the drainage demand flow rate of the target pump station may be determined based on the mapping relationship and the first water level difference.
[0051] In some embodiments, controlling the operation of the M drainage water pumps in the target pump station according to the total drainage flow of the water pumps includes: Obtaining N operable flow rates of each of the M drainage pumps in the target pump station; N is an integer greater than or equal to 2; Selecting an operable flow rate from the N operable flow rates of each drainage water pump to obtain N to the power of M flow rate combinations; wherein each flow rate combination in the N to the power of M flow rate combinations includes M flow rates, and at least one flow rate is different in different flow rate combinations of the N to the power of M flow rate combinations; Determine the sum of the flows of the multiple flows included in each flow combination in the N to the Mth power flow combinations to obtain the sum of the N to the Mth power flows; From the N to the power of M flow sums, determine P flow sums greater than or equal to the total drainage flow of the water pump; P is an integer greater than or equal to 1; Determine P flow combinations corresponding to the P flow sums respectively; According to the P flow combinations, the operation of the M drainage pumps in the target pumping station is controlled.
[0052] In some embodiments, the N operable flow rates of different drainage water pumps are the same, or the N operable flow rates of different drainage water pumps are at least partially different. For example, the M drainage water pumps include a first drainage water pump and a second drainage water pump, the N operable flow rates of the first drainage water pump may be Q11, Q12, and Q13, the N operable flow rates of the second drainage water pump may be Q21, Q22, and Q23, and illustratively, Q11 and Q21 may be the same or different, Q12 and Q22 may be the same or different, and Q13 and Q23 may be the same or different. Exemplarily, N to the power of M traffic combinations are 3 to the power of 2 traffic combinations, and the 3 to the power of 2 traffic combinations are as follows: {Q11, Q21}, {Q11, Q22}, {Q11, Q23}, {Q12, Q21}, {Q12, Q22}, {Q12, Q23}, {Q13, Q21}, {Q13, Q22}, {Q13, Q23}. Exemplarily, the sums of N to the power of M traffic are as follows: Q11+Q21, Q11+Q22, Q11+Q23, Q12+Q21, Q12+Q22, Q12+Q23, Q13+Q21, Q13+Q22, Q13+Q23. Exemplarily, among the above flow sums, the flow sum of Q11+Q21 and the flow sum of Q11+Q22 are both greater than or equal to the total drainage flow of the water pump, then the P flow combinations are {Q11, Q21} and {Q11, Q22} respectively.
[0053] In some embodiments, controlling the operation of the M drainage pumps in the target pump station according to the P flow combinations includes: Determine the operating powers of the M drainage water pumps corresponding to the M flow rates included in each flow rate combination in the P flow rate combinations, and determine the total operating costs of the M drainage water pumps according to the operating powers of the M drainage water pumps and the maintenance costs of the M drainage water pumps after use; Determining a minimum operating cost from the P total operating costs corresponding to the P flow combinations; According to the flow combination corresponding to the minimum operating cost, the operation of the M drainage pumps in the target pump station is controlled.
[0054] In some embodiments, the operating powers corresponding to {Q11, Q21} are {N11, N21}, respectively, and the operating powers corresponding to {Q11, Q22} are {N11, N22}, respectively.
[0055] In some embodiments, the total operating cost of the M drainage water pumps is determined based on the sum of the operating powers of the M drainage water pumps and the local electricity price; the sum of the total operating cost of the M drainage water pumps and the maintenance cost of the M drainage water pumps after use is determined as the total operating cost of the M drainage water pumps.
[0056] For example, when the total operating cost determined according to the flow combination {Q11, Q21} is less than the total operating cost determined according to the flow combination {Q11, Q22}, the first drainage water pump and the second drainage water pump are controlled to operate according to the flow combination {Q11, Q22}.
[0057] In some embodiments, when there is at least one second restoration image whose category information is drought category among the category information of the plurality of restoration images, obtaining at least one second shooting position information respectively corresponding to the at least one second restoration image; Determining, according to the at least one second shooting location information, a designated pumping station corresponding to the at least one second shooting location information; Acquire a second fore pool image and a second rear pool image obtained by photographing the fore pool and the rear pool of the designated pump station respectively; Performing water level analysis on the second fore pool image and the second back pool image to obtain the second fore pool water level and the second back pool water level of the designated pump station; The water supply of the designated pumping station is scheduled according to a second water level difference value obtained by subtracting the second rear pool water level from the second front pool water level.
[0058] In some embodiments, the electronic device may store a specified mapping relationship between the shooting location information and the pumping station. For example, a pumping station may provide the pumped water to one or more farmland areas. The specified pumping station is determined based on the specified mapping relationship and at least one second shooting location information.
[0059] In some embodiments, the designated pump station may include one pump station. In other embodiments, the designated pump station may include multiple pump stations.
[0060] In some embodiments, performing water level analysis on the second forepool image and the second backpool image to obtain the second forepool water level and the second backpool water level of the designated pump station includes: Determine the closest distances of multiple corner points of the forebay edge of the designated pump station in the second forebay image to the water surface as multiple third distances respectively; determine the third real distance between the forebay edge of the designated pump station and the water surface according to the average value of the multiple third distances; determine the water level of the second forebay according to the third real distance and the acquired real height from the forebay edge to the forebay bottom of the designated pump station; The closest distances of multiple corner points of the edge of the rear pool of the designated pumping station in the second rear pool image to the water surface are respectively determined as multiple fourth distances; the fourth real distance between the edge of the rear pool of the designated pumping station and the water surface is determined according to the average value of the multiple fourth distances; the water level of the second rear pool is determined according to the fourth real distance and the acquired real height from the edge of the rear pool of the designated pumping station to the bottom of the rear pool.
[0061] In some embodiments, the third real distance is determined based on the average of the plurality of third distances and the position of the camera relative to the designated pump station fore pool. In some embodiments, the fourth real distance is determined based on the average of the plurality of fourth distances and the position of the camera relative to the designated pump station back pool.
[0062] In some embodiments, before acquiring a plurality of initial images respectively photographed for multiple farmland areas, the method further includes: Obtain R flow rates and R lifts of each of the Q fully adjustable angle pumping water pumps in the designated pumping station at each of the multiple angles; R is an integer greater than or equal to 3, and Q is an integer greater than or equal to 2; Fitting the R flow rates and the R lifts at each angle to obtain a preset corresponding relationship between the flow rate and the lift at each angle; The step of scheduling the water supply of the designated pump station according to the second water level difference value obtained by subtracting the second water level of the second rear pool from the water level of the second front pool comprises: Determine, according to the second water level difference and the preset corresponding relationship, a target flow rate corresponding to the second water level difference at each angle; According to the target flow rate at each angle, determining a target corresponding relationship between the angle and the target flow rate; Determining the target angles of the Q fully adjustable angle pumps according to the target corresponding relationship and the total water supply flow of the designated pump station; Control the Q fully-adjustable angle water pumps to operate at the target angle.
[0063] In some embodiments, the electronic device may store a mapping relationship between the flow range and the number of full-angle pumping pumps, and determine Q full-angle pumping pumps based on the mapping relationship and the total water supply flow. Exemplarily, the Q full-angle pumping pumps may all be pumps of the target pump model.
[0064] In some embodiments, according to the target correspondence and the total water supply flow of the designated pumping station, the target angles of the Q fully adjustable angle pumping water pumps are determined, including: dividing the total water supply flow of the designated pumping station by Q to determine the pumping flow of each adjustable angle pumping water pump; according to the target correspondence and the pumping flow of a single adjustable angle pumping water pump, determining the target angle of each fully adjustable angle pumping water pump. The target angles of different fully adjustable angle pumping water pumps are the same.
[0065] In some embodiments, the total water supply flow of the designated pump station may be determined based on user input. In other embodiments, the drought area analysis may be performed on at least one second restored image to obtain the total drought area of at least one second restored image, and the total water supply flow of the designated pump station may be determined based on the total drought area. In still other embodiments, the drought level analysis may be performed on at least one second restored image to obtain the drought level of at least one second restored image, and the total water supply flow of the designated pump station may be determined based on the drought level.
[0066] Figure 2 An example of a schematic diagram of an electronic device structure is shown in FIG. Figure 2 As shown, the electronic device may include: a processor 201, a communications interface 202, a memory 203 and a communication bus 204, wherein the processor 201, the communications interface 202 and the memory 203 communicate with each other via the communication bus 204. The processor 201 may call the logic instructions in the memory 203 to execute the following method: Acquire a plurality of initial images obtained by photographing multiple farmland areas respectively, and perform image definition restoration processing on the plurality of initial images respectively to obtain a plurality of restored images; Using a classification network model, performing category recognition on each of the multiple repaired images to obtain category information of the multiple repaired images; When the category information of the plurality of repaired images are all normal categories, outputting prompt information; the prompt information is used to indicate that no water supply and drainage treatment of the pump station is required; In a case where the category information of at least one first restored image among the category information of the plurality of restored images is a waterlogging category, determining at least one first shooting position information corresponding to the at least one first restored image; Determining a target pumping station corresponding to the at least one first shooting position information according to the at least one first shooting position information; Acquire a first forepool image and a first rear pool image obtained by photographing the forepool and the rear pool of the target pump station respectively; Performing water level analysis on the first forepool image and the first backpool image to obtain a first forepool water level and a first backpool water level of the target pump station; The drainage of the target pump station is scheduled according to a first water level difference value obtained by subtracting the first rear pool water level from the first front pool water level.
[0067] It can be understood that the processor 201 of the electronic device can also execute the other steps mentioned in the embodiment of the present application, which will not be described one by one here.
[0068] Illustratively, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the pump station scheduling method based on image recognition of water level as described in any embodiment of the present application are implemented.
[0069] This embodiment also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the above embodiments are implemented. For example, it includes: Acquire a plurality of initial images obtained by photographing multiple farmland areas respectively, and perform image definition restoration processing on the plurality of initial images respectively to obtain a plurality of restored images; Using a classification network model, performing category recognition on each of the multiple repaired images to obtain category information of the multiple repaired images; When the category information of the plurality of repaired images are all normal categories, outputting prompt information; the prompt information is used to indicate that no water supply and drainage treatment of the pump station is required; In a case where the category information of at least one first restored image among the category information of the plurality of restored images is a waterlogging category, determining at least one first shooting position information corresponding to the at least one first restored image; Determining a target pumping station corresponding to the at least one first shooting position information according to the at least one first shooting position information; Acquire a first forepool image and a first rear pool image obtained by photographing the forepool and the rear pool of the target pump station respectively; Performing water level analysis on the first forepool image and the first backpool image to obtain a first forepool water level and a first backpool water level of the target pump station; The drainage of the target pump station is scheduled according to a first water level difference value obtained by subtracting the first rear pool water level from the first front pool water level.
[0070] In summary, the pump station scheduling method, device and storage medium based on image recognition water level provided in the embodiment of the present application schedules drainage according to the first water level difference. When the first water level difference is large, the water level of the front pool is much higher than the water level of the rear pool, and the drainage flow rate can be increased. When the first water level difference is small, the drainage flow rate can be appropriately reduced, so that the drainage flow rate can be accurately controlled and the accuracy of drainage scheduling for the target pump station can be improved.
[0071] All the above-mentioned implementation modes provided in this application can be combined with each other if they do not conflict with each other.
[0072] The method embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0073] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc., including a number of instructions for an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0074] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A pump station dispatching method based on image recognition of water level, characterized in that: include: Acquire a plurality of initial images obtained by photographing multiple farmland areas respectively, and perform image definition restoration processing on the plurality of initial images respectively to obtain a plurality of restored images; Using a classification network model, performing category recognition on each of the multiple repaired images to obtain category information of the multiple repaired images; When the category information of the plurality of restored images are all normal categories, outputting prompt information; The prompt information is used to indicate that there is no need to perform water supply and drainage treatment at the pump station; In a case where the category information of at least one first restored image among the category information of the plurality of restored images is a waterlogging category, determining at least one first shooting position information corresponding to the at least one first restored image; Determining a target pumping station corresponding to the at least one first shooting position information according to the at least one first shooting position information; Acquire a first forepool image and a first rear pool image obtained by photographing the forepool and the rear pool of the target pump station respectively; Performing water level analysis on the first forepool image and the first backpool image to obtain a first forepool water level and a first backpool water level of the target pump station; The drainage of the target pump station is scheduled according to a first water level difference value obtained by subtracting the first rear pool water level from the first front pool water level.
2. The pump station dispatching method according to claim 1, characterized in that: The performing water level analysis on the first forepool image and the first backpool image to obtain the first forepool water level and the first backpool water level of the target pump station includes: Determine the shortest distances between the multiple corner points of the forebay edge of the target pumping station and the water surface in the first forebay image as multiple first distances; determine the first real distance between the forebay edge of the target pumping station and the water surface according to the average value of the multiple first distances; determine the first forebay water level according to the first real distance and the acquired real height from the forebay edge to the forebay bottom of the target pumping station; The closest distances of multiple corner points of the edge of the back pool of the target pumping station in the first back pool image to the water surface are respectively determined as multiple second distances; the second real distance between the edge of the back pool of the target pumping station and the water surface is determined according to the average value of the multiple second distances; the water level of the first back pool is determined according to the second real distance and the acquired real height from the edge of the back pool of the target pumping station to the bottom of the back pool.
3. The pump station dispatching method according to claim 1, characterized in that: The method of scheduling drainage of the target pump station according to a first water level difference value obtained by subtracting the first rear pool water level from the first front pool water level includes: When the first water level difference is less than a preset difference, the target pump station is determined to perform water pump drainage, and the total water pump drainage flow of the target pump station is determined according to the first water level difference; wherein the preset difference is greater than 0; When the first water level difference is greater than or equal to the preset difference, the target pump station is determined to perform combined drainage by the self-draining gate and the water pump, and the total drainage flow of the water pump of the target pump station is determined according to the first water level difference, the size information of the self-draining gate and the water-passing height of the self-draining gate; According to the total drainage flow of the water pumps, the operation of M drainage water pumps in the target pumping station is controlled; M is an integer greater than or equal to 2.
4. The pump station dispatching method according to claim 3, characterized in that: The controlling the operation of the M drainage water pumps in the target pump station according to the total drainage flow of the water pumps comprises: Obtaining N operable flow rates of each of the M drainage pumps in the target pump station; N is an integer greater than or equal to 2; Selecting an operable flow rate from the N operable flow rates of each drainage water pump to obtain N to the power of M flow rate combinations; wherein each flow rate combination in the N to the power of M flow rate combinations includes M flow rates, and at least one flow rate is different in different flow rate combinations of the N to the power of M flow rate combinations; Determine the sum of the flows of the multiple flows included in each flow combination in the N to the Mth power flow combinations to obtain the sum of the N to the Mth power flows; From the N to the power of M flow sums, determine P flow sums greater than or equal to the total drainage flow of the water pump; P is an integer greater than or equal to 1; Determine P flow combinations corresponding to the P flow sums respectively; According to the P flow combinations, the operation of the M drainage pumps in the target pumping station is controlled.
5. The pump station dispatching method according to claim 4, characterized in that: The controlling the operation of the M drainage pumps in the target pump station according to the P flow combinations includes: Determine the operating powers of the M drainage water pumps corresponding to the M flow rates included in each flow rate combination in the P flow rate combinations, and determine the total operating costs of the M drainage water pumps according to the operating powers of the M drainage water pumps and the maintenance costs of the M drainage water pumps after use; Determining a minimum operating cost from the P total operating costs corresponding to the P flow combinations; According to the flow combination corresponding to the minimum operating cost, the operation of the M drainage pumps in the target pump station is controlled.
6. The pump station dispatching method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the category information of at least one second restored image in the category information of the plurality of restored images is a drought category, obtaining at least one second shooting position information corresponding to the at least one second restored image; Determining, according to the at least one second shooting location information, a designated pumping station corresponding to the at least one second shooting location information; Acquire a second fore pool image and a second rear pool image obtained by photographing the fore pool and the rear pool of the designated pump station respectively; Performing water level analysis on the second fore pool image and the second back pool image to obtain the second fore pool water level and the second back pool water level of the designated pump station; The water supply of the designated pumping station is scheduled according to a second water level difference value obtained by subtracting the second rear pool water level from the second front pool water level.
7. The pump station dispatching method according to claim 6, characterized in that: The performing of water level analysis on the second fore pool image and the second back pool image to obtain the second fore pool water level and the second back pool water level of the designated pump station comprises: Determine the closest distances of multiple corner points of the forebay edge of the designated pump station in the second forebay image to the water surface as multiple third distances respectively; determine the third real distance between the forebay edge of the designated pump station and the water surface according to the average value of the multiple third distances; determine the water level of the second forebay according to the third real distance and the acquired real height from the forebay edge to the forebay bottom of the designated pump station; The closest distances of multiple corner points of the edge of the rear pool of the designated pumping station in the second rear pool image to the water surface are respectively determined as multiple fourth distances; the fourth real distance between the edge of the rear pool of the designated pumping station and the water surface is determined according to the average value of the multiple fourth distances; the water level of the second rear pool is determined according to the fourth real distance and the acquired real height from the edge of the rear pool of the designated pumping station to the bottom of the rear pool.
8. The pump station dispatching method according to claim 6, characterized in that: Before acquiring a plurality of initial images respectively obtained by photographing multiple farmland areas, the method further includes: Obtain R flow rates and R lifts of each of the Q fully adjustable angle pumping water pumps in the designated pumping station at each of the multiple angles; R is an integer greater than or equal to 3, and Q is an integer greater than or equal to 2; Fitting the R flow rates and the R lifts at each angle to obtain a preset corresponding relationship between the flow rate and the lift at each angle; The step of scheduling the water supply of the designated pump station according to the second water level difference value obtained by subtracting the second water level of the second rear pool from the water level of the second front pool comprises: Determine, according to the second water level difference and the preset corresponding relationship, a target flow rate corresponding to the second water level difference at each angle; According to the target flow rate at each angle, determining a target corresponding relationship between the angle and the target flow rate; Determining the target angles of the Q fully adjustable angle pumps according to the target corresponding relationship and the total water supply flow of the designated pump station; Control the Q fully-adjustable angle water pumps to operate at the target angle.
9. 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 program, the steps of the pump station scheduling method based on image recognition of water level as described in any one of claims 1 to 8 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the pump station scheduling method based on image recognition of water level as described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Farmland drainage flow monitoring system based on image acquisition
CN110736512A
Semi-angle-adjusting water pump scheduling method and device for cascade pump station
CN111043052A
Foundation pit water level depth control method, device and equipment and storage medium
CN115700803A
Irrigation and drainage scheme determination method
CN116384652A
Farmland state information identification method and device, processor and electronic equipment
CN117036977A