CN117174036A - Automatic focusing method and system based on TFT liquid crystal panel - Google Patents

Automatic focusing method and system based on TFT liquid crystal panel Download PDF

Info

Publication number
CN117174036A
CN117174036A CN202311453822.0A CN202311453822A CN117174036A CN 117174036 A CN117174036 A CN 117174036A CN 202311453822 A CN202311453822 A CN 202311453822A CN 117174036 A CN117174036 A CN 117174036A
Authority
CN
China
Prior art keywords
pixel
result
liquid crystal
crystal panel
light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311453822.0A
Other languages
Chinese (zh)
Other versions
CN117174036B (en
Inventor
刘燕波
邓斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Clp Chuangda Shenzhen Industrial Co ltd
Original Assignee
Clp Chuangda Shenzhen Industrial Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Clp Chuangda Shenzhen Industrial Co ltd filed Critical Clp Chuangda Shenzhen Industrial Co ltd
Priority to CN202311453822.0A priority Critical patent/CN117174036B/en
Publication of CN117174036A publication Critical patent/CN117174036A/en
Application granted granted Critical
Publication of CN117174036B publication Critical patent/CN117174036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an automatic focusing method and system based on a TFT liquid crystal panel, wherein the system comprises the steps of collecting a backlight value of the TFT liquid crystal panel under a normal brightness condition, judging whether image noise exists in the liquid crystal panel according to the backlight value, and adjusting the backlight value according to a noise result; the pixel point density of the liquid crystal panel is collected in a partitioning mode according to the noise result, the pixel point density is collected in a partitioning mode under the low light condition, a low light pixel result is obtained, and when no image noise exists or the image noise exists and the backlight value is regulated, the high light pixel result is compared with the low light pixel result; determining whether to supplement light to the low light condition according to the comparison result, calculating a final pixel point difference value according to the comparison result, and determining a final focusing position according to the final pixel point difference value; the pixel difference value acquired by the technology is not influenced by image noise and brightness conditions, is more accurate than the definition calculated directly in the prior art, and greatly reduces the influence of external factors on automatic focusing precision.

Description

Automatic focusing method and system based on TFT liquid crystal panel
Technical Field
The invention provides an automatic focusing method and system based on a TFT liquid crystal panel, relates to the technical field of TFT liquid crystal panels, and particularly relates to the technical field of automatic focusing of TFT liquid crystal panels.
Background
In the prior art, the auto-focusing method of the TFT liquid crystal panel usually determines the focusing position by calculating the image definition, but in the auto-focusing process, image noise is usually caused by image noise and uneven light, so that a plurality of positions of the liquid crystal panel have similar definition, and the optimal focusing point is difficult to determine; it is also easy to obtain a clear image due to low light conditions, and automatic focusing of the liquid crystal panel is not possible.
Disclosure of Invention
The invention provides an automatic focusing method and an automatic focusing system based on a TFT liquid crystal panel, which are used for solving the problems that in the prior art, under the condition of environmental interference factors, a plurality of positions of the liquid crystal panel have similar definition and under the condition of low light, the liquid crystal panel is difficult to automatically focus accurately:
the invention provides an automatic focusing method and system based on a TFT liquid crystal panel, wherein the method comprises the following steps:
s1, under the normal brightness condition, collecting a backlight value of a TFT liquid crystal panel, judging whether image noise exists in the liquid crystal panel according to the backlight value, and obtaining a noise result; adjusting a backlight value according to the noise result;
s2, collecting pixel point density of the liquid crystal panel in a partitioning mode according to the noise result to obtain a highlight pixel result;
S3, under the low light condition, collecting pixel point density in a partition mode, obtaining a low light pixel result, and comparing the high light pixel result with the low light pixel result to obtain a comparison result after no image noise exists or the image noise exists and the backlight value is regulated;
and S4, determining whether to supplement light to the low light condition according to the comparison result, calculating a final pixel point difference value according to the comparison result, and determining a final focusing position according to the final pixel point difference value.
Further, under the normal brightness condition, collecting the backlight value of the TFT liquid crystal panel, judging whether the liquid crystal panel has image noise according to the backlight value, and obtaining a noise result; adjusting a backlight value according to the noise result, including:
s101, establishing a plane rectangular coordinate system by taking a central point of a liquid crystal panel as an origin, taking a pixel point as an abscissa and taking a focusing position as an ordinate; the plane rectangular coordinate system is divided into a first quadrant, a second quadrant, a third quadrant and a fourth quadrant; judging whether image noise exists or not by collecting backlight values of the liquid crystal panel, randomly collecting one backlight value in each quadrant respectively, setting a threshold value of a backlight value difference value, setting the threshold value as x, calculating the backlight value difference value, and judging that the image noise exists in the liquid crystal panel when the backlight value difference value of any two of the four backlight values is larger than x; when the difference value of any two backlight values in the four backlight values is smaller than x, judging that the liquid crystal panel has no image noise; the two conditions of the presence of image noise and the absence of image noise are the noise results;
S102, when image noise exists in the liquid crystal panel, adjusting any two backlight values with the difference value larger than x to an average value of the two backlight values; when the liquid crystal panel does not have image noise, the backlight value is not adjusted.
Further, the step of collecting pixel point density of the liquid crystal panel according to the noise result partition to obtain a highlight pixel result includes:
s201, after image noise does not exist in the liquid crystal panel or image noise exists and a backlight value is adjusted, randomly determining a pixel point in each of four quadrants; calculating the pixel difference value of the pixel point;
s202, the pixel difference values of the four pixel points of the four quadrants are respectively Q 1 、Q 2 、Q 3 And Q 4 The Q is set 1 、Q 2 、Q 3 And Q 4 And sequentially sequencing the pixel difference values from high to low, and selecting the pixel difference value with the highest pixel difference value as a highlight pixel result.
The pixel difference value has a calculation formula as follows:
;
wherein Q is the pixel difference value, x i Is the abscissa of the pixel, y i Is the ordinate of the pixel, x i +1 is the pixel coordinate of the next column in the lateral direction, y i +1 is the pixel coordinate of the next column in the vertical direction, T is the luminous flux of the liquid crystal panel, G is the actual brightness of the light source, i=1, 2, 3 or 4.
Further, the step of acquiring the pixel point density in a partition under the low light condition to obtain a low light pixel result, and comparing the high light pixel result with the low light pixel result to obtain a comparison result after no image noise or image noise exists and the backlight value is adjusted, includes:
S301, under the low light condition, randomly determining a pixel point in four quadrants respectively, and calculating pixel difference values of the pixel point, wherein the pixel difference values of the four pixel points in the four quadrants are q respectively 1 、q 2 、q 3 And q 4 The method comprises the steps of carrying out a first treatment on the surface of the Putting said q 1 、q 2 、q 3 And q 4 And selecting the pixel with the highest pixel difference as a low-light pixel result according to the sequence of the pixel differences from high to low.
S302, setting a comparison threshold value, and comparing a high-light pixel result with a low-light pixel result; when the difference between the high-light pixel result and the low-light pixel result is larger than the contrast threshold value, the image is an unclear image;
s303, when the difference between the high-light pixel result and the low-light pixel result is smaller than the contrast threshold value, the image is a clear image; the clear picture and the unclear picture are the comparison results.
Further, determining whether to supplement light to the low light condition according to the comparison result, calculating a final pixel point difference value according to the comparison result, and determining a final focusing position according to the final pixel point difference value includes:
s401, when the liquid crystal panel is an unclear picture, the brightness of a flash lamp is adjusted, and the flash lamp is used for supplementing light for the low light condition;
s402, when the liquid crystal panel is a clear picture, no light supplementing operation is performed;
S403, after the liquid crystal panel is a clear picture or the flash lamp is used for supplementing light for the low light condition, calculating the intermediate value of the high light pixel result and the low light pixel result, searching the focusing position corresponding to the intermediate value in a plane rectangular coordinate system, and taking the focusing position as the final focusing position of the liquid crystal panel.
Further, the system comprises:
the image noise judging module is used for collecting the backlight value of the TFT liquid crystal panel under the normal brightness condition, judging whether the liquid crystal panel has image noise or not according to the backlight value, and obtaining a noise result; adjusting a backlight value according to the noise result;
the highlight pixel module is used for collecting pixel point density of the liquid crystal panel in a partitioning mode according to the noise result to obtain a highlight pixel result;
the contrast module is used for collecting pixel point density in a partitioning way under the low light condition to obtain a low light pixel result, and comparing the high light pixel result with the low light pixel result to obtain a contrast result when no image noise exists or the image noise exists and the backlight value is regulated;
and the final focusing module is used for determining whether to supplement light to the low light condition according to the comparison result, calculating a final pixel point difference value according to the comparison result, and determining a final focusing position according to the final pixel point difference value.
Further, the image noise judging module includes:
the noise judging module is used for establishing a plane rectangular coordinate system by taking the center point of the liquid crystal panel as an original point, taking the pixel point as an abscissa and taking the focusing position as an ordinate; the plane rectangular coordinate system is divided into a first quadrant, a second quadrant, a third quadrant and a fourth quadrant; judging whether image noise exists or not by collecting backlight values of the liquid crystal panel, randomly collecting one backlight value in each quadrant respectively, setting a threshold value of a backlight value difference value, setting the threshold value as x, calculating the difference value of four backlight values, and judging that the image noise exists in the liquid crystal panel when the difference value of any two backlight values in the four backlight values is larger than x; when the difference value of any two backlight values in the four backlight values is smaller than x, judging that the liquid crystal panel has no image noise; the two conditions of the presence of image noise and the absence of image noise are the noise results;
the backlight adjusting module is used for adjusting any two backlight values with the difference value larger than x to an average value of the two backlight values when the liquid crystal panel has image noise; when the liquid crystal panel does not have image noise, the backlight value is not adjusted.
Further, the highlight pixel module includes:
the pixel difference module is used for randomly determining a pixel point in each of four quadrants when the liquid crystal panel has no image noise or has image noise and adjusts a backlight value; calculating the pixel difference value of the pixel point;
a highlight pixel module for making the pixel difference value of the four pixel points of the four quadrants be Q respectively 1 、Q 2 、Q 3 And Q 4 The Q is set 1 、Q 2 、Q 3 And Q 4 And sequentially sequencing the pixel difference values from high to low, and selecting the pixel difference value with the highest pixel difference value as a highlight pixel result.
Further, the comparison module includes:
the low light module is used for randomly determining a pixel point in four quadrants respectively under the low light condition and calculating the pixel difference value of the pixel point, wherein the pixel difference value of the four pixel points in the four quadrants is q respectively 1 、q 2 、q 3 And q 4 The method comprises the steps of carrying out a first treatment on the surface of the Putting said q 1 、q 2 、q 3 And q 4 And selecting the pixel with the highest pixel difference as a low-light pixel result according to the sequence of the pixel differences from high to low.
The unclear module is used for setting a comparison threshold value and comparing a high-light pixel result with a low-light pixel result; when the difference between the high-light pixel result and the low-light pixel result is larger than the contrast threshold value, the image is an unclear image;
The clear module is used for being a clear picture when the difference between the high-light pixel result and the low-light pixel result is smaller than the contrast threshold value; the clear picture and the unclear picture are the comparison results.
Further, the final focusing module includes:
the light supplementing module is used for supplementing light for the low light condition by adjusting the brightness of the flash lamp when the liquid crystal panel is an unclear picture;
the non-light supplementing module is used for not carrying out light supplementing operation when the liquid crystal panel is a clear picture;
and the final position determining module is used for calculating the intermediate value of the high-light pixel result and the low-light pixel result after the liquid crystal panel is a clear picture or the flash lamp is used for supplementing light for the low-light condition, searching the focusing position corresponding to the intermediate value in a plane rectangular coordinate system, and taking the focusing position as the final focusing position of the liquid crystal panel.
The invention has the beneficial effects that:
the invention provides an automatic focusing method and system based on a TFT liquid crystal panel. By adjusting the backlight value, the liquid crystal panel can be adaptively adjusted according to the noise result, and the influence of image noise is avoided. In order to more accurately determine the pixel density of the liquid crystal panel, the technology provides a method for partition acquisition and contrast analysis. And under the normal brightness condition, the pixel density of the liquid crystal panel is collected in a partition mode, and a high-brightness pixel result is obtained. And then under the low light condition, the pixel point density of the liquid crystal panel is also collected, and a low light pixel result is obtained. Comparing the two results to obtain a comparison result, namely the pixel density distinguishing condition of the liquid crystal panel. If the comparison result shows that the pixel density difference is not large, the light supplementing operation is not needed. If the light supplementing is needed, the position and the intensity of the light supplementing can be determined according to the comparison result. Finally, the focusing position of a certain specific area is determined finally by calculating the difference of pixel point density, and then the automatic focusing of the area is realized. The technology determines whether image noise occurs or not through the backlight value, the image noise determined through the technology is caused by uneven light brightness of the liquid crystal panel, the influence of the image noise can be reduced through the technology, the liquid crystal panel is adaptively adjusted according to the brightness, and the definition and the brightness of the image are ensured. In addition, the difference of pixel density can be determined more accurately through partition collection and comparison analysis, and accurate automatic focusing is achieved based on the difference. The pixel difference value acquired by the technology is not influenced by image noise and brightness conditions, and the definition obtained by calculating the pixel difference value by the prior art is more accurate than the definition calculated directly in the prior art, so that the influence of external factors on automatic focusing precision is greatly reduced.
Drawings
FIG. 1 is a schematic diagram of an auto-focus method based on a TFT liquid crystal panel;
FIG. 2 is a schematic diagram of an auto-focus method and system based on a TFT-LCD panel;
fig. 3 is a schematic diagram of determining a focal point.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
The invention provides an automatic focusing method and system based on a TFT liquid crystal panel, wherein the method comprises the following steps:
s1, under the normal brightness condition, collecting a backlight value of a TFT liquid crystal panel, judging whether image noise exists in the liquid crystal panel according to the backlight value, and obtaining a noise result; adjusting a backlight value according to the noise result;
s2, collecting pixel point density of the liquid crystal panel in a partitioning mode according to the noise result to obtain a highlight pixel result;
s3, under the low light condition, collecting pixel point density in a partition mode, obtaining a low light pixel result, and comparing the high light pixel result with the low light pixel result to obtain a comparison result after no image noise exists or the image noise exists and the backlight value is regulated;
And S4, determining whether to supplement light to the low light condition according to the comparison result, calculating a final pixel point difference value according to the comparison result, and determining a final focusing position according to the final pixel point difference value.
The working principle of the technical scheme is as follows: under the normal brightness condition, the backlight value of the TFT liquid crystal panel is acquired through the backlight value acquisition equipment, whether the liquid crystal panel has image noise or not is judged according to the backlight value, a noise result is obtained, whether the image noise is caused by uneven light of the liquid crystal panel or not can be judged according to the noise result, and if the image noise is caused by uneven light, the image noise is reduced by adjusting the backlight value; adjusting a backlight value according to the noise result; the pixel point density of the liquid crystal panel is collected in a partitioning mode according to the noise result, and a highlight pixel result is obtained; under the low light condition, collecting pixel point density in a partition mode, obtaining a low light pixel result, and comparing the high light pixel result with the low light pixel result to obtain a comparison result in order to ensure that the final pixel point difference value is not affected by image noise when no image noise exists or after the image noise exists and the backlight value is regulated; and determining whether to supplement light to the low light condition according to the comparison result, calculating a final pixel point difference value according to the comparison result, and determining a final focusing position according to the final pixel point difference value.
The technical effects of the technical scheme are as follows: the technical scheme can collect the backlight value of the TFT liquid crystal panel under the normal brightness condition, judge whether the liquid crystal panel has image noise according to the backlight value, and obtain a noise result. By adjusting the backlight value, the liquid crystal panel can be adaptively adjusted according to the noise result, and the influence of image noise is avoided. In order to more accurately determine the pixel density of the liquid crystal panel, the technology provides a method for partition acquisition and contrast analysis. And under the normal brightness condition, the pixel density of the liquid crystal panel is collected in a partition mode, and a high-brightness pixel result is obtained. And then under the low light condition, the pixel point density of the liquid crystal panel is also collected, and a low light pixel result is obtained. Comparing the two results to obtain a comparison result, namely the pixel density distinguishing condition of the liquid crystal panel. If the comparison result shows that the pixel density difference is not large, the light supplementing operation is not needed. If the light supplementing is needed, the position and the intensity of the light supplementing can be determined according to the comparison result. Finally, the focusing position of a certain specific area is determined finally by calculating the difference of pixel point density, and then the automatic focusing of the area is realized. The technology determines whether image noise occurs or not through the backlight value, the image noise determined through the technology is caused by uneven light brightness of the liquid crystal panel, the influence of the image noise can be reduced through the technology, the liquid crystal panel is adaptively adjusted according to the brightness, and the definition and the brightness of the image are ensured. In addition, the difference of pixel density can be determined more accurately through partition collection and comparison analysis, and accurate automatic focusing is achieved based on the difference. The pixel difference value acquired by the technology is not influenced by image noise and brightness conditions, and the definition obtained by calculating the pixel difference value by the prior art is more accurate than the definition calculated directly in the prior art, so that the influence of external factors on automatic focusing precision is greatly reduced.
In one embodiment of the invention, under the normal brightness condition, the backlight value of the TFT liquid crystal panel is collected, whether the liquid crystal panel has image noise or not is judged according to the backlight value, and a noise result is obtained; adjusting a backlight value according to the noise result, including:
s101, establishing a plane rectangular coordinate system by taking a central point of a liquid crystal panel as an origin, taking a pixel point as an abscissa and taking a focusing position as an ordinate; the plane rectangular coordinate system is divided into a first quadrant, a second quadrant, a third quadrant and a fourth quadrant; judging whether image noise exists or not by collecting backlight values of the liquid crystal panel, randomly collecting one backlight value in each quadrant respectively, setting a threshold value of a backlight value difference value, setting the threshold value of the backlight value difference value as x, calculating the backlight value difference value, and judging that the image noise exists in the liquid crystal panel when the difference value of any two backlight values in the four backlight values is larger than x; when the difference value of any two backlight values in the four backlight values is smaller than x, judging that the liquid crystal panel has no image noise; the two conditions of the presence of image noise and the absence of image noise are the noise results;
the calculation formula of the threshold value of the backlight value difference value is as follows:
;
Wherein x is the threshold value of the backlight value difference, p is the average of the four backlight value differences, maxL is the maximum value of the backlight value, and minL is the minimum value of the backlight value.
S102, when image noise exists in the liquid crystal panel, adjusting any two backlight values with the difference value larger than x to an average value of the two backlight values; when the liquid crystal panel does not have image noise, the backlight value is not adjusted.
The working principle of the technical scheme is as follows: establishing a plane rectangular coordinate system by taking a central point of the liquid crystal panel as an origin, taking a pixel point as an abscissa and taking a focusing position as an ordinate; the plane rectangular coordinate system is divided into a first quadrant, a second quadrant, a third quadrant and a fourth quadrant; judging whether image noise exists or not by collecting backlight values of the liquid crystal panel, randomly collecting one backlight value in each quadrant respectively, setting a threshold value of a backlight value difference value, setting the threshold value as x, calculating the backlight value difference value, and judging that the image noise exists in the liquid crystal panel when the backlight value difference value of any two of the four backlight values is larger than x; when the difference value of any two backlight values in the four backlight values is smaller than x, judging that the liquid crystal panel has no image noise; the two conditions of the presence of image noise and the absence of image noise are the noise results; when the liquid crystal panel has image noise, adjusting any two backlight values with the difference value larger than x to an average value of the two backlight values; when the liquid crystal panel has no image noise, the backlight value is not adjusted; in the technical scheme, the image noise is caused by uneven brightness of light rays of the liquid crystal panel.
The technical effects of the technical scheme are as follows: by establishing a plane rectangular coordinate system, the liquid crystal panel is subjected to partition detection and automatic focusing, so that the method is more convenient and visual compared with the prior art; the technology can effectively reduce the influence of image noise, realize the self-adaptive adjustment of the liquid crystal panel and ensure the definition and brightness of the image. According to the technical scheme, whether image noise caused by uneven light of the liquid crystal panel exists or not is judged by comparing the backlight value with the threshold value of the backlight value difference, and compared with the judging mode in the prior art, the judging mode is more accurate and automatic, and the complexity and the error probability of manual judgment are greatly reduced; meanwhile, the pixel density difference of the liquid crystal panel can be more accurately determined by the partition acquisition and comparison analysis method, and accurate automatic focusing is realized. The backlight value difference value is set to be beneficial to improving the accuracy of image noise judgment and improving the accuracy of noise results.
According to one embodiment of the present application, the step of collecting pixel point density of the liquid crystal panel according to the noise result partition to obtain a highlight pixel result includes:
s201, after image noise does not exist in the liquid crystal panel or image noise exists and a backlight value is adjusted, randomly determining a pixel point in each of four quadrants; calculating the pixel difference value of the pixel point; the pixel difference value is the pixel difference value of the pixel point in the horizontal direction and the vertical direction, and the image definition can be obtained by calculating the pixel difference value through Sobel and further processing the pixel difference value in the application through a calculation method of the pixel difference value in the prior art.
S202, the pixel difference values of the four pixel points of the four quadrants are respectively Q 1 、Q 2 、Q 3 And Q 4 The Q is set 1 、Q 2 、Q 3 And Q 4 And sequentially sequencing the pixel difference values from high to low, and selecting the pixel difference value with the highest pixel difference value as a highlight pixel result.
The pixel difference value has a calculation formula as follows:
;
wherein Q is the pixel difference value, x i Is the abscissa of the pixel, y i Is the ordinate of the pixel, x i +1 is the pixel coordinate of the next column in the lateral direction, y i +1 is the pixel coordinate of the next column in the vertical direction, T is the luminous flux of the liquid crystal panel, G is the actual brightness of the light source, i=1, 2, 3 or 4.
The working principle of the technical scheme is as follows: when the liquid crystal panel has no image noise or has image noise and adjusts a backlight value, randomly determining a pixel point in four quadrants respectively; calculating the pixel difference value of the pixel point; the instruction book: the pixel difference value is the pixel difference value of the pixel point in the horizontal direction and the vertical direction, and the image definition can be obtained by calculating the pixel difference value through Sobel and further processing the pixel difference value in the application through a calculation method of the pixel difference value in the prior art. The pixel difference values of the four pixel points of the four quadrants are respectively Q 1 、Q 2 、Q 3 And Q 4 The Q is set 1 、Q 2 、Q 3 And Q 4 And sequentially sequencing the pixel difference values from high to low, and selecting the pixel difference value with the highest pixel difference value as a highlight pixel result. The pixel difference value is calculated after the liquid crystal panel has no image noise or the image noise and the backlight value is regulated, so that the calculated pixel difference value is not influenced by the image noise. As shown in fig. 3, A, B, C and D are Q respectively 1 、Q 2 、Q 3 And Q 4 Corresponding focal points.
The technical effects of the technical scheme are as follows: the technology can randomly sample a pixel point in four quadrants after judging that the liquid crystal panel has no image noise or by adjusting the backlight value, and calculate the pixel difference value of the pixel point. The calculation mode is that the difference value of the pixel points is calculated through a Sobel operator in the horizontal direction and the vertical direction. The technical scheme greatly improves the accuracy of the pixel difference value and further improves the accuracy of the focusing position, and the calculated pixel difference value is not influenced by the image noise by calculating the pixel difference value after the image noise is not generated or the backlight value is regulated by the liquid crystal panel; according to the processed difference value, the definition of the picture can be further calculated; the accuracy of definition is improved; this allows the sharpness of an image to be evaluated by performing pixel difference calculations on a randomly selected pixel without the need to acquire the entire image. Then, the pixel differences of four pixel points in the four quadrants are ordered, namely Q 1 、Q 2 、Q 3 And Q 4 Then the one with the highest pixel difference is selected as the result of the high light pixel. According to the technology, the pixel density and the focusing point position of the liquid crystal panel can be more accurately determined by comparing the pixel difference values of different areas and calculating the position of the maximum pixel difference value, so that accurate automatic focusing is realized. And calculating a pixel difference value through the pixel abscissa, the pixel ordinate, the luminous flux of the liquid crystal panel and the actual brightness of the light source, wherein the pixel difference value is influenced by the brightness, and the pixel difference value can be regulated through regulating the brightness influence, so that the definition of the liquid crystal panel is enhanced.
In an embodiment of the present invention, under a low light condition, collecting pixel point density in a partition to obtain a low light pixel result, and comparing the high light pixel result with the low light pixel result to obtain a comparison result after no image noise exists or after image noise exists and a backlight value is adjusted, where the method includes:
s301, under the low light condition, randomly determining a pixel point in four quadrants respectively, and calculating pixel difference values of the pixel point, wherein the pixel difference values of the four pixel points in the four quadrants are q respectively 1 、q 2 、q 3 And q 4 The method comprises the steps of carrying out a first treatment on the surface of the Putting said q 1 、q 2 、q 3 And q 4 And selecting the pixel with the highest pixel difference as a low-light pixel result according to the sequence of the pixel differences from high to low.
S302, setting a comparison threshold value, and comparing a high-light pixel result with a low-light pixel result; when the difference between the high-light pixel result and the low-light pixel result is larger than the contrast threshold value, the image is an unclear image;
the calculation formula of the comparison threshold value is as follows:
;
wherein D is a contrast threshold, s is the average number of horizontal pixels of the liquid crystal panel, G 1 G is the highlight pixel result 2 Is a low light pixel result.
S303, when the difference between the high-light pixel result and the low-light pixel result is smaller than the contrast threshold value, the image is a clear image; the clear picture and the unclear picture are the comparison results.
The working principle of the technical scheme is as follows: under the low light condition, randomly determining a pixel point in four quadrants respectively, and calculating pixel difference values of the pixel point, wherein the pixel difference values of the four pixel points in the four quadrants are q respectively 1 、q 2 、q 3 And q 4 The method comprises the steps of carrying out a first treatment on the surface of the Putting said q 1 、q 2 、q 3 And q 4 Sequentially sorting from high to low according to pixel difference values, and selecting the pixel with the highest pixel difference value as a low-light pixelAs a result. Setting a contrast threshold value, and comparing a high-light pixel result with a low-light pixel result; when the difference between the high-light pixel result and the low-light pixel result is larger than the contrast threshold value, the image is an unclear image; when the difference between the high-light pixel result and the low-light pixel result is smaller than the contrast threshold value, the image is a clear image; the clear picture and the unclear picture are the comparison results. By comparing the high-light pixel result with the low-light pixel result, according to the comparison result, it is known whether the pixel difference value under the low-light condition is affected by the low light, when the low-light pixel result is an unclear picture, the pixel difference value is affected by the low-light condition, and when the low-light pixel result is a clear picture, the pixel difference value is not affected by the low-light condition. As shown in FIG. 3, a, b, c and d are each q 1 、q 2 、q 3 And q 4 Corresponding focal points.
The technical effects of the technical scheme are as follows: in the technology, under the low light condition, one pixel point of four quadrants is randomly selected, and the pixel difference value of the pixel point is calculated. The pixel difference values of the four pixel points are q respectively 1 、q 2 、q 3 And q 4 By ordering the pixel differences, the one with the highest pixel difference is selected as the result of the low light pixels. Next, the high light pixel result is compared with the low light pixel result. To determine under what conditions it is possible to determine whether the image is sharp, the technique sets a contrast threshold. Comparing the high-light pixel result with the low-light pixel result, and if the difference between the high-light pixel result and the low-light pixel result is larger than a comparison threshold value, obtaining an unclear picture as a result; otherwise, the picture is clear. Namely: when the difference is larger than the threshold value, the picture is not clear, and when the difference is smaller than the threshold value, the picture is clear. Therefore, whether the image is clear or not can be accurately judged by comparing pixel point differences under high light and low light conditions and comparing according to a threshold value, and automatic focusing and light supplementing are realized by an auxiliary technology. Calculating the comparison threshold may make the comparison result more accurate.
According to one embodiment of the present invention, the determining whether to supplement light for the low light condition according to the comparison result, calculating a final pixel point difference value according to the comparison result, and determining a final focusing position according to the final pixel point difference value includes:
S401, when the liquid crystal panel is an unclear picture, the brightness of a flash lamp is adjusted, and the flash lamp is used for supplementing light for the low light condition;
s402, when the liquid crystal panel is a clear picture, no light supplementing operation is performed;
s403, after the liquid crystal panel is a clear picture or the flash lamp is used for supplementing light for the low light condition, calculating the intermediate value of the high light pixel result and the low light pixel result, searching the focusing position corresponding to the intermediate value in a plane rectangular coordinate system, and taking the focusing position as the final focusing position of the liquid crystal panel.
The working principle of the technical scheme is as follows: when the liquid crystal panel is an unclear picture, the brightness of the flash lamp is regulated, and the flash lamp is used for supplementing light for the low light condition; when the liquid crystal panel is a clear picture, no light supplementing operation is performed; and after the liquid crystal panel is a clear picture or the flash lamp is used for supplementing light for the low light condition, calculating the intermediate value of the high light pixel result and the low light pixel result, searching the focusing position corresponding to the intermediate value in a plane rectangular coordinate system, and taking the focusing position as the final focusing position of the liquid crystal panel. If the light supplementing operation is performed, the low pixel result should be recalculated after the light supplementing operation, so that the final focusing position is recalculated, and the final focusing position is ensured not to be influenced by the low light condition.
The technical effects of the technical scheme are as follows: the technical scheme provides an automatic focusing method of a liquid crystal panel. And (5) performing light supplementing operation on the unclear picture by adjusting the brightness of the flash lamp. Meanwhile, for the clear picture, no light supplementing operation is performed so as to avoid the influence on the image quality. After the light supplementing operation is carried out, calculating the intermediate value of the high-light pixel result and the low-light pixel result, compared with the prior art, the method for calculating the intermediate value is more robust and more representative, and the technical problem that the definition calculated by adopting the average value in the prior art is easily influenced by the extreme value is solved. And searching the corresponding focusing position in the plane rectangular coordinate system. The focus position is finally set as the final focus position of the liquid crystal panel. The method can effectively improve the focusing accuracy and efficiency of the liquid crystal panel and improve the definition and quality of the image. Meanwhile, the technical scheme has the advantages of simplicity and convenience in operation and easiness in implementation. If the light supplementing operation is performed, the low pixel result is recalculated after light supplementing, so that the final focusing position is recalculated, the final focusing position is ensured not to be influenced by low light conditions, and the accuracy of the final focusing position is greatly improved.
In one embodiment of the invention, the system comprises:
the image noise judging module is used for collecting the backlight value of the TFT liquid crystal panel under the normal brightness condition, judging whether the liquid crystal panel has image noise or not according to the backlight value, and obtaining a noise result; adjusting a backlight value according to the noise result;
the highlight pixel module is used for collecting pixel point density of the liquid crystal panel in a partitioning mode according to the noise result to obtain a highlight pixel result;
the contrast module is used for collecting pixel point density in a partitioning way under the low light condition to obtain a low light pixel result, and comparing the high light pixel result with the low light pixel result to obtain a contrast result when no image noise exists or the image noise exists and the backlight value is regulated;
and the final focusing module is used for determining whether to supplement light to the low light condition according to the comparison result, calculating a final pixel point difference value according to the comparison result, and determining a final focusing position according to the final pixel point difference value.
The working principle of the technical scheme is as follows: the image noise judging module is used for collecting the backlight value of the TFT liquid crystal panel under the normal light condition, judging whether the liquid crystal panel has image noise or not according to the backlight value, and obtaining a noise result; adjusting a backlight value according to the noise result; the highlight pixel module is used for collecting pixel point density of the liquid crystal panel in a partitioning mode according to the noise result to obtain a highlight pixel result; the contrast module is used for collecting pixel point density in a partitioning way under the low light condition to obtain a low light pixel result, and comparing the high light pixel result with the low light pixel result to obtain a contrast result when no image noise exists or the image noise exists and the backlight value is regulated; and the final focusing module is used for determining whether to supplement light to the low light condition according to the comparison result, calculating a final pixel point difference value according to the comparison result, and determining a final focusing position according to the final pixel point difference value.
The technical effects of the technical scheme are as follows: according to the technical scheme, the backlight value of the TFT liquid crystal panel is collected under the normal brightness condition through the image noise judging module, and whether the liquid crystal panel has image noise or not is judged according to the backlight value. By adjusting the backlight value, the liquid crystal panel can be adaptively adjusted according to the noise result, and the influence of image noise is avoided. In order to more accurately determine the pixel density of the liquid crystal panel, the technology adopts a method of regional collection and contrast analysis of a highlight pixel module. And under the normal brightness condition, the pixel density of the liquid crystal panel is collected in a partition mode, and a high-brightness pixel result is obtained. And the pixel point density of the liquid crystal panel is also acquired by the contrast module under the low light condition, so that a low light pixel result is obtained. Comparing the two results to obtain a comparison result, namely the pixel density distinguishing condition of the liquid crystal panel. And judging by the final focusing module, if the contrast result shows that the pixel density difference is not large, the light supplementing operation is not needed. If the light supplementing is needed, the position and the intensity of the light supplementing can be determined according to the comparison result. Finally, the focusing position of a certain specific area is determined finally by calculating the difference of pixel point density, and then the automatic focusing of the area is realized. The technology determines whether image noise occurs or not through the backlight value, the image noise determined through the technology is caused by uneven light brightness of the liquid crystal panel, the influence of the image noise can be reduced through the technology, the liquid crystal panel is adaptively adjusted according to the brightness, and the definition and the brightness of the image are ensured. In addition, the difference of pixel density can be determined more accurately through partition collection and comparison analysis, and accurate automatic focusing is achieved based on the difference. The pixel difference value acquired by the technology is not influenced by image noise and brightness conditions, and the definition obtained by calculating the pixel difference value by the prior art is more accurate than the definition calculated directly in the prior art, so that the influence of external factors on automatic focusing precision is greatly reduced.
In one embodiment of the present invention, the image noise judging module includes:
the noise judging module is used for establishing a plane rectangular coordinate system by taking the center point of the liquid crystal panel as an original point, taking the pixel point as an abscissa and taking the focusing position as an ordinate; the plane rectangular coordinate system is divided into a first quadrant, a second quadrant, a third quadrant and a fourth quadrant; judging whether image noise exists or not by collecting backlight values of the liquid crystal panel, randomly collecting one backlight value in each quadrant respectively, setting a threshold value of a backlight value difference value, setting the threshold value of the backlight value difference value as x, calculating the backlight value difference value, and judging that the image noise exists in the liquid crystal panel when the difference value of any two backlight values in the four backlight values is larger than x; when the difference value of any two backlight values in the four backlight values is smaller than x, judging that the liquid crystal panel has no image noise; the two conditions of the presence of image noise and the absence of image noise are the noise results;
the backlight adjusting module is used for adjusting any two backlight values with the difference value larger than x to an average value of the two backlight values when the liquid crystal panel has image noise; when the liquid crystal panel does not have image noise, the backlight value is not adjusted.
The working principle of the technical scheme is as follows: the noise judging module is used for establishing a plane rectangular coordinate system by taking the center point of the liquid crystal panel as an origin, taking the pixel point as an abscissa and taking the focusing position as an ordinate; the plane rectangular coordinate system is divided into a first quadrant, a second quadrant, a third quadrant and a fourth quadrant; judging whether image noise exists or not by collecting backlight values of the liquid crystal panel, randomly collecting one backlight value in each quadrant respectively, setting a threshold value of a backlight value difference value, setting the threshold value of the backlight value difference value as x, calculating the backlight value difference value, and judging that the image noise exists in the liquid crystal panel when the difference value of any two backlight values in the four backlight values is larger than x; when the difference value of any two backlight values in the four backlight values is smaller than x, judging that the liquid crystal panel has no image noise; the two conditions of the presence of image noise and the absence of image noise are the noise results; the backlight adjusting module is used for adjusting any two backlight values with the difference value larger than x to an average value of the two backlight values when the liquid crystal panel has image noise; when the liquid crystal panel does not have image noise, the backlight value is not adjusted.
The technical effects of the technical scheme are as follows: the noise judging module is used for establishing a plane rectangular coordinate system, so that the liquid crystal panel is more convenient and visual compared with the prior art in partition detection and automatic focusing; the influence of image noise can be effectively reduced through the backlight adjusting module, the self-adaptive adjustment of the liquid crystal panel is realized, and the definition and the brightness of the image are ensured. According to the technical scheme, whether image noise caused by uneven light of the liquid crystal panel exists or not is judged by comparing the backlight value with the threshold value of the backlight value difference, and compared with the judging mode in the prior art, the judging mode is more accurate and automatic, and the complexity and the error probability of manual judgment are greatly reduced; meanwhile, the pixel density difference of the liquid crystal panel can be more accurately determined by the partition acquisition and comparison analysis method, and accurate automatic focusing is realized.
In one embodiment of the present application, the high light pixel module includes:
the pixel difference module is used for randomly determining a pixel point in each of four quadrants when the liquid crystal panel has no image noise or has image noise and adjusts a backlight value; calculating the pixel difference value of the pixel point; the pixel difference value is the pixel difference value of the pixel point in the horizontal direction and the vertical direction, and the image definition can be obtained by calculating the pixel difference value through Sobel and further processing the pixel difference value in the application through a calculation method of the pixel difference value in the prior art.
A highlight pixel module for making the pixel difference value of the four pixel points of the four quadrants be Q respectively 1 、Q 2 、Q 3 And Q 4 The Q is set 1 、Q 2 、Q 3 And Q 4 And sequentially sequencing the pixel difference values from high to low, and selecting the pixel difference value with the highest pixel difference value as a highlight pixel result.
The working principle of the technical scheme is as follows:the pixel difference module is used for randomly determining a pixel point in each of four quadrants when the liquid crystal panel has no image noise or has image noise and adjusts a backlight value; calculating the pixel difference value of the pixel point; the pixel difference value is the pixel difference value of the pixel point in the horizontal direction and the vertical direction, and the image definition can be obtained by calculating the pixel difference value through Sobel and further processing the pixel difference value in the application through a calculation method of the pixel difference value in the prior art. The highlight pixel module is used for enabling the pixel difference value of the four pixel points of the four quadrants to be Q respectively 1 、Q 2 、Q 3 And Q 4 The Q is set 1 、Q 2 、Q 3 And Q 4 And sequentially sequencing the pixel difference values from high to low, and selecting the pixel difference value with the highest pixel difference value as a highlight pixel result.
The technical effects of the technical scheme are as follows: the pixel difference module can randomly sample a pixel point in four quadrants after judging that the liquid crystal panel has no image noise or by adjusting the backlight value, and calculate the pixel difference of the pixel point. The calculation mode is that the difference value of the pixel points is calculated through a Sobel operator in the horizontal direction and the vertical direction. The technical scheme greatly improves the accuracy of the pixel difference value and further improves the accuracy of the focusing position, and the calculated pixel difference value is not influenced by the image noise by calculating the pixel difference value after the image noise is not generated or the backlight value is regulated by the liquid crystal panel; according to the processed difference value, the definition of the picture can be further calculated; the accuracy of definition is improved; this allows the sharpness of an image to be evaluated by performing pixel difference calculations on a randomly selected pixel without the need to acquire the entire image. The highlight pixel module sorts the pixel differences of four pixel points in four quadrants, namely Q 1 、Q 2 、Q 3 And Q 4 Then the one with the highest pixel difference is selected as the result of the high light pixel. The technology can more accurately determine the pixel density and the focusing point position of the liquid crystal panel by comparing the pixel difference values of different areas and calculating the position of the maximum pixel difference value,accurate automatic focusing is realized.
In one embodiment of the present invention, the comparison module includes:
the low light module is used for randomly determining a pixel point in four quadrants respectively under the low light condition and calculating the pixel difference value of the pixel point, wherein the pixel difference value of the four pixel points in the four quadrants is q respectively 1 、q 2 、q 3 And q 4 The method comprises the steps of carrying out a first treatment on the surface of the Putting said q 1 、q 2 、q 3 And q 4 And selecting the pixel with the highest pixel difference as a low-light pixel result according to the sequence of the pixel differences from high to low.
The unclear module is used for setting a comparison threshold value and comparing a high-light pixel result with a low-light pixel result; when the difference between the high-light pixel result and the low-light pixel result is larger than the contrast threshold value, the image is an unclear image;
the clear module is used for being a clear picture when the difference between the high-light pixel result and the low-light pixel result is smaller than the contrast threshold value; the clear picture and the unclear picture are the comparison results.
The working principle of the technical scheme is as follows: the low light module is used for randomly determining a pixel point in four quadrants respectively under the low light condition and calculating the pixel difference value of the pixel point, wherein the pixel difference value of the four pixel points in the four quadrants is q respectively 1 、q 2 、q 3 And q 4 The method comprises the steps of carrying out a first treatment on the surface of the Putting said q 1 、q 2 、q 3 And q 4 And selecting the pixel with the highest pixel difference as a low-light pixel result according to the sequence of the pixel differences from high to low. The unclear module is used for setting a contrast threshold value and comparing the high-light pixel result with the low-light pixel result; when the difference between the high-light pixel result and the low-light pixel result is larger than the contrast threshold value, the image is an unclear image; the clear module is used for being a clear picture when the difference between the high-light pixel result and the low-light pixel result is smaller than the contrast threshold value; the clear picture and the unclear picture are the comparison results.
The technical effects of the technical scheme are as follows: the low light module is used for randomly selecting one of four quadrants under low light conditionAnd calculating the pixel difference value of the pixel points. The pixel difference values of the four pixel points are q respectively 1 、q 2 、q 3 And q 4 By ordering the pixel differences, the one with the highest pixel difference is selected as the result of the low light pixels. Next, the high light pixel result is compared with the low light pixel result. To determine under what conditions it is possible to determine whether the image is clear. A contrast threshold is set by the unclear module. Comparing the high-light pixel result with the low-light pixel result, and if the difference between the high-light pixel result and the low-light pixel result is larger than a comparison threshold value, obtaining an unclear picture as a result; otherwise, the picture is clear. Namely: when the difference is larger than the threshold value, the picture is not clear, and the clear module judges that the picture is clear when the difference is smaller than the threshold value. Therefore, whether the image is clear or not can be accurately judged by comparing pixel point differences under high light and low light conditions and comparing according to a threshold value, and automatic focusing and light supplementing are realized by an auxiliary technology.
In one embodiment of the present invention, the final focusing module includes:
the light supplementing module is used for supplementing light for the low light condition by adjusting the brightness of the flash lamp when the liquid crystal panel is an unclear picture;
the non-light supplementing module is used for not carrying out light supplementing operation when the liquid crystal panel is a clear picture;
and the final position determining module is used for calculating the intermediate value of the high-light pixel result and the low-light pixel result after the liquid crystal panel is a clear picture or the flash lamp is used for supplementing light for the low-light condition, searching the focusing position corresponding to the intermediate value in a plane rectangular coordinate system, and taking the focusing position as the final focusing position of the liquid crystal panel.
The working principle of the technical scheme is as follows: the light supplementing module is used for supplementing light for the low light condition by adjusting the brightness of the flash lamp when the liquid crystal panel is an unclear picture; the non-light supplementing module is used for not carrying out light supplementing operation when the liquid crystal panel is a clear picture; the final position determining module is used for calculating an intermediate value between a high-light pixel result and a low-light pixel result after the liquid crystal panel is a clear picture or the flash lamp is used for supplementing light for the low-light condition, searching a focusing position corresponding to the intermediate value in a plane rectangular coordinate system, and taking the focusing position as a final focusing position of the liquid crystal panel.
The technical effects of the technical scheme are as follows: the technical scheme provides an automatic focusing method of a liquid crystal panel. The light supplementing module is used for supplementing light to an unclear picture by adjusting the brightness of the flash lamp. The non-light supplementing module does not conduct light supplementing operation on the clear picture so as to avoid influence on image quality. After the final position determining module performs the light supplementing operation, calculating the intermediate value of the high-light pixel result and the low-light pixel result, the mode of calculating the intermediate value is adopted in the technical scheme, compared with the prior art, the method is more robust and more representative, and the technical problem that the definition calculated by adopting the average value in the prior art is easily influenced by the extreme value is solved. And searching the corresponding focusing position in the plane rectangular coordinate system. The focus position is finally set as the final focus position of the liquid crystal panel. The method can effectively improve the focusing accuracy and efficiency of the liquid crystal panel and improve the definition and quality of the image. Meanwhile, the technical scheme has the advantages of simplicity and convenience in operation and easiness in implementation.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. An auto-focusing method based on a TFT liquid crystal panel, comprising:
s1, under the normal brightness condition, collecting a backlight value of a TFT liquid crystal panel, judging whether image noise exists in the liquid crystal panel according to the backlight value, and obtaining a noise result; adjusting a backlight value according to the noise result;
s2, collecting pixel point density of the liquid crystal panel in a partitioning mode according to the noise result to obtain a highlight pixel result;
s3, under the low light condition, collecting pixel point density in a partition mode, obtaining a low light pixel result, and comparing the high light pixel result with the low light pixel result to obtain a comparison result after no image noise exists or the image noise exists and the backlight value is regulated;
and S4, determining whether to supplement light to the low light condition according to the comparison result, calculating a final pixel point difference value according to the comparison result, and determining a final focusing position according to the final pixel point difference value.
2. The auto-focusing method based on the TFT LCD panel according to claim 1, wherein the backlight value of the TFT LCD panel is collected under the normal brightness condition, and whether the LCD panel has image noise is judged according to the backlight value to obtain a noise result; adjusting a backlight value according to the noise result, including:
S101, establishing a plane rectangular coordinate system by taking a central point of a liquid crystal panel as an origin, taking a pixel point as an abscissa and taking a focusing position as an ordinate; the plane rectangular coordinate system is divided into a first quadrant, a second quadrant, a third quadrant and a fourth quadrant; judging whether image noise exists or not by collecting backlight values of the liquid crystal panel, randomly collecting one backlight value in each quadrant respectively, setting a threshold value of a backlight value difference value, setting the threshold value of the backlight value difference value as x, calculating the backlight value difference value, and judging that the image noise exists in the liquid crystal panel when the difference value of any two backlight values in the four backlight values is larger than x; when the difference value of any two backlight values in the four backlight values is smaller than x, judging that the liquid crystal panel has no image noise; the two conditions of the presence of image noise and the absence of image noise are the noise results;
s102, when image noise exists in the liquid crystal panel, adjusting any two backlight values with the difference value larger than x to an average value of the two backlight values; when the liquid crystal panel does not have image noise, the backlight value is not adjusted.
3. The method for auto-focusing based on a TFT liquid crystal panel according to claim 1, wherein the step of collecting pixel density of the liquid crystal panel in a partitioned manner according to the noise result to obtain a highlight pixel result comprises:
S201, after image noise does not exist in the liquid crystal panel or image noise exists and a backlight value is adjusted, randomly determining a pixel point in each of four quadrants; calculating the pixel difference value of the pixel point;
s202, the pixel difference values of the four pixel points of the four quadrants are respectively Q 1 、Q 2 、Q 3 And Q 4 The Q is set 1 、Q 2 、Q 3 And Q 4 Sequentially sequencing from high to low according to the height of the pixel difference value, and selecting the pixel difference value with the highest value as a highlight pixel result;
the pixel difference value has a calculation formula as follows:
;
wherein Q is the pixel difference value, x i Is the abscissa of the pixel, y i Is the ordinate of the pixel, x i +1 is the pixel coordinate of the next column in the lateral direction, y i +1 is the pixel coordinate of the next column in the vertical direction, T is the luminous flux of the liquid crystal panel, G is the actual brightness of the light source, i=1, 2, 3 or 4.
4. The method for auto-focusing on a TFT-based liquid crystal panel of claim 3, wherein the step of obtaining a low-light pixel result by collecting pixel density in a partitioned manner under a low-light condition, and comparing the high-light pixel result with the low-light pixel result when no image noise exists or when image noise exists and the backlight value is adjusted, comprises:
s301, under the low light condition, randomly determining a pixel point in four quadrants respectively, and calculating pixel difference values of the pixel point, wherein the pixel difference values of the four pixel points in the four quadrants are q respectively 1 、q 2 、q 3 And q 4 The method comprises the steps of carrying out a first treatment on the surface of the Putting said q 1 、q 2 、q 3 And q 4 Sequentially sequencing from high to low according to pixel difference values, and selecting the pixel difference value with the highest pixel difference value as a low-light pixel result;
s302, setting a comparison threshold value, and comparing a high-light pixel result with a low-light pixel result; when the difference between the high-light pixel result and the low-light pixel result is larger than the contrast threshold value, the image is an unclear image;
s303, when the difference between the high-light pixel result and the low-light pixel result is smaller than the contrast threshold value, the image is a clear image; the clear picture and the unclear picture are the comparison results.
5. The method for auto-focusing on a TFT-based liquid crystal panel of claim 1, wherein determining whether to supplement light for low light conditions according to the comparison result, calculating a final pixel difference according to the comparison result, and determining a final focusing position according to the final pixel difference comprises:
s401, when the liquid crystal panel is an unclear picture, the brightness of a flash lamp is adjusted, and the flash lamp is used for supplementing light for the low light condition;
s402, when the liquid crystal panel is a clear picture, no light supplementing operation is performed;
and S403, when the liquid crystal panel is a clear picture or the flash lamp is used for supplementing light under a low light condition, calculating an intermediate value of a high light pixel result and a low light pixel result, searching a focusing position corresponding to the intermediate value in a plane rectangular coordinate system, and taking the focusing position as a final focusing position of the liquid crystal panel.
6. An TFT-based liquid crystal panel autofocus system, the system comprising:
the image noise judging module is used for collecting the backlight value of the TFT liquid crystal panel under the normal brightness condition, judging whether the liquid crystal panel has image noise or not according to the backlight value, and obtaining a noise result; adjusting a backlight value according to the noise result;
the highlight pixel module is used for collecting pixel point density of the liquid crystal panel in a partitioning mode according to the noise result to obtain a highlight pixel result;
the contrast module is used for collecting pixel point density in a partitioning way under the low light condition to obtain a low light pixel result, and comparing the high light pixel result with the low light pixel result to obtain a contrast result when no image noise exists or the image noise exists and the backlight value is regulated;
and the final focusing module is used for determining whether to supplement light to the low light condition according to the comparison result, calculating a final pixel point difference value according to the comparison result, and determining a final focusing position according to the final pixel point difference value.
7. The TFT-based liquid crystal panel autofocus system of claim 6, wherein said image noise determination module comprises:
the noise judging module is used for establishing a plane rectangular coordinate system by taking the center point of the liquid crystal panel as an original point, taking the pixel point as an abscissa and taking the focusing position as an ordinate; the plane rectangular coordinate system is divided into a first quadrant, a second quadrant, a third quadrant and a fourth quadrant; judging whether image noise exists or not by collecting backlight values of the liquid crystal panel, randomly collecting one backlight value in each quadrant respectively, setting a threshold value of a backlight value difference value, setting the threshold value as x, calculating the difference value of four backlight values, and judging that the image noise exists in the liquid crystal panel when the difference value of any two backlight values in the four backlight values is larger than x; when the difference value of any two backlight values in the four backlight values is smaller than x, judging that the liquid crystal panel has no image noise; the two conditions of the presence of image noise and the absence of image noise are the noise results;
The backlight adjusting module is used for adjusting any two backlight values with the difference value larger than x to an average value of the two backlight values when the liquid crystal panel has image noise; when the liquid crystal panel does not have image noise, the backlight value is not adjusted.
8. The TFT-based liquid crystal panel autofocus system of claim 6, wherein said high light pixel module comprises:
the pixel difference module is used for randomly determining a pixel point in each of four quadrants when the liquid crystal panel has no image noise or has image noise and adjusts a backlight value; calculating the pixel difference value of the pixel point;
a highlight pixel module for making the pixel difference value of the four pixel points of the four quadrants be Q respectively 1 、Q 2 、Q 3 And Q 4 The Q is set 1 、Q 2 、Q 3 And Q 4 And sequentially sequencing the pixel difference values from high to low, and selecting the pixel difference value with the highest pixel difference value as a highlight pixel result.
9. The TFT-based liquid crystal panel autofocus system of claim 6, wherein said contrast module comprises:
the low light module is used for randomly determining a pixel point in four quadrants respectively under the low light condition and calculating the pixel difference value of the pixel point, wherein the pixel difference value of the four pixel points in the four quadrants is q respectively 1 、q 2 、q 3 And q 4 The method comprises the steps of carrying out a first treatment on the surface of the Putting said q 1 、q 2 、q 3 And q 4 Sequentially sequencing from high to low according to pixel difference values, and selecting the pixel difference value with the highest pixel difference value as a low-light pixel result;
the unclear module is used for setting a comparison threshold value and comparing a high-light pixel result with a low-light pixel result; when the difference between the high-light pixel result and the low-light pixel result is larger than the contrast threshold value, the image is an unclear image;
the clear module is used for being a clear picture when the difference between the high-light pixel result and the low-light pixel result is smaller than the contrast threshold value; the clear picture and the unclear picture are the comparison results.
10. The TFT-based liquid crystal panel autofocus system of claim 9, wherein said final focus module comprises:
the light supplementing module is used for supplementing light for the low light condition by adjusting the brightness of the flash lamp when the liquid crystal panel is an unclear picture;
the non-light supplementing module is used for not carrying out light supplementing operation when the liquid crystal panel is a clear picture;
and the final position determining module is used for calculating the intermediate value of the high-light pixel result and the low-light pixel result after the liquid crystal panel is a clear picture or the flash lamp is used for supplementing light for the low-light condition, searching the focusing position corresponding to the intermediate value in a plane rectangular coordinate system, and taking the focusing position as the final focusing position of the liquid crystal panel.
CN202311453822.0A 2023-11-03 2023-11-03 Automatic focusing method and system based on TFT liquid crystal panel Active CN117174036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311453822.0A CN117174036B (en) 2023-11-03 2023-11-03 Automatic focusing method and system based on TFT liquid crystal panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311453822.0A CN117174036B (en) 2023-11-03 2023-11-03 Automatic focusing method and system based on TFT liquid crystal panel

Publications (2)

Publication Number Publication Date
CN117174036A true CN117174036A (en) 2023-12-05
CN117174036B CN117174036B (en) 2024-01-02

Family

ID=88930293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311453822.0A Active CN117174036B (en) 2023-11-03 2023-11-03 Automatic focusing method and system based on TFT liquid crystal panel

Country Status (1)

Country Link
CN (1) CN117174036B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080225205A1 (en) * 2007-03-13 2008-09-18 Microsoft Corporation Display With Focussed Illumination
US20170110065A1 (en) * 2015-10-16 2017-04-20 Hisense Electric Co., Ltd. Method and apparatus for controlling liquid crystal display brightness, and liquid crystal display device
CN109348093A (en) * 2018-09-26 2019-02-15 维沃移动通信有限公司 A kind of image collecting device, method and terminal device
CN113312944A (en) * 2020-02-27 2021-08-27 北京小米移动软件有限公司 Image acquisition method, calibration method, under-screen fingerprint identification device and mobile terminal
CN114143467A (en) * 2021-12-20 2022-03-04 努比亚技术有限公司 Shooting method based on automatic focusing and zooming, mobile terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080225205A1 (en) * 2007-03-13 2008-09-18 Microsoft Corporation Display With Focussed Illumination
US20170110065A1 (en) * 2015-10-16 2017-04-20 Hisense Electric Co., Ltd. Method and apparatus for controlling liquid crystal display brightness, and liquid crystal display device
CN109348093A (en) * 2018-09-26 2019-02-15 维沃移动通信有限公司 A kind of image collecting device, method and terminal device
CN113312944A (en) * 2020-02-27 2021-08-27 北京小米移动软件有限公司 Image acquisition method, calibration method, under-screen fingerprint identification device and mobile terminal
CN114143467A (en) * 2021-12-20 2022-03-04 努比亚技术有限公司 Shooting method based on automatic focusing and zooming, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN117174036B (en) 2024-01-02

Similar Documents

Publication Publication Date Title
CN109696788B (en) Quick automatic focusing method based on display panel
CN106971185B (en) License plate positioning method and device based on full convolution network
CN1713068A (en) Automatic focus adjustment for projector
CN110514406B (en) Detection method of LED lamp panel, electronic equipment and storage medium
CN105812790B (en) Method for evaluating verticality between photosensitive surface and optical axis of image sensor and optical test card
CN109495729B (en) Projection picture correction method and system
WO2019105433A1 (en) Image distortion detection method and system
US8237785B2 (en) Automatic focusing apparatus for use in a microscope in which fluorescence emitted from a cell is captured so as to acquire a cell image, and automatic focusing method therefor
CN110910372B (en) Deep convolutional neural network-based uniform light plate defect detection method
JPH0425741A (en) Optical axis adjusting method for headlight
CN103033127A (en) Base plate pre-alignment pose measuring method
CN104122264B (en) Apparent flaws detecting system and method
CN116990323A (en) High-precision printing plate visual detection system
US20180059398A1 (en) Image processing device, imaging device, microscope system, image processing method, and computer-readable recording medium
US8451211B2 (en) Dimming control apparatus and method for generating dimming control signal by referring to distribution information/multiple characteristic values derived from pixel values
CN111474103B (en) Automatic focusing scanning method and system for bone marrow cell glass slide
CN117174036B (en) Automatic focusing method and system based on TFT liquid crystal panel
CN107784673B (en) Optical fiber image processing method based on non-uniformity correction
CN112598652B (en) Gradient transformation-based liquid crystal display edge broken line detection method
CN109580174A (en) Detection method, device and the readable storage medium storing program for executing of semiconductor laser local uniformity
CN108833873A (en) A kind of luminance uniformity motion compensation process
CN209877890U (en) Semi-automatic line width detection device
CN107392924B (en) LED light source multi-region detection method and system
CN114298984B (en) Method and device for detecting screen penetration line, electronic equipment and storage medium
CN107389318B (en) LED light source detection method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant