1. A method for operating an electronic device, the method comprising: tracking an object recognized in at least one digital image, wherein the tracking of the object comprises: generating a reference object using at least a part of the object recognized in the at least one digital image; and tracking the object using the reference object.