군중감지1 Crowd11 Preprocessing Crowd11은 여러가지 길이와 크기를 가진 데이터셋들의 집합이다. 이를 사용하기 위해선 일정한 규격으로 클립을 생성하는 전처리 과정이 필요하다. 다음은 preprocessing.py의 코드다. # import numpy as np import skvideo.io # import cv2 import os import subprocess import csv from collections import namedtuple Clip = namedtuple('Clip', 'video_name label start_frame end_frame width height left_distance top_distance dataset scene_number crop_number') INPUT_FOLDER = "./VOI/.. 2022. 6. 24. 이전 1 다음