Swift Avfoundation: QRcode scanning error in bright ambient
<p>I'm using the example from <a href="http://www.appcoda.com/qr-code-reader-swift/" rel="nofollow noreferrer">here</a> to built a qrcode scanning apps and it work perfectly fine for paper, or normal light</p>

<p>in normal condition, the qrcode is looks like below:
(the line are thicker and those dots are stick near to each other)
<a href="https://i.stack.imgur.com/NjpeC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NjpeC.jpg" alt="enter image description here"></a></p>

<p><strong>My problem:</strong> when the ambient is bright, and the phone is bright (especially from retina display like SamsungEdge 7), the qrcode scanned become like below. <strong>Unable to read the qrcode anymore!</strong>
(the line become thinner and the dots become smaller and further apart)
<a href="https://i.stack.imgur.com/h6sDZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h6sDZ.png" alt="enter image description here"></a></p>

<p>any suggestion or where/how i can fix this kind of error? because ZXING is enable to scan even in my 'error' scenario.</p>

<p>Thanks in advance! </p>