Water quality detection method and device, electronic equipment and storage medium
By obtaining water quality detection results and terminal geographic maps, determining the second detection location and terminal, and achieving multi-point simultaneous detection, solving the problem of low efficiency of traditional water quality detection methods and improving detection efficiency.
Patent Information
- Application Number
- CN202411208315.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-11-15
AI Technical Summary
Traditional water quality detection methods have low detection efficiency and require multiple water source sampling locations one by one, which is time-consuming and labor-intensive.
By obtaining the first water quality detection result and the terminal geographic map, multiple second detection locations and corresponding detection terminals are determined, so as to achieve simultaneous water quality detection and improve detection efficiency.
It improves the efficiency of water quality testing, reduces the testing time and labor, and improves the testing efficiency.
Smart Images

Figure CN118962053A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of detection, and in particular to a water quality detection method, device, electronic equipment and storage medium. Background Art
[0002] When doing outdoor activities, the first thing to do after arriving at the campsite is to find a water source. However, to determine whether the water source is safe, a water quality detection device is needed to detect it. Usually, water quality detection requires multiple sample data to be reliable, but the traditional method is often to randomly select multiple water source sampling locations, and use a water quality detection device to perform water quality sampling at multiple water source sampling locations one by one to achieve water quality detection. However, the one-by-one detection method is time-consuming and labor-intensive, and its detection efficiency is low. Therefore, how to provide a water quality detection method that can improve detection efficiency has become an urgent problem to be solved. Summary of the invention
[0003] The embodiment of the present invention provides a water quality detection method, which aims to solve the problem of low detection efficiency of existing water quality detection methods. When a first water quality detection result is obtained, according to the first detection position corresponding to the first water quality detection result, according to the first detection position in the terminal geographic map, multiple second detection positions and the second detection terminals corresponding to each second detection position can be accurately determined, so that water quality detection can be performed simultaneously according to the second detection terminals corresponding to each second detection position, thereby improving the detection efficiency of water quality detection.
[0004] In a first aspect, an embodiment of the present invention provides a water quality detection method, the method comprising the following steps:
[0005] Obtaining a first water quality detection result and a terminal geographic map obtained when the first detection terminal performs a first water quality detection on a target water source, wherein the first water quality detection result corresponds to a first detection location, and the terminal geographic map includes the target water source;
[0006] Determine, based on the position of the first detection position in the terminal geographical map, a plurality of second detection positions corresponding to the target water source and a second detection terminal corresponding to the second detection position;
[0007] Performing a second water quality test on the target water source based on the second detection terminal and the second detection position to obtain a second water quality test result;
[0008] Based on the first water quality test result and the second water quality test result, the water quality test result of the target water source is determined.
[0009] Optionally, the terminal geographical map includes geographical locations of each detection terminal, and determining a plurality of second detection locations corresponding to the target water source and second detection terminals corresponding to the second detection locations based on the first detection location in the terminal geographical map includes:
[0010] In the terminal geographical map, taking the first detection position as a reference, determining the second detection position that meets the preset water quality detection principle;
[0011] Based on the geographical location of each detection terminal and the second detection location, calculate the distance between each detection terminal and the second detection location;
[0012] Generate a distance ranking table corresponding to each of the second detection positions in order of the distances from near to far;
[0013] Based on the distance sorting table, the second detection terminals corresponding to the second detection positions are screened out.
[0014] Optionally, performing a second water quality test on the target water source based on the second detection terminal and the second detection position to obtain a second water quality test result includes:
[0015] Providing the second detection position to the second detection terminal, and monitoring the movement direction of the second detection terminal;
[0016] When the second detection terminal does not move in a predetermined direction within a preset time or the moving direction is different from the direction of the second detection position, a third detection terminal is determined based on the distance sorting table corresponding to the second detection position, and the use state of the third detection terminal is an idle state;
[0017] The second detection position is provided to the third detection terminal, so that the third detection terminal performs the second water quality detection on the target water source at the second detection position to obtain the second water quality detection result.
[0018] Optionally, the determining a third detection terminal based on the distance sorting table corresponding to the second detection position includes:
[0019] Obtaining the usage status of each of the detection terminals in the distance sorting table;
[0020] In the distance sorting table corresponding to the second detection position, the detection terminals are extracted one by one in order of distance from near to far until a detection terminal with an idle state is extracted, then the extraction is stopped and the idle state detection terminal is determined as the third detection terminal.
[0021] Optionally, after determining the water quality test result of the target water source based on the first water quality test result and the second water quality test result, the method further includes:
[0022] When the water quality test result is drinkable, a drinkable mark is made at the target water source in the terminal geographical map, and a test date corresponding to the water quality test result is recorded;
[0023] When the water quality test result is undrinkable, a undrinkable mark is made at the target water source in the terminal geographical map, and the test date corresponding to the water quality test result is recorded.
[0024] Optionally, when the detection terminal detects the water quality of the target water source, the detection terminal obtains a water quality detection result, including:
[0025] When the water quality test is performed on the target water source at the test location, the user is guided to take samples according to the preset sampling guidance steps to obtain water quality samples;
[0026] The water quality test terminal performs water quality testing on the water quality sample to obtain a water quality test result.
[0027] Optionally, the step of guiding the user to perform sampling according to preset sampling guidance steps to obtain a water quality sample includes:
[0028] Acquiring the flow rate of the target water source at the detection position;
[0029] When the flow rate is greater than a preset flow rate threshold, guiding the user to perform hand-held collection to obtain the water quality sample;
[0030] When the flow rate is less than a preset flow rate threshold, the user is guided to perform immersion collection to obtain the water quality sample.
[0031] In a second aspect, an embodiment of the present invention further provides a water quality detection device, the water quality detection device comprising:
[0032] A first acquisition module, configured to acquire a first water quality detection result and a terminal geographic map obtained when the first detection terminal performs a first water quality detection on a target water source, wherein the first water quality detection result corresponds to a first detection location, and the terminal geographic map includes the target water source;
[0033] A first determination module, configured to determine, based on the position of the first detection position in the terminal geographical map, a plurality of second detection positions corresponding to the target water source and a second detection terminal corresponding to the second detection position;
[0034] A first detection module, configured to perform a second water quality detection on the target water source based on the second detection terminal and the second detection position to obtain a second water quality detection result;
[0035] The second determination module is used to determine the water quality detection result of the target water source based on the first water quality detection result and the second water quality detection result.
[0036] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the water quality detection method provided in the embodiment of the present invention when executing the computer program.
[0037] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the water quality detection method provided in the embodiment of the invention are implemented.
[0038] In an embodiment of the present invention, a first water quality detection result and a terminal geographic map obtained when a first detection terminal performs a first water quality detection on a target water source are obtained, the first water quality detection result corresponds to a first detection position, and the terminal geographic map includes the target water source; based on the position of the first detection position in the terminal geographic map, multiple second detection positions corresponding to the target water source and a second detection terminal corresponding to the second detection position are determined; based on the second detection terminal and the second detection position, a second water quality detection is performed on the target water source to obtain a second water quality detection result; based on the first water quality detection result and the second water quality detection result, the water quality detection result of the target water source is determined. When the first water quality detection result is obtained, according to the first detection position corresponding to the first water quality detection result and according to the first detection position in the terminal geographic map, multiple second detection positions and the second detection terminal corresponding to each second detection position can be accurately determined, so that water quality detection can be performed simultaneously according to the second detection terminal corresponding to each second detection position, thereby improving the detection efficiency of water quality detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 is a flow chart of a water quality detection method provided by an embodiment of the present invention;
[0041] Figure 2 is a schematic structural diagram of a water quality detection device provided in an embodiment of the present invention;
[0042] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] like Figure 1 As shown, Figure 1 : is a flow chart of a water quality detection method provided by an embodiment of the present invention, comprising:
[0045] 101. Obtain a first water quality detection result obtained by a first detection terminal when performing a first water quality detection on a target water source and a terminal geographic map.
[0046] In an embodiment of the present invention, the above-mentioned water quality detection method can be applied to a water quality detection platform or a water quality detection terminal. The above-mentioned water quality detection platform can be constructed by a server or a server cluster. The above-mentioned server or server cluster can be any electronic device with functions such as data analysis, data storage, and data transmission.
[0047] The above-mentioned terminal geographic map can be deployed in the above-mentioned water quality detection platform, and the geographical location of each detection terminal can be queried through the above-mentioned terminal geographic map. The above-mentioned detection terminal can also query the geographical location of other detection terminals, but can only query the geographical location of detection terminals with which an associated relationship has been established. The above-mentioned water quality detection platform can establish a communication connection with each detection terminal through the above-mentioned data transmission function, obtain the water quality detection result corresponding to the detection position fed back by any detection terminal, and determine the water quality detection result of the water source based on the water quality detection results corresponding to multiple detection positions fed back by multiple detection terminals.
[0048] The above-mentioned first water quality test result corresponds to a first detection location, and the above-mentioned first detection location can be understood as the location where the water quality is sampled before the above-mentioned first detection terminal conducts water quality detection. The above-mentioned terminal geographical map includes the target water source. It can be understood that the geographical scope covered by the above-mentioned terminal geographical map includes the above-mentioned target water source. The geographical location of any landmark in the covered geographical scope can be clearly known through the above-mentioned terminal geographical map, for example, the geographical location of the water source, the geographical location of the detection terminal, etc.
[0049] The detection terminal can be any communication detection terminal with a water quality detection function, for example, it can be an outdoor waterproof device such as a three-proof machine or a walkie-talkie. The target water source can be the water source selected by the user for water quality detection. The water quality detection can be achieved by a water quality detection device deployed in the detection terminal. The water quality detection device can be composed of a heavy metal sensor, a bacterial pathogen sensor, and a pH sensor. The heavy metal sensor detects the heavy metals in the water, the specific antibodies or biological molecules in the bacterial pathogen sensor detect whether the corresponding pathogens are present in the water, and the pH sensor detects the pH of the water. Thus, based on the three indicators of heavy metals, bacterial pathogens, and pH, the water quality detection results at any location in the water source are determined.
[0050] Specifically, after the first water quality test is performed at the first detection terminal, the first water quality test result and the corresponding first detection position will be uploaded to the water quality detection platform, so that the water quality detection platform can obtain the first water quality test result and the corresponding detection position.
[0051] 102. Based on the position of the first detection position in the terminal geographic map, determine a plurality of second detection positions corresponding to the target water source and second detection terminals corresponding to the second detection positions.
[0052] In an embodiment of the present invention, multiple second detection locations can be determined based on the preset water quality detection principle and the first detection location as a reference; and based on the distance between each second detection location and all detection terminals in the terminal geographic map, the second detection terminal corresponding to the second detection location is screened out. It should be noted that each second detection location corresponds to a second detection terminal, or in other words, each detection location corresponds to a detection terminal.
[0053] For example, the preset water quality detection principle can be the equidistant principle, and the equidistant is 50 meters. The first detection position can be used as a reference, and the coordinates of the first detection position 50 meters downstream of the target water source can be determined in the terminal geographic map as the first second detection position. At the same time, the coordinates of the first detection position 50 meters upstream of the target water source can be determined in the terminal geographic map as the second second detection position. Usually, the second detection positions can be 2 or more.
[0054] The number of the second detection positions and the equidistances can be set based on historical water quality detection experience, or the number of the second detection positions and the equidistances can also be set based on the type of the target water source. For example, when the type of the target water source is that there is a pollution source (i.e., there is a pollution source near the water body, an industrial area, an urban sewage system, an agricultural area, etc.), the number of the second detection positions can be set accordingly to be more, and the equidistances can also be set accordingly to be smaller, so as to ensure the accuracy of the water quality detection results. When the type of the target water source is that there is no pollution source (i.e., there is no pollution source near the water body, an industrial area, an urban sewage system, an agricultural area, etc.), the number of the second detection positions can be set accordingly to be less, and the equidistances can be set accordingly to be larger, so as to improve the detection efficiency of water quality detection.
[0055] 103. Perform a second water quality test on the target water source based on the second detection terminal and the second detection position to obtain a second water quality test result.
[0056] In an embodiment of the present invention, the water quality detection platform can send the second detection location to the second detection terminal based on the data transmission function. After receiving the second detection location, the second detection terminal can determine the navigation information according to the second detection location and the terminal geographic map. After determining the navigation information, the user of the second detection terminal can go to the second detection location according to the navigation information, and use the second detection terminal to perform a second water quality detection to obtain the second water quality detection result.
[0057] Alternatively, the water quality detection platform may determine corresponding navigation information in the terminal geographic map according to the second detection location and the current location of the second detection terminal, and send the navigation information to the second detection terminal based on the data transmission function.
[0058] 104. Determine a water quality test result of a target water source based on the first water quality test result and the second water quality test result.
[0059] In an embodiment of the present invention, the above-mentioned water quality test result (i.e., the first water quality test result or the second water quality test result) may be qualified or unqualified. When any one of the above-mentioned first water quality test result or the plurality of second test results is unqualified, the water quality test result of the target water source is unqualified. When all water quality test results (i.e., the first water quality test result and all the second water quality test results) are qualified, the water quality test result of the target water source is qualified.
[0060] In an embodiment of the present invention, a first water quality detection result and a terminal geographic map obtained when a first detection terminal performs a first water quality detection on a target water source are obtained, the first water quality detection result corresponds to a first detection position, and the terminal geographic map includes the target water source; based on the position of the first detection position in the terminal geographic map, multiple second detection positions corresponding to the target water source and a second detection terminal corresponding to the second detection position are determined; based on the second detection terminal and the second detection position, a second water quality detection is performed on the target water source to obtain a second water quality detection result; based on the first water quality detection result and the second water quality detection result, the water quality detection result of the target water source is determined. When the first water quality detection result is obtained, according to the first detection position corresponding to the first water quality detection result and according to the first detection position in the terminal geographic map, multiple second detection positions and the second detection terminal corresponding to each second detection position can be accurately determined, so that water quality detection can be performed simultaneously according to the second detection terminal corresponding to each second detection position, thereby improving the detection efficiency of water quality detection.
[0061] It can be understood that in the specific implementation of this application, data related to the terminal geographic map, geographic location, movement direction, usage status, etc. are involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data and the construction, training and use of related models need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0062] It should be noted that the water quality detection method provided in the embodiment of the present invention can be applied to computers, servers and other equipment that can perform water quality detection.
[0063] Optionally, in the step of determining multiple second detection locations corresponding to the target water source and second detection terminals corresponding to the second detection locations in the terminal geographic map based on the first detection location, it is also possible to determine, in the terminal geographic map, a second detection location that meets a preset water quality detection principle with the first detection location as a reference; calculate the distance between each detection terminal and the second detection location based on the geographical location of each detection terminal and the second detection location; generate a distance sorting table corresponding to each second detection location in order of distance from near to far; and screen out the second detection terminals corresponding to each second detection location based on the distance sorting table.
[0064] In an embodiment of the present invention, the above-mentioned terminal geographic map includes the geographical location of each detection terminal. It can be understood that the above-mentioned terminal geographic map is stored in the water quality detection platform in the form of data, not in a physical form, and when the geographical location of the above-mentioned detection terminal changes, the position of the detection terminal in the above-mentioned terminal geographic map can be updated in real time.
[0065] Specifically, the above-mentioned preset water quality detection principle can be an equidistant principle. In the terminal geographic map, the first detection position can be used as a reference to determine the second detection positions in the upstream direction and the downstream direction at equal distances. The distance between the geographical location of each detection terminal and each second detection position is calculated, and at the same time, a distance sorting table corresponding to each second detection position is generated in order of distance from near to far, that is, each second detection position corresponds to a distance sorting table. Based on the distance sorting table corresponding to each second detection position, the second detection terminal corresponding to each second detection position is screened out. In the distance sorting table, the detection terminal with the closest distance can be extracted as the second detection terminal in order of distance from near to far.
[0066] Optionally, in the step of performing a second water quality test on the target water source based on the second detection terminal and the second detection position to obtain a second water quality test result, the second detection position can also be provided to the second detection terminal, and the moving direction of the second detection terminal can be monitored; when the second detection terminal does not have a moving direction within a preset time or the moving direction is different from the direction of the second detection position, a third detection terminal is determined based on the distance sorting table corresponding to the second detection position, and the use status of the third detection terminal is an idle state; the second detection position is provided to the third detection terminal, so that the third detection terminal performs a second water quality test on the target water source at the second detection position to obtain a second water quality test result.
[0067] In an embodiment of the present invention, the water quality detection platform can provide the second detection location to the second detection terminal, and monitor the moving direction of the second detection terminal through the terminal geographic map. When the second detection terminal does not move in a predetermined direction within the preset time or the moving direction is different from the direction of the second detection location, it means that the user of the second detection terminal does not have time to go to the second detection location for water quality detection. Therefore, based on the distance sorting table corresponding to the second detection location, the detection terminal with the distance second only to the second detection terminal can be extracted as the third detection terminal, and the second detection location can be provided to the third detection terminal, so that the third detection terminal performs a second water quality detection on the target water source at the second detection location to obtain a second water quality detection result. It should be noted that the preset time can be set based on historical water quality detection experience.
[0068] Optionally, in the step of determining the third detection terminal based on the distance sorting table corresponding to the second detection position, the usage status of each detection terminal in the distance sorting table can also be obtained; in the distance sorting table corresponding to the second detection position, the detection terminals are extracted one by one in order of distance from near to far, until a detection terminal with an idle usage status is extracted, the extraction is stopped, and the detection terminal in the idle status is determined as the third detection terminal.
[0069] In an embodiment of the present invention, the above-mentioned use state may include an idle state and a non-idle state. For example, when a user is using a detection terminal (a three-proof machine or a walkie-talkie equipped with a water quality detection device) for communication, the use state of the above-mentioned detection terminal is a non-idle state. When the detection terminal is in a standby state, the use state of the above-mentioned detection terminal is an idle state. The above-mentioned use state may be that the above-mentioned water quality detection platform sends a state request to the detection terminal, and the above-mentioned detection terminal feeds back the state request to obtain the above-mentioned use state.
[0070] After obtaining the usage status of each detection terminal, the detection terminals can be extracted one by one in order from near to far. Each time a detection terminal is extracted, its corresponding usage status is queried until a detection terminal with an idle usage status is extracted. The extraction is stopped, and the detection terminal in the idle status is determined as the third detection terminal.
[0071] Optionally, after the step of determining the water quality test result of the target water source based on the first water quality test result and the second water quality test result, when the water quality test result is drinkable, the target water source in the terminal geographic map may be marked as drinkable, and the test date corresponding to the water quality test result may be recorded; when the water quality test result is not drinkable, the target water source in the terminal geographic map may be marked as not drinkable, and the test date corresponding to the water quality test result may be recorded.
[0072] In the embodiment of the present invention, the drinkable mark and the non-drinkable mark can be realized by color or other symbols that can be used to distinguish different marks, for example, directly using text marks.
[0073] For example, the water quality test results corresponding to the test location and the water quality test results corresponding to the water source can be marked on the terminal geographic map. When the water quality test result is qualified, the corresponding position is marked in green, and when the water quality test result is unqualified, the corresponding position is marked in red. It should be noted that the above-mentioned marks are time-sensitive. Therefore, the closer the current time is to the test time corresponding to the water quality test result, the thicker the mark can be, and the farther the current time is from the test time corresponding to the water quality test result, the lighter the mark can be, until the above-mentioned mark is eliminated after a period of time.
[0074] Optionally, in the step of obtaining the water quality test result when the detection terminal performs water quality testing on the target water source, when performing water quality testing on the target water source at the detection location, sampling guidance can be performed on the user according to preset sampling guidance steps to obtain a water quality sample; and water quality testing is performed on the water quality sample based on the detection terminal to obtain the water quality test result.
[0075] In an embodiment of the present invention, the detection terminal may be any electronic device having a communication function and a water quality detection function, for example, it may be a three-proof machine or a walkie-talkie equipped with a water quality detection device. The detection terminal may specifically be the first detection terminal or the second detection terminal, and the preset sampling guidance step may be obtained through historical water quality sampling experience settings. The user is guided to perform sampling through voice or text or light color and flashing frequency, etc. The sampling guidance step consists of at least one step. After the user completes a step according to the guidance, the user may be prompted to complete the current step through voice or light, and may proceed to the next step. After completing all steps of all sampling guidance steps, a water quality sample is obtained.
[0076] After obtaining the water quality sample, the water quality detection device deployed in the detection terminal can be used to perform water quality detection on the water quality sample to obtain a water quality detection result, and the water quality detection result can be fed back to the water quality detection platform. After receiving the water quality detection result, the water quality detection platform can implement any one of the water quality detection methods provided in the embodiment of the present invention according to the water quality detection result. Alternatively, any one of the water quality detection methods provided in the embodiment of the present invention can be directly implemented by the detection terminal.
[0077] Optionally, in the step of guiding the user to perform sampling according to the preset sampling guidance steps and obtaining the water quality sample, the flow velocity of the target water source at the detection position can also be obtained; when the flow velocity is greater than the preset flow velocity threshold, the user is guided to perform hand-held collection to obtain the water quality sample; when the flow velocity is less than the preset flow velocity threshold, the user is guided to perform immersion collection to obtain the water quality sample.
[0078] In the embodiment of the present invention, the hand-held collection can be done by the sampling personnel (or users) using the sampling container (i.e., the detection terminal) to immerse part of the water directly to grab the water sample. The immersion collection can be done by the sampling container being completely immersed in the water for a period of time, which can avoid the generation of bubbles and allow the water sample to enter the container in a natural state. The flow rate threshold can be set based on historical water quality sampling experience.
[0079] It is understandable that when the flow rate is greater than the flow rate threshold, it means that the current flow rate is very fast, and only hand-held collection is used to partially immerse the detection terminal in water, which can avoid the sampler getting their hands wet, thereby improving the user experience. When the flow rate is less than the flow rate threshold, the collection efficiency of water quality samples collected by hand-held collection is low, and immersion collection is required to immerse the entire detection terminal in water to improve the collection efficiency.
[0080] like Figure 2 As shown, the embodiment of the present invention also provides a water quality detection device, including:
[0081] A first acquisition module 201 is used to acquire a first water quality detection result and a terminal geographic map obtained when a first detection terminal performs a first water quality detection on a target water source, wherein the first water quality detection result corresponds to a first detection location, and the terminal geographic map includes the target water source;
[0082] A first determination module 202, configured to determine, based on the position of the first detection position in the terminal geographical map, a plurality of second detection positions corresponding to the target water source and a second detection terminal corresponding to the second detection position;
[0083] A first detection module 203, configured to perform a second water quality detection on the target water source based on the second detection terminal and the second detection position to obtain a second water quality detection result;
[0084] The second determination module 204 is used to determine the water quality detection result of the target water source based on the first water quality detection result and the second water quality detection result.
[0085] Optionally, the terminal geographical map includes the geographical locations of each detection terminal, and the first determining module 202 includes:
[0086] A first determination submodule is used to determine, in the terminal geographical map, the second detection position that meets the preset water quality detection principle based on the first detection position;
[0087] A first calculation submodule, configured to calculate the distance between each detection terminal and the second detection position based on the geographical location of each detection terminal and the second detection position;
[0088] A first generating submodule, configured to generate a distance ranking table corresponding to each of the second detection positions in the order of the distances from near to far;
[0089] The first screening submodule is configured to screen out the second detection terminals corresponding to the respective second detection positions based on the distance sorting table.
[0090] Optionally, the first detection module 203 includes:
[0091] A first monitoring submodule, configured to provide the second detection position to the second detection terminal and monitor a moving direction of the second detection terminal;
[0092] A second determination submodule is configured to determine a third detection terminal based on the distance sorting table corresponding to the second detection position when the second detection terminal does not move in a predetermined direction within a preset time or the moving direction is different from the direction of the second detection position, and the use state of the third detection terminal is an idle state;
[0093] The first detection submodule is used to provide the second detection position to the third detection terminal, so that the third detection terminal performs the second water quality detection on the target water source at the second detection position to obtain the second water quality detection result.
[0094] Optionally, the second determining submodule includes:
[0095] A first acquisition unit, configured to acquire the usage status of each of the detection terminals in the distance sorting table;
[0096] The first extraction unit is used to extract the detection terminals one by one in the distance sorting table corresponding to the second detection position in the order of distance from near to far, until a detection terminal with an idle state is extracted, stop extracting, and determine the idle state detection terminal as the third detection terminal.
[0097] Optionally, the water quality detection device further includes:
[0098] A first marking module, for marking the target water source in the terminal geographical map as drinkable when the water quality test result is drinkable, and recording the test date corresponding to the water quality test result;
[0099] The second marking module is used to mark the target water source in the terminal geographical map as undrinkable when the water quality test result is undrinkable, and record the test date corresponding to the water quality test result.
[0100] Optionally, the water quality detection device further includes:
[0101] A guiding module, used to guide the user to take samples according to preset sampling guiding steps when the water quality test is performed on the target water source at the detection position, so as to obtain a water quality sample;
[0102] The detection module is used to perform water quality detection processing on the water quality sample based on the detection terminal to obtain a water quality detection result.
[0103] Optionally, the guiding module includes:
[0104] A first acquisition submodule, used to acquire the flow rate of the target water source at the detection position;
[0105] A first guiding submodule is used to guide the user to perform hand-held collection to obtain the water quality sample when the flow rate is greater than a preset flow rate threshold;
[0106] The second guiding submodule is used to guide the user to perform immersion collection to obtain the water quality sample when the flow rate is less than a preset flow rate threshold.
[0107] like Figure 3 As shown, an embodiment of the present invention further provides an electronic device, characterized in that it includes a processor, and the processor can execute any one of the above-mentioned water quality detection methods.
[0108] Specifically, it includes a processor 301 and a memory 302, and a computer program for executing the water quality detection method stored in the memory 302 and capable of running on the processor 301, wherein:
[0109] The processor 301 runs the computer program of the water quality detection method stored in the memory 302 and performs the following steps:
[0110] Obtaining a first water quality detection result and a terminal geographic map obtained when the first detection terminal performs a first water quality detection on a target water source, wherein the first water quality detection result corresponds to a first detection location, and the terminal geographic map includes the target water source;
[0111] Determine, based on the position of the first detection position in the terminal geographical map, a plurality of second detection positions corresponding to the target water source and a second detection terminal corresponding to the second detection position;
[0112] Performing a second water quality test on the target water source based on the second detection terminal and the second detection position to obtain a second water quality test result;
[0113] Based on the first water quality test result and the second water quality test result, the water quality test result of the target water source is determined.
[0114] Optionally, the terminal geographic map includes the geographic locations of each detection terminal, and the processor 301 determines, based on the first detection location in the terminal geographic map, a plurality of second detection locations corresponding to the target water source and a second detection terminal corresponding to the second detection location, including:
[0115] In the terminal geographical map, taking the first detection position as a reference, determining the second detection position that meets the preset water quality detection principle;
[0116] Based on the geographical location of each detection terminal and the second detection location, calculate the distance between each detection terminal and the second detection location;
[0117] Generate a distance ranking table corresponding to each of the second detection positions in order of the distances from near to far;
[0118] Based on the distance sorting table, the second detection terminals corresponding to the second detection positions are screened out.
[0119] Optionally, the processor 301 performs the second water quality detection on the target water source based on the second detection terminal and the second detection position to obtain a second water quality detection result, including:
[0120] Providing the second detection position to the second detection terminal, and monitoring the movement direction of the second detection terminal;
[0121] When the second detection terminal does not move in a predetermined direction within a preset time or the moving direction is different from the direction of the second detection position, a third detection terminal is determined based on the distance sorting table corresponding to the second detection position, and the use state of the third detection terminal is an idle state;
[0122] The second detection position is provided to the third detection terminal, so that the third detection terminal performs the second water quality detection on the target water source at the second detection position to obtain the second water quality detection result.
[0123] Optionally, the determining of a third detection terminal based on the distance sorting table corresponding to the second detection position, performed by the processor 301, includes:
[0124] Obtaining the usage status of each of the detection terminals in the distance sorting table;
[0125] In the distance sorting table corresponding to the second detection position, the detection terminals are extracted one by one in order of distance from near to far until a detection terminal with an idle state is extracted, then the extraction is stopped and the idle state detection terminal is determined as the third detection terminal.
[0126] Optionally, after determining the water quality test result of the target water source based on the first water quality test result and the second water quality test result, the method executed by the processor 301 further includes:
[0127] When the water quality test result is drinkable, a drinkable mark is made at the target water source in the terminal geographical map, and a test date corresponding to the water quality test result is recorded;
[0128] When the water quality test result is undrinkable, a undrinkable mark is made at the target water source in the terminal geographical map, and the test date corresponding to the water quality test result is recorded.
[0129] Optionally, the detection terminal executed by the processor 301 obtains a water quality detection result when performing water quality detection on a target water source, including:
[0130] When the water quality test is performed on the target water source at the test location, the user is guided to take samples according to the preset sampling guidance steps to obtain water quality samples;
[0131] The water quality test terminal performs water quality testing on the water quality sample to obtain a water quality test result.
[0132] Optionally, the processor 301 performs sampling guidance for the user according to the preset sampling guidance steps to obtain the water quality sample, including:
[0133] Acquiring the flow rate of the target water source at the detection position;
[0134] When the flow rate is greater than a preset flow rate threshold, guiding the user to perform hand-held collection to obtain the water quality sample;
[0135] When the flow rate is less than a preset flow rate threshold, the user is guided to perform immersion collection to obtain the water quality sample.
[0136] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computer program implements the various processes of the water quality detection method or the application-end water quality detection method provided by the embodiment of the present invention, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0137] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned computer-readable storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0138] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A water quality detection method, It is characterized in that The method comprises the following steps: Obtaining a first water quality detection result and a terminal geographic map obtained when the first detection terminal performs a first water quality detection on a target water source, wherein the first water quality detection result corresponds to a first detection location, and the terminal geographic map includes the target water source; Based on the position of the first detection position in the terminal geographical map, determine a plurality of second detection positions corresponding to the target water source and a second detection terminal corresponding to the second detection position; Performing a second water quality test on the target water source based on the second detection terminal and the second detection position to obtain a second water quality test result; Based on the first water quality test result and the second water quality test result, a water quality test result of the target water source is determined.
2. The water quality detection method according to claim 1, It is characterized in that The terminal geographical map includes the geographical locations of each detection terminal, and the determining of a plurality of second detection locations corresponding to the target water source and a second detection terminal corresponding to the second detection location in the terminal geographical map based on the first detection location includes: In the terminal geographical map, taking the first detection position as a reference, determining the second detection position that meets the preset water quality detection principle; Based on the geographical location of each detection terminal and the second detection location, calculate the distance between each detection terminal and the second detection location; Generate a distance ranking table corresponding to each of the second detection positions in order of the distances from near to far; Based on the distance sorting table, the second detection terminals corresponding to the second detection positions are screened out.
3. The water quality detection method according to claim 2, It is characterized in that The performing a second water quality test on the target water source based on the second detection terminal and the second detection position to obtain a second water quality test result includes: Providing the second detection position to the second detection terminal, and monitoring the movement direction of the second detection terminal; When the second detection terminal does not move in a predetermined direction within a preset time or the moving direction is different from the direction of the second detection position, a third detection terminal is determined based on the distance sorting table corresponding to the second detection position, and the use state of the third detection terminal is an idle state; The second detection position is provided to the third detection terminal, so that the third detection terminal performs the second water quality detection on the target water source at the second detection position to obtain the second water quality detection result.
4. The water quality detection method according to claim 3, It is characterized in that The determining a third detection terminal based on the distance sorting table corresponding to the second detection position includes: Obtaining the usage status of each of the detection terminals in the distance sorting table; In the distance sorting table corresponding to the second detection position, the detection terminals are extracted one by one in order of distance from near to far until a detection terminal with an idle state is extracted, then the extraction is stopped and the idle state detection terminal is determined as the third detection terminal.
5. The water quality detection method according to claim 1, It is characterized in that After determining the water quality test result of the target water source based on the first water quality test result and the second water quality test result, the method further includes: When the water quality test result is drinkable, a drinkable mark is made at the target water source in the terminal geographical map, and a test date corresponding to the water quality test result is recorded; When the water quality test result is undrinkable, a undrinkable mark is made at the target water source in the terminal geographical map, and the test date corresponding to the water quality test result is recorded.
6. The water quality detection method according to claim 1, It is characterized in that The detection terminal obtains a water quality detection result when performing water quality detection on a target water source, including: When the water quality test is performed on the target water source at the test location, the user is guided to take samples according to the preset sampling guidance steps to obtain water quality samples; The water quality test terminal performs water quality testing on the water quality sample to obtain a water quality test result.
7. The water quality detection method according to claim 6, It is characterized in that The method of guiding the user to take samples according to the preset sampling guidance steps to obtain water quality samples includes: Acquiring the flow rate of the target water source at the detection position; When the flow rate is greater than a preset flow rate threshold, guiding the user to perform hand-held collection to obtain the water quality sample; When the flow rate is less than a preset flow rate threshold, the user is guided to perform immersion collection to obtain the water quality sample.
8. A water quality detection device, It is characterized in that The water quality detection device comprises: A first acquisition module, configured to acquire a first water quality detection result and a terminal geographic map obtained when the first detection terminal performs a first water quality detection on a target water source, wherein the first water quality detection result corresponds to a first detection location, and the terminal geographic map includes the target water source; A first determination module, configured to determine, based on the position of the first detection position in the terminal geographical map, a plurality of second detection positions corresponding to the target water source and a second detection terminal corresponding to the second detection position; A first detection module, configured to perform a second water quality detection on the target water source based on the second detection terminal and the second detection position to obtain a second water quality detection result; The second determination module is used to determine the water quality detection result of the target water source based on the first water quality detection result and the second water quality detection result.
9. An electronic device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the water quality detection method as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the water quality detection method according to any one of claims 1 to 7 are implemented.
