1. A method for operating an electronic device, the method comprising: receiving a captured image from a camera; recognizing an object in the captured image; generating a reference object by correcting an error included in the recognized object; and tracking the object using the generated reference object.