A lens module (800) includes a lens barrel (20), a base (10), and a
temperature compensation module (30). A first lens (201) is disposed in
the lens barrel. The lens barrel is disposed in the base. The temperature
compensation module is detachably installed in the base, and the
temperature compensation module includes a temperature compensation lens
(302). The temperature compensation lens is configured for compensating
for deformation of the first lens caused by temperature changes.