The invention discloses a cloth rolling 
machine with flaw detection and treatment functions. The cloth rolling 
machine comprises a cloth conveying platform, a detection mechanism, a CCD (
Charge Coupled Device) camera, a cleaning mechanism, a high-pressure 
nozzle, a cleaning 
liquid tank, a high-pressure pump, a fan, a spring, an electric iron, a PLC (
Programmable Logic Controller) control box, a display screen, an audible and visual alarm, a cloth guide roller, a processor, an 
image acquisition card, an 
optical imaging module, an 
image processor, an 
encoder, a support column, a tension roller, a friction shaft, a support rod, a clamping plate, a connecting rod, a cloth rolling mechanism, a 
servo motor, a speed 
reducer, a cloth roller and a winding roller. The cloth rolling 
machine has the beneficial effects that the cloth roller is driven to roll and store cloth by the winding roller, so that the replacing times of the winding roller is reduced, and the cloth 
roll forming speed of a 
textile mill is increased; the detection mechanism is additionally arranged and is used for detecting flaws and stains of cloth in time and on line and reminding, and the stains of the cloth can be directly cleaned by the cleaning mechanism, so that the cloth 
roll forming quality of the 
textile mill is increased.