1. An object recognition method, applied to an object recognition apparatus and comprising: acquiring a real-time image comprising a first object; performing a chamfer distance transform on the first object of the real-time image to produce a chamfer image comprising a first modified object; acquiring a plurality of preset image templates comprising a second object; performing the chamfer distance transform on the second object of each of the plurality of preset image templates to produce a chamfer template comprising a second modified object; determining whether difference between the first modified object and one of the second modified objects is less than a first preset error threshold; and when the difference between the first modified object and the second modified object is less than the first preset error threshold, looking up a control command according to the preset image template corresponding to the second modified object, the object recognition apparatus operating according to the control command.