data_juicer.utils.ASD_mapper_utils module#
- data_juicer.utils.ASD_mapper_utils.detect_and_mark_anomalies(data, window_size=7, std_multiplier=2)[源代码]#
- data_juicer.utils.ASD_mapper_utils.crop_video_with_facetrack(video_array, track, cropFile, audioFilePath, is_empty=False)[源代码]#
- data_juicer.utils.ASD_mapper_utils.annotate_video_with_bounding_boxes_with_audio(video_path, q_human_video_track_bbox, output_path)[源代码]#
- data_juicer.utils.ASD_mapper_utils.annotate_video_with_bounding_boxes_withText_with_audio(video_path, q_human_video_track_bbox, output_path, numbers)[源代码]#
- data_juicer.utils.ASD_mapper_utils.annotate_video_with_bounding_boxes(video_array, frame_indices, bounding_boxes, output_path)[源代码]#
Annotates specified frames in the video with bounding boxes and saves the result to a new video file.
- 参数:
video_array -- Input video as a numpy array with shape (num_frames, height, width, channels).
frame_indices -- List of frame indices to annotate.
bounding_boxes -- Array of bounding box coordinates with shape (num_frames_to_annotate, 4), where each bounding box is (x, y, w, h).
output_path -- Path to save the output video.