1. A method for detecting distance in a smart portable device comprising: acquiring an image of a target object; calculating a length of a side of the target object in the image; acquiring a predicted length of the side of the target object; and determining a distance between the smart portable device and the target object according to the length of the side of the target object in the image and the predicted length.