You have tagged this as Vision and Perspective, the methodology will differ for each.
Vision has an IP camera component but to my knowledge cannot natively process barcodes.
In vision I have used keyence scanner for 2D barcodes, but using a PLC as a middle-man.