Endoscope image display method, apparatus, terminal, and storage medium
By identifying abnormal boundary regions in endoscopic images and adjusting the luminescence brightness of the luminescent structure, the problem of overexposure in endoscopic image display was solved, achieving higher quality image display.
Patent Information
- Application Number
- CN202210912046.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-07-29
AI Technical Summary
Existing endoscopic image display methods suffer from image overexposure, especially in the boundary areas where white pixel defects are prone to appear, affecting the judgment of medical staff.
By identifying abnormal boundary regions in endoscopic images, the brightness of the corresponding light-emitting structures is adjusted so that the difference between the brightness of the structures and the image brightness is no greater than a difference threshold, thereby eliminating overexposed areas and improving image display quality.
It effectively eliminates overexposure problems in endoscopic images, improves image display quality, and achieves a uniform transition from the boundary area to the center area.
Smart Images

Figure CN117522751B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and in particular to an endoscopic image display method, apparatus, terminal, storage medium, and computer program product. Background Technology
[0002] With the rapid development of medical technology, people have higher demands for medical health. Endoscopes can accurately obtain images of lesions such as polyps, which is very important for early cancer screening and treatment. In the process of surgical diagnosis using endoscopes, the display of endoscopic images is the key to endoscopic examination.
[0003] Current methods for displaying endoscopic images primarily rely on the camera element built into the endoscope to acquire images of the target area. However, regardless of whether CCD (Charge Coupled Device) or CMOS (Complementary Metal Oxide Semiconductor) imaging is used, current methods may produce white spot defects on the imaging surface, also known as white pixel defects. These defects tend to appear overexposed and white in the endoscopic image display area, severely affecting medical personnel's judgment of the target area in the endoscopic image. Therefore, current endoscopic image display methods suffer from image overexposure. Summary of the Invention
[0004] Therefore, it is necessary to address the problem of image overexposure in traditional endoscopic image display methods by providing an endoscopic image display method, device, terminal, computer-readable storage medium, and computer program product that can eliminate the overexposure problem of endoscopic images and thus improve the display quality of endoscopic images.
[0005] In a first aspect, this application provides an endoscopic image acquisition method, executed by a terminal, wherein the terminal's display screen includes an image display area, and multiple boundary areas of the image display area are provided with multiple light-emitting structures, and the method includes:
[0006] Acquire endoscopic images, identify abnormal boundary regions in the endoscopic images, and determine the target luminescent structure corresponding to the abnormal boundary regions;
[0007] Acquire the image brightness of the endoscope image and determine the brightness difference between the image brightness and the luminous brightness of the target luminescent structure;
[0008] When the brightness difference value is greater than the difference threshold, the brightness of the target light-emitting structure is adjusted so that the brightness difference between the adjusted brightness of the target light-emitting structure and the image brightness is not greater than the difference threshold, and the endoscope image is displayed in the image display area.
[0009] In one embodiment, when the brightness difference value is greater than a difference threshold, adjusting the luminous brightness of the target luminous structure includes:
[0010] Obtain the theoretical brightness of the endoscopic image;
[0011] Brightness is detected in abnormal boundary regions to obtain the ambient brightness corresponding to the abnormal boundary regions; ambient brightness represents the brightness sensed in the abnormal boundary regions.
[0012] The luminance threshold range of the target luminescent structure is determined based on the difference threshold and the image brightness of the endoscopic image;
[0013] Within the luminance threshold range, the luminance value of the target luminous structure is determined to minimize the difference between the ambient luminance corresponding to the abnormal boundary region and the theoretical luminance of the endoscopic image; and the luminance of the target luminous structure is adjusted to the determined luminance value of the target luminous structure.
[0014] In one embodiment, the terminal further includes a lens module, a photoelectric converter, and an image processor to obtain the theoretical brightness of the endoscopic image, including:
[0015] The imaging mapping coefficient and the light guide attenuation coefficient are obtained; wherein, the imaging mapping coefficient is determined based on the first historical brightness and the second historical brightness, and the light guide attenuation coefficient is determined based on the third historical brightness and the fourth historical brightness; wherein, the first historical brightness is the historical image brightness of the image to be imaged received by the lens module, the second historical brightness is the historical image brightness of the image obtained by the lens module through imaging processing of the image to be imaged, the third historical brightness is the historical image brightness of the image received by the photoelectric converter, and the fourth historical brightness is the historical image brightness of the endoscope image generated by the image processor through image processing of the image after photoelectric conversion by the photoelectric converter;
[0016] Obtain the image brightness of the image to be imaged received by the lens module;
[0017] The theoretical brightness of the endoscopic image is determined based on the mapping relationship between the image brightness, imaging mapping coefficient, and light guide attenuation coefficient of the image to be imaged.
[0018] In one embodiment, adjusting the luminance of the target light-emitting structure to a determined luminance value for the target light-emitting structure includes:
[0019] Based on the luminous intensity value of the determined target luminous structure, the adjusted current value is determined according to the pre-established mapping relationship between the luminous intensity value and the current value;
[0020] Adjust the current output by the driving circuit corresponding to the target light-emitting structure to the adjusted current value.
[0021] In one embodiment, the terminal further includes a lens module, a photoelectric converter, and an image processor, and before acquiring the endoscopic image, it also includes:
[0022] The image to be imaged is processed by the lens module to obtain the image.
[0023] The image is converted into an image by a photoelectric converter, and the converted image is then sent to the image processor.
[0024] The converted image is processed by an image processor to generate an endoscopic image.
[0025] In one embodiment, a brightness sensor is deployed around the image display area of the display screen to detect the brightness of abnormal boundary areas and obtain the ambient brightness corresponding to the abnormal boundary areas, including:
[0026] The brightness of abnormal boundary areas is detected by a brightness sensor to obtain the ambient brightness corresponding to the abnormal boundary areas.
[0027] In one embodiment, a temperature sensor and a heat dissipation device are also deployed around the image display area in the display screen, and the method further includes:
[0028] Temperature sensors are used to detect the temperature of abnormal boundary areas to obtain the corresponding ambient temperature of the abnormal boundary areas.
[0029] When the ambient temperature reaches the preset temperature threshold, stop adjusting the luminous brightness of the target luminescent structure corresponding to the abnormal boundary region;
[0030] Activate the cooling system to dissipate heat until the ambient temperature drops to the preset temperature;
[0031] If the ambient temperature drops to the preset temperature, the luminous intensity of the target luminous structure corresponding to the abnormal boundary area will continue to be adjusted to the determined luminous intensity value of the target luminous structure.
[0032] Secondly, this application also provides an endoscopic image acquisition device, which is deployed on a terminal. The terminal's display screen includes an image display area, and multiple boundary areas of the image display area are provided with multiple light-emitting structures. The device includes:
[0033] The acquisition module is used to acquire endoscopic images, identify abnormal boundary regions in the endoscopic images, and determine the target luminescent structure corresponding to the abnormal boundary regions.
[0034] The determination module is used to acquire the image brightness of the endoscope image and determine the brightness difference value between the image brightness and the luminous brightness of the target luminescent structure.
[0035] The control module is used to adjust the luminous brightness of the target luminous structure when the brightness difference value is greater than the difference threshold, so that the brightness difference between the adjusted luminous brightness of the target luminous structure and the image brightness is not greater than the difference threshold, and to display the endoscope image in the image display area.
[0036] Thirdly, this application also provides a terminal. The terminal includes a display screen, wherein the display screen includes an image display area, and multiple boundary areas of the image display area are provided with multiple light-emitting structures. The terminal includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the following steps:
[0037] Acquire endoscopic images, identify abnormal boundary regions in the endoscopic images, and determine the target luminescent structure corresponding to the abnormal boundary regions;
[0038] Acquire the image brightness of the endoscope image and determine the brightness difference between the image brightness and the luminous brightness of the target luminescent structure;
[0039] When the brightness difference value is greater than the difference threshold, the brightness of the target light-emitting structure is adjusted so that the brightness difference between the adjusted brightness of the target light-emitting structure and the image brightness is not greater than the difference threshold, and the endoscope image is displayed in the image display area.
[0040] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0041] Acquire endoscopic images, identify abnormal boundary regions in the endoscopic images, and determine the target luminescent structure corresponding to the abnormal boundary regions;
[0042] Acquire the image brightness of the endoscope image and determine the brightness difference between the image brightness and the luminous brightness of the target luminescent structure;
[0043] When the brightness difference value is greater than the difference threshold, the brightness of the target light-emitting structure is adjusted so that the brightness difference between the adjusted brightness of the target light-emitting structure and the image brightness is not greater than the difference threshold, and the endoscope image is displayed in the image display area.
[0044] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0045] Acquire endoscopic images, identify abnormal boundary regions in the endoscopic images, and determine the target luminescent structure corresponding to the abnormal boundary regions;
[0046] Acquire the image brightness of the endoscope image and determine the brightness difference between the image brightness and the luminous brightness of the target luminescent structure;
[0047] When the brightness difference value is greater than the difference threshold, the brightness of the target light-emitting structure is adjusted so that the brightness difference between the adjusted brightness of the target light-emitting structure and the image brightness is not greater than the difference threshold, and the endoscope image is displayed in the image display area.
[0048] The aforementioned endoscopic image acquisition method, apparatus, terminal, storage medium, and computer program product acquire endoscopic images, identify abnormal boundary regions in the endoscopic images, and determine the target luminescent structure corresponding to the abnormal boundary regions. Since overexposed areas often appear in the boundary regions of endoscopic images, abnormal boundary regions are indeed overexposed areas in the endoscopic images. Multiple boundary regions in the image display area are equipped with multiple luminescent structures; therefore, by identifying abnormal boundary regions, the target luminescent structure corresponding to the abnormal boundary regions can be accurately determined. Adjusting the luminescence brightness of the target luminescent structure by using the brightness difference between the image brightness of the endoscopic image and the luminescence brightness of the target luminescent structure ensures that the brightness difference between the adjusted target luminescent structure and the image brightness is within a difference threshold range. The endoscopic image displayed in the image display area is an image with the abnormal boundary regions eliminated. Since the luminescence brightness of the luminescent structures is independently adjustable, adjusting only the luminescence brightness of the target luminescent structure corresponding to the abnormal boundary regions can effectively eliminate overexposure problems in the endoscopic image, thereby improving the display quality of the endoscopic image. Attached Figure Description
[0049] Figure 1 This is a flowchart illustrating an endoscopic image display method in one embodiment;
[0050] Figure 2 This is a schematic diagram of a sub-process of S600 in one embodiment;
[0051] Figure 3 This is a schematic diagram of a sub-process of S620 in one embodiment;
[0052] Figure 4 This is a flowchart illustrating an endoscopic image display method in a specific embodiment;
[0053] Figure 5 This is a schematic diagram of the image display area in a display screen in one embodiment;
[0054] Figure 6 This is a schematic diagram illustrating the deployment of multiple light-emitting structures in one embodiment;
[0055] Figure 7This is a schematic diagram of a sensor deployed on a circuit board of a light-emitting structure in one embodiment;
[0056] Figure 8 This is a structural block diagram of an endoscopic image display device in one embodiment;
[0057] Figure 9 This is an internal structure diagram of a terminal device in one embodiment. Detailed Implementation
[0058] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0059] In one embodiment, such as Figure 1 As shown, an endoscopic image display method is provided. This embodiment illustrates the application of this method to terminal 102. It is understood that this method can also be applied to a server, and further to a system including both a terminal and a server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0060] S200: Acquire endoscopic images, identify abnormal boundary regions in the endoscopic images, and determine the target luminescent structure corresponding to the abnormal boundary regions.
[0061] The endoscopic images acquired by the terminal can be obtained from an image processor deployed on the terminal or from an image acquisition device connected to the terminal. The connection methods between the terminal and the image acquisition device include, but are not limited to, RS232 serial port (Electronic Industry Association Recommended Standard 232) or DDC / CI (Display Data Channel Command Interface) protocol. The image acquisition device can specifically be an endoscope, camera, camcorder, scanner, or other devices with photographic capabilities.
[0062] Abnormal boundary areas in endoscopic images refer to overexposed, white areas in the endoscopic image. When performing surgery with an endoscope in water vapor, the specular reflection of the water is more severe, which easily results in white areas in the image display area. This overexposure is particularly severe in the boundary areas of the endoscopic image, and the brightness of abnormal boundary areas in the endoscopic image differs significantly from the overall brightness of the endoscopic image.
[0063] Abnormal boundary regions in endoscopic images can be identified using an image recognition model. Specifically, the terminal can input the endoscopic image into the image recognition model, which will output the abnormal boundary regions in the endoscopic image. The image recognition model can be trained using endoscopic sample images and their corresponding label information. The label information indicates whether abnormal boundary regions exist in the endoscopic sample image, and if so, the brightness and location information of the abnormal boundary regions.
[0064] The display screen includes a display unit, which in turn includes a light-emitting structure and a corresponding driving circuit. The light-emitting structure is a device structure that emits light through a light-emitting material. Common types of light-emitting structures include LED (Light Emitting Diode), OLED (Organic Light-Emitting Diode), and miniLED (sub-millimeter light-emitting diode). MiniLED replaces the original single backlight layer of an LCD with a large number of independent micro-LED elements. Each area of a miniLED can have its brightness finely adjusted. Because miniLED uses smaller LED elements, more dimming areas appear within the same area. Therefore, the multiple light-emitting structures set in the multiple boundary areas of the image display area in this application can be of the type of miniLED. It should be noted that this application does not specifically limit the type of light-emitting structure. The target light-emitting structure is the light-emitting structure corresponding to the abnormal boundary area.
[0065] S400: Acquire the image brightness of the endoscope image and determine the brightness difference value between the image brightness and the luminous brightness of the target luminescent structure.
[0066] In this context, the image brightness of an endoscopic image refers to the brightness of the central region of the endoscopic image. In one embodiment, the terminal can use an image recognition model to identify the image brightness of the endoscopic image. The terminal inputs the endoscopic image into the image recognition model, and the image recognition model outputs the image brightness of the endoscopic image. The image recognition model can be trained using endoscopic sample images and their corresponding label information. The label information also represents the brightness and location information of the central region of the endoscopic sample image.
[0067] The luminance of a target light-emitting structure refers to the brightness of the light emitted by that structure. Since the luminance of a light-emitting structure is controlled by the output current of its corresponding driving circuit, it can be calculated by obtaining the magnitude of the current output by the driving circuit.
[0068] In some embodiments, the terminal can calculate the difference between the image brightness of the endoscope image and the luminous brightness of the target luminescent structure to determine a brightness difference value. This brightness difference value reflects the difference between the luminous brightness of the target luminescent structure corresponding to an abnormal boundary region in the endoscope image and the image brightness of the central region of the endoscope image.
[0069] S600: When the brightness difference value is greater than the difference threshold, adjust the brightness of the target light-emitting structure so that the brightness difference between the adjusted brightness of the target light-emitting structure and the brightness of the image is not greater than the difference threshold, and display the endoscope image in the image display area.
[0070] Specifically, when the brightness difference exceeds a threshold, the terminal needs to adjust the brightness of the target luminescent structure to ensure that the difference between the adjusted target luminescent structure's brightness and the image brightness does not exceed the threshold. In other words, by adjusting the brightness of the target luminescent structure to ensure that the difference between its brightness and the brightness of the central region of the endoscopic image does not exceed the threshold, the terminal can eliminate abnormal boundary regions in the endoscopic image, achieving a uniform transition from overexposed boundary regions to the central region. The image displayed in the image display area is the endoscopic image after the abnormal boundary regions have been eliminated, resulting in higher image display quality compared to the endoscopic image before the elimination of abnormal boundary regions.
[0071] The aforementioned endoscopic image acquisition method acquires endoscopic images, identifies abnormal boundary regions within the images, and determines the target luminescent structure corresponding to these abnormal boundary regions. Since overexposed areas often appear in the boundary regions of endoscopic images, abnormal boundary regions are indeed overexposed areas. Multiple luminescent structures are located in multiple boundary regions of the image display area. Therefore, by identifying abnormal boundary regions, the target luminescent structure corresponding to each abnormal boundary region can be accurately determined. Adjusting the luminescence brightness of the target luminescent structure by using the brightness difference between the image brightness of the endoscopic image and the luminescence brightness of the target luminescent structure ensures that the brightness difference between the adjusted target luminescent structure and the image brightness is within a threshold range. The endoscopic image displayed in the image display area is an image with the abnormal boundary regions eliminated. Because the luminescence brightness of the luminescent structures is independently adjustable, adjusting only the luminescence brightness of the target luminescent structure corresponding to the abnormal boundary regions effectively eliminates overexposure problems in the endoscopic image, thereby improving the display quality of the endoscopic image.
[0072] In one embodiment, such as Figure 2 As shown, when the brightness difference value is greater than the difference threshold, adjusting the luminous brightness of the target luminous structure includes:
[0073] S620, obtains the theoretical brightness of the endoscopic image.
[0074] Among them, the theoretical brightness of the endoscope image is used to characterize the theoretical image brightness of multiple boundary regions of the endoscope image, and the theoretical brightness of the endoscope image is a theoretical value.
[0075] In some embodiments, the terminal may obtain a preset value as the theoretical brightness of the endoscopic image. This preset value may be obtained through big data analysis. For example, the terminal may perform big data statistics on the image brightness of a large number of endoscopic images and use the most frequently occurring image brightness, the average image brightness, or the median image brightness as the theoretical brightness.
[0076] In other embodiments, the theoretical brightness of the endoscopic image can also be calculated based on the image brightness, imaging mapping coefficient, and light guide attenuation coefficient of the image to be imaged. Since the endoscope's lens module processes the received image to be imaged, the generated image needs to undergo photoelectric conversion via a photoelectric converter, and then further processing by an image processor to generate the endoscopic image. The terminal can obtain the imaging mapping coefficient and light guide attenuation coefficient based on the method of converting the image to be imaged into an endoscopic image, and calculate the theoretical brightness of the endoscopic image based on the image brightness, imaging mapping coefficient, and light guide attenuation coefficient of the image to be imaged.
[0077] It should be noted that, according to the principle of endoscopic image generation, the theoretical image brightness difference between multiple boundary regions of an endoscopic image is small. However, due to overexposure, the image brightness of abnormal boundary regions in an endoscopic image will be significantly higher than the theoretical image brightness of the corresponding boundary regions in the endoscopic image.
[0078] S640 performs brightness detection on the abnormal boundary region to obtain the ambient brightness corresponding to the abnormal boundary region; the ambient brightness characterizes the brightness sensed in the abnormal boundary region.
[0079] In this context, the abnormal boundary region in the endoscopic image is one of multiple boundary regions in the endoscopic image. The terminal can use a brightness sensor to detect the brightness of the abnormal boundary region and obtain the ambient brightness corresponding to the abnormal boundary region. This ambient brightness represents the brightness sensed in the abnormal boundary region.
[0080] S660 determines the luminous brightness threshold range of the target luminous structure based on the difference threshold and the image brightness of the endoscopic image.
[0081] Specifically, if the difference between the image brightness and the luminance of the target luminescent structure is greater than 0 and less than the difference threshold, then the luminance range of the target luminescent structure is the range between the difference between the image brightness and the difference threshold of the endoscopic image and the image brightness of the endoscopic image. If the absolute value of the difference between the image brightness and the luminance of the target luminescent structure is less than the difference threshold, then the luminance range of the target luminescent structure is the range between the difference between the image brightness and the difference threshold of the endoscopic image and the sum of the image brightness and the difference threshold of the endoscopic image.
[0082] S680, within the luminance threshold range, determine the luminance value of the target luminous structure to minimize the difference between the ambient luminance corresponding to the abnormal boundary region and the theoretical luminance of the endoscopic image; and adjust the luminance of the target luminous structure to the determined luminance value of the target luminous structure.
[0083] Understandably, since ambient brightness is affected by the luminance of the target luminescent structure, a change in the luminance value of the target luminescent structure will also change the ambient brightness corresponding to the abnormal boundary region. Therefore, the terminal can adjust the luminance value of the target luminescent structure to find the luminance value of the target luminescent structure that minimizes the difference between the ambient brightness corresponding to the abnormal boundary region and the theoretical brightness of the endoscopic image.
[0084] In one embodiment, the terminal determines the luminance value of the target luminous structure within the luminance threshold range and adjusts the luminance of the target luminous structure to the determined luminance value. This minimizes the difference between the ambient brightness corresponding to the abnormal boundary region and the theoretical brightness of the endoscopic image, ensuring that the difference between the ambient brightness corresponding to the abnormal boundary region and the theoretical image brightness corresponding to the abnormal boundary region in the endoscopic image is small. This further alleviates the overexposure problem in the endoscopic image, helps to eliminate the overexposure problem in the endoscopic image, and thus improves the display quality of the endoscopic image.
[0085] In the above embodiments, the luminance threshold range of the target luminous structure is determined by using a difference threshold and the image brightness of the endoscopic image. To minimize the difference between the ambient brightness corresponding to the abnormal boundary region and the theoretical brightness of the endoscopic image, the luminance of the target luminous structure is adjusted to a determined luminance value. This luminance value is determined within the luminance threshold range. Since adjusting the luminance of the target luminous structure within this range ensures that the difference between the adjusted luminance and the image brightness is not greater than the difference threshold, a uniform transition from the overexposed boundary region to the central region in the endoscopic image is achieved. The luminance value of the target luminous structure determined within the luminance threshold range minimizes the difference between the ambient brightness corresponding to the abnormal boundary region and the theoretical brightness of the endoscopic image, ensuring a small difference between the ambient brightness corresponding to the abnormal boundary region and the theoretical image brightness corresponding to the abnormal boundary region in the endoscopic image. This further alleviates the overexposure problem in the endoscopic image, helps eliminate overexposure, and ultimately improves the display quality of the endoscopic image.
[0086] In one embodiment, such as Figure 3 As shown, the terminal also includes a lens module, a photoelectric converter, and an image processor to obtain the theoretical brightness of the endoscopic image, including:
[0087] S622, obtain the imaging mapping coefficient and the light guide attenuation coefficient; wherein, the imaging mapping coefficient is determined based on the first historical brightness and the second historical brightness, and the light guide attenuation coefficient is determined based on the third historical brightness and the fourth historical brightness; wherein, the first historical brightness is the historical image brightness of the image to be imaged received by the lens module, the second historical brightness is the historical image brightness of the image obtained by the lens module through imaging processing of the image to be imaged, the third historical brightness is the historical image brightness of the image received by the photoelectric converter, and the fourth historical brightness is the historical image brightness of the endoscope image generated by the image processor through image processing of the image after photoelectric conversion by the photoelectric converter.
[0088] Understandably, after receiving the image to be imaged, the terminal needs to perform a series of processing steps to generate an endoscopic image. Specifically, the lens module in the terminal receives the image to be imaged and performs imaging processing to generate an image; the photoelectric converter receives the image and performs photoelectric conversion to generate a photoelectric converted image; and the image processor processes the photoelectric converted image to generate the endoscopic image.
[0089] Specifically, the terminal can acquire the historical image brightness of the image to be imaged received by the lens module and use it as the first historical brightness; acquire the historical image brightness of the image obtained by the lens module through imaging processing of the image to be imaged and use it as the second historical brightness; acquire the historical image brightness of the image received through the photoelectric converter and use it as the third historical brightness; and acquire the historical image brightness of the endoscope image generated by the image processor through image processing of the image after photoelectric conversion by the photoelectric converter and use it as the fourth historical brightness. Furthermore, the terminal can use the ratio of the second historical brightness to the first historical brightness as the imaging mapping coefficient, and the ratio of the fourth historical brightness to the third historical brightness as the light guide attenuation coefficient.
[0090] S624, acquire the image brightness of the image to be imaged received by the lens module.
[0091] The image brightness of the image to be imaged refers to the brightness of the image. Methods for obtaining the image brightness of the image to be imaged include: obtaining the image brightness of the image to be imaged through an image recognition model, or calculating it by detecting the grayscale value of each pixel in the image to be imaged.
[0092] S626, determine the theoretical brightness of the endoscopic image based on the mapping relationship between the image brightness, imaging mapping coefficient, and light guide attenuation coefficient of the image to be imaged.
[0093] The mapping relationship between the image brightness, imaging mapping coefficient, and light guide attenuation coefficient of the image to be imaged can be as follows: the product of the image brightness of the image to be imaged and the imaging mapping coefficient is the image brightness of the image being imaged, and the product of the image brightness of the image being imaged and the light guide attenuation coefficient is the theoretical brightness of the endoscope image.
[0094] Therefore, the terminal can multiply the image brightness of the image to be imaged by the imaging mapping coefficient to obtain the image brightness of the image being imaged, and then multiply the image brightness of the image being imaged by the light guide attenuation coefficient to obtain the theoretical brightness of the endoscope image.
[0095] In the above embodiments, an imaging mapping coefficient is obtained by using the historical image brightness of the image to be imaged received by the lens module and the historical image brightness of the image obtained by the lens module through imaging processing of the image to be imaged. A light guide attenuation coefficient is obtained by using the historical image brightness of the image received by the photoelectric converter and the historical image brightness of the endoscope image generated by the image processor through image processing of the image after photoelectric conversion by the photoelectric converter. The theoretical brightness of the endoscope image is calculated based on the mapping relationship between the image brightness of the image to be imaged, the imaging mapping coefficient, and the light guide attenuation coefficient. A mathematical model is established based on the historical image brightness of the image to be imaged and the historical image brightness of the endoscope image. The image brightness of the image to be imaged received by the lens module is substituted into the established mathematical model to calculate the theoretical brightness of the endoscope image. Therefore, the theoretical brightness of the endoscope image is a theoretical calculation value, not an actual measurement value, while the ambient brightness corresponding to the abnormal boundary area in the endoscope image is an actual measurement value. Comparing the theoretical brightness of the endoscope image with the ambient brightness corresponding to the abnormal boundary area in the endoscope image helps to eliminate the overexposure problem in the endoscope image, thereby improving the display quality of the endoscope image.
[0096] In one embodiment, adjusting the luminance of the target light-emitting structure to a predetermined luminance value of the target light-emitting structure includes: determining an adjusted current value based on the predetermined luminance value of the target light-emitting structure and according to a pre-established mapping relationship between luminance values and current values; and adjusting the current output by the driving circuit corresponding to the target light-emitting structure to the adjusted current value.
[0097] Each light-emitting structure has a corresponding driving circuit, which adjusts the output current to control the brightness of the light-emitting structure. Therefore, the terminal can construct a mapping relationship between brightness and current values based on the historical brightness values and corresponding historical output current values of the light-emitting structures. Then, by substituting the brightness value of the target light-emitting structure into the mapping relationship, the adjusted current value can be determined. Next, by adjusting the current output by the driving circuit corresponding to the target light-emitting structure to the adjusted current value, the brightness of the target light-emitting structure can be guaranteed to equal the determined brightness value.
[0098] In the above embodiments, by substituting the determined luminance value of the target light-emitting structure into the mapping relationship between luminance value and current value, the adjusted current value can be determined. Adjusting the current output by the driving circuit corresponding to the target light-emitting structure to the adjusted current value ensures that the luminance of the target light-emitting structure is equal to the determined luminance value. Using the adjustment of the output current of the driving circuit corresponding to the target light-emitting structure to control the luminance of the target light-emitting structure is beneficial for individually adjusting the luminance of the target light-emitting structure. Based on the pre-built mapping relationship between luminance value and current value, the adjusted current value can be determined, enabling accurate adjustment of the luminance of the target light-emitting structure. This is beneficial for improving the display quality of endoscopic images in the process of eliminating overexposure problems in endoscopic images.
[0099] In one embodiment, the terminal further includes a lens module, a photoelectric converter, and an image processor. Before acquiring the endoscope image, the terminal further includes: performing imaging processing on the image to be imaged through the lens module to obtain an image; performing photoelectric conversion on the imaged image through the photoelectric converter to obtain a converted image, and sending the converted image to the image processor; and performing image processing on the converted image through the image processor to generate an endoscope image.
[0100] Understandably, after receiving the image to be imaged, the terminal needs to perform a series of processing steps to generate an endoscopic image. In some embodiments, the terminal processes the image to be imaged using a lens module to obtain an image, and sends the image to a photoelectric converter. The terminal then performs photoelectric conversion on the image to obtain a converted image, and sends the converted image to an image processor. The terminal then processes the converted image using the image processor to generate an endoscopic image.
[0101] Among them, the display method of endoscope images generated by the image processor includes two specific implementation methods:
[0102] The first implementation involves the terminal acquiring an endoscopic image generated by an image processor, adjusting the brightness of the target luminescent structure to ensure that the difference between the adjusted brightness of the target luminescent structure and the image brightness does not exceed a threshold value, and then displaying the endoscopic image in the image display area of the screen.
[0103] The second implementation method is, as referenced Figure 4The terminal processes the converted image using an image processor to generate an endoscopic image, which is then sent to the display screen for display. The brightness of the target light-emitting structure is adjusted so that the difference between the brightness of the adjusted target light-emitting structure and the brightness of the image is no greater than a difference threshold. After the adjustment is completed, the display screen shows the endoscopic image of the boundary area with the abnormality eliminated.
[0104] In the above embodiments, the lens module receives the image to be imaged and performs imaging processing on the image to be imaged. Then, it performs photoelectric conversion through a photoelectric converter, and then performs image processing through an image processor. Finally, an endoscope image is generated. The display screen shows the endoscope image generated after multiple conversion processes on the image to be imaged, rather than the image to be imaged. Since the distance from each region to the lens module in the image to be imaged is different, according to the imaging principle, the image brightness of each region in the obtained image to be imaged has a certain difference. Similarly, the image brightness of each region in the generated endoscope image also has a certain difference. Based on the imaging processing, photoelectric conversion, and the endoscope image generated after image processing, it is possible to flexibly process different images to be imaged and generate endoscope images with better display quality.
[0105] In one embodiment, a brightness sensor is deployed around the image display area in the display screen to detect the brightness of abnormal boundary areas and obtain the ambient brightness corresponding to the abnormal boundary areas. This includes: detecting the brightness of abnormal boundary areas using a brightness sensor to obtain the ambient brightness corresponding to the abnormal boundary areas.
[0106] Among them, a brightness sensor is deployed around the image display area in the display screen. The brightness sensor is used to detect the brightness of abnormal boundary areas in the endoscopic image, that is, to detect the brightness around the target light-emitting structure corresponding to the abnormal boundary area, and to obtain the ambient brightness corresponding to the abnormal boundary area.
[0107] In the above embodiments, by deploying a brightness sensor around the image display area of the display screen, the ambient brightness corresponding to the abnormal boundary area can be detected. The ambient brightness is the actual measured value and is used to compare with the theoretical brightness of the endoscope image to adjust the luminous brightness of the target light-emitting structure. This helps to effectively eliminate the overexposure problem in the endoscope image and thus improve the display quality of the endoscope image.
[0108] In one embodiment, a temperature sensor and a heat dissipation device are also deployed around the image display area on the display screen. The method for displaying endoscopic images further includes: detecting the temperature of the abnormal boundary area using the temperature sensor to obtain the ambient temperature corresponding to the abnormal boundary area; stopping the adjustment of the luminous brightness of the target light-emitting structure corresponding to the abnormal boundary area when the ambient temperature reaches a preset temperature threshold; activating the heat dissipation device to dissipate heat until the ambient temperature drops to a preset temperature; and continuing to adjust the luminous brightness of the target light-emitting structure corresponding to the abnormal boundary area to a determined luminous brightness value of the target light-emitting structure if the ambient temperature drops to the preset temperature.
[0109] Temperature sensors and heat dissipation devices are also deployed around the image display area of the display screen. The temperature sensors are used to detect the temperature of abnormal boundary areas, and the heat dissipation devices are used to dissipate heat from the light-emitting structure.
[0110] The terminal uses a temperature sensor to detect the temperature of the abnormal boundary area and obtain the corresponding ambient temperature. When the temperature sensor detects that the ambient temperature corresponding to the abnormal boundary area has reached a preset temperature threshold, the terminal stops adjusting the brightness of the target light-emitting structure corresponding to the abnormal boundary area and activates the heat dissipation device to dissipate heat from the light-emitting structure until the ambient temperature corresponding to the abnormal boundary area drops to the preset temperature.
[0111] This method, which uses a temperature sensor to detect the temperature of abnormal boundary areas and stops adjusting the target light-emitting structure when the ambient temperature becomes too high, prevents damage to the function and lifespan of the light-emitting structure caused by overheating, and also prevents inaccurate brightness control due to overheating. When the ambient temperature is too high, the cooling device is activated to dissipate heat from the target light-emitting structure, shortening the time it takes for the ambient temperature to drop to the preset temperature, improving the terminal's execution efficiency, and helping to protect the lifespan of the target light-emitting structure. Once the ambient temperature drops to the preset temperature, the terminal continues to adjust the brightness of the target light-emitting structure corresponding to the abnormal boundary area to the determined brightness value, thereby eliminating overexposure problems in the endoscopic image and improving the display quality of the endoscopic image.
[0112] In the above embodiments, by deploying a temperature sensor and a heat dissipation device around the image display area on the display screen, and by using the temperature sensor to detect the temperature of abnormal boundary areas, the method of stopping the adjustment of the target light-emitting structure when the ambient temperature is too high can prevent damage to the function and lifespan of the light-emitting structure caused by overheating, and prevent inaccurate brightness control of the light-emitting structure caused by overheating. When the ambient temperature is too high, activating the heat dissipation device to cool the target light-emitting structure can shorten the time for the ambient temperature to drop to the preset temperature, improve the execution efficiency of the terminal, and help protect the lifespan of the target light-emitting structure. If the ambient temperature drops to the preset temperature, the terminal continues to adjust the brightness of the target light-emitting structure corresponding to the abnormal boundary area to the determined brightness value of the target light-emitting structure. This avoids a situation where the ambient temperature has dropped, but the overexposure problem in the endoscopic image has not been effectively eliminated, and the adjustment and control of the target light-emitting structure is in a stopped state. When the ambient temperature drops to the preset temperature, the adjustment of the brightness of the target light-emitting structure continues to be adjusted to the determined brightness value of the target light-emitting structure, which is conducive to the automatic restart of the adjustment process, thereby eliminating the overexposure problem in the endoscopic image and improving the display quality of the endoscopic image.
[0113] To illustrate the endoscopic image display method and its effects in this solution in detail, a specific embodiment is described below:
[0114] The terminal's display screen includes an image display area, such as... Figure 5 The diagram shows an image display area on a screen. Multiple boundary areas of the image display area are equipped with multiple light-emitting structures. Each boundary area corresponds to one light-emitting structure, and the brightness of each structure can be adjusted independently. Figure 6The diagram illustrates the deployment of multiple light-emitting structures. The terminal acquires images from the endoscope, either from an image processor deployed on the terminal or from an image acquisition device connected to the terminal. Image acquisition devices include cameras, camcorders, scanners, and other devices with photographic capabilities. Abnormal boundary regions in the endoscope image refer to overexposed, white areas. The display screen includes display units, each containing a light-emitting structure and corresponding driving circuits. Common types of light-emitting structures include LEDs, OLEDs, and miniLEDs. In this application, the multiple light-emitting structures set in multiple boundary regions of the image display area can be miniLEDs. It should be noted that this application does not specifically limit the type of light-emitting structure. The terminal identifies abnormal boundary regions in the endoscope image to determine the target light-emitting structure corresponding to the abnormal boundary region. Abnormal boundary regions in the endoscope image can be identified using an image recognition model. Specifically, the terminal inputs the endoscope image into the image recognition model, and the image recognition model outputs the abnormal boundary regions in the endoscope image. The image recognition model can be trained by training the machine learning model with endoscope sample images and the corresponding label information. The label information represents whether there are abnormal boundary regions in the endoscope sample images, and if there are abnormal boundary regions, the brightness and location information of the abnormal boundary regions.
[0115] The terminal acquires the image brightness of the endoscope image, which refers to the brightness of the central region of the endoscope image. The image brightness of the endoscope image can be obtained using an image recognition model. The terminal inputs the endoscope image into the image recognition model, and the model outputs the image brightness. The image recognition model is trained using endoscope sample images and their corresponding label information. The label information also represents the brightness and location information of the central region of the endoscope sample image. The luminescence brightness of the target luminescent structure refers to the brightness of the light emitted by the target luminescent structure. The luminescence brightness of the luminescent structure can be calculated by obtaining the current output of the driving circuit corresponding to the luminescent structure. The terminal subtracts the luminescence brightness of the endoscope image from the luminescence brightness of the target luminescent structure to determine the brightness difference value. When the brightness difference value exceeds the difference threshold, the terminal adjusts the brightness of the target luminescent structure to ensure that the difference between the adjusted brightness of the target luminescent structure and the brightness of the central region of the endoscopic image does not exceed the difference threshold. This eliminates abnormal boundary regions in the endoscopic image, achieving a uniform transition from overexposed boundary regions to the central region. The image displayed in the image display area is the endoscopic image after the abnormal boundary regions have been eliminated, exhibiting higher image display quality compared to the endoscopic image before elimination. When the brightness difference value exceeds the difference threshold, the terminal adjusts the brightness of the target luminescent structure by: acquiring the theoretical brightness of the endoscopic image. The theoretical brightness of the endoscopic image characterizes the theoretical image brightness of multiple boundary regions of the endoscopic image. The theoretical brightness of the endoscopic image is calculated based on the image brightness of the image to be imaged, the imaging mapping coefficient, and the light guide attenuation coefficient. The theoretical brightness of the endoscopic image is a calculated value, not a measured value.
[0116] The terminal uses a brightness sensor to detect the brightness of abnormal boundary areas, obtaining the ambient brightness corresponding to these areas. Ambient brightness characterizes the brightness sensed within the abnormal boundary areas. The luminance range of the target luminescent structure is defined as the sum of the difference between the endoscope image's brightness and the difference threshold, and the difference threshold itself. The terminal determines the luminance value of the target luminescent structure within this threshold range to minimize the difference between the ambient brightness corresponding to the abnormal boundary areas and the theoretical brightness of the endoscope image. The terminal then adjusts the luminance of the target luminescent structure to this determined value, ensuring a small difference between the ambient brightness corresponding to the abnormal boundary areas and the theoretical image brightness of the abnormal boundary areas in the endoscope image. This further mitigates overexposure issues in the endoscope image, helping to eliminate overexposure and thus improving the display quality of the endoscope image.
[0117] The terminal acquires the historical image brightness of the image to be imaged received by the lens module and uses it as the first historical brightness; it acquires the historical image brightness of the image obtained by the lens module through imaging processing of the image to be imaged and uses it as the second historical brightness; it acquires the historical image brightness of the image received through the photoelectric converter and uses it as the third historical brightness; it acquires the historical image brightness of the endoscope image generated by the image processor through image processing of the image after photoelectric conversion by the photoelectric converter and uses it as the fourth historical brightness. The ratio of the second historical brightness to the first historical brightness is used as the imaging mapping coefficient, and the ratio of the fourth historical brightness to the third historical brightness is used as the light guide attenuation coefficient. The terminal acquires the image brightness of the image to be imaged received by the lens module, multiplies the image brightness of the image to be imaged by the imaging mapping coefficient to obtain the image brightness of the image, and multiplies the image brightness of the image by the light guide attenuation coefficient to obtain the theoretical brightness of the endoscope image. Since the theoretical brightness of an endoscope image is a theoretically calculated value rather than an actual measured value, while the ambient brightness corresponding to abnormal boundary areas in an endoscope image is an actual measured value, comparing the theoretical brightness of an endoscope image with the ambient brightness corresponding to abnormal boundary areas in an endoscope image helps to eliminate overexposure problems in endoscope images, thereby improving the display quality of endoscope images.
[0118] Each light-emitting structure has a corresponding driving circuit. The driving circuit adjusts the output current to control the brightness of the light-emitting structure. The terminal constructs a mapping relationship between the brightness value and the current value based on the historical brightness value and the corresponding historical output current value of the light-emitting structure. The terminal substitutes the brightness value of the target light-emitting structure into the mapping relationship to determine the adjusted current value. By adjusting the current output by the driving circuit corresponding to the target light-emitting structure to the adjusted current value, the terminal can ensure that the brightness of the target light-emitting structure is equal to the determined brightness value.
[0119] A brightness sensor is deployed around the image display area on the screen. The terminal uses the brightness sensor to detect the brightness of abnormal boundary areas and obtain the ambient brightness corresponding to the abnormal boundary areas. A temperature sensor and a heat dissipation device are also deployed around the image display area on the screen. The brightness sensor, temperature sensor, and heat dissipation device can be specifically deployed on the circuit board of the light-emitting structure or outside the circuit board of the light-emitting structure; this application does not specifically limit the specific deployment method. Figure 7The diagram illustrates the deployment of a brightness sensor or temperature sensor on the circuit board of the light-emitting structure. The terminal uses the temperature sensor to detect the temperature of abnormal boundary areas. The method of stopping adjustment of the target light-emitting structure when the ambient temperature becomes too high prevents damage to the function and lifespan of the light-emitting structure due to overheating, and also prevents inaccurate brightness control caused by overheating. When the ambient temperature is too high, the cooling device is activated to dissipate heat from the target light-emitting structure, shortening the time it takes for the ambient temperature to drop to the preset temperature, improving the terminal's execution efficiency, and protecting the lifespan of the target light-emitting structure. If the ambient temperature drops to the preset temperature, the terminal continues to adjust the brightness of the target light-emitting structure corresponding to the abnormal boundary area to the determined brightness value. This avoids a situation where the ambient temperature has dropped, but the overexposure problem in the endoscopic image has not been effectively eliminated, resulting in a stopped adjustment control of the target light-emitting structure. Continuing to adjust the brightness of the target light-emitting structure to the determined brightness value when the ambient temperature drops to the preset temperature facilitates automatic restart of the adjustment process, thereby eliminating the overexposure problem in the endoscopic image and improving the display quality of the endoscopic image.
[0120] In addition, before acquiring the endoscopic image, the process includes: the terminal performs imaging processing on the image to be imaged through the lens module to obtain an image, and sends the image to a photoelectric converter. The terminal then performs photoelectric conversion on the image to obtain a converted image, which is sent to an image processor. The terminal performs image processing on the converted image to generate an endoscopic image. Based on the imaging processing, photoelectric conversion, and the generated endoscopic image, the system can flexibly process different images to be imaged, generating endoscopic images with better display quality. Displaying the generated endoscopic image includes two specific implementation methods: In the first implementation method, the terminal acquires the endoscopic image generated by the image processor, adjusts the brightness of the target luminescent structure, and after adjustment, the abnormal boundary areas in the endoscopic image are eliminated. The display screen then shows the endoscopic image with the abnormal boundary areas eliminated. In the second implementation method, after the terminal generates the endoscopic image through the image processor, it sends the endoscopic image to the display screen. After the display screen displays the endoscopic image, it adjusts the brightness of the target luminescent structure, and after adjustment, the display screen shows the endoscopic image with the abnormal boundary areas eliminated.
[0121] Furthermore, the terminal includes an image display area and a non-display area. When checking whether an image displayed on a screen has defects, using the Fast Fourier Transform (FFT) algorithm to perform array inspection of the image is a widely used method in the field of image processing. However, the image using the FFT algorithm requires that the entire image area must be continuous and regular. However, there are abrupt boundary changes between the image display area and the non-display area of the terminal's screen, that is, there is a large difference in brightness between the image display area and the non-display area. In this application, multiple light-emitting structures are set in multiple boundary areas of the image display area. The setting of the light-emitting structures can be flexibly adjusted according to the image display area. By independently adjusting the light emission brightness of each light-emitting structure, the problem of abrupt boundary changes can be effectively improved.
[0122] The aforementioned endoscopic image acquisition method acquires endoscopic images, identifies abnormal boundary regions within the images, and determines the target luminescent structure corresponding to these abnormal boundary regions. Since overexposed areas often appear in the boundary regions of endoscopic images, abnormal boundary regions are indeed overexposed areas. Multiple luminescent structures are located in multiple boundary regions of the image display area. Therefore, by identifying abnormal boundary regions, the target luminescent structure corresponding to each abnormal boundary region can be accurately determined. Adjusting the luminescence brightness of the target luminescent structure by using the brightness difference between the image brightness of the endoscopic image and the luminescence brightness of the target luminescent structure ensures that the brightness difference between the adjusted target luminescent structure and the image brightness is within a threshold range. The endoscopic image displayed in the image display area is an image with the abnormal boundary regions eliminated. Because the luminescence brightness of the luminescent structures is independently adjustable, adjusting only the luminescence brightness of the target luminescent structure corresponding to the abnormal boundary regions effectively eliminates overexposure problems in the endoscopic image, thereby improving the display quality of the endoscopic image.
[0123] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0124] Based on the same inventive concept, this application also provides an endoscopic image acquisition device for implementing the endoscopic image acquisition method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the endoscopic image acquisition device provided below can be found in the limitations of the endoscopic image acquisition method described above, and will not be repeated here.
[0125] In one embodiment, such as Figure 8 As shown, an endoscopic image acquisition device 100 is provided. The device is deployed on a terminal, and the terminal's display screen includes an image display area. Multiple light-emitting structures are provided in multiple boundary areas of the image display area. The device includes: an acquisition module 120, a determination module 140, and a control module 160, wherein:
[0126] The acquisition module 120 is used to acquire endoscopic images, identify abnormal boundary regions in the endoscopic images, and determine the target luminescent structure corresponding to the abnormal boundary regions.
[0127] The determination module 140 is used to acquire the image brightness of the endoscope image and determine the brightness difference value between the image brightness and the luminous brightness of the target luminescent structure.
[0128] The control module 160 is used to adjust the luminous brightness of the target luminous structure when the brightness difference value is greater than the difference threshold, so that the brightness difference between the adjusted luminous brightness of the target luminous structure and the image brightness is not greater than the difference threshold, and to display the endoscope image in the image display area.
[0129] The aforementioned endoscopic image acquisition device acquires endoscopic images, identifies abnormal boundary regions within the images, and determines the target luminescent structure corresponding to these abnormal boundary regions. Since overexposed areas often appear in the boundary regions of endoscopic images, abnormal boundary regions are indeed overexposed areas. Multiple luminescent structures are located in multiple boundary regions of the image display area. Therefore, by identifying abnormal boundary regions, the target luminescent structure corresponding to each abnormal boundary region can be determined. The luminescence brightness of the target luminescent structure is adjusted by using the brightness difference between the image brightness of the endoscopic image and the luminescence brightness of the target luminescent structure. This ensures that the brightness difference between the adjusted target luminescent structure and the image brightness is within a threshold range. The endoscopic image displayed in the image display area is an image with the abnormal boundary regions eliminated. Because the luminescence brightness of the luminescent structures is independently adjustable, adjusting only the luminescence brightness of the target luminescent structure corresponding to the abnormal boundary regions effectively eliminates overexposure problems in the endoscopic image, thereby improving the display quality of the endoscopic image.
[0130] In one embodiment, when adjusting the luminance of the target luminescent structure when the luminance difference value is greater than a difference threshold, the control module 160 is further configured to: acquire the theoretical luminance of the endoscope image; perform luminance detection on the abnormal boundary region to obtain the ambient luminance corresponding to the abnormal boundary region; the ambient luminance characterizes the luminance sensed in the abnormal boundary region; determine the luminance threshold range of the target luminescent structure based on the difference threshold and the image luminance of the endoscope image; determine the luminance value of the target luminescent structure within the luminance threshold range to minimize the difference between the ambient luminance corresponding to the abnormal boundary region and the theoretical luminance of the endoscope image; and adjust the luminance of the target luminescent structure to the determined luminance value of the target luminescent structure.
[0131] In one embodiment, the terminal further includes a lens module, a photoelectric converter, and an image processor. Regarding acquiring the theoretical brightness of the endoscopic image, the control module 160 is further configured to: acquire the imaging mapping coefficient and the light guide attenuation coefficient; wherein the imaging mapping coefficient is determined based on a first historical brightness and a second historical brightness, and the light guide attenuation coefficient is determined based on a third historical brightness and a fourth historical brightness; wherein the first historical brightness is the historical image brightness of the image to be imaged received by the lens module, the second historical brightness is the historical image brightness of the image obtained by the lens module through imaging processing of the image to be imaged, the third historical brightness is the historical image brightness of the image received by the photoelectric converter, and the fourth historical brightness is the historical image brightness of the endoscopic image generated by the image processor through image processing of the image after photoelectric conversion by the photoelectric converter; acquire the image brightness of the image to be imaged received by the lens module; and determine the theoretical brightness of the endoscopic image based on the mapping relationship between the image brightness of the image to be imaged, the imaging mapping coefficient, and the light guide attenuation coefficient.
[0132] In one embodiment, in adjusting the luminance of the target light-emitting structure to a predetermined luminance value, the control module 160 is further configured to: determine an adjusted current value based on the predetermined luminance value of the target light-emitting structure and according to a pre-built mapping relationship between luminance values and current values; and adjust the current output by the driving circuit corresponding to the target light-emitting structure to the adjusted current value.
[0133] In one embodiment, the terminal further includes a lens module, a photoelectric converter, and an image processor. The endoscopic image acquisition device 100 further includes: performing imaging processing on the image to be imaged through the lens module to obtain an image; performing photoelectric conversion on the imaged image through the photoelectric converter to obtain a converted image, and sending the converted image to the image processor; and performing image processing on the converted image through the image processor to generate an endoscopic image.
[0134] In one embodiment, a brightness sensor is deployed around the image display area in the display screen. In order to detect the brightness of abnormal boundary areas and obtain the ambient brightness corresponding to the abnormal boundary areas, the control module 160 is further configured to: detect the brightness of abnormal boundary areas through the brightness sensor and obtain the ambient brightness corresponding to the abnormal boundary areas.
[0135] In one embodiment, a temperature sensor and a heat dissipation device are also deployed around the image display area on the display screen. The endoscopic image acquisition device 100 further includes: detecting the temperature of the abnormal boundary area using the temperature sensor to obtain the ambient temperature corresponding to the abnormal boundary area; stopping the adjustment of the luminous brightness of the target light-emitting structure corresponding to the abnormal boundary area when the ambient temperature reaches a preset temperature threshold; activating the heat dissipation device to dissipate heat until the ambient temperature drops to the preset temperature; and continuing to adjust the luminous brightness of the target light-emitting structure corresponding to the abnormal boundary area to the determined luminous brightness value of the target light-emitting structure if the ambient temperature drops to the preset temperature.
[0136] Each module in the aforementioned endoscopic image display device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the terminal in hardware form or independent of it, or stored in the memory of the terminal in software form, so that the processor can call and execute the operations corresponding to each module.
[0137] In one embodiment, a terminal is provided, the internal structure of which can be shown as follows: Figure 9As shown, the terminal includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an endoscopic image display method. The display unit of the terminal is used to form a visually visible image. It can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the terminal can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the terminal shell, or external keyboards, touchpads, or mice, etc.
[0138] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the terminal to which the present application is applied. A specific terminal may include more or fewer components than those shown in the figure, or may combine certain components, or may have different component arrangements.
[0139] In one embodiment, a terminal is provided, comprising a display screen, wherein the display screen includes an image display area, and multiple boundary areas of the image display area are provided with multiple light-emitting structures. The terminal includes a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps in the above-described method embodiments.
[0140] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0141] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0142] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data shall comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0143] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0144] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0145] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for displaying endoscopic images, characterized in that, The method is executed by a terminal, wherein the terminal's display screen includes an image display area, and multiple boundary areas of the image display area are provided with multiple light-emitting structures; the method includes: Acquire endoscopic images, identify abnormal boundary regions in the endoscopic images, and determine the target luminescent structure corresponding to the abnormal boundary regions; Acquire the image brightness of the endoscope image, and determine the brightness difference value between the image brightness and the luminous brightness of the target luminescent structure; When the brightness difference value is greater than the difference threshold, the brightness of the target light-emitting structure is adjusted so that the brightness difference between the adjusted brightness of the target light-emitting structure and the brightness of the image is not greater than the difference threshold, and the endoscope image is displayed in the image display area.
2. The method according to claim 1, characterized in that, When the brightness difference value is greater than the difference threshold, adjusting the luminous brightness of the target luminous structure includes: Obtain the theoretical brightness of the endoscopic image; Brightness detection is performed on the boundary region of the anomaly to obtain the ambient brightness corresponding to the boundary region of the anomaly; the ambient brightness represents the brightness sensed in the boundary region of the anomaly. The luminance threshold range of the target luminescent structure is determined based on the difference threshold and the image brightness of the endoscopic image; Within the specified luminance threshold range, the luminance value of the target luminous structure is determined to minimize the difference between the ambient luminance corresponding to the abnormal boundary region and the theoretical luminance of the endoscopic image; and the luminance of the target luminous structure is adjusted to the determined luminance value of the target luminous structure.
3. The method according to claim 2, characterized in that, The terminal also includes a lens module, a photoelectric converter, and an image processor. The step of acquiring the theoretical brightness of the endoscopic image includes: The imaging mapping coefficient and the light guide attenuation coefficient are obtained; wherein, the imaging mapping coefficient is determined based on the first historical brightness and the second historical brightness, and the light guide attenuation coefficient is determined based on the third historical brightness and the fourth historical brightness; wherein, the first historical brightness is the historical image brightness of the image to be imaged received by the lens module, the second historical brightness is the historical image brightness of the image obtained by the lens module through imaging processing of the image to be imaged, the third historical brightness is the historical image brightness of the image received by the photoelectric converter, and the fourth historical brightness is the historical image brightness of the endoscope image generated by the image processor through image processing of the image after photoelectric conversion by the photoelectric converter; Obtain the image brightness of the image to be imaged received by the lens module; The theoretical brightness of the endoscopic image is determined based on the mapping relationship between the image brightness of the image to be imaged, the imaging mapping coefficient, and the light guide attenuation coefficient.
4. The method according to claim 2, characterized in that, Adjusting the luminance of the target light-emitting structure to the determined luminance value of the target light-emitting structure includes: Based on the determined luminous intensity value of the target luminous structure, the adjusted current value is determined according to the pre-established mapping relationship between luminous intensity value and current value; The current output by the driving circuit corresponding to the target light-emitting structure is adjusted to the adjusted current value.
5. The method according to claim 1, characterized in that, The terminal also includes a lens module, a photoelectric converter, and an image processor. Before acquiring the endoscopic image, it further includes: The image to be imaged is processed by the lens module to obtain the image. The image is converted by the photoelectric converter to obtain a converted image, and the converted image is sent to the image processor. The image processor performs image processing on the converted image to generate the endoscopic image.
6. The method according to any one of claims 2 to 4, characterized in that, A brightness sensor is deployed around the image display area in the display screen. The step of detecting the brightness of the abnormal boundary area to obtain the ambient brightness corresponding to the abnormal boundary area includes: The brightness of the abnormal boundary region is detected by the brightness sensor to obtain the ambient brightness corresponding to the abnormal boundary region.
7. The method according to claim 6, characterized in that, A temperature sensor and a heat dissipation device are also deployed around the image display area in the display screen, and the method further includes: The temperature of the abnormal boundary region is detected by the temperature sensor to obtain the ambient temperature corresponding to the abnormal boundary region. When the ambient temperature reaches a preset temperature threshold, the adjustment of the luminous brightness of the target luminescent structure corresponding to the abnormal boundary region is stopped. The heat dissipation device is activated to dissipate heat until the ambient temperature drops to the preset temperature. If the ambient temperature drops to the preset temperature, the luminous intensity of the target light-emitting structure corresponding to the abnormal boundary region is adjusted to the determined luminous intensity value of the target light-emitting structure.
8. An endoscopic image display device, characterized in that, The device is deployed on a terminal, the terminal's display screen includes an image display area, and multiple boundary areas of the image display area are provided with multiple light-emitting structures. The device includes: The acquisition module is used to acquire endoscopic images, identify abnormal boundary regions in the endoscopic images, and determine the target luminescent structure corresponding to the abnormal boundary regions. The determination module is used to acquire the image brightness of the endoscope image and determine the brightness difference value between the image brightness and the luminous brightness of the target luminescent structure; The control module is used to adjust the luminous brightness of the target luminous structure when the brightness difference value is greater than the difference threshold, so that the brightness difference between the adjusted luminous brightness of the target luminous structure and the brightness of the image is not greater than the difference threshold, and to display the endoscope image in the image display area.
9. A terminal, characterized in that, For implementing the method as described in any one of claims 1 to 7, the terminal includes a display screen, wherein the display screen includes an image display area, and a plurality of light-emitting structures are provided in the plurality of boundary areas of the image display area.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Light source brightness adjusting method and device, electronic equipment and storage medium
CN114170169A
