evermeer / PassportScanner

Scan the MRZ code of a passport and extract the firstname, lastname, passport number, nationality, date of birth, expiration date and personal numer.
BSD 3-Clause "New" or "Revised" License
457 stars 101 forks source link

Mrzd1 support + post processing filters + fix exposure #24

Closed punto2018 closed 5 years ago

punto2018 commented 5 years ago

Changelog: 1- added support for MRZ 3 lines (also called TD1) as specified in https://www.icao.int/publications/pages/publication.aspx?docnum=9303 Comments: Now Parsers inherit from MRZParser base class. In order to switch parser the mrzType property can be used with the following values Auto|TD1|TD3 TODO: add support for TD2 MRZ.

2- added support for post processing filters Comments: In order to keep the camera preview free from filters the property usePostProcessingFilters can be used. When enabled filters are applied to the frame using the GPUImage library. TODO: use the GPUImage2 library. I've tried but ocr performance are very bad using the same GPUImagev1 filters parameterization.

3- fixed a bug that prevented the averageColor filter to auto-adjust the exposure

evermeer commented 5 years ago

Cool! I will have a look at this later today

punto2018 commented 5 years ago

Any news? I'm planning to work in this project again. I have new needs that could be useful for the community too:

evermeer commented 5 years ago

@punto2018 Sorry for the late response to this. I will try to process this this evening (CET). If it takes more time than expected I will continue on it this weekend.