The invention discloses an automatic deviation rectifying and stacking control method for packaging bags, which comprises the following steps: step 1, a stacking device detects the packaging bags by using a target detection model, and when the packaging bags are detected, the directions of the packaging bags are judged and the clamping angle of a
manipulator is adjusted; step 2, sucking the detected packaging bag by a sucking disc, and then holding and clamping the packaging bag by a
manipulator; 3, the suction cup releases
suction force to loosen the packaging bag, the mechanical arm clamps the packaging bag to move to the stacking position, and the mechanical arm adjusts the direction of the packaging bag to be consistent with the stacking requirement in the moving process; and 4, when the packaging bag arrives at the stacking position, the sucker sucks the packaging bag again to fix the angle of the packaging bag, then the
manipulator loosens the packaging bag to form a stack, and finally the sucker releases
suction force to loosen. Packaging bags at different angles can be grabbed, meanwhile, the angle can be adjusted in the carrying process, automatic deviation correction can be achieved, manual operation is reduced, and the stacking efficiency is improved; coordinated cooperation of the suction cup and the mechanical arm can be achieved, and stacking
collaboration is improved.