CN100542306C - Focusing performance of pick-up head detection system and method - Google Patents

Focusing performance of pick-up head detection system and method Download PDF

Info

Publication number
CN100542306C
CN100542306C CNB2005100731671A CN200510073167A CN100542306C CN 100542306 C CN100542306 C CN 100542306C CN B2005100731671 A CNB2005100731671 A CN B2005100731671A CN 200510073167 A CN200510073167 A CN 200510073167A CN 100542306 C CN100542306 C CN 100542306C
Authority
CN
China
Prior art keywords
camera
focusing
component
fringe area
pick
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.)
Active
Application number
CNB2005100731671A
Other languages
Chinese (zh)
Other versions
CN1874529A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005100731671A priority Critical patent/CN100542306C/en
Publication of CN1874529A publication Critical patent/CN1874529A/en
Application granted granted Critical
Publication of CN100542306C publication Critical patent/CN100542306C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Automatic Focus Adjustment (AREA)

Abstract

The invention discloses a kind of focusing performance of pick-up head detection system and method, when the focusing performance of camera being detected in order to solve the available technology adopting manual type, the problem that detection efficiency is low, detection error rate is high.The present invention has increased image processor between camera that has camera focus detection system now and display device, this image processor carries out in the process of focus adjustment at camera, draws the focusing performance testing result of camera by the vision signal of analyzing and processing camera output.The present invention has improved efficient and correctness that focusing performance of pick-up head detects greatly, has also alleviated the detection working strength of workers simultaneously.

Description

Focusing performance of pick-up head detection system and method
Technical field
The present invention relates to the detection technique in the field of multimedia communication, relate in particular to a kind of focusing performance of pick-up head detection system and method.
Background technology
In the process of manufacture of camera, need that at last camera is carried out focusing performance and detect, to get rid of the camera that can not normally focus on.The definition of the test pattern that this process is normally taken in by the eye-observation camera is finished.
Figure 1 shows that by eye-observation camera is carried out the schematic diagram that focusing performance detects.When carrying out the focusing performance detection, the output of camera need be connected on the display device, then camera is aimed at the test pattern that is arranged on the test card, test pattern will be presented on the display device so, manually camera is carried out focus adjustment, changing will appear in the definition of the test pattern that shows on the display device, when the definition of the test pattern on observing display device reaches preferably, we think that camera is in best focus position, judge that thus this camera can focus on preferably.In above-mentioned testing process, following situation may appear in some camera: that is exactly no matter how we carry out focus adjustment to camera, all can not obtain the test pattern of enough definition on display device, we think that this camera can not normally focus on so.
In the above-mentioned camera focus detection process, whether camera is in best focus position is to determine by the definition of the test pattern in the human eye judgement display device.Because seeing image that a width of cloth same with eyes all day, thus symptoms such as the people of this work occurs headache easily, feels sick, fatiguability be engaged in, thus cause problems such as detection efficiency is low, detection error rate height easily.
Summary of the invention
The invention provides a kind of focusing performance of pick-up head detection system and method, when the focusing performance of camera being detected in order to solve the available technology adopting manual type, the problem that detection efficiency is low, detection error rate is high.
For addressing the above problem, the present invention by the following technical solutions:
A kind of focusing performance of pick-up head detection system comprises the display device of the camera of taking in test pattern and this test pattern; Also comprise:
Image processor: be connected between described camera and the described display device, carry out in the focus adjustment process at camera, in the test pattern to the vision signal form of described camera output, the Grad of a certain component in color space or deviant detect in the fringe area, draw the real-time focusing quality testing result of camera, judge according to testing result whether the focusing performance of camera is qualified.
When described camera is the simulation camera, be provided with in the described image processor:
Video decoding unit: the analog video signal of camera output is converted to digital video signal supplied with digital signal processing unit;
Digital signal processing unit: carry out in the focus adjustment process at camera, digital video signal to video decoding unit output carries out gradient detection or deviant detection, draw the real-time focusing quality testing result of camera, whether the focusing performance of judging camera according to testing result is qualified, the output judged result.
When described display device was numerical display device, described digital signal processing unit directly was connected with display device, and the test pattern that the testing result of camera and/or camera are taken in outputs to display device with the digital video signal form and shows.
When described display device was analog display device, described image processor further comprised:
Video encoding unit: the testing result of the camera of digital signal processing unit output and/or the test pattern that camera is taken in are converted to analog video signal, output to display device and show.
Described digital video signal is the digital video signal of rgb format or the digital video signal of YCbCr form.
Comprise two kinds of stripeds that color is alternate in the described test pattern with luminance difference.
Described digital signal processing unit comprises:
Fringe area locating module: in the test pattern of digital video signal form, fringe area is positioned the positional information of output fringe area;
Computing module: be connected with described fringe area locating module, draw the current focusing quality testing result of camera according to the Grad or the deviant of a certain component in color space in the fringe area.
Judge module: be connected with described computing module, carry out in the process of focus adjustment at camera, write down the real-time focusing quality testing result of camera of computing module output, find out the peak value of testing result, whether the focusing performance of judging camera according to this peak value is qualified, the output judged result.
The alternate striped of described two kinds of colors is chequered with black and white striped.
A kind of focusing performance of pick-up head detection method, described camera is used to take in test pattern, comprises step:
A, when camera carries out focus adjustment, in the test pattern to the vision signal form of camera output, the Grad of a certain component in color space or deviant detect in the fringe area, draw the focusing index that several are used to reflect the camera focusing quality, determine that wherein maximum is for focusing on the index peak value;
B, judge whether described focusing index peak value reaches predefined threshold value, if then this focusing performance of pick-up head is qualified, otherwise the focusing performance of this camera is defective.
Comprise two kinds of stripeds that color is alternate in the described test pattern with luminance difference.
The alternate striped of described two kinds of colors is chequered with black and white striped.
In the described steps A, the fringe area in the vision signal of camera output is positioned, and draw the current focusing index of camera according to the Grad or the deviant of a certain component in color space in the fringe area.
The a certain component in described color space is the Y component of YCbCr format digital video signal or the G component of rgb format digital video signal.
It is as follows that described Grad according to Y component in the fringe area calculates the formula that focuses on index:
S=100×g/|Y1-Y2|
Wherein S is the current focusing index of camera;
G is the Grad of Y component in the fringe area that calculates by the sobel operator;
Y1 and Y2 are respectively the typical Y component value of two kinds of color stripeds in the fringe area.
It is as follows that described Grad according to G component in the fringe area calculates the formula that focuses on index:
S=100×g/|G max-G min|
Wherein S is the current focusing index of camera;
G is the Grad of G component in the fringe area that calculates by the sobel operator;
G MaxAnd G MinBe respectively the typical G component value of two kinds of color stripeds in the fringe area.
It is as follows that described deviant according to Y component in the fringe area is calculated the formula that focuses on index:
S=100×(1.0-T/T 0)
Wherein S is the current focusing index of camera;
T is the deviant of Y component in the fringe area;
T 0It is the Y component value of the two kinds of color stripeds deviant of Y component in the fringe area when equating.
It is as follows that described deviant according to G component in the fringe area is calculated the formula that focuses on index:
S=100×(1.0-T/T 0)
Wherein S is the current focusing index of camera;
T is the deviant of G component in the fringe area;
T 0It is the G component value of the two kinds of color stripeds deviant of G component in the fringe area when equating.
The area of described two kinds of color stripeds equates in fringe area.
The present invention has adopted above technical scheme, has following beneficial effect:
The present invention has increased between the camera of existing camera focus detection system and display device and has been used for image processor that the current focusing quality of camera is detected, this image processor carries out in the process of focus adjustment at camera, the vision signal of camera output is carried out real-time analysis to be handled, find out the peak value of camera focusing quality testing result, judge according to this peak value whether the focusing performance of camera is qualified.Compare with existing focus detection methods, the present invention quantizes image focus quality, and by focusing on the introducing of this notion of index, we can conclude the focusing situation that camera is current according to the focusing exponential quantity of current camera.And judge according to the focusing index peak value in the focus adjustment process whether the focusing performance of camera is qualified.The present invention has improved the efficient and the correctness that detect, has also alleviated the test working strength of workers simultaneously.
Description of drawings
Fig. 1 is the structural representation of focusing performance of pick-up head detection system in the prior art;
Fig. 2 is the structural representation of focusing performance of pick-up head detection system of the present invention;
Fig. 3 is the structural representation of image processor of the present invention;
The test pattern schematic diagram of Fig. 4 for adopting in the specific embodiment of the invention;
Fig. 5 determines to focus on the flow chart of index according to the Grad of Y component in the fringe area for the present invention;
Fig. 6 determines to focus on the flow chart of index according to the Grad of G component in the fringe area for the present invention;
Fig. 7 determines to focus on the flow chart of index according to the deviant of Y component in the fringe area for the present invention;
Fig. 8 determines to focus on the flow chart of index according to the deviant of G component in the fringe area for the present invention;
The test pattern schematic diagram that Fig. 9 is adopted when for the present invention the integral image focusing effect being had relatively high expectations.
Embodiment
Below in conjunction with Figure of description the specific embodiment of the present invention is described.
The present invention has increased in existing camera focus detection system and has been used for image processor that the current focusing quality of camera is detected, this image processor carries out in the process of focus adjustment at camera, and whether qualified by the vision signal of camera output being carried out real-time analysis if handling the focusing performance of judging camera.
Figure 2 shows that the structural representation of focusing performance of pick-up head detection system, as seen from the figure, this system mainly comprises:
Camera: be used to take in test pattern;
Image processor: be connected between camera and the display device, carry out in the process of focus adjustment at camera, draw the real-time focusing quality testing result of camera by the vision signal of analyzing and processing camera output, judge according to the peak value of testing result whether the focusing performance of camera is qualified.
Display device: the test pattern that the current focusing quality testing result of the focusing performance testing result of camera and/or camera and/or camera are taken in shows.
Figure 3 shows that the structural representation of image processor, this image processor necessarily comprises digital signal processing unit, carry out in the process of focus adjustment at camera, input digital video signal is wherein carried out the gradient detection to digital signal processing unit or deviant detects, draw the real-time focusing quality testing result of camera, determine that the maximum in the testing result is the testing result peak value, judge according to this peak value whether the focusing performance of camera is qualified.
At camera is under the situation of digital camera, the signal of camera output is a digital video signal, as digital video signal of rgb format or YCbCr form etc., this camera digital signal processing unit direct and in the image processor is connected, digital video signal is directly inputted to carries out analyzing and processing in the digital signal processing unit, draw the real-time focusing quality testing result of camera, can judge according to the peak value of testing result whether the focusing performance of camera is qualified.Under the situation of camera for the simulation camera, the vision signal of camera output is an analog video signal, as analog video signal of CVBS form etc., also need comprise video decoding unit in the image processor, this video decoding unit is connected between camera and the digital signal processing unit, the analog video signal of camera output is converted to supplied with digital signal processing unit behind the digital video signal of rgb format or YCbCr form, digital signal processing unit carries out analyzing and processing to input digital video signal wherein, can judge according to the peak value of testing result whether the focusing performance of camera is qualified.
If display device is a numerical display device, then digital signal processing unit directly is connected with display device, and the test pattern that focusing quality testing result that the focusing performance testing result of camera and/or camera is current and/or camera are taken in outputs to display device with the digital video signal form and shows; If display device is an analog display device, then also need comprise video encoding unit in the image processor, this video encoding unit is connected between digital signal processing unit and the display device, be used for the test pattern that focusing quality testing result that the focusing performance testing result of camera and/or camera is current and/or camera take in and convert analog video signal to, output on the display device and show.
Carry out in the focus adjustment process at camera, digital signal processing unit characterizes the current focusing quality of camera by the definition of real-time detection test pattern, and the present invention detects by the gradient of the digital video signal in the supplied with digital signal processing unit being carried out a certain component in color space or deviant detects the definition detection of finishing test pattern.Because the graded of candy strip color space component when definition changes and skew are more obvious, therefore should have two kinds of stripeds that color is alternate in the test pattern that camera is taken in, has certain luminance difference between the striped of these two kinds of colors, because the luminance difference of black and white is the most obvious, therefore select for use test pattern for optimum with chequered with black and white striped.
Digital signal processing unit mainly comprises fringe area locating module, computing module and judge module, wherein the fringe area locating module positions the fringe area of the vision signal of camera output, and the fringe area positional information that draws is sent to computing module; The real-time focusing quality testing result that computing module draws camera according to the Grad or the deviant of a certain component in color space in the fringe area; Judge module is connected with computing module, carry out in the process of focus adjustment at camera, write down the real-time focusing quality testing result of camera of computing module output, find out the peak value of testing result, whether the focusing performance of judging camera according to this peak value is qualified, and the output judged result.
The current focusing quality testing result of camera characterizes by focusing on index, and it is high more to focus on index, illustrates that the current focusing quality of camera is good more, and it is low more to focus on index, illustrates that the current focusing quality of camera is poor more.Carry out in the process of focus adjustment at camera, the focusing index that computing module will measure outputs in the judge module in real time, the focusing index of judge module record computing module output, determine that wherein maximum is for focusing on the index peak value, and judge whether this focusing index peak value reaches predefined threshold value, if then this focusing performance of pick-up head is qualified, otherwise the focusing performance of this camera is defective.
Focus on index and can adopt dual mode to draw, the test pattern that has level and a vertical chequered with black and white striped with central authorities shown in Figure 4 is an example below, determines that to two kinds the processes that focus on indexes describe respectively:
First kind of mode is to determine to focus on index according to the Grad of a certain component in color space in the fringe area, camera focuses under the bad situation, bluring can appear in image, the gradient of image border can diminish, and the result that the gradient of stripe edge is compared under the gradient that therefore can utilize the stripe edge after fuzzy and the ideal focusing situation determines the focusing index of camera.
As shown in Figure 5, for the digital video signal of YCbCr form, the Grad of Y component (being luminance component) that can be by calculating striped characterizes the focusing index, and detailed process is as follows:
Step S10, determine the definite position of fringe area;
Test pattern is carried out from top to bottom or lining by line scan from bottom to top, and first row of scanning earlier writes down the Y component mean value mean0 of these all pixels of row and the mean value smallmean0 of three pixel Y component minimum values; First row is white background certainly, so the value of mean0-smallmean0 can not depart from 0 too far away; Scan each row successively, write down the Y component mean value mean of every all pixels of row and the mean value smallmean of three pixel Y component minimum values during scanning; If mean-smallmean<5 * (mean0-smallmean0), think that then this row is still white background, if behavior fringe area is then thought in mean-smallmean>=5 * (mean0-smallmean0), can determine the initial row and the end line of fringe area.Similarly, test pattern is carried out from left to right or dextrosinistral by column scan, determine the initial row and the end column of fringe area, can determine the definite position of fringe area.
Step S11, the Y component value Yw that determines the typical case's white in the test pattern and the Y component value Yb of typical black;
Fringe area is scanned, with the Y component mean value of some picture elements of Y component value minimum Y component value Yb, with the Y component mean value of some picture elements of Y component maximum Y component value Yw as typical case's white as typical black.
Step S12, determine the gradient mean value g at fringe area intra-striate edge;
Use the sobel operator to calculate the horizontal gradient at fringe area intra-striate edge, because the edge of the test pattern of Fig. 4 is a straight line, therefore, the formula of compute gradient can be simplified, and the horizontal gradient computing formula after the simplification is g (i, j)=Y (i+1, j)-Y (i-1, j), Y (i, j)Be the Y component value of picture element, four Grad of the both sides of the edge of two white nickings in the calculating chart 4, each all is a mean value of getting a plurality of somes gradients in both sides of the edge of two white nickings in four Grad, asks the mean value gh of these four Grad then;
Use the sobel operator to calculate the vertical gradient at fringe area intra-striate edge, the vertical gradient computing formula after the simplification is g (i, j)=Y (i, j+1)-Y (i, j-1), Y (i, j)Be the Y component value of picture element, four Grad of two horizontal white band line both sides of the edge in the calculating chart 4, each all is a mean value of getting a plurality of somes gradients in edge in four Grad, asks the mean value gv of its this four Grad then;
The gradient mean value g at fringe area intra-striate edge equals the mean value of vertical gradient gh and horizontal gradient gv, that is: g=(gh+gv)/2.
Step S13, utilize the stripe edge after fuzzy gradient and ideal focusing situation under the result that compares of the gradient of stripe edge determine the focusing index of camera;
The computing formula that focuses on index is: S=100 * g/|Yw-Yb|
Wherein S is the current focusing index of camera; G is the gradient mean value at fringe area intra-striate edge; Yw and Yb are respectively the typical Y component value of two kinds of color stripeds in the fringe area.
The transformational relation of RGB color space component and YCbCr color space component is as follows:
R=Y+1.402(Cr-128)
G=Y-0.34414(Cb-128)-0.71414(Cr-128)
B=Y+1.772(Cb-128)
We are as can be seen from above-mentioned conversion formula, when test pattern is desirable black and white image, when being the netrual colour component, Cb=128, Cr=128, above-mentioned formula is: R=G=B=Y, so choose this moment any one component in the RGB color space can be equal to the YCbCr color space in the Y component, i.e. luminance component.Though can not obtain having no the test pattern of color, can obtain the almost monochrome test pattern picture of netrual colour component, the value of chromatic component Cb, Cr is all very near 128 at this moment.According to top conversion formula, we can know that the G component is subjected to the variable effect minimum of Cb, Cr component, so in the RGB color space, we can use the G component to come computed image to focus on index, certainly we also can use R component and B component to come the focusing index of computed image, but the G component is a best choice.
As shown in Figure 6, for the digital video signal of rgb format, the gradient of G component that can be by calculating striped characterizes the focusing index, and detailed process is as follows:
Step S20, determine the definite position of fringe area;
Test pattern is carried out from top to bottom or lining by line scan from bottom to top, and first row of scanning earlier writes down the G component mean value mean0 of these all pixels of row and the mean value smallmean0 of three pixel G component minimum values; First row is white background certainly, so the value of mean0-smallmean0 can not depart from 0 too far away; Scan each row successively, write down the G component mean value mean of every all pixels of row and the mean value smallmean of three pixel G component minimum values during scanning; If mean-smallmean<5 * (mean0-smallmean0), think that then this row is still white background, if behavior fringe area is then thought in mean-smallmean>=5 * (mean0-smallmean0), can determine the initial row and the end line of fringe area.Similarly, test pattern is carried out from left to right or dextrosinistral by column scan, determine the initial row and the end column of fringe area, can determine the definite position of fringe area.
Step S21, determine the G component value G of the typical case white in the test pattern MaxG component value G with typical black Min
Fringe area is scanned, with the G component mean value of some picture elements of G component minimum G component value G as typical black Min, with the G component mean value of some picture elements of G component maximum G component value G as typical case's white Max
Step S22, determine the gradient mean value g at fringe area intra-striate edge;
Use the sobel operator to calculate the horizontal gradient at fringe area intra-striate edge, because the edge of the test pattern of Fig. 4 is a straight line, therefore, the formula of compute gradient can be simplified, and the horizontal gradient computing formula after the simplification is g (i, j)=Y (i+1, j)-Y (i-1, j), Y (i, j)Be the G component value of picture element, four Grad of the both sides of the edge of two white nickings in the calculating chart 4, each all is a mean value of getting a plurality of somes gradients in both sides of the edge of two white nickings in four Grad, asks the mean value gh of these four Grad then;
Use the sobel operator to calculate the vertical gradient at fringe area intra-striate edge, the vertical gradient computing formula after the simplification is g (i, j)=Y (i, j+1)-Y (i, j-1), Y (i, j)Be the G component value of picture element, four Grad of two horizontal white band line both sides of the edge in the calculating chart 4, each all is a mean value of getting a plurality of somes gradients in edge in four Grad, asks the mean value gv of its this four Grad then;
The gradient mean value g at fringe area intra-striate edge equals the mean value of vertical gradient gh and horizontal gradient gv, that is: g=(gh+gv)/2.
Step S23, utilize the stripe edge after fuzzy gradient and ideal focusing situation under the result that compares of the gradient of stripe edge determine the focusing index of camera;
The computing formula that focuses on index is: S=100 * g/|G Max-G Min|
Wherein S is the current focusing index of camera; G is the gradient mean value at fringe area intra-striate edge; G MaxAnd G MinBe respectively the typical G component value of two kinds of color stripeds in the fringe area.
The second way is to determine to focus on index according to the deviant of a certain component in color space in the fringe area, camera focuses under the bad situation, bluring can appear in image, this moment, the contrast of image also can diminish, and therefore can utilize the deviant of a certain component in color space of striped to characterize focusing factor.When adopting this mode determine to focus on index, require the area of two kinds of color stripeds in the fringe area in the test pattern that camera takes in to equate.
As shown in Figure 7, for the digital video signal of YCbCr form, can characterize the focusing index by the skew of calculating Y component (being luminance component), detailed process is as follows:
Step S30, determine the definite position of fringe area;
Determine the initial row and the end line of fringe area, initial row and end column, the method for determining is identical with the method for above-mentioned steps S10.
Step S31, the Y component value Yw that determines the typical case's white in the test pattern and the Y component value Yb of typical black;
The method of determining is identical with the method for above-mentioned step S11.
Step S32, determine the maximum of two kinds of color striped Y component deviants in the fringe area;
For test pattern shown in Figure 4, the contrast of the image Y component value that can make blackstreak that diminishes becomes big, and the Y component value of white stripes diminishes, if image is fuzzy fully, the Y component that is blackstreak and white stripes becomes just the same, at this moment Y component deviant maximum;
Black streaking is all identical with length, width and the number of informal voucher line among Fig. 4, so black streaking is identical with the area of informal voucher line, and the Computation of Maximal Waiting formula of two kinds of color striped Y component deviants is in the fringe area:
T 0=L×W×N×(Yw+Yb)/2
Wherein L is the length of black streaking, and W is the width of black streaking, N be black and white strip in the fringe area number and, Yb is the Y component value of typical black, Yw is the Y component value of typical case's white.
The Y component deviant of two kinds of color striped reality in step S33, the calculating fringe area;
Fringe area is carried out binary conversion treatment, is threshold value with (Yw+Yb)/2, is labeled as 1 less than the picture element of threshold value, expression black picture element point; Picture element greater than threshold value is labeled as 0, expression white pixel point;
Picture element in the fringe area is carried out point by point scanning, the Y component value that calculates each point depart from the Y component value Yb of typical black or typical case's white Y component value Yw absolute value and, result of calculation is the Y component deviant T of fringe area.Calculate the absolute value that it departs from the Y component value Yb of typical black for the point that after the binaryzation is 1, and, calculate the absolute value that it departs from the Y component value Yw of typical case's white for the point that after the binaryzation is 0.
Step 34, utilize that the deviant of two kinds of color striped Y components characterizes focusing factor in the fringe area;
The computing formula that focuses on index is: S=100 * (1.0-T/T 0)
Wherein S is the current focusing index of camera; T is the deviant of fringe area intra-striate Y component; T 0It is the deviant of the Y component of two kinds of color stripeds fringe area intra-striate Y component when equating.
When image focusing was bad, the G component value of black picture element point can become big and the G component value of white pixel point can be diminished.As shown in Figure 8, for the digital video signal of rgb format, can utilize the deviant of G component in the fringe area to characterize the focusing factor of camera, its detailed process is as follows:
Step S40, determine the definite position of fringe area;
Determine the initial row and the end line of fringe area, initial row and end column, the method for determining is identical with the method for above-mentioned steps S20.
Step S41, determine the G component value G of the typical case white in the test pattern MaxG component value G with typical black Min
The method of determining is identical with the method for above-mentioned step S21.
Step S42, determine the maximum of the G component deviant of two kinds of color stripeds in the fringe area;
For test pattern shown in Figure 4, the contrast of the image G that can make blackstreak that diminishes divides quantitative change big, and the G component of white stripes diminishes, if image is fuzzy fully, the G component value that is blackstreak and white stripes becomes just the same, at this moment the deviant maximum of G component in the fringe area;
Black streaking is all identical with length, width and the number of informal voucher line among Fig. 4, so black streaking is identical with the area of informal voucher line, and the Computation of Maximal Waiting formula of two kinds of color striped G component deviants is in the fringe area:
T0=L×W×N×(G min+G max)/2
Wherein L is the length of black streaking, and W is the width of black streaking, N be black and white strip in the fringe area number and, G MaxBe the G component value of typical case's white, G MinG component value for typical black.
The G component deviant of two kinds of color striped reality in step S43, the calculating fringe area;
Fringe area is carried out binary conversion treatment, with (G Min+ G Max)/2 are threshold value, are labeled as 1 less than the picture element of threshold value, expression black picture element point; Picture element greater than threshold value is labeled as 0, expression white pixel point;
Picture element in the fringe area is carried out point by point scanning, and the G component that calculates each point departs from the G component value G of typical black MinOr the G component value G of typical case's white MaxAbsolute value and T, calculate it for the point that after the binaryzation is 1 and depart from typical black G component value G MinAbsolute value, and, calculate it and depart from typical white G component value G for the point that after the binaryzation is 0 MaxAbsolute value.
Step 44, utilize that the G component deviant of two kinds of color stripeds characterizes focusing factor in the fringe area;
The computing formula that focuses on index is: S=100 * (1.0-T/T 0)
Wherein S is the current focusing index of camera; T is a fringe area intra-striate G component deviant; T 0It is the G component value of the two kinds of color stripeds G component deviant in the fringe area when equating.
Centre focus situation as if the display frame that requires camera absorption image is better, can adopt center shown in Figure 4 to have the test pattern of fringe area, when carrying out the focusing performance detection, focusing index peak value threshold at this fringe area is set to high value, as 90, can satisfy the requirement preferably of display frame centre focus situation, this moment, the centre focus situation of image was better, and edge of image focusing situation can be relatively poor relatively.Under global focus effect requirements condition with higher to display frame, a plurality of fringe area should be set in test pattern, as shown in Figure 8, a fringe area can be set at the center of test pattern, several fringe area are set around test pattern, when carrying out the focusing performance detection, calculate the focusing index of each set fringe area respectively, focusing index peak value threshold to each fringe area is set respectively, the focusing index peak value threshold of center fringe area wherein is set to than low value, as 80, though this moment, the focusing situation of image center was not best, but the focusing situation of entire image is more even, and the global focus effect of image is better.
Below only the present invention will be described with preferred embodiment, and those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (18)

1, a kind of focusing performance of pick-up head detection system comprises the display device of the camera of taking in test pattern and this test pattern; It is characterized in that, also comprise:
Image processor: be connected between described camera and the described display device, be used for carrying out the focus adjustment process at camera, in the test pattern to the vision signal form of described camera output, the Grad of a certain component in color space or deviant detect in the fringe area, draw the real-time focusing quality testing result of camera, judge according to testing result whether the focusing performance of camera is qualified.
2, focusing performance of pick-up head detection system according to claim 1 is characterized in that, described camera is the simulation camera, is provided with in the described image processor:
Video decoding unit: be used for the analog video signal of camera output is converted to digital video signal supplied with digital signal processing unit;
Digital signal processing unit: be used for carrying out the focus adjustment process at camera, digital video signal to video decoding unit output carries out gradient detection or deviant detection, draw the real-time focusing quality testing result of camera, whether the focusing performance of judging camera according to testing result is qualified, the output judged result.
3, according to claim 2 or 3 described focusing performance of pick-up head detection systems, it is characterized in that, described display device is a numerical display device, described digital signal processing unit directly is connected with this display device, is used for that the test pattern that the testing result and/or the camera of camera are taken in is outputed to display device with the digital video signal form and shows.
4, according to claim 2 or 3 described focusing performance of pick-up head detection systems, it is characterized in that described display device is an analog display device, described image processor further comprises:
Video encoding unit: be used for the testing result of the camera of digital signal processing unit output and/or the test pattern that camera is taken in are converted to analog video signal, output to display device and show.
According to claim 2 or 3 described focusing performance of pick-up head detection systems, it is characterized in that 5, described digital video signal is the digital video signal of rgb format or the digital video signal of YCbCr form.
6, according to claim 2 or 3 described focusing performance of pick-up head detection systems, it is characterized in that, comprise two kinds of stripeds that color is alternate in the described test pattern with luminance difference.
7, focusing performance of pick-up head detection system according to claim 7 is characterized in that, described digital signal processing unit comprises:
Fringe area locating module: be used for fringe area being positioned the positional information of output fringe area at the test pattern of digital video signal form;
Computing module: be connected with described fringe area locating module, be used for drawing the current focusing quality testing result of camera according to the Grad or the deviant of a certain component in color space in the fringe area;
Judge module: be connected with described computing module, be used for carrying out the process of focus adjustment, write down the real-time focusing quality testing result of camera of computing module output, find out the peak value of testing result at camera, whether the focusing performance of judging camera according to this peak value is qualified, the output judged result.
8, focusing performance of pick-up head detection system according to claim 7 is characterized in that, the alternate striped of described two kinds of colors is chequered with black and white striped.
9, a kind of focusing performance of pick-up head detection method, described camera is used to take in test pattern, it is characterized in that, comprises step:
A, when camera carries out focus adjustment, in the test pattern to the vision signal form of camera output, the Grad of a certain component in color space or deviant detect in the fringe area, draw the focusing index that several are used to reflect the camera focusing quality, determine that wherein maximum is for focusing on the index peak value;
B, judge whether described focusing index peak value reaches predefined threshold value, if, determine that then this focusing performance of pick-up head is qualified, otherwise, determine that the focusing performance of this camera is defective.
10, focusing performance of pick-up head detection method according to claim 9 is characterized in that, comprises two kinds of stripeds that color is alternate with luminance difference in the described test pattern.
11, focusing performance of pick-up head detection method according to claim 10 is characterized in that, the alternate striped of described two kinds of colors is chequered with black and white striped.
12, focusing performance of pick-up head detection method according to claim 10, it is characterized in that, in the described steps A, fringe area in the vision signal of camera output is positioned, and draw the current focusing index of camera according to the Grad or the deviant of a certain component in color space in the fringe area.
13, focusing performance of pick-up head detection method according to claim 12 is characterized in that, a certain component in described color space is the Y component of YCbCr format digital video signal or the G component of rgb format digital video signal.
14, focusing performance of pick-up head detection method according to claim 13 is characterized in that, it is as follows that described Grad according to Y component in the fringe area calculates the formula that focuses on index:
S=100×g/|Y1-Y2|
Wherein S is the current focusing index of camera;
G is the Grad of Y component in the fringe area that calculates by the sobel operator;
Y1 and Y2 are respectively the typical Y component value of two kinds of color stripeds in the fringe area.
15, focusing performance of pick-up head detection method according to claim 13 is characterized in that, it is as follows that described Grad according to G component in the fringe area calculates the formula that focuses on index:
S=100×g/|G max-G min|
Wherein S is the current focusing index of camera;
G is the Grad of G component in the fringe area that calculates by the sobel operator;
G MaxAnd G MinBe respectively the typical G component value of two kinds of color stripeds in the fringe area.
16, focusing performance of pick-up head detection method according to claim 13 is characterized in that, it is as follows that described deviant according to Y component in the fringe area is calculated the formula that focuses on index:
S=100×(1.0-T/T 0)
Wherein S is the current focusing index of camera;
T is the deviant of Y component in the fringe area;
T 0Be two kinds of color striped Y component values deviants of Y component in the fringe area when equating.
17, focusing performance of pick-up head detection method according to claim 13 is characterized in that, it is as follows that described deviant according to G component in the fringe area is calculated the formula that focuses on index:
S=100×(1.0-T/T 0)
Wherein S is the current focusing index of camera;
T is the deviant of G component in the fringe area;
T 0It is the G component value of the two kinds of color stripeds deviant of G component in the fringe area when equating.
According to claim 16 or 17 described focusing performance of pick-up head detection methods, it is characterized in that 18, the area of described two kinds of color stripeds equates in fringe area.
CNB2005100731671A 2005-05-31 2005-05-31 Focusing performance of pick-up head detection system and method Active CN100542306C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100731671A CN100542306C (en) 2005-05-31 2005-05-31 Focusing performance of pick-up head detection system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100731671A CN100542306C (en) 2005-05-31 2005-05-31 Focusing performance of pick-up head detection system and method

Publications (2)

Publication Number Publication Date
CN1874529A CN1874529A (en) 2006-12-06
CN100542306C true CN100542306C (en) 2009-09-16

Family

ID=37484743

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100731671A Active CN100542306C (en) 2005-05-31 2005-05-31 Focusing performance of pick-up head detection system and method

Country Status (1)

Country Link
CN (1) CN100542306C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135658A (en) * 2011-03-31 2014-11-05 富士通株式会社 Method and device of detecting motion type of camera in video

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625519B (en) * 2008-07-08 2012-01-25 比亚迪股份有限公司 Camera detecting equipment and system
CN101685240B (en) * 2008-09-26 2011-07-20 致伸科技股份有限公司 Method for judging focusing quality of image extracting device
CN102254316A (en) * 2010-05-18 2011-11-23 苏州安可信通信技术有限公司 Method and system for detecting image of digital equipment
TWI417640B (en) * 2010-12-31 2013-12-01 Altek Corp A camera lens calibration system
CN102789111A (en) * 2011-05-19 2012-11-21 华晶科技股份有限公司 Lens calibration system and method thereof
CN102768463B (en) * 2012-06-04 2015-05-06 长春理工大学 Photoreceptor detection system
CN104112266B (en) * 2013-04-19 2017-03-22 浙江大华技术股份有限公司 Image edge blurring detecting method and device
CN105704480B (en) * 2014-11-25 2018-01-30 深圳超多维光电子有限公司 3 d display device detecting system and its detection method
CN104834177B (en) * 2015-05-06 2017-04-26 福建省光学技术研究所 Lens testing and calibration device
CN106534841B (en) * 2016-11-10 2018-04-20 宁波舜宇车载光学技术有限公司 lens detection method and device
CN106878617B (en) * 2017-03-06 2019-05-31 中国计量大学 A kind of focusing method and system
CN110530291A (en) * 2019-08-26 2019-12-03 珠海博明视觉科技有限公司 A kind of auto-focusing algorithm that grating project height is rebuild
CN110636285A (en) * 2019-10-30 2019-12-31 高新兴科技集团股份有限公司 Measuring method for fully automatically acquiring focusing curved surface of camera

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135658A (en) * 2011-03-31 2014-11-05 富士通株式会社 Method and device of detecting motion type of camera in video
CN104135658B (en) * 2011-03-31 2016-05-04 富士通株式会社 In video, detect method and the device of camera motion type

Also Published As

Publication number Publication date
CN1874529A (en) 2006-12-06

Similar Documents

Publication Publication Date Title
CN100542306C (en) Focusing performance of pick-up head detection system and method
US11120757B2 (en) Gray scale adjustment method and device for display panel
CN108760767B (en) Large-size liquid crystal display defect detection method based on machine vision
KR100591731B1 (en) Image processing systems, projectors, information storage media and image processing methods
WO2019100443A1 (en) Mura compensation method and device
CN105185302B (en) Lamp position deviation modification method and its application between monochrome image
US20100166305A1 (en) Method for detecting and correcting chromatic aberration, and apparatus and method for processing image using the same
US9368055B2 (en) Display device and driving method thereof for improving side visibility
JP4436810B2 (en) Display multi-angle measuring system and method
CN109495729B (en) Projection picture correction method and system
CN110853105B (en) Method and device for simultaneously positioning RGB (red, green and blue) sub-pixels and application
JP2011196685A (en) Defect detection device, defect repairing device, display panel, display device, defect detection method and program
US11030971B2 (en) Display device and image processing method for color correction based on image type
US10115333B2 (en) Image display method and display apparatus
CN107613229A (en) A kind of dead pixels of image sensor surveys means for correcting and method
CN114495803A (en) Mura repairing method of display panel
CN115841794B (en) OLED display screen detection method and device, display image processing method and device
KR20180107333A (en) Image Processing method and apparatus for LCD Device
CN104935838A (en) Image restoration method
JP4143660B2 (en) Image analysis method, image analysis apparatus, inspection apparatus, image analysis program, and computer-readable recording medium
CN115602093A (en) Method, system and equipment for performing Demura compensation based on white picture
CN102117603A (en) Backlight value extraction method and device
KR101999546B1 (en) Method of correcting colors, machine-implemented method for a multi-primary color matrix display apparatus, and imgae data signal processing apparatus
CN110740314A (en) Method and system for correcting defective pixel of color line array camera
WO2020132883A1 (en) Display compensation method, apparatus, and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant