Templates are used to tell SwiftOCR how wide text fields are, how many rows should be read, what the font should be and what possible character values are allowed at each template location.