Each member of the police force while on duty is hereby authorized to detain any person wilfully violating the provisions of section 15-62 of this article until the parent or legal guardian of the child shall take him or her into custody; but such officer shall immediately upon taking custody of the child communicate with the parent or legal guardian. (M.C. 1963)