When designing lighting systems — especially LED grow lights or LED lamps for domestic and industrial lighting — engineers and DIY enthusiasts often run into the same problem: component manufacturers publish spectral charts in their datasheets with the whole family of white LEDs on a single plot, for example from 2700 K to 6500 K.
Below is an example of the spectral charts for the Bridgelux Thrive series, high colour rendering LEDs with a linear spectrum (a competitor to SunLike LEDs). A screenshot of part of page 6 of the official document:
Bridgelux Thrive spectra from 2700 to 6500 K on one plot — a typical datasheet layout
It is not unusual to need a spectral analysis of one specific LED from the family, or even to compare the spectra of two different LEDs from different manufacturers. That is exactly what our tool is for. If you need the spectrum of a single LED, you no longer have to strain your eyes or draw lines from the peaks down to the wavelength axis X.
Our tool also lets you derive the parameters of an LED or a lamp from its spectrum when you have the spectrum of the light source but none of the other figures, for example the colour rendering index by CQS or TM-30.
The spectrum digitizing tool performs a basic LED spectral analysis, particularly with regard to how efficiently a given white LED can be used for plant lighting.
You can now take any PDF from a manufacturer, screenshot the spectral chart and within a couple of minutes get a finished report with the spectral fractions across the ePAR range, an estimate of the 650–670 nm band and a measurement of the 660 nm peak. CCT, CQS and TM-30 are calculated as well.
The tool also lets you download the numerical array (the spectrum) for further engineering work.
The tool we built estimates the spectrum of a light source with reasonably high accuracy, though not laboratory accuracy. In most cases that is enough for engineering assessment and analysis. To obtain the full set of light source parameters with laboratory accuracy, a calibrated integrating sphere↗ is used.
How to use the spectrum digitizing tool: step-by-step instructions
The interface of our widget is designed so that digitizing takes as little time as possible.
To guard against DDoS attacks, the tool is available to signed-in users only. Please register or sign in with your Google account.
For the same reason there is a 15-second delay on the digitize and auto-calibrate commands.
For an accurate result, follow these instructions:
Step 1. Screenshot the spectral chart from the datasheet
Download the datasheet for the LED or lamp you need and find the page with the spectral chart. Take a sharp screenshot of it. Below is a screenshot of the spectral chart for the SunLike series from Seoul Semiconductor at colour temperatures of 3000, 4000 and 5000 K.
Seoul Semiconductor SunLike spectra at 3000, 4000 and 5000 K: three curves on one plot
Step 2. Upload the screenshot into the tool
Select the screenshot of the spectral chart and upload it into our tool:
Uploading a spectrogram screenshot to the digitization tool
Step 3. Calibrate the chart axes
After step two the tool displays the uploaded chart inside its working area.
The spectral chart loaded into the working area of the tool
To digitize the uploaded chart and obtain accurate figures, the starting coordinates of the chart on the X and Y scales have to be set as precisely as possible. Our tool has an automated calibration function: to start, simply press the “Auto-calibrate” button located to the right above the uploaded chart.
Once auto-calibration finishes, coloured markers appear at the start and the end of the X and Y axes:
Calibration markers on the X and Y axes after automatic calibration
Make sure the zero-point markers line up exactly with the origin of the chart, and that the maximum points sit strictly at the end of the axis scale.
Make sure the Max Y field contains a number matching the Max Y marker: the marker equals the highest peak of the chart. Usually this is 1 or 100 %.
When you need to compare charts taken from two different images, bring the value to a single format manually — it can be either 1 or 100.
The zero point of the chart must be placed correctly at the origin. The Max wavelength (X) field must match the scale of the chart: incorrect values will shift the digitized curve.
Below is a screenshot showing correct calibration:
A spectral chart with the calibration markers placed correctly
If auto-calibration fails, or if you need to set a different maximum on the Y axis, press the “Reset calibration” button and place the markers by hand: manual calibration mode starts automatically as soon as “Reset calibration” is pressed. Hovering the cursor over the chart activates a magnifier for precise marker placement.
The order for placing the calibration markers manually is: zero point, Max X, Max Y.
Step 4. Pick the curve colour with the eyedropper
Press the standard “Eyedropper” tool to select the colour of the curve you want to digitize. Once the “Eyedropper” is active, a zoom view appears to make it easier to hit the thin line of the curve.
Picking the curve colour with the eyedropper, with the area under the cursor magnified
The “Colour tolerance 10–250” field controls the spread around the selected shade. If digitizing errors occur, you can tighten the value down to 10–20, or conversely allow computer vision a wider spread around the shades of the selected curve by raising the value to 75–100 or more.
Step 5. Digitize the chart
Once the colour has been picked with the “Eyedropper”, the “Digitize chart” button becomes active automatically.
To get the digitized curve, press “Digitize chart”.
As soon as digitizing starts you immediately get the digitized curve in exactly the same colour as in the original screenshot.
The digitizing result: the curve is drawn in the colour of the original
A report with the basic calculated data appears directly below the digitized spectrum:
The spectral analysis report: CCT, Duv, CQS, TM-30 and the band fractions
The screenshot shows the result of the spectral analysis for the SunLike 5000 K LED.
Step 6. Export the spectral data
After digitizing, the tool lets you download the spectral data array in JSON or CSV format, and save a screenshot of the chart as a PNG, either as an outline or with colour fill.
Step 7. Compare spectra from two datasheets
What if you need to compare spectra from two different datasheets?
Without reloading the page, press “Select chart” and choose the screenshot of the second spectral chart.
Repeat steps 3–5 of the instructions. It is important to set the same Y-axis maximum for both charts.
Both spectra are now displayed on a single plot for convenient comparison.
SunLike 5000 K and Thrive 5000 K spectra compared on one plot
The boxes above the plot show the colour of each spectrum and the default label “Spectrum 1”; for convenience you can give the spectra your own names. In this example the blue spectrum belongs to the SunLike 5000 K LED and the yellow one to the Thrive 5000 K LED.
Technical note
Up to ten curves can be digitized in one session for comparison. The tool has no other general limits on digitizing.
Digitizing runs on computer vision built from two Python libraries: OpenCV handles the vision side and NumPy is the mathematical core. The tool has a built-in filter that strips the chart of its own gridlines and labels, which makes it possible to digitize black spectral curves.
IMPORTANT! Our spectrum digitizing tool is not a precision instrument and is intended for general spectral analysis. If you need data with laboratory accuracy, use professional laboratory equipment.
Digitizing accuracy: compared with the datasheet figures
Below is a comparison of the values obtained by digitizing the spectrum against the figures from the official documentation for the SunLike 5000 K LED:
Parameter / metric
Calculated value (tool)
Declared value (datasheet)
Difference
Correlated colour temperature (CCT)
4998 K
5000 K
0.1 %
Colour rendering index
CQS: 98.3
CRI: > 95
Not directly comparable: the two metrics are computed over different sets of reference colours
Distance from the locus (Duv)
0.0019
-0.0020 … -0.0030
The discrepancy is due to the impossibility of digitizing the spectrogram with such precision; the spectral line is too thick.
TM-30
Rf: 96.9 Rg: 101.3
Not declared
—
Digitized SunLike 5000 K spectrum against the manufacturer's datasheet figures
Where the digitizing error comes from
There are three sources of error, and none of them has anything to do with the tool itself.
The first is the quality of the source image. A spectral chart inside a PDF is almost always lossily compressed, and taking a screenshot adds rasterization on top: where the manufacturer drew a single line, the file contains a band several pixels wide with blurred edges. Computer vision takes the centre of that band, but on the steep flanks of a peak a shift of even two pixels vertically turns into a noticeable difference in intensity.
The second source is axis calibration. If the zero-point marker misses the origin by even one pixel, the entire wavelength scale shifts as a whole, and a 450 nm peak becomes, say, 452 nm. Calibration therefore deserves more attention than the rest of the process: the tool does every other step by itself, but the accuracy of the reference points is down to you.
The third source is the most important one, and it lies outside digitizing altogether. A datasheet shows a typical spectrum, not a measured sample. The manufacturer publishes an averaged curve for the family, whereas real LEDs are spread across chromaticity bins: two diodes from the same batch carrying the same 5000 K marking can differ in chromaticity coordinates within a MacAdam ellipse, and their spectra will not coincide. How far apart depends on the bin, which is covered in detail in the article on the MacAdam ellipse and SDCM↗. The practical conclusion follows: a digitized spectrum is valid for comparing LEDs against each other, for estimating band fractions and for design estimates, but it does not replace a measurement of the actual sample. If you need the parameters of your own batch, the spectrum is measured with a spectrophotometer and the total luminous flux with a calibrated integrating sphere.
LED spectral power distribution (SPD): what it is and why it matters
LED SPD (Spectral Power Distribution) — is a fundamental characteristic of any light source. It shows the optical radiant power as a function of wavelength across the visible range.
With a digitized LED spectrum in hand, you can analyse specific bands. Our widget has a “Spectral range analysis” block with convenient sliders (from 400 to 700 nm). You can instantly read off the peak of the spectrum (472.6 nm, for example).
The spectrum digitizing tool is well suited to assessing white LED spectra from the point of view of their use in LED grow lights. When designing plant lighting it is important to understand how the power is distributed across the ePAR range.
LED colour rendering and modern metrics: TM-30 and CQS
When designing domestic or industrial lighting, the colour rendering index matters just as much as CCT. Manufacturers sometimes quote colour rendering under the older CRI standard, which is a poor fit for judging the light quality of modern LED devices. If you have a spectral chart, you can digitize it and get a report and a plot for the modern TM-30 standard and for CQS. Read more about the CRI and CQS colour rendering indices and the TM-30 standard↗.
Using the resulting spectral data array, the algorithm automatically computes the basic photometric parameters and the modern colorimetric metrics, including the distance from the Planckian locus (Duv)↗ but with a significant margin of error.
The spectrum digitizing tool will be especially useful to DIY enthusiasts, students and designers of LED luminaires and grow lights.
The spectral analysis parameters the digitizing tool provides
Below are the main metrics and data you receive automatically once the curve has been digitized:
Calculated parameter
Description and engineering meaning
Correlated colour temperature (CCT)
Correlated colour temperature in kelvins. Shows the tint of the white light: warm, neutral or cool.
Distance from the locus (Duv)
The offset of the chromaticity coordinates from the blackbody curve. Shows whether the light drifts green (Duv > 0) or magenta (Duv < 0).
CQS
Colour Quality Scale. Rates the accuracy and saturation of colour rendering across 15 reference colours.
TM-30
The modern industry standard for colour rendering, reported on two scales, Rf and Rg.
Peak wavelength
The wavelength in nm at which the LED SPD reaches its maximum intensity.
Band fractions (ePAR)
The spectrum split into zones: UV (380–400 nm), blue (400–500 nm), green (500–600 nm), red (600–700 nm) and far-red (700–750 nm).
Metrics the tool calculates from the digitized spectrum
Conclusion
Our digitizer turns imprecise marketing pictures into numbers that can be processed mathematically. A thorough LED spectral analysis no longer requires complex software or transferring points from a chart by hand. The tool saves developers time, letting them compare the real characteristics of LEDs quickly at the luminaire design stage and pick the LEDs with the right spectral distribution for the job.
I would add that the main advantage of our tool is how simple it is to use, together with the built-in mathematical core that computes the basic parameters. Plus a basic spectral analysis aimed at using LEDs in horticulture.