A source coil drive circuit section 31 of an endoscope shape detection device 3 includes, an oscillator 110 that generates a sine wave and an amplifier 111 that amplifies the sine wave and generates (drives) an alternating magnetic field to source coils 14i through a switch section 112. The switch section 112 is configured to switch a direct current to an output of the amplifier 111 and supply to the source coils 14i. In the source coil drive circuit section 31, a direct current resistance value detection section 113 for measuring a direct current resistance value of the source coils 14i by voltage drop when the switch section 112 is supplying the direct current to the source coils 14i is provided.