A pulse wave measuring apparatus includes a processor and a memory. The processor instructs a lighting device outside thereof to cause the amplitude of a first hue waveform obtained from first visible light images to fall within a certain hue range, calculates a degree of correlation between a first visible light waveform obtained from first visible light images and a first infrared waveform obtained from first infrared images, outputs an infrared control signal and a visible light control signal for adjusting the amount of light of an infrared light source and the lighting device, respectively, in accordance with the degree of correlation, extracts a second visible light waveform and a second infrared waveform from second visible light images and second infrared images, respectively, calculates first biological information from feature values of at least either the second visible light waveform or the second infrared waveform, and outputs the first biological information.