A machine vision-based instrument to measure a droplet size spectrum of a spray nozzle was developed and tested to evaluate its accuracy on measuring spray droplet sizes and classifying nozzle sizes. The instrument consisted of a machine vision, light emitting diode (LED) illumination and a desktop computer. The illumination and machine vision were controlled by the computer through a C++ program. The program controlled the machine vision to capture droplet images under controlled illumination, and processed the droplet images to characterize the droplet size distribution of a spray nozzle. An image processing algorithm was developed to improve the accuracy of the system by eliminating random noise and out-of-focus droplets in droplet images while measuring droplet sizes. The instrument measured sizes of the three different balls (254.0, 497.8 and 793.8 µm) and the measurement ranges were 241.2-273.6 µm, 492.9-529.6 µm and 800.8-824.1 µm for 254.0-, 497.84-and 793.75-µm balls, respectively. Error of the measured droplet mean was less than 3.0 %. Droplet statistics, DV0.1, DV0.5 and DV0.9, of a reference nozzle set were measured, and droplet size spectra of five spray nozzles covering from very fine to extremely coarse were measured to classify spray nozzle sizes. Ninety percent of the classification results of the instrument agreed with manufacturer's classification. A comparison study was carried out between developed and commercial instruments, and measurement results of the developed instrument were within 20 % of commercial instrument results.