摘要 |
A line segment detection apparatus includes a head that supports a sensor configured to detect light reflected by a surface of a cutting target medium and output a signal corresponding to an amount of the detected light, a driving unit configured to move the head in two-dimensional directions relatively to the cutting target medium, and a processing unit configured to drive the driving unit and perform arithmetic processing on an output of the sensor. The processing unit includes a region detection unit configured to detect a region different in reflectance from surroundings based on a change of a signal output from the sensor when the sensor was moved together with the head in a first direction parallel to the cutting target medium, and a determination unit configured to, when the region detection unit detects the region, determine whether the region is a line segment, based on the change of the signal output from the sensor when the sensor passed an arbitrary point in the region and was moved in a second direction parallel to the cutting target medium and perpendicular to the first direction. A computer-readable recording medium recording a control program for a cutting plotter is also disclosed. |