Halo measurement method and device and storage medium
Through curve fitting of halo images and Hough gradient detection, the halo area is identified and measured, which solves the problem of difficulty in halo measurement in the prior art and achieves accurate halo measurement results.
Patent Information
- Application Number
- CN202411179685.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-12-06
AI Technical Summary
The existing halo measurement methods require high-precision measurement instruments, which are difficult to accurately capture halo phenomena in the light and dark junction areas.
By acquiring halo images, identifying bright areas, obtaining grayscale value data around the bright areas for curve fitting, determining the halo area, and measuring based on the grayscale value data of the halo area, using Hough gradient detection and polynomial simulating Combine the curve to determine the halo boundary and measurement results.
The halo measurement results can be accurately obtained without high-precision measuring instruments, reducing the measurement difficulty and reflecting the severity of halo phenomenon.
Smart Images

Figure CN119090767A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a halo measurement method, device and storage medium. Background Art
[0002] With the support of Mini-LED (Mini-Light Emitting Diode) Local Dimming technology, the TV can reduce or turn off the brightness of the LED area corresponding to the dark scene in the picture, and increase the brightness of the LED in the bright scene part of the picture, greatly improving the dynamic contrast. However, due to the principle of the LCD panel itself, the liquid crystal transmittance of the dark scene is generally not 0. Therefore, in the area where light and dark meet, the light of the LED in the bright area will diverge into the dark area and pass through the glass to form a halo phenomenon.
[0003] The existing method for measuring halo is to collect the brightness data of the halo area through a brightness meter for processing, which requires a measuring instrument with high measurement accuracy. Otherwise, the brightness area of a single test is large and it is difficult to capture the appropriate test point. Summary of the invention
[0004] The main purpose of this application is to provide a halo measurement method, device, equipment and storage medium, aiming to solve the technical problem that the existing measurement method requires high-precision measuring instruments and has high measurement difficulty.
[0005] To achieve the above object, the present application proposes a halo measurement method, the method comprising:
[0006] Acquire a halo image, and identify a bright area in the halo image;
[0007] Acquire first gray value data around the bright area, and perform curve fitting on the first gray value data to obtain a fitting curve;
[0008] Determine a halo region in the halo image according to the fitting curve;
[0009] A halo measurement result of the halo image is determined based on the second gray value data of the halo area.
[0010] In one embodiment, the step of identifying the bright area in the halo image comprises:
[0011] Performing noise reduction processing on the halo image to obtain a noise-reduced image;
[0012] Obtaining a central circle in the denoised image by Hough gradient detection;
[0013] The interior of the central circle is regarded as the bright area.
[0014] In one embodiment, after the step of obtaining the central circle in the denoised image by Hough gradient detection, the step further includes:
[0015] Acquire the third gray value data of the central circle at the center position;
[0016] When the third gray value data is less than a preset gray threshold, deleting the central circle;
[0017] In a case where the third grayscale value data is greater than or equal to the preset grayscale threshold, the step of taking the interior of the central circle as the bright area is performed.
[0018] In one embodiment, the step of acquiring first gray value data around the bright area and performing curve fitting on the first gray value data to obtain a fitting curve comprises:
[0019] Selecting a scanning point on a bright area boundary of the bright area;
[0020] In one scanning process, taking the initial position of the scanning point as the starting point, the scanning point is rotated at a preset scanning angle on the boundary of the bright area to reach the scanning position;
[0021] Move the scanning point in the directions of each coordinate axis at the scanning position to obtain first gray value data on the moving path of the scanning point;
[0022] The first gray value data is subjected to curve fitting by using a polynomial to obtain fitting curves in the directions of the coordinate axes until the scanning is completed.
[0023] In one embodiment, the step of determining the halo area in the halo image according to the fitting curve comprises:
[0024] Determining a curve equation of each of the fitting curves, and determining an equation threshold of the curve equation;
[0025] Obtaining the halo boundary of the halo area according to the equation threshold;
[0026] The area within the halo boundary and outside the bright area boundary is regarded as the halo area.
[0027] In one embodiment, the step of obtaining the halo boundary of the halo area according to the equation threshold comprises:
[0028] Determine the relative position of the halo boundary according to the equation threshold, take the center point of the bright area as the center of the circle, and determine the initial radius corresponding to the curve equation based on the relative position;
[0029] The average value of the initial radii in the directions of the coordinate axes is taken as the final radius of the halo area, and the position of the final radius is taken as the halo boundary.
[0030] In one embodiment, the step of determining the halo measurement result of the halo image based on the second gray value data of the halo area comprises:
[0031] Determine the sum of the grayscale values of the pixels in the halo area, and use the sum of the grayscale values as the second grayscale value data;
[0032] The second gray value data is input into a preset halo evaluation function to obtain a halo evaluation score, and the halo evaluation score is used as a halo measurement result, wherein the larger the second gray value data is, the lower the halo evaluation score is.
[0033] In one embodiment, the preset halo evaluation function is:
[0034]
[0035] Among them, ∑ halo_area halo_gray(x,y) is the sum of the gray values of the pixels in the halo area, n1 and n2 are scaling parameters, and Score is the halo evaluation score.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a halo measurement device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the halo measurement method described above.
[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the halo measurement method described above are implemented.
[0038] One or more technical solutions proposed in the present application have at least the following technical effects: obtaining a halo image, identifying a bright area in the halo image, the bright area is an area that actually emits light, and the generation of the halo is due to the light in the bright area entering the adjacent low-brightness area; obtaining first gray value data around the bright area, performing curve fitting on the first gray value data, and obtaining a fitting curve, there is a difference between the brightness of the halo and the bright area, and there is also a difference between the brightness of the halo and the non-luminous area, and this difference can be characterized by the first gray value data, and the fitting curve obtained after data fitting can fit the change trend of the first gray value data; determining the halo area in the halo image according to the fitting curve, and the boundary of the halo can be determined by the change trend presented by the fitting curve, thereby determining the halo area; determining the halo measurement result of the halo image based on the second gray value data of the halo area, the second gray value data can characterize the brightness of the halo area, and then obtaining the halo measurement result to evaluate the severity of the halo phenomenon in the halo image. The present application characterizes the changing trend of the first gray value data in the halo image by means of curve fitting, and then accurately obtains the position of the halo area. The second gray value data is used as the basis for the halo measurement result, which can reflect the degree of halo. Accurate halo measurement results can be obtained without using high-precision measuring instruments to collect halo brightness data, and the measurement difficulty is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0041] Figure 1 A schematic diagram of a flow chart of the first embodiment of the halo measurement method of the present application;
[0042] Figure 2 This is a halo processing result diagram of a halo evaluation score of 95.86 points involved in the halo measurement method of this application;
[0043] Figure 3 This is a halo processing result diagram of a halo evaluation score of 78.8 points involved in the halo measurement method of this application;
[0044] Figure 4 This is a halo processing result diagram of a halo evaluation score of 51.69 points involved in the halo measurement method of this application;
[0045] Figure 5 A schematic diagram of a brief process of the halo measurement method provided in an embodiment of the present application;
[0046] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the halo measurement method in the embodiment of the present application.
[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solution of the present application and are not used to limit the present application. In order to better understand the technical solution of the present application, the following will be described in detail in conjunction with the accompanying drawings and specific implementation methods.
[0049] The present application embodiment provides a halo measurement method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the halo measurement method of the present application.
[0050] In this embodiment, the halo measurement method includes steps S10 to S40:
[0051] Step S10, acquiring a halo image, and identifying a bright area in the halo image;
[0052] A halo image refers to an image containing the halo phenomenon to be measured. A bright area refers to the area in the halo image that actually emits light. It is understandable that during the operation of the display device, the dark scene in the display image is controlled by lowering the brightness, and the light emitted by the bright area inevitably radiates to the dark area around it, forming a halo phenomenon. The severity of the halo phenomenon will affect the human eye's perception of the brightness of the display image.
[0053] The halo image can be obtained by taking pictures with an image acquisition device, and the taken halo image can be directly read during the halo measurement process. It can be understood that the display content of the halo image used for measurement can be controlled according to the measurement needs. The light in the bright area is generated by the light source. In the halo image, the brightness of the bright area is relatively uniform, while the difference between the bright area and the halo is large. The boundary between the bright area and the halo can be identified through this brightness difference, and the area within the boundary is determined to be the bright area.
[0054] Step S20, acquiring first gray value data around the bright area, and performing curve fitting on the first gray value data to obtain a fitting curve;
[0055] The first gray value data refers to the gray value data of the surrounding area around the bright area. Curve fitting refers to the process of fitting the change trend of the first gray value data with a curve, and the curve used for fitting is the fitting curve. It can be understood that the gray value can reflect the color depth and brightness of the pixel in the halo image. According to the principle of the halo phenomenon, the halo will appear around the bright area. The farther away from the bright area, the lower the brightness of the halo. By fitting the first gray value data and determining its change trend, the position where the halo appears can be determined.
[0056] In a feasible implementation, multiple divergent directions are selected in the halo image, the center point of the bright area is taken as the starting point, first grayscale value data is acquired along each divergent direction, and the first grayscale value data in each divergent direction is fitted to obtain a fitting curve.
[0057] Step S30, determining a halo area in the halo image according to the fitting curve;
[0058] The halo region refers to the region where the halo phenomenon appears in the halo image. The edge position of the halo region can be found by fitting the variation trend of the first gray value data obtained by the fitting curve, and the region within the edge position of the halo region and outside the bright region is the halo region.
[0059] In a feasible implementation, pixels representing the halo boundary in the fitting curve in each divergent direction are taken as halo boundary points to obtain the radius position of the halo, and the average value of the radius position is taken as the halo boundary.
[0060] Step S40: determining a halo measurement result of the halo image based on the second gray value data of the halo area.
[0061] The second gray value data refers to the gray value data of the pixels contained in the halo area. The gray value data can reflect the brightness of the pixel. When the second gray value data indicates that the brightness of the halo area is higher, the halo phenomenon is more serious. It can be understood that the area of the halo area and the brightness of the halo area have a certain influence on the severity of the halo phenomenon. The larger the area of the halo area, the larger the range of the halo phenomenon, and the more serious the halo. The higher the brightness of the halo area, the smaller the contrast between the dark area and the bright area, and the more serious the halo.
[0062] The present embodiment provides a halo measurement method, which includes acquiring a halo image, identifying a bright area in the halo image, wherein the bright area is an area that actually emits light, and the generation of the halo is due to the light in the bright area entering an adjacent low-brightness area; acquiring first gray value data around the bright area, performing curve fitting on the first gray value data, and obtaining a fitting curve; there is a difference between the brightness of the halo and the bright area, and there is also a difference between the brightness of the halo and the brightness of the non-luminous area, and the first gray value data can be used to characterize this difference; the fitting curve obtained after data fitting can fit the change trend of the first gray value data; determining the halo area in the halo image according to the fitting curve, and determining the boundary of the halo according to the change trend presented by the fitting curve, thereby determining the halo area; determining the halo measurement result of the halo image based on the second gray value data of the halo area, and the second gray value data can characterize the brightness of the halo area, thereby obtaining the halo measurement result to evaluate the severity of the halo phenomenon in the halo image. The present application characterizes the changing trend of the first gray value data in the halo image by means of curve fitting, and then accurately obtains the position of the halo area. The second gray value data is used as the basis for the halo measurement result, which can reflect the degree of halo. Accurate halo measurement results can be obtained without using high-precision measuring instruments to collect halo brightness data, and the measurement difficulty is reduced.
[0063] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, step S10 includes steps S11 to S13:
[0064] Step S11, performing noise reduction processing on the halo image to obtain a noise-reduced image;
[0065] It is understandable that the image quality of the halo image has a certain impact on the subsequent detection process, and the image quality can be improved by noise reduction processing. The halo image can be subjected to noise reduction processing by a filter to obtain a noise-reduced image. The processing process of the halo image in this embodiment can be run in OpenCV (Open Source Computer Vision Library, open source computer vision library).
[0066] Step S12, obtaining a central circle in the denoised image by Hough gradient detection;
[0067] In the halo image, the bright area is formed as a circle. The circle detection can be performed by Hough gradient detection, and the detected central circle is used as the pre-selection of the bright area. In the Hough gradient detection process, the edge points in the image are first extracted through edge detection algorithms, such as Canny edge detection, etc. These edge points are potential boundaries of circular features. For each edge point, its local gradient is calculated, and these gradient information is used to determine the modulus vector of the point on the circle. Since the center of the circle is located at the intersection of the modulus vectors of all points on the circle, the potential center position can be detected by accumulating the intersection of these modulus vectors in the parameter space (two-dimensional center coordinate space). Then, based on the detected center of the circle, the radius of the circle is determined by calculating the distance from the center of the circle to the edge point, thereby completing the detection of the circle and marking the center circle and the position of its center in the denoised image.
[0068] Step S13: taking the interior of the central circle as the bright area.
[0069] The area inside the central circle obtained by Hough gradient detection and surrounded by the circumference of the central circle is regarded as the luminous bright area. In the case of high enough detection accuracy, the inside of the central circle obtained by detection can be directly regarded as the bright area.
[0070] In a feasible implementation manner, step S12 further includes steps S121 to S123:
[0071] Step S121, obtaining the third gray value data of the center circle at the center position;
[0072] It is understandable that due to shape distortion or other factors that affect display quality, misdetection may occur during circle detection, including mistaking a center circle that is not a bright area as a bright area. The problem of misdetection can be eliminated by grayscale value detection. The center position of the center circle can be obtained during circle detection, so the third grayscale value data of the pixel at the center position can be obtained, and whether the center circle is a bright area can be determined by the third grayscale value data.
[0073] Step S122, when the third gray value data is less than a preset gray threshold, deleting the central circle;
[0074] The preset grayscale threshold refers to the grayscale threshold used to determine whether the center position of the circle is located in the bright area spot. It can be understood that the pixel brightness in the bright area is higher, and the higher the grayscale value, the higher the brightness. A certain grayscale value needs to be reached to be displayed as a bright area. The third grayscale value data is less than the preset grayscale threshold, indicating that the brightness at the center of the center circle is low, and the interior of the center circle is not a bright area. This center circle can be deleted and will not be identified as a bright area.
[0075] Step S123, when the third gray value data is greater than or equal to the preset gray threshold, executing the step of taking the interior of the central circle as the bright area.
[0076] The third grayscale value data is greater than or equal to the preset grayscale threshold, indicating that the center of the central circle has reached a certain brightness, and the interior of the central circle can be determined to be a bright area.
[0077] In this embodiment, the image quality is improved by noise reduction processing, and the central circle is detected by Hough gradient, and it is further determined whether the detected central circle is a bright area, thereby achieving accurate detection of the bright area position.
[0078] Based on the above embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. On this basis, step S20 includes steps S21 to S24:
[0079] Step S21, selecting a scanning point on the bright area boundary of the bright area;
[0080] It is understood that the bright area boundary refers to the boundary between the bright area spot and other areas. In most cases, the bright area is formed as a circular spot, and the bright area boundary is the circumference. Any point on the circumference can be selected as the scanning point.
[0081] Step S22, during one scanning process, taking the initial position of the scanning point as the starting point, rotating the scanning point on the boundary of the bright area by a preset scanning angle to reach the scanning position;
[0082] The preset scanning angle refers to the angle at which the preset scanning point should rotate each time it scans on the bright area boundary. During the scanning process, the initial position of the scanning point is the starting point, and the point is rotated on the circumference by the preset scanning angle to reach the scanning position. The line between the scanning point and the center of the bright area forms a line segment, and the angle swept by this line segment is the preset scanning angle. It is understandable that the preset scanning angle can be set according to actual conditions, for example, set to 1 degree, etc.
[0083] Step S23, moving the scanning point in the directions of each coordinate axis at the scanning position to obtain first gray value data on the moving path of the scanning point;
[0084] As the scanning process proceeds, the position of the scanning point on the circumference keeps changing. Every time the scanning point reaches a scanning position, it can be extended outward, and the extension direction is set as the coordinate axis direction. The path passed by the scanning point is the moving path. It can be understood that in the halo image, a plane coordinate system with the horizontal direction and the vertical direction as the two coordinate axis directions can be established. The moving path of the scanning point can avoid the bright area, that is, the scanning point can move in a direction parallel to the coordinate axis and pointing outside the bright area to form a moving path. Every time the scanning point reaches a position on the moving path, the first gray value data of the pixel at that position can be obtained.
[0085] Step S24, performing curve fitting on the first gray value data by using a polynomial to obtain fitting curves in the directions of the coordinate axes until the scanning is completed.
[0086] Each time the scanning point rotates on the circumference, a group of first gray value data can be formed in different coordinate axis directions. Curve fitting is performed on the first gray value data of each moving path group, and fitting curves in each coordinate axis direction can be obtained. After the scanning process is completed, multiple fitting curves are obtained. It can be understood that the conditions for completing the scanning can be set according to actual conditions, for example, it is set to complete the scanning when the scanning point scans one circle on the circumference.
[0087] It is understandable that each fitting curve can correspond to a curve equation when a polynomial is used for fitting. This embodiment has no specific restrictions on the highest degree of the polynomial used for fitting, including quadratic polynomials, cubic polynomials or quartic polynomials, etc. The fitting curve of a sextic polynomial is taken as an example for the following description. Compared with a polynomial of a lower degree, a sextic polynomial has a higher fitting accuracy, while compared with a polynomial of a higher degree, a sextic polynomial has a lower fitting difficulty.
[0088] In a feasible implementation manner, step S30 includes steps S31 to S33:
[0089] Step S31, determining a curve equation of each of the fitting curves, and determining an equation threshold of the curve equation;
[0090] It can be understood that the fitting curve describes the relationship between the scanning point position and the first gray value data, the independent variable of the curve equation is the scanning point position, the dependent variable is the first gray value data, and the equation threshold of the curve equation is the gray value at the boundary of the bright area.
[0091] Step S32, obtaining the halo boundary of the halo area according to the equation threshold;
[0092] The halo boundary refers to the boundary line between the outermost part of the halo and other dark areas. When the equation threshold is determined, the equation threshold can be substituted into the curve equation, and the curve equation is solved to determine the halo boundary. It can be understood that each curve equation can solve the position of the halo boundary, and different curve equations have different values. The halo should present a circular shape, so after solving all the curve equations, statistical analysis can be performed to determine the appropriate position of the halo boundary.
[0093] In a feasible implementation manner, step S32 includes steps S321 to S322:
[0094] Step S321, determining the relative position of the halo boundary according to the equation threshold, taking the center point of the bright area as the center of the circle, and determining the initial radius corresponding to the curve equation based on the relative position;
[0095] In this embodiment, the curve equation is first differentiated to obtain its first-order derivative, and the equation is established with the first-order derivative equal to the equation threshold. The relative position of the halo boundary can be obtained by solving the equation. The center point of the bright area is taken as the center of the circle, and a line segment is formed by connecting the center of the circle and the point at the relative position. The line segment is the initial radius corresponding to the curve equation.
[0096] Step S322: taking the average value of the initial radii in the directions of the coordinate axes as the final radius of the halo area, and taking the position of the final radius as the halo boundary.
[0097] There may be certain differences between the initial radii obtained by solving different curve equations. In order to ensure that the shape of the halo is regular, the average value of the initial radius is calculated and the average value is used as the final radius. The boundary determined by the position of the final radius is the location of the halo boundary.
[0098] By solving the first-order derivative, the position where the halo change is alleviated can be found as the halo boundary, instead of using the absolute value of the image grayscale. This can, to a certain extent, avoid the detection error caused by excessive increase or decrease of the grayscale value at the halo boundary when the halo image is overexposed or too dark.
[0099] Step S33: taking the area within the halo boundary and outside the bright area boundary as the halo area.
[0100] It is understandable that both the bright area and the halo can be formed into a circle, and the area within the halo boundary and outside the bright area boundary is an annular area, and this annular area is the halo area. By evaluating the gray value data in the halo area, the severity of the halo phenomenon can be determined.
[0101] In a feasible implementation manner, step S40 includes steps S41 to S42:
[0102] Step S41, determining the sum of the grayscale values of the pixels in the halo area, and taking the sum of the grayscale values as the second grayscale value data;
[0103] It can be understood that the grayscale can reflect the brightness of the pixel points, and using the sum of the grayscale values of the pixels in the halo area as the second grayscale value data can accurately characterize the severity of the halo area.
[0104] Step S42, inputting the second gray value data into a preset halo evaluation function to obtain a halo evaluation score, and using the halo evaluation score as a halo measurement result, wherein the larger the second gray value data is, the lower the halo evaluation score is.
[0105] The preset halo evaluation function refers to a function used to evaluate the performance of the halo area through the second gray value data, and its output is a halo evaluation score. The high or low halo evaluation score can intuitively show the severity of the halo phenomenon in the halo area.
[0106] It is understandable that the present embodiment does not impose any specific restrictions on the expression of the preset halo evaluation function, and it only needs to meet the requirement that the larger the input second gray value data, the lower the output halo evaluation score. In order to make the output halo evaluation score conform to the usual scoring habits, the value range and value accuracy of the halo evaluation score can also be set.
[0107] In a feasible implementation manner, the preset halo evaluation function is:
[0108]
[0109] Among them, ∑ halo_area halo_gray(x,y) is the sum of the gray values of the pixels in the halo area, n1 and n2 are scaling parameters, and Score is the halo evaluation score.
[0110] It can be seen from the above function that Score∈(0,100]. This embodiment uses the inverse tangent function as the basic function to construct a preset halo evaluation function. The halo score evaluation function can reflect the halo performance with objective and specific values. The inverse tangent function can limit the score value to the range of 0 to 100, which conforms to most evaluation habits, and uses data scaling to allow the halo data to be in a reasonable interval of the inverse tangent function. If there is no data scaling processing, according to the image properties of the inverse tangent function, it can be seen that when the data is small, it grows faster, and after the data is greater than a certain value, it grows very slowly, and most of the processed halo image data will be located in the latter section, resulting in a very small difference in the scores of different halo images. However, the human eye does not perceive it clearly when the halo evaluation score exceeds a certain value.
[0111] Figure 2 This is the halo processing result with a halo evaluation score of 95.86. Figure 3 This is the halo processing result image with a halo evaluation score of 78.8 points. Figure 4 This is the halo processing result with a halo evaluation score of 51.69 points. The circular spot is the bright area, and the circle outside the spot is the halo boundary. Figure 2 , Figure 3 and Figure 4 It can be seen that the lower the halo evaluation score is, the more obvious the halo phenomenon perceived by the human eye is. The method in this embodiment can accurately measure the halo phenomenon with objective indicators, and provide a reference for improving the halo phenomenon of the display device.
[0112] In this embodiment, the first grayscale value data is acquired by scanning, the halo boundary is accurately identified, the halo area is obtained, and a preset halo evaluation function is constructed based on the inverse tangent function. This conforms to the observation law of the human eye for the halo phenomenon, and the halo phenomenon is objectively evaluated. The implementation process is relatively simple and has a wide range of applications.
[0113] For example, to help understand the implementation process of the halo measurement method obtained by combining this embodiment with the above embodiments, please refer to Figure 5 , Figure 5 A simplified flow chart of a halo measurement method is provided. Specifically, a halo image is first input into a processing program, a graphic detection is performed on the halo image, and a central circle in the halo image is detected. During the detection process, it can be determined whether the central circle meets the requirements for determining the center of a bright area. If it does not meet the requirements, parameter correction is automatically performed to correctly identify the corresponding central circle. If it meets the requirements, a halo curve fitting step is entered. After halo curve fitting, a list of curve equations is obtained, and the curve equations are differentiated to obtain a first-order derivative. The relative position of the halo boundary is obtained by solving f'(x)=threshold (threshold), thereby determining the halo area. The halo area data and the central circle data obtained in the graphic detection step are combined, and a preset halo evaluation function is used to obtain the final score result.
[0114] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the halo measurement method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0115] The present application provides a halo measurement device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the halo measurement method in the above-mentioned embodiment one.
[0116] Reference below Figure 6 , which shows a schematic diagram of the structure of a halo measurement device suitable for implementing the embodiment of the present application. The halo measurement device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The halo measurement device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0117] like Figure 6 As shown, the halo measurement device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the halo measurement device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the halo measurement device to communicate with other devices wirelessly or by wire to exchange data. Although the halo measurement device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0118] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes 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 device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0119] The halo measurement device provided by the present application adopts the halo measurement method in the above embodiment, which can solve the technical problem that the existing measurement method requires high-precision measuring instruments and has great measurement difficulty. Compared with the prior art, the beneficial effects of the halo measurement device provided by the present application are the same as the beneficial effects of the halo measurement method provided by the above embodiment, and the other technical features in the halo measurement device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0120] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0121] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0122] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the halo measurement method in the above-mentioned embodiment.
[0123] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, 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: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the 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 or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0124] The computer-readable storage medium may be included in the halo measurement device; or may exist independently without being assembled into the halo measurement device.
[0125] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the halo measuring device, the halo measuring device is enabled to: obtain a halo image and identify a bright area in the halo image; obtain first gray value data around the bright area, perform curve fitting on the first gray value data to obtain a fitting curve; determine the halo area in the halo image according to the fitting curve; and determine the halo measurement result of the halo image based on the second gray value data of the halo area.
[0126] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0127] 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 application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0128] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0129] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned halo measurement method, and can solve the technical problem that the existing measurement method requires high-precision measuring instruments and has high measurement difficulty. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the halo measurement method provided in the above-mentioned embodiment, and will not be repeated here.
[0130] The present application also provides a computer program product, including a computer program, which implements the steps of the halo measurement method as described above when executed by a processor.
[0131] The computer program product provided by the present application can solve the technical problem that the existing measurement method requires high-precision measuring instruments and is difficult to measure. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the halo measurement method provided by the above embodiment, which will not be repeated here.
[0132] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A halo measurement method, characterized in that: The halo measurement method comprises: Acquire a halo image, and identify a bright area in the halo image; Acquire first gray value data around the bright area, and perform curve fitting on the first gray value data to obtain a fitting curve; Determine a halo region in the halo image according to the fitting curve; A halo measurement result of the halo image is determined based on the second gray value data of the halo area.
2. The halo measurement method according to claim 1, characterized in that: The step of identifying the bright area in the halo image comprises: Performing noise reduction processing on the halo image to obtain a noise-reduced image; Obtaining a central circle in the denoised image by Hough gradient detection; The interior of the central circle is regarded as the bright area.
3. The halo measurement method according to claim 2, characterized in that: After the step of obtaining the central circle in the denoised image by Hough gradient detection, the following step is further included: Acquire the third gray value data of the central circle at the center position; When the third gray value data is less than a preset gray threshold, deleting the central circle; In a case where the third grayscale value data is greater than or equal to the preset grayscale threshold, the step of using the interior of the central circle as the bright area is performed.
4. The halo measurement method according to claim 1, characterized in that: The step of acquiring first gray value data around the bright area and performing curve fitting on the first gray value data to obtain a fitting curve comprises: Selecting a scanning point on a bright area boundary of the bright area; In one scanning process, taking the initial position of the scanning point as the starting point, the scanning point is rotated at a preset scanning angle on the boundary of the bright area to reach the scanning position; Move the scanning point in the directions of each coordinate axis at the scanning position to obtain first gray value data on the moving path of the scanning point; The first gray value data is subjected to curve fitting by using a polynomial to obtain fitting curves in the directions of the coordinate axes until the scanning is completed.
5. The halo measurement method according to claim 4, characterized in that: The step of determining the halo area in the halo image according to the fitting curve comprises: Determining a curve equation of each of the fitting curves, and determining an equation threshold of the curve equation; Obtaining the halo boundary of the halo area according to the equation threshold; The area within the halo boundary and outside the bright area boundary is regarded as the halo area.
6. The halo measurement method according to claim 5, characterized in that: The step of obtaining the halo boundary of the halo area according to the equation threshold comprises: Determine the relative position of the halo boundary according to the equation threshold, take the center point of the bright area as the center of the circle, and determine the initial radius corresponding to the curve equation based on the relative position; The average value of the initial radii in the directions of the coordinate axes is taken as the final radius of the halo area, and the position of the final radius is taken as the halo boundary.
7. The halo measurement method according to claim 1, characterized in that: The step of determining the halo measurement result of the halo image based on the second gray value data of the halo area comprises: Determine the sum of the grayscale values of the pixels in the halo area, and use the sum of the grayscale values as the second grayscale value data; The second gray value data is input into a preset halo evaluation function to obtain a halo evaluation score, and the halo evaluation score is used as a halo measurement result, wherein the larger the second gray value data is, the lower the halo evaluation score is.
8. The halo measurement method according to claim 7, characterized in that: The preset halo evaluation function is: Among them, ∑ halo_area halo_gray(x,y) is the sum of the gray values of the pixels in the halo area, n1 and n2 are scaling parameters, and Score is the halo evaluation score.
9. A halo measurement device, characterized in that: The halo measurement device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the halo measurement method according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the halo measurement method according to any one of claims 1 to 8 are implemented.
Citation Information
Cited By
Halo control method and device for display
CN121506004A
OLED screen-based mottle compensation method and system, medium and product
CN121506035A
Measuring system and measuring method applied to display screen
CN121595165A
Measuring system and measuring method applied to a display screen
CN121595165B
