Skip to content

tony-xlh/object-detection-and-barcode-reading

Repository files navigation

object-detection-and-barcode-reading

A Python demo running object detection and barcode reading.

It first detects objects using Yolo v8 and then reads barcodes from the detected objects with Dynamsoft Barcode Reader.

The objects will be drawn on the image. If the object does not contain a barcode, it will be highlighted.

image

Files explanation:

  • predict.py: use YOLOv8 to detect objects and read barcodes.
  • opencv.py: a version using OpenCV's DNN for inference.
  • convertToONNX.py: convert the YOLO model into ONNX.
  • findContours.py: detect contours and read barcodes.
  • inrange.py: use OpenCV's inrange for segmentation based on colors.
  • create_dataset.py: create a dataset in YOLO's format using segmentation based on color to generate the annotations.

Blog

Object Detection and Barcode Reading

About

A Python demo running object detection and barcode reading.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages