Now a day's QR barcodes are becoming popular because it can store more information as compared to one dimensional barcode so many marketing companies use QR barcodes for advertisements. The barcodes can be decoded and stored information can be retrieved easily with mobile phone having barcode scanner application. The main problem arises when the image is captured in low contrast; uneven illumination and blur motion can be added. Another problem arises when the geometry of code is distorted because while capturing the image projection angle is not correct. If the captured images are blurred and geometrically incorrect then it is not readable. As the basic requirement of a code reader is that the image should be a perfect square and no blurriness should be added to it. So, the algorithm should be able to deblur the blurred images and should read the code properly. Secondly, the algorithm should be able to perform geometric correction by converting the code into a perfect square so that it can be recognized easily.