The application discloses a
camera module and an electronic device. The
camera module comprises a shell, a motor
assembly arranged in the shell, an optical lens arranged in the shell, a light shielding
assembly arranged in a slot of the shell, a filter arranged on the image side of the light shielding
assembly, and a photosensitive
chip arranged on the image side of the filter. The
camera module can reduce the generation of
stray light and improve the
imaging quality.