1. A method for processing an image to identify an aztec code, the method comprising: segmenting the image into plurality of image segments of equal size; analyzing the plurality of image segments to determine image segments having higher percentage of dark color regions; merging the determined image segments together to form a segmented image; masking the segmented image by plurality of masks to obtain plurality of gradient images; processing the plurality of gradient images to widen separation between dark color pixels and light color pixels; merging the processed gradient images together to form a processed image; reducing pixel intensity of the processed image to form a normalized image; and binarizing the normalized image to obtain only black and white color pixels in binarized image.