Knowledgator UTCA
KnowledgatorGitHubDiscord
  • Welcome to UTCA documentation!
  • Quickstart
  • Concepts
    • Components
    • Types of components
    • ExecutionSchema
    • Context
    • Scopes
  • Development and Contribution
    • Contribution
    • Future relises
  • Framework structure
  • Core
    • Component
    • BaseExecutor
    • Action
    • Executable
    • Evaluator
    • Memory management
    • Schemas
    • Exceptions
  • Structural components
    • ExecutionSchema
    • Switch
    • ForEach
    • Filter
    • While
    • Condition
    • BREAK
    • Log
  • Base Actions
    • Flush
    • AddData
    • RenameAttribute
    • RenameAttributeQuery
    • SetValue
    • UnpackValue
    • NestToKey
    • ExecuteFunction
  • Predictors
    • Predictor
    • Transformers predictors
    • Transformers schemas
    • TokenSearcherPredictor
    • ComprehendItPredictor
    • GLiNERPredictor
    • OpenAIChatGPTPredictor
    • OpenAIWhisperPredictor
  • Tasks
    • Task
    • ComprehendIt
    • TokenSearcherTextCleaner
    • TokenSearcherNER
    • TokenSearcherQandA
    • TokenSearcherRelationExtraction
    • GLiNER
    • GLiNERRelationExtraction
    • GLiNERQandA
    • OpenAIChat
    • WhisperSpeechToText
    • TransformersTextToSpeech
    • TransformersChartsAndPlotsAnalysis
    • TransformersDocumentQandA
    • TransformersImageClassification
    • TransformersVisualQandA
    • TransformersObjectDetection
    • TransformersTextEmbedding
    • TransformersEntityLinking
    • TransformersTokenClassifier
    • TransformersTextSummarization
    • TransformersTextualQandA
    • TransformersTextClassification
    • TransformersChat
    • Objects
    • Chat tasks utilities
    • Relation extraction tasks utilities
  • Executable Schemas
    • SemanticSearchSchema
    • Web2Meaning
    • RequestsHTML
  • Datasources
    • Audio
    • DB
      • SQL
      • Neo4j
      • Chroma
      • Qdrant
    • Google Documents
    • Google Sheets
    • Image
    • Index
    • JSON
    • PDF
    • Plain text
    • Video
  • Conditions
    • RePattern
    • SemanticCondition
  • APIs
    • GoogleCloudClient
  • Integrations
    • Google Cloud
  • Examples
    • Basic image classification
    • Text to speech
    • PDF document processing
Powered by GitBook
On this page
  • Module: implementation.datasources.video
  • VideoRead
  • execute
  • VideoWrite
  • execute
  • VideoReleaseCapture
  • execute
  1. Datasources

Video

Actions for handling video files

PreviousPlain textNextConditions

Last updated 1 year ago

Module: .datasources.video



VideoRead

Read video file. Subclass of . Type of [Dict[str, Any], cv2.VideoCapture]


execute

Arguments:

  • input_data (Any): Expected keys:

    • "path_to_file" (str): Path to video file;

Returns:

  • .VideoCapture: Video;




VideoWrite


execute

Arguments:

  • input_data (Any): Expected keys:

    • "path_to_file" (str): Path to video file;

    • "fourcc" (str): Codec to use;

    • "fps" (int): FPS to use;

    • "width" (int): Frame width to use in pixels;

    • "height" (int): Frame height to use in pixels;

    • "frames" (ndarray): Frames to write;

Raises:

  • Exception: If unable to write file.




VideoReleaseCapture


execute

Arguments:

  • input_data (cv2.VideoCapture): Video capture to release.



Write video frame by frame to file. Subclass of . Type of [Dict[str, Any], None]

Release video capture. Subclass of . Type of [cv2.VideoCapture, None]

Action
Action
Action
Action
Action
Action
cv2
implementation