Skip to content

byteB8/barcode-detection-and-reading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

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. Screenshot1

    Screenshot2

  • 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. Screenshot3

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

  • Barcode frequency with its value: Screenshot5

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..

About

Use of yolo in custom image detection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors