Endoscope system parameter setting method and device, and storage medium
By acquiring the target depth and reflection parameters of the endoscope camera, the LED light parameters are automatically adjusted, solving the problem that the existing endoscope light parameters need to be manually adjusted and optimizing the endoscope user experience.
Patent Information
- Application Number
- CN202511343385.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-19
- Publication Date
- 2026-02-06
AI Technical Summary
The current method of adjusting the lighting parameters of endoscopes requires doctors to frequently interrupt the diagnostic process to manually adjust them, resulting in a poor user experience.
By acquiring the target depth and target reflectivity parameters from the camera, the LED lighting parameters are automatically adjusted to optimize the endoscope user experience.
It enables automatic adjustment of endoscope lighting parameters, reducing operational interference for doctors during diagnosis and improving the user experience.
Smart Images

Figure CN121465501A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of interface calling technology, and in particular to a parameter setting method, device, and storage medium for an endoscope system. Background Technology
[0002] Endoscopes are commonly used tools for oral diagnosis. Current endoscopes can transmit real-time video images of the oral cavity to a display device, facilitating diagnosis by doctors. Existing endoscopes are equipped with LED lights, which not only provide illumination but also allow for adjustments to lighting parameters such as brightness, saturation, and color to aid in diagnosis. For example, natural colors more closely resemble tissue colors, suitable for routine examinations, while high contrast makes it easier to detect lesions.
[0003] Currently, the lighting parameters of endoscopes can only be adjusted manually in the parameter configuration interface of the display device. Doctors need to frequently interrupt the examination during the diagnosis process to adjust the lighting parameters in the display device, resulting in a poor user experience for endoscopes. Summary of the Invention
[0004] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, this invention proposes a parameter setting method, device, and storage medium for an endoscope system, which can automatically adjust lighting parameters and improve the user experience of endoscopy.
[0005] In a first aspect, embodiments of the present invention provide a parameter setting method for an endoscope system, the endoscope including a camera and an LED light, the method comprising: Obtain the target depth of the camera, wherein the target depth is used to characterize the oral cavity depth at the target location of the camera; Determine the target reflectivity parameters at the target location, wherein the target reflectivity parameters are used to characterize the reflectivity of oral tissues; Target lighting parameters are determined based on the target depth and the target reflectivity parameters, the LED lights are configured based on the target lighting parameters, and a target image of the target location is acquired through the camera.
[0006] According to some embodiments of the present invention, the endoscope is provided with at least one control button, and the endoscope includes multiple preset modes, different preset modes being used to characterize different lighting requirements. Target lighting parameters are determined based on the target depth and the target reflectivity parameters, including: Determine the target mode selected from the multiple preset modes via the control buttons; Based on the target depth and the target reflectivity parameters, the target lighting parameters corresponding to the target mode are determined, wherein the target lighting parameters corresponding to different preset modes are different under the target depth and the target reflectivity parameters.
[0007] According to some embodiments of the present invention, the endoscope is communicatively connected to a display device, the display device being used to display the target image, the endoscope having multiple preset doctor accounts, each preset doctor account being associated with multiple preset sample sets, each preset sample set recording preset depth information and multiple preset reference images, each preset reference image being associated with a preset mode; determining the target light parameters corresponding to the target mode based on the target depth and the target reflectivity parameters, including: Obtain the target doctor account that the user logs in through the display device, and determine multiple preset sample sets of the target doctor account as candidate sample sets; A target sample set is determined from multiple candidate sample sets based on the target depth, and a target reference image is determined from the target sample set based on the target pattern; The target lighting parameters are determined based on the target depth, the target reflectivity parameters, and the target reference image.
[0008] According to some embodiments of the present invention, determining the target light parameters based on the target depth, the target reflectivity parameters, and the target reference image includes: Determine the reference reflectance parameters of the target reference image; The target light parameters are determined based on the target depth, the preset calibration coefficient, the target reflectivity, and the reference reflectivity.
[0009] According to some embodiments of the present invention, after acquiring a target image of the target location through the camera, the method further includes: A set of associated parameters is generated based on the target depth, the target reflectivity parameters, the target pattern, and the target lighting parameters; The set of associated parameters is associated with the target doctor's account.
[0010] According to some embodiments of the present invention, after associating the set of associated parameters to the target doctor's account, the method further includes: Switch the LED light to standby mode; While maintaining the target mode and the target doctor account, when a new target depth is obtained and the associated parameter set is matched based on the new target depth, the LED light is reconfigured based on the target light parameters, and a new target image is obtained through the camera.
[0011] According to some embodiments of the present invention, after associating the set of associated parameters to the target doctor's account, the method further includes: When the target doctor account is associated with at least a plurality of the associated parameter sets, the plurality of associated parameter sets with the same target light parameters are merged into a reference parameter set, wherein the reference parameter set includes the target light parameters, depth range, reflectivity range and target mode, the depth range is determined based on the target depth of the plurality of associated parameter sets being merged, and the reflectivity range is determined based on the target reflectivity parameters of the plurality of associated parameter sets being merged; While maintaining the target mode and the target doctor account, a target parameter set is determined from multiple reference parameter sets based on the real-time depth information and real-time reflection parameters of the camera. The real-time depth information is used to characterize the real-time oral cavity depth of the camera, and the real-time depth information is within the depth range of the target parameter set. The real-time reflection parameters characterize the reflective properties of the current oral tissue, and the real-time reflection parameters are within the reflection range of the target parameter set. In response to an image acquisition signal, the LED light is configured using the target light parameters of the target parameter set.
[0012] In a second aspect, embodiments of the present invention provide a parameter setting device for an endoscope system, including at least one control processor and a memory for communicatively connecting to the at least one control processor; the memory stores instructions executable by the at least one control processor, which, when executed by the at least one control processor, enables the at least one control processor to perform a parameter setting method for an endoscope system as described in the first aspect above.
[0013] Thirdly, embodiments of the present invention provide an electronic device including a parameter setting device for an endoscope system as described in the second aspect above.
[0014] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer-executable instructions for performing a parameter setting method for an endoscope system as described in the first aspect above.
[0015] A parameter setting method for an endoscope system according to an embodiment of the present invention has at least the following beneficial effects: acquiring the target depth of the camera, wherein the target depth is used to characterize the oral cavity depth at the target location; determining the target reflectivity parameters at the target location, wherein the target reflectivity parameters are used to characterize the reflectivity of oral tissues; determining target lighting parameters based on the target depth and the target reflectivity parameters; configuring the LED light based on the target lighting parameters; and acquiring a target image at the target location through the camera. According to the technical solution of the embodiment of the present invention, the lighting parameters of the LED light can be automatically adjusted according to the oral cavity depth of the camera and the reflectivity of oral tissues, thereby optimizing the endoscope user experience. Attached Figure Description
[0016] Figure 1 This is a schematic diagram of an endoscope system provided in one embodiment of the present invention; Figure 2 This is a flowchart of a parameter setting method for an endoscope system provided in another embodiment of the present invention; Figure 3 This is a complete flowchart of a parameter setting method for an endoscope system provided in another embodiment of the present invention; Figure 4 This is a structural diagram of a parameter setting device for an endoscope system provided in another embodiment of the present invention. Detailed Implementation
[0017] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0018] In the description of this invention, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., are based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting this invention.
[0019] In the description of this invention, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0020] In the description of this invention, unless otherwise explicitly defined, terms such as "set up," "install," and "connect" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this invention in conjunction with the specific content of the technical solution.
[0021] This invention provides a parameter setting method, device, and storage medium for an endoscope system. The parameter setting method includes: acquiring a target depth of the camera, wherein the target depth characterizes the oral cavity depth at a target location; determining target reflectivity parameters at the target location, wherein the target reflectivity parameters characterize the reflectivity of oral tissues; determining target lighting parameters based on the target depth and the target reflectivity parameters; configuring the LED light based on the target lighting parameters; and acquiring a target image at the target location through the camera. According to the technical solution of this invention, the lighting parameters of the LED light can be automatically adjusted based on the oral cavity depth of the camera and the reflectivity of the oral tissues, optimizing the endoscope user experience.
[0022] First, refer to Figure 1 , Figure 1 This is a schematic diagram of an endoscope system provided in an embodiment of the present invention. The endoscope system in this embodiment includes an endoscope 10 and a display device 20. The endoscope 10 is communicatively connected to the display device 20, and the display device 20 is used to display a target image.
[0023] It should be noted that the endoscope 10 in this embodiment is equipped with a camera and an LED light. The inclusion of a camera and LED in the endoscope 10 is a technique well-known to those skilled in the art and will not be elaborated upon here. The camera is used to capture video streams or images under the illumination of the LED light. The lighting parameters of the LED light include brightness, contrast, saturation, and color, etc. The specific type of lighting parameters can be selected according to actual needs. This embodiment aims to adjust the lighting parameters of the LED light.
[0024] In addition, the endoscope 10 is equipped with at least one control button 11. The number of control buttons 11 can be set according to actual needs. For example, two buttons can be set. The first button is used to turn the camera on or off, and the second button is used to switch between different preset modes. Of course, each control button 11 can also be equipped with additional functions according to actual needs. For example, a long press of the first button can be used to record video, and a single click can be used to capture an image. The specific control logic can be set according to actual needs.
[0025] The following is based on the appendix Figure 1 The endoscopic system shown further illustrates the technical solution of the embodiments of the present invention.
[0026] Reference Figure 2 , Figure 2This is a flowchart illustrating a parameter setting method for an endoscope system provided in an embodiment of the present invention. The parameter setting method for the endoscope system includes, but is not limited to, the following steps: S10, obtain the target depth of the camera, where the target depth is used to characterize the oral cavity depth where the camera is located at the target position.
[0027] It should be noted that the camera and LED lights are typically located at the front of the endoscope. The oral cavity is a complex and non-uniform optical environment, with significant differences in depth, tissue color, moisture, and surface morphology (smooth / uneven) across different areas (such as incisors, molars, gums, and inner cheeks). Fixed lighting can lead to overexposure in the foreground (a white expanse with lost details) or insufficient illumination in the background (a dark image with high noise). Therefore, in this embodiment, the target depth is used only as a position indicator for the camera. The deeper the oral cavity, the less light enters the area. This embodiment uses the target depth as the basis for determining the target position. The greater the target depth, the higher the power of the subsequent LED lights, ensuring sufficient light when capturing the target image. However, due to the special structure of the oral cavity, changes in light intensity are not proportional to depth information but vary due to differences in the reflective properties of oral tissues. Therefore, this embodiment cannot directly determine the target light parameters linearly based on the target depth but must combine them with the target reflective parameters in subsequent steps.
[0028] It should be noted that oral cavity depth can be obtained using image recognition technology. After capturing a reference object using an endoscope's camera, the oral cavity depth is determined by converting the image distance and scale. The reference object can be oral features such as teeth or lips. Taking teeth as an example, after the teeth appear at the front of the image captured by the camera and the inner edge of the teeth is identified, the inner edge of the teeth is used as the starting point, and the image distance obtained as the endoscope continues to move is recorded in real time, thereby obtaining the target depth of the target location. Determining the actual distance based on image distance is a technique well-known to those skilled in the art and will not be elaborated upon here.
[0029] It should be noted that the target location can be determined by various trigger signals, either automatically triggered after the endoscope stops moving, or determined by clicking a control button inside the endoscope. This is possible when the endoscope system has... Figure 1 In the case of the display device 20 shown, a camera and microphone can also be set in the display device 20 to determine the target location by recognizing the doctor's gestures or voice.
[0030] S20, determine the target reflectivity parameters of the target location, wherein the target reflectivity parameters are used to characterize the reflectivity of oral tissues.
[0031] It should be noted that, as described in the above embodiments, oral tissues in different locations have different reflective properties. For example, saliva, moist gums, and tooth enamel surfaces produce strong specular reflections, forming bright "spots." After the endoscope reaches the target location, a sample image can be captured by a camera. The current target reflective parameters can be determined by image analysis of the sample image. Alternatively, an ambient light sensor can be built into the endoscope, and the intensity of reflected light detected by the ambient light sensor can be used as the target reflective parameters to characterize the reflective properties of oral tissues.
[0032] S30 determines the target lighting parameters based on the target depth and target reflectivity parameters, configures the LED lights based on the target lighting parameters, and acquires the target image at the target location through the camera.
[0033] It should be noted that, according to the description of the above embodiments, the target depth can characterize the oral cavity depth where the endoscope is located, and the target reflective parameter is the reflective characteristic of oral tissue. Therefore, the combination of the target depth and the target reflective parameter can characterize a specific oral cavity scene. In this embodiment, a reference lighting parameter for an LED light is set for each scene in the endoscope program, and a target lighting parameter is matched according to the target depth and the target reflective parameter. Of course, a relevant calculation formula can also be set, and the target depth and the target reflective parameter can be used as input to the formula. The formula calculates the lighting conditions that the LED light needs to provide in the current scene, thereby determining the target lighting parameter of the LED light.
[0034] It should be noted that the target light parameters can be the power, contrast, saturation, etc. of the LED light. This embodiment does not limit the number of types recorded in a target light parameter. For example, a target light parameter can simultaneously include power, contrast, saturation, color temperature, etc., as long as the LED light can meet the shooting requirements at the target location under the target light parameters.
[0035] Additionally, in one embodiment, reference is made to Figure 3 The endoscope includes multiple preset modes, with different preset modes used to characterize different lighting requirements. In step S30, the target light parameters are determined based on the target depth and target reflectivity parameters, specifically including but not limited to the following steps: S31, determine the target mode selected from multiple preset modes via control buttons; S32, based on the target depth and target reflectivity parameters, determine the target light parameters corresponding to the target mode, wherein the target light parameters corresponding to different preset modes are different under the target depth and target reflectivity parameters.
[0036] It should be noted that doctors have different lighting needs for LED lights in different preset modes. For example, preset modes may include common modes such as vivid mode, standard mode, cool mode and custom mode. LED lights provide high contrast in vivid mode, provide normal colors in standard mode, and have a higher color temperature in cool mode.
[0037] It should be noted that this embodiment has multiple control buttons on the endoscope, and the mode can be switched by using the control buttons. The number of control buttons can be arbitrary. For example, a preset mode can be switched by clicking a control button each time, or multiple control buttons can be set, each control button corresponding to a preset mode. No further limitation is made here.
[0038] It should be noted that the target mode represents the doctor's lighting needs for the LED light. After determining the target depth and target reflective information, the corresponding target light parameters are determined according to the target mode. Under the same target depth and target reflective information, the target light parameters obtained by different preset modes will inevitably be different. In this embodiment, the target light parameters are determined after selecting the mode, so that the target light parameters can accurately meet the user's needs.
[0039] For example, such as Figure 1 As shown, for example, in vivid mode, when the target depth is D1 and the target reflectivity parameter is L1, the target light parameter is determined to be P1. The image or video captured after the LED light is turned on based on P1 has high brightness and contrast. As another example, in standard mode, when the target depth is D2 and the target reflectivity parameter is L2, the target light parameter is determined to be P2. The image or video captured after the LED light is turned on based on P2 better displays the actual situation inside the oral cavity.
[0040] Additionally, in one embodiment, reference is made to Figure 3 The endoscope is equipped with multiple preset doctor accounts, each preset doctor account is associated with multiple preset sample sets, each preset sample set records preset depth information and multiple preset reference images, and each preset reference image is associated with a preset mode; step S32 specifically includes, but is not limited to, the following steps: S321, Obtain the target doctor account logged in by the user through the display device, and determine multiple preset sample sets of the target doctor account as candidate sample sets; S322, determine the target sample set from multiple candidate sample sets based on the target depth, and determine the target reference image from the target sample set based on the target pattern; S323, determine the target lighting parameters based on the target depth, target reflectivity parameters, and target reference image.
[0041] It should be noted that the display device can be an electronic device such as a touch screen or a laptop, as long as it has display and input functions.
[0042] It should be noted that different doctors have different personal habits when using endoscopes. If each doctor uses the same lighting strategy, manual adjustments may still be required after the target lighting parameters are determined. Based on this, this embodiment can input multiple preset doctor accounts into the endoscope through the relevant operations of the display device. By using the communication connection between the endoscope and the display device, the current target doctor account can be determined by logging in through the account on the display device.
[0043] It should be noted that in this embodiment, multiple preset sample sets are imported for each preset doctor account. After logging into the target doctor account, the corresponding preset sample set is determined as the candidate sample set. For example, each doctor takes a preset reference image in each depth scene after manually setting the lighting parameters, and performs the same operation once for each preset mode, thereby obtaining a preset reference image for each preset mode in the preset sample set. The preset reference image represents the image requirements of a specific doctor in a specific scene and specific mode.
[0044] It should be noted that after logging into the target doctor's account, the preset sample set of the target doctor's account is determined as the candidate sample set. After obtaining the target depth, the target depth is used as an index to determine the target sample set, and the target reference image corresponding to the target mode is obtained from the target sample set. The target reference image can provide the lighting requirements for imaging. Of course, since each patient's oral environment is different, the lighting parameters when the target reference image was taken cannot be used directly. Instead, the target reference image is used as the imaging reference, and the target lighting parameters are dynamically determined by combining the target depth and target reflectivity parameters, so that the target image obtained under the target lighting parameters can meet the requirements.
[0045] Additionally, in one embodiment, reference is made to Figure 3 Step S323 specifically includes, but is not limited to, the following steps: S3231, Determine the reference reflectance parameters of the target reference image; S3232 determines the target light parameters based on the target depth, preset calibration coefficients, target reflectivity parameters, and reference reflectivity parameters.
[0046] It should be noted that, according to the description of the above embodiments, the target reference image can provide the lighting requirements for imaging. In this embodiment, the reference reflectance parameters of the target reference image are determined through simple image processing, and the target lighting parameters are determined by the difference between the reference reflectance parameters and the target reflectance parameters. Taking the driving power P as an example, the calculation formula for the target lighting parameters in this embodiment is as follows: Where D is the target depth, L_current is the target reflectivity parameter, L_target is the reference reflectivity parameter, K is the calibration coefficient, and P is the target light parameter.
[0047] Additionally, in one embodiment, reference is made to Figure 3 After step S30 is completed, the following steps are included, but are not limited to: S41, Generate a set of associated parameters based on target depth, target reflectivity parameters, target mode, and target lighting parameters; S42, associates the set of associated parameters with the target doctor's account.
[0048] It should be noted that after obtaining the target image based on the target light parameters, this embodiment further generates a set of associated parameters for the target depth, target mode, and target light parameters. The set of associated parameters represents the current doctor's shooting needs under specific depth and reflective characteristics. During use, dynamically determined target light parameters are collected, and the set of associated parameters is linked to the target doctor's account. When encountering the same depth and reflective characteristics again, the corresponding target light parameters can be directly called without dynamic adjustment. This reduces repetitive calculations after the endoscope has been used for a period of time, gradually improving the smoothness of use.
[0049] Additionally, in one embodiment, reference is made to Figure 3 After step S42 is completed, the following steps are included, but are not limited to: S43, switch the LED light to standby mode; S44, while maintaining the target mode and the target doctor account, when a new target depth is obtained and the associated parameter set is matched based on the new target depth, the LED light is reconfigured based on the target light parameters, and a new target image is obtained through the camera.
[0050] It should be noted that, according to the description of the above embodiments, the oral cavity edge can be identified through the real-time image of the camera, thereby further determining the target depth. Since the oral cavity edge can receive some external light, the camera can capture images normally. In this embodiment, the LED light is switched to standby mode, so that the LED light is only lit when the target image is captured using the target light parameters, reducing the usage time of the LED light and extending its lifespan. At the same time, the LED light generates a certain amount of heat when it is lit, and reducing the use of the LED light can reduce the burning sensation in the oral cavity and improve the patient experience.
[0051] It should be noted that, without switching between the target mode and the target doctor account, each time a new target depth is obtained, the associated parameter set can be retrieved based on the target depth. If there are target light parameters with the same depth, they can be directly called without recalculation. For example, if the doctor is performing an examination in the same position on the left and right sides of the mouth, directly calling the same target light parameters can meet the imaging requirements.
[0052] Additionally, in one embodiment, reference is made to Figure 3 After step S42 is completed, the following steps are included, but are not limited to: S45, when the target doctor account is associated with at least multiple associated parameter sets, the multiple associated parameter sets with the same target light parameters are merged into a reference parameter set. The reference parameter set includes target light parameters, depth range, reflection range and target mode. The depth range is determined based on the target depth of the multiple associated parameter sets being merged, and the reflection range is determined based on the target reflection parameters of the multiple associated parameter sets being merged. S46, while maintaining the target mode and the target doctor account, the target parameter set is determined from multiple reference parameter sets based on the real-time depth information and real-time reflection parameters of the camera. The real-time depth information is used to characterize the real-time oral cavity depth of the camera and is within the depth range of the target parameter set. The real-time reflection parameters characterize the reflection characteristics of the current oral tissue and are within the reflection range of the target parameter set. S47, in response to the image acquisition signal, configures the LED light using the target light parameters of the target parameter set.
[0053] It should be noted that as doctors continue to use the system, multiple sets of associated parameters will be generated. In this embodiment, the target light parameters are used as the fusion basis to fuse multiple sets of associated parameters under the same target light parameters into a reference parameter set. Since each set of associated parameters records the corresponding target depth, this embodiment combines multiple target depths into a depth range and multiple target reflectivity parameters into a reflectivity range. Furthermore, because it is a target-associated mode, under the target mode, if both the depth and reflectivity characteristics are met, directly calling the corresponding target light parameters will certainly meet the requirements. That is, this embodiment uses the fused depth range and reflectivity range to represent a lighting requirement scenario, and under this scenario, the corresponding target light parameters are directly called.
[0054] It should be noted that determining real-time depth information in real time is a technique well known to those skilled in the art. In this embodiment, the target parameter set is determined in real time based on the real-time depth information and the real-time reflection parameters. When the real-time depth information can satisfy the depth range of the target parameter set and the real-time reflection parameters satisfy the reflection range of the target parameter set, it can be determined that the current location is in the shooting scene represented by the target parameter set.
[0055] It should be noted that after determining the target parameter set, this embodiment does not directly call the target light parameters to control the LED light. The endoscope may be in the process of moving rather than reaching the imaging position. Therefore, this embodiment only pre-calls the target light parameters. When the image acquisition signal is obtained, the target light parameters are directly called to start the LED light, which can quickly and accurately control the LED light. The image acquisition signal can be triggered by the control button.
[0056] like Figure 4 As shown, Figure 4 This is a structural diagram of a parameter setting device for an endoscope system according to an embodiment of the present invention. The present invention also provides a parameter setting device for an endoscope system, comprising: The processor 401 can be implemented using a general-purpose central processing unit (CPU), microprocessor, application specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 402 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 402 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 402 and is called and executed by the processor 401 to execute a parameter setting method for an endoscope system according to an embodiment of this application. Input / output interface 403 is used to implement information input and output; The communication interface 404 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 405 transmits information between various components of the device (e.g., processor 401, memory 402, input / output interface 403, and communication interface 404); The processor 401, memory 402, input / output interface 403 and communication interface 404 are connected to each other within the device via bus 405.
[0057] This application also provides an electronic device, including a parameter setting device for an endoscope system as described above.
[0058] This application embodiment also provides a storage medium, which is a computer-readable storage medium, storing a computer program that, when executed by a processor, implements the parameter setting method of the endoscope system described above.
[0059] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof. The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate, and may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0060] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0061] The above provides a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.
Claims
1. A method for setting parameters of an endoscope system, characterized in that, Applied to an endoscope, the endoscope including a camera and an LED light, the method includes: Obtain the target depth of the camera, wherein the target depth is used to characterize the oral cavity depth at the target location of the camera; Determine the target reflectivity parameters at the target location, wherein the target reflectivity parameters are used to characterize the reflectivity of oral tissues; The target lighting parameters are determined based on the target depth and the target reflectivity parameters. The LED light [JQ1] is configured based on the target lighting parameters. The target image at the target location is acquired through the camera.
2. The parameter setting method for an endoscope system according to claim 1, characterized in that, The endoscope is equipped with at least one control button and includes multiple preset modes [JQ2]. Different preset modes are used to characterize different lighting requirements. Target lighting parameters are determined based on the target depth and the target reflectivity, including: Determine the target mode selected from the multiple preset modes via the control buttons; Based on the target depth and the target reflectivity parameters, the target lighting parameters corresponding to the target mode are determined, wherein the target lighting parameters corresponding to different preset modes are different under the target depth and the target reflectivity parameters.
3. The parameter setting method for an endoscope system according to claim 2, characterized in that, The endoscope is communicatively connected to a display device, which is used to display the target image. The endoscope is equipped with multiple preset doctor accounts, each preset doctor account is associated with multiple preset sample sets, each preset sample set records preset depth information and multiple preset reference images, and each preset reference image is associated with a preset mode. Based on the target depth and the target reflectivity parameters, the target light parameters corresponding to the target pattern are determined, including: Obtain the target doctor account logged in by the user through the display device, and determine multiple preset sample sets of the target doctor account as candidate sample sets; A target sample set is determined from multiple candidate sample sets based on the target depth, and a target reference image is determined from the target sample set based on the target pattern; The target light parameters are determined based on the target depth, the target reflectivity parameters, and the target reference image [JQ3].
4. The parameter setting method for an endoscope system according to claim 3, characterized in that, Determining the target light parameters based on the target depth, the target reflectivity parameters, and the target reference image includes: Determine the reference reflectance parameters of the target reference image; The target light parameters are determined based on the target depth, the preset calibration coefficient, the target reflectivity, and the reference reflectivity.
5. The parameter setting method for an endoscope system according to claim 3, characterized in that, After acquiring a target image of the target location via the camera, the method further includes: A set of associated parameters is generated based on the target depth, the target reflectivity parameters, the target pattern, and the target lighting parameters; The set of associated parameters is associated with the target doctor's account.
6. The parameter setting method for an endoscope system according to claim 5, characterized in that, After associating the set of associated parameters with the target doctor's account, the method further includes: Switch the LED light to standby mode; While maintaining the target mode and the target doctor account, when a new target depth is obtained and the associated parameter set is matched based on the new target depth, the LED light is reconfigured based on the target light parameters, and a new target image is obtained through the camera.
7. The parameter setting method for an endoscope system according to claim 5, characterized in that, After associating the set of associated parameters with the target doctor's account, the method further includes: When the target doctor account is associated with at least a plurality of the associated parameter sets, the plurality of associated parameter sets with the same target light parameters are merged into a reference parameter set, wherein the reference parameter set includes the target light parameters, depth range, reflectivity range and target mode, the depth range is determined based on the target depth of the plurality of associated parameter sets being merged, and the reflectivity range is determined based on the target reflectivity parameters of the plurality of associated parameter sets being merged; While maintaining the target mode and the target doctor account, a target parameter set is determined from multiple reference parameter sets based on the real-time depth information and real-time reflection parameters of the camera. The real-time depth information is used to characterize the real-time oral cavity depth of the camera, and the real-time depth information is within the depth range of the target parameter set. The real-time reflection parameters characterize the reflective properties of the current oral tissue, and the real-time reflection parameters are within the reflection range of the target parameter set. In response to an image acquisition signal, the LED light is configured using the target light parameters of the target parameter set.
8. A parameter setting device for an endoscope system, characterized in that, It includes at least one control processor and a memory for communicatively connecting to the at least one control processor; the memory stores instructions executable by the at least one control processor, which, when executed by the at least one control processor, enable the at least one control processor to perform a parameter setting method for an endoscope system as described in any one of claims 1 to 7.
9. An electronic device, characterized in that, Includes a parameter setting device for an endoscope system as described in claim 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing a computer to perform a parameter setting method for an endoscope system as described in any one of claims 1 to 7.