I have downloaded the google vision api from https://github.com/googlesamples/ios-vision. And I tried Barcode detector example, When I try to scan a linear and 2D barcodes, the scanned area(purple shape) shows in wrong location on preview layer.
Note: This issue only occurs when I hold the device horizontally at the top of barcode.
Herewith I have attached the screenshot which reflects this issue.
Thank you!