1. An image processing apparatus, comprising: a two-dimensional matrix barcode detecting unit configured to detect a two-dimensional matrix barcode if an image of image data includes the two-dimensional matrix barcode; and a broken matrix barcode detecting unit configured to determine whether a broken two-dimensional matrix barcode exists in the image or not when the two-dimensional matrix barcode detecting unit does not detect the two-dimensional matrix barcode but detects at least one position detection pattern, wherein the broken matrix barcode detecting unit is further configured to determine whether the broken two-dimensional matrix barcode exists in the image or not on the basis of a pattern in a predetermined position adjacent to the detected position detection pattern.