{"id":28485781,"url":"https://github.com/olekacak/qr-scanner","last_synced_at":"2026-04-24T12:32:58.239Z","repository":{"id":287702087,"uuid":"965537126","full_name":"olekacak/Qr-scanner","owner":"olekacak","description":"This Python project scans and decodes QR codes from each page of a PDF. It extracts the QR code data and opens URLs found within the QR codes in the web browser. It uses libraries like OpenCV, Pyzbar, and pdf2image to process the PDF and detect QR codes for efficient scanning and URL handling.","archived":false,"fork":false,"pushed_at":"2025-04-13T11:53:54.000Z","size":1280,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T10:39:30.822Z","etag":null,"topics":["barcode-recognition","opencv","pdf-to-image-conversion","pyzbar","qr-code-scanning","qrcode","web-scraping"],"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/olekacak.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,"zenodo":null}},"created_at":"2025-04-13T11:39:59.000Z","updated_at":"2025-04-13T11:56:15.000Z","dependencies_parsed_at":"2025-04-13T12:36:58.304Z","dependency_job_id":"c1c21dd1-b9a2-4254-bd0d-84049bf85840","html_url":"https://github.com/olekacak/Qr-scanner","commit_stats":null,"previous_names":["olekacak/qr-scanner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olekacak/Qr-scanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekacak%2FQr-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekacak%2FQr-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekacak%2FQr-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekacak%2FQr-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olekacak","download_url":"https://codeload.github.com/olekacak/Qr-scanner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olekacak%2FQr-scanner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32224001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-recognition","opencv","pdf-to-image-conversion","pyzbar","qr-code-scanning","qrcode","web-scraping"],"created_at":"2025-06-08T00:40:42.103Z","updated_at":"2026-04-24T12:32:58.225Z","avatar_url":"https://github.com/olekacak.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# QR Code Scanner from PDF (Python)\n\nThis Python script scans and decodes QR codes embedded in a PDF file. If a QR code contains a URL, it will automatically open it in your default web browser.\n\n## 📦 Requirements\n\n- Python 3.7 or higher\n- [Poppler](http://blog.alivate.com.au/poppler-windows/) (required for `pdf2image` to work)\n- Python packages:\n  - opencv-python\n  - pyzbar\n  - pdf2image\n  - numpy\n\n## ⚙️ Installation\n\n1. **Clone the repository or download the files.**\n\n2. **Install the required Python packages**  \n   Run this command in your terminal or command prompt to install dependencies from the `requirements.txt` file:\n   ```\n   pip install -r requirements.txt\n   ```\n\n3. **Install Poppler**\n   - **Windows**:  \n     Download from [this link](http://blog.alivate.com.au/poppler-windows/), extract it, and add the `bin` folder to your system’s PATH.\n   - **macOS**:  \n     Use Homebrew:\n     ```\n     brew install poppler\n     ```\n\n## 🚀 Usage\n\n1. Open the script and update the PDF path:\n   ```python\n   pdf_path = \"C:\\Users\\YourName\\Path\\To\\yourfile.pdf\"\n   ```\n\n2. Run the script:\n   ```\n   python your_script_name.py\n   ```\n\n3. The script will:\n   - Convert each page of the PDF into an image\n   - Detect QR codes on each page\n   - Print the decoded data to the terminal\n   - Automatically open any URLs found in your browser\n\n## ✅ Example Output\n\n```\nQR Code Data (Page 1): https://example.com\nQR Code Data (Page 2): Hello World\nScanned QR code on Page 2 is not a URL.\nNo QR code found on Page 3.\n```\n\n## 📌 Notes\n\n- Best results are achieved with clear and high-resolution PDFs (300 DPI recommended).\n- If QR codes are too small or blurry, they may not be detected.\n\n## 🧾 License\n\nMIT License\n\nCopyright (c) 2025 Amier Roslan\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folekacak%2Fqr-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folekacak%2Fqr-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folekacak%2Fqr-scanner/lists"}