Patent ID: 8682481

Claim:
A media processing device, comprising: a media stacker that stores media in a stack; a media processing unit that writes data and/or prints a label on the media; a media transportation mechanism having a transportation arm that can hold and move the media, and transport the media between the media stacker and the media processing unit; a storage unit that stores a reference value for a media height that corresponds to a specified number of media in the media stacker; and a control unit that controls the media processing units and the media transportation mechanism, the control unit including: a measurement unit that measures the height of media stacked in the media stacker when media is removed from the stacker by the media transportation mechanism to obtain a measurement, and a comparison unit that compares the measurement with the reference value to detect a difference therebetween, and determines a remaining media count in the media stacker when the difference is within a specified range, wherein the control unit includes an update unit that updates the reference value by using the measurement as a new reference value, from which the comparison unit determines the media is of a specified number when a medium is removed by the media transportation mechanism.