19. An apparatus, comprising: a processor; and a non-transitory computer-readable storage medium storing a program to be executed by the processor, the program including instructions for: segmenting a video in a sample video library according to a time sequence, to obtain a segmentation result having neighboring segments of the video that at least partially overlap in time; generating a motion atom set, wherein the sample video library comprises at least one video, and wherein a motion atom in the motion atom set is generated according to the video in the sample video library; generating, using the motion atom set and the segmentation result, a motion phrase set corresponding to the video in the sample video library, wherein the motion phrase set comprises at least two motion phrases; screening the motion phrases and obtaining a screening result; generating, according to the screening result, a descriptive vector corresponding to the video in the sample video library; and determining, using the descriptive vector, a to-be-detected video whose category is the same as that of the video in the sample video library.
19. An apparatus, comprising: a processor; and a non-transitory computer-readable storage medium storing a program to be executed by the processor, the program including instructions for: segmenting a video in a sample video library according to a time sequence, to obtain a segmentation result having neighboring segments of the video that at least partially overlap in time; generating a motion atom set, wherein the sample video library comprises at least one video, and wherein a motion atom in the motion atom set is generated according to the video in the sample video library; generating, using the motion atom set and the segmentation result, a motion phrase set corresponding to the video in the sample video library, wherein the motion phrase set comprises at least two motion phrases; screening the motion phrases and obtaining a screening result; generating, according to the screening result, a descriptive vector corresponding to the video in the sample video library; and determining, using the descriptive vector, a to-be-detected video whose category is the same as that of the video in the sample video library. 20. The apparatus according to claim 19 , wherein the instructions for determining the to-be-detected video whose category is the same as that of the video in the sample video library comprise instructions for: generating a response vector corresponding to the to-be-detected video; obtaining a second classification rule according to a descriptive vector corresponding to each video in the sample video library, wherein the second classification rule is used to detect whether the category of the to-be-detected video is the same as that of the video in the sample video library; detecting whether the response vector of the to-be-detected video conforms to the second classification rule; and determining that the category of the to-be-detected video is the same as that of the video in the sample video library in response to the response vector of the to-be-detected video conforming to the second classification rule.