Image-based scleral jaundice analysis method and system
By identifying and calibrating the color feature information of the sclera and iris areas in eye images and evaluating the jaundice index, it solves the problems of large errors and damage to patients in existing jaundice detection methods, and achieves highly accurate and convenient jaundice detection.
Patent Information
- Application Number
- CN202410876076.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-02
AI Technical Summary
Existing jaundice detection methods have problems such as large errors, inconvenience, and damage to patients. In particular, the venous blood drawing method requires the cooperation of medical institutions and patients, and the accuracy of different individuals varies greatly.
By identifying the sclera and iris areas in eye images, obtain their color feature information, and use the color feature information in historical eye images for calibration, calculate the current yellowness value and jaundice index, and evaluate jaundice.
It achieves jaundice detection with high accuracy, strong universality and no damage to the detection object, reduces detection errors and improves the convenience of detection.
Smart Images

Figure CN118411364B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of image processing technology, and in particular to an image-based scleral jaundice analysis method, system and electronic device. Background Art
[0002] At present, there are three main types of conventional jaundice measurement methods: visual inspection, transcutaneous bilirubin value measurement by jaundice meter, and venous blood drawing. Among them, the visual inspection method has a large error and can only roughly judge the jaundice situation; the measurement accuracy of the transcutaneous bilirubin value measurement by jaundice meter for different individuals is significantly different. This is because the natural skin color of different individuals (or the same individual in different age groups) is significantly different, and the skin color will have a direct impact on the detection accuracy of the jaundice meter; although the venous blood drawing method can obtain more accurate measurement results, it requires patients to go to designated medical institutions for testing, and blood drawing will cause certain damage to patients. Therefore, providing a jaundice detection solution with high accuracy, strong universality, and no damage to the test object is a technical problem that technicians in this field urgently need to solve. Summary of the invention
[0003] The present disclosure aims to solve at least one of the technical problems existing in the prior art, and proposes an image-based scleral jaundice analysis method, system and electronic device.
[0004] In a first aspect, the present disclosure provides an image-based scleral jaundice analysis method, comprising:
[0005] identifying a first sclera region and a first iris region in the eye image to be analyzed of the target object;
[0006] Acquire first color feature information of the first iris region and second color feature information of the first sclera region, wherein the first color feature information includes an R channel mean iRn, a G channel mean iGn, and a B channel mean iBn of at least some pixels in the first iris region, and the second color feature information includes an R channel mean sRn, a G channel mean sGn, and a B channel mean sBn of at least some pixels in the first sclera region;
[0007] Acquire historical color feature information of a second iris region and historical yellowness values of a second sclera region in historical eye images of the target object, wherein the third color feature information includes an R channel mean iRe, a G channel mean iGe, and a B channel mean iBe of at least some pixels in the second iris region;
[0008] Calibrate the second color characteristic information according to the first color characteristic information and the third color characteristic information to obtain calibrated color characteristic information of the first sclera area, wherein the calibrated color characteristic information includes: a calibrated R channel mean sRo, a calibrated G channel mean sGo, and a calibrated B channel mean sBo, sRo=sRn-(iRn-iRe), sGo=sGn-(iGn-iGe), sBo=sBn-(iBn-iBe);
[0009] Determining a current yellowness value corresponding to the first sclera area according to the calibration color characteristic information;
[0010] According to the current yellowness value, the historical yellowness value and the historical jaundice index of the target object when the historical eye image is taken, the current jaundice index of the target object is evaluated, and the current jaundice index is positively correlated with the current yellowness value.
[0011] In some embodiments, before the step of identifying the first sclera region and the first iris region in the eye image to be analyzed of the target object, the method further includes:
[0012] Acquire at least one current eye video stream of the target object, where the current eye video stream includes a plurality of current eye images;
[0013] For each target current eye image, extract the target eye edge contour in the target current eye image by using an edge detection operator, and compare and match the target eye edge contour with the eye front edge contours stored in a preset eye front morphology library; if the target eye edge contour successfully matches at least one eye front edge contour in the preset eye front morphology library, retain the target current eye image; if the target eye edge contour fails to match all eye front edge contours in the preset eye front morphology library, delete the target current eye image;
[0014] For each retained current eye image, calculate the eye area ratio corresponding to each current eye image, and select m current eye images with the largest corresponding eye area ratio, where the eye area ratio is equal to the ratio of the eye area in the current eye image to the full-frame image area of the current eye image, and m ≥ 2 is a positive integer;
[0015] For m current eye images, the peak signal-to-noise ratios corresponding to the current eye images are calculated respectively, and a current eye image with the largest corresponding peak signal-to-noise ratio is selected as the eye image to be analyzed.
[0016] In some embodiments, the step of identifying a first sclera region and a first iris region in the eye image to be analyzed of the target object includes:
[0017] Step S101, detecting the edge contour of the eye region in the eye image to be analyzed by an edge detection operator, and cutting out a complete image of the eye region, wherein the length of the complete image of the eye region is L pixels and the height is H pixels, where L is greater than H;
[0018] Step S102, initializing the current radius r of the virtual circular area to be r0 pixels, r0<L / 2;
[0019] Step S103: for each target pixel in the complete eye region image, detect whether a coverage area of the complete eye region image covered by a virtual circular area with the target pixel as the center and a current radius r meets a preset condition, and select the coverage area that meets the preset condition as the area to be processed, wherein the preset condition includes:
[0020] 1) The ratio of the area of the coverage area to the area of the virtual circular area is greater than or equal to a, 0.5≤a≤1;
[0021] 2) The covered area has a first edge and a second edge that are arranged opposite to each other in the length direction of the complete image of the eye area, the first edge includes a plurality of first edge pixels, the second edge includes a plurality of second edge pixels, the first edge pixels exceeding a proportion b in the first edge satisfy that the pixel difference between the first edge pixel and the corresponding outer adjacent pixel is greater than c, and the second edge pixels exceeding b in the second edge satisfy that the pixel difference between the second edge pixel and the corresponding outer adjacent pixel is greater than c, wherein 90%≤b≤100%, 5%≤c≤15%, and the pixel difference between the edge pixel and the outer adjacent pixel is equal to the difference between the sum of the RGB three-channel values of the edge pixel and the sum of the RGB three-channel values of the outer adjacent pixel divided by the sum of the RGB three-channel values of the edge pixel;
[0022] Step S104, adding 1 to the pixel of the current radius r to update the current radius r;
[0023] Step S105, determining whether the updated current radius r is greater than L / 2 pixels;
[0024] If the updated current radius r is less than or equal to L / 2 pixels, step S103 is performed again with the updated current radius r;
[0025] If the updated current radius r is greater than L / 2 pixels, execute step S106;
[0026] Step S106: determining the first sclera region and the first iris region according to the complete image of the eye region and all the regions to be processed.
[0027] In some embodiments, the step of determining the first sclera area in step S106 includes:
[0028] Eliminate all of the to-be-processed areas from the complete image of the eye area, and use the remaining part as the first sclera area;
[0029] The step of determining the first iris area in step S106 includes:
[0030] Calculate the ratio of highlighted pixels in each of the to-be-processed areas respectively, where the ratio of highlighted pixels is equal to the number of highlighted pixels in the to-be-processed area divided by the total number of pixels in the to-be-processed area, and the highlighted pixels are pixels whose sum of the RGB three-channel values is greater than or equal to d, and 500≤d≤700;
[0031] Eliminate the corresponding areas to be processed whose proportion of highlight pixels is greater than or equal to e from all the areas to be processed, 75%≤e≤1;
[0032] Selecting a region to be processed with the largest corresponding radius from the remaining regions to be processed as the iris pupil overall region, and selecting a region to be processed that is completely within the iris pupil overall region and whose corresponding circle center is closest to the corresponding circle center of the iris pupil overall region as the pupil region;
[0033] The pupil area is removed from the entire iris-pupil area, and the remaining part is used as the first iris area.
[0034] In some embodiments, the step of acquiring the first color feature information of the first iris region includes:
[0035] Eliminate pixels whose sum of RGB three-channel values is less than Q1 and pixels whose sum of RGB three-channel values is greater than Q2 from the first iris area, and use the remaining part as the effective iris area, 80≤Q1≤120, 300≤Q2≤500;
[0036] The R channel mean iRn, the G channel mean iGn and the B channel mean iBn of all pixels in the effective iris area are calculated.
[0037] In some embodiments, the step of acquiring the second color characteristic information of the first sclera area includes:
[0038] Remove f circle edge pixels from the first sclera area, and use the remaining part as the sclera effective area, where 1≤f≤4 and f is an integer;
[0039] The R channel mean sRn, the G channel mean sGn and the B channel mean sBn of all pixels in the effective sclera area are calculated.
[0040] In some embodiments, the step of determining the current yellowness value corresponding to the first sclera area according to the calibration color feature information includes:
[0041] The calibration color feature information is converted from the RGB color space to the CIE-XYZ color space through linear processing, and the corresponding yellowness value is determined by a preset yellowness calculation formula;
[0042] The preset yellowness calculation formula is expressed as follows:
[0043]
[0044] in, represents the calculated yellowness value, , , Indicates the tristimulus values after the calibration color feature information is converted to the CIE-XYZ color space. and Indicates the coefficient under D65 standard light source.
[0045] In some embodiments, the step of evaluating the current jaundice index of the target object according to the current yellowness value, the historical yellowness value, and the historical jaundice index of the target object when the historical eye image is taken includes:
[0046] The current jaundice index is calculated using the following formula: :
[0047]
[0048] in, represents the current yellowness value, represents the historical yellowness value, Indicates the historical jaundice index, Indicates the preset adjustment coefficient .
[0049] In a second aspect, the present disclosure further provides an image-based scleral jaundice analysis system, wherein the analysis system is configured to implement the analysis method provided in the first aspect, and the analysis system comprises:
[0050] an identification module configured to identify a first sclera region and a first iris region in the eye image to be analyzed of the target object;
[0051] a first acquisition module, configured to acquire first color feature information of the first iris region and second color feature information of the first sclera region, the first color feature information comprising an R channel mean iRn, a G channel mean iGn, and a B channel mean iBn of at least some pixels in the first iris region, and the second color feature information comprising an R channel mean sRn, a G channel mean sGn, and a B channel mean sBn of at least some pixels in the first sclera region;
[0052] A second acquisition module is configured to acquire historical color feature information of a second iris region and a historical yellowness value of a second sclera region in the historical eye image of the target object, wherein the third color feature information includes an R channel mean iRe, a G channel mean iGe, and a B channel mean iBe of at least some pixels in the second iris region;
[0053] a calibration module, configured to calibrate the second color characteristic information according to the first color characteristic information and the third color characteristic information to obtain calibrated color characteristic information of the first sclera area, wherein the calibrated color characteristic information includes: a calibrated R channel mean sRo, a calibrated G channel mean sGo, and a calibrated B channel mean sBo, sRo=sRn-(iRn-iRe), sGo=sGn-(iGn-iGe), sBo=sBn-(iBn-iBe);
[0054] a yellowness calculation module, configured to determine a current yellowness value corresponding to the first sclera area according to the calibration color feature information;
[0055] The evaluation module is configured to evaluate the current jaundice index of the target object based on the current yellowness value, the historical yellowness value and the historical jaundice index of the target object when the historical eye image is taken, and the current jaundice index is positively correlated with the current yellowness value.
[0056] In a third aspect, the present disclosure further provides an electronic device, including:
[0057] one or more processors;
[0058] A memory for storing one or more programs;
[0059] When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the analysis methods provided in the first aspect.
[0060] The present disclosure provides an image-based scleral jaundice analysis method, which obtains first color feature information of a first iris area and second color feature information of the first sclera area in an eye image to be analyzed, and then uses the difference in color feature information between the second iris area and the first iris area in a historical eye image to calibrate the color feature information of the first sclera area, and determines the current yellowness value of the first sclera area according to the calibrated color feature information, and finally evaluates the current jaundice index of the target object according to the current yellowness value, the historical yellowness value of the second sclera area in the historical eye image, and the historical jaundice index corresponding to the shooting of the historical eye image; the scleral jaundice analysis method provided by the present disclosure has high accuracy, strong universality and is harmless to the detection object. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 A flowchart of an image-based scleral jaundice analysis method provided in an embodiment of the present disclosure;
[0062] Figure 2 is a schematic diagram of an eye image in the present disclosure;
[0063] Figure 3 This is a flow chart of an optional implementation method of step S1 in the embodiment of the present disclosure;
[0064] Figure 4 It is a schematic diagram of extracting a complete image of the eye region from the eye image to be analyzed in an embodiment of the present disclosure;
[0065] Figure 5 A schematic diagram of obtaining a first sclera region from a complete image of an eye region in the present disclosure;
[0066] Figure 6 A schematic diagram of obtaining the iris pupil overall area and the pupil area from a complete image of the eye area in the present disclosure;
[0067] Figure 7 This is a flow chart of an optional implementation method of step S2 in the embodiment of the present disclosure;
[0068] Figure 8 A flowchart of another image-based scleral jaundice analysis method provided in an embodiment of the present disclosure;
[0069] Fig. 9 A structural block diagram of an image-based scleral jaundice analysis system provided in an embodiment of the present disclosure;
[0070] Fig.10 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0071] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, the present disclosure is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0072] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not represent any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not represent quantitative restrictions, but rather represent the existence of at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Up", "down", "left", "right" and the like are only used to represent relative positional relationships. When the absolute position of the described target changes, the relative positional relationship may also change accordingly.
[0073] Many specific details of the present disclosure are described below to provide a clearer understanding of the present disclosure. However, as those skilled in the art will appreciate, the present disclosure may be implemented without following these specific details.
[0074] Figure 1 A flowchart of an image-based scleral jaundice analysis method provided in an embodiment of the present disclosure. Figure 2 is a schematic diagram of an eye image in the present disclosure; Figure 1 and Figure 2 As shown, the analysis method includes:
[0075] Step S1: identifying a first sclera region and a first iris region in an eye image to be analyzed of a target object.
[0076] The eye generally includes the pupil area, the iris area surrounding the pupil area, and the sclera area outside the iris area. Among them, the color of the pupil area of most people is black; the color of the iris area varies greatly among different individuals, such as blue, brown, brown, etc.; the color of the sclera area of most normal people is porcelain white.
[0077] Step S2: Acquire first color feature information of the first iris region and second color feature information of the first sclera region.
[0078] Among them, the first color feature information includes the R channel mean iRn, the G channel mean iGn and the B channel mean iBn of at least some pixels in the first iris area, and the second color feature information includes the R channel mean sRn, the G channel mean sGn and the B channel mean sBn of at least some pixels in the first sclera area.
[0079] Step S3: Acquire historical color feature information of the second iris region and historical yellowness values of the second sclera region in historical eye images of the target object.
[0080] The third color feature information includes an R channel mean value iRe, a G channel mean value iGe, and a B channel mean value iBe of at least some pixels in the second iris region.
[0081] The historical eye image is an eye image of the target object taken during a previous historical jaundice test, and the historical eye image is configured with a corresponding historical jaundice index. For example, after the target object went to a medical institution for jaundice measurement through venous blood drawing, an eye image was also taken, and the eye image can be used as a historical eye image.
[0082] In step S3, the following two methods can be used to implement it: 1) Perform corresponding image processing on the historical eye images in advance, and obtain the historical color feature information of the second iris area and the historical yellowness value of the second sclera area in the historical eye images, and then directly store the historical color feature information of the second iris area and the historical yellowness value of the second sclera area in the sclera jaundice analysis system (the sclera jaundice analysis system does not need to store historical eye images). At this time, in step S3, only the historical color feature information and historical yellowness value need to be obtained through data query; 2) The sclera jaundice analysis system stores historical eye images. In step S3, a method similar to step S1 and step S2 can be used to determine the historical color feature information of the second iris area, and a method similar to step S5 can be used to determine the historical yellowness value of the second sclera area.
[0083] It should be noted that the "yellowness value" in the present disclosure is used to describe the yellowing degree of transparent, translucent or white materials. The sclera of most normal people (regardless of gender and age) is porcelain white, does not contain melanin, and has very few blood vessels; when the sclera of a patient is yellow, the yellowing degree can better reflect the jaundice level of the target object; among them, for the same target object, the heavier the yellowing degree (the higher the yellowness value), the higher the jaundice level (jaundice index).
[0084] Step S4: calibrate the second color characteristic information according to the first color characteristic information and the third color characteristic information to obtain calibrated color characteristic information of the first sclera area.
[0085] The calibration color feature information includes: the calibration R channel mean sRo, the calibration G channel mean sGo and the calibration B channel mean sBo. Specifically, sRo=sRn-(iRn-iRe), sGo=sGn-(iGn-iGe), sBo=sBn-(iBn-iBe).
[0086] Step S5: determining a current yellowness value corresponding to the first sclera area according to the calibration color feature information.
[0087] Optionally, the calibration color feature information may be first converted from the RGB color space to the CIE-XYZ color space through linear processing to obtain corresponding tristimulus values; then, the corresponding yellowness value may be determined through a preset yellowness calculation formula.
[0088] The calibration color feature information may be converted into the CIE-XYZ color space based on the following formula.
[0089]
[0090] in, represents the color space conversion matrix, , , Indicates the tristimulus values after the calibrated color characteristic information is converted to the CIE-XYZ color space.
[0091] The preset yellowness calculation formula is as follows:
[0092]
[0093] in, represents the calculated yellowness value, and Indicates the coefficient under D65 standard light source.
[0094] Step S6: According to the current yellowness value, the historical yellowness value and the historical jaundice index of the target object when taking historical eye images, the current jaundice index of the target object is evaluated, and the current jaundice index is positively correlated with the current yellowness value.
[0095] The jaundice index in the present disclosure refers to the serum total bilirubin concentration, and the unit can be μmol / L or mg / dL.
[0096] In the disclosed embodiment, considering that there is a difference in ambient light when shooting the eye image to be analyzed and when shooting the historical eye image, it is necessary to correct the color feature information of the first sclera area before determining the current yellowness value corresponding to the first sclera area in the eye image to be analyzed. Specifically, the difference in color feature information in the iris area between the eye image to be analyzed and the historical eye image (i.e., "iRn-iRe", "iGn-iGe", "iBn-iBe") is selected to correct the color feature information of the first sclera area; it can be understood as adjusting the eye image to be analyzed to the display effect presented under the same ambient light as the historical eye image; after completing the correction of the color feature information of the first sclera area, determine the corresponding current yellowness value; finally, based on the historical yellowness value of the sclera area in the historical eye image and the corresponding historical jaundice index, evaluate the current jaundice index corresponding to the current yellowness value. For example, when the current yellowness value is greater than the historical yellowness value, the current jaundice index evaluated will be greater than the historical jaundice index; when the current yellowness value is less than the historical yellowness value, the current jaundice index evaluated will be less than the historical jaundice index. The specific mapping relationship can be pre-designed and adjusted according to the actual situation.
[0097] In some embodiments, the current jaundice index is calculated in step S6 using the following formula: :
[0098]
[0099] in, Indicates the current yellowness value. Represents the historical yellowness value, Indicates the historical jaundice index, Indicates the preset adjustment coefficient Among them, when When the value is 1, it indicates the current jaundice index With the current yellowness value There is a linear relationship.
[0100] The present disclosure takes into account that different subjects may have different scleral jaundice reactions (for example, two subjects with the same jaundice index measured by venous blood drawing may have certain differences in the degree of yellowness of the sclera of the two subjects), but the scleral yellowness value of the same subject is positively correlated with its jaundice index. Therefore, when evaluating the jaundice index based on the current scleral yellowness value of the target subject, the present disclosure introduces the historical eye images of the target subject, the corresponding historical yellowness values, and the corresponding historical jaundice index to ensure the accuracy of the evaluation results.
[0101] The embodiment of the present disclosure provides an image-based scleral jaundice analysis method, which obtains first color feature information of a first iris area and second color feature information of the first sclera area in an eye image to be analyzed, and then uses the difference in color feature information between the second iris area and the first iris area in a historical eye image to calibrate the color feature information of the first sclera area, and determines the current yellowness value of the first sclera area according to the calibrated color feature information, and finally evaluates the current jaundice index of the target object according to the current yellowness value, the historical yellowness value of the second sclera area in the historical eye image, and the historical jaundice index corresponding to the shooting of the historical eye image; the scleral jaundice analysis method provided by the present disclosure has high accuracy, strong universality and is harmless to the detection object.
[0102] Figure 3 FIG. 1 is a flow chart of an optional implementation method of step S1 in the embodiment of the present disclosure. Figure 3 As shown, in some embodiments, step S1 includes:
[0103] Step S101: Detect the edge contour of the eye area in the eye image to be analyzed by using an edge detection operator, and cut out the complete image of the eye area.
[0104] Figure 4 FIG. 1 is a schematic diagram of extracting a complete image of the eye region from the eye image to be analyzed in an embodiment of the present disclosure. Figure 4 As shown, in step S101, the canny operator can be used to extract the edge information of the eye region; then, based on the obtained edge contour of the eye region, a complete image of the eye region is cut out from the eye image to be analyzed. The length of the cut complete image of the eye region is L pixels, and the height is H pixels, where L is greater than H.
[0105] Step S102 , initialize the current radius r of the virtual circular area to be r0 pixels; r0<L / 2, for example, r0 is 2.
[0106] Step S103: for each target pixel in the complete image of the eye area, detect whether the coverage area of the complete image of the eye area covered by a virtual circular area with the target pixel as the center and the current radius r meets the preset conditions, and select the coverage area that meets the preset conditions as the area to be processed.
[0107] The pre-conditions include:
[0108] 1) The ratio of the area of the coverage area to the area of the virtual circular area is greater than or equal to a; 0.5≤a≤1, for example, a is 0.75.
[0109] 2) The coverage area has a first edge and a second edge that are relatively arranged in the length direction of the complete image of the eye area, the first edge includes a plurality of first edge pixels, the second edge includes a plurality of second edge pixels, the first edge pixels exceeding a proportion b in the first edge satisfy that the pixel difference between the first edge pixels and the corresponding outer adjacent pixels is greater than c, and the second edge pixels exceeding b in the second edge satisfy that the pixel difference between the second edge pixels and the corresponding outer adjacent pixels is greater than c; wherein 90%≤b≤100%, 5%≤c≤15%, for example, b is 95%, and c is 10%; the pixel difference between the edge pixel and the outer adjacent pixel is equal to the difference between the sum of the RGB three-channel values of the edge pixel and the sum of the RGB three-channel values of the outer adjacent pixel divided by the sum of the RGB three-channel values of the edge pixel.
[0110] It should be noted that the sum of the RGB three-channel values of a pixel in the present disclosure refers to the sum of the R channel value, the G channel value, and the B channel value of the pixel. The value range of the R / G / B channel values of the pixel is [0, 255] and is an integer.
[0111] In the present disclosure, the virtual circular area has a first semicircular edge and a second semicircular edge (which can be understood as the left semicircular edge and the right semicircular edge of the virtual circular area) that are relatively arranged in the length direction of the complete image of the eye area; the first edge of the coverage area refers to the portion where the first semicircular edge of the virtual circular area corresponding to the coverage area overlaps with the complete image of the eye area, and the second edge of the coverage area refers to the portion where the second semicircular edge of the virtual circular area corresponding to the coverage area overlaps with the complete image of the eye area. That is to say, when the coverage area is a complete circular area (that is, the virtual circular area completely overlaps with the corresponding coverage area), the first edge and the second edge are both complete semicircular edges; and when the coverage area is not a complete circular area (the area of the virtual circular area is larger than the area of the corresponding coverage area), at least one of the first edge and the second edge is an incomplete semicircular edge.
[0112] In step S103, it can be regarded as using a virtual circular area with a radius of r to scan the entire eye area complete image in a pixel stepping manner to detect whether there is an approximate circular edge (most of which can match the complete circle) or a complete circular edge with a corresponding radius of r in the eye area complete image.
[0113] Step S104: perform pixel addition processing on the current radius r to update the current radius r.
[0114] Step S105: Determine whether the updated current radius r is greater than L / 2 pixels.
[0115] If the updated current radius r is less than or equal to L / 2 pixels, step S103 is performed again with the updated current radius r. If the updated current radius r is greater than L / 2 pixels, step S106 is performed.
[0116] This design is because the sclera area in the real eye is a complete circular ring and the pupil is a complete circle; in the eye image, considering that the upper and lower eyelids will block the upper / lower part of the iris area in some states, the iris area in the eye image cannot present a complete ring (it can be regarded as an approximate circular needle). By looping through the above steps S103 to S105, virtual circular areas with different radii can be used to scan the complete image of the eye area, so that various approximate circular edges and complete circular edges in the complete image of the eye area can be effectively identified. In addition, the outer edge of the iris area adjacent to the sclera area and the inner edge of the iris area adjacent to the pupil area in the eye image can be obtained.
[0117] In addition, since the ambient light will also form some bright circular reflective areas when reflected by the eyes, the area to be processed obtained through the above steps S103 to S105 will also include some circular reflective areas.
[0118] Step S106: determining a first sclera region and a first iris region according to the complete image of the eye region and all the regions to be processed.
[0119] In the embodiment of the present disclosure, based on the complete image of the eye region and the area to be processed acquired through steps S103 to S105, the sclera region and the iris region can be determined.
[0120] In some embodiments, the step of determining the first sclera area in step S106 includes:
[0121] Step S1061: remove all the areas to be processed from the complete image of the eye area, and use the remaining part as the first sclera area.
[0122] Figure 5 FIG. 1 is a schematic diagram of obtaining the first sclera region from the complete image of the eye region in the present disclosure. Figure 5 As shown, by removing all the areas to be processed from the complete image of the eye area, the remaining part can be used as the first sclera area.
[0123] In some embodiments, the step of determining the first iris region in step S106 includes:
[0124] Step S1062, respectively calculate the ratio of highlighted pixels in each area to be processed.
[0125] The ratio of highlighted pixels is equal to the number of highlighted pixels in the area to be processed divided by the total number of pixels in the area to be processed. The highlighted pixels are pixels whose sum of the RGB three-channel values is greater than or equal to d; 500≤d≤700, for example, d is 600.
[0126] Step S1063, remove the corresponding areas to be processed whose proportion of highlight pixels is greater than or equal to e from all the areas to be processed; 75%≤e≤1, for example, the value of e is 85%;
[0127] Among them, the area to be processed in which the proportion of highlight pixels is greater than or equal to e indicates that the area to be processed is a highlight circular reflective area.
[0128] Step S1064: select a processing area with the largest corresponding radius from the remaining processing areas as the iris pupil overall area, and select a processing area that is completely within the iris pupil overall area and whose corresponding center is closest to the corresponding center of the iris pupil overall area as the pupil area.
[0129] Step S1065: Eliminate the pupil area from the entire iris pupil area, and use the remaining part as the first iris area.
[0130] Figure 6 FIG. 1 is a schematic diagram of determining the iris pupil overall area and the pupil area from the complete image of the eye area in the present disclosure. Figure 6 As shown, after removing the processing area belonging to the highlighted circular reflective area, a processing area with the largest corresponding radius is selected from the remaining processing areas as the iris pupil overall area (iris area + pupil area); considering that the pupil area and the iris area are generally co-centered, a processing area that is completely within the iris pupil overall area and whose center is closest to the center of the iris pupil overall area is selected as the pupil area. After determining the iris pupil overall area and the pupil area, the first iris area can be obtained by removing the pupil area from the iris pupil overall area.
[0131] Figure 7 FIG. 4 is a flow chart of an optional implementation method of step S2 in the embodiment of the present disclosure. Figure 7 As shown, in some embodiments, step S2 includes step S2a and step S2b.
[0132] Step S2a: Acquire first color feature information of the first iris area.
[0133] Optionally, step S2a includes:
[0134] Step S2a01, remove pixels whose RGB three-channel values and are less than Q1 and pixels whose RGB three-channel values and are greater than Q2 from the first iris area, and the remaining part is used as the effective iris area; 80≤Q1≤120, 300≤Q2≤500, for example, Q1 takes a value of 100, and Q2 takes a value of 400.
[0135] Considering that ambient light not only forms circular reflective areas when reflected from the eyes, but also forms some other regular or irregular highlight reflective areas, in order to eliminate the interference of the highlight reflective areas, the pixels in these highlight reflective areas in the iris area (pixels whose sum of RGB three-channel values is greater than Q2) need to be removed.
[0136] At the same time, because the iris area is adjacent to the pupil area, when the first iris area is determined by the virtual circular area, some pixels that originally belong to the pupil area (generally located at the edge of the first iris area) may be mistakenly divided into the first iris area. Therefore, in order to improve the accuracy of the final detection result, the dark pixels in the first iris area (pixels with a sum of RGB three-channel values less than Q1) can be eliminated.
[0137] Step S2a02, calculating the R channel mean iRn, the G channel mean iGn and the B channel mean iBn of all pixels in the effective iris area.
[0138] It should be noted that the above method of first removing the highlight reflective pixels and edge dark pixels in the first iris area and then calculating the R / G / G channel mean is an optional implementation scheme in the present disclosure and does not limit the technical solution of the present disclosure.
[0139] Step S2a, obtaining second color characteristic information of the first sclera area.
[0140] Step S2b01, remove f circle edge pixels from the first sclera area, and use the remaining part as the sclera effective area; 1≤f≤4 and f is an integer, for example, f is 3.
[0141] Step S2b02, calculate the R channel mean sRn, the G channel mean sGn and the B channel mean sBn of all pixels in the effective sclera area.
[0142] In the present disclosure, considering that the edges of the first sclera area (especially the leftmost and rightmost edges obtained by the canny operator in step S101) may have certain errors, and such errors may have certain impacts on subsequent calculations, in order to improve the detection accuracy, the edge pixels of the first sclera area may be eliminated to a certain extent in the present disclosure.
[0143] Figure 8 Flow chart of another image-based scleral jaundice analysis method provided in an embodiment of the present disclosure. Figure 8 As shown, the analysis method provided in this embodiment not only includes steps S1 to S6 in the previous embodiments, but also includes steps S01 to S04 before step S1.
[0144] Step S01: obtaining at least one current eye video stream of a target object, where the current eye video stream includes a plurality of current eye images.
[0145] Step S02: for each target current eye image, extract the target eye edge contour in the target current eye image by using the edge detection operator, and compare and match the target eye edge contour with the eye front edge contour stored in the preset eye front morphology library; if the target eye edge contour successfully matches at least one eye front edge contour in the preset eye front morphology library, the target current eye image is retained; if the target eye edge contour fails to match all eye front edge contours in the preset eye front morphology library, the target current eye image is deleted.
[0146] In the present disclosure, an eye frontal morphology library is pre-set, and a plurality of human eye frontal edge contours are stored in the eye frontal morphology library. When comparing and matching the target eye edge contour with the human eye frontal edge contour in the eye frontal morphology library, the similarity of the two contours can be calculated based on a contour similarity algorithm (for example, a contour similarity algorithm provided in OpenCV); wherein, when the contour similarity is greater than a preset similarity threshold, it indicates that the two contours are matched successfully; and when the contour similarity is less than or equal to the preset similarity threshold, it indicates that the two contours are matched unsuccessfully.
[0147] In the present disclosure, the frontal eye image can be effectively screened out through step S02. On the one hand, the frontal eye image contains more comprehensive information, and on the other hand, it is also more convenient for subsequent accurate identification of the sclera area and iris area in the eye.
[0148] Step S03, for each retained current eye image, calculate the eye area ratio corresponding to each current eye image, and select m current eye images with the largest corresponding eye area ratio, where the eye area ratio is equal to the ratio of the eye area in the current eye image to the full-frame image area of the current eye image, and m ≥ 2 is a positive integer.
[0149] For images of the same resolution and format, the larger the eye area, the clearer it is, and the more conducive it is to subsequent accurate recognition.
[0150] Step S04: for the m current eye images, calculate the peak signal-to-noise ratio corresponding to each current eye image, and select a current eye image with the largest peak signal-to-noise ratio as the eye image to be analyzed.
[0151] Through the processing of the above steps S01 to S04, it is possible to screen out high-quality, high-definition frontal eye images from one or more eye video processes, providing a favorable basis for subsequent scleral jaundice analysis.
[0152] Fig. 9 The structural block diagram of the image-based scleral jaundice analysis system provided in the embodiment of the present disclosure is shown in FIG. Fig. 9 As shown, the analysis system is configured to implement the analysis method provided by any of the previous embodiments, and the analysis system includes: an identification module, a first acquisition module, a second acquisition module, a calibration module, a yellowness calculation module and an evaluation module.
[0153] The recognition module is configured to recognize a first sclera region and a first iris region in the eye image to be analyzed of the target object.
[0154] The first acquisition module is configured to acquire first color feature information of the first iris area and second color feature information of the first sclera area, the first color feature information including the R channel mean iRn, the G channel mean iGn, and the B channel mean iBn of at least some pixels in the first iris area, and the second color feature information including the R channel mean sRn, the G channel mean sGn, and the B channel mean sBn of at least some pixels in the first sclera area.
[0155] The second acquisition module is configured to acquire historical color feature information of the second iris area and historical yellowness value of the second sclera area in the historical eye images of the target object, and the third color feature information includes the R channel mean iRe, the G channel mean iGe and the B channel mean iBe of at least some pixels in the second iris area.
[0156] The calibration module is configured to calibrate the second color feature information according to the first color feature information and the third color feature information to obtain calibrated color feature information of the first sclera area, wherein the calibrated color feature information includes: calibrated R channel mean sRo, calibrated G channel mean sGo and calibrated B channel mean sBo, sRo=sRn-(iRn-iRe), sGo=sGn-(iGn-iGe), sBo=sBn-(iBn-iBe).
[0157] The yellowness calculation module is configured to determine a current yellowness value corresponding to the first sclera area according to the calibration color feature information.
[0158] The evaluation module is configured to evaluate the current jaundice index of the target object based on the current yellowness value, the historical yellowness value and the historical jaundice index of the target object when taking historical eye images, and the current jaundice index is positively correlated with the current yellowness value.
[0159] The above-mentioned identification module, first acquisition module, second acquisition module, calibration module, yellowness calculation module and evaluation module can respectively implement steps S1 to S6 in the previous embodiments. For the specific description of each module, please refer to the corresponding content in the previous embodiments, which will not be repeated here.
[0160] In some embodiments, the analysis system further includes a picture screening module, which can be used to implement steps S01 to S04 in the previous embodiments.
[0161] Based on the same inventive concept, an embodiment of the present disclosure also provides an electronic device. Fig.10 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. Fig.10 As shown, an embodiment of the present disclosure provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement any scleral jaundice analysis method in the above-mentioned embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, and are configured to implement information interaction between the processor and the memory.
[0162] Among them, the processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus), etc.
[0163] In some embodiments, the processor 101 , the memory 102 , and the I / O interface 103 are connected to each other via a bus 104 , and further connected to other components of the computing device.
[0164] In some embodiments, the one or more processors 101 include a field programmable gate array.
[0165] According to an embodiment of the present disclosure, a computer readable medium is further provided, wherein a computer program is stored on the computer readable medium, wherein when the program is executed by a processor, the steps in any of the scleral jaundice analysis in the above embodiments are implemented.
[0166] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, including a computer program carried on a machine-readable medium, the computer program containing a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), the above-mentioned functions defined in the system of the present disclosure are executed.
[0167] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer 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. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0168] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of the code, and the aforementioned module, program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0169] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.
Claims
1. An image-based scleral jaundice analysis method, characterized in that: include: identifying a first sclera region and a first iris region in the eye image to be analyzed of the target object; Acquire first color feature information of the first iris region and second color feature information of the first sclera region, wherein the first color feature information includes an R channel mean iRn, a G channel mean iGn, and a B channel mean iBn of at least some pixels in the first iris region, and the second color feature information includes an R channel mean sRn, a G channel mean sGn, and a B channel mean sBn of at least some pixels in the first sclera region; Acquire historical color feature information of a second iris region and historical yellowness values of a second sclera region in historical eye images of the target object, wherein the third color feature information includes an R channel mean iRe, a G channel mean iGe, and a B channel mean iBe of at least some pixels in the second iris region; The second color characteristic information is calibrated according to the first color characteristic information and the third color characteristic information to obtain calibrated color characteristic information of the first sclera area, wherein the calibrated color characteristic information includes: a calibrated R channel mean sRo, a calibrated G channel mean sGo, and a calibrated B channel mean sBo, sRo=sRn-(iRn-iRe), sGo=sGn-(iGn-iGe), sBo=sBn-(iBn-iBe); Determining a current yellowness value corresponding to the first sclera area according to the calibration color characteristic information; According to the current yellowness value, the historical yellowness value, and the historical jaundice index of the target object when the historical eye image is taken, evaluating the current jaundice index of the target object, wherein the current jaundice index is positively correlated with the current yellowness value; The step of evaluating the current jaundice index of the target object according to the current yellowness value, the historical yellowness value, and the historical jaundice index of the target object when the historical eye image is taken includes: The current jaundice index is calculated using the following formula: : , in, represents the current yellowness value, represents the historical yellowness value, Indicates the historical jaundice index, Indicates the preset adjustment coefficient .
2. The analysis method according to claim 1, characterized in that Before the step of identifying the first sclera region and the first iris region in the eye image to be analyzed of the target object, the method further includes: Acquire at least one current eye video stream of the target object, where the current eye video stream includes a plurality of current eye images; For each target current eye image, extract the target eye edge contour in the target current eye image by using an edge detection operator, and compare and match the target eye edge contour with the eye front edge contours stored in a preset eye front morphology library; if the target eye edge contour successfully matches at least one eye front edge contour in the preset eye front morphology library, retain the target current eye image; if the target eye edge contour fails to match all eye front edge contours in the preset eye front morphology library, delete the target current eye image; For each retained current eye image, calculate the eye area ratio corresponding to each current eye image, and select m current eye images with the largest corresponding eye area ratio, where the eye area ratio is equal to the ratio of the eye area in the current eye image to the full-frame image area of the current eye image, and m ≥ 2 is a positive integer; For m current eye images, the peak signal-to-noise ratios corresponding to the current eye images are calculated respectively, and a current eye image with the largest corresponding peak signal-to-noise ratio is selected as the eye image to be analyzed.
3. The analysis method according to claim 1, characterized in that The step of identifying a first sclera region and a first iris region in the eye image to be analyzed of the target object comprises: Step S101, detecting the edge contour of the eye region in the eye image to be analyzed by an edge detection operator, and cutting out a complete image of the eye region, wherein the length of the complete image of the eye region is L pixels and the height is H pixels, where L is greater than H; Step S102, initializing the current radius r of the virtual circular area to be r0 pixels, r0<L / 2; Step S103: for each target pixel in the complete eye region image, detect whether a coverage area of the complete eye region image covered by a virtual circular area with the target pixel as the center and a current radius r meets a preset condition, and select the coverage area that meets the preset condition as the area to be processed, wherein the preset condition includes: 1) The ratio of the area of the coverage area to the area of the virtual circular area is greater than or equal to a, 0.5≤a≤1; 2) The covered area has a first edge and a second edge that are arranged opposite to each other in the length direction of the complete image of the eye area, the first edge includes a plurality of first edge pixels, the second edge includes a plurality of second edge pixels, the first edge pixels exceeding a proportion b in the first edge satisfy that the pixel difference between the first edge pixel and the corresponding outer adjacent pixel is greater than c, and the second edge pixels exceeding b in the second edge satisfy that the pixel difference between the second edge pixel and the corresponding outer adjacent pixel is greater than c, wherein 90%≤b≤100%, 5%≤c≤15%, and the pixel difference between the edge pixel and the outer adjacent pixel is equal to the difference between the sum of the RGB three-channel values of the edge pixel and the sum of the RGB three-channel values of the outer adjacent pixel divided by the sum of the RGB three-channel values of the edge pixel; Step S104, adding 1 to the pixel of the current radius r to update the current radius r; Step S105, determining whether the updated current radius r is greater than L / 2 pixels; If the updated current radius r is less than or equal to L / 2 pixels, step S103 is performed again with the updated current radius r; If the updated current radius r is greater than L / 2 pixels, execute step S106; Step S106: determining the first sclera region and the first iris region according to the complete image of the eye region and all the regions to be processed.
4. The analysis method according to claim 3, characterized in that The step of determining the first sclera area in step S106 includes: Eliminate all of the to-be-processed areas from the complete image of the eye area, and use the remaining part as the first sclera area; The step of determining the first iris area in step S106 includes: Calculate the ratio of highlighted pixels in each of the to-be-processed areas respectively, where the ratio of highlighted pixels is equal to the number of highlighted pixels in the to-be-processed area divided by the total number of pixels in the to-be-processed area, and the highlighted pixels are pixels whose sum of the RGB three-channel values is greater than or equal to d, and 500≤d≤700; Eliminate the corresponding areas to be processed whose proportion of highlight pixels is greater than or equal to e from all the areas to be processed, 75%≤e≤1; Selecting a region to be processed with the largest corresponding radius from the remaining regions to be processed as the iris pupil overall region, and selecting a region to be processed that is completely within the iris pupil overall region and whose corresponding circle center is closest to the corresponding circle center of the iris pupil overall region as the pupil region; The pupil area is removed from the entire iris-pupil area, and the remaining part is used as the first iris area.
5. The analysis method according to claim 1, characterized in that The step of acquiring first color feature information of the first iris area includes: Eliminate pixels whose sum of RGB three-channel values is less than Q1 and pixels whose sum of RGB three-channel values is greater than Q2 from the first iris area, and use the remaining part as the effective iris area, 80≤Q1≤120, 300≤Q2≤500; The R channel mean iRn, the G channel mean iGn and the B channel mean iBn of all pixels in the effective iris area are calculated.
6. The analysis method according to claim 1, characterized in that The step of acquiring second color feature information of the first sclera area comprises: Remove f circle edge pixels from the first sclera area, and use the remaining part as the sclera effective area, where 1≤f≤4 and f is an integer; The R channel mean sRn, the G channel mean sGn and the B channel mean sBn of all pixels in the effective sclera area are calculated.
7. The analysis method according to claim 1, characterized in that The step of determining a current yellowness value corresponding to the first sclera area according to the calibration color characteristic information comprises: The calibration color feature information is converted from the RGB color space to the CIE-XYZ color space through linear processing, and the corresponding yellowness value is determined by a preset yellowness calculation formula; The preset yellowness calculation formula is expressed as follows: , in, represents the calculated yellowness value, , , Indicates the tristimulus values after the calibration color feature information is converted to the CIE-XYZ color space. and Indicates the coefficient under D65 standard light source.
8. An image-based scleral jaundice analysis system, characterized in that: The analysis system is configured to implement the analysis method according to any one of claims 1 to 7, and the analysis system comprises: an identification module configured to identify a first sclera region and a first iris region in the eye image to be analyzed of the target object; a first acquisition module, configured to acquire first color feature information of the first iris region and second color feature information of the first sclera region, the first color feature information comprising an R channel mean iRn, a G channel mean iGn, and a B channel mean iBn of at least some pixels in the first iris region, and the second color feature information comprising an R channel mean sRn, a G channel mean sGn, and a B channel mean sBn of at least some pixels in the first sclera region; a second acquisition module configured to acquire historical color feature information of a second iris region and a historical yellowness value of a second sclera region in the historical eye image of the target object, wherein the third color feature information includes an R channel mean iRe, a G channel mean iGe, and a B channel mean iBe of at least some pixels in the second iris region; a calibration module, configured to calibrate the second color characteristic information according to the first color characteristic information and the third color characteristic information to obtain calibrated color characteristic information of the first sclera area, wherein the calibrated color characteristic information includes: a calibrated R channel mean sRo, a calibrated G channel mean sGo, and a calibrated B channel mean sBo, sRo=sRn-(iRn-iRe), sGo=sGn-(iGn-iGe), sBo=sBn-(iBn-iBe); a yellowness calculation module, configured to determine a current yellowness value corresponding to the first sclera area according to the calibration color feature information; The evaluation module is configured to evaluate the current jaundice index of the target object based on the current yellowness value, the historical yellowness value and the historical jaundice index of the target object when the historical eye image is taken, and the current jaundice index is positively correlated with the current yellowness value.
9. An electronic device, comprising: one or more processors; A memory for storing one or more programs; It is characterized in that when the one or more programs are executed by the one or more processors, the one or more processors implement the analysis method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Portable quantitative detection system for icteric sclera
CN109620149A
Noninvasive optical sensor for analyzing a level of a substance in a subject by illuminating the sclera
CN110621981A
