SlideShare uma empresa Scribd logo
1 de 21
Object detection using OpenCV-PYTHON
GUIDED BY:
Mrs Swarna Laxmi Sahoo
Asst. Professor
Dept. of Production Engineering
PRESENTED BY :
ABHIJITH PRABHAKARAN-36902
AMANRAJ SAHU- 36904
AVILASH PRADHAN-36909
NIKHIL AGRAWAL-36923
GOPAL KRISHNA MISTRY-36948
SAI PABAN PATTANAIK-36955
SATYAJIT SATAPATHY-36968
Contents
INTRODUCTION
WHAT IS OBJECT DETECTION ?
WHAT IS OpenCV ?
LITERATURE REVIEW
OBJECTIVE
HARDWARE SPECS
METHEDOLOGY
CODING IN OpenCV USING PYTHON
ADVANTAGES AND DISADAVANTAGES
 Object detection and location in digital images has become one of the most important applications
for industries to ease user, save time and to achieve parallelism.
 This is not a new technique but improvement in object detection is still required in order to achieve
the targeted objective more efficiently and accurately.
 The main aim of studying and researching computer vision is to simulate the behavior and manner
of human eyes directly by using a computer and later on develop a system that reduces human
efforts.
 Computer vision is such kind of research field which tries to perceive and represents the 3D
information for world objects. Its main purpose is reconstructing the visual aspects of 3D objects
after analyzing the 2D information extracted.
 Real life 3D objects are represented by 2D images.
INTRODUCTION
WHAT IS OBJECT DETECTION ?
Object detection is a computer technology related to computer vision and image processing that
deals with detecting instances of semantic objects of a certain class (such as humans, buildings, or
cars) in digital images and videos. Well-researched domains of object detection include face
detection and pedestrian detection. Object detection has applications in many areas of computer
vision, including image retrieval and video surveillance.
 OpenCV (Open Source Computer Vision) is an open source computer vision and machine
learning software library. OpenCV was initially built to provide a common infrastructure for
applications related to computer vision and to increase the use of machine perception in the
commercial products. As it is a BSD-licensed product so it becomes easy for businesses to
utilize and modify the existing code in OpenCV.
 For OpenCV to work efficiently with python 2.7 we need to install NumPy package first.
WHAT IS Opencv?
SL
NO.
AUTHOR YEAR JOURNAL NAME FINDINGS
1
JosephSantosh
Redmon, Divvala,
Ross Girshick, Ali
Farhadi
2016
You Only Look
Once: Unified,
Real-Time Object
Detection
In comparison with Object detection techniques that
came before YOLO, like R-CNN, YOLO introduced a
single unified architecture for regression go image into
bounding boxes and finding class probabilities for each
box. This meant that YOLO performed much faster and
also provided more accuracy. It could also predict
artwork correctly.
2
Chengji Liu, Yufan
Tao, Jiawei Liang, Kai
Li1, Yihang Chen
2018
Object Detection
Based on YOLO
Network
The experiment showed that the model trained
with the standard sets does not have good
generalization ability for the degraded images
and has poor robustness. Then the model was
trained using degraded images which resulted in
improved average precision. It was proved that
the average precision for degraded images was
better in general degenerative model compared
to the standard model.
Literature review
3
Wenbo Lan, Jianwu
Dang, Yangping
Wang, Song Wang
2018
Pedestrian
Detection Based
on YOLO
Network Model
The YOLO v2 and YOLO-R network models were
tested on the test set of the INRIA data set. The
experimental results show that the YOLO-R
network model is superior to the original YOLO v2
network model. The number of detection frames
reached 25 frames/s, basically meeting the
requirement of realtime performance.
Objective
Object detection has multiple applications such as face detection, vehicle detection, pedestrian
counting, self-driving cars, security systems, etc.
The two major objectives of object detection include:
• To identify all objects present in an image
• Filter out the object of attention
Hardware specs
 RASPBERRY PI
Raspberry Pi is a Pocket-sized microcomputer.
 RASPBIAN OS
Raspbian OS is specially available for Raspberry Pi.
 PYTHON
Created in late 1980‟s, python is a high level, multipurpose, programmer - friendly
language.
 NUMPY
It is a library for Python used to handle large multidimensional arrays and
matrices. It is open source with an active community.
 OPENCV
OpenCV is an image processing library written in optimized C/C++.It uses
multi core processing. It supports various platforms like Windows, Linux,
MacOs. It paves way for using different languages like Java, Python, C++,C.
 WEBCAM
A webcam is video camera that feeds or
streams its image in the real time to
our computer through a computer network.
methodology
A. Step 1
Our first task is to create the necessary folders. Folders like Object Detection as root folder;
Models as stores pretrained model; Input as stores image file on which we desire to perform
object detection; Output as stores image file with detected objects
B. Step 2
Open your preferred IDE for penning down the python code and create a new file, detector.py.
C. Step 3
Import Object Detection class from the ImageAI library.
D. Step 4
Now that one has imported imageAI library and the Object Detection class, the next most
important task is to create an instance of the class Object Detection.
E. Step 5
Now specify the path from our input image, output image and model.
F. Step 6
After instantiating the Object Detection class one can now call for various functions from
the class. The class contains the functions to call pre-trained models.
G. Step 7
Next you will call the function, which accepts a string which contains the path to the pre-
trained model.
H. Step 8
This steps calls the function load Model() from the detector instance. It loads the model
from the path specified using some class method.
I. Step 9
To detect objects in the image, we need to call the detect Object from Image function using
the detector object that we created.
J. Step 10
The dictionary items can be accessed by traversing through each item in the dictionary.
Now complete the object detection code.
import cv2
import numpy as np
import conveyor_lib
cap = cv2.VideoCapture(0)
# Conveyor belt library
relay = conveyor_lib.Conveyor()
while True:
_, frame = cap.read()
# Belt
belt = frame[209: 327, 137: 280]
gray_belt = cv2.cvtColor(belt, cv2.COLOR_BGR2GRAY)
_, threshold = cv2.threshold(gray_belt, 80, 255, cv2.THRESH_BINARY)
# Detect the Nuts
_, contours, _ = cv2.findContours(threshold, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
for cnt in contours:
(x, y, w, h) = cv2.boundingRect(cnt)
# Calculate area
area = cv2.contourArea(cnt)
# Distinguish small and big nuts
if area > 400:
# big nut
cv2.rectangle(belt, (x, y), (x + w, y + h), (0, 0, 255), 2)
# Stop belt
relay.turn_off()
elif 100 < area < 400:
cv2.rectangle(belt, (x, y), (x + w, y + h), (255, 0, 0), 2)
cv2.putText(belt, str(area), (x, y), 1, 1, (0, 255, 0))
cv2.imshow("Frame", frame)
cv2.imshow("belt", belt)
cv2.imshow("threshold", threshold)
key = cv2.waitKey(1)
if key == 27:
break
elif key == ord("n"):
relay.turn_on()
elif key == ord("m"):
relay.turn_off()
cap.release()
cv2.destroyAllWindows()
• OpenCV is available free of cost
•Since OpenCV library is written in C/C++ it is quite fast
•Low RAM usage (approx. 60–70 mb)
•It is portable as OpenCV can run on any device that can run C
•OpenCV does not provide the same ease of use when compared to MATLAB
•OpenCV has a flann library of its own. This causes conflict issues when you try to
use OpenCV library with the PCL library
Advantages:
Future scope
• With the inclusion of hardware such as arm an autonomous bot can be developed which
could assist in sorting and tracking.
• The program can be enhanced by the use of machine learning to increase the efficiency of
the object tracking and detection.
• Inclusion of conveyer belts and some other hardware could help in large scale industries .
References :
1. Khushboo Khurana and Reetu Awasthi,“Techniques for Object Recognition in Images
and Multi-Object Detection”,(IJARCET), ISSN:2278-1323,4th, April 2013.
2. Latharani T.R., M.Z. Kurian, Chidananda Murthy M.V,“Various Object Recognition
Techniques for Computer Vision”, Journal of Analysis and Computation, ISSN: 0973-
2861.
3. Md Atiqur Rahman and Yang Wang, “Optimizing Intersection-Over-Union in Deep
Neural Networks for Image Segmentation,” in Object detection, Department of
Computer Science, University of Manitoba, Canada, 2015.
4. Nidhi, “Image Processing and Object Detection”, Dept. of Computer Applications, NIT,
Kurukshetra, Haryana, 1(9): 396-399, 2015.
5. R. Hussin, M. Rizon Juhari, Ng Wei Kang, R.C.Ismail, A.Kamarudin, “Digital Image
Processing Techniques for Object Detection from Complex Background Image,”Perlis,
Malaysia: School of Microelectronic Engineering, University Malaysia Perlis, 2012.
THANK YOU !!

Mais conteúdo relacionado

Semelhante a 502021435-12345678Minor-Project-Ppt.pptx

Automatic License Plate Recognition using OpenCV
Automatic License Plate Recognition using OpenCV Automatic License Plate Recognition using OpenCV
Automatic License Plate Recognition using OpenCV Editor IJCATR
 
Machine Vision On Embedded Platform
Machine Vision On Embedded Platform Machine Vision On Embedded Platform
Machine Vision On Embedded Platform Omkar Rane
 
Machine vision Application
Machine vision ApplicationMachine vision Application
Machine vision ApplicationAbhishek Sainkar
 
OpenCV (Open source computer vision)
OpenCV (Open source computer vision)OpenCV (Open source computer vision)
OpenCV (Open source computer vision)Chetan Allapur
 
Implementation of embedded arm9 platform using qt and open cv for human upper...
Implementation of embedded arm9 platform using qt and open cv for human upper...Implementation of embedded arm9 platform using qt and open cv for human upper...
Implementation of embedded arm9 platform using qt and open cv for human upper...Krunal Patel
 
Vision based system for monitoring the loss of attention in automotive driver
Vision based system for monitoring the loss of attention in automotive driverVision based system for monitoring the loss of attention in automotive driver
Vision based system for monitoring the loss of attention in automotive driverVinay Diddi
 
BEST IMAGE PROCESSING TOOLS TO EXPECT in 2023 – Tutors India
BEST IMAGE PROCESSING TOOLS TO EXPECT in 2023 – Tutors IndiaBEST IMAGE PROCESSING TOOLS TO EXPECT in 2023 – Tutors India
BEST IMAGE PROCESSING TOOLS TO EXPECT in 2023 – Tutors IndiaTutors India
 
Road signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencvRoad signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencvMohdSalim34
 
Open Cv – An Introduction To The Vision
Open Cv – An Introduction To The VisionOpen Cv – An Introduction To The Vision
Open Cv – An Introduction To The VisionHemanth Haridas
 
16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docx16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docxssuser90e017
 
YOLOv4: A Face Mask Detection System
YOLOv4: A Face Mask Detection SystemYOLOv4: A Face Mask Detection System
YOLOv4: A Face Mask Detection SystemIRJET Journal
 
Law cost portable machine vision system
Law cost portable machine vision systemLaw cost portable machine vision system
Law cost portable machine vision systemSagarika Muthukumarana
 
Presentation 400
Presentation 400Presentation 400
Presentation 400ASMArman1
 
পদার্থ বিজ্ঞান ২য় পত্র- ভৌতজগতের প্রকৃ্তি
পদার্থ বিজ্ঞান ২য় পত্র-  ভৌতজগতের প্রকৃ্তিপদার্থ বিজ্ঞান ২য় পত্র-  ভৌতজগতের প্রকৃ্তি
পদার্থ বিজ্ঞান ২য় পত্র- ভৌতজগতের প্রকৃ্তিASMArman1
 
Real Time Object Dectection using machine learning
Real Time Object Dectection using machine learningReal Time Object Dectection using machine learning
Real Time Object Dectection using machine learningpratik pratyay
 
How To Install OpenCV On Windows? Edureka
How To Install OpenCV On Windows? EdurekaHow To Install OpenCV On Windows? Edureka
How To Install OpenCV On Windows? EdurekaEdureka!
 
Machine_learning_internship_report_facemaskdetection.pptx
Machine_learning_internship_report_facemaskdetection.pptxMachine_learning_internship_report_facemaskdetection.pptx
Machine_learning_internship_report_facemaskdetection.pptxpratikpatil862906
 

Semelhante a 502021435-12345678Minor-Project-Ppt.pptx (20)

Automatic License Plate Recognition using OpenCV
Automatic License Plate Recognition using OpenCV Automatic License Plate Recognition using OpenCV
Automatic License Plate Recognition using OpenCV
 
Machine Vision On Embedded Platform
Machine Vision On Embedded Platform Machine Vision On Embedded Platform
Machine Vision On Embedded Platform
 
Machine vision Application
Machine vision ApplicationMachine vision Application
Machine vision Application
 
OpenCV (Open source computer vision)
OpenCV (Open source computer vision)OpenCV (Open source computer vision)
OpenCV (Open source computer vision)
 
Implementation of embedded arm9 platform using qt and open cv for human upper...
Implementation of embedded arm9 platform using qt and open cv for human upper...Implementation of embedded arm9 platform using qt and open cv for human upper...
Implementation of embedded arm9 platform using qt and open cv for human upper...
 
Vision based system for monitoring the loss of attention in automotive driver
Vision based system for monitoring the loss of attention in automotive driverVision based system for monitoring the loss of attention in automotive driver
Vision based system for monitoring the loss of attention in automotive driver
 
Obj report
Obj reportObj report
Obj report
 
BEST IMAGE PROCESSING TOOLS TO EXPECT in 2023 – Tutors India
BEST IMAGE PROCESSING TOOLS TO EXPECT in 2023 – Tutors IndiaBEST IMAGE PROCESSING TOOLS TO EXPECT in 2023 – Tutors India
BEST IMAGE PROCESSING TOOLS TO EXPECT in 2023 – Tutors India
 
Road signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencvRoad signs detection using voila jone's algorithm with the help of opencv
Road signs detection using voila jone's algorithm with the help of opencv
 
Open Cv – An Introduction To The Vision
Open Cv – An Introduction To The VisionOpen Cv – An Introduction To The Vision
Open Cv – An Introduction To The Vision
 
16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docx16 OpenCV Functions to Start your Computer Vision journey.docx
16 OpenCV Functions to Start your Computer Vision journey.docx
 
YOLOv4: A Face Mask Detection System
YOLOv4: A Face Mask Detection SystemYOLOv4: A Face Mask Detection System
YOLOv4: A Face Mask Detection System
 
Law cost portable machine vision system
Law cost portable machine vision systemLaw cost portable machine vision system
Law cost portable machine vision system
 
Presentation 400
Presentation 400Presentation 400
Presentation 400
 
পদার্থ বিজ্ঞান ২য় পত্র- ভৌতজগতের প্রকৃ্তি
পদার্থ বিজ্ঞান ২য় পত্র-  ভৌতজগতের প্রকৃ্তিপদার্থ বিজ্ঞান ২য় পত্র-  ভৌতজগতের প্রকৃ্তি
পদার্থ বিজ্ঞান ২য় পত্র- ভৌতজগতের প্রকৃ্তি
 
A guide to Face Detection in Python.pdf
A guide to Face Detection in Python.pdfA guide to Face Detection in Python.pdf
A guide to Face Detection in Python.pdf
 
A-13 Iomp-1.pptx
A-13 Iomp-1.pptxA-13 Iomp-1.pptx
A-13 Iomp-1.pptx
 
Real Time Object Dectection using machine learning
Real Time Object Dectection using machine learningReal Time Object Dectection using machine learning
Real Time Object Dectection using machine learning
 
How To Install OpenCV On Windows? Edureka
How To Install OpenCV On Windows? EdurekaHow To Install OpenCV On Windows? Edureka
How To Install OpenCV On Windows? Edureka
 
Machine_learning_internship_report_facemaskdetection.pptx
Machine_learning_internship_report_facemaskdetection.pptxMachine_learning_internship_report_facemaskdetection.pptx
Machine_learning_internship_report_facemaskdetection.pptx
 

Último

Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookvip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookmanojkuma9823
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degreeyuu sss
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAbdelrhman abooda
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 

Último (20)

Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Bookvip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
vip Sarai Rohilla Call Girls 9999965857 Call or WhatsApp Now Book
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
毕业文凭制作#回国入职#diploma#degree澳洲中央昆士兰大学毕业证成绩单pdf电子版制作修改#毕业文凭制作#回国入职#diploma#degree
 
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptxAmazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
Amazon TQM (2) Amazon TQM (2)Amazon TQM (2).pptx
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 

502021435-12345678Minor-Project-Ppt.pptx

  • 1. Object detection using OpenCV-PYTHON GUIDED BY: Mrs Swarna Laxmi Sahoo Asst. Professor Dept. of Production Engineering PRESENTED BY : ABHIJITH PRABHAKARAN-36902 AMANRAJ SAHU- 36904 AVILASH PRADHAN-36909 NIKHIL AGRAWAL-36923 GOPAL KRISHNA MISTRY-36948 SAI PABAN PATTANAIK-36955 SATYAJIT SATAPATHY-36968
  • 2. Contents INTRODUCTION WHAT IS OBJECT DETECTION ? WHAT IS OpenCV ? LITERATURE REVIEW OBJECTIVE HARDWARE SPECS METHEDOLOGY CODING IN OpenCV USING PYTHON ADVANTAGES AND DISADAVANTAGES
  • 3.  Object detection and location in digital images has become one of the most important applications for industries to ease user, save time and to achieve parallelism.  This is not a new technique but improvement in object detection is still required in order to achieve the targeted objective more efficiently and accurately.  The main aim of studying and researching computer vision is to simulate the behavior and manner of human eyes directly by using a computer and later on develop a system that reduces human efforts.  Computer vision is such kind of research field which tries to perceive and represents the 3D information for world objects. Its main purpose is reconstructing the visual aspects of 3D objects after analyzing the 2D information extracted.  Real life 3D objects are represented by 2D images. INTRODUCTION
  • 4.
  • 5. WHAT IS OBJECT DETECTION ? Object detection is a computer technology related to computer vision and image processing that deals with detecting instances of semantic objects of a certain class (such as humans, buildings, or cars) in digital images and videos. Well-researched domains of object detection include face detection and pedestrian detection. Object detection has applications in many areas of computer vision, including image retrieval and video surveillance.
  • 6.  OpenCV (Open Source Computer Vision) is an open source computer vision and machine learning software library. OpenCV was initially built to provide a common infrastructure for applications related to computer vision and to increase the use of machine perception in the commercial products. As it is a BSD-licensed product so it becomes easy for businesses to utilize and modify the existing code in OpenCV.  For OpenCV to work efficiently with python 2.7 we need to install NumPy package first. WHAT IS Opencv?
  • 7. SL NO. AUTHOR YEAR JOURNAL NAME FINDINGS 1 JosephSantosh Redmon, Divvala, Ross Girshick, Ali Farhadi 2016 You Only Look Once: Unified, Real-Time Object Detection In comparison with Object detection techniques that came before YOLO, like R-CNN, YOLO introduced a single unified architecture for regression go image into bounding boxes and finding class probabilities for each box. This meant that YOLO performed much faster and also provided more accuracy. It could also predict artwork correctly. 2 Chengji Liu, Yufan Tao, Jiawei Liang, Kai Li1, Yihang Chen 2018 Object Detection Based on YOLO Network The experiment showed that the model trained with the standard sets does not have good generalization ability for the degraded images and has poor robustness. Then the model was trained using degraded images which resulted in improved average precision. It was proved that the average precision for degraded images was better in general degenerative model compared to the standard model. Literature review
  • 8. 3 Wenbo Lan, Jianwu Dang, Yangping Wang, Song Wang 2018 Pedestrian Detection Based on YOLO Network Model The YOLO v2 and YOLO-R network models were tested on the test set of the INRIA data set. The experimental results show that the YOLO-R network model is superior to the original YOLO v2 network model. The number of detection frames reached 25 frames/s, basically meeting the requirement of realtime performance.
  • 9. Objective Object detection has multiple applications such as face detection, vehicle detection, pedestrian counting, self-driving cars, security systems, etc. The two major objectives of object detection include: • To identify all objects present in an image • Filter out the object of attention
  • 10. Hardware specs  RASPBERRY PI Raspberry Pi is a Pocket-sized microcomputer.  RASPBIAN OS Raspbian OS is specially available for Raspberry Pi.  PYTHON Created in late 1980‟s, python is a high level, multipurpose, programmer - friendly language.
  • 11.  NUMPY It is a library for Python used to handle large multidimensional arrays and matrices. It is open source with an active community.  OPENCV OpenCV is an image processing library written in optimized C/C++.It uses multi core processing. It supports various platforms like Windows, Linux, MacOs. It paves way for using different languages like Java, Python, C++,C.  WEBCAM A webcam is video camera that feeds or streams its image in the real time to our computer through a computer network.
  • 12.
  • 13. methodology A. Step 1 Our first task is to create the necessary folders. Folders like Object Detection as root folder; Models as stores pretrained model; Input as stores image file on which we desire to perform object detection; Output as stores image file with detected objects B. Step 2 Open your preferred IDE for penning down the python code and create a new file, detector.py. C. Step 3 Import Object Detection class from the ImageAI library. D. Step 4 Now that one has imported imageAI library and the Object Detection class, the next most important task is to create an instance of the class Object Detection. E. Step 5 Now specify the path from our input image, output image and model.
  • 14. F. Step 6 After instantiating the Object Detection class one can now call for various functions from the class. The class contains the functions to call pre-trained models. G. Step 7 Next you will call the function, which accepts a string which contains the path to the pre- trained model. H. Step 8 This steps calls the function load Model() from the detector instance. It loads the model from the path specified using some class method. I. Step 9 To detect objects in the image, we need to call the detect Object from Image function using the detector object that we created. J. Step 10 The dictionary items can be accessed by traversing through each item in the dictionary. Now complete the object detection code.
  • 15. import cv2 import numpy as np import conveyor_lib cap = cv2.VideoCapture(0) # Conveyor belt library relay = conveyor_lib.Conveyor() while True: _, frame = cap.read() # Belt belt = frame[209: 327, 137: 280] gray_belt = cv2.cvtColor(belt, cv2.COLOR_BGR2GRAY) _, threshold = cv2.threshold(gray_belt, 80, 255, cv2.THRESH_BINARY)
  • 16. # Detect the Nuts _, contours, _ = cv2.findContours(threshold, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) for cnt in contours: (x, y, w, h) = cv2.boundingRect(cnt) # Calculate area area = cv2.contourArea(cnt) # Distinguish small and big nuts if area > 400: # big nut cv2.rectangle(belt, (x, y), (x + w, y + h), (0, 0, 255), 2) # Stop belt relay.turn_off() elif 100 < area < 400: cv2.rectangle(belt, (x, y), (x + w, y + h), (255, 0, 0), 2) cv2.putText(belt, str(area), (x, y), 1, 1, (0, 255, 0))
  • 17. cv2.imshow("Frame", frame) cv2.imshow("belt", belt) cv2.imshow("threshold", threshold) key = cv2.waitKey(1) if key == 27: break elif key == ord("n"): relay.turn_on() elif key == ord("m"): relay.turn_off() cap.release() cv2.destroyAllWindows()
  • 18. • OpenCV is available free of cost •Since OpenCV library is written in C/C++ it is quite fast •Low RAM usage (approx. 60–70 mb) •It is portable as OpenCV can run on any device that can run C •OpenCV does not provide the same ease of use when compared to MATLAB •OpenCV has a flann library of its own. This causes conflict issues when you try to use OpenCV library with the PCL library Advantages:
  • 19. Future scope • With the inclusion of hardware such as arm an autonomous bot can be developed which could assist in sorting and tracking. • The program can be enhanced by the use of machine learning to increase the efficiency of the object tracking and detection. • Inclusion of conveyer belts and some other hardware could help in large scale industries .
  • 20. References : 1. Khushboo Khurana and Reetu Awasthi,“Techniques for Object Recognition in Images and Multi-Object Detection”,(IJARCET), ISSN:2278-1323,4th, April 2013. 2. Latharani T.R., M.Z. Kurian, Chidananda Murthy M.V,“Various Object Recognition Techniques for Computer Vision”, Journal of Analysis and Computation, ISSN: 0973- 2861. 3. Md Atiqur Rahman and Yang Wang, “Optimizing Intersection-Over-Union in Deep Neural Networks for Image Segmentation,” in Object detection, Department of Computer Science, University of Manitoba, Canada, 2015. 4. Nidhi, “Image Processing and Object Detection”, Dept. of Computer Applications, NIT, Kurukshetra, Haryana, 1(9): 396-399, 2015. 5. R. Hussin, M. Rizon Juhari, Ng Wei Kang, R.C.Ismail, A.Kamarudin, “Digital Image Processing Techniques for Object Detection from Complex Background Image,”Perlis, Malaysia: School of Microelectronic Engineering, University Malaysia Perlis, 2012.