Abstract
A camera includes a sensor assembly and a lock mechanism. The sensor assembly includes a movable member and an image sensor coupled to the movable member and configured to move together with the movable member. The lock mechanism is configured to lock the movable member to limit movement of the movable member. The lock mechanism includes a coil assembly and a magnetic attraction assembly. The coil assembly or the magnetic attraction assembly is configured to move closer to or away from the movable member under an action of a magnetic field force in response to the coil assembly being energized, to lock or unlock the movable member.