The invention discloses a smoothness detection device with a thickness detection function for gastroscope lens processing, and relates to the technical field of gastroscope lens processing; the smoothness detection device comprises a workbench, a rotating table and a detection mechanism, a rotating motor is embedded in the middle of the workbench, a rotating shaft is arranged on the upper side ofthe rotating motor, and sound insulation cotton is arranged on the two sides of the rotating motor; the rotating table is fixed above the rotating shaft, a moving mechanism is arranged above the rotating table, a bearing mechanism is installed above the moving mechanism, a gastroscope body is arranged in the middle of the upper portion of the bearing mechanism, an upper frame body is fixed to theouter side of the upper portion of the workbench, and a detection mechanism is installed below the middle of the upper frame body. And display screens are fixed in the two sides of the upper portion of the upper frame body, the detection mechanism comprises an air cylinder, a piston rod, a lifting plate, a distance measuring sensor and an ultrasonic sensor, and the device has the beneficial effectthat by arranging a cleaning brush, the glass window sash can be conveniently and automatically cleaned.