A computer implemented method of aligning image frames, comprising obtaining a plurality of original image frames, the plurality of original image frames comprising a reference image frame and a plurality of to-be-aligned image frames; obtaining a brightness image of the reference image frame and a brightness image of each of the to-be-aligned image frames; and for each of the to-be-aligned image frames, obtaining at least one mapping model between the reference image frame and the to-be-aligned image frame based on the brightness image of the reference image frame and the brightness image of the to-be-aligned image frame, and aligning the to-be-aligned image frame with the reference image frame based on the at least one mapping model, obtaining at least one mapping model between the reference image frame and the to-be-aligned image frame based on the brightness image of the reference image frame and the brightness image of the to-be-aligned image frame, comprises: obtaining target feature point pairs between the reference image frame and the to-be-aligned image frame; selecting a second preset number of target feature point pairs from the obtained target feature point pairs, to calculate the mapping model between the reference image frame and the to-be-aligned image frame; characterized in that the method further comprises: obtaining respective predicted positions of a third preset number of target feature points, among the second preset number of target feature point pairs, in the to-be-aligned image frame according to the calculated mapping model; counting a number of target feature points, among the third preset number of target feature points, for each of which an offset between the predicted position and the actual position in the to-be-aligned image frame is less than or equal to an offset threshold; and in response to determining that the counted number is greater than a number threshold, taking the calculated mapping model as a target mapping model. obtaining a plurality of original image frames, the plurality of original image frames comprising a reference image frame and a plurality of to-be-aligned image frames; obtaining a brightness image of the reference image frame and a brightness image of each of the to-be-aligned image frames; and for each of the to-be-aligned image frames, obtaining at least one mapping model between the reference image frame and the to-be-aligned image frame based on the brightness image of the reference image frame and the brightness image of the to-be-aligned image frame, and aligning the to-be-aligned image frame with the reference image frame based on the at least one mapping model, obtaining at least one mapping model between the reference image frame and the to-be-aligned image frame based on the brightness image of the reference image frame and the brightness image of the to-be-aligned image frame, comprises: obtaining target feature point pairs between the reference image frame and the to-be-aligned image frame; selecting a second preset number of target feature point pairs from the obtained target feature point pairs, to calculate the mapping model between the reference image frame and the to-be-aligned image frame; characterized in that the method further comprises: obtaining respective predicted positions of a third preset number of target feature points, among the second preset number of target feature point pairs, in the to-be-aligned image frame according to the calculated mapping model; counting a number of target feature points, among the third preset number of target feature points, for each of which an offset between the predicted position and the actual position in the to-be-aligned image frame is less than or equal to an offset threshold; and in response to determining that the counted number is greater than a number threshold, taking the calculated mapping model as a target mapping model. obtaining target feature point pairs between the reference image frame and the to-be-aligned image frame; selecting a second preset number of target feature point pairs from the obtained target feature point pairs, to calculate the mapping model between the reference image frame and the to-be-aligned image frame; characterized in that the method further comprises: obtaining respective predicted positions of a third preset number of target feature points, among the second preset number of target feature point pairs, in the to-be-aligned image frame according to the calculated mapping model; counting a number of target feature points, among the third preset number of target feature points, for each of which an offset between the predicted position and the actual position in the to-be-aligned image frame is less than or equal to an offset threshold; and in response to determining that the counted number is greater than a number threshold, taking the calculated mapping model as a target mapping model. obtaining respective predicted positions of a third preset number of target feature points, among the second preset number of target feature point pairs, in the to-be-aligned image frame according to the calculated mapping model; counting a number of target feature points, among the third preset number of target feature points, for each of which an offset between the predicted position and the actual position in the to-be-aligned image frame is less than or equal to an offset threshold; and in response to determining that the counted number is greater than a number threshold, taking the calculated mapping model as a target mapping model.