Skip to content

siddhantoon/sku-barcode-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sku-barcode-detection

Barcode detection on grocery items

Steps to Run:

  1. Run hsv_seg.py --images path/to/image/folder

Requirements: OpenCV-Contrib version 4.5.4

Input Image Predicted Result
drawing drawing

Prediction Print

drawing

Link to Result images


Methodology

Object Detection

  1. HSV Segmentation + edge detection to extract foreground.
  2. Morphological operations to get a better mask.
  3. Find contours and fit Rectangle to get Bounding Box.
  4. Crop item using B-Box
  5. Send the detected boxes(groery items) for barcode detection.

Barcode Detection

  1. OpenCV Barcode detector (from OpenCV-Contrib 4.5.4 package)
  2. Run detection on item, store detections.
  3. Display decoded barcodes with their count. (Draw Blue B-Box around them)
  4. Draw Yellow B-Box around Undecoded barcodes.
  5. Draw Red B-Box around item with no detected barcode.

About

Barcode detection on grocery items

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages