An electronic device, comprising a memory, a processor, and a computer program stored in the memory and capable of being run on the processor, the processor, when executing the program, causing the electronic device to perform an image processing method including:
- receiving padding frame information transmitted by a server and an image frame set of a to-be-processed image sequence, the padding frame information being generated by the server according to the image frame set;
- inputting the image frame set frame by frame to a cache queue of a decoder, and determining an image frame currently located at a first position of the cache queue as a target image frame;
- inserting padding frames between the target image frame and a next image frame subsequent the target image frame based on the padding frame information, so that the remaining frames other than the target image frame in the cache queue are the padding frames;
- using the next image frame subsequent the target image frame as a new target image frame in response to detecting that the target image frame is decoded, and performing the operation of inserting padding frames between the new target image frame and a next image frame subsequent the new target image frame based on the padding frame information, until all image frames in the image frame set are decoded;
- and
- processing the decoded image frames and displaying a processing result of the decoded image frames.