When the heads are ripe, cut and tie them together and dry in the sun for a week or so. Then you can remove them by either rubbing them out or by laying them on a sheet on the floor and hitting them with a stick or broom. Further drying of the seeds for another week is best.