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