Skip to content

Real-time object detection and live stream analysis using Jetson Nano with TensorFlow Centernet ResNet_101 model, OpenCV, and RTSP stream integration.

Notifications You must be signed in to change notification settings

Hardik-111/DashboardOptivision

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

OptiVision: Real-time Object Detection and Analysis

OptiVision is a real-time object detection and analysis system capable of processing images, videos, and RTSP streams. It uses TensorFlow, OpenCV, and a sleek Flask web interface to provide real-time detection results, visualizations, and analytics for any object detection task.


Homepage

Welcome to OptiVision! This is the central page of the application where you can navigate to different sections for processing images, videos, and streams. The homepage provides quick access to each detection feature.

Homepage Image image


RTSP Stream

Stream live feeds from RTSP cameras and detect objects in real-time with precision.

Features:

  • Seamless connection to RTSP camera streams.
  • Real-time object detection and tracking.
  • Display detected objects live as the stream plays.

How to Use:

  1. Enter the RTSP stream URL or channel ID in the provided input field.
  2. Click Start Stream to begin receiving and analyzing the feed.
  3. Detected objects will be displayed live with bounding boxes.

Process Image

Upload static images for detailed object detection and analysis.

Features:

  • Upload any image to detect objects.
  • View detected objects with bounding boxes.
  • Save and download the processed image with detected objects.

image

How to Use:

  1. Click Upload Image and select an image from your computer.
  2. Set the detection threshold to control sensitivity.
  3. Click Process Image to view the results.
  4. Download the processed image by clicking the Download Image button.

Process Video

Analyze uploaded videos to identify and track objects frame by frame.

Features:

  • Upload video files for object detection.
  • Track objects across frames with bounding boxes.
  • Video playback with detected objects.

image

How to Use:

  1. Upload a video file by clicking Upload Video.
  2. Select the detection options (e.g., processing every nth frame).
  3. Click Start Processing to view the video with detected objects.
  4. Watch the video in real-time or download the processed video.

Process Stream

Connect and analyze streams from various sources for seamless detection.

Features:

  • Support for RTSP and HTTP-based stream sources.
  • Real-time frame-by-frame analysis.
  • View detected objects on a live video feed.

How to Use:

  1. Enter the stream URL (RTSP or HTTP).
  2. Click Start Stream to connect to the stream.
  3. View real-time object detection results.
  4. Optionally, download detection results.

Graphs & Analytics

Visualize detection performance and trends with interactive charts.

Features:

  • View detection statistics like object counts and accuracy over time.
  • Generate trend graphs for object detection performance.
  • Interactive and dynamic charts for better analysis.

image
image
image

How to Use:

  1. Select a date range to visualize the detection statistics.
  2. View the generated interactive graphs showing trends and performance.
  3. Analyze the data for further insights into detection accuracy.

Al Chatbot

Get instant help and insights from our intelligent assistant.

Features:

  • Chat with an AI-powered assistant for help.
  • Get real-time insights and troubleshooting for detection tasks.

chatbot-ai

How to Use:

  1. Open the chatbot by clicking the Chat with Assistant button.
  2. Type your question or request for help.
  3. Get responses to help guide you through any detection task or issue.

Real-Time Object Detection and Live Stream Analysis Using Jetson Nano

๐ŸŽฏ MINI PROJECT

๐Ÿ‘ฅ TEAM MEMBERS

  • Ganesh Patidar (20214061)
  • Hardik Kumar Singh (20214249)
  • Divyanshu (20214317)
  • Harsh Dave (20214534)

๐Ÿ“Œ CONTENTS


๐Ÿ“ข Problem Statement

  • Livestream Camera Integration with Jetson Nano Hardware
  • Object Detection on Images, Videos, and Livestream Feeds

๐Ÿ“– Introduction

This project implements a real-time object detection system using Jetson Nano, leveraging deep learning algorithms for accurate and efficient object classification. It enhances surveillance, security, and operational efficiency in various applications.

๐Ÿ’ก Motivation

The inspiration for this project stems from the critical need to improve security measures in public transport systems. By leveraging real-time CCTV feeds, we aim to provide an automated surveillance system that ensures passenger safety, particularly for vulnerable groups. Our goal is to enable authorities to detect potential security threats proactively.

๐Ÿš€ Applications

  • Surveillance and Security Systems
  • Traffic Management
  • Retail Analytics
  • Industrial Automation
  • Smart Cities
  • Environmental Monitoring

๐Ÿ” Proposed Work

  • Jetson Nano Setup
  • Live Stream Implementation
  • Data Collection & Model Training
  • Evaluation of Object Detection Models
  • Performance Analysis of Different Models

๐Ÿ›  Experimental Setup

1๏ธโƒฃ Setting Up Jetson Nano

  • Flashed the NVIDIA OS using Balena Etcher.
  • Installed JetPack SDK 4.4.0 for development.
  • Booted Jetson Nano and configured the environment.

2๏ธโƒฃ Live Streaming Implementation

  • Utilized OpenCV with CUDA for optimized real-time video processing.
  • Enabled efficient video capture and frame-by-frame object detection.

3๏ธโƒฃ Data Collection & Model Training

  • Collected data using simple_image_download.
  • Labeled images using labelImg.
  • Trained a YOLOv7 model using Google Colab for improved computational performance.

4๏ธโƒฃ Evaluation of Object Detection Models

  • Compared TensorFlow Model Zoo models:
    • SSD ResNet50 640x640
    • CenterNet ResNet101 FPNv1 512x512
  • Evaluated based on mean Average Precision (mAP) and inference time.

5๏ธโƒฃ Performance Metrics

  • Precision = TP / (TP + FP)
  • Recall = TP / (TP + FN)
  • mAP = Average of AP across all classes

๐Ÿ“Š Result Analysis

โœ… Accuracy Comparison

Model mAP (Accuracy)
CenterNet ResNet-101 Low
SSD ResNet-50 Moderate
YOLOv7 (Custom) High

โšก Inference Time Trade-offs

  • Fastest: CenterNet ResNet-101 (Low accuracy, high speed)
  • Balanced: SSD ResNet-50 (Moderate speed & accuracy)
  • Most Accurate: YOLOv7 (High accuracy, slower inference)

๐Ÿ“ท Example Results

Comparison Graph

Result Image_1

Result Image_2

Result Image_3

Result Image_4

๐Ÿ›‘ Challenges

  • Proxy Configuration Issues
  • Package Installation Errors
  • SSL Wrong Version Number
  • Python Version Conflicts
  • Extended Training Time
  • Jetson Nano Compatibility Issues
  • Unexpected Shutdowns During Execution

๐Ÿ”ฎ Future Work

  • Performance Optimization
  • Cloud Integration
  • Real-time Alerts & Notifications
  • Enhanced User Interface
  • IoT Device Integration

๐Ÿ“š References

  1. Abadi, M. et al. TensorFlow Model Zoo
  2. Liu, W., Anguelov, D., et al. SSD: Single Shot Multibox Detector, ECCV (2016)
  3. Redmon, J., et al. YOLO: Unified, Real-Time Object Detection, IEEE TPAMI (2016)
  4. Wang, J., et al. YOLOv7: Trainable Bag of Freebies, IEEE TPAMI (2021)
  5. PyTorch for Jetson

๐Ÿš€ Thank you! We appreciate your time in reviewing our project! ๐ŸŽฏ

About

Real-time object detection and live stream analysis using Jetson Nano with TensorFlow Centernet ResNet_101 model, OpenCV, and RTSP stream integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 48.7%
  • HTML 30.5%
  • CSS 16.7%
  • JavaScript 4.1%