An endoscope light source brightness control method and an endoscope

Through the progressive judgment of the control state, environmental state and placement state of the endoscope, the brightness of the light source is gradually reduced, solving the problems of complex brightness control of the endoscope light source and the power consumption, and achieving efficient and safe light source management.

CN115736796BActive Publication Date: 2025-08-05ZHUHAI SHIXIN ENDOSCOPY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211421985.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-14
Publication Date
2025-08-05
Estimated Expiration
2042-11-14

AI Technical Summary

Technical Problem

The existing endoscope light source brightness control methods are complex, which leads to a large amount of data computing resources and a long time to identify them. It is easy to forget to turn off the light source, resulting in power consumption and fire risk.

Method used

By obtaining multiple judgment results of the manipulation state, environmental state and placement state of the endoscope, the progressive state judgment is used to gradually reduce the brightness of the light source to avoid overheating and power consumption, including the use of bending detection, temperature and humidity sensors, pressure sensors, contact sensors and light sensors.

Benefits of technology

The endoscopic status judgment process is simplified, the judgment speed is improved, the data computing resource occupation is reduced, the safety and practicality are improved, and the light source is overheated and power consumption is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115736796B_ABST
    Figure CN115736796B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for controlling the brightness of an endoscope light source and an endoscope. The method comprises the following steps: obtaining an endoscope light source startup signal and determining the light source on-state; when the endoscope light source is on, obtaining state data of the endoscope; the state data comprising a control state parameter, an environmental state parameter, and a placement state parameter; obtaining multiple state judgment results of the endoscope based on the state data of the endoscope; and adjusting the brightness of the endoscope light source based on the multiple state judgment results of the endoscope. The present invention optimizes the endoscope state judgment process. By progressively judging the control state, environmental state, and placement state, the endoscope state judgment process is made simpler and more efficient, achieving a certain balance between judgment effect and judgment efficiency, reducing the occupation of data computing resources, and improving judgment speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of endoscope light source control, and in particular to an endoscope light source brightness control method and an endoscope. Background Art

[0002] In medical practice, using an endoscope to identify and locate lesions is a common adjunctive treatment method. An endoscope includes a CMOS camera and light source integrated into the front end. The front end converts the captured real-time image information into digital form and outputs it to a display on the back end.

[0003] During the use of the endoscope, the light source of the endoscope needs to remain on to provide illumination for the camera; after use, the light source of the endoscope needs to be turned off. If you forget to turn off the light source of the endoscope after use, the endoscope will continue to illuminate, which not only consumes the power of its internal battery, but also the continuous output of high-intensity light can easily ignite surrounding dry objects, causing fire and other accidents.

[0004] There are some methods for brightness control based on endoscopic image recognition in the prior art. However, the image processing steps in these methods are too complicated, which will occupy a lot of data computing resources of the endoscope and the recognition time is also relatively long. Summary of the Invention

[0005] In view of this, an embodiment of the present invention provides an endoscope light source brightness control method and an endoscope based on an existing endoscope.

[0006] A first aspect of the present invention provides a method for controlling the brightness of a light source, comprising the following steps:

[0007] Obtain the endoscope light source start-up signal and determine the light source start-up status;

[0008] When the endoscope light source is turned on, the state data of the endoscope is obtained; the state data includes control state parameters, environmental state parameters, and placement state parameters;

[0009] Based on the status data of the endoscope, a plurality of judgment results about the status of the endoscope are obtained;

[0010] Based on a plurality of determination results regarding the state of the endoscope, the brightness of the light source of the endoscope is adjusted.

[0011] Furthermore, obtaining the judgment results of multiple states of the endoscope based on the state data of the endoscope specifically includes the following steps:

[0012] Acquiring control state parameters of the endoscope and obtaining a judgment result of the control state of the endoscope, wherein the judgment result of the control state includes a manned control state and an unmanned control state;

[0013] When the endoscope is in an unmanned operation state, environmental state parameters are obtained to obtain a judgment result of the endoscope on the environmental state, wherein the judgment result of the environmental state includes an in vivo environmental state and an in vitro environmental state; the environmental state parameters include environmental temperature and humidity, environmental pressure, contact sensing signal, and ambient light intensity;

[0014] When the endoscope is in an in vitro environment, a placement state parameter is acquired to obtain a judgment result of the placement state of the endoscope, wherein the judgment result of the placement state of the endoscope includes a static state and a non-static state.

[0015] Furthermore, the control state parameter includes a bending detection signal; and obtaining the control state parameter of the endoscope and obtaining a judgment result of the control state of the endoscope specifically includes the following steps:

[0016] obtaining a bending change rate of the bending portion of the endoscope according to a bending detection signal;

[0017] When the bending change rate of the bending portion of the endoscope is greater than a preset bending change rate threshold, the endoscope is judged to be in a human-operated state; otherwise, the endoscope is judged to be in an unmanned state.

[0018] Furthermore, the acquisition of environmental state parameters to obtain the endoscope's judgment result on the environmental state specifically includes:

[0019] Acquire the ambient temperature and humidity parameters of the endoscope, and when the ambient temperature and humidity parameters of the endoscope exceed the preset ambient temperature and humidity thresholds, determine that the ambient temperature and humidity of the endoscope are in an over-limit state;

[0020] Obtaining an environmental pressure parameter of the endoscope, and when the environmental pressure parameter of the endoscope exceeds a preset environmental pressure threshold, determining that the environmental pressure of the endoscope is in an over-limit state;

[0021] Acquiring a contact sensing signal from the endoscope, and determining that the contact sensing signal from the endoscope is in an over-limit state when the endoscope receives the contact sensing signal from at least two directions;

[0022] Obtaining the ambient light intensity of the endoscope, and when the light sensing intensity of the endoscope exceeds a preset light intensity threshold, determining that the ambient light intensity of the endoscope is in an over-limit state;

[0023] When at least one of the ambient temperature and humidity, ambient pressure, contact sensing signal and ambient light intensity is not in an out-of-limit state, the endoscope is determined to be in an external state; otherwise, the endoscope is determined to be in an internal state.

[0024] Furthermore, the environmental temperature and humidity parameters are obtained by a temperature and humidity sensor installed at the front end of the endoscope; the environmental pressure parameters are obtained by a pressure sensor installed at the front end of the endoscope;

[0025] The contact sensing signal is obtained by a plurality of contact sensors installed on the surface of the endoscope, and the direction of the contact sensing signal is recorded in the contact sensing signal;

[0026] The intensity of the ambient light is obtained by a light sensor installed at the front end of the endoscope.

[0027] Furthermore, the manipulation placement state parameter includes an endoscope operation response, and the acquisition of the placement state parameter to obtain a judgment result of the endoscope on the placement state specifically includes the following steps:

[0028] Determine whether the endoscope receives an operation response. When the endoscope receives an operation response, determine that the endoscope is in a non-stationary state; otherwise, determine that the endoscope is in a stationary state.

[0029] Furthermore, the step of obtaining the placement state parameter to obtain the determination result of the placement state of the endoscope further includes the following steps:

[0030] Acquire a first endoscopic image and a second endoscopic image at intervals of a preset time period;

[0031] Scaling the first endoscopic image and the second endoscopic image to obtain a first scaled image and a second scaled image;

[0032] Performing grayscale processing on the first scaled image and the second scaled image to obtain a first scaled grayscale image and a second scaled grayscale image;

[0033] sequentially calculating the average value of pixels in each row of the first scaled grayscale image to obtain a first pixel average value set;

[0034] sequentially calculating the average value of pixels in each row of the second scaled grayscale image to obtain a second pixel average value set;

[0035] comparing the variance of the first set of pixel averages to the variance of the second set of pixel averages;

[0036] When the variance of the first pixel average value set and the variance of the second pixel average value set exceed a preset variance threshold, determining that the current state of the endoscope is a non-stationary state;

[0037] When the variance of the first pixel average value set and the variance of the second pixel average value set do not exceed a preset variance threshold, it is determined that the current state of the endoscope is a static state.

[0038] Furthermore, adjusting the brightness of the light source of the endoscope based on the multiple judgment results of the endoscope on the state specifically includes:

[0039] When the endoscope is in a stationary state, gradually reduce the brightness of the light source; otherwise, maintain the brightness of the light source.

[0040] Furthermore, the step of gradually reducing the brightness of the light source specifically includes the following steps:

[0041] The output power of the endoscope light source is gradually reduced at a preset speed until the output power is zero, so that the brightness of the endoscope light source is gradually reduced to zero;

[0042] When the output power of the endoscope light source is gradually reduced, if multiple judgment results of the endoscope regarding the state change, the original output power of the endoscope light source is restored.

[0043] A second aspect of the present invention provides an endoscope, comprising a manipulation state judgment module, an environment state judgment module, and a placement state judgment module;

[0044] When the endoscope light source is turned on:

[0045] The control state judgment module obtains the control state parameters of the endoscope and obtains a judgment result on the control state of the endoscope, wherein the judgment result of the control state includes a human control state and an unmanned control state;

[0046] When the endoscope is in an unmanned operation state, the environmental state judgment module obtains environmental state parameters to obtain a judgment result of the endoscope on the environmental state, wherein the judgment result of the environmental state includes an in vivo environmental state and an in vitro environmental state; the environmental state parameters include environmental temperature and humidity, environmental pressure, contact sensing signal, and ambient light intensity;

[0047] When the endoscope is in an in vitro environment, the placement state judgment module obtains a placement state parameter to obtain a judgment result on the placement state of the endoscope, wherein the judgment result on the placement state of the endoscope includes a static state and a non-static state;

[0048] The endoscope adjusts the brightness of the light source of the endoscope based on multiple judgment results of the operation state, the environmental state and the placement state.

[0049] The embodiments of the present invention have the following beneficial effects: the present invention realizes dynamic adjustment of the endoscope light source by judging endoscope state parameters such as control state parameters, environmental state parameters, and placement state parameters; gradually reduces the brightness of the light source until it is turned off when the endoscope is in a static state, which can effectively avoid accidents caused by overheating of the endoscope light source; and helps to improve the safety and practicality of the endoscope. The present invention optimizes the endoscope state judgment process, and through the progressive state judgment of the control state, environmental state, and placement state, the endoscope state judgment process is made simpler and more efficient, achieving a certain balance between judgment effect and judgment efficiency, reducing the occupation of data computing resources, and improving the judgment speed.

[0050] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0052] Figure 1 This is a main flow chart of an endoscope light source brightness control method and an endoscope of the present invention;

[0053] Figure 2 This is a schematic diagram of an endoscope light source brightness control method and an endoscope usage scenario in an endoscope according to the present invention.

[0054] Reference numerals: 1. Angle sensor; 2. Temperature and humidity sensor; 3. Pressure sensor; 4. Contact sensor; 5. Light sensor. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0056] This embodiment describes a method for controlling the brightness of an endoscope light source. Figure 1 , mainly including the following steps:

[0057] S1. Get the endoscope light source start signal and determine the light source on status;

[0058] S2. When the endoscope light source is turned on, obtain the endoscope status data; the status data includes control state parameters, environmental state parameters, and placement state parameters;

[0059] S3 based on the endoscope status data, obtain multiple determination results about the state of the endoscope;

[0060] S4. Adjust the brightness of the light source of the endoscope based on the multiple judgment results about the status of the endoscope.

[0061] In this embodiment, the endoscope is used in the following scenarios: Figure 2 shown. Figure 2 An angle sensor 1, a temperature and humidity sensor 2, a pressure sensor 3 and a contact sensor 4 are shown in the figure; the angle sensor 1 is used to judge the control state of the endoscope, and the temperature and humidity sensor 2, the pressure sensor 3 and the contact sensor are all used to judge the environmental state of the endoscope.

[0062] Based on the above steps, this embodiment can complete the judgment of the endoscope's control state, environmental state and placement state, obtain multiple judgment results about the endoscope's state, and complete the endoscope's light source brightness adjustment in a targeted manner.

[0063] The following describes in detail the implementation process of each step of this embodiment:

[0064] S1. Obtain the endoscope light source start-up signal and determine the light source start-up status.

[0065] The light source activation signal in step S1 is specifically obtained by an image processing control unit installed on one side of the endoscope body. In this embodiment, the image processing control unit can detect the operating status of the endoscope light source. When the endoscope lens captures an image, it triggers the image processing control unit to detect the light source activation status, thereby determining whether the endoscope light source is on. The endoscope light source brightness method provided in this embodiment detects the light source status before making a judgment. If the light source is in the off state, there is no need to adjust the light source brightness, which can simplify control.

[0066] S2. When the endoscope light source is turned on, obtain the status data of the endoscope; the status data includes control status parameters, environmental status parameters, and placement status parameters.

[0067] The state data used for judging the state of the endoscope in this embodiment include control state parameters, environmental state parameters, and placement state parameters. In this embodiment, if the light source is in a working state, the control state, environmental state, and placement state of the endoscope are judged, and the purpose is to timely reduce the brightness output of the light source when the light source is in a working state and the endoscope is in standby and not working, so as to prevent the light source from being ineffectively output for a long time. In particular, for portable endoscopes powered by batteries, adjusting the light source according to the state of the endoscope can avoid the battery from being ineffectively discharged, thereby improving the battery life. In particular, for endoscopes that use cold light sources to provide illumination, adjusting the light source according to the state of the endoscope can avoid continuous output of high-intensity illumination.

[0068] The control state parameters used in this embodiment include a bending detection signal. The bending detection signal is used to indicate the rate of change of the bending angle of the bending portion of the endoscope. Figure 2 The angle sensor 1 is shown in FIG.

[0069] In this embodiment, obtaining the judgment result of the endoscope regarding the control state specifically includes the following steps:

[0070] S2-A1 obtains the bending rate of change of the bending portion of the endoscope according to the bending detection signal;

[0071] S2-A2. When the bending change rate of the bending portion of the endoscope is greater than a preset bending change rate threshold, the endoscope is judged to be in a human-operated state; otherwise, the endoscope is judged to be in an unmanned state.

[0072] In this embodiment, the bend detection signal may include the bend angle of the endoscope's curved portion. The bend change rate can be used to represent the magnitude of the change in the bend angle of the endoscope's curved portion within a predetermined time period. In this embodiment, when the angle sensor detects the bend angle of the endoscope's curved portion, the bend change rate is derived based on the bend angle. When the bend change rate exceeds a predetermined threshold, it indicates that the endoscope's bend angle is changing, further indicating that someone is operating the endoscope, and thus the output state is "operated by someone." If no bend angle change rate is detected, it cannot be determined that someone is operating the endoscope, and thus the output state is "unoperated by someone." In this embodiment, the predetermined bend change rate threshold can be set to 0. That is, if the change in the bend angle of the endoscope's curved portion is 0 within a predetermined time period, it indicates that the endoscope is unoperated during that period. Subsequent determination of the environmental and placement conditions determines whether the endoscope requires light source brightness adjustment. Furthermore, intestinal peristalsis and other factors may also cause the bend angle of the endoscope's curved portion to change at a predetermined rate. In this embodiment, this state is also considered to be "operated by someone" to facilitate subsequent state determination.

[0073] The purpose of step S2-A is to know whether the endoscope is currently in working state, so other methods can also be used to make the first judgment on the working state of the endoscope. Due to the structural characteristics of the endoscope, the angle of the bending part of the endoscope needs to be controlled by the angle handwheel of the endoscope handle. If the bending part is bent at an angle, it means that the endoscope is being operated by someone. In this embodiment, the control state is first used to determine whether the endoscope is currently working. When the judgment result is that the endoscope is in a state of human control, it means that the brightness of the endoscope light source does not need to be adjusted, and the subsequent environmental state judgment and placement state judgment steps can be omitted; when the control state judgment result is that the endoscope is in an unmanned state, the subsequent environmental state judgment is required.

[0074] The environmental state parameters used in this embodiment may include environmental temperature and humidity parameters, environmental pressure parameters, contact sensing signals and environmental light intensity. The environmental temperature and humidity parameters are used to represent the temperature and humidity of the environment in which the endoscope is located. Figure 2 The temperature and humidity sensor installed at the end of the endoscope is used to obtain the environmental pressure parameter; the environmental pressure parameter is used to represent the pressure of the environment in which the endoscope is located. Figure 2 The pressure sensor installed at the end of the endoscope is used to obtain the contact signal; the contact sensing signal is used to indicate the contact status of the endoscope. Figure 2 The ambient light intensity is used to indicate the light intensity of the environment where the endoscope is located. Figure 2 The light is obtained by the light sensor installed at the tip of the endoscope.

[0075] An electronic endoscope (endoscopy) is a medical electronic optical instrument that can be inserted into the human body cavity and organ cavity for direct observation, diagnosis, and treatment. It integrates advanced optical, mechanical, and electrical technologies. According to the working characteristics of the endoscope, when making brightness adjustment judgments, it is necessary to judge the environmental state of the endoscope. When the endoscope is inside the human body, the endoscope is in use and no subsequent judgment is required. When the endoscope is outside the human body, the next judgment is made.

[0076] Since the temperature, humidity and pressure of the internal and external environments are different, the temperature, humidity and pressure of the environment in which the endoscope is located can be detected by setting a temperature and humidity sensor and a pressure sensor at the front end of the endoscope to further determine the current environment of the endoscope. When the temperature and humidity detected by the temperature and humidity sensor exceed the preset temperature threshold and humidity threshold at the same time, the environmental temperature and humidity of the endoscope are judged to be in an over-limit state; when the environmental pressure of the endoscope detected by the pressure sensor exceeds the pressure threshold, the environmental pressure of the endoscope is judged to be in an over-limit state. Specifically, the threshold settings of temperature, humidity and pressure can refer to Table 1:

[0077] Temperature threshold Humidity threshold Contact Threshold Air pressure threshold Indoor static (standard) 20-24℃ 60 None (there is a contact signal on the placement surface) Standard atmospheric pressure Work inside the body ≥37℃ ≥60 There are multiple surface contact signals Internal pressure

[0078] Table 1

[0079] The environment in which the endoscope is placed or temporarily stored when not in use or after use is the operating room environment. The temperature threshold refers to the recommended indoor heating temperature required by Article 7.1.4 of the "Code for Design of General Hospital Buildings" GB51039-2014, with a temperature of 20-24°C being appropriate. The humidity threshold refers to the clean operating room humidity requirements specified in the "Technical Specifications for Clean Operating Room Buildings in Hospitals" GB 50333-2013, with a humidity of 60% being appropriate. The air pressure threshold is preferably the standard indoor air pressure. Since the periphery of the endoscope is usually in contact with the surface of the intestine when it is in the body, only the lower surface of the endoscope is in contact with the container when it is outside the body. Therefore, it is possible to determine whether the endoscope is inside the body by installing contact sensors around the endoscope and detecting contact sensing signals from multiple directions. In this embodiment, the endoscope uses infrared sensing to perform infrared distance detection, detecting whether there are foreign objects blocking the endoscope in the four directions of upward, downward, left, and right. If the endoscope is currently inside the body, it should be able to detect sensing signals in at least two directions. By detecting the sensing signals in the four directions and calculating the distance based on the response signals, if the measured distance is less than the set threshold, it indicates that the endoscope is currently inside the body. Due to the structural characteristics of the human body cavity, when the endoscope is inside the body, the external environment can be regarded as a closed environment. When the endoscope is outside the body, it can be regarded as a larger environment than the internal environment. Whether the endoscope is placed or not, the external environment space where the endoscope tip is located should be larger than the internal space. By detecting the sensing signals from the tip in the four directions and measuring the distance, it is possible to determine whether the endoscope is inside the body.

[0080] The determination of ambient light intensity in step S2 is primarily achieved by comparing it with a preset in-vivo environmental spectrum. Because some cells or tissues in the in-vivo environment may absorb the light from the endoscope, the light reflection intensity detected by the endoscope's fiber optic sensor in the in-vivo environment differs from that in the in-vitro environment. Therefore, ambient light intensity can be used as a measure of the endoscope's environment. In this embodiment, a light intensity threshold corresponding to the in-vivo environment is formed by presetting an in-vivo environmental spectrum (e.g., an esophageal spectrum, an intestinal spectrum, etc.). The endoscope's environment can be determined by comparing the light intensity received by the light sensor with the light intensity threshold.

[0081] This embodiment makes a judgment based on four environmental status indicators: ambient temperature and humidity parameters, ambient pressure parameters, contact sensing signals, and ambient light intensity. If at least one of these four indicators is within the specified limits, the endoscope is judged to be in an in vitro environment. If all of them are within the specified limits, the endoscope is judged to be in an in vivo environment. This multi-indicator fusion evaluation method improves the reliability of this embodiment's environmental status judgment.

[0082] In this embodiment, placement status determination is performed through pressure detection on the operating unit and image similarity evaluation. Placement status comparison is more complex than the aforementioned environmental parameter comparison. Therefore, if the aforementioned environmental status determination indicates that the endoscope is in an in vivo environment and brightness adjustment is not necessary, then placement status determination is unnecessary. Only when the aforementioned environmental status determination indicates that the endoscope is in an in vitro environment is placement status determination necessary.

[0083] In this embodiment, when detecting whether the endoscope is in a static state, a grip signal from the endoscope operating unit can be detected to determine whether the endoscope is being gripped. It should be noted that the grip in this step differs from the manipulation detection in step S2-A. In step S2-A, to achieve bending of the endoscope's bending portion, the operating unit must perform a corresponding manipulation action, such as turning an angle handwheel. The grip here refers to determining whether the endoscope is being held. If the endoscope is detected as being held, the angle of the endoscope's bending portion will not change without performing the corresponding manipulation action (turning the angle handwheel). Therefore, if the pressure sensor on the operating unit does not detect a grip signal, it indicates that the endoscope is not being gripped, and a preliminary determination can be made that the endoscope is in a static state. Subsequently, an image similarity test is performed, capturing two sets of images within a preset time period and measuring the similarity between the two sets of images. If the similarity between the two sets of images is high, the endoscope can be determined to be in a static state.

[0084] In this embodiment, the image similarity evaluation is performed by obtaining two sets of images taken at a preset time interval and determining the similarity between the two sets of images, which specifically includes the following steps:

[0085] S2-C1. Acquire a first endoscopic image and a second endoscopic image at intervals of a preset time period.

[0086] S2-C2. Scaling the first endoscopic image and the second endoscopic image to obtain a first scaled image and a second scaled image. In this embodiment, the scaled size of the image is determined by the information and complexity of the image. If the image contains less information and has lower complexity, the scaled size is set to a smaller value; if the image contains more information and has higher complexity, the scaled size is set to a larger value.

[0087] S2-C3. Grayscale processing is performed on the first scaled image and the second scaled image to obtain a first scaled grayscale image and a second scaled grayscale image. In this embodiment, in order to reduce the amount of computation, the color information contained in the image is removed and similarity determination is performed based on the grayscale image.

[0088] S2-C4 sequentially calculate the average value of each row of pixels in the first scaled grayscale image to obtain a first pixel average value set;

[0089] S2-C5. Calculate the average value of each row of pixels in the second scaled grayscale image to obtain a second pixel average value set. In this embodiment, the average value of each row of pixels in the image is calculated and recorded, and each average value corresponds to the feature information of this row in the image.

[0090] S2-C6. Compare the variance of the first set of pixel averages with the variance of the second set of pixel averages. In this embodiment, the variance of all averages obtained in the image is calculated, and the variance reflects the fluctuation of the pixel characteristics of each row in the image. The size of the variance of multiple data sets can reflect the similarity of data fluctuations. Therefore, by comparing the variance of the first set of pixel averages with the variance of the second set of pixel averages, the similarity of the first endoscopic image and the second endoscopic image can be determined.

[0091] S2-C7. When the variance of the first pixel average value set and the variance of the second pixel average value set exceed a preset variance threshold, it is determined that the current state of the endoscope is a non-stationary state;

[0092] S2-C8. When the variance of the first pixel average value set and the variance of the second pixel average value set do not exceed the preset variance threshold, determine that the current state of the endoscope is the static state.

[0093] While image similarity-based endoscope status determination is effective, it suffers from large amounts of data computation and a long processing time. Therefore, this embodiment utilizes image similarity-based endoscope placement status determination only when the endoscope's control status and environmental status are unable to determine the endoscope's current status. This optimizes the implementation of endoscope light source brightness adjustment. The endoscope light source output is maintained when the endoscope is not in a stationary state; light source adjustment is only required when the endoscope is in a stationary state.

[0094] S3. Based on the status data of the endoscope, obtain multiple judgment results about the status of the endoscope.

[0095] In this embodiment, step S3 specifically includes the following steps:

[0096] S3-1 obtain the control state parameters of the endoscope, obtain the judgment result on the control state of the endoscope, the judgment result of the control state includes the control state and the uncontrolled state;

[0097] S3-2. When the endoscope is in an unmanned state, obtain the environmental state parameters to obtain the endoscope's judgment on the environmental state. The judgment results of the environmental state include the in vivo environmental state and the in vitro environmental state;

[0098] S3-3 When the endoscope is in an in vitro environment, the placement state parameter is obtained to obtain a judgment result of the placement state of the endoscope. The judgment result of the placement state of the endoscope includes being in a static state and being in a non-static state.

[0099] In step S3, the progressive state judgment of the control state, environmental state and placement state makes the endoscope state judgment process more concise and efficient, achieves a certain balance between the judgment effect and judgment efficiency, reduces the occupation of data computing resources, and improves the judgment speed.

[0100] Specifically, in each progressive state judgment,

[0101] When the endoscope is in a manned state, maintain the brightness of the light source;

[0102] When the endoscope is in the internal environment, maintain the brightness of the light source;

[0103] When the endoscope is not in a static state, maintain the brightness of the light source.

[0104] S4. Adjust the brightness of the light source of the endoscope based on the multiple judgment results about the status of the endoscope.

[0105] In step S4, based on the multiple judgment results of the endoscope regarding the state, the brightness of the light source of the endoscope is adjusted, specifically including:

[0106] When the endoscope is in a stationary state, gradually reduce the brightness of the light source; otherwise, maintain the brightness of the light source.

[0107] Since there may be errors in the above-mentioned judgment of the endoscope status, directly turning off the endoscope light source when a misjudgment occurs may affect the normal operation of the endoscope. Therefore, this embodiment adopts a method of gradually reducing the brightness of the light source to reduce the impact of misjudgment on the normal operation of the endoscope.

[0108] Wherein, gradually reducing the brightness of the light source specifically includes the following steps:

[0109] S4-1. Gradually reduce the output power of the endoscope light source at a preset speed until the output power is zero, so that the brightness of the endoscope light source gradually decreases to zero;

[0110] S4-2. When gradually reducing the output power of the endoscope light source, if multiple judgment results of the endoscope state change, the original output power of the endoscope light source is restored.

[0111] In this embodiment, while the output power of the endoscope light source is gradually reduced, if the determination of the current state of the endoscope changes (e.g., the rate of change of bending is detected), it indicates that the endoscope has been used again, and the original output power of the endoscope light source is restored to ensure the effective operation of the endoscope. In this embodiment, while the output power of the endoscope light source is gradually reduced, a message can be sent to the image processing terminal to indicate that the endoscope light source is being gradually shut down, so that the operator can be aware of the current brightness of the endoscope light source.

[0112] This embodiment introduces an endoscope, including a manipulation state judgment module, an environment state judgment module, and a placement state judgment module;

[0113] When the endoscope light source is on:

[0114] The control state judgment module obtains the control state parameters of the endoscope and obtains the judgment result of the control state of the endoscope. The judgment result of the control state includes the control state with people and the control state without people.

[0115] When the endoscope is in an unmanned operation state, the environmental state judgment module obtains environmental state parameters and obtains a judgment result of the endoscope on the environmental state, the judgment result of the environmental state includes an in vivo environmental state and an in vitro environmental state; the environmental state parameters include environmental temperature and humidity, environmental pressure, contact sensing signal and ambient light intensity;

[0116] When the endoscope is in an in vitro environment, the placement state judgment module obtains the placement state parameter and obtains a judgment result on the placement state of the endoscope, where the judgment result of the placement state of the endoscope includes a static state and a non-static state;

[0117] The endoscope adjusts the brightness of the light source of the endoscope based on multiple judgment results of the operation state, environmental state and placement state.

[0118] In some optional embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided in an exemplary manner for the purpose of providing a more comprehensive understanding of the technology. The disclosed method is not limited to the operation and logic flow presented herein. Optional embodiments are contemplated in which the order of the various operations is changed and the sub-operations described as a part of a larger operation are performed independently.

[0119] Furthermore, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise indicated, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It will also be understood that a detailed discussion of the actual implementation of each module is not necessary for understanding the present invention. More specifically, given the properties, functions, and internal relationships of the various functional modules in the devices disclosed herein, the actual implementation of the module will be understood within the ordinary skill of an engineer. Therefore, a person skilled in the art using ordinary skill will be able to implement the present invention set forth in the claims without undue experimentation. It will also be understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0120] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

[0121] While embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the claims and their equivalents.

[0122] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the embodiments. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A method for controlling light source brightness, characterized in that: The following steps are involved: Obtain the endoscope light source start-up signal and determine the light source start-up status; When the endoscope light source is turned on, the state data of the endoscope is obtained; the state data includes control state parameters, environmental state parameters, and placement state parameters; Based on the status data of the endoscope, a plurality of judgment results about the status of the endoscope are obtained; adjusting the brightness of the light source of the endoscope based on a plurality of judgment results regarding the state of the endoscope; The step of obtaining a plurality of judgment results about the state of the endoscope based on the state data of the endoscope specifically includes the following steps: Acquiring control state parameters of the endoscope and obtaining a judgment result of the control state of the endoscope, wherein the judgment result of the control state includes a manned control state and an unmanned control state; When the judgment result of the control state is an unmanned control state, obtaining environmental state parameters to obtain a judgment result of the endoscope on the environmental state, wherein the judgment result of the environmental state includes an in vivo environmental state and an in vitro environmental state; the environmental state parameters include environmental temperature and humidity, environmental pressure, contact sensing signal, and ambient light intensity; When the environmental state is determined to be in an in vitro environment, a placement state parameter is acquired to obtain a placement state determination result of the endoscope, wherein the placement state determination result of the endoscope includes a static state and a non-static state; The step of adjusting the brightness of the endoscope light source based on the multiple judgment results of the endoscope regarding the state specifically includes: When the judgment result of the placement state is that the endoscope is in a static state, gradually reducing the brightness of the endoscope light source; otherwise, maintaining the brightness of the endoscope light source; The step of gradually reducing the brightness of the endoscope light source specifically includes the following steps: Gradually reducing the output power of the endoscope light source at a preset speed until the output power is zero, so that the brightness of the endoscope light source gradually decreases to zero; When the output power of the endoscope light source is gradually reduced, if multiple judgment results of the endoscope regarding the state change, the original output power of the endoscope light source is restored.

2. A light source brightness control method according to claim 1, characterized in that: The control state parameter includes a bending detection signal; the step of obtaining the control state parameter of the endoscope and obtaining a judgment result of the control state of the endoscope specifically includes the following steps: obtaining a bending change rate of the bending portion of the endoscope according to a bending detection signal; When the bending change rate of the bending portion of the endoscope is greater than a preset bending change rate threshold, the endoscope is judged to be in a human-operated state; otherwise, the endoscope is judged to be in an unmanned state.

3. The method for controlling light source brightness according to claim 1, wherein: The step of obtaining the environmental state parameters and obtaining the endoscope's judgment result on the environmental state specifically includes: Acquire the ambient temperature and humidity parameters of the endoscope, and when the ambient temperature and humidity parameters of the endoscope exceed the preset ambient temperature and humidity thresholds, determine that the ambient temperature and humidity of the endoscope are in an over-limit state; Obtaining an environmental pressure parameter of the endoscope, and when the environmental pressure parameter of the endoscope exceeds a preset environmental pressure threshold, determining that the environmental pressure of the endoscope is in an over-limit state; Acquiring a contact sensing signal from the endoscope, and determining that the contact sensing signal from the endoscope is in an over-limit state when the endoscope receives the contact sensing signal from at least two directions; Obtaining the ambient light intensity of the endoscope, and when the light sensing intensity of the endoscope exceeds a preset light intensity threshold, determining that the ambient light intensity of the endoscope is in an over-limit state; When at least one of the ambient temperature and humidity, ambient pressure, contact sensing signal and ambient light intensity is not in an out-of-limit state, the endoscope is determined to be in an external state; otherwise, the endoscope is determined to be in an internal state.

4. A light source brightness control method according to claim 3, characterized in that: The environmental temperature and humidity parameters are obtained by a temperature and humidity sensor installed at the front end of the endoscope; the environmental pressure parameters are obtained by a pressure sensor installed at the front end of the endoscope; The contact sensing signal is obtained by a plurality of contact sensors installed on the surface of the endoscope, and the direction of the contact sensing signal is recorded in the contact sensing signal; The intensity of the ambient light is obtained by a light sensor installed at the front end of the endoscope.

5. A light source brightness control method according to claim 3, characterized in that: The placement state parameter includes an endoscope operation response, and obtaining the placement state parameter to obtain a judgment result of the endoscope on the placement state specifically includes the following steps: Determine whether the endoscope receives an operation response. When the endoscope receives an operation response, determine that the endoscope is in a non-stationary state; otherwise, determine that the endoscope is in a stationary state.

6. A light source brightness control method according to claim 5, characterized in that: The step of obtaining the placement state parameter to obtain the determination result of the placement state of the endoscope further includes the following steps: Acquire a first endoscopic image and a second endoscopic image at intervals of a preset time period; Scaling the first endoscopic image and the second endoscopic image to obtain a first scaled image and a second scaled image; Performing grayscale processing on the first scaled image and the second scaled image to obtain a first scaled grayscale image and a second scaled grayscale image; sequentially calculating the average value of pixels in each row of the first scaled grayscale image to obtain a first pixel average value set; sequentially calculating the average value of pixels in each row of the second scaled grayscale image to obtain a second pixel average value set; comparing the variance of the first set of pixel averages to the variance of the second set of pixel averages; When the variance of the first pixel average value set and the variance of the second pixel average value set exceed a preset variance threshold, determining that the current state of the endoscope is a non-stationary state; When the variance of the first pixel average value set and the variance of the second pixel average value set do not exceed a preset variance threshold, it is determined that the current state of the endoscope is a static state.

7. An endoscope, characterized in that: It includes a control state judgment module, an environment state judgment module and a placement state judgment module; When the endoscope light source is on: The control state judgment module obtains the control state parameters of the endoscope and obtains a judgment result on the control state of the endoscope, wherein the judgment result of the control state includes a human control state and an unmanned control state; When the endoscope is in an unmanned operation state, the environmental state judgment module obtains environmental state parameters to obtain a judgment result of the endoscope on the environmental state, wherein the judgment result of the environmental state includes an in vivo environmental state and an in vitro environmental state; the environmental state parameters include environmental temperature and humidity, environmental pressure, contact sensing signal, and ambient light intensity; When the endoscope is in an in vitro environment, the placement state judgment module obtains a placement state parameter to obtain a judgment result on the placement state of the endoscope, wherein the judgment result on the placement state of the endoscope includes a static state and a non-static state; The endoscope adjusts the brightness of the light source of the endoscope based on multiple judgment results of the operation state, the environmental state and the placement state; The step of obtaining a plurality of judgment results about the state of the endoscope based on the state data of the endoscope specifically includes the following steps: Acquiring control state parameters of the endoscope and obtaining a judgment result of the control state of the endoscope, wherein the judgment result of the control state includes a manned control state and an unmanned control state; When the judgment result of the control state is an unmanned control state, obtaining environmental state parameters to obtain a judgment result of the endoscope on the environmental state, wherein the judgment result of the environmental state includes an in vivo environmental state and an in vitro environmental state; the environmental state parameters include environmental temperature and humidity, environmental pressure, contact sensing signal, and ambient light intensity; When the environmental state is determined to be in an in vitro environment, a placement state parameter is acquired to obtain a placement state determination result of the endoscope, wherein the placement state determination result of the endoscope includes a static state and a non-static state; The step of adjusting the brightness of the endoscope light source based on the multiple judgment results of the endoscope regarding the state specifically includes: When the judgment result of the placement state is that the endoscope is in a static state, gradually reducing the brightness of the endoscope light source; otherwise, maintaining the brightness of the endoscope light source; The step of gradually reducing the brightness of the endoscope light source specifically includes the following steps: Gradually reducing the output power of the endoscope light source at a preset speed until the output power is zero, so that the brightness of the endoscope light source gradually decreases to zero; When the output power of the endoscope light source is gradually reduced, if multiple judgment results of the endoscope regarding the state change, the original output power of the endoscope light source is restored.

Citation Information

Patent Citations

  • Endoscope light source device and endoscope system

    CN213963297U

  • Accelorometer Based Endoscopic Light Source Safety System

    US20140012078A1