1459977818-65f02dd2-c884-412b-b3b1-effa90ec05ae

A method and system are provided for calibrating a magnetometer. Then, just before reading the second or subsequent sheet, the auxiliary white reference plate is sampled to acquire the latest light intensity auxiliary data, followed by calculating the change amount from the light intensity reference auxiliary data. The key frames are generated by decoding the media data, and then encoding the key frames from the decoded media data.