1. A system comprising: a processor; and a memory communicatively coupled to the processor, the memory storing instructions executable to perform a method, the method including: receiving an image of an identity document, the image being produced using a video stream; improving the image; recognizing a plurality of text in the processed image using optical character recognition; finding a document template of a plurality of templates having a high degree of coincidence with the processed image using a substantially rectangular shape of the processed image overall, at least some of the text, and a respective location in the processed image for the at least some text; associating each of the at least some text with a respective field of the document template using the at least some text and a respective location in the image for each of the at least some text; placing at least one of the associated text in a respective field of a form, the respective field of the form corresponding to the respective associated field of the document template; and providing the form.