Image display method, device, equipment and medium
By identifying and adjusting the position information of the electronic endoscope image area, the interface adaptive display of the AI-assisted diagnosis system is realized, which solves the problem of interface differences between different types of electronic endoscope products, avoids waste of resources and improves adaptation efficiency.
Patent Information
- Application Number
- CN202011202831.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-02
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-11-02
AI Technical Summary
It is difficult for existing AI-assisted diagnosis systems to adapt to different types of electronic endoscope products, resulting in differences in interface design and display, waste of resources, and difficulty in adaptation.
By acquiring the electronic endoscopic image, identifying the endoscopic image area, determining the display position, and displaying the endoscopic image area at the adjusted position, grayscale image binarization, contour recognition, and preset algorithms are used to match position information to realize automatic interface adapt.
Different types of electronic endoscopic images can be adaptively displayed in the diagnostic system, avoiding the waste of resources developed for individual types and improving adaptation efficiency and interface consistency.
Smart Images

Figure CN112330741B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of endoscopic image display, and in particular to an image display method, device, electronic device and computer-readable storage medium. Background Art
[0002] Electronic endoscopy is the main way to examine gastrointestinal diseases. The electronic endoscopy disease auxiliary diagnosis system based on AI can improve the doctor's detection rate of gastrointestinal diseases. There are many types of electronic endoscopy products on the market, so the electronic endoscopy disease auxiliary diagnosis system based on AI needs to adapt to these electronic endoscopy products on the market. In the actual adaptation process, we found that the interface will have different designs and presentation methods for different models of electronic endoscopy products. Even when the same model of electronic endoscope is matched with different models of mirrors, there will be certain differences in the interface and display; therefore, how to make the interface of the AI-assisted diagnosis system adapt to different product models and endoscope mirror models is a problem that the present invention needs to solve.
[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention
[0004] The purpose of this application is to provide an image display method, device, electronic device and computer-readable storage medium, which can adapt to different types of interface displays. The specific scheme is as follows:
[0005] The present application provides an image display method, comprising:
[0006] Acquire electronic endoscopic images;
[0007] Identifying an endoscopic image region in the electronic endoscopic image to obtain corresponding position information;
[0008] Determine a display position of a display interface of the diagnostic system according to the position information;
[0009] The endoscopic image area is displayed at the adjusted display position.
[0010] Preferably, the identifying the endoscopic image area in the electronic endoscopic image to obtain the corresponding position information includes:
[0011] Converting the electronic endoscope image into a grayscale image, and performing binarization processing on the grayscale image to obtain a binary image;
[0012] Performing contour recognition on the binary image to obtain a closed image contour area, and calculating the size and / or area of the closed image contour area;
[0013] Filter out the closed image contour area that meets the corresponding preset size range and / or preset area range according to the size and / or the area, and determine the filtered closed image contour area as the image contour;
[0014] The position information is obtained according to the coordinates of the contour pixels of the image contour.
[0015] Preferably, the performing contour recognition on the binary image to obtain a closed image contour area includes:
[0016] Performing contour recognition on the binary image using a preset algorithm to obtain the closed image contour area;
[0017] The preset algorithm includes any one of the Canny algorithm, the Soble algorithm, and the Suzuki85 algorithm.
[0018] Preferably, the identifying the endoscopic image area in the electronic endoscopic image to obtain the corresponding position information includes:
[0019] determining the type of electronic endoscope corresponding to the electronic endoscope image;
[0020] The electronic endoscope type is matched with preset information to obtain the position information; wherein the preset information includes corresponding information between multiple electronic endoscope types and position information.
[0021] Preferably, the identifying the endoscopic image area in the electronic endoscopic image to obtain the corresponding position information includes:
[0022] receiving the endoscopic image area divided by a user;
[0023] The corresponding position information is obtained according to the endoscopic image area.
[0024] Preferably, after displaying the endoscopic image area at the adjusted display position, the method further comprises:
[0025] Receiving a user preset operation, and matching the user preset operation with the instruction-related information to obtain a corresponding operation instruction;
[0026] Execute corresponding operations according to the operation instructions.
[0027] Preferably, the receiving of a user preset operation and matching the user preset operation with instruction association information to obtain a corresponding operation instruction includes:
[0028] Reading that a cursor performs an operation of selecting a target area in the endoscopic image area of the diagnostic system;
[0029] Matching the operation of selecting the target area with the instruction-related information to obtain a recognition instruction;
[0030] Correspondingly, performing a corresponding operation according to the operation instruction includes:
[0031] The regional features are identified according to the identification instruction, and the regional features are displayed at the target location.
[0032] The present application provides an image display device, comprising:
[0033] An electronic endoscopic image acquisition module, used for acquiring electronic endoscopic images;
[0034] An identification module, used to identify the endoscopic image area in the electronic endoscopic image and obtain corresponding position information;
[0035] A position adjustment module, used to determine the display position of the display interface of the diagnostic system according to the position information;
[0036] A display module is used to display the endoscopic image area at the adjusted display position.
[0037] The present application provides an electronic device, including:
[0038] Memory for storing computer programs;
[0039] A processor is used to implement the steps of the image display method described above when executing the computer program.
[0040] The present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the image display method described above are implemented.
[0041] The present application provides an image display method, comprising: acquiring an electronic endoscopic image; identifying an endoscopic image area in the electronic endoscopic image to obtain corresponding position information; determining a display position of a display interface of a diagnostic system according to the position information; and displaying the endoscopic image area at the adjusted display position.
[0042] It can be seen that the present application identifies the endoscopic image area in the electronic endoscopic image and obtains the position information; adjusts the display position of the display interface of the diagnostic system according to the position information, and finally displays the endoscopic image area on the adjusted display interface. Different types of electronic endoscopic images can be adaptively displayed on the display interface of the diagnostic system, avoiding the waste of resources caused by the need for related technologies to develop corresponding diagnostic system display interfaces for separate types of electronic endoscopic images.
[0043] The present application also provides an image display device, an electronic device and a computer-readable storage medium, all of which have the above-mentioned beneficial effects, which will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0045] Figure 1 A flowchart of an image display method provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of an endoscopic image area provided in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of another endoscopic image area provided in an embodiment of the present application;
[0048] Figure 4 A schematic diagram of another endoscopic image area provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of a binary image provided in an embodiment of the present application;
[0050] Figure 6 A schematic diagram of an image profile provided in an embodiment of the present application;
[0051] Figure 7 A specific display schematic diagram provided for an embodiment of the present application;
[0052] Figure 8-Figure 10 Schematic diagrams of three different shapes of electronic endoscope images;
[0053] Fig.11 A schematic diagram of the structure of an image display device provided in an embodiment of the present application;
[0054] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0056] Electronic endoscopy is the main way to examine gastrointestinal diseases. The electronic endoscopy disease auxiliary diagnosis system based on AI can improve the doctor's detection rate of gastrointestinal diseases. There are many types of electronic endoscope products on the market, so the electronic endoscopy disease auxiliary diagnosis system based on AI needs to adapt to these electronic endoscope products on the market. In the actual adaptation process, we found that the interface will have different designs and presentation methods for different models of electronic endoscope products. Even the same model of electronic endoscopes will have certain differences in interface and display when paired with different models of mirrors; therefore, how to make the interface of the AI-assisted diagnosis system adapt to different product models and endoscope mirror models is a problem that the present invention needs to solve. Based on the above technical problems, this embodiment provides an image display method, please refer to the detailed description. Figure 1 , Figure 1 A flowchart of an image display method provided in an embodiment of the present application specifically includes:
[0057] S101, obtaining an electronic endoscopic image;
[0058] This application does not limit the endoscope type of the electronic endoscopic image and the endoscope model of different types of endoscopes. Users can choose according to actual needs. It is understandable that there will be differences in the display of electronic endoscopic images corresponding to different product models and endoscope models. Among them, the electronic endoscopic image includes an endoscopic image area and an area of image-related information. The endoscopic image area is used to display the detected image, and the image-related information area is used to mark relevant information such as the endoscope model, time, system parameters, etc. The endoscopic image area may be square, octagonal, or have semicircular arcs on both sides. Please refer to Figure 2 , Figure 2 A schematic diagram of an endoscopic image area provided in an embodiment of the present application; Figure 3 A schematic diagram of another endoscopic image area provided in an embodiment of the present application; Figure 4 A schematic diagram of another endoscopic image area provided in an embodiment of the present application.
[0059] S102, identifying the endoscopic image area in the electronic endoscopic image, and obtaining corresponding position information;
[0060] The purpose of this step is to obtain the position information of the endoscopic image area in the electronic endoscopic image, wherein the position information may be coordinate information.
[0061] S103, determining a display position of a display interface of the diagnosis system according to the position information;
[0062] The purpose of this step is to adapt the display position of the display interface of the adaptive diagnosis system.
[0063] In an achievable implementation, the display position of the display interface of the diagnostic system is determined according to the position information, including: after the position information is determined, a display position consistent with the position information is determined on the display interface. For example, when the endoscopic image area is a square, the obtained position information is the coordinates a, b, c, and d of the four corner points, then the display position of the display interface is also the coordinates a, b, c, and d. At this time, the display area of the display interface is dynamically adjusted to be consistent with the endoscopic image area of the electronic endoscopic image.
[0064] In another feasible implementation, the display position of the display interface of the diagnostic system is determined according to the position information, including: after the position information of the endoscopic image area is determined, a fixed display area is set in the diagnostic system, and the display position corresponding to the position information is determined in the display area.
[0065] S104. Display the endoscopic image area at the adjusted display position.
[0066] The endoscopic image area is displayed on the adjusted display interface, so as to dynamically adjust the position of the endoscopic image area displayed on the display interface.
[0067] Based on the above technical solution, this embodiment identifies the endoscopic image area in the electronic endoscopic image and obtains position information; adjusts the display position of the display interface of the diagnostic system according to the position information, and finally displays the endoscopic image area on the adjusted display interface. Different types of electronic endoscopic images can be adaptively displayed on the display interface of the diagnostic system, avoiding the waste of resources caused by the need for related technologies to develop corresponding diagnostic system display interfaces for separate types of electronic endoscopic images.
[0068] This embodiment provides a method for determining location information. Specifically, S102 includes:
[0069] S1021, converting the electronic endoscope image into a grayscale image, and performing binarization processing on the grayscale image to obtain a binary image;
[0070] Please refer to Figure 5 , Figure 5 A schematic diagram of a binarized image provided in an embodiment of the present application.
[0071] S1022, performing contour recognition on the binary image to obtain a closed image contour area, and calculating the size and area of the closed image contour area;
[0072] Perform contour recognition on the binary image to obtain the closed image contour area.
[0073] Among them, the contour recognition is performed on the binary image to obtain the closed image contour area, which is recorded as contour1, contour2, contour3...contourN, and the size of the closed image contour area is calculated and recorded as: C1, C2, C3...CN, and the area of the closed image contour area is calculated and recorded as S1, S2, S3...SN. Among them, the size can be the shortest side length of the image contour area, and of course it can also be its perimeter. This implementation is no longer limited, and the user can customize the setting.
[0074] S1023, filtering out closed image contour regions that meet a corresponding preset size range and / or preset area range according to the size and / or area, and determining the filtered closed image contour regions as image contours;
[0075] In this embodiment, the preset size range and the preset area range are not limited.
[0076] For example, filtering out a closed image contour area that meets the corresponding preset size range and / or preset area range according to the size and / or area, and determining the filtered closed image contour area as the image contour, includes: filtering out a closed image contour area that meets the preset size range according to the size, and determining the filtered closed image contour area as the image contour. For example, when the preset size range is CK1 to CK; filtering out a closed image contour area that meets the requirements through the preset size range, determining the image contour area as the image contour, and recording it as contour, and contour is the detected endoscopic image area.
[0077] For another example, filtering out a closed image contour area that meets the corresponding preset size range and / or preset area range according to the size and / or area, and determining the filtered closed image contour area as the image contour, includes: filtering out a closed image contour area that meets the preset area range according to the area, and determining the filtered closed image contour area as the image contour. For example, when the preset area range is SK1 to SK2; filtering out a closed image contour area that meets the requirements through the preset area range, determining the image contour area as the image contour, and recording it as contour, and contour is the detected endoscopic image area.
[0078] For another example, filtering out the closed image contour area that meets the corresponding preset size range and / or preset area range according to the size and / or area, and determining the filtered closed image contour area as the image contour, including: filtering out the closed image contour area that meets the corresponding preset size range and preset area range according to the size and the area, and determining the filtered closed image contour area as the image contour.
[0079] For example, when the preset size range is CK1 to CK2, and the preset area range is SK1 to SK2; a closed image contour area that meets the requirements is screened out through the preset size range and the preset area range, and the image contour area is determined as the image contour and recorded as contour. Contour is the detected endoscopic image area.
[0080] Further, performing contour recognition on the binary image to obtain a closed image contour area includes: performing contour recognition on the binary image using a preset algorithm to obtain a closed image contour area; wherein the preset algorithm includes any one of a Canny algorithm, a Soble algorithm, and a Suzuki85 algorithm. wherein the image contour corresponds to the contour of the endoscopic image area.
[0081] Please refer to Figure 6 , Figure 6 A schematic diagram of an image outline provided in an embodiment of the present application.
[0082] S1024. Obtain position information according to the coordinates of the contour pixels of the image contour.
[0083] The coordinates of the contour pixels of the image contour are used as the position information.
[0084] It can be seen that this embodiment obtains the image contour by performing contour recognition on the binary image, and then obtains the coordinates of the contour pixel points, and then generates coordinate information. The coordinate information can be determined each time the endoscope is displayed, and the interface display position can be adjusted more accurately.
[0085] This embodiment provides another method for determining location information. In order to improve the efficiency of determining location information, specifically, S102 includes: determining the type of electronic endoscope corresponding to the electronic endoscope image; matching the electronic endoscope type with preset information to obtain location information; wherein the preset information includes correspondence information between multiple electronic endoscope types and location information.
[0086] It is understandable that different electronic endoscope types correspond to different location information. Electronic endoscope type a corresponds to location information a; electronic endoscope type b corresponds to location information b; and electronic endoscope type c corresponds to location information c. Therefore, the present application determines the location information of the current electronic endoscope type by comparing the preset Western Sydney of the electronic endoscope type and location information in the storage.
[0087] It can be seen that in this embodiment, by presetting the position information of various types of electronic endoscopes, the position information is finally determined through type matching, which can greatly simplify the operation and improve the efficiency of determining the position information.
[0088] This embodiment provides another method for determining position information, in order to improve the adaptability of display, specifically, S102 includes: receiving the endoscopic image area divided by the user; and obtaining corresponding position information according to the endoscopic image area.
[0089] In this embodiment, the endoscopic image area divided by the user can be used, and the position information can be determined according to the endoscopic image area. It can be seen that in this embodiment, by using the endoscopic image area divided manually by the user, it can be displayed in a targeted manner, thereby improving the adaptability of the display.
[0090] Furthermore, it also includes: identifying the electronic endoscope image and obtaining image identification information; and displaying the image identification information on a display interface.
[0091] The image identification information is used to mark relevant information such as endoscope model, time, system parameters, etc. In this embodiment, the image identification information is displayed on the display interface, so that the user can clearly understand the relevant information corresponding to the current electronic endoscope image.
[0092] Furthermore, after the endoscopic image area is displayed at the adjusted display position, the method further includes: receiving a user preset operation, and matching the user preset operation with instruction-related information to obtain a corresponding operation instruction; and executing a corresponding operation according to the operation instruction.
[0093] This embodiment does not limit the user preset operation, and the user can set it according to actual needs, as long as it can achieve the purpose of this embodiment. The system is set with a variety of user preset operations and instruction association information, that is, when the user preset operation is detected, it can be matched to obtain the corresponding operation instruction, and then the corresponding operation is performed according to the operation instruction. For example, when the user preset operation 1 corresponds to the operation instruction 1, the corresponding system performs the operation 1; the user preset operation 2 corresponds to the operation instruction 2, and the corresponding system performs the operation 2; the user preset operation 3 corresponds to the operation instruction 3, and the corresponding system performs the operation 3.
[0094] Specifically, receiving the user's preset operation, and matching the user's preset operation with the instruction-related information to obtain the corresponding operation instruction, including: reading the cursor to perform the operation of selecting the target area in the endoscopic image area of the diagnostic system; matching the operation of selecting the target area with the instruction-related information to obtain the recognition instruction; correspondingly, performing the corresponding operation according to the operation instruction, including: identifying the regional features according to the recognition instruction, and displaying the regional features at the target position. Please refer to Figure 7 , Figure 7 A specific display diagram provided for an embodiment of the present application, when the target area is selected, a recognition instruction is obtained to perform an operation of recognizing the characteristics of the area, and then the recognition result is displayed on the left.
[0095] Specifically, a user preset operation is received, and the user preset operation is matched with the instruction-associated information to obtain a corresponding operation instruction, including: reading an operation of double-clicking the cursor on the target position of the endoscopic image area of the diagnostic system, and then obtaining a corresponding zoom instruction; correspondingly, a corresponding operation is performed according to the operation instruction, including: zooming in on the image of the area corresponding to the target position according to the zoom instruction.
[0096] Furthermore, the method further includes: receiving a layout instruction of a user display interface; and updating the layout according to the layout instruction.
[0097] The layout instruction may be to hide an area of the display interface, and then update the layout according to the layout instruction, and then display the area when the target point is triggered, otherwise, the area is hidden.
[0098] Alternatively, the layout instruction is to add a chart of the measuring tool, and the layout is updated according to the layout instruction. When the chart of the measuring tool is triggered, measurement can be performed according to the associated measuring tool.
[0099] In this embodiment, the interface display can be modified in a targeted manner according to the layout instruction, thereby improving the flexibility of the interface display.
[0100] Based on any of the above embodiments, this embodiment provides a specific image display method, which is specifically:
[0101] Endoscopic image data acquisition module: collects electronic endoscopic image data; Endoscopic image display area recognition module: identifies the endoscopic image area and detects the coordinate position of the image area; AI-assisted system interface adaptive display module: dynamically adjusts the display interface according to the coordinate position of the endoscopic image area.
[0102] Figure 8-Figure 10The following is a schematic diagram of three different shapes of electronic endoscopic images of an electronic endoscope, where the middle white area is the endoscopic image area. At this time, the AI-assisted interface is required to adaptively detect and identify the layout changes of the three different interfaces and make corresponding adjustments in the AI-assisted diagnosis system interface to ensure that the interface of the AI-assisted diagnosis system is consistent with that of the electronic endoscope.
[0103] Figure 8 and Fig. 9 Comparison: The image display areas are all octagonal, but there is a certain offset in the relative position of the interface. Fig. 9 The image area is closer to the right edge of the interface.
[0104] Fig.10 and Fig. 9 Comparison: The two sides of the image display area are semicircular arcs, and there is a certain offset in the relative position of the image display area in the interface.
[0105] For electronic endoscopy interface Figure 8 , Fig. 9 , Fig.10 According to the three image area shapes and interface positions, the AI-assisted diagnosis system needs to automatically adjust the interface display area to be consistent with the electronic endoscope image display interface.
[0106] Steps to achieve this:
[0107] 1. Extraction and separation of image area and background area;
[0108] Convert the color image into a grayscale image and perform binarization on the grayscale image;
[0109] 2. Contour detection of image areas;
[0110] Perform contour recognition on the binary image (binary image contour recognition algorithm can adopt canny, soble, Suzuki85 algorithm, etc.), obtain closed image contour areas and record them as: contour1, contour2, contour3...contourN, calculate the size of the image contour area and record it as: C1, C2, C3...CN, calculate the area of the image contour area and record it as: S1, S2, S3...SN, preset the preset size range of the image contour area as CK1 to CK2, and the preset area range of the image contour area as SK1 to SK2, filter out the closed image contour area that meets the preset size range and preset area range according to the size and the area, and determine the filtered closed image contour area as the image contour, which is recorded as contour, and contour is the detected endoscopic image area;
[0111] 3. Get the position information according to the coordinates of the contour pixels of the image contour.
[0112] The position information is obtained based on the coordinates of the contour pixel points of the image contour, and the results are fed back to the interface of the AI-assisted diagnosis system.
[0113] 4. Adaptive adjustment of the interface of AI-assisted diagnosis system;
[0114] The AI-assisted diagnosis system adjusts the image interface of the AI-assisted diagnosis system according to the pixel coordinate values of the contour line of the image area, so that the image area of the AI-assisted diagnosis system is consistent with the image area of the electronic endoscope, thereby achieving the effect of adaptively adjusting the image display area.
[0115] An image display device provided in an embodiment of the present application is introduced below. The image display device described below and the image display method described above can be referred to each other. Fig.11 , Fig.11 A schematic diagram of the structure of an image display device provided in an embodiment of the present application includes:
[0116] An electronic endoscopic image acquisition module 201 is used to acquire an electronic endoscopic image;
[0117] The identification module 202 is used to identify the endoscopic image area in the electronic endoscopic image and obtain the corresponding position information;
[0118] A position adjustment module 203, used to determine the display position of the display interface of the diagnosis system according to the position information;
[0119] The display module 204 is used to display the endoscopic image area at the adjusted display position.
[0120] Preferably, the identification module 202 includes:
[0121] A binary image acquisition unit, used for converting the electronic endoscope image into a grayscale image, and performing a binary process on the grayscale image to obtain a binary image;
[0122] A closed area acquisition unit is used to perform contour recognition on the binary image to obtain a closed image contour area and calculate the size and / or area of the closed image contour area;
[0123] A screening unit, configured to screen out closed image contour areas that meet a corresponding preset size range and / or preset area range according to size and / or area, and determine the screened closed image contour areas as image contours;
[0124] The first position information obtaining unit is used to obtain position information according to the coordinates of the contour pixels of the image contour.
[0125] Preferably, the closed area acquisition unit comprises:
[0126] The closed area acquisition subunit is used to perform contour recognition on the binary image using a preset algorithm to obtain a closed image contour area;
[0127] The preset algorithms include any one of the Canny algorithm, the Soble algorithm, and the Suzuki85 algorithm.
[0128] Preferably, the identification module 202 includes:
[0129] a type determination unit, used to determine the type of electronic endoscope corresponding to the electronic endoscope image;
[0130] The second position information obtaining unit is used to match the electronic endoscope type with the preset information to obtain the position information; wherein the preset information includes the corresponding information of a plurality of electronic endoscope types and the position information.
[0131] Preferably, the identification module 202 includes:
[0132] An endoscopic image region obtaining unit, configured to receive an endoscopic image region divided by a user;
[0133] The third position information obtaining unit is used to obtain corresponding position information according to the endoscopic image area.
[0134] Preferably, it also includes:
[0135] An operation instruction acquisition module is used to receive a user preset operation, and match the user preset operation with the instruction associated information to obtain a corresponding operation instruction;
[0136] The execution module is used to execute corresponding operations according to the operation instructions.
[0137] Preferably, the operation instruction obtaining module includes:
[0138] An operation reading unit, used for reading an operation of a cursor performing a frame selection of a target area in an endoscopic image area of a diagnostic system;
[0139] The recognition instruction obtaining unit is used to match the operation of selecting the target area with the instruction associated information to obtain the recognition instruction;
[0140] Correspondingly, the execution module includes:
[0141] The execution unit is used to identify the regional features according to the recognition instruction and display the regional features at the target position.
[0142] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0143] The following is an introduction to an electronic device provided by an embodiment of the present application. The electronic device described below and the image display method described above can be referred to in correspondence with each other. Fig.12 , Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application includes:
[0144] Memory 301, used for storing computer programs;
[0145] The processor 302 is used to implement the steps of the above-mentioned image display method when executing a computer program.
[0146] Specifically, the memory 301 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The processor 302 provides computing and control capabilities for the electronic device, and when executing the computer program stored in the memory 301, the following steps can be implemented:
[0147] Acquire an electronic endoscopic image; identify an endoscopic image area in the electronic endoscopic image to obtain corresponding position information; determine a display position of a display interface of a diagnostic system according to the position information; and display the endoscopic image area at the adjusted display position.
[0148] Since the embodiments of the electronic device 101 part correspond to the embodiments of the image display method part, the embodiments of the electronic device part refer to the description of the embodiments of the image display method part, which will not be repeated here.
[0149] In another achievable embodiment, the electronic device may include: a memory 301 , a processor 302 , an input / output interface 303 , and a network port 304 .
[0150] Among them, the memory 301 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The processor 302 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The processor 302 provides computing and control capabilities for the electronic device, executes the computer program stored in the memory 301, and can implement the steps of the image display method. The input and output interface 303 is used to obtain externally imported computer programs, parameters and instructions, and is saved in the memory 301 under the control of the processor 302. The input and output interface 303 can be connected to an input device to receive parameters or instructions manually input by a user. The input device may be a touch screen, or a keyboard, a touchpad or a mouse, etc. The user may start the image display method through the input and output interface 303. The network port 304 is used to communicate with various external terminal devices. The communication technology used in the communication connection may be a wired communication technology or a wireless communication technology, such as mobile high-definition link technology (MHL), universal serial bus (USB), high-definition multimedia interface (HDMI), wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, communication technology based on IEEE802.11s, etc. Specifically, in the present embodiment, under normal networking conditions, authentication can be achieved by interacting with the client device through the network port 304.
[0151] Since the embodiments of the electronic device part and the embodiments of the image display method part correspond to each other, the embodiments of the electronic device part refer to the description of the embodiments of the image display method part, which will not be repeated here.
[0152] A computer-readable storage medium provided in an embodiment of the present application is introduced below. The computer-readable storage medium described below and the method described above can be referenced to each other.
[0153] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned image display method are implemented.
[0154] Since the embodiments of the computer-readable storage medium part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the computer-readable storage medium part, which will not be repeated here.
[0155] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0156] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0157] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0158] The above is a detailed introduction to an image display method, device, electronic device and computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
Claims
1. An image display method, characterized in that: include: Acquire electronic endoscopic images; Identifying an endoscopic image region in the electronic endoscopic image to obtain corresponding position information; Adjusting the display interface of the diagnostic system according to the position information, and determining the display position of the display interface of the diagnostic system, so that the image area in the display interface of the diagnostic system is consistent with the endoscopic image area in the electronic endoscopic image; The endoscopic image area is displayed at the adjusted display position.
2. The image display method according to claim 1, characterized in that: The identifying the endoscopic image area in the electronic endoscopic image to obtain corresponding position information includes: Converting the electronic endoscope image into a grayscale image, and performing binarization processing on the grayscale image to obtain a binary image; Performing contour recognition on the binary image to obtain a closed image contour area, and calculating the size and / or area of the closed image contour area; Filter out the closed image contour area that meets the corresponding preset size range and / or preset area range according to the size and / or the area, and determine the filtered closed image contour area as the image contour; The position information is obtained according to the coordinates of the contour pixels of the image contour.
3. The image display method according to claim 2, characterized in that: The step of performing contour recognition on the binary image to obtain a closed image contour area includes: Performing contour recognition on the binary image using a preset algorithm to obtain the closed image contour area; The preset algorithm includes any one of the Canny algorithm, the Soble algorithm, and the Suzuki85 algorithm.
4. The image display method according to claim 1, characterized in that: The identifying the endoscopic image area in the electronic endoscopic image to obtain corresponding position information includes: determining the type of electronic endoscope corresponding to the electronic endoscope image; The electronic endoscope type is matched with preset information to obtain the position information; wherein the preset information includes corresponding information between multiple electronic endoscope types and position information.
5. The image display method according to claim 1, characterized in that: The identifying the endoscopic image area in the electronic endoscopic image to obtain corresponding position information includes: receiving the endoscopic image area divided by a user; The corresponding position information is obtained according to the endoscopic image area.
6. The image display method according to claim 1, characterized in that: After displaying the endoscopic image area at the adjusted display position, the method further comprises: Receiving a user preset operation, and matching the user preset operation with the instruction-related information to obtain a corresponding operation instruction; Execute corresponding operations according to the operation instructions.
7. The image display method according to claim 6, characterized in that: The receiving of a user preset operation and matching the user preset operation with instruction association information to obtain a corresponding operation instruction includes: Reading that a cursor performs an operation of selecting a target area in the endoscopic image area of the diagnostic system; Matching the operation of selecting the target area with the instruction-related information to obtain a recognition instruction; Correspondingly, performing a corresponding operation according to the operation instruction includes: The regional features are identified according to the identification instruction, and the regional features are displayed at the target location.
8. An image display device, characterized in that: include: An electronic endoscopic image acquisition module, used for acquiring electronic endoscopic images; An identification module, used to identify the endoscopic image area in the electronic endoscopic image and obtain corresponding position information; a position adjustment module, used for adjusting the display interface of the diagnostic system according to the position information, and determining the display position of the display interface of the diagnostic system, so that the image area in the display interface of the diagnostic system is consistent with the endoscopic image area in the electronic endoscopic image; A display module is used to display the endoscopic image area at the adjusted display position.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the image display method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the image display method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Endoscope system and AI diagnosis device
CN109464115A
Endoscope device
JP2000237130A
