Add createsample function for extracting annotated positive frames, or generate negatives based on positive annotated frames