Skip to content

vedika-gupta/FrameExtractor-ObjectDetection

Repository files navigation

FrameExtractor-ObjectDetection

This project is a simple Python script that allows you to perform object detection on a specific frame of a video using OpenCV and a pre-trained object detection model. It's a useful tool for quickly analyzing the content of a video at a specific timestamp.

Features

  • Object Detection: Detects objects in a specified frame of a video using a pre-trained model.
  • User-Friendly: You can specify the timestamp (hh:mm:ss) for the frame you want to analyze.
  • Frame Saving: The detected objects are annotated, and you can save the frame as an image for later reference.

Usage

1. Requirements:

  • Python
  • OpenCV (cv2)
  • Matplotlib (for displaying images)

2. Setup:

Clone or download this repository to your local machine.

3. Usage:

  • Run the "main.py" script.
  • You'll be prompted to enter a timestamp in the format hh:mm:ss.
  • The script will extract the frame at that timestamp from the video and perform object detection.
  • The annotated frame is displayed using Matplotlib, and it's also saved as an image in the project directory.

Output

Frame_at_0_2_1

Frame_at_0_2_1_with_detection

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages