Image recognition method and device, storage medium and electronic equipment

Automatic identification of transparent ring areas through image recognition methods solves the problem of inconsistent doctor observation results, improves the accuracy and consistency of diagnosis, and adapts to different conditions.

CN118736655APending Publication Date: 2024-10-01EVISION TECH (BEIJING) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410692776.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the results of a doctor's observation of the transparent ring area are affected by personal experience and subjective judgment, resulting in inconsistent results and affecting reliability.

Method used

Through the image recognition method, the transparent ring feature candidate area is determined based on the optic disc area of ​​the fundus image to be recognized, and the target coordinate system transformation and boundary line segmentation conditions are used to automatically identify whether the transparent ring area is included, reducing the influence of human factors.

Benefits of technology

It improves the diagnostic accuracy and consistency of the transparent ring area, reduces the variation between different observers, adapts to different equipment and image quality, and reduces errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736655A_ABST
    Figure CN118736655A_ABST
Patent Text Reader

Abstract

The invention provides an image recognition method and device, a storage medium and electronic equipment, and relates to the field of image processing. The image recognition method comprises the steps of determining a transparent ring feature candidate region based on an optic disk region of a fundus image to be recognized; performing target coordinate system transformation on the first boundary line of the transparent ring feature candidate region by taking the center of the optic disk region as an original point, and determining a second boundary line of the transparent ring feature candidate region under a target coordinate; and based on the second boundary line and the boundary line segmentation condition, determining an image recognition result of the fundus image to be recognized, the image recognition result including whether the fundus image to be recognized contains a transparent ring region. The method can improve the diagnosis accuracy of the transparent ring region in the fundus image to be recognized, and guarantees the consistency and standardization of the analysis and recognition of the fundus image to be recognized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and specifically to an image recognition method and device, a storage medium and an electronic device. Background Art

[0002] In pathological myopia, axial lengthening and eyeball expansion can cause the retina and choroid tissue on the nasal side of the optic disc to be pulled onto the optic disc, which is called nasal traction of the optic disc. This situation mainly occurs in type I and type V posterior scleral staphyloma. Among them, type I macular posterior scleral staphyloma manifests as a lateral arcuate spot. As the posterior scleral staphyloma expands, the optic disc appears to be tilted downward on its vertical axis, and excessive nasal traction occurs; in type V suboptic posterior scleral staphyloma, the optic disc is often tilted on the horizontal axis, accompanied by the formation of a square arcuate spot or occasional excessive traction above.

[0003] In the related art, the degree of lateral nasal traction is generally observed by a doctor. However, the doctor's observation results are affected by personal experience, skills and subjective judgment, which may lead to inconsistent results. In addition, the results of direct observation may vary greatly at different times or between different doctors, which affects the reliability of the results. Summary of the invention

[0004] In view of this, embodiments of the present application provide an image recognition method and device, a storage medium, and an electronic device.

[0005] In a first aspect, an embodiment of the present application provides an image recognition method, comprising: determining a transparent ring feature candidate area based on an optic disc area of ​​a fundus image to be identified; transforming a first boundary line of the transparent ring feature candidate area in a target coordinate system with the center of the optic disc area as the origin, and determining a second boundary line of the transparent ring feature candidate area in the target coordinate system; and determining an image recognition result of the fundus image to be identified based on the second boundary line and a boundary line segmentation condition, the image recognition result including whether the fundus image to be identified contains a transparent ring area.

[0006] In combination with the first aspect, in some implementations of the first aspect, the target coordinate system includes polar coordinates, and the boundary line segmentation condition includes an angle threshold. Based on the second boundary line and the boundary line segmentation condition, determining the image recognition result of the fundus image to be recognized includes: based on the second boundary line, determining the angle between the second boundary line and the polar coordinate axis; if the angle is less than or equal to the angle threshold, determining the transparent ring feature candidate area as the transparent ring area.

[0007] In combination with the first aspect, in certain implementations of the first aspect, determining a transparent ring feature candidate area based on an optic disc area of ​​a fundus image to be identified includes: determining a nasal area image of the optic disc area based on the optic disc area of ​​the fundus image to be identified; performing channel separation on the nasal area image to determine a first channel image and a second channel image corresponding to the nasal area image; using a segmentation threshold, segmenting the first channel image and the second channel image, respectively, to determine at least one candidate area corresponding to the first channel image and at least one candidate area corresponding to the second channel image; determining a transparent ring feature candidate area based on at least one candidate area corresponding to the first channel image and at least one candidate area corresponding to the second channel image.

[0008] In combination with the first aspect, in certain implementations of the first aspect, determining a transparent ring feature candidate area based on at least one candidate area corresponding to the first channel image and at least one candidate area corresponding to the second channel image includes: calculating the intersection of at least one candidate area corresponding to the first channel image and at least one candidate area corresponding to the second channel image to determine at least one intersection area; determining an intersection area with the largest area among at least one intersection area; and determining a transparent ring feature candidate area based on the intersection area with the largest area.

[0009] In combination with the first aspect, in certain implementations of the first aspect, based on the optic disc area of ​​the fundus image to be identified, determining the nasal area image of the optic disc area includes: based on the optic disc area of ​​the fundus image to be identified, dilating the boundary area of ​​the optic disc area of ​​the fundus image to be identified to determine the dilated optic disc area; based on the dilated optic disc area, determining the nasal area image of the optic disc area.

[0010] In combination with the first aspect, in certain implementations of the first aspect, based on the optic disc area of ​​the fundus image to be identified, a boundary area of ​​the optic disc area of ​​the fundus image to be identified is dilated to determine the dilated optic disc area, including: determining the optic disc diameter of the fundus image to be identified based on the optic disc area of ​​the fundus image to be identified; determining a dilation size based on the optic disc diameter; and using the dilation size, dilating the boundary area of ​​the optic disc area of ​​the fundus image to be identified to determine the dilated optic disc area.

[0011] In combination with the first aspect, in certain implementations of the first aspect, before using the segmentation threshold to segment the first channel image and the second channel image respectively to determine the candidate area corresponding to the first channel image and the candidate area corresponding to the second channel image, the method also includes: extracting the vascular area, optic disc area and macular area in the fundus image to be identified; removing the vascular area, optic disc area and macular area in the fundus image to be identified to determine the background area image; performing channel separation processing on the background area image to determine the third channel image and the fourth channel image corresponding to the background area; and determining the segmentation threshold based on the grayscale values ​​of the third channel image and the fourth channel image.

[0012] In the second aspect, an embodiment of the present application provides an image recognition device, including: a first determination module, which determines a transparent ring feature candidate area based on the optic disc area of ​​the fundus image to be identified; a second determination module, which is used to transform the first boundary line of the transparent ring feature candidate area in the target coordinate system with the center of the optic disc area as the origin, and determine the second boundary line of the transparent ring feature candidate area in the target coordinate system; an identification module, which is used to determine the image recognition result of the fundus image to be identified based on the second boundary line and the boundary line segmentation condition, and the image recognition result includes whether the fundus image to be identified contains a transparent ring area.

[0013] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the image recognition method described in the first aspect.

[0014] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; and the processor is used to execute the image recognition method described in the first aspect.

[0015] Different from the traditional technology that relies on the doctor's experience to judge the transparent ring area, the present application uses computer technology to process the fundus image to be identified. This automated processing flow reduces the manual operation of doctors or professionals in the identification process, improves the diagnostic efficiency, and reduces the errors caused by human factors. At the same time, through the fixed algorithms and steps in this application, it can be ensured that the analysis and identification of the fundus image to be identified are consistent and standardized, reducing the variation between different observers. In addition, the present application adopts target coordinate system transformation and boundary line segmentation technology to accurately locate and identify transparent ring feature candidate areas, thereby improving the accuracy of diagnosis of transparent ring areas in fundus images to be identified. This solution can realize accurate identification of transparent ring areas under different devices and different image qualities, and has strong adaptability and robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0017] Figure 1 The figure is a flow chart of an image recognition method provided in one embodiment of the present application.

[0018] Figure 2 The figure is a schematic diagram of a process for determining a candidate transparent ring feature area provided by an embodiment of the present application.

[0019] Figure 3 The figure is a schematic diagram of a process for determining a candidate transparent ring feature area provided by another embodiment of the present application.

[0020] Figure 4 The figure is a schematic diagram of a process of determining a nasal area image of an optic disc area provided by an embodiment of the present application.

[0021] Figure 5 The figure is a schematic diagram of a process for determining a candidate transparent ring feature area provided by another embodiment of the present application.

[0022] Figure 6 Shown is a schematic diagram of the structure of an image recognition device provided in one embodiment of the present application.

[0023] Figure 7 Shown is a schematic structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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.

[0025] Figure 1 FIG. 1 is a flow chart of an image recognition method provided by an embodiment of the present application. Figure 1 As shown, the image recognition method provided by this embodiment includes the following steps.

[0026] Step S110 , determining a transparent ring feature candidate region based on the optic disc region of the fundus image to be identified.

[0027] The fundus image to be identified in this embodiment refers to a medical image that needs to be analyzed and processed, including but not limited to all image data stored in a medical institution during the treatment of the same or different patients, relevant fundus image data of one or more patients input by the user, and fundus image data taken by one or more patients as needed during the consultation. The fundus image to be identified can be a 45° fundus image, or a 60°, 80°, 120° fundus image, or a wide-angle fundus image, or a fundus image with other field of view angles, or even a fundus image of other modalities.

[0028] Exemplarily, the transparent ring includes a nasal transparent ring. In the fundus image to be identified, the optic disc area is an obvious circular area, which contains the entrance of the optic nerve and is the path for visual signals to be transmitted from the eye to the brain. The nasal transparent ring refers to a transparent ring surrounding the optic disc boundary on the nasal side of the optic disc. Generally, if there is a nasal transparent ring, myopia progresses rapidly and doctor intervention is required if necessary.

[0029] In one implementation, the method for determining the candidate region of the transparent ring feature is as follows: first, the fundus image to be identified is preprocessed, including denoising, contrast enhancement, color balance, etc., to improve the image quality and the accuracy of subsequent processing. Secondly, the image segmentation technology is used to accurately identify the optic disc area from the fundus image to be identified. Then, within the detected optic disc area, the center point and the nasal boundary of the optic disc are further determined. In the nasal region of the optic disc, a specific image processing algorithm is applied to detect potential transparent ring features to determine the candidate region of the transparent ring feature.

[0030] Step S120 , taking the center of the optic disc area as the origin, transforming the first boundary line of the transparent ring feature candidate area in the target coordinate system to determine the second boundary line of the transparent ring feature candidate area in the target coordinate system.

[0031] Specifically, the first boundary line area refers to the outermost edge line of the transparent ring feature candidate area. Exemplarily, the target coordinate system is a coordinate system established with the center of the optic disc area as the origin. By transforming to the target coordinate system, the position and shape of the transparent ring feature candidate area can be more conveniently described and analyzed. After the target coordinate system is transformed, the position of the original first boundary line in the new coordinate system is the second boundary line. In other words, the second boundary line is the representation of the first boundary line in the target coordinate system.

[0032] In one implementation, the calculation process is as follows: First, determine the first boundary line area. For example, the first boundary line can be obtained by using methods such as image segmentation and edge detection. Then, establish a target coordinate system with the center of the optic disc area as the origin. Then, transform all points in the first boundary line area from the original coordinate system to the target coordinate system. Finally, the transformed boundary line is the second boundary line.

[0033] Step S130 : determining an image recognition result of the fundus image to be recognized based on the second boundary line and the boundary line segmentation condition.

[0034] The image recognition result includes whether the fundus image to be identified contains a transparent ring area. The boundary line segmentation condition refers to a set of criteria or standards followed by the boundary lines used to distinguish different areas or objects. In the fundus image to be identified, the boundary line segmentation condition may involve multiple factors, including color, texture, shape, size, contrast, etc.

[0035] Different from the traditional technology that relies on the doctor's experience to judge the transparent ring area, the present application uses computer technology to process the fundus image to be identified. This automated processing flow reduces the manual operation of doctors or professionals in the identification process, improves the diagnostic efficiency, and reduces the errors caused by human factors. At the same time, through the fixed algorithms and steps in this application, it can be ensured that the analysis and identification of the fundus image to be identified are consistent and standardized, reducing the variation between different observers. In addition, the present application uses target coordinate system transformation and boundary line segmentation technology to accurately locate and identify transparent ring feature candidate areas, thereby improving the accuracy of the diagnosis of transparent ring areas in fundus images to be identified. This solution can realize accurate identification of transparent ring areas under different devices and different image qualities, and has strong adaptability and robustness.

[0036] In another embodiment of the present application, when the target coordinate system is a polar coordinate system and the boundary line segmentation condition includes an angle threshold, the image recognition result of the fundus image to be identified is determined based on the second boundary line and the boundary line segmentation condition, including: based on the second boundary line, determining the angle between the second boundary line and the polar coordinate axis; if the angle is less than or equal to the angle threshold, determining the transparent ring feature candidate area as the transparent ring area.

[0037] Specifically, in the polar coordinate system, a point is determined by the length from the origin (radius r) and the angle between the point and the positive x-axis (polar angle θ). The polar angle θ is the angle that the ray passes through when rotating counterclockwise from the positive x-axis to the point.

[0038] For the second boundary line of the transparent ring feature candidate area in the polar coordinate system, it is necessary to determine the angle between this boundary line and the polar coordinate axis (ie, the positive x-axis). This angle is the angle between the ray where the second boundary line is located and the positive x-axis.

[0039] In one implementation, the method for determining the angle between the second boundary line and the polar coordinate axis is: determine the coordinates of at least two points on the second boundary line in polar coordinates, wherein the two points may be the intersection points of the boundary line and the polar coordinate axis, or feature points on the boundary line identified by an image processing algorithm. The one with the smallest angle between the two points is selected as the angle between the second boundary line and the polar coordinate axis. It is understandable that the second boundary line may not be completely horizontal, but has a certain curvature or bend, therefore, it is necessary to find the point with the smallest angle with the polar coordinate axis to determine the direction of the second boundary line.

[0040] In the fundus image, the transparent ring usually appears as a ring structure surrounding the optic disc. In the polar coordinate system, if the transparent ring is complete, its boundary line should have a constant angle with the polar coordinate axis. Therefore, in this embodiment, it is possible to evaluate whether the transparent ring feature candidate area meets the geometric characteristics of the transparent ring based on the size of the angle. Specifically, the calculated angle is compared with a preset angle threshold, illustratively, the angle threshold is 20°. If the angle is less than or equal to the angle threshold, the transparent ring feature candidate area is considered to be a transparent ring area.

[0041] In this embodiment, by setting the angle threshold, those candidate areas that do not conform to the geometric features of the transparent ring can be excluded, and the qualified candidate areas can be quickly screened out, thereby reducing unnecessary calculation and processing time and improving the accuracy of diagnosis. The quality of fundus images to be identified in different patients may vary, including image clarity, contrast, etc. By setting the angle threshold, the scheme in this embodiment can adapt to fundus images to be identified of different qualities to a certain extent, and improve the robustness of the diagnostic system.

[0042] Figure 2 The figure is a schematic diagram of a process for determining a candidate transparent ring feature region provided by an embodiment of the present application. Figure 1 Based on the embodiment shown, Figure 2 The embodiment shown is described below in detail. Figure 2 The embodiment shown and Figure 1 The differences and similarities of the illustrated embodiments are not described in detail.

[0043] like Figure 2 As shown, in an embodiment of the present application, based on the optic disc area of ​​the fundus image to be identified, determining the transparent ring feature candidate area includes the following steps.

[0044] Step S210: determining a nasal area image of the optic disc area based on the optic disc area of ​​the fundus image to be identified.

[0045] In one implementation, first, the optic disc in the image to be identified is located by edge detection algorithms (such as Canny edge detection), morphological operations (such as dilation and erosion), region growing algorithms, or deep learning models. Further, the center point of the optic disc is determined.

[0046] In the fundus image, the optic disc is usually presented as an elliptical structure, and its long axis is usually consistent with the nasal direction of the optic disc. Therefore, in this embodiment, the direction of the long axis can be determined by calculating the elliptical fitting of the optic disc area, and this direction represents the nasal direction. According to the determined nasal direction, a rectangular or elliptical area can be intercepted in the optic disc area, and this area is the nasal area image of the optic disc area. The size and shape of the interception can be adjusted as needed, and usually should contain sufficient information to identify lesions in the nasal area.

[0047] In order to improve the accuracy of subsequent analysis, the extracted nasal area image can be preprocessed and enhanced, such as contrast enhancement, noise removal, histogram equalization, etc.

[0048] Step S220, performing channel separation on the nasal side region image to determine a first channel image and a second channel image corresponding to the nasal side region image.

[0049] Channel separation refers to splitting a multi-channel image (such as a color image) into its separate color channels. Each channel is a grayscale image, representing the intensity of the corresponding color component. The first channel image and the second channel image refer to the individual channel images obtained after channel separation. Exemplarily, if we perform channel separation on an RGB image, the first channel image obtained will be a red channel image, the second channel image will be a green channel image, and the third channel image will be a blue channel image. Similarly, in an embodiment of the present application, it is assumed that the first channel image is an R channel image and the second channel image is a G channel image.

[0050] Step S230: segment the first channel image and the second channel image respectively using the segmentation threshold, and determine at least one candidate region corresponding to the first channel image and at least one candidate region corresponding to the second channel image.

[0051] The segmentation threshold is a key parameter in image segmentation. It determines the boundaries of each meaningful area or object to be segmented in the image based on the grayscale amplitude of the image pixels. Simply put, it divides the pixels of the image according to the grayscale level so that the pixels with the same or similar grayscale levels are classified into one category, thereby achieving image segmentation. When selecting the threshold, it is necessary to consider the characteristics of the image and the purpose of segmentation. If the threshold is too high, a large number of targets may be misjudged as background; if the threshold is too low, a large number of backgrounds may be misjudged as targets.

[0052] Exemplarily, in this embodiment, the segmentation threshold of the first channel image is BackgroundR+50, and the segmentation threshold of the second channel image is BackgroundG+50. For the first channel image, each pixel is traversed and the pixel value (grayscale value) is compared with BackgroundR+50. If the pixel value is greater than the threshold, the pixel is marked as foreground, otherwise it is marked as background. For the second channel image, the same operation is performed, but BackgroundG+50 is used as the threshold. After applying the threshold segmentation, two binary images are obtained, one corresponding to the R channel and the other corresponding to the G color channel. On these binary images, continuous foreground areas can be regarded as candidate areas.

[0053] In other embodiments, the detected candidate regions may be further processed, for example, removing small regions, merging adjacent regions, or applying morphological operations (such as dilation and erosion) to optimize the results. The candidate regions may also be sorted or filtered according to application requirements to retain only the most relevant or most significant regions.

[0054] Step S240: determining a transparent ring feature candidate region based on at least one candidate region corresponding to the first channel image and at least one candidate region corresponding to the second channel image.

[0055] In one example, the size, shape, and color of the candidate area corresponding to the first channel image and the candidate area corresponding to the second channel are compared, and these features can be used to distinguish the transparent ring feature from other tissues, and then determine the transparent ring feature candidate area from these candidate areas.

[0056] In this embodiment, first, the optic disc area is accurately determined from the fundus image to be identified, and further focused on the nasal area of ​​the optic disc. The accuracy of this area positioning provides a reliable basis for subsequent analysis. Secondly, different tissues may have different performances on color channels. The present application can process different color channels of the image separately by performing channel separation on the nasal area image, which helps to highlight the features in a specific channel. Furthermore, by using a segmentation threshold to segment the channel image, the threshold can be adjusted according to the specific characteristics of the image, so as to more accurately identify the candidate area. This flexibility enables the scheme to adapt to changes in different fundus images. In addition, the present application not only considers the information of a single channel, but also combines the candidate areas of the first channel image and the second channel image to determine the final transparent ring feature candidate area. This fusion of multi-channel information improves the accuracy and reliability of recognition and reduces the possibility of misjudgment and missed judgment.

[0057] Figure 3 The figure is a schematic diagram of a process for determining a transparent ring feature candidate area provided by another embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 3 The embodiment shown is described below in detail. Figure 3 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0058] like Figure 3 As shown, in an embodiment of the present application, determining a transparent ring feature candidate area based on at least one candidate area corresponding to the first channel image and at least one candidate area corresponding to the second channel image includes the following steps.

[0059] Step S310: Calculate the intersection of at least one candidate region corresponding to the first channel image and at least one candidate region corresponding to the second channel image to determine at least one intersection region.

[0060] Exemplarily, for each candidate region of the first channel image, traverse each candidate region of the second channel image. For each pair of candidate regions, use a geometric algorithm (such as a polygon intersection algorithm) to calculate their intersection region. The intersection region can be a new polygonal region that is simultaneously located in the two original candidate regions. Sum up all the calculated intersection regions and remove the overlapping parts to obtain the final intersection region.

[0061] Step S320: determining an intersection region with the largest area among at least one intersection region.

[0062] Step S330: determining a transparent ring feature candidate region based on the intersection region with the largest area.

[0063] That is to say, if there are multiple intersection areas, the one with the largest area can be selected as the final transparent ring feature candidate area.

[0064] Specifically, the fundus image to be identified may contain various noises and artifacts, which may generate small candidate areas during the segmentation process. Therefore, selecting the intersection area with the largest area as the transparent ring feature candidate area can exclude these small areas generated by noise and artifacts, thereby reducing interference. Secondly, different fundus images to be identified may differ due to factors such as acquisition equipment, acquisition conditions, and individual differences. Selecting the intersection area with the largest area as the transparent ring feature candidate area can reduce the impact of these differences on the recognition results to a certain extent and enhance the robustness of the algorithm. At the same time, it can also simplify subsequent processing steps. For example, in the subsequent transparent ring feature extraction, classification and other steps, only the intersection area with the largest area needs to be processed, and all candidate areas do not need to be processed, thereby improving processing efficiency.

[0065] Figure 4The figure shows a schematic diagram of a process for determining the nasal area image of the optic disc area provided by an embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 4 The embodiment shown is described below in detail. Figure 4 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0066] like Figure 4 As shown, in an embodiment of the present application, based on the optic disc area of ​​the fundus image to be identified, determining the nasal area image of the optic disc area includes the following steps.

[0067] Step S410 : Based on the optic disc area of ​​the fundus image to be identified, dilation processing is performed on the boundary area of ​​the optic disc area of ​​the fundus image to be identified to determine the dilated optic disc area.

[0068] Dilation is a morphological operation in computer vision and image processing, which is mainly used to expand the white area (foreground) or reduce the black area (background) in the image. In a binary image, the dilation operation can be regarded as adding white pixels around the white pixels, thereby "expanding" the white area.

[0069] In one implementation, a structural element is selected. The structural element is usually a small matrix, such as a 3*3 or 5*5 rectangle, ellipse or cross. This matrix determines the nature of the dilation operation, including the degree and shape of the dilation. The selected structural element is applied to the boundary pixels of the optic disc area. For each boundary pixel, the center of the structural element is aligned with the pixel, and all pixels covered by the structural element are set to the same value as the boundary pixel. In this way, the boundary area will expand outward to cover more pixels. In addition, multiple iterative dilation operations can be performed as needed to gradually increase the size of the optic disc area. It can be understood that in each iteration, new boundary pixels are added to the dilation process.

[0070] In another implementation, based on the optic disc area of ​​the fundus image to be identified, the boundary area of ​​the optic disc area of ​​the fundus image to be identified is dilated to determine the dilated optic disc area, including: determining the optic disc diameter of the fundus image to be identified based on the optic disc area of ​​the fundus image to be identified; determining the dilation size based on the optic disc diameter; and using the dilation size, dilating the boundary area of ​​the optic disc area of ​​the fundus image to be identified to determine the dilated optic disc area.

[0071] Specifically, the boundary of the optic disc area is determined. For a circular optic disc, the diameter of the circle can be directly measured; for an elliptical optic disc, the major axis and the minor axis need to be calculated, and the average value is taken as the approximate value of the diameter. The expansion size is usually a fixed proportion of the increase in the optic disc diameter. For example, in this embodiment, the expansion size is 0.2PD. In addition, the expansion size can also be adjusted based on the image resolution or the requirements of a specific application scenario. Further, based on the above expansion size, a morphological expansion operation is used to expand the boundary of the optic disc area.

[0072] After the dilation operation is completed, the optic disc area will include a certain number of pixels outside the original boundary, and these newly included pixels define the dilated optic disc area. It can be understood that the dilated optic disc area is usually larger than the original area, which helps to more accurately identify and analyze the optic disc in subsequent processing.

[0073] Step S420: determining a nasal area image of the optic disc area based on the expanded optic disc area.

[0074] Specifically, the nasal side of the optic disc is generally a specific portion of the optic disc region. In some implementations, the nasal side boundary of the optic disc can be determined by identifying the leftmost point in the optic disc region. Once the nasal side boundary of the optic disc is determined, a mask is created that covers from the nasal side boundary of the optic disc to the optic disc boundary, and the mask is further used to extract the corresponding nasal side region in the fundus image.

[0075] In this embodiment, the boundary area of ​​the optic disc area of ​​the fundus image to be identified is dilated, so that the boundary area of ​​the optic disc area can be smoother and more regular. In addition, if there are small holes or black pixels inside the optic disc area, the dilation process can eliminate these small holes and fill them with white. In some cases, the size of the optic disc area can also be increased by dilation, so that the identification of the nasal area is more accurate, which helps to reduce misjudgment caused by blurred boundaries or noise interference. In addition, the impact of these factors on the image quality can be compensated to a certain extent, thereby improving the robustness of the algorithm. After determining the image of the nasal area of ​​the optic disc area, the area can be analyzed and processed more accurately and efficiently, which helps to reduce unnecessary calculations and complexity and improve the efficiency and performance of the algorithm.

[0076] Figure 5 The figure shows a flow chart of determining a candidate transparent ring feature region provided by another embodiment of the present application. Figure 2 Based on the embodiment shown, Figure 5 The embodiment shown is described below in detail. Figure 5 The embodiment shown and Figure 2 The differences and similarities of the illustrated embodiments are not described in detail.

[0077] like Figure 5 As shown, in this embodiment, before using the segmentation threshold to segment the first channel image and the second channel image respectively to determine the candidate area corresponding to the first channel image and the candidate area corresponding to the second channel image, the following steps are also included.

[0078] Step S510, extracting the blood vessel area, optic disc area and macula area in the fundus image to be identified.

[0079] Exemplarily, first, the fundus image to be identified is preprocessed, including grayscale, denoising, contrast enhancement and other operations to improve image quality and facilitate subsequent feature extraction and identification. Further, morphological operations such as dilation, erosion, opening and closing operations are used to enhance the vascular structure and increase the contrast between the blood vessels and the background. Afterwards, the blood vessel edges in the image are identified through the edge detection algorithm, and the tracking algorithm is used to extract the complete vascular network along these edges.

[0080] In addition, according to the brightness characteristics of the optic disc area in the fundus image to be identified, a suitable threshold is set for segmentation to extract the optic disc area. Alternatively, a circular structure, i.e., the optic disc, in the fundus image is detected using a circle detection algorithm. Alternatively, features such as color, texture, etc. in the fundus image are extracted and a classifier is trained using these features to identify the optic disc area.

[0081] The macula is located in the central area of ​​the fundus image to be identified, so the position of the macula can be preliminarily determined by locating the center of the image. For example, the macula region has specific color features in the fundus image to be identified, such as high brightness and yellowish color, and these features can be used to extract the macula region. Alternatively, morphological operations such as dilation and erosion can be used to enhance the structure of the macula region to form a more obvious contrast with the surrounding area.

[0082] Step S520, removing the blood vessel area, the optic disc area and the macula area from the fundus image to be identified, and determining a background area image.

[0083] The background area image refers to other areas except the main structures such as blood vessels, optic disc and macula. That is, when the blood vessels, optic disc and macula are removed from the fundus image, the remaining part is the background area image, which can provide information about the overall health of the retina, lesions, pigment deposition and other possible pathological changes.

[0084] Step S530: performing channel separation processing on the background area image to determine the third channel image and the fourth channel image corresponding to the background area.

[0085] In this embodiment, the third channel image and the fourth channel image of the background area belong to any two channel images among the R channel image, the G channel image and the B channel image. In addition, it should be noted that the third channel image and the fourth channel image correspond to the first channel image and the second channel image, that is, if the first channel image is the R channel image and the G channel image, then the third channel image and the fourth channel image also correspond to the R channel image and the G channel image.

[0086] Step S540: determining a segmentation threshold based on the grayscale values ​​of the third channel image and the fourth channel image.

[0087] Exemplarily, the histogram of the grayscale values ​​of the third channel image and the fourth channel image of the background area image is calculated, and the histogram can show the frequency of occurrence of each grayscale value in the image. By observing the histogram, the distribution range of the background area image in the third channel and the fourth channel is found. Generally speaking, the grayscale values ​​of the background area image will be relatively concentrated in a certain range, while the grayscale values ​​of the foreground area image may be distributed in different ranges.

[0088] Furthermore, a threshold is set according to the gray value distribution range of the background area image to distinguish the foreground area image from the background area image. For example, the average value or median of the gray value distribution range of the background area image can be selected as the segmentation threshold.

[0089] In this embodiment, by extracting the blood vessel area, optic disc area and macula area in the fundus image and removing them, a purer background area image can be determined, and such a background area image can more accurately reflect the characteristics of other areas in the fundus image to be identified, and provides a more accurate basis for subsequent segmentation using the segmentation threshold. The background area is subjected to channel separation processing to obtain a third channel image and a fourth channel image, which only contain information about the background area, thereby simplifying the segmentation process and reducing the complexity of the algorithm. The method for determining the segmentation threshold based on the grayscale value of the third channel image and the fourth channel image utilizes the characteristics of the grayscale value between channels, which can quickly and accurately determine the segmentation threshold, not only improving the efficiency of the algorithm, but also ensuring the accuracy of the segmentation. Since the segmentation threshold is determined based on the grayscale value in the actual image, this method has strong adaptability to different fundus images to be identified, and can adapt to different image characteristics by adjusting the segmentation threshold even under different lighting conditions or image quality.

[0090] Combined with 1 to Figure 5 , describes in detail the image recognition method embodiment of the present application, and the following is combined with Figure 6, describes in detail the image recognition device embodiment of the present application. It should be understood that the description of the image recognition method embodiment corresponds to the description of the image recognition device embodiment, so the parts not described in detail can refer to the previous method embodiment.

[0091] Figure 6 FIG. 1 is a schematic diagram of the structure of an image recognition device provided by an embodiment of the present application. Figure 6 As shown, the image recognition device 60 provided in the embodiment of the present application includes:

[0092] A first determination module 610 determines a transparent ring feature candidate region based on the optic disc region of the fundus image to be identified;

[0093] The second determination module 620 is used to transform the first boundary line of the transparent ring feature candidate area in the target coordinate system with the center of the optic disc area as the origin, and determine the second boundary line of the transparent ring feature candidate area in the target coordinate system;

[0094] The recognition module 630 is used to determine the image recognition result of the fundus image to be recognized based on the second boundary line and the boundary line segmentation condition, and the image recognition result includes whether the fundus image to be recognized contains a transparent ring area.

[0095] In one embodiment of the present application, the target coordinate system includes polar coordinates, and the boundary line segmentation condition includes an angle threshold. The recognition module 630 is also used to determine the angle between the second boundary line and the polar coordinate axis based on the second boundary line; if the angle is less than or equal to the angle threshold, the transparent ring feature candidate area is determined as the transparent ring area.

[0096] In one embodiment of the present application, the first determination module 610 is also used to determine the nasal area image of the optic disc area based on the optic disc area of ​​the fundus image to be identified; perform channel separation on the nasal area image to determine the first channel image and the second channel image corresponding to the nasal area image; use the segmentation threshold to segment the first channel image and the second channel image respectively to determine at least one candidate area corresponding to the first channel image and at least one candidate area corresponding to the second channel image; determine the transparent ring feature candidate area based on at least one candidate area corresponding to the first channel image and at least one candidate area corresponding to the second channel image.

[0097] In one embodiment of the present application, the first determination module 610 is also used to calculate the intersection of at least one candidate area corresponding to the first channel image and at least one candidate area corresponding to the second channel image, and determine at least one intersection area; determine the intersection area with the largest area in at least one intersection area; and determine the transparent ring feature candidate area based on the intersection area with the largest area.

[0098] In one embodiment of the present application, the first determination module 610 is further used to, based on the optic disc area of ​​the fundus image to be identified, dilate the boundary area of ​​the optic disc area of ​​the fundus image to be identified to determine the dilated optic disc area; and based on the dilated optic disc area, determine the nasal area image of the optic disc area.

[0099] In one embodiment of the present application, the first determination module 610 is also used to determine the optic disc diameter of the fundus image to be identified based on the optic disc area of ​​the fundus image to be identified; determine the expansion size based on the optic disc diameter; and use the expansion size to expand the boundary area of ​​the optic disc area of ​​the fundus image to be identified to determine the expanded optic disc area.

[0100] In one embodiment of the present application, the first determination module 610 is also used to extract the vascular area, optic disc area and macular area in the fundus image to be identified; remove the vascular area, optic disc area and macular area in the fundus image to be identified to determine the background area image; perform channel separation processing on the background area image to determine the third channel image and the fourth channel image corresponding to the background area; determine the segmentation threshold based on the grayscale values ​​of the third channel image and the fourth channel image.

[0101] Below, reference Figure 7 To describe an electronic device according to an embodiment of the present application. Figure 7 Shown is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application.

[0102] like Figure 7 As shown, the electronic device 70 includes one or more processors 701 and a memory 702 .

[0103] The processor 701 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 70 to perform desired functions.

[0104] The memory 702 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 701 may run the program instructions to implement the image recognition method of each embodiment of the present application described above and / or other desired functions. Various contents such as fundus images to be identified, transparent ring feature candidate areas, first boundary lines, second boundary lines, boundary line segmentation conditions, and image recognition results may also be stored in the computer-readable storage medium.

[0105] In one example, the electronic device 70 may further include: an input device 703 and an output device 704, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0106] The input device 703 may include, for example, a keyboard, a mouse, etc.

[0107] The output device 704 can output various information to the outside, including the fundus image to be identified, the transparent ring feature candidate area, the first boundary line, the second boundary line, the boundary line segmentation condition and the image recognition result, etc. The output device 704 can include, for example, a display, a speaker, a printer, and a communication network and its connected remote output device, etc.

[0108] Of course, to simplify, Figure 7 Only some of the components related to the present application in the electronic device 70 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device 70 may also include any other appropriate components.

[0109] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the image recognition method according to various embodiments of the present application described above in this specification.

[0110] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0111] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the steps of the image recognition method according to various embodiments of the present application described above in this specification.

[0112] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0113] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0114] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0115] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0116] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0117] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. An image recognition method, It is characterized in that include: Determine a transparent ring feature candidate region based on the optic disc region of the fundus image to be identified; Taking the center of the optic disc area as the origin, transforming the first boundary line of the transparent ring feature candidate area in the target coordinate system to determine the second boundary line of the transparent ring feature candidate area in the target coordinate system; Based on the second boundary line and the boundary line segmentation condition, an image recognition result of the fundus image to be recognized is determined, and the image recognition result includes whether the fundus image to be recognized includes a transparent ring area.

2. The image recognition method according to claim 1, It is characterized in that The target coordinate system includes polar coordinates, the boundary line segmentation condition includes an angle threshold, and determining the image recognition result of the fundus image to be recognized based on the second boundary line and the boundary line segmentation condition includes: Based on the second boundary line, determining an angle between the second boundary line and the polar coordinate axis; If the included angle is less than or equal to the angle threshold, the transparent ring feature candidate area is determined as the transparent ring area.

3. The image recognition method according to claim 1, It is characterized in that The step of determining a transparent ring feature candidate region based on the optic disc region of the fundus image to be identified includes: Based on the optic disc area of ​​the fundus image to be identified, determining a nasal area image of the optic disc area; Perform channel separation on the nasal side area image to determine a first channel image and a second channel image corresponding to the nasal side area image; Using a segmentation threshold, segmenting the first channel image and the second channel image respectively, and determining at least one candidate region corresponding to the first channel image and at least one candidate region corresponding to the second channel image; The transparent ring feature candidate region is determined based on at least one candidate region corresponding to the first channel image and at least one candidate region corresponding to the second channel image.

4. The image recognition method according to claim 3, It is characterized in that The step of determining the transparent ring feature candidate region based on at least one candidate region corresponding to the first channel image and at least one candidate region corresponding to the second channel image comprises: Calculating the intersection of at least one candidate region corresponding to the first channel image and at least one candidate region corresponding to the second channel image, and determining at least one intersection region; Determine the intersection region with the largest area among the at least one intersection region; The transparent ring feature candidate region is determined based on the intersection region with the largest area.

5. The image recognition method according to claim 3, It is characterized in that The step of determining the nasal area image of the optic disc area based on the optic disc area of ​​the fundus image to be identified comprises: Based on the optic disc area of ​​the fundus image to be identified, dilating the boundary area of ​​the optic disc area of ​​the fundus image to be identified to determine the dilated optic disc area; Based on the expanded optic disc area, a nasal area image of the optic disc area is determined.

6. The image recognition method according to claim 5, It is characterized in that The step of dilating the boundary area of ​​the optic disc area of ​​the fundus image to be identified based on the optic disc area of ​​the fundus image to be identified to determine the dilated optic disc area includes: Determining the optic disc diameter of the fundus image to be identified based on the optic disc area of ​​the fundus image to be identified; determining a dilation size based on the optic disc diameter; The dilation size is used to dilate the boundary area of ​​the optic disc area of ​​the fundus image to be identified, and the dilated optic disc area is determined.

7. The image recognition method according to claim 3, It is characterized in that Before using the segmentation threshold to segment the first channel image and the second channel image respectively to determine the candidate region corresponding to the first channel image and the candidate region corresponding to the second channel image, the method further includes: Extracting a blood vessel area, an optic disc area, and a macula area in the fundus image to be identified; removing the blood vessel area, the optic disc area and the macula area from the fundus image to be identified, and determining a background area image; Performing channel separation processing on the background area image to determine a third channel image and a fourth channel image corresponding to the background area; The segmentation threshold is determined based on the grayscale values ​​of the third channel image and the fourth channel image.

8. An image recognition device, It is characterized in that include: A first determination module determines a transparent ring feature candidate area based on the optic disc area of ​​the fundus image to be identified; A second determination module is used to transform the first boundary line of the transparent ring feature candidate area in the target coordinate system with the center of the optic disc area as the origin, so as to determine the second boundary line of the transparent ring feature candidate area in the target coordinate system; The recognition module is used to determine the image recognition result of the fundus image to be recognized based on the second boundary line and the boundary line segmentation condition, and the image recognition result includes whether the fundus image to be recognized contains a transparent ring area.

9. An electronic device, It is characterized in that include: processor; a memory for storing instructions executable by the processor, The processor is used to execute the method described in any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Eye fundus image splicing method and system

    CN109658393A

  • Fundus image macular center positioning method and device, electronic equipment and storage medium

    CN111046717A

  • Fundus retina blood vessel recognition and quantification method, device and equipment and storage medium

    CN111340789A

  • Obtaining data for automatic glaucoma screening, and screening and diagnostic techniques and systems using the data

    US20120230564A1

  • Fundus image processing apparatus, fundus image processing method, and recording medium

    US20140294235A1