By using a combination of rotary clamps and brick-selecting clamps for palletizing, the system enables both with pallet and without pallet conveying on the same conveyor line, meeting packaging needs for products of various specifications and improving packing efficiency.