The embodiment of the invention provides a camera
assembly and an electronic device. The camera
assembly comprises a camera, a decorative part, an
optical filter and a light-transmitting cover plate.The camera is provided with a lens and a base connected with the lens. The
signal sensing
chip is fixed in the base. The lens is right opposite to the
signal induction
chip. The decorating part is fixed on the base. The decorating part is provided with a through hole directly facing the lens, the light-transmitting cover plate is fixedly connected with the decorating part and covers the through hole, the
optical filter is fixed to the side, close to or away from the through hole, of the light-transmitting cover plate and directly faces the lens, and the
signal sensing
chip can obtain shootinglight through the lens and the
optical filter. According to the camera
assembly, the optical filter installed inside the camera and the supporting frame for bearing the optical filter can be omitted,the structure of the camera can be simplified, the size can be reduced, and the arrangement space of the camera in the electronic device can be saved.