Skip to content
Tutorials3 min read

توصيف الفيديو مع عناصر تحكم إطار بإطار

أعدّ مهام توصيف الفيديو مع تنقل دقيق بين الإطارات وعلامات الطوابع الزمنية ووسم الأحداث الزمنية.

Potato Team·

توصيف الفيديو مع عناصر تحكم إطار بإطار

يتيح توصيف الفيديو إنشاء بيانات تدريب للتعرف على الأفعال وتتبع الأجسام وكشف الأحداث الزمنية. يغطي هذا الدرس التنقل بين الإطارات والتجزئة الزمنية وسير عمل توسيم الفيديو الفعّال.

إمكانيات توصيف الفيديو

يدعم Potato توصيف الفيديو لمهام التوسيم والتصنيف:

  • تصنيف الفيديو: وسم مقاطع فيديو كاملة
  • الوسم متعدد التسميات: تطبيق عدة وسوم على الفيديو
  • التوصيف الزمني: تحديد الأحداث في الفيديو

إعداد الفيديو الأساسي

yaml
annotation_task_name: "Video Action Recognition"
 
data_files:
  - "data/videos.json"
 
annotation_schemes:
  - annotation_type: video_annotation
    name: action
    description: "What action is shown in this video?"
    labels:
      - Walking
      - Running
      - Jumping
      - Sitting
      - Standing
      - Other

التنقل إطار بإطار

yaml
annotation_schemes:
  - annotation_type: video_annotation
    name: frame_label
    description: "Annotate video frames"
    labels:
      - Action
      - No action

توصيف المقاطع الزمنية

حدد الأحداث بأوقات البداية والنهاية:

yaml
annotation_task_name: "Video Event Detection"
 
data_files:
  - "data/videos.json"
 
annotation_schemes:
  - annotation_type: video_annotation
    name: events
    description: "Mark all events and their duration"
    labels:
      - name: conversation
        color: "#4ECDC4"
      - name: action_sequence
        color: "#FF6B6B"
      - name: transition
        color: "#45B7D1"
      - name: title_card
        color: "#FFEAA7"

إنشاء المقاطع

  1. انتقل إلى بداية الحدث
  2. اضغط [ أو انقر "تحديد البداية"
  3. انتقل إلى نهاية الحدث
  4. اضغط ] أو انقر "تحديد النهاية"
  5. اختر تسمية الحدث
  6. كرر لجميع الأحداث

تصنيف الفيديو

صنّف محتوى الفيديو بالتسميات:

yaml
annotation_schemes:
  - annotation_type: video_annotation
    name: key_moments
    description: "Mark important moments"
    labels:
      - name: action_start
        description: "When the action begins"
        color: "#22C55E"
      - name: action_peak
        description: "Most intense moment"
        color: "#EF4444"
      - name: action_end
        description: "When the action completes"
        color: "#3B82F6"

تصنيف لكل فيديو

صنّف الفيديوهات بأنواع التوصيف القياسية:

yaml
annotation_schemes:
  - annotation_type: radio
    name: video_label
    description: "What is happening in this video?"
    labels:
      - Person visible
      - No person
      - Transition/blur

فيديو مع تسميات

وصّف الفيديوهات بتسميات الفئات:

yaml
annotation_schemes:
  - annotation_type: video_annotation
    name: video_labels
    description: "Label video content"
    labels:
      - name: person
        color: "#FF6B6B"
      - name: vehicle
        color: "#4ECDC4"
      - name: ball
        color: "#FFEAA7"

إعداد توصيف الفيديو الكامل

yaml
annotation_task_name: "Sports Video Analysis"
 
data_files:
  - "data/sports_clips.json"
 
output_annotation_dir: "annotations/"
output_annotation_format: "jsonl"
 
annotation_schemes:
  # Game events
  - annotation_type: video_annotation
    name: game_events
    description: "Mark game events"
    labels:
      - name: goal
        color: "#22C55E"
      - name: foul
        color: "#EF4444"
      - name: corner_kick
        color: "#3B82F6"
      - name: free_kick
        color: "#F59E0B"
      - name: penalty
        color: "#EC4899"
      - name: offside
        color: "#8B5CF6"
 
  # Clip-level annotation
  - annotation_type: multiselect
    name: clip_tags
    description: "Tags for this clip"
    labels:
      - Highlight worthy
      - Good camera angle
      - Multiple players
      - Close-up
      - Wide shot
      - Slow motion available
 
annotation_guidelines:
  title: "Sports Video Annotation Guide"
  content: |
    ## Event Marking
    - Mark events from when they START
    - Include the full play sequence
    - Goal: From shot to ball crossing line
 
    ## Navigation
    - Space: Play/Pause
    - Arrow keys: Frame navigation

تنسيق المخرجات

json
{
  "id": "clip_001",
  "video_path": "/videos/match_highlight.mp4",
  "annotations": {
    "game_events": ["goal", "corner_kick"],
    "clip_tags": ["Highlight worthy", "Good camera angle"]
  }
}

نصائح لتوصيف الفيديو

  1. نظرة عامة أولى: شاهد بالسرعة العادية أولاً
  2. حركة بطيئة للدقة: استخدم سرعة 0.25x للطوابع الزمنية الدقيقة
  3. اختصارات لوحة المفاتيح: أسرع بكثير من الفأرة
  4. خذ استراحات: توصيف الفيديو مُرهق بصرياً
  5. معايير متسقة: وثّق الحالات الحدية بوضوح

الخطوات التالية


التوثيق الكامل في /docs/features/image-annotation (قسم الفيديو).