CN105677284B - A kind of method and device obtaining LED lamp bead light intensity and current relationship - Google Patents
A kind of method and device obtaining LED lamp bead light intensity and current relationship Download PDFInfo
- Publication number
- CN105677284B CN105677284B CN201511029527.8A CN201511029527A CN105677284B CN 105677284 B CN105677284 B CN 105677284B CN 201511029527 A CN201511029527 A CN 201511029527A CN 105677284 B CN105677284 B CN 105677284B
- Authority
- CN
- China
- Prior art keywords
- light intensity
- row
- electric current
- relation
- axis
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The embodiment of the invention discloses the method and devices of a kind of acquisition LED lamp bead light intensity and current relationship to solve relationship between current LED lamp bead light intensity and electric current, relationship is linear relation between LED lamp bead light intensity and electric current only at high current, relationship is then curve at low current, and it is generally low current by most of electric current of LED light, so when assuming that relationship is linear relation between LED lamp bead light intensity and electric current, can then there be certain error, caused by configuration red-green-blue current-limiting resistance value accuracy it is low, and the technical problem that white balance effect is low.
Description
Technical field
The present invention relates to display technology field more particularly to a kind of method obtaining LED lamp bead light intensity and current relationship and
Device.
Background technology
LED display (LED display):A kind of flat-panel monitor is made of LED module small one by one.LED, hair
Optical diode (light emitting diode abbreviations).It is a kind of display side by controlling semiconductor light-emitting-diode
Formula, gallium (Ga) and arsenic (As), phosphorus (P), nitrogen (N), indium (In) compound made of diode, when electronics and hole-recombination
Visible light can be given off, thus can be used for that light emitting diode is made.It is used as indicator light in circuit and instrument, or organizes written
Word or number display.Gallium arsenide phosphide diode glows, gallium phosphide diode green light, silicon carbide diode Yellow light-emitting low temperature, indium gallium
Nitrogen diode blue light-emitting.LED display is generally used to the various information such as display word, image, video, video signal.White balance
It is an index for describing red, green, blue three primary colours mixing white accuracy after generating in display.White balance is telephotography neck
The very important concept in one, domain can solve a series of problems of color rendition and tone processing by it.
LED display is required for reaching white balance effect, white balance effect before dispatching from the factory or delivering user at present
It becomes as the important indicator of judgement screen body quality.And frequent way is configuration red-green-blue current-limiting resistance value.It is calculating
When current-limiting resistance configures, it will be clear that obtaining relationship between LED lamp bead light intensity and electric current.Since this relationship is generally only present in
In LED lamp bead information document, occur in the form of images, thus frequent way just assume that LED lamp bead light intensity and electric current it
Between relationship be linear relation, but only at high current between LED lamp bead light intensity and electric current relationship be linear relation, in small electricity
Relationship is then curve at stream, and is generally low current by most of electric current of LED light, it is assumed that LED lamp bead light intensity and electricity
Relationship is linear relation between stream, then can have certain error, so as to cause configuration red-green-blue current-limiting resistance value
Accuracy is low, and the technical problem that white balance effect is low.
Invention content
A kind of acquisition LED lamp bead light intensity provided in an embodiment of the present invention and the method and device of current relationship solve at present
LED lamp bead light intensity and electric current between relationship, only at high current between LED lamp bead light intensity and electric current relationship be straight line close
System, relationship is then curve at low current, and is generally low current by most of electric current of LED light, so when assuming LED light
Pearly-lustre by force between electric current relationship be linear relation, then can have certain error, caused by configuration red-green-blue limit
Galvanic electricity resistance value accuracy is low, and the technical problem that white balance effect is low.
A kind of method obtaining LED lamp bead light intensity and current relationship provided in an embodiment of the present invention, including:
What it is to interception includes graph of relation progress coordinate between reference axis and the corresponding former light intensity of LED lamp bead and electric current
Content removal processing other than frame;
To carrying out the figure of the content removal processing other than coordinate frame according to graph of relation between the former light intensity and electric current
Reference axis carry out the setting of new reference axis, obtain graph of relation between target light intensity and electric current;
Graph of relation carries out the described point operation of the plurality of points on curve between the target light intensity and electric current, and carries
The corresponding coordinate value of the described point is taken, is straight line between the described point described two-by-two in the curve;
Relationship between the light intensity and electric current of the LED lamp bead is calculated according to the corresponding coordinate value of all described points
Relational expression and inverse relation expression formula.
Optionally, to interception include graph of relation between reference axis and the corresponding former light intensity of LED lamp bead and electric current
The processing of the content removal other than coordinate frame is carried out to specifically include:
To the light intensity in the information document of the LED lamp bead and between electric current, relationship specification figure carries out intercept operation, obtains
Graph of relation between the original light intensity and electric current;
Graph of relation carries out the content removal processing other than coordinate frame between the former light intensity and electric current.
Optionally, according to the corresponding coordinate value of all described points calculate the LED lamp bead light intensity and electric current it
Between relationship relational expression and inverse relation expression formula specifically include:
Relationship between the light intensity and electric current of the LED lamp bead is calculated according to the corresponding coordinate value of all described points
Relational expression and inverse relation expression formula, the relational expression are piecewise linear function, each described piecewise linear function
For the linear equation required by the coordinate of the adjacent described point two-by-two, then the inverse relation expression formula is the anti-of the relational expression
Function.
Optionally, graph of relation carries out the content removal processing tool other than coordinate frame between the former light intensity and electric current
Body includes:
The gray value of image of calculating is compared with preset gray threshold, if described image gray value is higher than described preset
Gray value is then set as 1 by gray threshold, if described image gray value is less than the preset gray threshold, by the gray scale
Value is set as 0;
The binary image after the binaryzation for only including 0 or 1 is determined according to comparison result;
It carries out being scanned by column scan and by row for individual element respectively to the binary image, determines the target light intensity
Between electric current between the y-axis of graph of relation and the target light intensity and electric current graph of relation x-axis;
Determine the range of corresponding coordinate frame according to the y-axis and the x-axis, and to the content other than the coordinate frame into
Row removal is handled.
Optionally, being scanned by column scan and by capable for individual element is carried out respectively to the binary image, described in determination
The x-axis of graph of relation has between the y-axis of graph of relation and the target light intensity and electric current between target light intensity and electric current
Body includes:
The corresponding row parameter of each row, the row are got by column scan to binary image progress individual element
Parameter is when including in the sequence that forefront is continuously 1 in the maximum value for 1 number for the including sequence that subtract previous column continuously be 1
1 number maximum value;
Judge whether the row parameter is positive number and is more than first threshold, if so, recording the corresponding row of the row parameter
For the first row undetermined, until the row parameter is negative and is more than the first threshold, then the corresponding row of the row parameter are recorded
For the second row undetermined;
It determines that the described first undetermined arrange between the previous column of first row undetermined is y-axis, and records the y-axis institute
It is origin x coordinate column in the centre of row;
The average value for counting 1 number for including in the continuous sequence for 1 of the y-axis column is y-axis height;
And being scanned by row for individual element is carried out to binary image and gets the corresponding row parameter value of every a line, institute
State row parameter be current line be continuously 1 sequence row in include 1 number the maximum value sequence row that subtract previous row continuously be 1 in
Including 1 number maximum value;
Judge whether the row parameter is positive number and is more than second threshold, if so, recording the corresponding row of the row parameter
For the first row undetermined, until the row parameter is negative and is more than the second threshold, then the corresponding row of the row parameter is recorded
For the second row undetermined;
It determines between the described first row undetermined and the previous row of first row undetermined to be x-axis, and records the x-axis institute
It is expert at by origin y-coordinate the centre being expert at;
It is x-axis length to count the be expert at average value of 1 number in the continuous sequence row for 1 included of the x-axis.
A kind of device obtaining LED lamp bead light intensity and current relationship provided in an embodiment of the present invention, including:
Removal unit, for interception including relationship between reference axis and the corresponding former light intensity of LED lamp bead and electric current
Curve graph carries out the content removal processing other than coordinate frame;
Acquiring unit, for carry out the figure of the content removal processing other than coordinate frame according to the former light intensity and electric current it
Between the reference axis of graph of relation carry out the setting of new reference axis, obtain graph of relation between target light intensity and electric current;
Described point unit, for the plurality of points between the target light intensity and electric current on graph of relation progress curve
Described point operates, and extracts the corresponding coordinate value of the described point, is straight line between the described point described two-by-two in the curve;
Relational expression determination unit, for calculating the LED lamp bead according to the corresponding coordinate value of all described points
The relational expression of relationship and inverse relation expression formula between light intensity and electric current.
Optionally, removal unit specifically includes:
Intercept subelement, for relationship specification figure to the light intensity in the information document of the LED lamp bead and between electric current into
Row intercept operation obtains graph of relation between the former light intensity and electric current;
Subelement is removed, is gone for the content that graph of relation carries out other than coordinate frame between the former light intensity and electric current
Except processing.
Optionally, relational expression determination unit is specifically used for calculating institute according to the corresponding coordinate value of all described points
The relational expression of relationship and inverse relation expression formula between the light intensity of LED lamp bead and electric current are stated, the relational expression is segmentation
Linear function, each described piecewise linear function is the linear equation required by the coordinate of the adjacent described point two-by-two, then described
Inverse relation expression formula is the inverse function of the relational expression.
Optionally, removal subelement specifically includes:
Comparing module, for the gray value of image of calculating to be compared with preset gray threshold, if described image gray scale
Value is higher than the preset gray threshold, then gray value is set as 1, if described image gray value is less than the preset gray scale threshold
Value, then be set as 0 by the gray value;
Binary image determining module, for being determined only including the binary picture after 0 or 1 binaryzation according to comparison result
Picture;
Scan determining module, for the binary image is carried out respectively individual element by column scan and by row sweep
It retouches, determines that relationship is bent between the y-axis of graph of relation and the target light intensity and electric current between the target light intensity and electric current
The x-axis of line chart;
Removal module, the range for determining corresponding coordinate frame according to the y-axis and the x-axis, and to the coordinate
Content other than frame is removed processing.
Optionally, scanning determining module specifically includes:
First scanning submodule, for getting each row by column scan to binary image progress individual element
Corresponding row parameter, the row parameter are when the maximum value for 1 number for including subtracts previous column in the sequence that forefront is continuously 1
The maximum value for 1 number for including in the continuous sequence for 1;
First judging submodule, for judging whether the row parameter is positive number and is more than first threshold, if so, record
The row parameter is corresponding to be classified as the first row undetermined, until the row parameter be negative and be more than the first threshold, then record
The row parameter is corresponding to be classified as the second row undetermined;
First determination sub-module, for being y-axis between the described first row and the previous column of first row undetermined undetermined, and
The centre for recording the y-axis column is origin x coordinate column;
First statistic submodule, for counting the flat of 1 number for including in the continuous sequence for 1 of the y-axis column
Mean value is y-axis height;
And second scanning submodule, for the binary image carry out individual element by row scanning get
Per a line corresponding row parameter value, the row parameter be current line be continuously 1 sequence row in include the maximum value of 1 number subtract
It is the maximum value for 1 number for including in 1 sequence row to remove previous row continuously;
Second judgment submodule, for judging whether the row parameter is positive number and is more than second threshold, if so, record
Corresponding the first row undetermined of behavior of the row parameter is then recorded until the row parameter is negative and is more than the second threshold
Corresponding the second row undetermined of behavior of the row parameter;
Second determination sub-module is x for determining between the described first row undetermined and the previous row of first row undetermined
Axis, and record the centre that the x-axis is expert at and be expert at by origin y-coordinate;
Second statistic submodule is expert at the flat of 1 number in the continuous sequence row for 1 included for counting the x-axis
Mean value is x-axis length.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
A kind of method and device obtaining LED lamp bead light intensity and current relationship provided in an embodiment of the present invention, wherein obtain
LED lamp bead light intensity and the method for current relationship include:What it is to interception includes reference axis and the corresponding former light intensity of LED lamp bead and electricity
Graph of relation carries out the content removal processing other than coordinate frame between stream;To carrying out the content removal processing other than coordinate frame
Figure carries out the setting of new reference axis according to the reference axis of graph of relation between former light intensity and electric current, obtains target light intensity and electric current
Between graph of relation;Graph of relation carries out the described point operation of the plurality of points on curve between target light intensity and electric current,
And the corresponding coordinate value of described point is extracted, it is straight line between the described point two-by-two in curve;According to the corresponding coordinate value of all described points
The relational expression and inverse relation expression formula of relationship between the light intensity and electric current of calculating LED lamp bead.In the present embodiment, by cutting
What is taken includes the content that graph of relation carries out other than coordinate frame between reference axis and the corresponding former light intensity of LED lamp bead and electric current
Removal is handled;To carrying out the figure of the content removal processing other than coordinate frame according to the seat of graph of relation between former light intensity and electric current
Parameter carries out the setting of new reference axis, obtains graph of relation between target light intensity and electric current;Between target light intensity and electric current
Graph of relation carries out the described point operation of the plurality of points on curve, and extracts the corresponding coordinate value of described point, is in the two of curve
It is straight line between two described points;According to the pass of relationship between the light intensity and electric current of the corresponding coordinate value calculating LED lamp bead of all described points
It is expression formula and inverse relation expression formula, solves relationship between current LED lamp bead light intensity and electric current, only at high current
Relationship is linear relation between LED lamp bead light intensity and electric current, and relationship is then curve at low current, and generally passes through LED light
Most of electric current is low current, so when assuming that relationship is linear relation between LED lamp bead light intensity and electric current, then can be existed certain
Error, caused by configuration red-green-blue current-limiting resistance value accuracy it is low, and the technical problem that white balance effect is low.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without having to pay creative labor, may be used also for those of ordinary skill in the art
To obtain other attached drawings according to these attached drawings.
Fig. 1 is a reality of a kind of acquisition LED lamp bead light intensity provided in the embodiment of the present invention and the method for current relationship
Apply the flow diagram of example;
Fig. 2 is another of a kind of acquisition LED lamp bead light intensity provided in the embodiment of the present invention and the method for current relationship
The flow diagram of embodiment;
Fig. 3 is another of a kind of acquisition LED lamp bead light intensity provided in the embodiment of the present invention and the method for current relationship
The flow diagram of embodiment;
Fig. 4 is a reality of a kind of acquisition LED lamp bead light intensity provided in the embodiment of the present invention and the device of current relationship
Apply the structural schematic diagram of example;
Fig. 5 is another of a kind of acquisition LED lamp bead light intensity provided in the embodiment of the present invention and the device of current relationship
The structural schematic diagram of embodiment;
Fig. 6 (a) to (c) is the application examples schematic diagram for carrying out the content removal processing other than coordinate frame;
Fig. 7 (a) to (c) is the application examples schematic diagram of Fig. 3.
Specific implementation mode
A kind of acquisition LED lamp bead light intensity provided in an embodiment of the present invention and the method and device of current relationship solve at present
LED lamp bead light intensity and electric current between relationship, only at high current between LED lamp bead light intensity and electric current relationship be straight line close
System, relationship is then curve at low current, and is generally low current by most of electric current of LED light, so when assuming LED light
Pearly-lustre by force between electric current relationship be linear relation, then can have certain error, caused by configuration red-green-blue limit
Galvanic electricity resistance value accuracy is low, and the technical problem that white balance effect is low.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention
Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below
Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field
All other embodiment that those of ordinary skill is obtained without making creative work, belongs to protection of the present invention
Range.
Referring to Fig. 1, the one of a kind of method of the acquisition LED lamp bead light intensity and current relationship that are provided in the embodiment of the present invention
A embodiment includes:
101, to interception include between reference axis and the corresponding former light intensity of LED lamp bead and electric current graph of relation carry out
Content removal processing other than coordinate frame;
In the present embodiment, relationship between LED lamp bead light intensity and electric current is obtained when needs are accurate so that accurately calculate red green
When blue each primary colours current-limiting resistance value, it is necessary first to which what it is to interception includes reference axis and the corresponding former light intensity of LED lamp bead and electric current
Between graph of relation carry out coordinate frame other than content removal processing.
102, to carrying out the figure of the content removal processing other than coordinate frame according to graph of relation between former light intensity and electric current
Reference axis carry out the setting of new reference axis, obtain graph of relation between target light intensity and electric current;
When to interception include between reference axis and the corresponding former light intensity of LED lamp bead and electric current graph of relation sit
Mark frame other than content removal processing after, need to carry out coordinate frame other than content removal processing figure according to former light intensity with
The reference axis of graph of relation carries out the setting of new reference axis between electric current, obtains relation curve between target light intensity and electric current
Figure.
103, graph of relation carries out the described point operation of the plurality of points on curve between target light intensity and electric current, and carries
The corresponding coordinate value of described point is taken, is straight line between the described point two-by-two in curve;
When the figure to carrying out the content removal processing other than coordinate frame is according to graph of relation between former light intensity and electric current
Reference axis carries out the setting of new reference axis and is needed to target light intensity between acquisition target light intensity and electric current after graph of relation
Graph of relation carries out the described point operation of the plurality of points on curve between electric current, and extracts the corresponding coordinate value of described point, locates
It is straight line between the described point two-by-two of curve.
104, according to the relationship expression of relationship between the light intensity and electric current of the corresponding coordinate value calculating LED lamp bead of all described points
Formula and inverse relation expression formula.
When the described point operation of the plurality of points between target light intensity and electric current on graph of relation progress curve, and extract
The corresponding coordinate value of described point is between the described point two-by-two of curve after straight line, to need according to the corresponding coordinate of all described points
The relational expression and inverse relation expression formula of relationship between the light intensity and electric current of value calculating LED lamp bead.
In the present embodiment, by interception including to be closed between reference axis and the corresponding former light intensity of LED lamp bead and electric current
It is that the content removal that curve graph carries out other than coordinate frame is handled;To carrying out the figure of the content removal processing other than coordinate frame according to original
The reference axis of graph of relation carries out the setting of new reference axis between light intensity and electric current, obtains relationship between target light intensity and electric current
Curve graph;Graph of relation carries out the described point operation of the plurality of points on curve between target light intensity and electric current, and extracts and retouch
The corresponding coordinate value of point is between the described point two-by-two of curve as straight line;LED light is calculated according to the corresponding coordinate value of all described points
The relational expression and inverse relation expression formula of relationship between the light intensity and electric current of pearl solve current LED lamp bead light intensity and electricity
Relationship between stream, relationship is linear relation between LED lamp bead light intensity and electric current only at high current, and relationship is then at low current
For curve, and it is generally low current by most of electric current of LED light, so when assuming close between LED lamp bead light intensity and electric current
System be linear relation, then can have certain error, caused by configuration red-green-blue current-limiting resistance value accuracy it is low, and
The low technical problem of white balance effect.
The above is that the process of the method to obtaining LED lamp bead light intensity and current relationship is described in detail, below will be right
Additional process is described in detail, referring to Fig. 2, a kind of acquisition LED lamp bead light intensity provided in the embodiment of the present invention and electricity
Another embodiment of the method for flow relation includes:
201, red LED lamp pearly-lustre is set by force with current relationship as yR=fR(xR), inverse relation xR=fR -1(yR).Green light LED
Lamp bead light intensity is y with current relationshipG=fG(xG), inverse relation xG=fG -1(yG), blue LED lamp pearly-lustre is by force with current relationship
yB=fB(xB), inverse relation xB=fB -1(yB);
In the present embodiment, relationship between LED lamp bead light intensity and electric current is obtained when needs are accurate so that accurately calculate red green
When blue each primary colours current-limiting resistance value, it is necessary first to set red LED lamp pearly-lustre by force with current relationship as yR=fR(xR), inverse relation is
xR=fR -1(yR).Green light LED lamp bead light intensity is y with current relationshipG=fG(xG), inverse relation xG=fG -1(yG).Blue LED lamp
Pearly-lustre is by force y with current relationshipB=fB(xB), inverse relation xB=fB -1(yB)。
202, to the light intensity in the information document of LED lamp bead and between electric current, relationship specification figure carries out intercept operation, obtains
Graph of relation between former light intensity and electric current;
When setting red LED lamp pearly-lustre by force with current relationship as yR=fR(xR), inverse relation xR=fR -1(yR).Green light LED lamp
Pearly-lustre is by force y with current relationshipG=fG(xG), inverse relation xG=fG -1(yG).Blue LED lamp pearly-lustre is by force y with current relationshipB
=fB(xB), inverse relation xB=fB -1(yB) after, need the light intensity in the information document to LED lamp bead and relationship between electric current
Specification figure carries out intercept operation, obtains graph of relation between former light intensity and electric current.
203, the gray value of image of calculating is compared with preset gray threshold, if gray value of image is higher than preset gray scale
Gray value is then set as 1 by threshold value, if gray value of image is less than preset gray threshold, gray value is set as 0;
When the light intensity in the information document to LED lamp bead and relationship specification figure carries out intercept operation between electric current, obtains former
Between light intensity and electric current after graph of relation, the graph of relation between former light intensity and electric current is needed to carry out other than coordinate frame
Content removal is handled, it is necessary first to the gray value of image of calculating is compared with preset gray threshold, if gray value of image is high
In preset gray threshold, then gray value is set as 1, if gray value of image is less than preset gray threshold, gray value is set
It is 0.
204, the binary image after the binaryzation for only including 0 or 1 is determined according to comparison result;
When the gray value of image of calculating to be compared with preset gray threshold, if gray value of image is higher than preset gray scale threshold
Value, then be set as 1 by gray value, if gray value of image is less than preset gray threshold, after gray value is set as 0, needs
The binary image after the binaryzation for only including 0 or 1 is determined according to comparison result.
205, it carries out being scanned by column scan and by row for individual element respectively to binary image, determines target light intensity and electricity
Between stream between the y-axis of graph of relation and target light intensity and electric current graph of relation x-axis;
After binary image after it only includes 0 or 1 binaryzation to be determined according to comparison result, need to binary picture
Picture carries out being scanned by column scan and by row for individual element respectively, determines the y-axis of graph of relation between target light intensity and electric current,
And between target light intensity and electric current graph of relation x-axis.
206, the range of corresponding coordinate frame is determined according to y-axis and x-axis, and place is removed to the content other than coordinate frame
Reason;
When binary image is carried out respectively individual element by column scan and by row scan, determine target light intensity and electric current
Between graph of relation y-axis and target light intensity and electric current between graph of relation x-axis after, need according to y-axis and x
Axis determines the range of corresponding coordinate frame, and is removed processing to the content other than coordinate frame.
207, to carrying out the figure of the content removal processing other than coordinate frame according to graph of relation between former light intensity and electric current
Reference axis carry out the setting of new reference axis, obtain graph of relation between target light intensity and electric current;
When determining the range of corresponding coordinate frame according to y-axis and x-axis, and processing is removed to the content other than coordinate frame
Later, it needs to the figure for carrying out the content removal processing other than coordinate frame according to the seat of graph of relation between former light intensity and electric current
Parameter carries out the setting of new reference axis, obtains graph of relation between target light intensity and electric current.
208, graph of relation carries out the described point operation of the plurality of points on curve between target light intensity and electric current, and carries
The corresponding coordinate value of described point is taken, is straight line between the described point two-by-two in curve;
When the figure to carrying out the content removal processing other than coordinate frame is according to graph of relation between former light intensity and electric current
Reference axis carries out the setting of new reference axis and is needed to target light intensity between acquisition target light intensity and electric current after graph of relation
Graph of relation carries out the described point operation of the plurality of points on curve between electric current, and extracts the corresponding coordinate value of described point, locates
It is straight line between the described point two-by-two of curve.
209, according to the relationship expression of relationship between the light intensity and electric current of the corresponding coordinate value calculating LED lamp bead of all described points
Formula and inverse relation expression formula.
When the described point operation of the plurality of points between target light intensity and electric current on graph of relation progress curve, and extract
The corresponding coordinate value of described point is between the described point two-by-two of curve after straight line, to need according to the corresponding coordinate of all described points
The relational expression and inverse relation expression formula of relationship, relational expression are segmentation between the light intensity and electric current of value calculating LED lamp bead
Linear function, each piecewise linear function are the linear equation required by the coordinate of adjacent described point two-by-two, then inverse relation expression formula
For the inverse function of relational expression.
In the present embodiment, by interception including to be closed between reference axis and the corresponding former light intensity of LED lamp bead and electric current
It is that the content removal that curve graph carries out other than coordinate frame is handled;To carrying out the figure of the content removal processing other than coordinate frame according to original
The reference axis of graph of relation carries out the setting of new reference axis between light intensity and electric current, obtains relationship between target light intensity and electric current
Curve graph;Graph of relation carries out the described point operation of the plurality of points on curve between target light intensity and electric current, and extracts and retouch
The corresponding coordinate value of point is between the described point two-by-two of curve as straight line;LED light is calculated according to the corresponding coordinate value of all described points
Relational expression and inverse relation expression formula between the light intensity and electric current of pearl, solve between current LED lamp bead light intensity and electric current
Relationship, relationship is linear relation between LED lamp bead light intensity and electric current only at high current, and relationship is then song at low current
Line, and be generally low current by most of electric current of LED light, so when assuming that relationship is between LED lamp bead light intensity and electric current
Linear relation can then have certain error, caused by configuration red-green-blue current-limiting resistance value accuracy it is low and white flat
The low technical problem of the effect that weighs.
The above is that additional process is described in detail, below will be to carrying out individual element respectively to binary image
By column scan and by row scanning, determine between target light intensity and electric current the y-axis of graph of relation and target light intensity and electric current it
Between the process of x-axis of graph of relation be described in detail, referring to Fig. 3, a kind of acquisition provided in the embodiment of the present invention
Another embodiment of LED lamp bead light intensity and the method for current relationship includes:
301, red LED lamp pearly-lustre is set by force with current relationship as yR=fR(xR), inverse relation xR=fR -1(yR).Green light LED
Lamp bead light intensity is y with current relationshipG=fG(xG), inverse relation xG=fG -1(yG).Blue LED lamp pearly-lustre is by force with current relationship
yB=fB(xB), inverse relation xB=fB -1(yB);
In the present embodiment, relationship between LED lamp bead light intensity and electric current is obtained when needs are accurate so that accurately calculate red green
When blue each primary colours current-limiting resistance value, it is necessary first to set red LED lamp pearly-lustre by force with current relationship as yR=fR(xR), inverse relation is
xR=fR -1(yR).Green light LED lamp bead light intensity is y with current relationshipG=fG(xG), inverse relation xG=fG -1(yG).Blue LED lamp
Pearly-lustre is by force y with current relationshipB=fB(xB), inverse relation xB=fB -1(yB)。
302, to the light intensity in the information document of LED lamp bead and between electric current, relationship specification figure carries out intercept operation, obtains
Graph of relation between former light intensity and electric current;
When setting red LED lamp pearly-lustre by force with current relationship as yR=fR(xR), inverse relation xR=fR -1(yR).Green light LED lamp
Pearly-lustre is by force y with current relationshipG=fG(xG), inverse relation xG=fG -1(yG).Blue LED lamp pearly-lustre is by force y with current relationshipB
=fB(xB), inverse relation xB=fB -1(yB) after, need the light intensity in the information document to LED lamp bead and relationship between electric current
Specification figure carries out intercept operation, obtains graph of relation between former light intensity and electric current.
303, the gray value of image of calculating is compared with preset gray threshold, if gray value of image is higher than preset gray scale
Gray value is then set as 1 by threshold value, if gray value of image is less than preset gray threshold, gray value is set as 0;
When the light intensity in the information document to LED lamp bead and relationship specification figure carries out intercept operation between electric current, obtains former
Between light intensity and electric current after graph of relation, the graph of relation between former light intensity and electric current is needed to carry out other than coordinate frame
Content removal is handled, it is necessary first to the gray value of image of calculating is compared with preset gray threshold, if gray value of image is high
In preset gray threshold, then gray value is set as 1, if gray value of image is less than preset gray threshold, gray value is set
It is 0.
304, the binary image after the binaryzation for only including 0 or 1 is determined according to comparison result;
When the gray value of image of calculating to be compared with preset gray threshold, if gray value of image is higher than preset gray scale threshold
Value, then be set as 1 by gray value, if gray value of image is less than preset gray threshold, after gray value is set as 0, needs
The binary image after the binaryzation for only including 0 or 1 is determined according to comparison result.
305, the corresponding row parameter of each row, row parameter are got by column scan to binary image progress individual element
For when include in the maximum value for 1 number for including in the sequence that forefront is continuously 1 sequence that subtract previous column continuously be 11
Number maximum value;
After binary image after it only includes 0 or 1 binaryzation to be determined according to comparison result, need to binary picture
Picture progress individual element gets the corresponding row parameter of each row by column scan, and row parameter is when forefront is continuously 1 sequence
In include 1 number maximum value subtract previous column continuously for 1 sequence in include 1 number maximum value.
306, judge whether row parameter is positive number and is more than first threshold, if so, thening follow the steps 307;
When getting the corresponding row parameter of each row by column scan to binary image progress individual element, row parameter is
When include in the maximum value sequence that subtract previous column continuously be 1 that forefront is continuously 1 number for including in 1 sequence 1
After the maximum value of number, need to judge whether row parameter is positive number and is more than first threshold, if so, thening follow the steps 307.
307, row parameter is corresponding is classified as the first row undetermined for record, until row parameter is negative and is more than first threshold, then
Row parameter is corresponding is classified as the second row undetermined for record;
When judging that row parameter is for positive number and is more than first threshold, then record that row parameter is corresponding to be classified as the first row undetermined,
Until row parameter is negative and is more than first threshold, then record that row parameter is corresponding to be classified as the second row undetermined.
308, it determines that the first undetermined arrange between the previous column of the first row undetermined is y-axis, and records in y-axis column
Between be origin x coordinate column;
When row parameter is corresponding is classified as the first row undetermined for record, until row parameter is negative and is more than first threshold, then remember
Row parameter is corresponding is classified as after the second row undetermined for record, it is thus necessary to determine that is between the first row and the previous column of the first row undetermined undetermined
Y-axis, and the centre for recording y-axis column is origin x coordinate column.
309, the average value for 1 number for including in the continuous sequence for 1 of statistics y-axis column is y-axis height;
It is y-axis between determining the first row and the previous column of the first row undetermined undetermined, and records the centre of y-axis column
After origin x coordinate column, the average value for counting 1 number of y-axis column continuously to include in 1 sequence is needed to be
Y-axis height.
310, being scanned by row for individual element is carried out to binary image and gets the corresponding row parameter value of every a line, row ginseng
Number be current line be continuously 1 sequence row in include 1 number the maximum value sequence row that subtract previous row continuously be 1 in include
The maximum value of 1 number;
After binary image after it only includes 0 or 1 binaryzation to be determined according to comparison result, need to binary picture
The corresponding row parameter value of every a line is got as carrying out being scanned by row for individual element, row parameter is the sequence that current line is continuously 1
It is the maximum value for 1 number for including in 1 sequence row that the maximum value for 1 number for including in row, which subtracts previous row continuously,.
311, judge whether row parameter is positive number and is more than second threshold, if so, thening follow the steps 312;
The corresponding row parameter value of every a line, row parameter are got when carrying out being scanned by row for individual element to binary image
Include in the sequence row that it is 1 that the maximum value for 1 number for including in the sequence row for for current line being continuously 1, which subtracts previous row continuously, 1
Number maximum value after, need to judge whether row parameter is positive number and is more than second threshold, if so, thening follow the steps 312.
312, corresponding the first row undetermined of behavior of record row parameter, until row parameter is negative and is more than first threshold, then
Record corresponding the second row undetermined of behavior of row parameter;
When judge row parameter be for positive number and be more than second threshold, then record corresponding the first row undetermined of behavior of row parameter,
Until row parameter be negative and be more than second threshold, then record corresponding the second row undetermined of behavior of row parameter.
313, determine between the first row undetermined and the previous row of the first row undetermined to be x-axis, and record during x-axis is expert at
Between be expert at by origin x coordinate;
When corresponding the first row undetermined of behavior of record row parameter, until row parameter is negative and is more than second threshold, then remember
After corresponding the second row undetermined of behavior of record row parameter, it is thus necessary to determine that be between the first row undetermined and the previous row of the first row undetermined
X-axis, and record the centre that x-axis is expert at and be expert at by origin x coordinate.
314, statistics x-axis be expert at be continuously 1 sequence row in include the average value of 1 number be x-axis height;
It is x-axis when determining between the first row undetermined and the previous row of the first row undetermined, and records the centre that x-axis is expert at
After being expert at by origin y-coordinate, need to count x-axis be expert at be continuously 1 sequence row in include the average value of 1 number be
X-axis length.
315, the range of corresponding coordinate frame is determined according to y-axis and x-axis, and place is removed to the content other than coordinate frame
Reason;
After step 309 and step 314, the range that corresponding coordinate frame is determined according to y-axis and x-axis is needed, and to sitting
Content other than mark frame is removed processing.
316, to carrying out the figure of the content removal processing other than coordinate frame according to graph of relation between former light intensity and electric current
Reference axis carry out the setting of new reference axis, obtain graph of relation between target light intensity and electric current;
When determining the range of corresponding coordinate frame according to y-axis and x-axis, and processing is removed to the content other than coordinate frame
Later, it needs to the figure for carrying out the content removal processing other than coordinate frame according to the seat of graph of relation between former light intensity and electric current
Parameter carries out the setting of new reference axis, obtains graph of relation between target light intensity and electric current.
317, graph of relation carries out the described point operation of the plurality of points on curve between target light intensity and electric current, and carries
The corresponding coordinate value of described point is taken, is straight line between the described point two-by-two in curve;
When the figure to carrying out the content removal processing other than coordinate frame is according to graph of relation between former light intensity and electric current
Reference axis carries out the setting of new reference axis and is needed to target light intensity between acquisition target light intensity and electric current after graph of relation
Graph of relation carries out the described point operation of the plurality of points on curve between electric current, and extracts the corresponding coordinate value of described point, locates
It is straight line between the described point two-by-two of curve.
318, according to the relationship expression of relationship between the light intensity and electric current of the corresponding coordinate value calculating LED lamp bead of all described points
Formula and inverse relation expression formula.
When the described point operation of the plurality of points between target light intensity and electric current on graph of relation progress curve, and extract
The corresponding coordinate value of described point is between the described point two-by-two of curve after straight line, to need according to the corresponding coordinate of all described points
The relational expression and inverse relation expression formula of relationship, relational expression are segmentation between the light intensity and electric current of value calculating LED lamp bead
Linear function, each piecewise linear function are the linear equation required by the coordinate of adjacent described point two-by-two, then inverse relation expression formula
For the inverse function of relational expression.
Fig. 6 (a) to (c) is please referred to, application examples includes:
1, red LED lamp pearly-lustre is set by force with current relationship as yR=fR(xR), inverse relation xR=fR -1(yR).Green light LED lamp
Pearly-lustre is by force y with current relationshipG=fG(xG), inverse relation xG=fG -1(yG).Blue LED lamp pearly-lustre is by force y with current relationshipB
=fB(xB), inverse relation xB=fB -1(yB)。
2, it is as follows to obtain relational expression between LED lamp bead light intensity and electric current:
1) sectional drawing.Sectional drawing carried out to LED lamp bead light intensity and the current relationship figure in LED lamp bead information document, sectional drawing it is interior
Hold and needs completely comprising relation curve between reference axis and red, green, blue LED lamp bead light intensity and electric current.
2) it reads sectional drawing and shows.Sectional drawing is read, removes the content of coordinate outer frame so that target, which is shown, is only able to display coordinate
Content in frame.Specially:(1) gray value of image is obtained using formula Gray=0.11 × R+0.59 × G+0.3 × B.(2) it sets
Set gray threshold so that the gray value higher than threshold value is set as 1, and the gray value less than threshold value is to be set as 0, obtains binary picture
Picture.(3) from left to right individual element presses column scan, obtains maximum value, the minimum value of the row and column for occurring 1 so that acquisition includes
The minimum zone of binary image all 1, intercepts the range.(4) from left to right individual element presses column scan in new range, often
It is 1 number maximum value, 1 number that subtract previous column continuously be 1 (that the row are continuously 1 that one row, which obtain parameter a d, d,
0) the continuous 1 number maximum value for being 1 of the previous column of one row is.If d writes down this by positive number and more than to threshold value
Columns m1.Until d by negative and is more than also to write down columns m2 to threshold value.Between m1 to m2-1 row is then y-axis, note
It is then origin x coordinate column among lower y-axis column (there are a row before two column selections in centre).It is 1 to count y-axis column continuously
The average value (only retain integer-bit) of 1 number be y-axis height.(5) step (3) obtain new range in from the bottom up by
A pixel is scanned by row, and the line number where x-axis is obtained also according to the method for (4), and the intermediate row where writing down x-axis is then origin
Y-coordinate is expert at (centre has two rows to select front a line).The average value that statistics x-axis is expert at continuously for 11 number (is only protected
Stay integer-bit) it is x-axis length.(6) ranks coordinate, the length of y-axis and x-axis length can obtain where the origin of step (4) and (5)
Image within the scope of coordinate frame is taken to be shown on target is shown.
Step 2) for convenience of explanation, it is assumed that picture is following matrix (binaryzation) such as Fig. 6 (a).It obtains and occurs 1
Row maximum value, minimum value are respectively the 16th row (from top to bottom), and the 2nd row, row maximum value, minimum value are respectively the 16th row (from a left side
Turn right), the 1st row intercept the range such as Fig. 6 (b).2 each column of statistical chart is continuously the lower sections number maximum value such as Fig. 2 " 1 of the 1 of 1
Number ", d are as below Fig. 6 (b) " d ".Often row is continuously the 11 number maximum value such as rights Fig. 6 (b) " 1 number ", and d is
Such as the rights Fig. 6 (b) " d ".It is assumed herein that threshold value is to be respectively positive and negative the 50% of row (column) number.Threshold value is 7 and -7 at once, row threshold value
It is 8 and -8.At this point, the columns that d is more than threshold value is respectively 3 and 5, d is more than that the line number of threshold value is respectively 12 and 14, therefore, the 3rd, 4
It is classified as y-coordinate axis, coordinate shaft length average value is respectively 13.12nd, 13 behavior x coordinate axis, coordinate shaft length average value difference
It is 14, origin (3,13) obtains show image range such as Fig. 6 (c) on target is shown at this time.
3) reference axis data are set.X, the data area of y-axis are set according to artwork reference axis so that reference axis and artwork table
The data shown are consistent.The interval of horizontal, vertical reference line is respectively set, it is netted that they, which interweave,.
4) described point at target is shown.For red LED lamp, first mark origin (0,0) is clicked with mouse and retouches first point,
In the positive direction along described point in the light intensity of red LED lamp and current relationship curve so that the curve human eye between two described points
See substantially straight line.The described point at target is shown every time can obtain corresponding described point coordinate.During described point, such as in song
Line curvature larger part, needs more described point, and smaller reference line interval can be arranged, as possible so that described point is in vertical and horizontal reference line
On intersection point.It can also make described point is more acurrate to fall into reference on line focus by finely tuning described point coordinate.The last one described point is xR
It is corresponding (xR, yR) for relational graph maximum abscissa.Green light, blue LED lamp described point similarly.
5) LED lamp bead light intensity and current relationship expression formula and its inverse relation are asked.Expression formula is piecewise linear function, each
Piecewise linear function is the linear equation required by two coordinate of adjacent described point.Then inverse relation is its inverse function.
As shown in Fig. 7 (a) to (c), another application example includes:
Obtain relationship sectional drawing such as Fig. 7 (a) between certain LED lamp bead light intensity and electric current.Sectional drawing is read, the interior of coordinate outer frame is removed
Hold so that target shows the content being only able to display in coordinate frame, and reference axis data are arranged, such as Fig. 7 (b).It only examines with red herein
For light LED, it is respectively to red-light LED described point, described point coordinate at target is shown:(0,0), (15,3), (20,3.85),
(25,4.83), (30,5.8), such as Fig. 7 (c).Ask LED lamp bead light intensity and current relationship expression formula and its inverse relation expression formula such as
Under:
In the present embodiment, by interception including to be closed between reference axis and the corresponding former light intensity of LED lamp bead and electric current
It is that the content removal that curve graph carries out other than coordinate frame is handled;To carrying out the figure of the content removal processing other than coordinate frame according to original
The reference axis of graph of relation carries out the setting of new reference axis between light intensity and electric current, obtains relationship between target light intensity and electric current
Curve graph;Graph of relation carries out the described point operation of the plurality of points on curve between target light intensity and electric current, and extracts and retouch
The corresponding coordinate value of point is between the described point two-by-two of curve as straight line;LED light is calculated according to the corresponding coordinate value of all described points
Relational expression and inverse relation expression formula between the light intensity and electric current of pearl, solve between current LED lamp bead light intensity and electric current
Relationship, relationship is linear relation between LED lamp bead light intensity and electric current only at high current, and relationship is then song at low current
Line, and be generally low current by most of electric current of LED light, so when assuming that relationship is between LED lamp bead light intensity and electric current
Linear relation can then have certain error, caused by configuration red-green-blue current-limiting resistance value accuracy it is low and white flat
The low technical problem of the effect that weighs is applied particularly to configure in white balance current-limiting resistance, can more accurately obtain LED lamp bead light intensity
The relationship between electric current.
Referring to Fig. 4, the one of the device of a kind of acquisition LED lamp bead light intensity and current relationship that are provided in the embodiment of the present invention
A embodiment includes:
Removal unit 401, for interception including to be closed between reference axis and the corresponding former light intensity of LED lamp bead and electric current
It is that the content removal that curve graph carries out other than coordinate frame is handled;
Acquiring unit 402, for carry out the figure of the content removal processing other than coordinate frame according to former light intensity and electric current it
Between the reference axis of graph of relation carry out the setting of new reference axis, obtain graph of relation between target light intensity and electric current;
Described point unit 403, for the plurality of points between target light intensity and electric current on graph of relation progress curve
Described point operates, and extracts the corresponding coordinate value of described point, is straight line between the described point two-by-two in curve;
Relational expression determination unit 404, light intensity and electric current for calculating LED lamp bead according to the corresponding coordinate value of all described points
Between relationship relational expression and inverse relation expression formula.
In the present embodiment, by removal unit 401 to interception include reference axis and the corresponding former light intensity of LED lamp bead with
Graph of relation carries out the content removal processing other than coordinate frame between electric current;Acquiring unit 402 is to carrying out other than coordinate frame
The figure of content removal processing carries out the setting of new reference axis according to the reference axis of graph of relation between former light intensity and electric current, obtains
Graph of relation between target light intensity and electric current;The graph of relation march between target light intensity and electric current of described point unit 403
The described point of plurality of points on line operates, and extracts the corresponding coordinate value of described point, is straight line between the described point two-by-two in curve;
Relational expression determination unit 404 calculates the pass of relationship between the light intensity and electric current of LED lamp bead according to the corresponding coordinate value of all described points
It is expression formula and inverse relation expression formula, solves relationship between current LED lamp bead light intensity and electric current, only at high current
Relationship is linear relation between LED lamp bead light intensity and electric current, and relationship is then curve at low current, and generally passes through LED light
Most of electric current is low current, so when assuming that relationship is linear relation between LED lamp bead light intensity and electric current, then can be existed certain
Error, caused by configuration red-green-blue current-limiting resistance value accuracy it is low, and the technical problem that white balance effect is low.
The above is that each unit of the device to obtaining LED lamp bead light intensity and current relationship is described in detail, and below will
Sub-unit, module and submodule are described in detail, referring to Fig. 5, a kind of acquisition LED provided in the embodiment of the present invention
One embodiment of the device of lamp bead light intensity and current relationship includes:
Removal unit 501, for interception including to be closed between reference axis and the corresponding former light intensity of LED lamp bead and electric current
It is that the content removal that curve graph carries out other than coordinate frame is handled;
Removal unit 501 specifically includes:
Intercept subelement 5011, for relationship specification figure to the light intensity in the information document of LED lamp bead and between electric current into
Row intercept operation obtains graph of relation between former light intensity and electric current;
Subelement 5012 is removed, is gone for the content that graph of relation carries out other than coordinate frame between former light intensity and electric current
Except processing.
Removal subelement 5012 specifically includes:
Comparing module 50121, for the gray value of image of calculating to be compared with preset gray threshold, if gradation of image
Value is higher than preset gray threshold, then gray value is set as 1, if gray value of image is less than preset gray threshold, by gray value
It is set as 0;
Binary image determining module 50122, for being determined only including two after 0 or 1 binaryzation according to comparison result
Value image;
Scan determining module 50123, for binary image is carried out respectively individual element by column scan and by row sweep
It retouches, determines the x of graph of relation between the y-axis of graph of relation and target light intensity and electric current between target light intensity and electric current
Axis;
Scanning determining module 50123 specifically includes:
First scanning submodule 50123a, it is each for carrying out being got by column scan for individual element to binary image
Corresponding row parameter is arranged, row parameter is to connect when the maximum value for 1 number for including subtracts previous column in the sequence that forefront is continuously 1
Continue in the sequence for 1 maximum value for 1 number for including;
First judging submodule 50123b, for judging whether row parameter is positive number and is more than first threshold, if so, note
Row parameter is corresponding is classified as the first row undetermined for record, until row parameter is negative and is more than first threshold, then records row parameter correspondence
Be classified as the second row undetermined;
First determination sub-module 50123c for being y-axis between the first row and the previous column of the first row undetermined undetermined, and remembers
The centre of the lower y-axis column of record is origin x coordinate column;
First statistic submodule 50123d, for counting 1 number for including in the continuous sequence for 1 of y-axis column
Average value is y-axis height;
And second scanning submodule 50123e, for binary image carry out individual element by row scanning obtain
To the corresponding row parameter value of every a line, row parameter be current line be continuously 1 sequence row in include the maximum value of 1 number subtract
Previous row is continuously the maximum value for 1 number for including in 1 sequence row;
Second judgment submodule 50123f, for judging whether row parameter is positive number and is more than second threshold, if so, note
Corresponding the first row undetermined of behavior of row parameter is recorded, until row parameter is negative and is more than second threshold, then records row parameter correspondence
The second row undetermined of behavior;
Second determination sub-module 50123g is x-axis for determining between the first row undetermined and the previous row of the first row undetermined,
And it records the centre that x-axis is expert at and is expert at by origin y-coordinate;
Second statistic submodule 50123h is expert at 1 number in the continuous sequence row for 1 included for counting x-axis
Average value is x-axis length.
Remove module 50124, the range for determining corresponding coordinate frame according to y-axis and x-axis, and to coordinate frame other than
Content is removed processing.
Acquiring unit 502, for carry out the figure of the content removal processing other than coordinate frame according to former light intensity and electric current it
Between the reference axis of graph of relation carry out the setting of new reference axis, obtain graph of relation between target light intensity and electric current;
Described point unit 503, for the plurality of points between target light intensity and electric current on graph of relation progress curve
Described point operates, and extracts the corresponding coordinate value of described point, is straight line between the described point two-by-two in curve;
Relational expression determination unit 504, light intensity and electric current for calculating LED lamp bead according to the corresponding coordinate value of all described points
Between relationship relational expression and inverse relation expression formula, relational expression determination unit 504, be specifically used for according to all described points correspond to
Coordinate value calculate LED lamp bead light intensity and electric current between relationship relational expression and inverse relation expression formula, relational expression
For piecewise linear function, each piecewise linear function is the linear equation required by the coordinate of adjacent described point two-by-two, then inverse relation
Expression formula is the inverse function of relational expression.
In the present embodiment, by removal unit 501 to interception include reference axis and the corresponding former light intensity of LED lamp bead with
Graph of relation carries out the content removal processing other than coordinate frame between electric current;Acquiring unit 502 is to carrying out other than coordinate frame
The figure of content removal processing carries out the setting of new reference axis according to the reference axis of graph of relation between former light intensity and electric current, obtains
Graph of relation between target light intensity and electric current;The graph of relation march between target light intensity and electric current of described point unit 503
The described point of plurality of points on line operates, and extracts the corresponding coordinate value of described point, is straight line between the described point two-by-two in curve;
Relational expression determination unit 504 calculates the pass of relationship between the light intensity and electric current of LED lamp bead according to the corresponding coordinate value of all described points
It is expression formula and inverse relation expression formula, solves relationship between current LED lamp bead light intensity and electric current, only at high current
Relationship is linear relation between LED lamp bead light intensity and electric current, and relationship is then curve at low current, and generally passes through LED light
Most of electric current is low current, so when assuming that relationship is linear relation between LED lamp bead light intensity and electric current, then can be existed certain
Error, caused by configuration red-green-blue current-limiting resistance value accuracy it is low, and the technical problem that white balance effect is low.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling that discusses or between couple or communication connection can be indirect coupling by some interfaces, device or unit
It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Stating embodiment, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding
The technical solution recorded in each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
Modification or replacement, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of method obtaining LED lamp bead light intensity and current relationship, which is characterized in that including:
Interception includes the figure of relation curve between reference axis and the corresponding former light intensity of LED lamp bead and electric current, and to coordinate in figure
Content other than frame is removed processing, the figure that obtains that treated;
To treated the figure, new reference axis is carried out according to the reference axis of the graph of relation between the former light intensity and electric current
Setting, obtain the graph of relation between target light intensity and electric current;
Graph of relation between the target light intensity and electric current carries out the described point operation of the plurality of points on curve, and extracts
The corresponding coordinate value of the described point is straight line between the described point described two-by-two in the curve;
The relationship of relationship between the light intensity and electric current of the LED lamp bead is calculated according to the corresponding coordinate value of all described points
Expression formula and inverse relation expression formula.
2. the method according to claim 1 for obtaining LED lamp bead light intensity and current relationship, which is characterized in that interception includes
There is the figure of relation curve between reference axis and the corresponding former light intensity of LED lamp bead and electric current, and to the content other than coordinate frame in figure
Processing is removed to specifically include:
Relationship specification figure carries out intercept operation to the light intensity in the information document of the LED lamp bead and between electric current, described in acquisition
Graph of relation between former light intensity and electric current;
Content other than the coordinate frame of graph of relation between the former light intensity and electric current is removed processing.
3. the method according to claim 2 for obtaining LED lamp bead light intensity and current relationship, which is characterized in that according to all
The corresponding coordinate value of the described point calculates between the light intensity and electric current of the LED lamp bead relational expression of relationship and anti-closes
It is that expression formula specifically includes:
The relationship of relationship between the light intensity and electric current of the LED lamp bead is calculated according to the corresponding coordinate value of all described points
Expression formula and inverse relation expression formula, the relational expression are piecewise linear function, each described piecewise linear function is two
Linear equation required by the coordinate of the two adjacent described points, then the inverse relation expression formula is the anti-letter of the relational expression
Number.
4. the method according to claim 2 or 3 for obtaining LED lamp bead light intensity and current relationship, which is characterized in that described
Content other than coordinate frame is removed processing and specifically includes:
The gray value of the image of graph of relation between the former light intensity and electric current of calculating is compared with preset gray threshold,
If described image gray value is higher than the preset gray threshold, gray value is set as 1, if described image gray value is less than institute
Preset gray threshold is stated, then the gray value is set as 0;
The binary image after the binaryzation for only including 0 or 1 is determined according to comparison result;
It carries out being scanned by column scan and by row for individual element respectively to the binary image, determines the target light intensity and electricity
Between stream between the y-axis of graph of relation and the target light intensity and electric current graph of relation x-axis;
The range of corresponding coordinate frame is determined according to the y-axis and the x-axis, and the content other than the coordinate frame is gone
Except processing.
5. the method according to claim 4 for obtaining LED lamp bead light intensity and current relationship, which is characterized in that described two
Value image carries out being scanned by column scan and by row for individual element respectively, determines the relationship between the target light intensity and electric current
The x-axis of graph of relation between the y-axis of curve graph and the target light intensity and electric current specifically includes:
The corresponding row parameter of each row, the row parameter are got by column scan to binary image progress individual element
For when include in the maximum value for 1 number for including in the sequence that forefront is continuously 1 sequence that subtract previous column continuously be 11
Number maximum value;
Judge whether the row parameter is positive number and is more than first threshold, the row parameter is corresponding to be classified as the if so, recording
One row undetermined then record that the row parameter is corresponding to be classified as the until the row parameter is negative and is more than the first threshold
Two row undetermined;
It determines that the described first undetermined arrange between the previous column of first row undetermined is y-axis, and records the y-axis column
Centre be origin x coordinate column;
The average value for counting 1 number for including in the continuous sequence for 1 of the y-axis column is y-axis height;
And being scanned by row for individual element is carried out to binary image and gets the corresponding row parameter value of every a line, the row
Parameter be current line be continuously 1 sequence row in include 1 number the maximum value sequence row that subtract previous row continuously be 1 in include
1 number maximum value;
Judge whether the row parameter is positive number and is more than second threshold, if so, recording the corresponding behavior of the row parameter the
One row undetermined then records the corresponding behavior of the row parameter the until the row parameter is negative and is more than the second threshold
Two rows undetermined;
It determines between the described first row undetermined and the previous row of first row undetermined to be x-axis, and records the x-axis and be expert at
Centre be expert at by origin y-coordinate;
It is x-axis length to count the be expert at average value of 1 number in the continuous sequence row for 1 included of the x-axis.
6. a kind of device obtaining LED lamp bead light intensity and current relationship, which is characterized in that including:
Removal unit, for intercept include relation curve between reference axis and the corresponding former light intensity of LED lamp bead and electric current figure,
And processing is removed to the content other than coordinate frame in figure, the figure that obtains that treated;
Acquiring unit, for treated the figure, according to the coordinate of the graph of relation between the former light intensity and electric current
Axis carries out the setting of new reference axis, obtains the graph of relation between target light intensity and electric current;
Described point unit carries out retouching for the plurality of points on curve for the graph of relation between the target light intensity and electric current
Point operation, and the corresponding coordinate value of the described point is extracted, it is straight line between the described point described two-by-two in the curve;
Relational expression determination unit, the light intensity for calculating the LED lamp bead according to the corresponding coordinate value of all described points
The relational expression of relationship and inverse relation expression formula between electric current.
7. the device according to claim 6 for obtaining LED lamp bead light intensity and current relationship, which is characterized in that removal unit
It specifically includes:
Subelement is intercepted, is carried out for the relationship specification figure to the light intensity in the information document of the LED lamp bead and between electric current
Intercept operation obtains graph of relation between the former light intensity and electric current;
Subelement is removed, is gone for the content other than the coordinate frame of the graph of relation between the former light intensity and electric current
Except processing.
8. the device according to claim 7 for obtaining LED lamp bead light intensity and current relationship, which is characterized in that relational expression is true
Order member, specifically for calculated according to the corresponding coordinate value of all described points the LED lamp bead light intensity and electric current it
Between relationship relational expression and inverse relation expression formula, the relational expression be piecewise linear function, each described segmentation
Linear function is the linear equation required by the coordinate of the adjacent described point two-by-two, then the inverse relation expression formula is the relation table
Up to the inverse function of formula.
9. the device according to claim 7 or 8 for obtaining LED lamp bead light intensity and current relationship, which is characterized in that removal
Unit specifically includes:
Comparing module is used for the gray value of the image of the graph of relation between the former light intensity calculated and electric current and preset gray scale
Threshold value is compared, if described image gray value is higher than the preset gray threshold, gray value is set as 1, if the figure
Picture gray value is less than the preset gray threshold, then the gray value is set as 0;
Binary image determining module, for being determined only including the binary image after 0 or 1 binaryzation according to comparison result;
Scan determining module, for the binary image is carried out respectively individual element by column scan and by row scan, really
Fixed graph of relation between the y-axis of graph of relation and the target light intensity and electric current between the target light intensity and electric current
X-axis;
Remove module, the range for determining corresponding coordinate frame according to the y-axis and the x-axis, and to the coordinate frame with
Outer content is removed processing.
10. the device according to claim 9 for obtaining LED lamp bead light intensity and current relationship, which is characterized in that scanning determines
Module specifically includes:
First scanning submodule, for getting each row correspondence by column scan to binary image progress individual element
Row parameter, the row parameter is when to subtract previous column continuous for the maximum value for 1 number for including in the sequence that forefront is continuously 1
Maximum value for 1 number for including in 1 sequence;
First judging submodule, for judging whether the row parameter is positive number and is more than first threshold, if so, described in record
Row parameter is corresponding to be classified as the first row undetermined, until the row parameter be negative and be more than the first threshold, then record described in
Row parameter is corresponding to be classified as the second row undetermined;
First determination sub-module for being y-axis between the described first row and the previous column of first row undetermined undetermined, and records
Under the y-axis column centre be origin x coordinate column;
First statistic submodule is continuously the average value for 1 number for including in 1 sequence for counting the y-axis column
For y-axis height;
And second scanning submodule, for the binary image carry out individual element by row scanning get it is each
The corresponding row parameter value of row, the row parameter be current line be continuously 1 sequence row in include 1 number maximum value subtract before
A line is continuously the maximum value for 1 number for including in 1 sequence row;
Second judgment submodule, for judging whether the row parameter is positive number and is more than second threshold, if so, described in record
Corresponding the first row undetermined of behavior of row parameter, until the row parameter be negative and be more than the second threshold, then record described in
Corresponding the second row undetermined of behavior of row parameter;
Second determination sub-module is x-axis for determining between the described first row undetermined and the previous row of first row undetermined, and
The centre that the x-axis is expert at is recorded to be expert at by origin y-coordinate;
Second statistic submodule is expert at continuously for counting the x-axis for the average value for 1 number for including in 1 sequence row
For x-axis length.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511029527.8A CN105677284B (en) | 2015-12-30 | 2015-12-30 | A kind of method and device obtaining LED lamp bead light intensity and current relationship |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511029527.8A CN105677284B (en) | 2015-12-30 | 2015-12-30 | A kind of method and device obtaining LED lamp bead light intensity and current relationship |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105677284A CN105677284A (en) | 2016-06-15 |
CN105677284B true CN105677284B (en) | 2018-11-02 |
Family
ID=56298315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511029527.8A Expired - Fee Related CN105677284B (en) | 2015-12-30 | 2015-12-30 | A kind of method and device obtaining LED lamp bead light intensity and current relationship |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105677284B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114061751B (en) * | 2022-01-13 | 2022-04-01 | 武汉中导光电设备有限公司 | AOI equipment rapid light intensity curve correction method and system and AOI equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101377450A (en) * | 2008-09-19 | 2009-03-04 | 北京巨数数字技术开发有限公司 | System and method for extracting lightness data of display screen dot matrix |
CN101808451A (en) * | 2010-03-25 | 2010-08-18 | 东华大学 | Method for obtaining high-development adjustable color temperature white light by white and red and blue LED combination |
CN104931005A (en) * | 2015-07-02 | 2015-09-23 | 广东威创视讯科技股份有限公司 | A method and an apparatus for detecting uniformity of an LED lamp panel with a plurality of BINs |
CN104966495A (en) * | 2015-07-20 | 2015-10-07 | 广东欧珀移动通信有限公司 | Display brightness calibration method and system |
CN105187811A (en) * | 2015-09-18 | 2015-12-23 | 广东威创视讯科技股份有限公司 | Automatic adjusting method and apparatus for LCD screen white balance |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006098450A1 (en) * | 2005-03-18 | 2006-09-21 | Mitsubishi Chemical Corporation | Light-emitting device, white light-emitting device, illuminator, and image display |
-
2015
- 2015-12-30 CN CN201511029527.8A patent/CN105677284B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101377450A (en) * | 2008-09-19 | 2009-03-04 | 北京巨数数字技术开发有限公司 | System and method for extracting lightness data of display screen dot matrix |
CN101808451A (en) * | 2010-03-25 | 2010-08-18 | 东华大学 | Method for obtaining high-development adjustable color temperature white light by white and red and blue LED combination |
CN104931005A (en) * | 2015-07-02 | 2015-09-23 | 广东威创视讯科技股份有限公司 | A method and an apparatus for detecting uniformity of an LED lamp panel with a plurality of BINs |
CN104966495A (en) * | 2015-07-20 | 2015-10-07 | 广东欧珀移动通信有限公司 | Display brightness calibration method and system |
CN105187811A (en) * | 2015-09-18 | 2015-12-23 | 广东威创视讯科技股份有限公司 | Automatic adjusting method and apparatus for LCD screen white balance |
Also Published As
Publication number | Publication date |
---|---|
CN105677284A (en) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190294663A1 (en) | Method and device for positioning table in pdf document | |
US9280949B2 (en) | Color selection interface | |
CN104243820B (en) | A kind of method and device for determining image boundary | |
CN107204034B (en) | A kind of image processing method and terminal | |
US20030002732A1 (en) | Method and apparatus for digital image segmentation using an iterative method | |
TWI408619B (en) | Image contrast enhancement apparatus and method thereof | |
CN104766076B (en) | A kind of detection method and device of video image character | |
CN107590447A (en) | A kind of caption recognition methods and device | |
CN108388905B (en) | A kind of Illuminant estimation method based on convolutional neural networks and neighbourhood context | |
JP2005229620A (en) | System and method for generating high compression image data file having multiple foreground planes | |
EP1022682A3 (en) | Color clustering for scene change detection and object tracking in video sequences | |
CN104143186B (en) | A kind of SLIC super-pixel piecemeal optimization method | |
CN108806638B (en) | Image display method and device | |
CN105677284B (en) | A kind of method and device obtaining LED lamp bead light intensity and current relationship | |
CN106501271A (en) | product appearance detection method | |
EP3276936A1 (en) | Image processing apparatus and method of generating binarized image | |
CN108198226A (en) | A kind of ceramic color recognition methods, electronic equipment, storage medium and device | |
CN108241608A (en) | The processing method of chart data, apparatus and system | |
CN113011220A (en) | Spike number identification method and device, storage medium and processor | |
CN104322057A (en) | Pattern processing apparatus, pattern processing method, and pattern processing program | |
CN104050440B (en) | Distinguish method and the device thereof of the combined anti-fake mark true and false | |
CN112329774B (en) | Commodity ruler code table automatic generation method based on image | |
JP2019012424A (en) | Image processing device and computer program | |
CN114596214A (en) | Face whitening image processing method, device, medium and equipment | |
US7330589B2 (en) | Image partitioning apparatus and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181102 Termination date: 20191230 |