Timeline Studio API Documentation - v0.26.0
    Preparing search index...
    • Хук для работы с данными YOLO Предоставляет методы для загрузки, кэширования и получения данных распознавания объектов

      Returns {
          clearAllCache: () => void;
          clearVideoCache: (videoId: string) => void;
          errorStates: Record<string, string>;
          getAllYoloData: (videoId: string) => Promise<any>;
          getCacheStats: () => {
              cachedVideos: number;
              missingDataCount: number;
              nonExistentVideos: number;
              totalMemoryUsage: number;
          };
          getError: (videoId: string) => string;
          getSceneContext: (videoId: string, timestamp: number) => Promise<string>;
          getVideoSummary: (videoId: string) => Promise<any>;
          getYoloDataAtTimestamp: (
              videoId: string,
              timestamp: number,
          ) => Promise<YoloDetection[]>;
          hasYoloData: (videoId: string) => boolean;
          isLoading: (videoId: string) => boolean;
          loadingStates: Record<string, boolean>;
          loadYoloData: (videoId: string, videoPath?: string) => Promise<any>;
          preloadYoloData: (videoIds: string[]) => Promise<void>;
      }