No person charged with an offense shall be convicted thereof unless by confession of his guilt in open court or by admitting the truth of the charge against him or after trial by the court or by the verdict of a jury accepted and recorded by the court.
MCL 763.2