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.
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'sinrange
for segmentation based on colors.create_dataset.py
: create a dataset in YOLO's format using segmentation based on color to generate the annotations.