1. An electronic device, comprising: a sensor configured to scan an image from an image recognition area; and a processor in communication with the sensor, the processor configured to: determine a current charging state of the electronic device; determine a current image recognition threshold value according to the current charging state; obtain a target image from the sensor; extract feature information associated with the target image; and perform image recognition according to the feature information and the current image recognition threshold value.