1. A method of retrieving information comprised in a barcode comprising: detecting whether or not the barcode is present in a first image, the first image being acquired by an image-acquiring device, having a first image quality and capturing a first region, wherein the detecting step is iterated continuously, wherein the first image is represented by a first image signal, and the detecting further comprises: applying one or more gradient filters to the first image signal to produce one or more gradient filtered signals, applying one or more dilation filters to the one or more gradient filtered signals to produce one or more dilation filtered signals, applying one or more erosion filters to the one or more dilation filtered signals to produce one or more erosion-filtered signals, finding closed areas in the one or more erosion-filtered signals, calculating, for at least one closed area, corresponding center of gravity coordinates, creating at least one sub-image based on the at least the closed area and the corresponding center of gravity coordinates, applying an erosion filter to the at least one sub-image to produce at least one erosion filtered sub-image, detecting edges in the at least one erosion filtered sub-image, transforming the at least one erosion-filtered sub-image to a Hough domain, and extracting one or more squares from the at least one erosion-filtered sub-image transformed to the Hough domain; acquiring by the image-acquiring device, when it is detected that the barcode is present, a second image having a second image quality and capturing a second region, wherein the second image quality is higher than the first image quality, and wherein the second region at least partly overlaps the first region; and decoding the barcode based on the second image to retrieve the information.