Eye pattern observation method and system
Patent Information
- Application Number
- CN202410800738.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-11
AI Technical Summary
In the high-speed communication interface between FPGAs, link interruption causes unstable data transmission. Existing eye diagram observation methods are limited by the portability of hardware devices and the accuracy of software algorithms, and cannot fully meet the needs.
By obtaining the original eye diagram image, extracting RGB values, calculating hue, saturation and brightness, determining the blue pixel area, calculating its proportion, and displaying it, combined with the grayscale image to calculate height, width, symmetry and slope, the eye is realized. Detailed analysis of graphs.
An eye diagram area identification method based on Matlab is provided, which can effectively determine the eye diagram area, evaluate the integrity of the signal, simplify the identification process, evaluate the quality of the communication signal through detailed parameter analysis, and locate hardware or software problems.
Smart Images

Figure CN118764571A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to an eye diagram observation method and system. Background Art
[0002] In the field of modern electronic engineering, FPGA (field programmable gate array) is widely used in the core parts of various complex systems due to its flexibility and high performance, especially those scenarios that require high-speed data transmission and real-time processing. However, in the design of communication interfaces between FPGAs, engineers often face a thorny problem: the high-speed interface occasionally loses its link during operation. The emergence of this problem not only affects the stable transmission of data, but may also have a serious negative impact on the performance of the entire system.
[0003] To diagnose and solve this problem, engineers usually use eye diagram observation technology. Eye diagram is a graphical tool that directly reflects the transmission quality of digital signals under specific conditions. It forms a pattern similar to the outline of an eye by superimposing multiple consecutive data cycles together, thereby revealing key parameters such as signal jitter, noise, and distortion.
[0004] Currently, the observation of eye diagrams mainly relies on the eye diagram generation function built into oscilloscopes or specific software. As a traditional hardware device, the oscilloscope provides high-precision measurement capabilities, but its portability and operational complexity may limit its use in certain environments. Although the software solution is easy to operate, it is limited by computing resources and algorithm accuracy and cannot fully meet the needs of all situations. Summary of the invention
[0005] In order to solve the above-mentioned problems in the prior art, the present invention provides an eye diagram observation method and system.
[0006] In a first aspect, the present application provides an eye diagram observation method, comprising: obtaining an original eye diagram image; extracting the RGB value of each pixel in the original eye diagram image; calculating the hue, saturation and brightness of each pixel in the original eye diagram image based on the RGB value of each pixel in the original eye diagram image; determining the blue pixel in the original eye diagram image based on the hue, saturation and brightness of each pixel in the original eye diagram image; wherein the blue pixel area corresponds to the eye diagram; calculating the proportion of blue pixels in the original eye diagram image and displaying it.
[0007] Optionally, determining the blue pixel in the original eye diagram image based on the hue, saturation and brightness of each pixel in the original eye diagram image includes: comparing the hue, saturation and brightness of each pixel in the original eye diagram image with set conditions, and determining the pixel matching the set conditions as the blue pixel in the original eye diagram image; wherein the set conditions include: a hue value greater than 0.1 and less than 0.6, a saturation greater than 0.4, and a brightness greater than 0.2.
[0008] Optionally, the method also includes: converting the original eye diagram image into a grayscale image; calculating the height of the eye diagram based on the grayscale image; calculating the width of the eye diagram based on the grayscale image; calculating the symmetry of the eye diagram based on the grayscale image; and calculating the rising edge slope of the eye diagram and the falling edge slope of the eye diagram based on the grayscale image.
[0009] Optionally, calculating the height of the eye diagram based on the grayscale image includes: determining the height of the grayscale image, and based on the height, determining the middle horizontal line of the grayscale image; based on the middle horizontal line of the grayscale image and the blue pixel area, determining the maximum edge value and the minimum edge value farthest from the middle horizontal line in the blue pixel area; calculating the height of the eye diagram based on the maximum height value and the minimum height value farthest from the middle horizontal line in the blue pixel area.
[0010] Optionally, calculating the width of the eye diagram based on the grayscale image includes: determining the width of the grayscale image, and based on the width, determining the middle column of the grayscale image; based on the middle column of the grayscale image and the blue pixel area, determining the maximum edge value and the minimum edge value farthest from the middle column in the blue pixel area; calculating the width of the eye diagram based on the maximum edge value and the minimum edge value farthest from the middle column in the blue pixel area.
[0011] Optionally, calculating the symmetry of the eye diagram based on the grayscale image includes: based on the grayscale image, obtaining a first matrix and a second matrix of the eye diagram; wherein the first matrix is a matrix corresponding to the left half of the eye diagram; the second matrix is a matrix corresponding to the right half of the eye diagram; vertically folding the second matrix to obtain a third matrix; wherein the third matrix is a mirror image of the second matrix; and subtracting corresponding element values of the first matrix and the third matrix to determine the symmetry of the eye diagram.
[0012] Optionally, the calculating the rising edge slope of the eye diagram and the falling edge slope of the eye diagram based on the grayscale image includes: smoothing the grayscale image to obtain a smoothed image; performing edge detection on the smoothed image to determine the rising edge of the eye diagram and the falling edge of the eye diagram; and calculating the rising edge slope of the eye diagram and the falling edge slope of the eye diagram based on the rising edge of the eye diagram and the falling edge of the eye diagram.
[0013] Optionally, performing edge detection on the smooth image to determine the rising edge of the eye diagram and the falling edge of the eye diagram includes: using a Sobel operator to perform edge detection on the smooth image, and determining the rising edge of the eye diagram and the falling edge of the eye diagram by setting a threshold; wherein the set threshold is 0.7.
[0014] Optionally, smoothing the grayscale image to obtain the smoothed image includes: using a Gaussian filter to smooth the grayscale image to obtain the smoothed image; wherein the standard deviation of the Gaussian filter is 0.001.
[0015] In a second aspect, an embodiment of the present application provides an eye diagram observation system, comprising: an acquisition module for acquiring an original eye diagram image; an extraction module for extracting the RGB value of each pixel in the original eye diagram image; a first calculation module for calculating the hue, saturation and brightness of each pixel in the original eye diagram image based on the RGB value of each pixel in the original eye diagram image; a determination module for determining the blue pixel in the original eye diagram image based on the hue, saturation and brightness of each pixel in the original eye diagram image; wherein the blue pixel area corresponds to the eye diagram; and a second calculation module for calculating the proportion of blue pixels in the original eye diagram image and displaying it.
[0016] The beneficial effects of the present invention include:
[0017] First, an eye diagram region recognition method based on Matlab is provided, which can effectively determine the eye diagram region and evaluate the integrity of the eye diagram.
[0018] Second, in the specific judgment process, the RGB value of each pixel in the original eye diagram image is first extracted; then, based on the RGB value of each pixel in the original eye diagram image, the hue, saturation and brightness of each pixel in the original eye diagram image are calculated; then, based on the hue, saturation and brightness of each pixel in the original eye diagram image, the blue pixel in the original eye diagram image can be determined. It can be seen that this method can simply and efficiently identify the eye diagram area. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1A flowchart of the steps of an eye diagram observation method provided by an embodiment of the present invention;
[0020] Figure 2 A flowchart of another eye diagram observation method provided for the implementation of the present invention;
[0021] Figure 3 A schematic diagram of an original eye diagram image provided by an embodiment of the present invention;
[0022] Figure 4 A schematic diagram of a blue pixel region mask provided by an embodiment of the present invention;
[0023] Figure 5 A schematic diagram of a blue area provided by an embodiment of the present invention;
[0024] Figure 6 A schematic diagram of a non-blue area provided by an embodiment of the present invention;
[0025] Figure 7 An edge fitting graph provided by an embodiment of the present invention;
[0026] Figure 8 A slope fitting graph provided by an embodiment of the present invention;
[0027] Fig. 9 A module block diagram of an eye diagram observation system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0029] See also Figure 1 , an embodiment of the present application provides an eye diagram observation method, including: steps 101 to 105.
[0030] Step 101: Obtain an original eye diagram image.
[0031] Step 102: extracting the RGB value of each pixel in the original eye diagram image.
[0032] Step 103: Calculate the hue, saturation and brightness of each pixel in the original eye image based on the RGB value of each pixel in the original eye image.
[0033] Step 104: Determine the blue pixel in the original eye pattern image based on the hue, saturation and brightness of each pixel in the original eye pattern image; wherein the blue pixel area corresponds to the eye pattern.
[0034] Step 105: Calculate the proportion of blue pixels in the original eye diagram image and display it.
[0035] It should be noted that the larger the blue area, the smaller the signal jitter, which in turn indicates better signal integrity.
[0036] In summary, the eye diagram observation method provided in the embodiment of the present application has the following beneficial effects, including:
[0037] First, an eye diagram region recognition method based on Matlab is provided, which can effectively determine the eye diagram region and evaluate the integrity of the eye diagram.
[0038] Second, in the specific judgment process, the RGB value of each pixel in the original eye diagram image is first extracted; then, based on the RGB value of each pixel in the original eye diagram image, the hue, saturation and brightness of each pixel in the original eye diagram image are calculated; then, based on the hue, saturation and brightness of each pixel in the original eye diagram image, the blue pixel in the original eye diagram image can be determined. It can be seen that this method can simply and efficiently identify the eye diagram area.
[0039] Optionally, based on the hue, saturation and brightness of each pixel in the original eye pattern image, the blue pixel in the original eye pattern image is determined, including: comparing the hue, saturation and brightness of each pixel in the original eye pattern image with set conditions, and determining the pixel matching the set conditions as the blue pixel in the original eye pattern image; wherein the set conditions include: the hue value is greater than 0.1 and less than 0.6, the saturation is greater than 0.4, and the brightness is greater than 0.2.
[0040] See also Figure 2 Optionally, the eye diagram observation method provided in the embodiment of the present application further includes: steps 201 to 205.
[0041] Step 201: Convert the original eye pattern image into a grayscale image.
[0042] Step 202: Calculate the height of the eye diagram based on the grayscale image.
[0043] Step 203: Calculate the width of the eye diagram based on the grayscale image.
[0044] Step 204: Calculate the symmetry of the eye diagram based on the grayscale image.
[0045] Step 205: Calculate the rising edge slope of the eye diagram and the falling edge slope of the eye diagram based on the grayscale image.
[0046] That is, the embodiment of the present application provides an eye diagram image analysis method based on Matlab, which can realize the effective calculation of the height, width, symmetry, rising edge slope and falling edge slope of the eye diagram.
[0047] It should be noted that the height of the eye diagram is used to measure the peak-to-peak amplitude of the signal.
[0048] The width of the eye diagram is used to measure the pulse width of the signal.
[0049] The symmetry of the eye diagram is used to measure the transmission balance in both the sending and receiving directions.
[0050] The rising and falling slopes of the eye diagram are used to measure the clock synchronization performance.
[0051] The above calculated parameters can accurately evaluate the quality of the communication signal, provide performance analysis of the communication channel, and locate whether the channel hardware circuit problem or software code problem is more likely.
[0052] Optionally, the height of the eye diagram is calculated based on the grayscale image, including: determining the height of the grayscale image, and based on the height, determining the middle horizontal line of the grayscale image; based on the middle horizontal line of the grayscale image and the blue pixel area, determining the maximum edge value and the minimum edge value farthest from the middle horizontal line in the blue pixel area; calculating the height of the eye diagram based on the maximum height value and the minimum height value farthest from the middle horizontal line in the blue pixel area.
[0053] Optionally, the width of the eye diagram is calculated based on the grayscale image, including: determining the width of the grayscale image, and based on the width, determining the middle column of the grayscale image; based on the middle column of the grayscale image and the blue pixel area, determining the maximum edge value and the minimum edge value farthest from the middle column in the blue pixel area; calculating the width of the eye diagram based on the maximum edge value and the minimum edge value farthest from the middle column in the blue pixel area.
[0054] Optionally, the symmetry of the eye diagram is calculated based on the grayscale image, including: based on the grayscale image, obtaining a first matrix and a second matrix of the eye diagram; wherein the first matrix is a matrix corresponding to the left half of the eye diagram; the second matrix is a matrix corresponding to the right half of the eye diagram; the second matrix is vertically folded to obtain a third matrix; wherein the third matrix is a mirror image of the second matrix; and the corresponding element values of the first matrix and the third matrix are subtracted to determine the symmetry of the eye diagram.
[0055] It should be noted that the elements contained in the matrix correspond to the pixel values in the image. The difference between the left and right eye diagrams can be quantified by the first matrix and the third matrix to effectively determine the symmetry of the eye diagram.
[0056] Optionally, the rising edge slope and the falling edge slope of the eye diagram are calculated based on the grayscale image, including: smoothing the grayscale image to obtain a smoothed image; performing edge detection on the smoothed image to determine the rising edge and the falling edge of the eye diagram; and calculating the rising edge slope and the falling edge slope of the eye diagram based on the rising edge and the falling edge of the eye diagram.
[0057] Specifically, the imgaussfilt function can be used to perform Gaussian filtering on the grayscale image to reduce noise and smooth the image.
[0058] Optionally, edge detection is performed on the smooth image to determine the rising edge and the falling edge of the eye diagram, including: using a Sobel operator to perform edge detection on the smooth image, and determining the rising edge and the falling edge of the eye diagram by setting a threshold; wherein the threshold is set to 0.7.
[0059] It should be noted that the morphological closing operation is implemented through edge detection to connect small gaps on the edge.
[0060] That is, the slope of the rising edge can be obtained by calculating the gradient along the edge.
[0061] Optionally, smoothing the grayscale image to obtain a smoothed image includes: using a Gaussian filter to smooth the grayscale image to obtain a smoothed image; wherein the standard deviation of the Gaussian filter is 0.001.
[0062] Below, the code implementation of "calculating the proportion of blue pixels in the original eye diagram image" in the eye diagram observation method provided in the embodiment of the present application is demonstrated:
[0063] %Read the first eye diagram
[0064] img = imread('F:\Working Documents\Technical Data\Papers\Papers Patents\1\Y2.png');
[0065] %Create the first sub-graph window
[0066] figure;
[0067] %subplot(2,2,4);
[0068] %imshow(img,'InitialMagnification',100); %Use the 'fit' parameter to adjust the initial display magnification;
[0069] imshow(img);
[0070] title('Original image');
[0071] %title('Original Image');
[0072] % Calculate the blue area;
[0073] hsv_img = rgb2hsv(img);
[0074] hue = hsv_img(:,:,1);
[0075] saturation=hsv_img(:,:,2);
[0076] value = hsv_img(:,:,3);
[0077] blue_mask=(hue<0.1)|(hue>0.6);
[0078] blue_mask=blue_mask&(saturation>0.4)&(value>0.2);
[0079] blue_pixels=sum(blue_mask(:));
[0080] total_pixels=numel(blue_mask);
[0081] blue_area_ratio=blue_pixels / total_pixels;
[0082] %Create the second sub-chart window;
[0083] figure;
[0084] %subplot(2,2,1);
[0085] imshow(blue_mask,'InitialMagnification','fit'); %Use the 'fit' parameter to adjust the initial display magnification;
[0086] colormap(gca,'gray');
[0087] title('Blue Area Mask');
[0088] %Convert img to double precision floating point type;
[0089] img_double=double(img) / 255.0;
[0090] %Create the third sub-chart window;
[0091] figure;
[0092] %subplot(2,2,3);
[0093] %imshow(img_double.*repmat(blue_mask,[1,1,3]));
[0094] imshow(blue_mask);
[0095] colormap(gca,'gray');
[0096] title('blue area');
[0097] %Create the fourth sub-image window;
[0098] figure;
[0099] %subplot(2,2,1);
[0100] imshow(img_double.*repmat(~blue_mask,[1,1,3]));
[0101] %imshow(img,'InitialMagnification',10); %Adjust the value here to fit the window;
[0102] title('non-blue area');
[0103] %The command window shows the percentage of blue area;
[0104] disp(['Blue area ratio:',num2str(blue_area_ratio)]).
[0105] It should be noted that the calculation of the proportion of blue pixels in the original eye diagram image includes four different images, namely: the original image (corresponding to the original eye diagram image), the blue area mask, the blue area, and the non-blue area.
[0106] That is, after obtaining the original image, first calculate the blue area, then create a second sub-image window and set it as "blue area mask", then create a third sub-image window and set it as "blue area"; then create a fourth sub-image window and set it as "non-blue area". Finally, the blue area ratio can be calculated.
[0107] The original image can be referenced Figure 3 , the blue area mask can be referenced Figure 4 , the blue area can be referenced Figure 5 , non-blue areas can refer to Figure 6 .
[0108] Below, the code implementation of "calculating the height, width, symmetry, rising edge slope and falling edge slope of the eye diagram" in the eye diagram observation method provided in the embodiment of the present application is demonstrated:
[0109] %Read the first eye diagram;
[0110] img = imread('F:\Working Documents\Technical Data\Papers\Papers Patents\1\Y2.png');
[0111] gray_img = rgb2gray(img);
[0112] %Determine the position of the horizontal line;
[0113] horizontal_line_y=size(img,1) / 2;
[0114] % Image smoothing;
[0115] sigma = 0.001;
[0116] smoothed_img=imgaussfilt(gray_img,sigma);
[0117] %Edge detection;
[0118] edges=edge(smoothed_img,'Sobel');
[0119] % Use morphology for edge joining;
[0120] se = strel('disk',0);
[0121] edges = imclose(edges,se);
[0122] % Find edge point coordinates;
[0123] [edge_y,edge_x]=find(edges);
[0124] % Sort edge points by Y coordinate;
[0125] [sorted_y,sorted_idx]=sort(edge_y);
[0126] sorted_x=edge_x(sorted_idx);
[0127] % Select a point on the middle horizontal line of the image;
[0128] midpoint_y=round(size(img,1) / 2);
[0129] midline_points = sorted_x (sorted_y == midpoint_y); % Select two points, the left and right ends;
[0130] left_point=min(midline_points);
[0131] right_point=max(midline_points);
[0132] % Calculate the eye diagram height;
[0133] eye_height=max(midline_points)-min(midline_points);
[0134] middle_column=size(img,2) / 2;
[0135] [max_value_x,max_value_y]=findMaxValuePoint(img,blue_mask,middle_column);
[0136] [min_value_x,min_value_y]=findMaxValuePoint(img,blue_mask,mi ddle_column);
[0137] %Select the points on the upper edge and falling edge of the blue area;
[0138] threshold_y = 0.7;
[0139] upper_edge_points=sorted_x(sorted_y <threshold_y);
[0140] lower_edge_points=sorted_x(sorted_y>=threshold_y);
[0141] % Calculate the upper and lower edge slopes;
[0142] upper_slope=polyfit(sorted_y(sorted_y <threshold_y),upper_edge_points,1);
[0143] lower_slope=polyfit(sorted_y(sorted_y>=threshold_y),lower_edge_points,1);
[0144] % draw the graph and slope;
[0145] figure;
[0146] % draw the original image;
[0147] %subplot(3,1,1);
[0148] imshow(img);
[0149] title('Image');
[0150] %Draw the edge detection result image;
[0151] figure;
[0152] %subplot(2,1,2);
[0153] imshow(edges);
[0154] title('Edges');
[0155] %Display slope information;
[0156] figure;
[0157] plot(sorted_y,sorted_x,'.','MarkerSize',2);
[0158] hold on;
[0159] %plot(slope);
[0160] plot(sorted_y(sorted_y <threshold_y),polyval(upper_slope,sorted_y(sorted_y<threshold_y)),'r','LineWidth',2);
[0161] plot(sorted_y(sorted_y>=threshold_y),polyval(lower_slope,sorted_y(sorted_y>=threshold_y)),'g','LineWidth',2);
[0162] hold off;
[0163] title('slope');
[0164] % Display the peak and minimum values of the eye peak;
[0165] figure;
[0166] imshow(edges);
[0167] hold on;
[0168] plot([left_point(1),max_value_x],[left_point(2),max_value_y],'r','LineWidth',2);
[0169] hold off;
[0170] title('Fitted slope').
[0171] It should be noted that the above code is only a code implementation method provided by this application. It is not intended to be limiting. In addition, the edge fitting diagram corresponding to the above code can be referred to Figure 7 , the slope fitting graph can be referred to Figure 8 .
[0172] In summary, the embodiment of the present application provides a method for accurately identifying and analyzing eye diagram images based on Matlab, which mainly utilizes image processing, HSV color model, grayscale processing, binarization processing, and edge detection algorithm to judge and read the eye diagram, and then infer whether there are problems in the circuit design and the direction in which the code can be optimized by analyzing the eye diagram quality.
[0173] Based on the same inventive concept, please refer to Fig. 9The embodiment of the present application provides an eye diagram observation system 90, including: an acquisition module 901, used to acquire an original eye diagram image; an extraction module 902, used to extract the RGB value of each pixel in the original eye diagram image; a first calculation module 903, used to calculate the hue, saturation and brightness of each pixel in the original eye diagram image based on the RGB value of each pixel in the original eye diagram image; a determination module 904, used to determine the blue pixel in the original eye diagram image based on the hue, saturation and brightness of each pixel in the original eye diagram image; wherein the blue pixel area corresponds to the eye diagram; a second calculation module 905, used to calculate the proportion of blue pixels in the original eye diagram image and display it.
[0174] Optionally, the determination module 904 is also specifically used to compare the hue, saturation and brightness of each pixel in the original eye pattern image with set conditions, and determine the pixel matching the set conditions as the blue pixel in the original eye pattern image; wherein the set conditions include: the hue value is greater than 0.1 and less than 0.6, the saturation is greater than 0.4, and the brightness is greater than 0.2.
[0175] Optionally, the method further includes a parameter calculation module.
[0176] A parameter calculation module is used to convert the original eye diagram image into a grayscale image; calculate the height of the eye diagram based on the grayscale image; calculate the width of the eye diagram based on the grayscale image; calculate the symmetry of the eye diagram based on the grayscale image; calculate the rising edge slope of the eye diagram and the falling edge slope of the eye diagram based on the grayscale image.
[0177] Optionally, the parameter calculation module is also specifically used to confirm the height of the grayscale image, and based on the height, determine the middle horizontal line of the grayscale image; based on the middle horizontal line of the grayscale image and the blue pixel area, determine the maximum edge value and the minimum edge value farthest from the middle horizontal line in the blue pixel area; based on the maximum height value and the minimum height value farthest from the middle horizontal line in the blue pixel area, calculate the height of the eye diagram.
[0178] Optionally, the parameter calculation module is also specifically used to confirm the width of the grayscale image, and based on the width, determine the middle column of the grayscale image; based on the middle column of the grayscale image and the blue pixel area, determine the maximum edge value and the minimum edge value farthest from the middle column in the blue pixel area; based on the maximum edge value and the minimum edge value farthest from the middle column in the blue pixel area, calculate the width of the eye diagram.
[0179] Optionally, the parameter calculation module is also specifically used to obtain the first matrix and the second matrix of the eye diagram based on the grayscale image; wherein the first matrix is the matrix corresponding to the left half of the eye diagram; the second matrix is the matrix corresponding to the right half of the eye diagram; the second matrix is vertically folded to obtain a third matrix; wherein the third matrix is a mirror image of the second matrix; the corresponding element values of the first matrix and the third matrix are subtracted to determine the symmetry of the eye diagram.
[0180] Optionally, the parameter calculation module is also specifically used to smooth the grayscale image to obtain a smoothed image; perform edge detection on the smoothed image to determine the rising edge of the eye diagram and the falling edge of the eye diagram; and calculate the rising edge slope of the eye diagram and the falling edge slope of the eye diagram based on the rising edge of the eye diagram and the falling edge of the eye diagram.
[0181] Optionally, the parameter calculation module is further specifically used to use a Sobel operator to perform edge detection on the smoothed image, and determine the rising edge and the falling edge of the eye diagram by setting a threshold; wherein the set threshold is 0.7.
[0182] Optionally, the parameter calculation module is further specifically used to use a Gaussian filter to smooth the grayscale image to obtain the smoothed image; wherein the standard deviation of the Gaussian filter is 0.001.
[0183] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0184] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0185] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0186] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0187] It should be noted that the information interaction, execution process, etc. between the above-mentioned systems / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0188] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0189] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0190] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0191] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0192] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0193] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0194] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0195] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0196] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for observing an eye diagram, characterized in that: include: Get the original eye diagram image; Extracting the RGB value of each pixel in the original eye diagram image; Calculate the hue, saturation and brightness of each pixel in the original eye image based on the RGB value of each pixel in the original eye image; Determine the blue pixel in the original eye image based on the hue, saturation and brightness of each pixel in the original eye image; wherein the blue pixel area corresponds to the eye image; The proportion of blue pixels in the original eye diagram image is calculated and displayed.
2. The eye diagram observation method according to claim 1, characterized in that: The step of determining a blue pixel in the original eye image based on the hue, saturation and brightness of each pixel in the original eye image comprises: Compare the hue, saturation and brightness of each pixel in the original eye image with the set conditions, and determine the pixel matching the set conditions as the blue pixel in the original eye image; The setting conditions include: the hue value is greater than 0.1 and less than 0.6, the saturation is greater than 0.4, and the brightness is greater than 0.
2.
3. The eye diagram observation method according to claim 1, characterized in that: The method further comprises: Converting the original eye pattern image into a grayscale image; Calculating the height of the eye diagram based on the grayscale image; Calculating the width of the eye diagram based on the grayscale image; Calculating the symmetry of the eye diagram based on the grayscale image; The rising edge slope of the eye diagram and the falling edge slope of the eye diagram are calculated based on the grayscale image.
4. The eye diagram observation method according to claim 3, characterized in that: The step of calculating the height of the eye diagram based on the grayscale image comprises: determining a height of the grayscale image, and based on the height, determining a middle horizontal line of the grayscale image; Based on the middle horizontal line of the grayscale image and the blue pixel area, determining a maximum edge value and a minimum edge value farthest from the middle horizontal line in the blue pixel area; The height of the eye diagram is calculated based on the maximum height value and the minimum height value which are farthest from the middle horizontal line in the blue pixel area.
5. The eye diagram observation method according to claim 3, characterized in that: The calculating the width of the eye diagram based on the grayscale image comprises: determining a width of the grayscale image, and based on the width, determining a middle column of the grayscale image; Based on the middle column of the grayscale image and the blue pixel region, determining a maximum edge value and a minimum edge value farthest from the middle column in the blue pixel region; The width of the eye diagram is calculated based on the maximum edge value and the minimum edge value farthest from the middle column in the blue pixel area.
6. The eye diagram observation method according to claim 3, characterized in that: The calculating the symmetry of the eye diagram based on the grayscale image comprises: Based on the grayscale image, a first matrix and a second matrix of the eye diagram are obtained; wherein the first matrix is a matrix corresponding to the left half of the eye diagram; and the second matrix is a matrix corresponding to the right half of the eye diagram; Folding the second matrix vertically to obtain a third matrix; wherein the third matrix is a mirror image of the second matrix; Subtract the corresponding element values of the first matrix and the third matrix to determine the symmetry of the eye diagram.
7. The eye diagram observation method according to claim 3, characterized in that: The calculating the rising edge slope of the eye diagram and the falling edge slope of the eye diagram based on the grayscale image comprises: Smoothing the grayscale image to obtain a smoothed image; Performing edge detection on the smoothed image to determine a rising edge of the eye diagram and a falling edge of the eye diagram; Based on the rising edge of the eye diagram and the falling edge of the eye diagram, a rising edge slope of the eye diagram and a falling edge slope of the eye diagram are calculated.
8. The method for observing an eye diagram according to claim 7, characterized in that: The performing edge detection on the smoothed image to determine the rising edge of the eye diagram and the falling edge of the eye diagram comprises: Using the Sobel operator to perform edge detection on the smoothed image, and determining the rising edge of the eye diagram and the falling edge of the eye diagram by setting a threshold; Wherein, the set threshold is 0.
7.
9. The eye diagram observation method according to claim 7, characterized in that: The step of smoothing the grayscale image to obtain a smoothed image comprises: Using a Gaussian filter to smooth the grayscale image to obtain the smoothed image; The standard deviation of the Gaussian filter is 0.
001.
10. An eye diagram observation system, characterized in that: include: An acquisition module, used for acquiring an original eye diagram image; An extraction module, used to extract the RGB value of each pixel in the original eye diagram image; A first calculation module, used for calculating the hue, saturation and brightness of each pixel in the original eye image based on the RGB value of each pixel in the original eye image; A determination module, configured to determine a blue pixel in the original eye image based on the hue, saturation and brightness of each pixel in the original eye image; wherein the blue pixel area corresponds to the eye image; The second calculation module is used to calculate the proportion of blue pixels in the original eye diagram image and display it.
Citation Information
Cited By
Electronic equipment electrical performance testing device and method based on voltage signal processing
CN120254572A
