CPC G06V 20/46 (2022.01) [G06F 18/214 (2023.01); G06V 10/454 (2022.01); G06V 10/82 (2022.01); G06V 20/41 (2022.01); G06V 20/44 (2022.01); G06V 40/20 (2022.01)] | 11 Claims |
1. A video sampling method, comprising:
sampling a video based on a sampling window to obtain a current sequence of sampled images;
acquiring action parameters corresponding to the current sequence of sampled images, wherein the action parameters comprise a probability that an action is contained in the current sequence of sampled images, and a completeness degree which indicates a completeness of the action contained in the current sequence of sampled images;
selecting a candidate action having a highest probability from among candidate actions included in the current sequence of sampled images sequence as the action;
determining whether the action is finished and whether the current sequence of sampled images contains the action based on a comparison between the probability and at least one first threshold, and a comparison between the completeness degree and at least one second threshold;
based on determining that the action contained in the current sequence of sampled images is not finished, calculating an incremental size of the sampling window according to the action parameters;
performing smoothing processing on the incremental size according to historical adjustment information of the sampling window;
determining a shifted position of the sampling window according to the incremental size;
adjusting the sampling window based on the shifted position; and
sampling the video based on the adjusted sampling window.
|