1. A method, comprising: obtaining, by a processing device, image data of an object; comparing, by the processing device, the image data with a pattern stored in memory, wherein the pattern identifies spatial information of corresponding pattern elements; determining, by the processing device, a confidence level of the comparison of the image data according to a success in matching the image data with the pattern elements; comparing, by the processing device, the confidence level with a confidence threshold associated with the pattern, wherein a plurality of patterns stored in memory are associated with corresponding confidence thresholds; and identifying, by the processing device, the pattern from the plurality of patterns based, at least in part, on comparing the confidence level with the confidence threshold, wherein the object is processed according to the identified pattern.