Hello shrinand , our cameras don't have optical zoom, but you could use high-res image (eg 1080P), downscale it to the resolution that barcode detection network requires (eg 300x300), get bounding boxes and crop the 1080P frame to get a higher-res image of the barcode.
Thanks, Erik