{"id":16996379,"url":"https://github.com/yyassif/barcode-reader","last_synced_at":"2026-05-21T07:01:58.673Z","repository":{"id":178643584,"uuid":"386701886","full_name":"yyassif/Barcode-Reader","owner":"yyassif","description":"Read Barcode from Strings and Generate Barcode Images","archived":false,"fork":false,"pushed_at":"2021-07-17T22:40:38.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-24T11:25:40.089Z","etag":null,"topics":["barcode","barcode-generator","barcode-images","barcode-reader"],"latest_commit_sha":null,"homepage":"","language":"Python","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/yyassif.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-16T16:34:38.000Z","updated_at":"2021-07-17T22:40:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"7b7232b2-4890-4b97-be90-a8d97f343c83","html_url":"https://github.com/yyassif/Barcode-Reader","commit_stats":null,"previous_names":["yyassif/barcode-reader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yyassif/Barcode-Reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyassif%2FBarcode-Reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyassif%2FBarcode-Reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyassif%2FBarcode-Reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyassif%2FBarcode-Reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yyassif","download_url":"https://codeload.github.com/yyassif/Barcode-Reader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yyassif%2FBarcode-Reader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33292060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","barcode-generator","barcode-images","barcode-reader"],"created_at":"2024-10-14T03:52:16.743Z","updated_at":"2026-05-21T07:01:58.668Z","avatar_url":"https://github.com/yyassif.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Barcode-Reader\n#### Read Barcode from Strings and Generate Barcode Images\n\nWe are Intrested in EAN-13: [EAN-13 (Wikipedia)](https://en.wikipedia.org/wiki/International_Article_Number#Binary_encoding_of_data_digits_into_EAN-13_barcode)\n\nThe input is a String of length 95 representing the barcode. Each databit (We are dealing with binary data) is displayed by a specified separator/character(mainly underscore or pipe characters) to represent the active bit and space to represent the dead bit. A separator is the bar area. The input may be reversed. You should decode the barcode so that the output was a String of length 13.\n\nIn case a barcode does not conform to the specifications, return (None -\u003e Python) or (NULL -\u003e C++).\n\nThe input final digit is the checksum. It is calculated from the other 12 digits, but in this mission it may be wrong. You must return (None -\u003e Python) or (NULL -\u003e C++) for this.\n\n* Input: The separator character and the barcode String, (Note: The length of the barcode is fixed into 95 letters otherwise return None).\n* Output: The decoded barcode number in a String format of length 13, None otherwise.\n\n* Examples:\n```python\nbarcode_reader('_', \"_ _   _ __ _  ___ __  __  _  __ ____ _  ___ _ _ _ __  __ __ __  _    _ _ ___  _  ___ _   _  _ _\") =\u003e \"5901234123457\"\n\nbarcode_reader('_', \"_ _   __ _ _  ___ ____ _   _ __  _ ___  ___ _ _ _ __  __ _  ___ _  ___ _ ___  _  _   _ _    _ _\") =\u003e \"4003994155486\"\n```\n* Finally:\nFor Python: We implement this into a GUI using pygame that receives the input and generates the corresponding image if Barcode is true otherwise we raise a message-box error.\nFor C++ I've never dealt with SFML so no clue how to implement it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyyassif%2Fbarcode-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyyassif%2Fbarcode-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyyassif%2Fbarcode-reader/lists"}