The invention relates to an anti-pet
tread type alarm and a method thereof for distinguishing a
foot type by measuring an area with a contour method. And the invention includes two parts: an anti-pet
tread type alarm and a method thereof for distinguishing a
foot type by measuring an area with a contour method. The method is embodied by a program of distinguishing a
foot type by measuring an areawith a contour method. And the anti-pet
tread type alarm is composed of a rectangle framework, a
battery pack, an on-
chip microcomputer system, a serial-in-parallel-out circuit, a parallel-in-serial-out circuit and a music circuit; an upper part and a bottom of the rectangle framework are respectively provided with a column
electrode group and a row
electrode group; and leads of the column
electrode group are respectively connected to all parallel input terminals of the parallel-in-serial-out circuit in order as well as leads of the row electrode group are respectively connected to all parallel input terminals of the serial-in-parallel-out circuit in order. Moreover, a two dimensional coordinate
system is established according to the leads of the column electrode group and the row electrode group; with utilization of the one-
chip microcomputer, treaded areas are scanned and detected; contours of the treaded areas are tracked one by one; calculation on areas by counting cells is carried out on areas in the contours; a foot type is determined; and it is decided whether an alarm sound is emitted or not. According to the invention, the method for measuring an area is aimed at application to a treaded area that has been divided into blocks; and the method is also suitable for anti-theft and alarming work.