Patent ID: 8611733

Claim:
A vibration compensation device, comprising: a vibration compensation unit that comprises at least one of a vibration compensation optical system that makes an optical axis variable, and an image-capturing unit that can be shifted, and that compensates image vibration upon an image surface occurring due to vibration; a drive unit that drives the vibration compensation unit; a position detection unit that detects a position of the vibration compensation unit; a target position determination unit that determines a target position for the vibration compensation unit according to vibration detected by the detection unit; a first calculation unit that calculates, by a process in a software, a drive amount for the drive unit based upon the target position and the position detected by the position detection unit; a second calculation unit that calculates, by a process in a hardware, a drive amount for the drive unit based upon the target position and the position detected by the position detection unit, a calculation speed of the second calculation unit being higher than that of the first calculation unit; a changing unit that selects one of the drive amount calculated by the first calculation unit and the drive amount calculated by the second calculation unit, and outputs the selected drive amount to the drive unit.