{"id":27775298,"url":"https://github.com/keerthananehru/barcode-decoder","last_synced_at":"2026-04-18T01:32:13.520Z","repository":{"id":290422153,"uuid":"974396625","full_name":"KeerthanaNehru/barcode-decoder","owner":"KeerthanaNehru","description":"A YOLOv8-based system for detecting, cropping, and decoding barcodes from images. Trained on a custom barcode dataset, evaluated with precision, recall, and mAP metrics, and implemented using Ultralytics YOLO and Pyzbar libraries.","archived":false,"fork":false,"pushed_at":"2025-04-29T19:16:21.000Z","size":785,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T02:07:56.332Z","etag":null,"topics":["barcode-decoding","barcode-detection","computer-vision","deep-learning","object-detection","opencv","python","pyzbar","ultralytics","yolov8"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/KeerthanaNehru.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-28T17:58:50.000Z","updated_at":"2025-10-05T04:56:13.000Z","dependencies_parsed_at":"2025-04-30T03:53:40.873Z","dependency_job_id":null,"html_url":"https://github.com/KeerthanaNehru/barcode-decoder","commit_stats":null,"previous_names":["keerthananehru/barcode-decoder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KeerthanaNehru/barcode-decoder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeerthanaNehru%2Fbarcode-decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeerthanaNehru%2Fbarcode-decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeerthanaNehru%2Fbarcode-decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeerthanaNehru%2Fbarcode-decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KeerthanaNehru","download_url":"https://codeload.github.com/KeerthanaNehru/barcode-decoder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeerthanaNehru%2Fbarcode-decoder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000773,"owners_count":26082906,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-decoding","barcode-detection","computer-vision","deep-learning","object-detection","opencv","python","pyzbar","ultralytics","yolov8"],"created_at":"2025-04-30T03:53:37.726Z","updated_at":"2025-10-09T02:10:08.079Z","avatar_url":"https://github.com/KeerthanaNehru.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Barcode Decoder \n\n## Barcode Detection and Decoding System using YOLO \n\n## 📌 Project Overview\n\nThis project builds a system to detect barcodes in images, crop the detected regions, and decode them to reveal the barcode information.\n\nWe use YOLOv8 (You Only Look Once) for barcode detection and Pyzbar library for decoding.\n\n---\n\n## 📚 Project Structure\n\n- `Barcode_Decoder_Project_Model_Training.ipynb` → Trains YOLOv8 on custom barcode dataset.\n- `Barcode_Decoder_Project_Model_Testing.ipynb` → Tests the trained model and decodes barcodes from test images.\n- `dataset -\u003e` \"https://drive.google.com/drive/folders/1RoPo4aOoWh_ByNP-WMtlylC7FkpSdxHF?usp=sharing\" -\u003e new_dataset → Contains sample images used during training, validation, and testing.\n- `README.md` → This file.\n\n---\n\n## 🛠️ Technologies Used\n\n- Python\n- Google Colab\n- YOLOv8 (Ultralytics library)\n- OpenCV\n- Pyzbar\n- ZBar (barcode scanning library)\n\n---\n\n## 🖼️ Dataset\n\n- Custom barcode dataset created manually from large roboflow dataset\n- Divided into `train`, `valid`, and `test` folders.\n- Each folder contains:\n  - `/images` (actual images)\n  - `/labels` (YOLO annotation files)\n\n---\n\n## 🚀 How to Run the Project\n\n1. Open the **Barcode_Decoder_Project_Model_Training.ipynb** notebook.\n2. Mount your Google Drive.\n3. Unzip dataset and train YOLOv8 model.\n4. Save the trained model (`best.pt` or `saved_model.pt`).\n\nThen:\n\n5. Open the **Barcode_Decoder_Project_Model_Testing.ipynb** notebook.\n6. Upload your trained model weights either `best.pt` or `saved_model.pt` but `best.pt` has best weights \n7. Upload images for testing.\n8. Predict barcode regions, crop, and decode them automatically.\n\n---\n\n## 📈 Model Performance\n\n- Model evaluated using mAP, Precision, Confusion Matrix and Recall metrics.\n- Metrics printed during validation step and their images stored in the runs\n\n---\n\n## ⚙️ Requirements\n\nInstall the following packages:\n\n```bash\npip install ultralytics pyzbar opencv-python-headless\napt-get update\napt-get install -y libzbar0\n\n```\n\n## 🙋 Author\n\nKeerthana Nehru\n\nBarcode Decoder Project  \nApril 2025\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeerthananehru%2Fbarcode-decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeerthananehru%2Fbarcode-decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeerthananehru%2Fbarcode-decoder/lists"}