An embodiment of the present invention provides a
defogger method, an electronic device, and a storage medium. The
defogger method includes: in response to recognizing that a user's
hand motion trajectory matches a preset
hand motion trajectory, acquiring and analyzing a target image, the target image being an image of a vehicle window and / or
windshield; in response to the target image including a first water mist trace, determining whether
fog is generated in the vehicle based on the first water mist trace and the
hand motion trajectory; and in response to determining that
fog is generated in the vehicle, turning on a
defogger mode. In an embodiment of the present invention, while the vehicle is driving, if the user wants to turn on the defogger mode, the user can slide on the vehicle window and / or
windshield to form a preset hand motion trajectory, and a first water mist trace will appear on the vehicle window and / or
windshield. After the processor determines that
fog is generated in the vehicle based on the first water mist trace and the hand motion trajectory, the defogger mode can be automatically turned on, without the driver having to manually turn on the defogger. The
processing process is simple, and the defogger is more timely.