The principle of flame photometry is based on measuring the intensity of light emitted by specific metal atoms excited in a flame at their characteristic wavelengths.