Patent ID: 11922597
Assignee: BEIJING YOUZHUJU NETWORK TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 11:
12. An electronic device, comprising:
memory; and
a processor coupled to the memory, the processor configured to execute the video processing method for performing instructions comprising:
preprocessing a target video to obtain a plurality of target image frames of the target video, wherein the plurality of target image frames are arranged in a same order as in the target video;
identifying a position of a designated object in each of the target image frames; and
determining a reserved image frame from the target image frames based on the position of the designated object in each of the target image frames, comprising:
for each of the target image frames, determining a target proportion and a target weight corresponding to the target image frame based on the position of the designated object in the target image frame, wherein the target proportion is used to indicate a proportion of the designated object in the target image frame, and the target weight is determined based on weights of various pixels in the target image frame;
using a target image frame having a target proportion greater than a preset proportion threshold and coming first in order as a first target image frame;
using a target image frame having a target weight greater than a preset weight threshold and coming first in order as a second target image frame; and
determining the reserved image frame based on the first target image frame and the second target image frame, the reserved image frame being used to indicate a cropping on image frames before the reserved image frame in the target video.