The he invention discloses a sliding detection device and a detection method thereof, according to the technical scheme, the device comprises a base, a mounting plate, a PCB, an LED, a lens, a light sensor and an image analysis chip, wherein the PCB is detachably mounted on the base, the mounting plate is arranged on the PCB, the light sensor is mounted between the mounting plate and the PCB, theimage analysis chip is placed in the mounting plate and electrically connected with the light sensor, the LED is arranged in the mounting plate, the two ends of the lens are connected with the mounting plate and the base respectively and penetrate through the PCB, the LED is in contact with the lens, and the light sensor is located above the lens; according to the technical scheme, the sliding detection device is arranged in a mechanical arm, the mechanical arm controls the torque during grabbing of the mechanical arm, the requirement of the mounting space is reduced, and the sliding detectionequipment manufacturing cost is reduced.