Online lighting control system and method for swimming pool

Through the online light control system and methods, the behavior and environmental information of personnel in the swimming pool are analyzed, and the lighting strategies are dynamically adjusted, which solves the problem that personnel in the swimming pool are not timely aware of the dangers, real-time monitoring and hazard warning are achieved, and emergency response speed for pool safety management is improved.

CN119012465BActive Publication Date: 2025-04-04中山市日晓光电科技有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411473862.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-04-04
Estimated Expiration
2044-10-22

AI Technical Summary

Technical Problem

In the swimming pool, people may not be able to call for help on their own when they encounter danger, and the surrounding people fail to detect it in time, resulting in the risk of injury or death of the person.

Method used

A online light control system and method for swimming pools is used to determine whether the person is in a dangerous state by obtaining personnel behavior images, analyzing the behavior amplitude, degree of splashing and behavior type of personnel. If in a dangerous state, dynamically adjust the lighting strategy to conduct hazard warnings based on the pool environmental information and lighting conditions.

Benefits of technology

Real-time monitoring and hazard warning of the behavior of personnel in the swimming pool are achieved, visual interference caused by water surface reflections is reduced, the response speed and accuracy of rescue personnel are improved, and the emergency response speed of swimming pool safety management is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012465B_ABST
    Figure CN119012465B_ABST
Patent Text Reader

Abstract

The present application relates to the field of lighting control technology, and in particular to an online lighting control system and method for swimming pools. The method includes: obtaining a person's behavior image, and obtaining the person's behavior amplitude, water splashing degree, and person's behavior type based on the person's behavior image; judging whether the person is in a dangerous state based on the person's behavior amplitude, the first water splashing degree, and the person's behavior type; if the person is in a dangerous state, obtaining swimming pool information, and obtaining the number of lamps, the lamp arrangement density, and the current light brightness based on the swimming pool information; determining a lighting control strategy based on the number of lamps, the lamp arrangement density, and the current light brightness, and issuing a danger warning to the person based on the lighting control strategy. By analyzing the swimming pool information and the person's behavior information, a multi-faceted basis is provided for the lighting control strategy, and at the same time, the level of swimming pool safety management is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of lighting control, and in particular to an online lighting control system and method for a swimming pool. Background Art

[0002] As people's living standards continue to improve, the demand for swimming is also increasing, so people often go to relevant swimming places for swimming exercise and entertainment. At present, when people encounter danger in the swimming pool, they can press the button of the bracelet worn before swimming to call for help, or people around them can press the button of the bracelet worn before swimming to call for help, so as to prevent the occurrence of safety accidents and ensure the safety of people.

[0003] However, when people are in danger in the swimming pool, they may be unable to call for help and the people around them may not realize that they are in danger. This situation may cause injury or even death to the people. Summary of the invention

[0004] The present application provides an online lighting control system and method for a swimming pool to solve the above-mentioned problems.

[0005] In a first aspect, the present application provides an online lighting control method for a swimming pool, the method comprising: obtaining a person behavior image, and obtaining the person behavior amplitude, water splashing degree and person behavior type according to the person behavior image; judging whether the person is in a dangerous state according to the person behavior amplitude, the first water splashing degree and the person behavior type; if the person is in a dangerous state, obtaining a first person behavior amplitude and a first person behavior type within a preset range according to the person behavior image; determining a water flow speed and a water surface fluctuation degree within the preset range according to the first person behavior amplitude and the first person behavior type; obtaining swimming pool information, and obtaining the number of lamps, the lamp arrangement density and the current light brightness according to the swimming pool information; determining the water surface light reflectivity according to the water flow speed, the current light brightness and the water surface fluctuation degree, and determining a preliminary light control strategy according to the water surface light reflectivity; adjusting the preliminary light control strategy according to the number of lamps and the lamp arrangement density to obtain a light control strategy, and issuing a danger warning to the person according to the light control strategy.

[0006] Through the above technical solutions, image recognition and swimming pool environment analysis technology are integrated to achieve real-time monitoring of people's behavior in the swimming pool and early warning of danger. Accurately capture and analyze the characteristics of people's behavior, combine water flow and lighting conditions, dynamically adjust the lighting strategy to optimize the visual effect, reduce the visual interference caused by water surface reflection, ensure that rescue personnel can quickly locate and respond to dangerous situations, and effectively improve the emergency response speed of swimming pool safety management.

[0007] Optionally, judging whether a person is in a dangerous state according to the amplitude of the person's behavior, the first water splashing degree and the type of the person's behavior includes: obtaining the volume and outline of the person according to the person's behavior image; obtaining the stay time of the person according to the person's behavior type and the person's behavior image; obtaining the person's state index according to the amplitude of the person's behavior, the first water splashing degree, the person's volume, the person's outline and the stay time of the person, referring to the following formula:

[0008] ;

[0009] in, represents the personnel status index, represents the behavior amplitude weight, Indicates the range of the person's behavior, represents the maximum behavior amplitude, Indicates the weight of water splash. Indicates the first water splash level, Indicates the maximum splash level. represents the personnel volume weight, represents the volume of the person, represents the reference volume, represents the weight of the person's profile, represents the outline of the person, represents the maximum personnel profile, represents the residence time weight, Indicates the stay time of the person, Indicates the maximum stay time of personnel;

[0010] The personnel status index is matched with a preset personnel status index to obtain an index range corresponding to the personnel status index; and according to the index range, it is determined whether the personnel is in a dangerous state.

[0011] Through the above technical solution, multiple dimensions such as the range of personnel behavior, the degree of water splashing, the volume of personnel, the outline of personnel and the duration of stay are comprehensively considered and assigned corresponding weights, so as to comprehensively and accurately evaluate the status index of personnel. It has high flexibility and adaptability, and also realizes the quantitative analysis of personnel behavior and status, providing a scientific and objective basis for judging whether personnel are in a dangerous state. It accurately and real-timely reflects the status of personnel in the water. Through matching and judgment by the preset personnel status index range, personnel in a dangerous state can be quickly identified, which improves the efficiency and accuracy of safety monitoring.

[0012] Optionally, determining a lighting control strategy according to the number of lamps, the arrangement density of the lamps and the current light brightness includes:

[0013] According to the personnel behavior image, obtaining a first personnel behavior amplitude and a first personnel behavior type within a preset range;

[0014] Determining the first person's stay time according to the first person's behavior type and the person's behavior image;

[0015] According to the personnel behavior image, a first personnel volume, a first personnel swimming speed, and a first water splash profile are obtained;

[0016] Acquire a water surface image, analyze the water surface image, and obtain the size of the water splash area, the brightness of the water splash, and the density of the water splash;

[0017] Obtaining a first water splash degree according to the first water splash contour, the water splash area size, the water splash brightness, and the water splash density;

[0018] The water flow velocity is determined according to the first person's residence time, the first person's volume, the first person's swimming speed, and the first water splashing degree, referring to the following formula:

[0019] ;

[0020] in, represents the water flow velocity, represents the personnel volume weight, represents the volume of the first person, represents the first person's stay time, represents the weight of the swimming speed of personnel, represents the swimming speed of the first person, represents the first water splashing degree weight, Indicates the splashing degree of the first water splash;

[0021] The degree of water surface fluctuation is determined according to the water flow velocity, the volume of the first person, the swimming speed of the first person and the degree of the first water splash, referring to the following formula:

[0022] ;

[0023] in, Indicates the degree of water surface fluctuation, represents the water velocity weight, represents the water flow velocity, represents the personnel volume weight, represents the volume of the first person, represents the speed difference weight, represents the swimming speed of the first person, Indicates the first water splash level, represents the weight of the first water splash degree;

[0024] Determine the light reflectivity of the water surface according to the water flow velocity, the current light brightness and the water surface fluctuation degree, and determine the preliminary light control strategy according to the light reflectivity of the water surface;

[0025] According to the number of lamps and the arrangement density of the lamps, the preliminary lighting control strategy is adjusted to obtain a lighting control strategy.

[0026] Through the above technical solution, multiple factors such as the first person's behavior type, residence time, volume, swimming speed, and splashing degree are comprehensively considered, and combined with formulas, the water flow speed and water surface fluctuation degree are accurately and comprehensively evaluated. This not only improves the accuracy and reliability of the evaluation, but also makes the evaluation results closer to the actual situation, providing strong technical support and decision-making basis for swimming pool water safety management and early warning.

[0027] Optionally, determining the water flow speed according to the first person's residence time, the first person's volume, the first person's swimming speed and the first water splash degree includes: obtaining the swimming pool area, the deep water area, the shallow water area, the deep water depth and the shallow water depth according to the swimming pool information; obtaining the weighted average water depth of the swimming pool according to the deep water area, the shallow water area, the deep water depth and the shallow water depth; obtaining the number of people within the preset range according to the person behavior image; obtaining the flow velocity contribution of the person's swimming speed according to the first person's swimming speed; obtaining the additional flow velocity contribution caused by the water splash according to the first water splash degree; determining the water flow speed according to the swimming pool area, the flow velocity contribution, the number of people, the weighted average water depth of the swimming pool, the first person's residence time, the first person's volume and the additional flow velocity contribution, with reference to the following formula:

[0028] ;

[0029] in, Indicates the water flow velocity, Indicates the swimming pool area. Indicates the average depth of the pool. Indicates the number of people, Indicates The volume of a person, Indicates The length of stay of a person, Indicates The additional flow rate contribution of each person, represents the water flow resistance coefficient, Indicates The flow rate contribution of each person, represents the weighted average water depth of the swimming pool.

[0030] Through the above technical solution, the area, average water depth, number, volume, residence time, swimming speed, and additional flow velocity contribution caused by splashing water of the swimming pool are integrated, and the water flow velocity is accurately calculated using the formula to improve the calculation accuracy, providing strong support for swimming pool management, safety assessment and the formulation of lighting control strategies.

[0031] Optionally, the water surface light reflectivity is determined according to the water flow velocity, the current light brightness and the water surface fluctuation degree, referring to the following formula:

[0032] ;

[0033] in, represents the light reflectivity of the water surface, Indicates the current light brightness, represents the water surface fluctuation influence coefficient, Indicates the degree of water surface fluctuation, represents the water velocity influence coefficient, Indicates the water flow velocity.

[0034] Through the above technical solution, the water surface reflectivity is calculated using a variety of physical parameters and formulas to accurately reflect the light reflection under different environmental conditions. Taking into account the influence of water surface fluctuations and water flow speed, it adapts to the real-time changing water surface conditions, provides more reliable reflectivity calculations, and avoids the limitations of traditional static models. Through the three key factors of light brightness, water flow speed and water surface fluctuations, the reflection characteristics under complex water surface environments are fully reflected. By introducing influence coefficients and parameters, the formula has a certain degree of flexibility and can be adjusted according to actual needs, making it more applicable and reliable in complex swimming pool environments.

[0035] Optionally, determining the water surface light reflectivity according to the water flow velocity, the current light brightness and the water surface fluctuation degree includes: acquiring a swimming pool environment image, and determining the lamp installation angle according to the swimming pool environment image, the lamp installation position and the lamp layout; obtaining the incident angle of the swimming pool water surface and the refraction angle of the swimming pool water surface according to the water surface image, the current light brightness and the lamp installation angle; determining the pool water refractive index according to the current light brightness, the incident angle and the refraction angle; determining the pool water quality transparency according to the pool water refractive index; determining the water surface light reflectivity according to the lamp installation angle, the pool water quality transparency, the water flow velocity, the current light brightness and the water surface fluctuation degree, referring to the following formula:

[0036] ;

[0037] in, represents the light reflectivity of the water surface, Indicates the current light brightness, Indicates the installation angle of the lamp, represents the water surface fluctuation influence coefficient, Indicates the degree of water surface fluctuation, represents the water velocity influence coefficient, Indicates the water flow velocity.

[0038] Through the above technical solutions, combined with a variety of key variables, we ensure the accurate calculation of the light reflection process in all aspects, and improve the accuracy of reflectivity prediction. Taking into account the dynamic influence of water surface fluctuations and water flow speed on light reflection, the calculation results are adjusted in real time to flexibly adapt to the complex conditions of the swimming pool surface. By predicting the water surface reflectivity, it helps to optimize the swimming pool lighting design, improve the underwater monitoring effect, and enhance the overall visualization quality and safety of the swimming pool environment. Providing more accurate and adaptable water surface light reflectivity calculation in a dynamic and complex swimming pool environment improves the reliability and effectiveness of subsequent lighting control strategies.

[0039] Optionally, determining the degree of water surface fluctuation according to the water flow velocity, the first person volume, the first person swimming speed and the first water splashing degree includes: obtaining the building height, building volume and building density around the swimming pool according to the swimming pool environment image; acquiring swimming pool meteorological data, and obtaining the ambient light intensity at the current moment according to the swimming pool meteorological data; determining the light intensity of the swimming pool environment according to the building height, the building volume, the building density and the light intensity; determining the degree of water surface fluctuation according to the light intensity, the water flow velocity, the first person volume, the first person swimming speed and the first water splashing degree, referring to the following formula:

[0040] ;

[0041] in, Indicates the degree of water surface fluctuation, Indicates the adjustment scale factor, represents the water flow velocity, represents the personnel influence coefficient, represents the volume of the first person, represents the swimming speed of the first person, represents the additional flow velocity contribution caused by the splash, represents the light intensity, Represents the light intensity influence coefficient.

[0042] Through the above technical solutions, by integrating multi-dimensional data such as ambient lighting, building density, and human behavior, the calculation of water surface fluctuations is made more comprehensive and accurate. Taking into account the dynamic impact of real-time meteorological data and human behavior, it quickly responds to environmental and behavioral changes and provides real-time and accurate water surface fluctuation assessments. By introducing adjustable proportional coefficients and influencing factors, it can be flexibly adjusted according to different swimming pool environments and usage scenarios to meet a variety of application needs. By carefully considering the impact of various factors on water surface fluctuations, the prediction accuracy of the degree of fluctuation is improved, which is helpful for determining subsequent lighting control strategies.

[0043] Optionally, determining a preliminary light control strategy based on the water surface light reflectivity includes: obtaining a swimming pool plan layout based on the swimming pool information; dividing the swimming pool plan layout to obtain a plurality of swimming pool areas; obtaining a reflectivity of each area based on the water surface light reflectivity; obtaining a personnel density in each area based on the personnel behavior image; determining the lighting time and the lighting color of each area based on the personnel density and the reflectivity of each area; and determining the preliminary light control strategy based on the lighting time and the lighting color.

[0044] Through the above technical solutions, the lighting settings are adjusted according to the specific conditions of each area to ensure that the lighting meets the actual needs of different areas. By reasonably allocating lighting exposure time and color, energy consumption is optimized, unnecessary energy waste is reduced, and more efficient lighting control is achieved. According to the dynamic adjustment of real-time personnel density and reflectivity, precise lighting basis is provided. By combining multiple data inputs and formulating intelligent lighting control strategies, it is helpful to achieve precise personnel danger warning and improve the efficiency of swimming pool safety management.

[0045] Optionally, the preliminary lighting control strategy is adjusted according to the number of lamps and the arrangement density of the lamps to obtain a lighting control strategy, including: determining the degree of light obstruction by people in the swimming pool according to the number of lamps, the arrangement density of the lamps and the amplitude of the people's behavior; determining the degree of light scattering by pool water according to the first splashing degree and the light intensity; determining the light intensity according to the volume of the people, the stay time of the people and the degree of water surface fluctuation; adjusting the lamp installation angle according to the obstruction degree and the light intensity to obtain an adjusted lamp installation angle; adjusting the current light brightness according to the adjusted lamp installation angle and the light scattering degree to obtain an adjusted lamp brightness; obtaining the lighting control strategy according to the adjusted lamp installation angle and the adjusted lamp brightness.

[0046] Through the above technical solution, the number of lamps, arrangement density, human behavior, water splash, light intensity, human volume, residence time, water surface fluctuation and other factors are comprehensively considered to accurately evaluate the light blocking and scattering in the swimming pool environment, and dynamically adjust the installation angle and brightness of the lamps accordingly, which not only reduces the direct blocking of light by human activities, but also effectively utilizes the scattering effect of water on light, enhancing the lighting uniformity and layering of the space. At the same time, the lighting strategy can be flexibly adjusted according to different time periods and different usage scenarios, which is both energy-saving and environmentally friendly and improves the level of swimming pool safety management.

[0047] In a second aspect, the present application provides an online lighting control system for a swimming pool, the system comprising:

[0048] A personnel information acquisition module is used to acquire personnel behavior images, and obtain personnel behavior amplitude, water splash degree and personnel behavior type according to the personnel behavior images; a state judgment module is used to judge whether the personnel is in a dangerous state according to the personnel behavior amplitude, the first water splash degree and the personnel behavior type; a first personnel information acquisition module is used to obtain the first personnel behavior amplitude and the first personnel behavior type within a preset range according to the personnel behavior image if the personnel is in a dangerous state; a water surface information acquisition module is used to determine the water flow speed and the water surface fluctuation degree within the preset range according to the first personnel behavior amplitude and the first personnel behavior type; a lamp information acquisition module is used to acquire swimming pool information, and obtain the number of lamps, the lamp arrangement density and the current light brightness according to the swimming pool information; a control strategy determination module is used to determine the water surface light reflectivity according to the water flow speed, the current light brightness and the water surface fluctuation degree, and determine the preliminary light control strategy according to the water surface light reflectivity; a danger warning module is used to adjust the preliminary light control strategy according to the number of lamps and the lamp arrangement density, obtain the light control strategy, and issue a danger warning to personnel according to the light control strategy. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. 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 labor.

[0050] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0051] Figure 2 A flow chart of an online light control method for a swimming pool provided in one embodiment of the present application;

[0052] Figure 3 A schematic structural diagram of an online lighting control system for a swimming pool provided in one embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme 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.

[0054] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0055] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0056] When people encounter danger in a swimming pool, they may be unable to call for help and people around them may not realize that they are in danger. For example, when drowning, people are unable to call for help by themselves and people around them may not realize that they are in danger of drowning. This situation may cause injury or even death to people.

[0057] Based on this, this application provides an online lighting control system and method for swimming pools, which realizes intelligent monitoring and immediate warning of the safety status of people in the swimming pool by comprehensively analyzing the behavior images of people, swimming pool environment information and lighting conditions. It accurately identifies potential dangers, such as safety risks caused by drowning or improper behavior, and quickly adjusts the lighting strategy to attract attention and improve rescue efficiency. At the same time, it effectively improves the safety management level and response speed of the swimming pool without increasing additional hardware costs.

[0058] Figure 1A schematic diagram of an application scenario provided for the present application, when controlling the swimming pool lights, the method provided by the present application is applied, through comprehensive analysis of multiple factors, it is effectively determined whether a person is in a dangerous state, and the lighting strategy is adjusted in real time for early warning. Provide timely early warning before the danger occurs to improve the safety of the swimming pool. Specifically, the method provided by the present application is applied to any server, and the server interacts with the swimming pool monitoring device and the swimming pool lighting control system. The server obtains and analyzes the swimming pool image information in the swimming pool monitoring device to obtain the lighting control strategy, and warns dangerous personnel according to the lighting control strategy. It effectively avoids the situation where people cannot be discovered in time when they encounter danger, improves the level of swimming pool safety management, and ensures the safety of people when they are doing activities in the swimming pool. The specific implementation method can refer to the following embodiments.

[0059] Figure 2 This is a flow chart of an online light control method for a swimming pool provided in an embodiment of the present application. The method of this embodiment can be applied to the server in the above scenario. Figure 2 As shown, the method includes:

[0060] S201. Acquire a personnel behavior image, and obtain the personnel behavior amplitude, water splashing degree, and personnel behavior type according to the personnel behavior image.

[0061] The person behavior image may be an image of the behavior of the person performing activities in the swimming pool. The splash degree may be a degree used to evaluate the splash range, splash height, splash density and splash shape when the person is performing activities in the swimming pool. The person behavior type may be a type corresponding to the behavior performed by the person when performing activities in the swimming pool. The person behavior amplitude may be the amplitude of the behavior performed by the person when performing activities in the swimming pool. The person behavior amplitude may include the size of the person's action and the strength of the person's action.

[0062] Specifically, there may be situations where some people are in danger in the swimming pool. When people are in danger, due to the large number of people in the swimming pool and the various behaviors of people in the swimming pool, the people in danger cannot be discovered in time, and it is necessary to analyze the behavior of people in the swimming pool.

[0063] Therefore, the types corresponding to all possible personnel behavior features are integrated to obtain a preset personnel behavior feature set. Personnel behavior images are extracted from the swimming pool monitoring equipment, and the edge detection algorithm is used to denoise the personnel behavior images to obtain denoised personnel behavior images. The target detection algorithm is used to identify and locate the personnel in the denoised personnel behavior images to obtain personnel position images. The image recognition algorithm is used to identify the personnel position images to obtain personnel key points (such as shoulders, elbows, and knees). The Euclidean distance changes between key points are calculated to obtain the personnel behavior amplitude. Personnel behavior features (such as the position of joint points, trajectory shape, movement amplitude, etc.) are extracted from the personnel behavior images. The personnel behavior features are matched with the preset personnel behavior feature set to obtain the personnel behavior type.

[0064] Integrate the types corresponding to all personnel behavior characteristics to obtain a preset personnel behavior characteristic set. Use image recognition algorithm to identify personnel behavior images to obtain water splash range, water splash height, water splash density and water splash shape. Determine the degree of water splash based on the water splash range, water splash height, water splash density and water splash shape.

[0065] S202. Determine whether the person is in a dangerous state based on the amplitude of the person's behavior, the degree of the first water splash, and the type of the person's behavior.

[0066] A dangerous state may be a state in which one is in danger during swimming pool activities, and may include a drowning state.

[0067] Specifically, when people are in swimming pools, they may encounter dangerous situations and the situation in the swimming pool is relatively complicated. It is necessary to determine whether the people are in a dangerous state, so as to determine whether to obtain information within a preset range.

[0068] Therefore, the range of human behavior corresponding to all possible human behavior types is collected, and the range of human behavior corresponding to all possible human behavior types is integrated to obtain a preset human behavior range. The human behavior image is analyzed using an image analysis algorithm to obtain the human behavior range, and the human behavior range is compared with the preset human behavior range. If the human behavior range is greater than the preset human behavior range, the water splashing degree is graded to obtain each water splashing degree level. The human behavior type under each water splashing degree level is analyzed to obtain the actual state of the person, and whether the person is in a dangerous state is determined based on the actual state of the person. For example, if the human behavior range is greater than the preset human behavior range, the water splashing degree level is level two. At this time, the person is in a sinking state and the person is struggling in the water to cause a large degree of water splashing. At this time, it is determined that the person is drowning, that is, it is determined that the person is in a dangerous state.

[0069] S203: If the person is in a dangerous state, obtain the swimming pool information, and obtain the number of lamps, lamp arrangement density and current light brightness according to the swimming pool information.

[0070] The current light brightness may be the brightness of the lights arranged around the pool when people are doing activities in the pool. The pool information may be information about the pool itself and the equipment installed around the pool. The pool information may include the number of lamps, the density of lamp arrangement, and the current light brightness. The number of lamps may be the number of lamps arranged around the pool. The density of lamp arrangement may be the density of the lamps arranged around the pool.

[0071] Specifically, since there are many people in the swimming pool, when people are in danger, it is necessary to determine the information of the lamps around the swimming pool to provide a basic basis for the formulation of subsequent lighting control strategies. The swimming pool information is obtained from the swimming pool monitoring equipment, and the number of lamps, lamp arrangement density and current light brightness are extracted from the swimming pool information.

[0072] S204: Determine a lighting control strategy based on the number of lamps, the density of lamp arrangement and the current light brightness, and issue a danger warning to personnel based on the lighting control strategy.

[0073] The lighting control strategy may be a strategy developed by personnel to control the lighting when a swimming pool encounters danger.

[0074] Specifically, when people are in danger in the swimming pool, it is necessary to consider various characteristics of the lamps to make the lighting control strategy more accurate. Therefore, in the case of the above-mentioned lighting frequency and lighting range, the lighting time of each area and the lighting intensity of each area are determined based on the number of lamps. The lighting frequency, lighting range, lighting time of each area and lighting intensity of each area are determined as the lighting control strategy. According to the established lighting control strategy, people in dangerous states are illuminated with lights to achieve the purpose of early warning.

[0075] This solution integrates image recognition and pool environment analysis technology to achieve real-time monitoring of people's behavior and early warning of dangers in the pool. It accurately captures and analyzes the characteristics of people's behavior, combines water flow and lighting conditions, dynamically adjusts lighting strategies to optimize visual effects, reduces visual interference caused by water surface reflections, ensures that rescuers can quickly locate and respond to dangerous situations, and effectively improves the emergency response speed of pool safety management.

[0076] In some embodiments, the volume and outline of the person are obtained according to the person behavior image; the stay time of the person is obtained according to the person behavior type and the person behavior image; the person status index is obtained according to formula (1) based on the person behavior amplitude, water splashing degree, person volume, person outline and person stay time; the person status index is matched with a preset person status index to obtain an index range corresponding to the person status index; and whether the person is in a dangerous state is determined according to the index range:

[0077] (1);

[0078] in, represents the personnel status index, represents the behavior amplitude weight, Indicates the range of human behavior, represents the maximum behavior amplitude, Indicates the weight of water splash. Indicates the degree of water splash. Indicates the maximum splash level. represents the personnel volume weight, Indicates the volume of personnel, represents the reference volume, represents the weight of the person's profile, Represents the outline of a person, represents the maximum personnel profile, represents the residence time weight, Indicates the staff's stay time. Indicates the maximum stay time of a person.

[0079] The person silhouette may be the silhouette of a person performing activities in a swimming pool.

[0080] The person's residence time may be the time a person stays at a certain location in the swimming pool.

[0081] Specifically, a contour extraction algorithm is used to extract a continuous set of edge points in the personnel position image, and the continuous set of edge points is determined as the personnel contour. Based on the personnel behavior type, a time series model is used to track the change of personnel status, and the time point when the personnel switches from one behavior type to another behavior type is recorded. The personnel behavior image is identified using an image recognition algorithm, and according to the recognition result, it is determined whether the personnel is in a stay state. If so, the timing starts. When it is identified that the personnel enters or exits the stay state, the corresponding timestamp is recorded to obtain the personnel stay time. The historical personnel states corresponding to the historical personnel behavior amplitude, historical water splash degree, historical personnel volume, historical personnel contour and historical personnel stay time under different historical circumstances are collected. Based on the historical personnel state, a linear regression analysis is performed on several historical personnel behavior amplitudes, historical water splash degrees, historical personnel volumes, historical personnel contours and historical personnel stay times to obtain the behavior amplitude weight, water splash degree weight, personnel volume weight, personnel contour weight and stay time weight. The maximum behavior amplitude, maximum water splash degree, maximum personnel contour and maximum stay time are obtained from several personnel behavior amplitudes, water splash degrees, personnel contours and personnel stay times. Since people will correspond to different index ranges in different states, the corresponding personnel states within a certain index range are consistent. Therefore, collect the index ranges corresponding to all possible personnel states, integrate the index ranges corresponding to all possible personnel states, and obtain a preset personnel state index range. Use a mathematical analysis algorithm to analyze the personnel behavior amplitude, water splash degree, personnel volume, maximum behavior amplitude, maximum water splash degree, maximum personnel outline, maximum stay time, behavior amplitude weight, water splash degree weight, personnel volume weight, personnel outline weight, stay time weight, personnel outline and personnel stay time to obtain the personnel state index. Match the personnel state index with the preset personnel state index range to obtain the corresponding personnel state and determine whether the personnel is in a dangerous state.

[0082] This solution comprehensively considers multiple dimensions such as the range of personnel behavior, the degree of water splashing, the volume of personnel, the outline of personnel, and the duration of stay, and assigns corresponding weights to comprehensively and accurately evaluate the personnel's status index. It has high flexibility and adaptability, and also realizes quantitative analysis of personnel behavior and status, providing a scientific and objective basis for judging whether personnel are in a dangerous state. It accurately and real-timely reflects the status of personnel in the water. Through matching and judgment within the preset personnel status index range, personnel in a dangerous state can be quickly identified, improving the efficiency and accuracy of safety monitoring.

[0083] In some embodiments, according to the personnel behavior image, the first personnel behavior amplitude and the first personnel behavior type within a preset range are obtained; according to the first personnel behavior type and the personnel behavior image, the first personnel residence time is determined; according to the personnel behavior image, the first personnel volume, the first personnel swimming speed and the first water splash contour are obtained; the water surface image is acquired, and the water surface image is analyzed to obtain the water splash area size, water splash brightness and water splash density; according to the first water splash contour, water splash area size, water splash brightness and water splash density, the first water splash degree is obtained; according to the first personnel residence time, the first personnel volume, the first personnel swimming speed and the first water splash degree, refer to formula (2) to determine the water flow speed; according to the water flow speed, the first personnel volume, the first personnel swimming speed and the first water splash degree, refer to formula (3) to determine the water surface fluctuation degree:

[0084] (2);

[0085] in, Indicates the water flow velocity, represents the personnel volume weight, represents the volume of the first person, Indicates the first person's stay time, represents the weight of the swimming speed of personnel, represents the swimming speed of the first person, Indicates the weight of water splash. Indicates the degree of the first splash;

[0086] (3);

[0087] in, Indicates the degree of water surface fluctuation. represents the water velocity weight, Indicates the water flow velocity, represents the personnel volume weight, represents the volume of the first person, represents the speed difference weight, represents the swimming speed of the first person, Indicates the first splash level. Indicates the weight of water splash.

[0088] The water surface light reflectivity is determined according to the water flow velocity, current light brightness and the degree of water surface fluctuation. The preliminary light control strategy is determined according to the water surface light reflectivity. The preliminary light control strategy is adjusted according to the number of lamps and the arrangement density of lamps to obtain the light control strategy.

[0089] The first person stay time may be the time that the person stays at a certain position within the preset range. The first person volume may be the volume of the person within the preset range. The first person swimming speed may be the speed at which the person swims within the preset range. The first water splash profile may be the profile corresponding to the water splash within the preset range. The first water splash degree may be the degree within the preset range used to evaluate the water splash range, water splash height, water splash density and water splash form. The preset range may be the range formed by the behavior or state that affects the person in the dangerous state within a certain distance around the person in the dangerous state. The first person behavior amplitude may be the amplitude of the behavior that affects the person in the dangerous state within the preset range. The first person behavior type may be the type corresponding to the behavior exhibited by the person who affects the person in the dangerous state within the preset range. The water surface light reflectivity may be the reflection efficiency of the swimming pool water surface on the light when the person is in danger in the swimming pool. The preliminary light control strategy may be the light control strategy preliminarily determined when the person is in danger in the swimming pool.

[0090] Specifically, due to the large number of people in the swimming pool, when a person is in danger, the activities of other people will have a certain impact on factors such as the degree of splashing around the person in danger. It is necessary to analyze the activities of other people to ensure the accuracy of the subsequent lighting control strategy. Therefore, an image segmentation algorithm is used to segment the person behavior image to obtain a person behavior image within a preset range. A target detection algorithm is used to identify and locate the person behavior image within the preset range to obtain a person position image within the preset range. An image recognition algorithm is used to identify the person position image within the preset range to obtain the key points of the person within the preset range. The Euclidean distance change between the key points is calculated to obtain the first person behavior amplitude. The first person behavior feature is extracted from the person behavior image within the preset range. The first person behavior feature is matched with the preset person behavior feature set obtained above to obtain the first person behavior type. The water flow speed can be the speed generated by the interaction between the behavior of the person in the swimming pool and the water flow. The degree of water surface fluctuation can be the degree of fluctuation caused by the external influence on the swimming pool water surface.

[0091] When a person is in a dangerous state, the behavior of other people will have a certain impact on the fluctuation of the swimming pool water surface. It is necessary to consider the impact of other people's behavior on the fluctuation of the water surface, so as to make the subsequent lighting control strategy more accurate. Based on the behavior type of the person, a time series model is used to track the change of the person's state and record the time point when the person switches from one behavior type to another. Use an image recognition algorithm to identify the behavior image of the person within a preset range to obtain a recognition result. According to the recognition result, determine whether the person is in a stay state. If the person is in a stay state, start timing. When a person is identified to enter or exit the stay state, record the corresponding timestamp. The first person's stay time is obtained by calculating the difference between the timestamp of entering the stay state and the timestamp of exiting the stay state.

[0092] Use an image analysis algorithm to analyze the personnel behavior image within the preset range obtained in the above steps to obtain the first person volume, the first person swimming speed and the first water splash outline. Obtain a water surface image from the swimming pool monitoring device, and use an image analysis algorithm to analyze the water surface image to obtain the water splash area size, water splash brightness and water splash density. Use a mathematical analysis algorithm to analyze the personnel volume weight, the first person volume, the first person stay time, the personnel swimming speed weight, the first person swimming speed, the water splash degree weight and the water splash degree, and refer to formula (2) to obtain the water flow speed.

[0093] Collect the water surface fluctuation degree corresponding to the personnel volume, swimming speed, splash degree and water flow speed under several different situations. Subtract the water flow speed from the swimming speed and take the absolute value to obtain several speed differences. Based on several water surface fluctuation degrees, linear regression analysis is performed on several personnel volumes, speed differences, splash degrees and water flow speeds to obtain the personnel volume weight, splash degree weight, speed difference weight and water flow speed weight. Using a mathematical analysis algorithm, analyze the water flow speed weight, water flow speed, personnel volume weight, first personnel volume, speed difference weight, first personnel swimming speed, first splash degree weight and first splash degree, and refer to formula (3) to obtain the water surface fluctuation degree.

[0094] Due to the diverse behaviors of people in the swimming pool, the water surface of the swimming pool is relatively complicated, which in turn affects the reflectivity of the water surface to the light to a certain extent. Therefore, a mathematical analysis algorithm is used to analyze the water flow velocity, the current light brightness and the degree of water surface fluctuation to obtain the water surface light reflectivity. According to the water surface light reflectivity, the real-time light irradiation frequency and the real-time light irradiation range are determined. According to the real-time light irradiation frequency and the degree of water surface fluctuation, the light irradiation angle for people in dangerous states is determined, and according to the above steps, the number of people in dangerous states is obtained. According to the real-time light irradiation range and the number of people in dangerous states, the number of lights is determined. According to the light irradiation angle and the number of lights, the initial light control strategy is determined.

[0095] This solution comprehensively considers multiple factors such as the first person's behavior type, residence time, volume, swimming speed, and splashing degree, and combines formulas to accurately and comprehensively evaluate water flow speed and water surface fluctuation. It not only improves the accuracy and reliability of the evaluation, but also makes the evaluation results closer to the actual situation, providing strong technical support and decision-making basis for swimming pool water safety management and early warning.

[0096] In some embodiments, according to the swimming pool information, the swimming pool area, the deep water area, the shallow water area, the deep water depth and the shallow water depth are obtained; according to the deep water area, the shallow water area, the deep water depth and the shallow water depth, the weighted average water depth of the swimming pool is obtained; according to the personnel behavior image, the number of personnel within the preset range is obtained; according to the swimming speed of the first person, the flow velocity contribution of the swimming speed of the person is obtained; according to the splashing degree, the additional flow velocity contribution caused by the splashing is obtained; according to the swimming pool area, the flow velocity contribution, the number of personnel, the weighted average water depth of the swimming pool, the first person's stay time, the first person's volume and the additional flow velocity contribution, refer to formula (4) to determine the water flow velocity:

[0097] (4);

[0098] in, Indicates the water flow velocity, Indicates the swimming pool area. Indicates the average depth of the pool. Indicates the number of people, Indicates The volume of a person, Indicates The length of stay of a person, Indicates The additional flow rate contribution of each person, represents the water flow resistance coefficient, Indicates The flow rate contribution of each person, represents the weighted average water depth of the swimming pool.

[0099] The velocity contribution of the swimming speed of the person may be the effect of the swimming speed of the person in the pool on the change of the water velocity. The additional velocity contribution caused by the splashing water may be the additional effect of the splashing water on the change of the water velocity. The additional effect may be to hinder the water velocity or to promote the water velocity.

[0100] Specifically, the characteristics of the swimming pool and the behavior of other people within the preset range will have a certain impact on the water flow speed. Therefore, the deep water area, shallow water area, swimming pool area, deep water depth and shallow water depth are extracted from the swimming pool information, and the deep water area, shallow water area, swimming pool area, deep water depth and shallow water depth are analyzed using a mathematical analysis method to obtain the weighted average water depth of the swimming pool. The image recognition algorithm is used to identify the personnel behavior image within the preset range obtained above to obtain the number of people within the preset range. The deep learning algorithm is used to detect the personnel in the personnel behavior image within the preset range to obtain the position, outline and posture of the swimmer. The tracking algorithm is used to track the position, outline and posture of the swimmer to obtain the motion vector of the swimmer. The optical flow method is used to calculate the motion vector of each point in the personnel behavior image within the preset range to obtain the water flow acceleration. The edge detection algorithm is used to detect the personnel behavior image within the preset range to obtain the eddy area. The water flow path tracking method is used to track the eddy area to obtain the eddy shape and eddy boundary. Based on the eddy shape and eddy boundary, the image segmentation algorithm is used to segment the personnel behavior image within the preset range to obtain the eddy image. The eddy image is analyzed using the image analysis algorithm to obtain the eddy area. The water flow acceleration, eddy area and the first personnel volume are analyzed using a mathematical analysis algorithm to obtain the flow velocity contribution of the personnel swimming speed.

[0101] The mathematical analysis algorithm is used to analyze the splash range, splash height, splash density, splash shape and the volume of the first person obtained above to obtain the additional flow velocity contribution caused by the splash. The mathematical analysis algorithm is used to analyze the pool area, flow velocity contribution, number of people, weighted average water depth of the pool, first person stay time, first person volume and additional flow velocity contribution, and the water flow velocity is determined by referring to formula (4).

[0102] This solution integrates the swimming pool’s area, average water depth, number, volume, residence time, swimming speed, and additional flow velocity contribution caused by splashing water. The water flow velocity is accurately calculated using a formula to improve calculation accuracy, providing strong support for swimming pool management, safety assessment, and the formulation of lighting control strategies.

[0103] In some embodiments, according to the water flow velocity, the current light brightness and the degree of water surface fluctuation, refer to formula (5) to determine the water surface light reflectivity:

[0104] (5);

[0105] in, Represents the light reflectivity of the water surface. Indicates the current light brightness. represents the water surface fluctuation influence coefficient, Indicates the degree of water surface fluctuation. represents the water velocity influence coefficient, Indicates water flow speed.

[0106] Specifically, the water surface light reflectivity will affect the lighting effect, and then affect the light warning. It is necessary to analyze some characteristics of the swimming pool water surface to determine the water surface light reflectivity, so as to make the light control strategy more reasonable. Therefore, the water surface light reflectivity corresponding to several water flow speeds and several water surface fluctuation degrees is collected, and a linear regression analysis is performed on several water flow speeds and several water surface fluctuation degrees to obtain the water flow speed influence coefficient and the water surface fluctuation influence coefficient. The water flow speed, water surface fluctuation influence coefficient, water flow speed influence coefficient, water surface fluctuation influence coefficient, current light brightness and water surface fluctuation degree obtained in the above steps are analyzed using mathematical analysis methods, and the water surface light reflectivity is obtained by referring to formula (5).

[0107] Through this solution, the water surface reflectivity is calculated using a variety of physical parameters and formulas to accurately reflect the light reflection under different environmental conditions. Taking into account the influence of water surface fluctuations and water flow speed, it adapts to the real-time changing water surface conditions, provides more reliable reflectivity calculations, and avoids the limitations of traditional static models. Through the three key factors of light brightness, water flow speed and water surface fluctuations, the reflection characteristics under complex water surface environments are fully reflected. By introducing influence coefficients and parameters, the formula has a certain degree of flexibility and can be adjusted according to actual needs, making it more applicable and reliable in complex swimming pool environments.

[0108] In some embodiments, a swimming pool environment image is obtained, and the installation angle of the lamp is determined according to the swimming pool environment image, the installation position of the lamp and the layout of the lamp; the incident angle of the swimming pool water surface and the refraction angle of the swimming pool water surface are obtained according to the water surface image, the current light brightness and the installation angle of the lamp; the refractive index of the pool water is determined according to the current light brightness, the incident angle and the refraction angle; the transparency of the swimming pool water quality is determined according to the refractive index of the pool water; the reflectivity of the water surface light is determined according to the installation angle of the lamp, the transparency of the swimming pool water quality, the water flow speed, the current light brightness and the degree of water surface fluctuation, with reference to formula (6):

[0109] (6);

[0110] in, Represents the light reflectivity of the water surface. Indicates the current light brightness. Indicates the installation angle of the lamp. represents the water surface fluctuation influence coefficient, Indicates the degree of water surface fluctuation. represents the water velocity influence coefficient, Indicates water flow speed.

[0111] The refractive index of pool water can be the efficiency with which pool water refracts light when illuminated by light.

[0112] The swimming pool environment image may be an image of the entire swimming pool and objects within a certain range around the swimming pool.

[0113] Specifically, since the reflectivity of water surface light will affect the effect of light irradiation to a certain extent, if the reflectivity of water surface light has a greater impact on the effect of light irradiation, it may lead to a poor warning effect for people in dangerous conditions. Therefore, the swimming pool environment image is obtained from the swimming pool monitoring equipment, and the swimming pool environment image is identified using image recognition technology to obtain the installation position of the lamp. The installation height of the lamp is extracted from the swimming pool environment image, and the installation angle of the lamp is determined according to the installation height, layout and installation position of the lamp. The water surface image is segmented using an image segmentation algorithm to obtain several swimming pool areas and the area of ​​each swimming pool area. According to the installation angle of the lamp and the current light brightness, the incident angle and reflection angle of the light in several swimming pool areas are determined. The area, incident angle and reflection angle of each swimming pool area are analyzed using a mathematical analysis algorithm to obtain the refractive index of the pool water. The pool water quality transparency corresponding to the pool water refractive index under different historical conditions is collected, and the pool water quality transparency corresponding to the pool water refractive index under different historical conditions is integrated to obtain a preset pool water quality index range. The pool water refractive index obtained in the above steps is matched with the preset pool water quality index range to obtain the pool water quality index range corresponding to the pool water refractive index, and the pool water quality transparency corresponding to the pool water quality index range is determined as the pool water quality transparency. The current light brightness, lamp installation angle, water surface fluctuation influence coefficient, water surface fluctuation degree, water flow velocity influence coefficient and water flow velocity are analyzed using a mathematical analysis algorithm, and the water surface light reflectivity is obtained by referring to formula (6).

[0114] This solution combines multiple key variables to ensure accurate calculation of the light reflection process in all aspects, improving the accuracy of reflectivity prediction. Taking into account the dynamic impact of water surface fluctuations and water flow speed on light reflection, the calculation results are adjusted in real time to flexibly adapt to the complex conditions of the swimming pool surface. Predicting the water surface reflectivity helps optimize swimming pool lighting design, improve underwater monitoring effects, and enhance the overall visualization quality and safety of the swimming pool environment. Providing more accurate and adaptable water surface light reflectivity calculations in dynamic and complex swimming pool environments improves the reliability and effectiveness of subsequent lighting control strategies.

[0115] In some embodiments, the building height, building volume and building density around the swimming pool are obtained according to the swimming pool environment image; the swimming pool meteorological data are obtained, and the ambient light intensity at the current moment is obtained according to the swimming pool meteorological data; the light intensity of the swimming pool environment is determined according to the building height, building volume, building density and ambient light intensity; according to the light intensity, water flow speed, the first person's volume, the first person's swimming speed and the splashing degree of water, refer to formula (7) to determine the degree of water surface fluctuation:

[0116] (7);

[0117] in, Indicates the degree of water surface fluctuation. Indicates the adjustment scale factor, Indicates the water flow velocity, represents the personnel influence coefficient, represents the volume of the first person, represents the swimming speed of the first person, represents the additional flow velocity contribution caused by water splash, Indicates the light intensity, Represents the light intensity influence coefficient.

[0118] Building density can be the density of buildings within a certain range around the swimming pool.

[0119] Specifically, since some swimming pools are open-air, factors brought by some buildings around the swimming pools and meteorological factors in the open-air environment will also affect the fluctuation of the swimming pool water surface to a certain extent. Therefore, an image recognition algorithm is used to identify the swimming pool environment image to obtain the building height and building density. The building is scanned using three-dimensional scanning technology to obtain the building volume. Meteorological data is obtained from the meteorological department of the area where the swimming pool is located, and the ambient light intensity at the current moment is extracted from the meteorological data. A mathematical analysis algorithm is used to analyze the building height, building volume, building density and ambient light intensity to obtain the light intensity of the swimming pool environment. Formula (7) is used to analyze the light intensity, water flow speed, the first person volume, the first person swimming speed and the degree of water splashing to determine the degree of water surface fluctuation.

[0120] Through this solution, by integrating multi-dimensional data such as ambient lighting, building density, and human behavior, the calculation of water surface fluctuations is made more comprehensive and accurate. Taking into account the dynamic impact of real-time meteorological data and human behavior, it quickly responds to environmental and behavioral changes and provides real-time and accurate water surface fluctuation assessments. By introducing adjustable proportional coefficients and influencing factors, it can be flexibly adjusted according to different swimming pool environments and usage scenarios to meet a variety of application needs. By carefully considering the impact of various factors on water surface fluctuations, the prediction accuracy of the degree of fluctuation is improved, which is helpful for determining subsequent lighting control strategies.

[0121] In some embodiments, the plan layout of the swimming pool is obtained based on the swimming pool information; the plan layout of the swimming pool is divided to obtain several areas of the swimming pool; the reflectivity of each area is obtained based on the reflectivity of the water surface light; the density of people in each area is obtained based on the personnel behavior image; the lighting time and the lighting color of each area are determined based on the personnel density and the reflectivity of each area; the preliminary lighting control strategy is determined based on the lighting time and the lighting color.

[0122] Specifically, the pool layout is extracted from the pool information, and the regional reflectivity of each pool area is obtained based on the pool layout and the water surface light reflectivity. Based on several pool areas, the image analysis algorithm is used to identify the personnel behavior image and determine the personnel density of each area. According to the personnel density, the lighting time of each area is determined, and according to the regional reflectivity, the lighting color of each area is determined. The lighting time of each area and the lighting color of each area are determined as the preliminary lighting control strategy. For example, when a person is in a dangerous state, if the density of people around the person in the dangerous state is large, it is necessary to control the lighting time to ensure that the light can play a warning effect even if it is blocked when illuminating the person in the dangerous state. At the same time, if the reflectivity around the person in the dangerous state is large, it is necessary to determine the light color according to the reflectivity, so that the light is bright and conspicuous during the warning, so that the dangerous person can be discovered in time.

[0123] Through this solution, the lighting settings are adjusted according to the specific conditions of each area to ensure that the lighting meets the actual needs of different areas. By reasonably allocating lighting exposure time and color, energy consumption is optimized, unnecessary energy waste is reduced, and more efficient lighting control is achieved. According to the dynamic adjustment of real-time personnel density and reflectivity, precise lighting basis is provided. By combining multiple data inputs and formulating intelligent lighting control strategies, it is helpful to achieve precise personnel danger warning and improve the efficiency of swimming pool safety management.

[0124] In some embodiments, the degree of light obstruction by people in the swimming pool is determined based on the number of lamps, the density of lamp arrangement and the amplitude of people's behavior; the degree of light scattering by pool water is determined based on the degree of water splashing and light intensity; the light intensity is determined based on the size of people, the length of time people stay and the degree of water surface fluctuation; the lamp installation angle is adjusted based on the degree of obstruction and the light intensity to obtain an adjusted lamp installation angle; the current light brightness is adjusted based on the adjusted lamp installation angle and the degree of light scattering to obtain an adjusted lamp brightness; the light control strategy is obtained based on the adjusted lamp installation angle and the adjusted lamp brightness.

[0125] Specifically, a mathematical analysis algorithm is used to analyze the number of lamps, the density of lamp arrangement, and the amplitude of personnel behavior to obtain the degree of light obstruction by personnel in the swimming pool. A mathematical analysis algorithm is used to analyze the degree of light obstruction by personnel in the swimming pool, the degree of water splashing, and the light intensity to obtain the degree of light scattering by the pool water. A mathematical analysis algorithm is used to analyze the volume of personnel, the length of time personnel stay, and the degree of water surface fluctuation to determine the intensity of light. The installation angle of the lamp is adjusted according to the degree of obstruction and the intensity of light. For example, the degree of obstruction is 0.3, the light intensity is 600 lux, and the installation angle of the lamp is 40 degrees. At this time, the installation angle of the lamp is not conducive to the formulation of the light control strategy, so the installation angle of the lamp needs to be adjusted to 45 degrees. According to the adjusted installation angle of the lamp and the degree of light scattering, the current light brightness is adjusted to obtain the adjusted lamp brightness. For example, if the adjusted lamp installation angle is 45 degrees, the light scattering degree is 0.7, and the lamp brightness is 1800 lumens, then because the light scattering degree is too high, the lamp brightness needs to be adjusted to 2300 lumens to facilitate early warning of personnel in dangerous conditions. The lighting control strategy is obtained based on the adjusted lamp installation angle and the adjusted lamp brightness.

[0126] This solution comprehensively considers multiple factors such as the number of lamps, arrangement density, human behavior, water splash, light intensity, human volume, residence time, and water surface fluctuations, accurately assesses the light blocking and scattering in the swimming pool environment, and dynamically adjusts the installation angle and brightness of the lamps accordingly, which not only reduces the direct blocking of light by human activities, but also effectively utilizes the scattering effect of water on light, enhancing the lighting uniformity and layering of the space. At the same time, the lighting strategy can be flexibly adjusted according to different time periods and different usage scenarios, which is both energy-saving and environmentally friendly and improves the level of swimming pool safety management.

[0127] Figure 3 A schematic diagram of the structure of an online light control system for a swimming pool provided in one embodiment of the present application is shown in FIG. Figure 3 As shown, the online lighting control system 300 for a swimming pool of this embodiment includes: a personnel information acquisition module 301, a state judgment module 302, a first personnel information acquisition module 303, a water surface information acquisition module 304, a lighting information acquisition module 305, a control strategy determination module 306 and a danger warning module 307.

[0128] The personnel information acquisition module 301 is used to acquire the personnel behavior image, and obtain the personnel behavior amplitude, water splashing degree and personnel behavior type according to the personnel behavior image; the state judgment module 302 is used to judge whether the personnel is in a dangerous state according to the personnel behavior amplitude, water splashing degree and personnel behavior type; the first personnel information acquisition module 303 is used to obtain the first personnel behavior amplitude and the first personnel behavior type within a preset range according to the personnel behavior image if the personnel is in a dangerous state; the water surface information acquisition module 304 is used to determine the first personnel behavior amplitude and the first personnel behavior type according to the first personnel behavior amplitude and the first personnel behavior type. The water flow speed and the degree of water surface fluctuation within the preset range; the lamp information acquisition module 305 is used to obtain the swimming pool information, and obtain the number of lamps, the density of lamp arrangement and the current light brightness according to the swimming pool information; the control strategy determination module 306 is used to determine the water surface light reflectivity according to the water flow speed, the current light brightness and the degree of water surface fluctuation, and determine the preliminary light control strategy according to the water surface light reflectivity; the danger warning module 307 is used to adjust the preliminary light control strategy according to the number of lamps and the density of lamp arrangement, obtain the light control strategy, and issue a danger warning to personnel according to the light control strategy.

[0129] Optionally, the state judgment module 302 is specifically used to: obtain the volume and outline of the personnel according to the personnel behavior image; obtain the stay time of the personnel according to the personnel behavior type and the personnel behavior image; obtain the personnel state index according to the personnel behavior amplitude, water splashing degree, personnel volume, personnel outline and personnel stay time, referring to the following formula:

[0130] ;

[0131] in, represents the personnel status index, represents the behavior amplitude weight, Indicates the range of human behavior, represents the maximum behavior amplitude, Indicates the weight of water splash. Indicates the degree of water splash. Indicates the maximum splash level. represents the personnel volume weight, Indicates the volume of personnel, represents the reference volume, represents the weight of the person's profile, Represents the outline of a person, represents the maximum personnel profile, represents the residence time weight, Indicates the staff's stay time. Indicates the maximum stay time of personnel;

[0132] The personnel status index is matched with the preset personnel status index to obtain an index range corresponding to the personnel status index; based on the index range, it is determined whether the personnel is in a dangerous state.

[0133] Optionally, the state judgment module 302 is specifically used to: obtain the first person behavior amplitude and the first person behavior type within a preset range according to the person behavior image; determine the first person stay time according to the first person behavior type and the person behavior image; obtain the first person volume, the first person swimming speed and the first water splash contour according to the person behavior image; obtain the water surface image, analyze the water surface image, and obtain the water splash area size, water splash brightness and water splash density; obtain the first water splash degree according to the first water splash contour, the water splash area size, the water splash brightness and the water splash density; determine the water flow speed according to the first person stay time, the first person volume, the first person swimming speed and the first water splash degree, referring to the following formula:

[0134] ;

[0135] in, represents the water flow velocity, represents the personnel volume weight, represents the volume of the first person, represents the first person's stay time, represents the weight of the swimming speed of personnel, represents the swimming speed of the first person, represents the first water splashing degree weight, Indicates the splashing degree of the first water splash;

[0136] The degree of water surface fluctuation is determined according to the water flow velocity, the volume of the first person, the swimming speed of the first person and the degree of the first water splash, referring to the following formula:

[0137] ;

[0138] in, Indicates the degree of water surface fluctuation, represents the water velocity weight, represents the water flow velocity, represents the personnel volume weight, represents the volume of the first person, represents the speed difference weight, represents the swimming speed of the first person, Indicates the first water splash level, represents the weight of the first water splash degree;

[0139] The water surface light reflectivity is determined according to the water flow velocity, the current light brightness and the water surface fluctuation degree, and the preliminary light control strategy is determined according to the water surface light reflectivity; the preliminary light control strategy is adjusted according to the number of lamps and the arrangement density of the lamps to obtain the light control strategy.

[0140] Optionally, the state judgment module 302 is specifically used to: obtain the swimming pool area, deep water area, shallow water area, deep water depth and shallow water depth according to the swimming pool information; obtain the weighted average water depth of the swimming pool according to the deep water area, shallow water area, deep water depth and shallow water depth; obtain the number of people within a preset range according to the personnel behavior image; obtain the flow velocity contribution of the swimming speed of the first person according to the swimming speed of the first person; obtain the additional flow velocity contribution caused by the splashing according to the degree of water splashing; determine the water flow velocity according to the swimming pool area, flow velocity contribution, number of people, weighted average water depth of the swimming pool, first person stay time, first person volume and additional flow velocity contribution, refer to the following formula:

[0141] ;

[0142] in, Indicates the water flow velocity, Indicates the swimming pool area. Indicates the average depth of the pool. Indicates the number of people, Indicates The volume of a person, Indicates The length of stay of a person, Indicates The additional flow rate contribution of each person, represents the water flow resistance coefficient, Indicates The flow rate contribution of each person, Represents the weighted average water depth of the pool.

[0143] Optionally, the control strategy determination module 306 is specifically configured to:

[0144] ;

[0145] in, Represents the light reflectivity of the water surface. Indicates the current light brightness. represents the water surface fluctuation influence coefficient, Indicates the degree of water surface fluctuation. represents the water velocity influence coefficient, Indicates water flow speed.

[0146] Optionally, the state judgment module 302 is specifically used to: obtain the swimming pool environment image, determine the lamp installation angle according to the swimming pool environment image, the lamp installation position and the lamp layout; obtain the incident angle of the swimming pool water surface and the refraction angle of the swimming pool water surface according to the water surface image, the current light brightness and the lamp installation angle; determine the refractive index of the pool water according to the current light brightness, the incident angle and the refraction angle; determine the transparency of the swimming pool water quality according to the refractive index of the pool water; determine the reflectivity of the water surface light according to the lamp installation angle, the transparency of the swimming pool water quality, the water flow speed, the current light brightness and the degree of water surface fluctuation, refer to the following formula:

[0147] ;

[0148] in, Represents the light reflectivity of the water surface. Indicates the current light brightness. Indicates the installation angle of the lamp. represents the water surface fluctuation influence coefficient, Indicates the degree of water surface fluctuation. represents the water velocity influence coefficient, Indicates water flow speed.

[0149] Optionally, the state judgment module 302 is specifically used to: obtain the building height, building volume and building density around the swimming pool according to the swimming pool environment image; obtain the swimming pool meteorological data, and obtain the ambient light intensity at the current moment according to the swimming pool meteorological data; determine the light intensity of the swimming pool environment according to the building height, building volume, building density and ambient light intensity; determine the degree of water surface fluctuation according to the light intensity, water flow speed, the first person's volume, the first person's swimming speed and the degree of water splashing, referring to the following formula:

[0150] ;

[0151] in, Indicates the degree of water surface fluctuation. Indicates the adjustment scale factor, Indicates the water flow velocity, represents the personnel influence coefficient, represents the volume of the first person, represents the swimming speed of the first person, represents the additional flow velocity contribution caused by water splash, Indicates the light intensity, Represents the light intensity influence coefficient.

[0152] Optionally, the state judgment module 302 is specifically used to: obtain the swimming pool plan layout according to the swimming pool information; divide the swimming pool plan layout to obtain a number of swimming pool areas; obtain the reflectivity of each area according to the reflectivity of the water surface light; obtain the personnel density of each area according to the personnel behavior image; determine the lighting time and lighting color of each area according to the personnel density and the reflectivity of each area; determine the preliminary lighting control strategy according to the lighting time and lighting color.

[0153] Optionally, the state judgment module 302 is specifically used to: determine the degree of light obstruction by people in the swimming pool according to the number of lamps, the density of lamp arrangement and the amplitude of people's behavior; determine the degree of light scattering by pool water according to the degree of water splashing and the light intensity; determine the light intensity according to the size of people, the length of time people stay and the degree of water surface fluctuation; adjust the lamp installation angle according to the degree of obstruction and the light intensity to obtain an adjusted lamp installation angle; adjust the current light brightness according to the adjusted lamp installation angle and the degree of light scattering to obtain an adjusted lamp brightness; obtain a light control strategy according to the adjusted lamp installation angle and the adjusted lamp brightness.

[0154] The system of this embodiment can be used to execute the method of any of the above embodiments. The implementation principles and technical effects are similar and will not be described in detail here.

Claims

1. An online lighting control method for a swimming pool, characterized in that: include: Acquire a personnel behavior image, and obtain the personnel behavior amplitude, the first water splash degree, and the personnel behavior type according to the personnel behavior image; Judging whether the person is in a dangerous state according to the amplitude of the person's behavior, the first water splashing degree and the type of the person's behavior; If the person is in a dangerous state, the swimming pool information is obtained, and the number of lamps, the density of lamp arrangement and the current light brightness are obtained according to the swimming pool information; Determine a lighting control strategy according to the number of the lamps, the arrangement density of the lamps and the current light brightness, and issue a danger warning to personnel according to the lighting control strategy; The determining whether the person is in a dangerous state according to the amplitude of the person's behavior, the first water splashing degree and the type of the person's behavior includes: According to the personnel behavior image, obtaining the personnel volume and personnel outline; Obtaining the personnel stay time according to the personnel behavior type and the personnel behavior image; According to the amplitude of the personnel's behavior, the first water splashing degree, the personnel's volume, the personnel's outline and the personnel's stay time, the personnel status index is obtained, referring to the following formula: ; in, represents the personnel status index, represents the behavior amplitude weight, Indicates the range of the person's behavior, represents the maximum behavior amplitude, Indicates the weight of water splash. Indicates the first water splash level, Indicates the maximum splash level. represents the personnel volume weight, represents the volume of the person, represents the reference volume, represents the weight of the person's profile, represents the outline of the person, represents the maximum personnel profile, represents the residence time weight, Indicates the stay time of the person, Indicates the maximum stay time of personnel; Matching the personnel status index with a preset personnel status index to obtain an index range corresponding to the personnel status index; According to the index range, determine whether the person is in a dangerous state; The determining of the lighting control strategy according to the number of the lamps, the arrangement density of the lamps and the current light brightness includes: According to the personnel behavior image, obtaining a first personnel behavior amplitude and a first personnel behavior type within a preset range; Determining the first person's stay time according to the first person's behavior type and the person's behavior image; According to the personnel behavior image, a first personnel volume, a first personnel swimming speed, and a first water splash profile are obtained; Acquire a water surface image, analyze the water surface image, and obtain the size of the water splash area, the brightness of the water splash, and the density of the water splash; Obtaining a first water splash degree according to the first water splash contour, the water splash area size, the water splash brightness, and the water splash density; The water flow velocity is determined according to the first person's residence time, the first person's volume, the first person's swimming speed, and the first water splashing degree, referring to the following formula: ; in, represents the water flow velocity, represents the personnel volume weight, represents the volume of the first person, represents the first person's stay time, represents the weight of the swimming speed of personnel, represents the swimming speed of the first person, represents the first water splashing degree weight, Indicates the splashing degree of the first water splash; The degree of water surface fluctuation is determined according to the water flow velocity, the volume of the first person, the swimming speed of the first person and the degree of the first water splash, referring to the following formula: ; in, Indicates the degree of water surface fluctuation, represents the water velocity weight, represents the water flow velocity, represents the personnel volume weight, represents the volume of the first person, represents the speed difference weight, represents the swimming speed of the first person, Indicates the first water splash level, represents the weight of the first water splash degree; Determine the light reflectivity of the water surface according to the water flow velocity, the current light brightness and the water surface fluctuation degree, and determine the preliminary light control strategy according to the light reflectivity of the water surface; According to the number of lamps and the arrangement density of the lamps, the preliminary lighting control strategy is adjusted to obtain a lighting control strategy.

2. The method according to claim 1, characterized in that The determining of the water flow speed according to the first person's stay time, the first person's volume, the first person's swimming speed and the first water splash degree includes: According to the swimming pool information, the swimming pool area, the deep water area, the shallow water area, the deep water depth and the shallow water depth are obtained; Obtaining a weighted average water depth of the swimming pool according to the area of ​​the deep water area, the area of ​​the shallow water area, the water depth of the deep water area and the water depth of the shallow water area; According to the personnel behavior image, the number of personnel within the preset range is obtained; According to the first swimming speed of the person, a flow velocity contribution of the swimming speed of the person is obtained; According to the first water splashing degree, obtaining an additional flow velocity contribution caused by the water splashing; The water flow velocity is determined according to the swimming pool area, the flow velocity contribution, the number of people, the weighted average water depth of the swimming pool, the first person's stay time, the first person's volume and the additional flow velocity contribution, referring to the following formula: ; in, Indicates the water flow velocity, Indicates the swimming pool area. Indicates the average depth of the pool. Indicates the number of people, Indicates The volume of a person, Indicates The length of stay of a person, Indicates The additional flow rate contribution of each person, represents the water flow resistance coefficient, Indicates The flow rate contribution of each person, represents the weighted average water depth of the swimming pool.

3. The method according to claim 1, characterized in that The water surface light reflectivity is determined according to the water flow velocity, the current light brightness and the water surface fluctuation degree, referring to the following formula: ; in, represents the light reflectivity of the water surface, Indicates the current light brightness, represents the water surface fluctuation influence coefficient, Indicates the degree of water surface fluctuation, represents the water velocity influence coefficient, Indicates the water flow velocity.

4. The method according to claim 1, characterized in that: The swimming pool information includes the installation location and layout of the lamps. The water surface light reflectivity is determined according to the water flow velocity, the current light brightness and the water surface fluctuation degree, including: Acquire a swimming pool environment image, and determine the lamp installation angle according to the swimming pool environment image, the lamp installation position and the lamp layout; Obtaining the incident angle of the swimming pool water surface and the refraction angle of the swimming pool water surface according to the water surface image, the current light brightness and the lamp installation angle; Determine the refractive index of the pool water according to the current light brightness, the incident angle and the refraction angle; Determine the transparency of swimming pool water quality according to the refractive index of the pool water; The reflectivity of the water surface light is determined according to the installation angle of the lamp, the transparency of the swimming pool water quality, the water flow speed, the current light brightness and the degree of water surface fluctuation, referring to the following formula: ; in, represents the light reflectivity of the water surface, Indicates the current light brightness, Indicates the installation angle of the lamp, represents the water surface fluctuation influence coefficient, Indicates the degree of water surface fluctuation, represents the water velocity influence coefficient, Indicates the water flow velocity.

5. The method according to claim 4, characterized in that Determining the degree of water surface fluctuation according to the water flow speed, the volume of the first person, the swimming speed of the first person, and the degree of the first water splash includes: According to the swimming pool environment image, obtain the building height, building volume and building density around the swimming pool; Obtain swimming pool meteorological data, and obtain the ambient light intensity at the current moment according to the swimming pool meteorological data; Determining the light intensity of the swimming pool environment according to the building height, the building volume, the building density and the ambient light intensity; The degree of water surface fluctuation is determined according to the light intensity, the water flow speed, the volume of the first person, the swimming speed of the first person and the first water splashing degree, referring to the following formula: ; in, Indicates the degree of water surface fluctuation, Indicates the adjustment scale factor, represents the water flow velocity, represents the personnel influence coefficient, represents the volume of the first person, represents the swimming speed of the first person, represents the additional flow velocity contribution caused by the splash, represents the light intensity, Represents the light intensity influence coefficient.

6. The method according to claim 5, characterized in that Determining a preliminary lighting control strategy according to the water surface light reflectivity includes: According to the swimming pool information, obtain the swimming pool plan layout; Dividing the swimming pool plane layout to obtain several swimming pool areas; According to the water surface light reflectivity, the reflectivity of each area is obtained; According to the personnel behavior image, obtaining the personnel density in each area; Determine the lighting time and lighting color of each area according to the population density and the reflectivity of each area; The preliminary lighting control strategy is determined according to the lighting illumination time and the lighting illumination color.

7. The method according to claim 6, characterized in that The step of adjusting the preliminary light control strategy according to the number of lamps and the arrangement density of the lamps to obtain a light control strategy includes: Determine the degree of light obstruction by people in the swimming pool according to the number of the lamps, the density of arrangement of the lamps and the range of the people's behavior; Determining the degree of scattering of light by the pool water according to the first water splashing degree and the light intensity; Determining the illumination intensity of the light according to the size of the personnel, the length of time the personnel stay, and the degree of fluctuation of the water surface; According to the degree of shielding and the illumination intensity of the light, the installation angle of the lamp is adjusted to obtain an adjusted installation angle of the lamp; According to the adjusted lamp installation angle and the scattering degree of the light, the current light brightness is adjusted to obtain the adjusted lamp brightness; The lighting control strategy is obtained according to the adjusted lamp installation angle and the adjusted lamp brightness.

8. An online lighting control system for a swimming pool, characterized in that: The method as claimed in any one of claims 1 to 7 comprises: A personnel information acquisition module is used to acquire a personnel behavior image, and obtain the personnel behavior amplitude, the first water splash degree and the personnel behavior type according to the personnel behavior image; A state judgment module, used for judging whether a person is in a dangerous state according to the amplitude of the person's behavior, the first water splashing degree and the type of the person's behavior; A first personnel information acquisition module, for obtaining a first personnel behavior amplitude and a first personnel behavior type within a preset range according to the personnel behavior image if the personnel is in a dangerous state; A water surface information acquisition module, used to determine the water flow speed and the degree of water surface fluctuation within the preset range according to the amplitude of the first person's behavior and the first person's behavior type; A lamp information acquisition module is used to acquire swimming pool information, and obtain the number of lamps, lamp arrangement density and current light brightness according to the swimming pool information; A control strategy determination module, used to determine the water surface light reflectivity according to the water flow speed, the current light brightness and the water surface fluctuation degree, and determine the preliminary light control strategy according to the water surface light reflectivity; The danger warning module is used to adjust the preliminary lighting control strategy according to the number of the lamps and the arrangement density of the lamps to obtain a lighting control strategy, and to issue a danger warning to personnel according to the lighting control strategy.

Citation Information

Patent Citations

  • Swimming pool safety management device and method based on multi-camera vision

    CN115690913A

  • Swimming pool drowning early warning and lifesaving system based on artificial intelligence

    CN117373206A

  • Internet of Things equipment monitoring method and system based on fusion of mechanism and mathematical model

    CN118234097A