{"id":20799864,"url":"https://github.com/xnacly/barcode-detection","last_synced_at":"2025-03-12T02:39:35.824Z","repository":{"id":215259406,"uuid":"718111468","full_name":"xNaCly/barcode-detection","owner":"xNaCly","description":"detecting barcodes in images","archived":false,"fork":false,"pushed_at":"2024-01-03T10:28:46.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T12:20:11.446Z","etag":null,"topics":["barcode-detection","image-processing","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xNaCly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-11-13T12:04:17.000Z","updated_at":"2024-02-18T03:44:58.000Z","dependencies_parsed_at":"2024-01-03T12:42:11.144Z","dependency_job_id":null,"html_url":"https://github.com/xNaCly/barcode-detection","commit_stats":null,"previous_names":["xnacly/barcode-detection"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xNaCly%2Fbarcode-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xNaCly%2Fbarcode-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xNaCly%2Fbarcode-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xNaCly%2Fbarcode-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xNaCly","download_url":"https://codeload.github.com/xNaCly/barcode-detection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243147274,"owners_count":20243744,"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":["barcode-detection","image-processing","python"],"created_at":"2024-11-17T18:10:32.920Z","updated_at":"2025-03-12T02:39:35.802Z","avatar_url":"https://github.com/xNaCly.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# barcode detection\n\n\u003e detect barcodes in images and draw a border with a custom color around them\n\n```shell\n$ python3 barcode-detector.py --path example.tif --color \"255:0:255\"\n```\n![Figure_1](https://github.com/xNaCly/barcode-detection/assets/47723417/3e8359f6-46b8-4c25-a7af-692f56fee2c4)\n\n\n\n\n## Usage\n\n```\nusage: barcode-detector.py [-h] -p PATH [-c COLOR]\n\noptions:\n  -h, --help              show this help message and exit\n  -p PATH, --path PATH    Path to the input image\n  -c COLOR, --color COLOR Color of the border, fmt: r:g:b\n```\n\n## Inner workings\n\nThe barcode detector works by applying several filters to an image and\nextracting the contours of the barcodes. If a barcode could not be detected\nconsider tweaking constants in the source file.\n\nThe algorithm is made up of the following filters and stages:\n\n1. sharr gradient in x and y direction\n2. subtract y from x gradient for finding barcode region\n3. blur and threshold\n4. Closing kernel\n5. Series of dilations and erosions\n6. Largest contour should be the barcode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnacly%2Fbarcode-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxnacly%2Fbarcode-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnacly%2Fbarcode-detection/lists"}