The invention provides an edge AI control method based on cloth detection. The edge AI control method comprises the steps of collecting a field cloth picture in a detection area; calculating an
absolute difference value d0 between the width of the collection target area and the initial set width according to the collected cloth picture, calculating
absolute difference values dm1 and dm2 between the warp density and the weft density of the collection target area and the set target warp density and the set target weft density, judging the state of the rolling
machine according to d0, dm1 and dm2, if all the conditions are met, starting the rolling
machine to continue to advance to the flaw detection area, and stopping the rolling
machine; and acquiring images of the defective areas, performing defect detection and defect classification, generating cloth feature information, and storing structured data to a controller
data memory. By verifying the width size, the warp
yarn density and the
weft yarn density of the cloth, flaws can be effectively detected and classified, and the quality of the cloth is evaluated, so that the cloth inspection
work flow is optimized, the safety is improved, and the efficiency and the reliability of the whole inspection process are enhanced.