An automatic visual inspection technique for solder joints on printed circuit boards has been developed. To detect the solder joint shape, structured light is used as the optical system and a simple waveform processing is applied to the extracted shape for judging the shape of a solder joint.