Adjustable lighting system and method for operating room
By conducting detailed light evaluation and analysis of the surgical area, including calculations of focus illumination, spot overlap area, light gradient and transition dark area, the problem of shadow and light intensity changes caused by light changes during operating room lighting switching is solved, achieving a more uniform and stable lighting effect and reducing visual fatigue.
Patent Information
- Application Number
- CN202510524145.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-24
- Publication Date
- 2025-06-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During the switching process of operating room lighting, changes in light rays lead to changes in shadows and light intensity, interfering with the vision of medical staff and causing visual fatigue.
By focusing illuminating the surgical area, determining the highlight area and spot overlap area, calculating the light gradient and transition dark area, obtaining the color temperature of the surgical light during wide-area illumination, fusing the transition dark area to evaluate the transition smoothness, and finally evaluating the light supplementation based on the transition smoothness.
It reduces the impact of light changes during lighting switching, improves the light uniformity and field of viewing in the surgical area, and reduces visual fatigue of medical staff.
Smart Images

Figure CN120129128A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of lighting control, and more specifically, to an adjustable lighting system and method for operating rooms. Background Art
[0002] Lighting control refers to the technical means of precisely controlling parameters such as the intensity, color, distribution, and time of light sources to meet different scenarios, requirements, or environmental conditions; it is usually applied in fields such as energy conservation, improving comfort, enhancing visual experience, or optimizing work efficiency. Common lighting control technologies include automatic dimming systems, intelligent lighting control, ambient lighting, and sensor-based adaptive light control.
[0003] Operating room lighting is a technology specifically designed to meet the high requirements for lighting quality and precision during surgical procedures. It not only needs to provide sufficient brightness but also ensure uniform light distribution, no shadows, and avoid generating excessive heat and reflections. When adjusting the lighting in existing operating rooms, generally, the color temperature of the light source is adjusted to avoid excessive heat generated by the light, or the angle and height of the lighting are adjusted to ensure sufficient light in the surgical area. However, during the surgical process, as the surgery progresses, the surgical area gradually becomes larger, and the lighting needs to switch from focused lighting to wide-area lighting. However, the shadows and changes in light intensity caused by the light changes during the lighting switch will interfere with the vision of medical staff and cause visual fatigue. Therefore, it is necessary to evaluate the adjustable lighting in the operating room to reduce the impact caused by the light changes during the lighting switch. Summary of the Invention
[0004] This application provides an adjustable lighting system and method for operating rooms, which can reduce the impact caused by light changes during the lighting switch.
[0005] In a first aspect, this application provides an adjustable lighting evaluation method for operating rooms, including the following steps: Perform focused lighting on the surgical area to determine multiple high-brightness areas in the surgical area during focused lighting; Determine the light spot overlap area of each surgical lamp under the interference of light according to the focusing characteristics of the light in each high-brightness area; Determine the light intensity gradient of each high-brightness area when the light switches from local focus to wide-area lighting, and determine the transition dark area formed by the light of each surgical lamp switching from the focused state to the diffused state according to all the light spot overlap areas and all the light intensity gradients; Obtain the color temperature of each surgical lamp during wide-area lighting, and fuse all the transition dark areas according to all the color temperatures and the diffused state of each lamp during wide-area lighting, so as to obtain the transition smoothness when the light switches from focused lighting to wide-area lighting; Evaluate the light supplement of the light when switching from focused illumination to wide - area illumination based on the transition smoothness.
[0006] In some embodiments, determining multiple highlighted regions of the surgical area during focused illumination specifically includes: Obtain an illumination image of the focused illumination area; Divide the illumination image to obtain multiple divided image blocks; Determine the brightness threshold of the illumination image; Determine multiple highlighted regions of the surgical area according to the brightness threshold and all the divided image blocks.
[0007] In some embodiments, determining the spot overlap area of each surgical lamp under light interference according to the focusing characteristics of the light in each highlighted region specifically includes: Obtain the illumination intensity when the light is focused in each highlighted region; Determine the focusing characteristics of the light in each highlighted region; Determine the light intensity loss of each highlighted region under light interference according to all the illumination intensities; Determine the spot overlap area of each surgical lamp under light interference according to all the light intensity losses and all the focusing characteristics.
[0008] In some embodiments, determining the illumination gradient of each highlighted region when the light switches from local focus to wide - area illumination specifically includes: Select a highlighted region as the selected highlighted region, and determine the illumination diffusion degree of the selected highlighted region during wide - area illumination; Determine the illumination gradient of the selected highlighted region when switching from local focus to wide - area illumination according to the illumination diffusion degree of the selected highlighted region and the light focusing characteristics of the selected highlighted region; Continue to determine the illumination gradients of the remaining highlighted regions.
[0009] In some embodiments, determining the transition dark area formed when the light of each surgical lamp switches from the focused state to the diffused state according to all the spot overlap areas and all the illumination gradients specifically includes: Determine the diffused state of the light of each surgical lamp during wide - area illumination; Determine multiple shadow boundaries formed during the process of the light switching from the focused state to the diffused state according to all the diffused states and all the spot overlap areas; Extend all the shadow boundaries through all the illumination gradients; Determine the transition dark area formed when the light of each surgical lamp switches from the focused state to the diffused state according to all the extended shadow boundaries.
[0010] In some embodiments, fusing all the transitional dark areas according to all the color temperatures and the diffusion states of each light during wide - area illumination, and then obtaining the transition smoothness when the light switches from focused illumination to wide - area illumination specifically includes: Select a surgical lamp as the selected surgical lamp; Determine multiple shadow intensities of the transitional dark area corresponding to the selected surgical lamp according to the diffusion state of the selected surgical lamp during wide - area illumination and the color temperature of the selected surgical lamp; Continue to determine multiple shadow intensities of the transitional dark areas corresponding to the remaining surgical lamps; Fuse all the transitional dark areas according to all the shadow intensities and determine the transition smoothness when the light switches from focused illumination to wide - area illumination based on all the fused transitional dark areas.
[0011] In some embodiments, evaluating the light supplementation situation of the light when switching from focused illumination to wide - area illumination based on the transition smoothness specifically includes: Determine a compensation threshold for regulating the illumination light during surgery; Compare the transition smoothness with the compensation threshold; If the transition smoothness is less than the compensation threshold, evaluate the light supplementation situation of each current surgical lamp as unqualified and adjust the light brightness of each surgical lamp according to the transition smoothness; If the transition smoothness is greater than or equal to the compensation threshold, evaluate the light supplementation situation of each current surgical lamp as qualified and maintain the illumination situation of each surgical lamp.
[0012] In a second aspect, the present application provides an adjustable lighting system for an operating room. The adjustable lighting system for the operating room includes an illumination evaluation unit, and the illumination evaluation unit includes: An acquisition module, configured to perform focused illumination on the surgical area and determine multiple high - light areas in the surgical area during focused illumination; A processing module, configured to determine the light spot overlapping area of each surgical lamp under the interference of light according to the focusing characteristics of the light in each high - light area; The processing module is further configured to determine the illumination gradient of each high - light area when the light switches from local focusing to wide - area illumination, and determine the transitional dark areas formed by the light of each surgical lamp switching from the focused state to the diffused state according to all the light spot overlapping areas and all the illumination gradients; The processing module is further configured to obtain the color temperature of each surgical lamp during wide - area illumination, fuse all the transitional dark areas according to all the color temperatures and the diffusion states of each light during wide - area illumination, and then obtain the transition smoothness when the light switches from focused illumination to wide - area illumination; An execution module, configured to evaluate the light supplement situation of the light when the light switches from focused illumination to wide-area illumination based on the transition smoothness.
[0013] In a third aspect, the present application provides a computer device, which includes a memory and a processor. The memory stores code, and the processor is configured to obtain the code and execute the above-mentioned adjustable lighting evaluation method for an operating room.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned adjustable lighting evaluation method for an operating room.
[0015] The technical solutions provided by the embodiments disclosed in the present application have the following beneficial effects: In the adjustable lighting system for an operating room provided by the present application, first, focused illumination is performed on the surgical area to determine multiple high-brightness areas in the surgical area during focused illumination; the spot overlap areas of each surgical lamp under the interference of light are determined according to the focusing characteristics of the light in each high-brightness area; the illumination gradient of each high-brightness area when the light switches from local focus to wide-area illumination is determined, and the transition dark areas formed by the light of each surgical lamp switching from the focused state to the diffused state are determined according to all the spot overlap areas and all the illumination gradients; the color temperature of each surgical lamp during wide-area illumination is obtained, and all the transition dark areas are fused according to all the color temperatures and the diffused state of each light during wide-area illumination, so as to obtain the transition smoothness when the light switches from focused illumination to wide-area illumination; the light supplement situation of the light when the light switches from focused illumination to wide-area illumination is evaluated based on the transition smoothness.
[0016] It can be seen that in the adjustable lighting evaluation method for operating rooms of the present application, first, focused lighting is performed on the surgical area to determine multiple high-brightness areas in the surgical area during focused lighting; according to the focusing characteristics of the light in each high-brightness area, the light spot overlapping areas of each surgical lamp are determined under the interference of light, and the light spot overlapping areas are used to evaluate the distribution of the light of each surgical lamp during focusing, facilitating the optimization of the light distribution of the surgical lamp; secondly, the light intensity gradient of each high-brightness area when the light changes from local focusing to wide-area lighting is determined, and the light intensity gradient is the gradient of the change in light intensity when the light changes from local focusing to wide-area lighting, facilitating the analysis of the shadow formed by the light during the switching process. Furthermore, according to all the light spot overlapping areas and all the light intensity gradients, the transition dark areas formed when the light of each surgical lamp changes from the focused state to the diffused state are determined. The transition dark areas refer to the shadows or dark areas generated due to the change in light intensity during the process of the light of the surgical lamp changing from focused lighting to wide-area lighting, and are used to analyze the light change situation of each surgical lamp during switching, facilitating subsequent adjustment of the light transition during the lamp switching process; the color temperature of each surgical lamp during wide-area lighting is obtained, and all the transition dark areas are fused according to all the color temperatures and the diffusion state of each lamp during wide-area lighting, and then the transition smoothness when the light changes from focused lighting to wide-area lighting is obtained; based on the transition smoothness, the light supplement situation of the light when the light changes from focused lighting to wide-area lighting is evaluated. The above solution can reduce the influence caused by the change in light during the lighting switching process. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is an exemplary flowchart of an adjustable lighting evaluation method for operating rooms shown in some embodiments of the present application; Figure 2 is an exemplary flowchart of determining the light spot overlapping area shown in some embodiments of the present application; Figure 3 is a schematic diagram of dividing image blocks shown in some embodiments of the present application; Figure 4 is a schematic structural diagram of a lighting evaluation unit shown in some embodiments of the present application; Figure 5 is a schematic structural diagram of a computer device for implementing the adjustable lighting evaluation method for operating rooms shown in some embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0018] In order to better understand the above technical solutions, the above technical solutions will be described in detail below in conjunction with the accompanying drawings of the specification and specific embodiments.
[0019] Reference Figure 1, This figure is an exemplary flowchart of an adjustable lighting evaluation method for an operating room according to some embodiments of the present application. The adjustable lighting evaluation method 100 for an operating room mainly includes the following steps: In step 101, perform focused lighting on the surgical area and determine multiple high-brightness areas in the surgical area during focused lighting.
[0020] In some embodiments, determining multiple high-brightness areas in the surgical area during focused lighting can be achieved by the following steps: Obtain an illumination image of the focused lighting area; Divide the illumination image to obtain multiple divided image blocks; Determine the brightness threshold of the illumination image; Determine multiple high-brightness areas in the surgical area according to the brightness threshold and all the divided image blocks.
[0021] Specifically, when implementing, start the lighting system, adjust the beam angle of the surgical lamp so that the light of the surgical lamp is focused on the surgical area to achieve focused lighting on the surgical area, and collect the illumination image of the focused lighting area through an image acquisition device (such as a CCD sensor). In other embodiments, other methods can also be used to obtain it, which will not be elaborated here.
[0022] Specifically, when implementing, dividing the illumination image to obtain multiple divided image blocks can be achieved by the following method, that is: obtain the resolution of the illumination image from the operating room lighting system, perform a base-10 logarithmic operation on the vertical resolution in the resolution, use the value obtained from the logarithmic operation as the width threshold, perform a base-10 logarithmic operation on the horizontal resolution in the resolution, use the value obtained from the logarithmic operation as the height threshold, and uniformly divide the illumination image through the width threshold and the height threshold to obtain multiple divided image blocks. For example, refer to Figure 3As described above, the width threshold is used as the width of each divided image block, and the length threshold is used as the length of each divided image block. The divided image blocks are the image blocks obtained by dividing the illumination image. The brightness threshold of the illumination image can be determined in the following way: that is, by using image processing techniques (such as Gray Level Co-occurrence Matrix GLCM) to calculate the gray values of each divided image block, taking each gray value as the brightness value of the corresponding divided image block, and taking the average value of all brightness values as the brightness threshold of the illumination image. Here, the brightness threshold is the threshold for distinguishing different brightness regions in the illumination image. Determining multiple high-brightness regions of the surgical area according to the brightness threshold and all the divided image blocks can be achieved in the following way: taking the pixel point at the upper left corner of the illumination image as the origin, taking the width of the illumination image as the horizontal axis, and taking the height of the illumination image as the vertical axis, combining the above origin, horizontal axis and vertical axis to obtain the coordinates of the center positions of all divided image blocks with brightness values greater than or equal to the brightness threshold. Here, the coordinates are two-dimensional coordinates, including the horizontal axis coordinate and the vertical axis coordinate. By using a search algorithm (such as the breadth-first algorithm), multiple divided image blocks with adjacent coordinates are identified from all divided image blocks with brightness values greater than or equal to the brightness threshold, and each divided image block and all its adjacent divided image blocks are merged into one region, and all the merged regions are used as the high-brightness regions of the illumination area. Here, one high-brightness region corresponds to one surgical lamp. In other embodiments, other methods can also be used to determine, which are not limited here.
[0023] It should be noted that the high-brightness regions in this application are the regions with high brightness values in the illumination image, which are used to analyze the high-brightness regions in the illumination image, so as to facilitate the subsequent analysis of the shadows caused by the light changes during the illumination switching process.
[0024] In step 102, according to the focusing characteristics of the light in each high-brightness region, the light spot overlapping regions of each surgical lamp under the interference of light are determined.
[0025] In some embodiments, refer to Figure 2 As shown in the figure, which is a schematic flowchart of determining the light spot overlapping region in some embodiments of this application. In this embodiment, determining the light spot overlapping regions of each surgical lamp under the interference of light according to the focusing characteristics of the light in each high-brightness region can be achieved by the following steps: First, in step 1021, obtain the illumination intensity when the light is focused in each high-brightness region; Secondly, in step 1022, determine the focusing characteristics of the light in each high-brightness region; Furthermore, in step 1023, according to all the illumination intensities, determine the light intensity loss of each high-brightness region under the interference of light; Finally, in step 1024, the spot overlapping areas of each surgical lamp under the interference of light rays are determined based on all light intensity losses and all focusing features.
[0026] When specifically implemented, the focusing features of the light rays in each highlighted area can be determined in the following manner: select a highlighted area as the selected highlighted area, obtain the focus point and focus radius of the selected highlighted area through image processing techniques (such as the image contour method), fit the shape of the selected highlighted area into a circle, and use the above circle as the spot pattern of the selected highlighted area during focusing. Among them, the focus radius is the radius of the area where the light rays are focused, the focus point is the point with the highest light intensity of the light rays in the selected highlighted area, the spot image is the pattern formed after the light rays are focused or scattered, and the set composed of the focus point, focus radius, and spot pattern is used as the focusing feature of the light rays in the selected highlighted area. Among them, the focusing feature is the state feature of the light rays during focusing. Then continue to determine the focusing features of the light rays in the remaining highlighted areas; in other embodiments, other methods can also be used for determination, which is not limited here.
[0027] When specifically implemented, the light intensity loss of each highlighted area under the interference of light rays can be determined based on all light intensities in the following manner: select a highlighted area as the selected highlighted area, divide the focus radius corresponding to the selected highlighted area by 2, perform an exponential operation with the opposite of the square of the obtained value as the exponent and the natural number as the base, add 1 to the opposite of the value obtained from the exponential operation, then multiply the added value by the maximum light intensity among all light intensities, subtract the light intensity of the selected highlighted area from the multiplied value, and use the subtracted value as the light intensity loss of the selected highlighted area. Then continue to determine the light intensity losses of the remaining highlighted areas. Among them, the light intensity loss is a parameter value describing the degree of loss of the light intensity of the lamp; in other embodiments, other methods can also be used for determination, which is not limited here.
[0028] In specific implementation, to determine the spot overlap area of each surgical lamp under the interference of light rays based on all light intensity losses and all focusing features, the following method can be adopted, that is: select a high-brightness area as the selected high-brightness area, select a high-brightness area from the remaining high-brightness areas as the comparison high-brightness area, add the square of the center distance between the selected high-brightness area and the comparison high-brightness area and the square of the focusing radius of the selected high-brightness area, where the center distance is the straight-line distance between the center coordinates of the selected high-brightness area and the comparison high-brightness area, subtract the square of the focusing radius of the comparison high-brightness area from the added value, divide the subtracted value by the product of the focusing radius of the selected high-brightness area and the center distance, perform a cosine operation on the divided value, multiply the reciprocal of the cosine operation by the square of the focusing radius of the selected high-brightness area to obtain a second value, add the square of the center distance and the square of the focusing radius of the comparison high-brightness area, subtract the square of the focusing radius of the selected high-brightness area from the added value, divide the subtracted value by the product of the focusing radius of the comparison high-brightness area and the center distance, perform a cosine operation on the divided value, multiply the reciprocal of the cosine operation by the square of the focusing radius of the comparison high-brightness area, multiply the multiplied value by the reciprocal of the light intensity loss of the selected high-brightness area, and then take the multiplied value as the overlapping area of the selected high-brightness area and the comparison high-brightness area. Connect the center coordinates of the selected high-brightness area and the comparison high-brightness area, and take the midpoint of the connected line segment as the overlap center. Among them, the overlapping area is the area of the overlapping part of the spot patterns of the selected high-brightness area and the comparison high-brightness area, and the overlap center is the center of the overlapping part of the spot patterns of the selected high-brightness area and the comparison high-brightness area. Take the overlapping area as the area of the spot overlap area to obtain the spot overlap area of the surgical lamp corresponding to the selected high-brightness area and the surgical lamp corresponding to the comparison high-brightness area, and continue to determine the spot overlap area of the surgical lamp corresponding to the remaining high-brightness areas; in other embodiments, other methods can also be used to determine, which are not limited here.
[0029] It should be noted that the spot overlap area in this application refers to the area where the spots overlap when the light emitted by multiple surgical lamps irradiates the same area, which is used to evaluate the distribution of the light of each surgical lamp during focusing, facilitate subsequent optimization of the light distribution of the surgical lamp, and avoid light intensity loss.
[0030] In step 103, determine the light intensity gradient of each high-brightness area when the light changes from local focusing to wide-area illumination, and determine the transition dark area formed when the light rays of each surgical lamp switch from the focusing state to the diffusion state based on all the spot overlap areas and all the light intensity gradients.
[0031] In some embodiments, the following steps can be adopted to determine the light intensity gradient of each high-brightness area when the light changes from local focusing to wide-area illumination: Select a highlighted area as the selected highlighted area, and determine the light diffusion degree of the selected highlighted area during wide-area illumination; Determine the light gradient of the selected highlighted area when switching from local focusing to wide-area illumination according to the light diffusion degree of the selected highlighted area and the light focusing characteristics of the selected highlighted area; Continue to determine the light gradients of the remaining highlighted areas.
[0032] In specific implementation, the light diffusion degree of the selected highlighted area during wide-area illumination can be implemented in the following way, that is: obtain the historical light intensity of the operating lamp corresponding to the selected highlighted area during wide-area illumination from the control system of the operating lamp, subtract the light intensity of the operating lamp corresponding to the selected highlighted area during focusing from the light intensity of the operating lamp corresponding to the selected highlighted area during wide-area illumination to obtain a first value, use the selected highlighted area as the integration range, perform an integration operation on the distance by combining the absolute value of the first value as the integration function with the integration range, and use the value obtained from the integration operation as the light diffusion degree of the selected highlighted area during wide-area illumination, where the light diffusion degree is a parameter value describing the diffusion degree of the light of the operating lamp for the highlighted area under wide-area illumination; in other embodiments, it can also be determined by other methods, which are not limited here.
[0033] In specific implementation, the light gradient of the selected highlighted area when switching from local focusing to wide-area illumination can be determined according to the light diffusion degree of the selected highlighted area and the light focusing characteristics of the selected highlighted area in the following way, that is: initialize a light gradient model, use the light diffusion degree of the selected highlighted area as the constraint parameter of the light gradient model, use the light focusing characteristics of the selected highlighted area as the initialization parameter of the light gradient model, and then obtain the light gradient of the selected highlighted area when switching from local focusing to wide-area illumination through the light gradient model, where the light gradient model is a model of the light gradient established using machine learning algorithms (such as decision trees, neural networks, etc.), and the model is for example: the light gradient of the selected highlighted area = the light diffusion degree of the selected highlighted area * A + the light focusing characteristics of the selected highlighted area * B, where A and B are weight coefficients, and A and B can be determined according to a large number of light gradients; in other embodiments, other methods can also be used to determine, which are not limited here.
[0034] It should be noted that the light gradient in this application is the gradient of the light intensity change when the light switches from local focusing to wide-area illumination, including the change gradients of the light intensity in the horizontal and vertical directions, and is composed of a horizontal axis gradient vector and a vertical axis gradient vector, which is used to reflect the distribution, change, and transition process of the light of each light in the horizontal and vertical directions of space during the switching, and is convenient for subsequent analysis of the shadows formed by the lights during the switching process.
[0035] In some embodiments, to determine the transition dark areas formed when the light of each surgical lamp switches from the focused state to the diffused state based on all the light spot overlapping areas and all the illumination gradients, the following steps can be adopted: Determine the diffused state of the light of each surgical lamp during wide-area illumination; Based on all the diffused states and all the light spot overlapping areas, determine multiple shadow boundaries formed during the process of the light switching from the focused state to the diffused state; Extend all the shadow boundaries through all the illumination gradients; Based on all the extended shadow boundaries, determine the transition dark areas formed when the light of each surgical lamp switches from the focused state to the diffused state.
[0036] In specific implementation, the diffused state of the light of each surgical lamp during wide-area illumination can be determined in the following manner: select a surgical lamp as the selected surgical lamp, and obtain the light attenuation degree and the diffusion angle of the light of the selected surgical lamp during wide-area illumination from the database of the operating room lighting system. Here, the diffusion angle is the angle of the light of the surgical lamp during diffusion, and the light attenuation degree is the parameter value of the attenuation degree of the illumination of the surgical lamp during diffusion. Take the set composed of the light attenuation degree and the diffusion angle as the diffused state of the light of the selected surgical lamp during wide-area illumination. Here, the diffused state refers to the characteristic state of the scattering and diffusion of the light during wide-area illumination, and then continue to determine the diffused states of the remaining surgical lamps; in other embodiments, other methods can also be used to determine, which are not limited here.
[0037] When specifically implemented, determining multiple shadow boundaries formed during the process of the light beam switching from the focused state to the diffused state based on all the diffusion states and all the light spot overlapping regions can be achieved by the following method: Select one operating lamp as the selected operating lamp, and select one operating lamp from the remaining operating lamps as the comparison operating lamp. If the selected operating lamp and the comparison operating lamp are judged, and there is a light spot overlapping region between the selected operating lamp and the comparison operating lamp, then initialize a coordinate model of the shadow boundary, and use the focusing radius and the focusing center of the light spot overlapping region between the selected operating lamp and the comparison operating lamp as the initialization parameters of the coordinate model of the shadow boundary, and use the diffusion state of the selected operating lamp and the diffusion state of the comparison operating lamp as the constraint parameters of the coordinate model of the shadow boundary. Then, through the coordinate model of the shadow boundary, obtain the coordinates of multiple shadow boundaries formed by the light beams of the selected operating lamp and the comparison operating lamp during the switching process. Among them, the coordinate model of the shadow boundary is a model of the coordinates of the shadow boundary established using machine learning algorithms (such as decision trees, neural networks, etc.). The model is, for example: Coordinates of the shadow boundary = Focusing radius and focusing center of the light spot overlapping region between the selected operating lamp and the comparison operating lamp * C + Diffusion state of the selected operating lamp and diffusion state of the comparison operating lamp * D, where C and D are weight coefficients, and C and D can be determined according to the coordinates of a large number of shadow boundaries. Connect all the obtained boundary coordinates with a smooth curve, and use the connected curve as the shadow boundary formed by the light beams of the selected operating lamp and the comparison operating lamp during the switching process. Continue to determine the shadow boundary between the selected operating lamp and the remaining operating lamps. Among them, the shadow boundary is the demarcation line between the shadow area and the non-shadow area generated during the lighting of the lamp. Continue to determine the shadow boundaries of the remaining operating lamps; in other embodiments, other methods can also be used for determination, which are not limited here.
[0038] When specifically implemented, the extension of all shadow boundaries by all illumination gradients can be achieved in the following manner, that is: by using image moment technology (such as edge detection algorithms) combined with the diffusion angles in the diffusion states of each surgical lamp to obtain the shadow centers and shadow radii of each shadow boundary. Among them, the shadow center is the center of the figure enclosed by the shadow boundary, and the shadow radius is the distance from the shadow center to the shadow boundary. All shadow centers are used as nodes. Select any two nodes as the selected two nodes. Square the difference between the abscissas of the selected two nodes and add it to the square of the difference between the ordinates of the selected two nodes. Take the square root of the added value as the center distance between the selected two nodes. Among them, the center distance is the distance between the shadow centers corresponding to the selected two nodes. If the center distance between the selected two nodes is less than or equal to the sum of the shadow radii of the selected two nodes, then take the center distance between the selected two nodes as the edge connecting the selected two nodes. Continue to connect the remaining nodes. Select two connected nodes from all the connected nodes. Take one node as the root node and the other node as the comparison node. Add the horizontal gradient vectors in the illumination gradients of the two surgical lamps corresponding to the root node. Multiply the obtained result by the average value of the illumination intensities of the two surgical lamps corresponding to the root node to obtain the first vector. Add the vertical gradient vectors in the illumination gradients of the two surgical lamps corresponding to the root node. Multiply the obtained result by the average value of the illumination intensities of the two surgical lamps corresponding to the root node to obtain the second vector. Perform an inner product operation on the first vector and the second vector. Multiply the result of the inner product operation by the shadow radius corresponding to the selected node. Perform a vector modulus operation on the obtained result. Subtract the average value of all the brightness values of the two highlighted regions corresponding to the root node from the value obtained by the modulus operation to obtain the first value. If the absolute value of the first value is less than or equal to 0.1, then connect the shadow center corresponding to the selected node and the shadow center corresponding to the comparison node. Take the direction of the connected line segment as the extension direction and extend the shadow radius corresponding to the selected node by the length of a divided image block. Repeat the above process until the shadow radius corresponding to the selected node extends to the shadow center of the comparison node or the absolute value of the above first value is greater than 0.1. Use image moment technology (such as edge detection algorithms) combined with the extended shadow radius and the shadow center corresponding to the selected node to obtain the extended shadow boundary of the surgical lamp corresponding to the selected node. Take the comparison node as the new root node and repeat the above process until the shadow boundaries of all nodes corresponding to the surgical lamps are extended; in other embodiments, other methods can also be used to determine, which are not limited here.
[0039] In specific implementation, according to all the extended shadow boundaries, the transition dark areas formed when the light of each surgical lamp switches from the focused state to the diffused state can be implemented in the following manner, that is: select a node as the selected node, and use the area enclosed by the extended shadow boundary corresponding to the selected node as the transition dark area formed when the light of the surgical lamp corresponding to the selected node switches from the focused state to the diffused state, and continue to determine the transition dark areas of the remaining nodes corresponding to the surgical lamps; in other embodiments, other methods can also be used to determine, which are not limited here.
[0040] It should be noted that the transition dark area in this application refers to the shadow or dark area generated due to the change in light intensity during the process of the light of the surgical lamp switching from focused illumination to wide-area illumination, which is used to analyze the light change situation of each surgical lamp during the switching, so as to facilitate subsequent adjustment of the unnatural light transition during the lamp switching process.
[0041] In step 104, obtain the color temperature of each surgical lamp during wide-area illumination, and fuse all the transition dark areas according to all the color temperatures and the diffusion states of each lamp during wide-area illumination, so as to obtain the transition smoothness when the light switches from focused illumination to wide-area illumination.
[0042] In specific implementation, configure an optical sensor (such as an RGB sensor) in each surgical lamp, and obtain the color temperature of each surgical lamp under the wide-area illumination condition through the optical sensor. The color temperature is a measure of the similarity between the color of the light of the surgical lamp and the color of the radiation light at the current temperature. In other embodiments, other methods can also be used to obtain it, which will not be elaborated here.
[0043] It should be noted that one surgical lamp in this application corresponds to one transition dark area.
[0044] In some embodiments, fusing all the transition dark areas according to all the color temperatures and the diffusion states of each lamp during wide-area illumination, and then obtaining the transition smoothness when the light switches from focused illumination to wide-area illumination can be implemented by the following steps: Select a surgical lamp as the selected surgical lamp; Determine multiple shadow intensities of the transition dark area corresponding to the selected surgical lamp according to the diffusion state of the selected surgical lamp during wide-area illumination and the color temperature of the selected surgical lamp; Continue to determine multiple shadow intensities of the transition dark areas corresponding to the remaining surgical lamps; Fuse all the transition dark areas according to all the shadow intensities and determine the transition smoothness when the light switches from focused illumination to wide-area illumination according to all the fused transition dark areas.
[0045] When specifically implemented, determining the multiple shadow intensities of the corresponding transition dark area of the selected operating lamp according to the diffusion state of the selected operating lamp during wide-area illumination and the color temperature of the selected operating lamp can be achieved by the following method, that is: multiply the area of the corresponding transition dark area of the selected operating lamp by 10, perform a logarithm operation with base 2 on the obtained multiplied value, use the value obtained from the logarithm operation as the area threshold, evenly divide the corresponding transition dark area of the selected operating lamp through the area threshold, and regard each divided module as a divided module. Among them, use the area threshold as the area of each divided module, select a divided module as the selected divided module, add the square of the abscissa and the square of the ordinate of the center point of the selected divided module, multiply the square root of the obtained added value by the light attenuation degree in the corresponding diffusion state of the selected operating lamp, perform an exponential operation with a natural number as the base on the opposite number of the obtained multiplied value, add 1 to the value obtained from the exponential operation, multiply the obtained added value by the color temperature of the selected operating lamp, and use the obtained multiplied value as the shadow intensity of the selected divided module. Then continue to determine the shadow intensities of the remaining divided modules. Among them, the shadow intensity is a parameter value describing the degree of light brightness attenuation in the transition dark area; in other embodiments, other methods can also be used for determination, which are not limited here.
[0046] In specific implementation, the fusion of all transition dark areas can be performed according to all shadow intensities, and the transition smoothness when the light switches from focused illumination to wide-area illumination can be determined based on all the fused transition dark areas in the following manner: Select any two transition dark areas as the selected two transition dark areas, connect the centroids of the selected two transition dark areas, and determine the distance between the centroids of the selected two transition dark areas and the radii of the selected two transition dark areas in the connection direction of the centroids of the selected two transition dark areas through mathematical modeling techniques (such as MATLAB). Judge the above distance. If the above distance is greater than the sum of the two radii, the selected two transition dark areas are not fused. If the above distance is less than or equal to the sum of the two radii, select any two division modules from the selected two transition dark areas as the selected two division modules, judge the difference in shadow intensity between the selected two division modules. If the difference is less than 0.1, combine the selected two division modules into a new division module, and use the average value of the shadow intensities of the selected two division modules as the shadow intensity of the new division module, and continue to judge the remaining division modules in the selected two transition dark areas, so as to realize the fusion of the selected two transition dark areas, and continue to judge and fuse the remaining transition dark areas; Select a fused transition dark area as the selected transition dark area, add the shadow intensities of the division modules containing edges in the selected transition dark area to obtain a first value, add the shadow intensities of the division modules not containing edges in the selected transition dark area, perform a logarithm operation with base 2 on the added value, add the value obtained from the logarithm operation to the first value, divide the added value by 2, and use the obtained value as the transition smoothness component of the selected transition dark area. Among them, the transition smoothness component is a parameter value describing the smoothness of the light transition in the selected transition dark area. Continue to determine the transition smoothness components of the remaining fused transition dark areas, perform a logarithm operation with base 2 on the average value of all transition smoothness components, divide the value obtained from the logarithm operation by the maximum transition smoothness component among all transition smoothness components, multiply the obtained value by 2, and use the obtained value as the transition smoothness when the light switches from focused illumination to wide-area illumination. In other embodiments, other methods can also be used to determine, which is not limited here.
[0047] It should be noted that the transition smoothness in this application is a parameter value describing the natural degree of light change, which is used to reflect the natural change of light when the light switches from focused illumination to wide-area illumination, and is convenient for subsequent regulation of the light illumination during the switching process.
[0048] In step 105, the light illumination supplement situation when the light switches from focused illumination to wide-area illumination is evaluated based on the transition smoothness.
[0049] In some embodiments, the evaluation of the light illumination supplement situation when the light switches from focused illumination to wide-area illumination based on the transition smoothness can be implemented by the following steps: Determine the compensation threshold for adjusting the illumination light during the operation; Compare the transition smoothness with the compensation threshold; If the transition smoothness is less than the compensation threshold, evaluate the current light supplement situation of each operating lamp as unqualified and adjust the light brightness of each operating lamp according to the transition smoothness; If the transition smoothness is greater than or equal to the compensation threshold, evaluate the current light supplement situation of each operating lamp as qualified and maintain the illumination situation of each operating lamp.
[0050] When specifically implemented, adjusting the light brightness of each operating lamp according to the transition smoothness can be achieved in the following manner: collect the light brightness of each operating lamp during focused illumination through a light photometer. The light brightness is a parameter value describing the brightness of the operating lamp light. Select an operating lamp as the selected operating lamp, compare the light brightness of the selected operating lamp with the average value of all light brightnesses. If the light brightness of the selected operating lamp is less than the average value of all light brightnesses, add the light brightness of the selected operating lamp and the transition smoothness, and use the obtained value as the updated light brightness of the selected operating lamp. If the light brightness of the selected operating lamp is equal to the average value of all light brightnesses, do nothing. If the light brightness of the selected operating lamp is greater than the average value of all light brightnesses, subtract the transition smoothness from the light brightness of the selected operating lamp, and use the obtained value as the updated light brightness of the selected operating lamp. Continue to update the light brightness of the remaining operating lamps, and use all the obtained updated light brightnesses as the light brightness of each operating lamp during wide-area illumination; in other embodiments, it can also be implemented in other ways, which are not limited here.
[0051] It should be noted that the compensation threshold in this application can be set according to the specific lighting requirements of the operating room. If it is necessary to adjust the lights in the operating room in a timely manner, the compensation threshold can be set within a smaller range. If it is necessary to reduce the interference of the light adjustment in the operating room, the compensation threshold can be set within a larger range. For another example, when the lighting situation is quickly switched, the compensation threshold can be set within a low range to improve the feasibility of the lighting adjustment system. In other embodiments, it can also be implemented in other ways, which will not be elaborated here.
[0052] In addition, on the other hand of this application, in some embodiments, this application provides an adjustable lighting system for an operating room. The adjustable lighting system for the operating room includes an illumination evaluation unit. Refer to Figure 4 , this figure is a schematic structural diagram of the illumination evaluation unit according to some embodiments of this application. The illumination evaluation unit 400 includes: a collection module 401, a processing module 402, and an execution module 403, which are described as follows: The acquisition module 401. In this application, the acquisition module 401 is mainly used to perform focused illumination on the surgical area and determine multiple highlighted areas in the surgical area during focused illumination. The processing module 402. In this application, the processing module 402 is used to determine the spot overlap area of each surgical lamp under the interference of light according to the focusing characteristics of the light in each highlighted area. It should be noted that in this application, the processing module 402 is also used to determine the illumination gradient of each highlighted area when the light switches from local focus to wide-area illumination, and determine the transition dark area formed by the light of each surgical lamp switching from the focused state to the diffused state according to all the spot overlap areas and all the illumination gradients. In addition, it should be noted that in this application, the processing module 402 is also used to obtain the color temperature of each surgical lamp during wide-area illumination, and fuse all the transition dark areas according to all the color temperatures and the diffusion state of each lamp during wide-area illumination, so as to obtain the transition smoothness when the light switches from focused illumination to wide-area illumination. The execution module 403. In this application, the execution module 403 is mainly used to evaluate the light supplement situation of the light when it switches from focused illumination to wide-area illumination based on the transition smoothness.
[0053] In addition, this application also provides a computer device, which includes a memory and a processor. The memory stores code, and the processor is configured to obtain the code and execute the above-mentioned adjustable lighting evaluation method for the operating room.
[0054] In some embodiments, refer to Figure 5 , this figure is a schematic structural diagram of a computer device for implementing the adjustable lighting evaluation method for the operating room according to some embodiments of this application. The adjustable lighting evaluation method for the operating room in the above embodiments can be implemented by Figure 5 the computer device shown. This computer device 500 includes at least one processor 501, a communication bus 502, a memory 503, and at least one communication interface 504.
[0055] The processor 501 can be a general-purpose central processing unit (CPU) or an application-specific integrated circuit (ASIC).
[0056] The communication bus 502 can be used to transmit information between the above components.
[0057] The memory 503 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), or other types of dynamic storage devices that can store information and instructions. It can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disks, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 503 can exist independently and be connected to the processor 501 through the communication bus 502. The memory 503 can also be integrated with the processor 501.
[0058] Among them, the memory 503 is used to store the program code for executing the solution of this application and is controlled by the processor 501 for execution. The processor 501 is used to execute the program code stored in the memory 503. The program code can include one or more software modules. The methods used in the above embodiments can be implemented by one or more software modules in the program code of the processor 501 and the memory 503.
[0059] The communication interface 504 uses any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0060] In a specific implementation, as an embodiment, the computer device can include multiple processors, and each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. Here, the processor can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0061] The computer device described above can be a general-purpose computer device or a special-purpose computer device. In specific implementations, the computer device can be a desktop computer, a laptop computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device. The embodiments of the present application do not limit the type of the computer device.
[0062] In addition, the present application also provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the adjustable lighting evaluation method for an operating room described above is implemented.
[0063] Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications once they learn the basic creative concepts. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications falling within the scope of the present application.
[0064] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims
1. A method for evaluating adjustable lighting for an operating room, characterized in that: The method comprises the following steps: Performing focused illumination on the surgical area and determining multiple highlight areas of the surgical area during focused illumination; Determine the overlapping area of the light spots of each surgical lamp under the mutual interference of light according to the focusing characteristics of the light in each highlight area; Determine the illumination gradient of each highlight area when the light switches from local focus to wide-area illumination, and determine the transitional dark area formed when the light of each surgical lamp switches from a focus state to a diffuse state based on all light spot overlap areas and all illumination gradients; Obtain the color temperature of each surgical lamp in wide-area lighting, merge all transition dark areas according to all color temperatures and the diffusion state of each light in wide-area lighting, and then obtain the transition smoothness when the light switches from focused lighting to wide-area lighting; The lighting complement of the light when the light switches from focused lighting to wide-area lighting is evaluated based on the transition smoothness.
2. The method according to claim 1, characterized in that When determining focused illumination, the multiple highlighted areas of the surgical area specifically include: acquiring an illumination image of the focused illumination area; Dividing the illumination image to obtain a plurality of divided image blocks; determining a brightness threshold of the illumination image; A plurality of highlight areas of the surgical area are determined according to the brightness threshold and all the divided image blocks.
3. The method according to claim 1, characterized in that According to the focusing characteristics of the light in each highlight area, the overlapping areas of the light spots of each surgical lamp under the mutual interference of light are determined to include: Get the light intensity when the light is focused in each highlight area; Determine the focusing characteristics of light in each highlighted area; Determine the light intensity loss of each highlight area due to mutual interference of light based on all light intensities; The overlapping area of the light spots of each surgical lamp under the mutual interference of light is determined based on all light intensity losses and all focusing characteristics.
4. The method according to claim 1, characterized in that Determine the lighting gradient of each highlight area when the light switches from local focus to wide-area lighting. Specifically include: Select a highlight area as a selected highlight area, and determine the illumination diffusion of the selected highlight area under wide-area illumination; Determine the illumination gradient of the selected highlight area when the selected highlight area switches from local focus to wide-area illumination according to the illumination diffusion of the selected highlight area and the light focusing characteristics of the selected highlight area; Continue to determine the lighting gradient of the remaining highlight areas.
5. The method according to claim 1, characterized in that According to all the light spot overlap areas and all the light gradients, the transition dark areas formed when the light of each surgical lamp switches from the focused state to the diffused state include: Determine the diffusion state of the light from each surgical lamp in wide-area illumination; Determine multiple shadow boundaries formed when the light is switched from a focused state to a diffuse state according to all diffuse states and all light spot overlap areas; Extend all shadow boundaries through all lighting gradients; A transitional dark area formed when the light of each surgical lamp switches from a focused state to a diffused state is determined based on all the extended shadow boundaries.
6. The method according to claim 1, characterized in that According to all color temperatures and the diffusion state of each light in wide-area lighting, all transition dark areas are integrated to obtain the transition smoothness when the light switches from focused lighting to wide-area lighting. Specifically, it includes: Select a surgical light as the selected surgical light; Determine multiple shadow intensities corresponding to transition dark areas of the selected surgical lamp according to the diffusion state of the selected surgical lamp during wide-area illumination and the color temperature of the selected surgical lamp; Continue to determine multiple shadow intensities of the remaining surgical lights corresponding to the transitional dark areas; All transition dark areas are blended according to all shadow intensities and the smoothness of the transition when the light switches from focused lighting to wide-area lighting is determined based on all blended transition dark areas.
7. The method according to claim 1, characterized in that The evaluation of the lighting supplement situation of the light when the light switches from focused lighting to wide-area lighting based on the transition smoothness specifically includes: Determine the compensation threshold for regulating the lighting during surgery; comparing the transition smoothness with the compensation threshold; If the transition smoothness is less than the compensation threshold, the current lighting supplement situation of each operating lamp is evaluated as unqualified and the light brightness of each operating lamp is adjusted according to the transition smoothness; If the transition smoothness is greater than or equal to the compensation threshold, the current lighting supplement conditions of each operating lamp are evaluated as qualified and the lighting conditions of each operating lamp are maintained.
8. An adjustable lighting system for an operating room, the adjustable lighting system for an operating room comprising a lighting evaluation unit, characterized in that: The lighting evaluation unit comprises: An acquisition module is used to perform focused illumination on the surgical area and determine multiple highlight areas of the surgical area during focused illumination; A processing module, used to determine the overlapping area of the light spots of each surgical lamp under the mutual interference of the light according to the focusing characteristics of the light in each highlight area; The processing module is also used to determine the illumination gradient of each highlight area when the light switches from local focus to wide-area illumination, and determine the transition dark area formed when the light of each surgical lamp switches from a focus state to a diffuse state according to all light spot overlap areas and all illumination gradients; The processing module is also used to obtain the color temperature of each surgical lamp during wide-area illumination, and to fuse all transition dark areas according to all color temperatures and the diffusion state of each light during wide-area illumination, thereby obtaining the transition smoothness when the light switches from focused illumination to wide-area illumination; The execution module is used to evaluate the lighting supplement situation of the light when the light switches from focused lighting to wide-area lighting based on the transition smoothness.
9. A computer device, characterized in that: The computer device includes a memory and a processor, wherein the memory stores codes, and the processor is configured to obtain the codes and execute the adjustable lighting evaluation method for an operating room according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for evaluating adjustable lighting for an operating room according to any one of claims 1 to 7 is implemented.