Object Detection

>

Prerequisites

Introduction of Modules used – 

OpenCV :-OpenCV is an open-source library dedicated to solving computer vision problems. Here CV stands for “Computer Vision”.

We can install this modules by using “pip3 install opencv-python” this command.

Open CV helps us in accessing our webcam’s input in real time. 

We can also apply Objetc Detection on a pre recorded video or any locally stored imges .

NumPy :-NumPy is a Python library used for working with arrays. It also has functions for working in domain of linear algebra, fourier transform, and matrices. NumPy was created in 2005 by Travis Oliphant. It is an open source project and you can use it freely.

Time Module :-We are using this module for calculating the realtime running FPS.

This is totally optional .


Description

Object Detection Using OpenCV and Python

The object detection works on the Viola-Jones algorithm, which was proposed by Paul Viola and Michael Jones. The aforementioned algorithm is based on machine learning. The first step involves training a cascade function with a large amount of negative and positive labeled images. Once the classifier is trained, identifying features, namely “HAAR Features,” are extracted from these training images. HAAR features are essentially rectangular features with regions of bright and dark pixels. 

How does Object Detection work?

Here we are yolo v3 algorithm for our work . We have pretrained model’s weights and config files with us .

As mentioned already, YOLO which stands for “You only look once” is a single shot detection algorithm which was introduced by Joseph Redmon in May 2016. Although the name of the algorithm may sound strange, it gives a perfect description of this algorithm as it predicts classes and bounding boxes for the whole image in one run of the algorithm.

YOLO performed surprisingly well as compared to the other single-shot detectors of that time in terms of speed and accuracy. It is not the most accurate algorithms when it comes to object detection but certainly, it makes that up with its impressive speed and thus is a good balance between speed and accuracy.


Output


Summary

Object detection is the process of identifying objects in an image or video stream. OpenCV is a popular library for performing computer vision tasks, including object detection, using various algorithms like Haar cascades, HOG+SVM, and deep learning-based approaches. With OpenCV and Python, object detection can be achieved by detecting and localizing objects of interest and classifying them into categories.

About Us

We are a team of geeks who are passionate about the field of artificial intelligence and its applications. Our goal is to provide high-quality information, resources, and practical implementation to help individuals and businesses succeed in the ever-evolving world of machine learning. Our team is composed of developers, and students who have a deep understanding of the principles and techniques of machine learning. We are constantly learning and staying up-to-date with the latest trends and advancements in the field, Read More...

Get in Touch

© Copyright 2022 by CodeH