Patent ID: 8346384

Claim:
A cutting machine for cutting a material to be cut, which is placed on a table, with a rotating saw blade, the cutting machine comprising: an imaging device that takes a video image of an area on the table and outputs the video image; a determination device that makes a determination on whether or not a number of pixels of a specific color, which is previously set, exceeds a predetermined threshold in one frame of image constituting the video image outputted from the imaging device, wherein the determination device makes the determination by generating a binary format image from the one frame of image constituting the video image outputted from the imaging device, depending on whether or not each of pixels has the specific color which is previously set or another color, performing labeling of the binary format image, and determining whether or not a number of pixels constituting a largest connected region among connected regions obtained by the labeling exceeds a predetermined threshold, and wherein the determination device performs labeling of the binary format image by identifying the connected regions and assigning each connected region with a unique label, each connected region being a set of pixels that form a connected group and that are counted; and a stopping device that stops rotation of the saw blade when it is determined by the determination device that the number of pixels of the specific color exceeds the predetermined threshold.