摘要 |
PROBLEM TO BE SOLVED: To provide a ticket printer and a code reading program in the ticket printer, capable of successfully detecting ticket ID and the like.SOLUTION: A ticket printer comprises: a mark scan unit scanning marks printed in black and white in a conveying direction of a rolled sheet for which tickets are rolled as a continuous form sheet, in the conveying direction; a threshold set unit setting a predetermined threshold, which obtains a binary signal by comparing signal waveforms obtained through scanning by the mark scan unit, to be closer to a white level than to a black level; a signal binarization unit scanning the marks with a threshold set by the threshold set unit to obtain a binary signal; and an ID conversion unit converting a signal binarized by the signal binarization unit into ticket ID. |