All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.api.VideoSegment Maven / Gradle / Ivy

The newest version!
package com.clarifai.api;

import java.util.List;

/**
 * Provides recognition results for a short interval of a video.
 * 

* When the input to a {@link RecognitionRequest} is video content, the corresponding * {@link RecognitionResult} will contain a list of VideoSegments, each of which may contain tags * and/or an embedding vector for a short interval of the video. */ public class VideoSegment { private final double timestamp; private final List tags; private final double[] embedding; VideoSegment(double timestamp, List tags, double[] embedding) { this.timestamp = timestamp; this.tags = tags; this.embedding = embedding; } /** Returns timestamp of the start of this segment, in seconds since the start of the video. */ public double getTimestampSeconds() { return timestamp; } /** * Returns a list of {@link Tag}s for the segment. This will be null if tags were not requested. */ public List getTags() { return tags; } /** * Returns an embedding vector representing the segment. This will be null if embeddings were * not requested. */ public double[] getEmbedding() { return embedding; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy