CN104596740A - Stability testing system and method of lighting source - Google Patents
Stability testing system and method of lighting source Download PDFInfo
- Publication number
- CN104596740A CN104596740A CN201310528352.XA CN201310528352A CN104596740A CN 104596740 A CN104596740 A CN 104596740A CN 201310528352 A CN201310528352 A CN 201310528352A CN 104596740 A CN104596740 A CN 104596740A
- Authority
- CN
- China
- Prior art keywords
- image
- gray
- value
- light source
- gray value
- 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.)
- Pending
Links
Landscapes
- Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)
- Spectrometry And Color Measurement (AREA)
Abstract
The invention provides a stability testing system for a lighting source. The stability testing system for the lighting source comprises a shooting module for shooting the images of a plurality of detecting products when the light source to be tested is turned on in the maximum brightness, a calculating module for reading a plurality of images, determining RGV value of all pixel points of each image, calculating gray value of all pixel points in each image and calculating average grey value of the pixel point of each image, a drawing module for drawing a preset chart according to the average grey value of the pixel points of all images, and an outputting module for outputting the grey value corresponding to the preset grey value parameters of each image according to the preset grey value parameters as well as outputting the charts to compare the brightness. The invention further provides a stability testing method of the lighting source. The stability of the light source can be tested by the system and method.
Description
Technical field
The present invention relates to Image detection field, particularly relate to a kind of light source stability test macro based on Image detection and method.
Background technology
Utilize image detection system to detect product, its accuracy can be subject to the impact of light source.When detecting, need to utilize light source to throw light on to product, stable could the realization only having light source enough is measured accurately.Usually, high-acruracy survey equipment is to the brightness of light source, very high in uniformity requirement.Such as, utilize image detection system to carry out 3-D scanning (white light or Laser) to testing product to realize detecting, need within the unit interval, get repeatedly image to calculate, therefore, very high to the stability requirement of light source within the unit interval, within a scan period, require that brightness unanimously, is not glimmered.
At present, normally light source is received on three-dimensional scanning device and carry out the scanning of actual point cloud, then judge that the stability of light source is whether consistent according to scanning the precision giving me a little cloud, but, the method not only inefficiency but also the waste of material resources can be caused.
Summary of the invention
In view of above content, be necessary to provide a kind of light source stability test macro and method, can carry out based on to multiple images of shooting the stability that brightness analysis determines light source.
A kind of light source stability method of testing, be applied in image measuring device, described image measuring device comprises CCD camera lens and clamping jig, fixed test product on described clamping jig, light source to be measured is arranged on the front end of described CCD camera lens, the method comprises: control described light source and open with high-high brightness, utilizes the image of the multiple described testing product of described CCD lens shooting; Read described multiple image and determine the rgb value of all pixels in each image, and calculating the gray-scale value of all pixels in each image; Calculate the average gray value of the pixel of each image; Calculate the overall average gray-scale value of described multiple image; And draw the chart preset according to the average gray value of the pixel of all images, and gray-scale value corresponding to the described default gray value parameter exported in each image according to the gray value parameter preset and the chart described in exporting are to carry out brightness ratio pair.
A kind of light source stability test macro, be applied in image measuring device, described image measuring device comprises CCD camera lens and clamping jig, fixed test product on described clamping jig, the light-metering source for the treatment of is arranged on the front end of described CCD camera lens, this system comprises: taking module, for when described light source is opened with high-high brightness, utilizes the image of the multiple described testing product of described CCD lens shooting; Computing module, for reading described multiple image and determining the rgb value of all pixels in each image, calculate the gray-scale value of all pixels in each image, calculate the average gray value of the pixel of each image, and calculate the overall average gray-scale value of described multiple image; Drafting module, the average gray value for the pixel according to all images draws the chart preset; And output module, the gray-scale value that the described default gray value parameter for exporting in each image according to default gray value parameter is corresponding and the chart described in output are to carry out brightness ratio pair.
Compared to prior art, described light source stability test macro and method, can carry out based on to multiple images of shooting the stability that brightness analysis determines light source, thus guarantee the accuracy of detection.
Accompanying drawing explanation
Fig. 1 is the hardware structure figure of the better embodiment of light source stability test macro of the present invention.
Fig. 2 is the structural representation of the image measuring device of the better embodiment of light source stability test macro of the present invention.
Fig. 3 is the functional block diagram of the better embodiment of light source stability test macro of the present invention.
Fig. 4 is the process flow diagram of the better embodiment of light source stability method of testing of the present invention.
Fig. 5 is the regional area analysis process figure of the better embodiment of light source stability method of testing of the present invention.
Main element symbol description
Image measuring device | 1 |
Light source stability test macro | 10 |
Module is set | 100 |
Taking module | 102 |
Computing module | 104 |
Drafting module | 106 |
Output module | 108 |
Processor | 11 |
Memory storage | 12 |
CCD camera lens | 13 |
Clamping jig | 14 |
Display device | 2 |
Light source | 3 |
Testing product | 4 |
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the hardware structure figure of better embodiment of light source stability test macro of the present invention.As shown in Figure 2, be the structural representation of image measuring device of better embodiment of light source stability test macro of the present invention.Hereafter composition graphs 1, Fig. 2 are described.
Described light source stability test macro 10 is applied in image measuring device 1, and described image measuring device 1 can be CCD(Charge Coupled Device, charge-coupled image sensor) image measuring device or other can be used for Eikonometric device.
Described image measuring device comprises CCD camera lens 13 and clamping jig 14.In this better embodiment, light source 3(to be measured is with reference to Fig. 2) be arranged on the front end of described CCD camera lens 13, then testing product is fixed on described clamping jig 14.
In this better embodiment, described light source stability test macro 10 takes multiple image for utilizing described CCD camera lens 13, and analyzes the gray-scale value of the pixel of each image, thus determines whether the brightness of described light source 3 stablizes.Concrete processing procedure vide infra for the detailed description of process flow diagram shown in Fig. 4 and Fig. 5.
Described image measuring device 1 comprises processor 11 and memory storage 12 further.Described processor 11 such as, for performing described light source stability test macro 10 and all kinds of softwares of installation in described image measuring device 1, operating system etc.Described memory storage 12 can be hard disk, or the storage card of other types or memory device.Described memory storage 12 for storing Various types of data, such as, the image of shooting, and set for light source stability test macro described in memory 10, receive and data after process.
Described image measuring device 1 connects display device 2 further, and described display device 2 is for showing all kinds of visualized data.
As shown in Figure 3, be the functional block diagram of better embodiment of light source stability test macro of the present invention.In the present embodiment, described light source stability test macro 10 comprises multiple functional module, respectively: arrange module 100, taking module 102, computing module 104, drafting module 106 and output module 108.Module alleged by the present invention refer to a kind of can be performed and the series of computation machine program segment of fixed function can be completed by processor 11, it is stored in memory storage 12.In the present embodiment, the function about each module specifically describes in the process flow diagram of Fig. 4, Fig. 5.
As shown in Figure 4, be the process flow diagram of better embodiment of light source stability method of testing of the present invention.
First, step S2, controls light source 3 to be measured and opens with high-high brightness.
Step S4, described taking module 102 utilizes described CCD camera lens 13 to take the image of multiple described testing product 4.Described multiple image can be continuous print image, or the multiple images chosen arbitrarily obtained in preset time period.
Step S6, described computing module 104 reads described multiple image and determines the value (hereinafter referred to as " rgb value ") of the three primary colors (RGB, Red Green Blue) of all pixels in each image.
Step S8, described computing module 104 calculates the gray-scale value of each pixel according to the rgb value of each pixel.Such as, described computing module 104 can utilize gray-scale value computing formula to carry out calculating the gray-scale value of each pixel, and this gray-scale value computing formula is: gray-scale value=0.3 × red+0.59 × green+0.11 × indigo plant.
Step S10, described computing module 104 calculates the average gray value of the pixel in each image.After the gray-scale value determining each pixel in each image, the gray-scale value of described computing module 104 to all pixels in each image adds the average gray value that the General Logistics Department calculates each image.
Step S12, described computing module 104 calculates the overall average gray-scale value of described multiple image.Such as, computing module 104 described in supposing have read three images, and wherein, three images average gray value is separately 150 respectively, 180 and 160, then described computing module 104 determines that the overall average gray-scale value of these three images is (150+180+160)/3=163.
Step S14, described drafting module 106 draws the chart preset according to the average gray value of the pixel of all images.Described default chart comprises broken line graph.Such as, represent the average gray value of the pixel of each image with the form of broken line graph, so, clearly can compare the average gray value of each image.
Step S16, described output module 108 export gray-scale value corresponding to described default gray value parameter according to the gray value parameter preset and chart described in exporting to carry out brightness ratio pair, then, process ends.In this better embodiment, the described gray value parameter preset includes, but are not limited to: maximum gradation value, average gray value, overall average gray-scale value, minimum gradation value.Described output module 108 can export the maximum gradation value of each image, average gray value and/or minimum gradation value, and exports the overall average gray-scale value of all images.
In this better embodiment, utilize the gray value parameter and correlation graph that export and preset, difference between more each image greyscale value can be known by assisting users, thus determine whether the brightness of this light source 3 possesses stability.Such as, if the gap between the average gray value of multiple image exceedes default threshold values, then can judge the stability existing problems of this light source 3, need to carry out further detecting or keeping in repair.
In addition, in other embodiments, if need to carry out further the regional area of image according to testing requirement, brightness analysis is (such as, testing requirement for precise measuring source stability), or, exist in obtained image the regional area brightness of indivedual image abnormal time, also can continue the regional area analysis process figure performed as shown in Figure 5.
As shown in Figure 5, be the regional area analysis process figure of better embodiment of light source stability method of testing of the present invention.Process flow diagram shown in Fig. 5 is the brightness of the regional area in order to more described multiple image.
First, step S20, described computing module 104 determines the same selected zone in described multiple image.Described selected zone can be select to determine according to user, this selected zone can be a scope (such as, square, circular etc.), also can be a pixel selected, then described computing module 104 can determine the coordinate figure of the pixel of each pixel or this selection within the scope of this in image.
Step S22, described computing module 104 calculates the average gray value of the pixel in all images in this selected zone.
Step S24, described drafting module 106 draws the chart preset according to the average gray value of the pixel of this selected zone in all images.Described default chart comprises broken line graph and/or color range comparison chart.
Described color range comparison chart can be drawn according to following method.First, the described module 100 that arranges is arranged between multiple gray area, and arranges color corresponding between each gray area.Described drafting module 106 determines a default gray value parameter according to the selection of user, and such as, described gray value parameter can be maximum gradation value, average gray value, minimum gradation value etc.
Described drafting module 106 determines the corresponding gray-scale value of the selected zone in each image according to the gray value parameter that this is determined, such as, this gray value parameter determined is average gray value, then described drafting module 106 determines the average gray value of the pixel in each image in this selected zone.
Between the gray area residing for the gray-scale value determined that described drafting module 106 determines to correspond to each image and corresponding color.Such as, comprise between the described gray area that module 100 setting is set: [0,10], [11,20] ... [141,150] ... the average gray value of the pixel in this selected zone of first image is 150, therefore, can determine it is [141,150] between the gray area that the average gray value of the pixel in the selected zone of this first image is positioned at.Suppose that color corresponding between this gray area is red.
Described drafting module 106 draws the color of all pixels in each image in this selected zone with the described color (such as, red) determined, and on same interface, show the color of this selected zone in each image.
Step S26, described output module 108 exports parameter value corresponding to described default gray value parameter and described chart to carry out brightness ratio pair according to the gray value parameter preset, then, process ends.
Utilize above-mentioned regional area analysis process, more accurately can judge the stability of described light source 3.
Above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to above better embodiment to invention has been detailed description, those of ordinary skill in the art should be appreciated that and can modify to technical scheme of the present invention or be equal to the spirit and scope of replacing and should not depart from technical solution of the present invention.
Claims (10)
1. a light source stability method of testing, is applied in image measuring device, and described image measuring device comprises CCD camera lens and clamping jig, fixed test product on described clamping jig, it is characterized in that, light source to be measured is arranged on the front end of described CCD camera lens, and the method comprises:
Control described light source to open with high-high brightness, utilize the image of the multiple described testing product of described CCD lens shooting;
Read described multiple image and determine the rgb value of all pixels in each image, and calculating the gray-scale value of all pixels in each image;
Calculate the average gray value of the pixel of each image;
Calculate the overall average gray-scale value of described multiple image; And
Draw the chart preset according to the average gray value of the pixel of all images, and gray-scale value corresponding to the described default gray value parameter exported in each image according to the gray value parameter preset and the chart described in exporting are to carry out brightness ratio pair.
2. light source stability method of testing as claimed in claim 1, it is characterized in that, the method also comprises:
The brightness of the regional area of described multiple image is compared, comprising:
Determine the same selected zone in described multiple image;
Calculate the average gray value of the pixel of this selected zone in all images;
Draw the chart preset according to the average gray value of the pixel of this selected zone in all images, and parameter value corresponding to the described default gray value parameter exported in each image according to the gray value parameter preset and described chart are to carry out brightness ratio pair.
3. light source stability method of testing as claimed in claim 1 or 2, is characterized in that, the described gray value parameter preset comprises maximum gradation value, average gray value, overall average gray-scale value, minimum gradation value.
4. light source stability method of testing as claimed in claim 3, it is characterized in that, described default chart comprises broken line graph and/or color range comparison chart.
5. light source stability method of testing as claimed in claim 4, it is characterized in that, described color range comparison chart is drawn according to following method:
Arrange between multiple gray area, and color corresponding between each gray area be set,
Determine a default gray value parameter;
The corresponding gray-scale value of the pixel of the selected zone in each image is determined according to this gray value parameter determined;
Between the gray area residing for the gray-scale value determined determining to correspond to each image and corresponding color;
The color of all pixels in each image in this selected zone is drawn with the described color determined; And
Same interface shows the color of this selected zone in each image.
6. a light source stability test macro, is applied in image measuring device, and described image measuring device comprises CCD camera lens and clamping jig, fixed test product on described clamping jig, it is characterized in that, light source to be measured is arranged on the front end of described CCD camera lens, and this system comprises:
Taking module, for when described light source is opened with high-high brightness, utilizes the image of the multiple described testing product of described CCD lens shooting;
Computing module, for reading described multiple image and determining the rgb value of all pixels in each image, calculate the gray-scale value of all pixels in each image, calculate the average gray value of the pixel of each image, and calculate the overall average gray-scale value of described multiple image;
Drafting module, the average gray value for the pixel according to all images draws the chart preset; And
Output module, the gray-scale value that the described default gray value parameter for exporting in each image according to default gray value parameter is corresponding and the chart described in output are to carry out brightness ratio pair.
7. light source stability test macro as claimed in claim 6, is characterized in that:
Described computing module also compares for the brightness of the regional area to described multiple image, comprising: determine same selected zone in described multiple image and calculate the average gray value of pixel of this selected zone in all images;
Described drafting module also draws for the average gray value according to the pixel of this selected zone in all images the chart preset; And
Described output module is also for exporting parameter value corresponding to described default gray value parameter in each image and described chart to carry out brightness ratio pair according to the gray value parameter preset.
8. light source stability test macro as claimed in claims 6 or 7, is characterized in that, the described gray value parameter preset comprises maximum gradation value, average gray value, overall average gray-scale value, minimum gradation value.
9. light source stability test macro as claimed in claim 8, it is characterized in that, described default chart comprises broken line graph and/or color range comparison chart.
10. light source stability test macro as claimed in claim 9, it is characterized in that, described color range comparison chart is drawn according to following method:
Arrange between multiple gray area, and color corresponding between each gray area be set,
Determine a default gray value parameter;
The corresponding gray-scale value of the pixel of the selected zone in each image is determined according to this gray value parameter determined;
Between the gray area residing for the gray-scale value determined determining to correspond to each image and corresponding color;
The color of all pixels in each image in this selected zone is drawn with the described color determined; And
Same interface shows the color of this selected zone in each image.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310528352.XA CN104596740A (en) | 2013-10-30 | 2013-10-30 | Stability testing system and method of lighting source |
TW102140382A TW201518695A (en) | 2013-10-30 | 2013-11-06 | System and method for testing stability of light source |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310528352.XA CN104596740A (en) | 2013-10-30 | 2013-10-30 | Stability testing system and method of lighting source |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104596740A true CN104596740A (en) | 2015-05-06 |
Family
ID=53122666
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310528352.XA Pending CN104596740A (en) | 2013-10-30 | 2013-10-30 | Stability testing system and method of lighting source |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104596740A (en) |
TW (1) | TW201518695A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109767425A (en) * | 2018-12-13 | 2019-05-17 | 合刃科技(武汉)有限公司 | Machine vision light source uniformity assesses device and method |
-
2013
- 2013-10-30 CN CN201310528352.XA patent/CN104596740A/en active Pending
- 2013-11-06 TW TW102140382A patent/TW201518695A/en unknown
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109767425A (en) * | 2018-12-13 | 2019-05-17 | 合刃科技(武汉)有限公司 | Machine vision light source uniformity assesses device and method |
CN109767425B (en) * | 2018-12-13 | 2021-09-14 | 合刃科技(武汉)有限公司 | Machine vision light source uniformity evaluation device and method |
Also Published As
Publication number | Publication date |
---|---|
TW201518695A (en) | 2015-05-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190266966A1 (en) | Gray scale adjustment method and device for display panel | |
CN107886920B (en) | Method and system for obtaining correct Mura compensation data | |
US9524558B2 (en) | Method, system and software module for foreground extraction | |
CN104809974B (en) | The gamma and correct automatically white balance method and device of a kind of display device | |
US20110249116A1 (en) | Color measuring apparatus and color measuring method | |
CN104581135A (en) | Light source brightness detection method and system | |
CN102968943B (en) | Generating method of gama value test card of display device and measuring method of gama value | |
JP6161276B2 (en) | Measuring apparatus, measuring method, and program | |
KR20180018736A (en) | Method for acquiring photographing device and depth information | |
CN110428762B (en) | OLED panel aging test luminescence characteristic detection method based on pixel brightness | |
CN104766310B (en) | light source detection system and detection method | |
CN109036266A (en) | Optical compensating member and its operation method applied to display panel | |
CN103559484A (en) | Fast recognition method for measuring instrument scale lines | |
CN105763871A (en) | Real time detection system and detection method for camera definition | |
CN103927749A (en) | Image processing method and device and automatic optical detector | |
KR102286470B1 (en) | LED Digital Signage Defect Detection system through Similarity Analysis of Original Image Information and Displayed Image Information | |
CN112730251A (en) | Device and method for detecting color defects of screen | |
CN113362270B (en) | Method and device for monitoring abnormal display of display screen picture | |
CN115981589B (en) | Software system for generating stripe light | |
CN104596740A (en) | Stability testing system and method of lighting source | |
CN109493830B (en) | Adjusting method and adjusting system of display panel and display device | |
KR20080056624A (en) | Method and device of rapidly generating a gray-level versus brightness curve of a display | |
CN106713907B (en) | A kind of the HDR image display performance evaluating method and device of display | |
US20210173193A1 (en) | Observation device and observation method | |
KR101653649B1 (en) | 3D shape measuring method using pattern-light with uniformity compensation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150506 |