We propose a fast, frequency-resolved, real-time, terahertz imaging method. With our method, images at two specific terahertz frequencies can be acquired in 1 min. Three kinds of drugs (L-histidine, maltose, and CBZ3), which have absorption peaks in the terahertz region, were distinguished in 3 min by using our method. This technique can be used in industrial applications, such as nondestructive testing.