{"id":26784506,"url":"https://github.com/image-js/mrz-detection","last_synced_at":"2025-04-19T16:51:33.376Z","repository":{"id":28635818,"uuid":"118930026","full_name":"image-js/mrz-detection","owner":"image-js","description":"Detect Machine Readable Zones (MRZ) in images of identity documents","archived":false,"fork":false,"pushed_at":"2022-06-01T06:03:15.000Z","size":6286,"stargazers_count":73,"open_issues_count":9,"forks_count":42,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-29T10:32:07.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/image-js.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-25T15:23:20.000Z","updated_at":"2024-12-16T16:12:16.000Z","dependencies_parsed_at":"2022-09-05T16:41:35.280Z","dependency_job_id":null,"html_url":"https://github.com/image-js/mrz-detection","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fmrz-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fmrz-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fmrz-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Fmrz-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/image-js","download_url":"https://codeload.github.com/image-js/mrz-detection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249742271,"owners_count":21318880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-29T10:28:54.021Z","updated_at":"2025-04-19T16:51:33.347Z","avatar_url":"https://github.com/image-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mrz-detection\n\n## Run scripts\n\nThe best way to test the run scripts is to create a `data` directory in the root of this repo and put\nthe images in sub-directories of `data`.\n\n### getMrz\n\n`node run/getMrz.js --dir data/imageDir`\n\nThis script will treat all PNG or JPEG images in the specified `dir` and create an `out` sub-directory\ncontaining the images at each step of the process.\nThe purpose of this script is to locate the MRZ and crop/rotate the image to keep only this part.\n\nFinal images will be in `data/imageDir/out/cropped`\n\n### readMrz\n\n`node run/readMrz.js --dir data/imageDir/out/cropped --reference data/imageDir/ground.csv`\n\nThis script will attempt to read the MRZ of all images in the specified `dir` and compare the read\ndata with the `reference`.\n\nThe reference should be a CSV file with the following format:\n\nimage-name,MRZ-LINE-1,MRZ-LINE-2,MRZ-LINE-3\n\n* image-name is the filename of the original image without extension\n* MRZ-LINE-x are each line of the MRZ (two or three lines)\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimage-js%2Fmrz-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimage-js%2Fmrz-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimage-js%2Fmrz-detection/lists"}