CN-122004723-A - Endoscope imaging control method and related product
Abstract
The application provides an endoscope imaging control method and a related product. The method comprises the steps of responding to a switching instruction for switching a current imaging mode to a target imaging mode in an automatic dimming mode, executing the steps of obtaining a first model dimming parameter of an endoscope system in the current imaging mode, wherein the first model dimming parameter is at least one part of the current dimming parameter, inputting model input information into a parameter prediction model to predict and obtain a second model dimming parameter in the target imaging mode, obtaining the target dimming parameter based on the parameter, wherein the second model dimming parameter is at least one part of the target dimming parameter, the model input information comprises the current imaging mode, the first model dimming parameter and the target imaging mode, the target dimming parameter is used for the difference value between the image brightness in the target imaging mode and the target image brightness in a preset range, and controlling the endoscope system to switch the current dimming parameter to the target dimming parameter. The scheme can effectively improve the image dithering problem.
Inventors
- HE SHUO
- CHEN JIDE
Assignees
- 深圳开立生物医疗科技股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20250328
Claims (13)
- 1. An endoscope imaging control method is characterized by being used for an endoscope system, and comprises the following steps: in the automatic dimming mode, in response to a switching instruction to switch the current imaging mode to the target imaging mode, the following imaging control operation is performed: acquiring a first model dimming parameter of the endoscope system in the current imaging mode, wherein the first model dimming parameter is at least one part of current dimming parameters; Inputting model input information into a parameter prediction model to perform parameter prediction so as to predict and obtain a second model dimming parameter of the endoscope system in the target imaging mode, and obtaining a target dimming parameter based on the second model dimming parameter, wherein the second model dimming parameter is at least part of dimming parameters in the target dimming parameters, the model input information comprises the current imaging mode, the first model dimming parameter and the target imaging mode, the current dimming parameter and the target dimming parameter are parameters capable of adjusting the image brightness of an image acquired by the endoscope system, and the target dimming parameter is used for enabling a difference value between the image brightness of the image acquired by the endoscope system in the target imaging mode and the target image brightness to be in a preset range, and the target image brightness and the preset range are references for the current execution of automatic dimming by the endoscope system; and controlling the endoscope system to switch the current dimming parameter to the target dimming parameter.
- 2. The endoscopic imaging control method of claim 1, wherein the first model dimming parameter comprises a current exposure time, a current gain, and a current driving value of the endoscopic system, the current driving value being a driving value corresponding to at least a portion of light sources that are illuminated in the current imaging mode; the second model dimming parameter comprises a target exposure time, a target gain and a target driving value of the endoscope system, wherein the target driving value is a driving value corresponding to at least part of light sources which are lighted in the target imaging mode.
- 3. The endoscope imaging control method according to claim 2, wherein the target drive value is a drive value corresponding to a reference light source that is lighted in the target imaging mode; the obtaining the target dimming parameter based on the second model dimming parameter includes: determining driving values corresponding to non-reference light sources except the reference light source in the light sources lighted in the target imaging mode based on the target driving values and the lighting proportion among the light sources lighted in the target imaging mode; the target dimming parameter comprises driving values corresponding to the second model dimming parameter and the non-reference light source respectively.
- 4. The endoscopic imaging control method according to claim 3, wherein, The reference light source is one or more of the light sources which need to be lightened in the current imaging mode and the target imaging mode; the current driving value is a driving value corresponding to the reference light source which is lightened in the current imaging mode.
- 5. The endoscopic imaging control method of claim 1, wherein the model input information further includes the target image brightness, the inputting of the model input information into a parameter prediction model for parameter prediction to predictively obtain a second model dimming parameter of the endoscopic system in the target imaging mode comprises: And inputting the model input information into a unified parameter prediction model to perform parameter prediction so as to obtain the second model dimming parameter in a prediction mode.
- 6. The endoscopic imaging control method according to claim 1, wherein different parameter prediction models are preset for different lens types and/or different target image brightnesses; Before the model input information is input into a parameter prediction model to perform parameter prediction to obtain a second model dimming parameter of the endoscope system in the target imaging mode, the imaging control operation further includes: Acquiring a parameter prediction model corresponding to the brightness of the target image and/or the type of a lens of the endoscope system; the inputting the model input information into a parameter prediction model for parameter prediction to obtain a second model dimming parameter of the endoscope system in the target imaging mode in a prediction mode comprises the following steps: And inputting the model input information into a parameter prediction model corresponding to the target image brightness and/or the lens type of the endoscope system to perform parameter prediction so as to obtain the second model dimming parameter in a prediction mode.
- 7. The endoscope imaging control method according to any one of claims 1 to 6, wherein the parameter prediction model is constructed based on a preset mapping relationship, the preset mapping relationship is used for representing a correspondence between an observation distance, a target image brightness, and model dimming parameters corresponding to each imaging mode, the observation distance is a distance between the endoscope system and a target object, and in the preset mapping relationship, the model dimming parameters corresponding to each imaging mode are dimming parameters used when a difference between an image brightness of an image acquired by the endoscope system in the imaging mode and a corresponding target image brightness is within the preset range.
- 8. The endoscopic imaging control method of claim 7, wherein the parametric prediction model is obtained by: Controlling the endoscope system to respectively image in a plurality of imaging modes and respectively record model dimming parameters corresponding to differences between the image brightness of the acquired image and the brightness of each target image in the preset range aiming at each preset observing distance in a plurality of different preset observing distances so as to determine the corresponding relation between the model dimming parameters corresponding to each imaging mode under the same preset observing distance and the same target image brightness, wherein the plurality of imaging modes comprise the current imaging mode and the target imaging mode; And performing polynomial fitting according to the corresponding relation between the model dimming parameters corresponding to the imaging modes so as to obtain the parameter prediction model.
- 9. The endoscopic imaging control method according to claim 8, wherein said performing polynomial fitting according to the correspondence between model dimming parameters corresponding to the respective imaging modes to obtain the parameter prediction model comprises: According to the corresponding relation between model dimming parameters corresponding to various imaging modes under various different target image brightness and various different preset observation distances, polynomial fitting is carried out so as to obtain a unified parameter prediction model, or And performing polynomial fitting on each target image brightness in a plurality of different target image brightnesses according to the corresponding relation between the target image brightness and the model dimming parameters corresponding to each imaging mode under a plurality of different preset observation distances so as to obtain a parameter prediction model corresponding to the target image brightness.
- 10. The endoscope system is characterized by comprising an illumination device, a mirror body, a light source processor, an image processor, a display and a controller, wherein the illumination device comprises a light source; the endoscope imaging control method comprises the steps of controlling a light source in the illumination device to emit light to a target object, arranging an image acquisition device on the mirror body, receiving the light returned from the target object and generating an image signal, connecting the image processor with the image acquisition device of the mirror body, receiving the image signal and generating an endoscope image based on the image signal, connecting a display with the image processor and displaying the endoscope image, and connecting the controller with the light source processor and the image processor respectively and executing the endoscope imaging control method according to any one of claims 1-9.
- 11. An endoscopic device comprising a processor and a memory, the memory having stored therein computer program instructions which, when executed by the processor, are adapted to carry out the endoscopic imaging control method of any of claims 1-9.
- 12. A storage medium having stored thereon program instructions for performing the endoscopic imaging control method of any of claims 1-9 when run.
- 13. A computer program product comprising computer program instructions for performing the endoscopic imaging control method according to any of claims 1-9 when run.
Description
Endoscope imaging control method and related product Technical Field The present application relates to the field of endoscope technology, and in particular, to an endoscope imaging control method, an endoscope system, an endoscope apparatus, a storage medium, and a computer program product. Background With the continued development of endoscope technology, endoscopy and therapeutic applications are becoming increasingly widespread. For example, colonoscopy is one of the important techniques for diagnosing and treating lower gastrointestinal disorders such as colorectal polyps, tumors, and the like. During an endoscopic procedure, endoscopic images may be acquired in real time for viewing. In the related art, an endoscope system generally has an automatic dimming function. In the automatic dimming mode, the endoscope system can automatically adjust the image brightness to the target image brightness when the image brightness differs greatly from the target image brightness. The endoscope system may also have a plurality of different imaging modes, with differences in illumination spectra and image processing parameters in the different imaging modes resulting in differences in image brightness of the acquired endoscope images. If switching between imaging modes is performed in the automatic dimming mode, fluctuation in image brightness is very likely to occur, causing image shake. Disclosure of Invention The present application has been made in view of the above-described problems. The application provides an endoscope imaging control method, an endoscope imaging control device, an endoscope system, an endoscope apparatus, a storage medium and a computer program product. The scheme can effectively improve the problem of image shake caused by image mode switching in the automatic dimming mode. According to one aspect of the application, an endoscope imaging control method is provided for an endoscope system, the method comprises the following steps of responding to a switching instruction for switching a current imaging mode to a target imaging mode in an automatic dimming mode, executing imaging control operation, namely acquiring first model dimming parameters of the endoscope system in the current imaging mode, wherein the first model dimming parameters are at least partial dimming parameters in the current dimming parameters, inputting model input information into a parameter prediction model for parameter prediction so as to obtain second model dimming parameters of the endoscope system in the target imaging mode in a prediction mode, and obtaining target dimming parameters based on the second model dimming parameters, wherein the second model dimming parameters are at least partial dimming parameters in the target dimming parameters, the model input information comprises the current imaging mode, the first model dimming parameters and the target imaging mode, the current dimming parameters are parameters capable of adjusting the image brightness of an image acquired by the endoscope system, the target dimming parameters are used for enabling a difference value between the image brightness of the image acquired by the endoscope system in the target imaging mode and the target image brightness to be within a preset range, the target image brightness and the preset range is automatically obtained as a reference dimming parameter of the endoscope system, and executing the current dimming control operation. The first model dimming parameter includes a current exposure time, a current gain, and a current driving value of the endoscope system, the current driving value is a driving value corresponding to at least a portion of the light sources that are lighted in the current imaging mode, and the second model dimming parameter includes a target exposure time, a target gain, and a target driving value of the endoscope system, the target driving value is a driving value corresponding to at least a portion of the light sources that are lighted in the target imaging mode. The target driving value is a driving value corresponding to a reference light source which is lighted in a target imaging mode, and the target dimming parameter is obtained based on a second model dimming parameter, wherein the target dimming parameter comprises a driving value corresponding to a non-reference light source except the reference light source in the light sources which are lighted in the target imaging mode, which is determined based on the target driving value and the luminous proportion among the light sources which are lighted in the target imaging mode, and the target dimming parameter comprises the driving value corresponding to the second model dimming parameter and the driving value corresponding to the non-reference light source. The reference light source is one or more of the light sources required to be lightened in the current imaging mode and the target imaging mode, and the current driving value is a driving value co