An image obtaining method, wherein the method comprises: when a terminal device moves, collecting, by a motion sensor, motion data of the terminal device, and sending the motion data to an optical image stabilization, OIS, controller, wherein the terminal device comprises the motion sensor, the OIS controller, an electronic image stabilization, EIS, controller, and an image sensor; controlling, by the OIS controller, movement of a lens of the terminal device based on the motion data; collecting, by the image sensor, an image sequence; and performing, by the EIS controller by using movement information of the lens and the motion data, jitter compensation on the image sequence collected by the image sensor; wherein before the performing, by the EIS controller by using movement information of the lens and the motion data, jitter compensation on the image sequence collected by the image sensor, the method further comprises: obtaining, by the OIS controller, the motion data and the movement information of the lens when the image sensor collects each frame of image by using a frame synchronization signal, wherein the frame synchronization signal detects start and end of exposure of a frame of image; and sending, by the OIS controller, the motion data corresponding to each frame of image and the movement information of the lens corresponding to each frame of image matched by using the frame synchronization signal to the EIS controller; and the performing, by the EIS controller by using movement information of the lens and the motion data, jitter compensation on the image sequence collected by the image sensor comprises: performing, by the EIS controller by using the motion data and the movement information of the lens that are sent by the OIS controller and obtained based on the frame synchronization signal, jitter compensation on the image sequence collected by the image sensor. when a terminal device moves, collecting, by a motion sensor, motion data of the terminal device, and sending the motion data to an optical image stabilization, OIS, controller, wherein the terminal device comprises the motion sensor, the OIS controller, an electronic image stabilization, EIS, controller, and an image sensor; controlling, by the OIS controller, movement of a lens of the terminal device based on the motion data; collecting, by the image sensor, an image sequence; and performing, by the EIS controller by using movement information of the lens and the motion data, jitter compensation on the image sequence collected by the image sensor; wherein before the performing, by the EIS controller by using movement information of the lens and the motion data, jitter compensation on the image sequence collected by the image sensor, the method further comprises: obtaining, by the OIS controller, the motion data and the movement information of the lens when the image sensor collects each frame of image by using a frame synchronization signal, wherein the frame synchronization signal detects start and end of exposure of a frame of image; and sending, by the OIS controller, the motion data corresponding to each frame of image and the movement information of the lens corresponding to each frame of image matched by using the frame synchronization signal to the EIS controller; and obtaining, by the OIS controller, the motion data and the movement information of the lens when the image sensor collects each frame of image by using a frame synchronization signal, wherein the frame synchronization signal detects start and end of exposure of a frame of image; and sending, by the OIS controller, the motion data corresponding to each frame of image and the movement information of the lens corresponding to each frame of image matched by using the frame synchronization signal to the EIS controller; and the performing, by the EIS controller by using movement information of the lens and the motion data, jitter compensation on the image sequence collected by the image sensor comprises: performing, by the EIS controller by using the motion data and the movement information of the lens that are sent by the OIS controller and obtained based on the frame synchronization signal, jitter compensation on the image sequence collected by the image sensor.