I’ve shared this sample some time ago that includes 2D barcode recognition without using Document Understading
Hope it helps!