The most "advanced" readers will capture the MRZ (machine readable zone) and OCR the VIZ (human readable area) and compare them.
Airlines and airports are pushing to go heavily self-serve over the next few years, so new readers can also do facial matching to your identity document to check bags or print boarding passes.