https://github.com/kumaarbalbir/barcode-detection-and-reading
The following repository is a result of assignment provided by the Robotics and Warehouse automation company Mowito.
https://github.com/kumaarbalbir/barcode-detection-and-reading
opencv-python python pyzbar yolov8
Last synced: 3 months ago
JSON representation
The following repository is a result of assignment provided by the Robotics and Warehouse automation company Mowito.
- Host: GitHub
- URL: https://github.com/kumaarbalbir/barcode-detection-and-reading
- Owner: KumaarBalbir
- Created: 2023-03-15T16:51:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T08:44:27.000Z (over 1 year ago)
- Last Synced: 2023-09-20T20:37:02.612Z (over 1 year ago)
- Topics: opencv-python, python, pyzbar, yolov8
- Homepage:
- Size: 212 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# barcode-detection-and-reading
#### Note: Checkout the master branch. As of now, all the code is committed in that branch and is not merged to main.## Detects the products/items and barcode or QR code in images using opencv,pyzbar & YOLOv8.
For detailed approach, please visit here:
Google doc### a. Key results
* I tried to make bbox using only opencv. But it was very difficult to approximate the contours and make a convex hull around each item.


* I used pre-trained model YOLO version 8 but that model was not trained for custom object detection. So that didn't work.
* Augmented the sample images using labelImg library as there were very less number of images to train the YOLO model.

* Trained the YOLO model on augmented images, and made inference:

* Barcode frequency with its value:
### b. For the remaining results do check the 'results custom yolov8' and 'supporting screenshots' directory
### c. To run this repository on your local system
* Clone this repository or download it.
* make a virtual environment in python 3.7
* install the all libraries reqirements.txt
* Run yolo_custom.py file.
* You will see the 2 window as outcome: one will be input image.. another one will be output image..