SlideShare a Scribd company logo
1 of 27
OBJECT
DIMENSIONS
FROM IMAGES
Shyama Bhuvanendran Sheela
TOPICS
 Objective
 How image is formed?
 Implementation
 Approach
 Output
 Results
 Observations
OBJECTIVE
 To determine the real dimensions of objects in a
room using a virtual ruler.
HOW IMAGE IS FORMED?
Transformation
Perspective Projection
Scale Shift
World
Points
Image
Pixels
HOW IMAGE IS FORMED?
1. Transformation:
 cP = cRw
wP + ctw
 Extrinsic Matrix = [ cRw | ctw ]
2. Perspective Projection and Scale Shift:
 imx = -f * cX + Ox
sx * cZ
 imy = -f * cY + Oy
sy * cZ
HOW IMAGE IS FORMED?
 Intrinsic Matrix = [ -f/sx 0 Ox
0 -f/sy Oy
0 0 0 ]
IMPLEMENTATION
 Reference Object Method
 Uses an object of known dimensions in the image.
 Stereo Method
 Uses two images of the same scene captured from
different positons in space.
 The distance and orientation of camera at the two
positions is known.
APPROACH – REFERENCE METHOD
1. Preprocess the image
2. Find Extrinsic Matrix
3. Compute Z
4. Compute other object dimensions
APPROACH – REFERENCE METHOD
1. Preprocess the image
Grayscale Blur
Detect
Edges
APPROACH – REFERENCE METHOD
1. Preprocess the image
APPROACH – REFERENCE METHOD
1. Preprocess the image
Find Contours
Bounding
Rectangles
APPROACH – REFERENCE METHOD
1. Preprocess the image
2. Find Extrinsic Matrix
 Get the image coordinates of the reference object
using its bounding rectangle.
 Assume the reference object world coordinates using
its known dimension.
 E.g. vertex 1 – [ 0.0, 0.0, 0.0 ]
vertex 2 – [ 50.0, 0.0, 0.0 ]
vertex 3 – [ 50.0, 88.0, 0.0 ]
vertex 4 – [ 0.0, 88.0, 0.0 ]
APPROACH – REFERENCE METHOD
2. Find Extrinsic Matrix
 Calculate tvec and rvec using solvePnp() method of
Calib3d class.
 tvec : [ -309.163922;
88.151640;
571.111726 ]
 rvec : [ -0.032699;
3.166843;
0.053984 ]
APPROACH – REFERENCE METHOD
2. Find Extrinsic Matrix
 Convert rvec to Rotation matrix using Rodrigues()
method of Calib3d class.
 Rotation : [ -0.999452, -0.021080, 0.025520;
-0.020198, 0.999206, 0.034341;
-0.026223, 0.033807, -0.999084 ]
 Compute Extrinsic Matrix.
APPROACH – REFERENCE METHOD
3. Compute Z
 Project the world coordinates of the reference object
using Extrinsic Matrix.
 Z is the same for all objects on the same plane as
reference object.
APPROACH – REFERENCE METHOD
4. Compute other object dimensions.
 Get the pixel coordinates of the minimum bounding
rectangles.
 Re-project to camera coordinate system using inverse
intrinsic matrix.
 Multiply by the computed Z.
 Use distance formula to calculate dimensions.
APPROACH – REFERENCE METHOD
OUTPUT – REFERENCE METHOD
1. Preprocess the images.
 Grayscale
 Blur
 Detect edges
 Find Contours
 Get vertices of the minimum bounding rectangles.
APPROACH – STEREO METHOD
2. Compute Z
 Compute disparity of the two images using compute()
method of StereoSGBM class.
 Compute Z using the below formula:
Z = Focal-Length * Baseline-Distance
Disparity
APPROACH – STEREO METHOD
3. Compute camera coordinates.
 Re-project the minimum bounding rectangle vertices of
the objects to camera coordinate system using inverse
intrinsic matrix.
 Multiply the coordinates by the computed Z.
4. Calculate object dimensions.
 Calculate object dimensions using distance formula.
APPROACH – STEREO METHOD
OUTPUT – REFERENCE METHOD
Average Accuracy = 77.20 %
RESULTS – REFERENCE METHOD
Index Real
Length
Calculated
Length
Real
Breadth
Calculated
Breadth
Accuracy
(%)
1 35 36.1 35 37.2 95.3
2 80 73.7 53 53.9 96
3 85 83.31 80 78.2 98
4 85 85.41 80 80.32 99.5
5 78 79.52 54 57.14 96.4
6 129 133.77 61 63.75 96
7 64 64.76 72 72.78 98.9
8 60 60.27 60 59.63 99.9
RESULTS – REFERENCE METHOD
Index Real
Length
Calculated
Length
Real
Breadth
Calculated
Breadth
Accuracy
(%)
9 67 66.45 70 70.28 99.8
10 71 73.03 72 75.56 96
11 24 23.13 24 25.78 98
12 90 89.77 93 95.25 99
Average Accuracy = 97.73 %
RESULTS – REFERENCE METHOD
Index Real
Length
Calculated
Length
Real
Breadth
Calculated
Breadth
Accuracy
(%)
1 68 77.31 82 90.25 88.3
2 95 157.3 - - 35
3 200 153.1 140 127.3 82.5
4 135 118.8 98 112.5 86.8
5 98 108 135 140.8 93.21
Average Accuracy = 77.20 %
 Reference Object Method:
1. Could determine dimensions with high accuracy for objects
lying on the same X-Y plane as the reference object.
2. The accuracy dropped as the object distance from the
reference object increases along the Z-axis.
 Stereo Method:
1. Could determine the Z accurately.
2. The accuracy dropped in cases where the object detection
method used couldn’t get the exact vertices of the objects in
the image.
OBSERVATIONS
THANK YOU!

More Related Content

What's hot

Fundamentals of Image Processing & Computer Vision with MATLAB
Fundamentals of Image Processing & Computer Vision with MATLABFundamentals of Image Processing & Computer Vision with MATLAB
Fundamentals of Image Processing & Computer Vision with MATLABAli Ghanbarzadeh
 
Lecture 6 introduction to open gl and glut
Lecture 6   introduction to open gl and glutLecture 6   introduction to open gl and glut
Lecture 6 introduction to open gl and glutsimpleok
 
RoboCV Module 4: Image Processing Techniques using OpenCV
RoboCV Module 4: Image Processing Techniques using OpenCVRoboCV Module 4: Image Processing Techniques using OpenCV
RoboCV Module 4: Image Processing Techniques using OpenCVroboVITics club
 
Application of edge detection
Application of edge detectionApplication of edge detection
Application of edge detectionNaresh Biloniya
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformationMani Kanth
 
Artificial bee colony (abc)
Artificial bee colony (abc)Artificial bee colony (abc)
Artificial bee colony (abc)quadmemo
 
Graphics pipelining
Graphics pipeliningGraphics pipelining
Graphics pipeliningAreena Javed
 
CV_Chap 6 Motion Representation
CV_Chap 6 Motion RepresentationCV_Chap 6 Motion Representation
CV_Chap 6 Motion RepresentationKhushali Kathiriya
 
Image-to-Image Translation
Image-to-Image TranslationImage-to-Image Translation
Image-to-Image TranslationJunho Kim
 
DDA-line-drawing-algorithm.pptx
DDA-line-drawing-algorithm.pptxDDA-line-drawing-algorithm.pptx
DDA-line-drawing-algorithm.pptxSujataSonawane11
 
Wavelet transform in image compression
Wavelet transform in image compressionWavelet transform in image compression
Wavelet transform in image compressionjeevithaelangovan
 
Image Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom ConceptsImage Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom Conceptsmmjalbiaty
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filtersA B Shinde
 
Object tracking survey
Object tracking surveyObject tracking survey
Object tracking surveyRich Nguyen
 
Solid modeling
Solid modelingSolid modeling
Solid modelingKRvEsL
 
VJAI Paper Reading#3-KDD2019-ClusterGCN
VJAI Paper Reading#3-KDD2019-ClusterGCNVJAI Paper Reading#3-KDD2019-ClusterGCN
VJAI Paper Reading#3-KDD2019-ClusterGCNDat Nguyen
 

What's hot (20)

Fundamentals of Image Processing & Computer Vision with MATLAB
Fundamentals of Image Processing & Computer Vision with MATLABFundamentals of Image Processing & Computer Vision with MATLAB
Fundamentals of Image Processing & Computer Vision with MATLAB
 
Lecture 6 introduction to open gl and glut
Lecture 6   introduction to open gl and glutLecture 6   introduction to open gl and glut
Lecture 6 introduction to open gl and glut
 
RoboCV Module 4: Image Processing Techniques using OpenCV
RoboCV Module 4: Image Processing Techniques using OpenCVRoboCV Module 4: Image Processing Techniques using OpenCV
RoboCV Module 4: Image Processing Techniques using OpenCV
 
Application of edge detection
Application of edge detectionApplication of edge detection
Application of edge detection
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformation
 
ppt on image processing
ppt on image processingppt on image processing
ppt on image processing
 
Artificial bee colony (abc)
Artificial bee colony (abc)Artificial bee colony (abc)
Artificial bee colony (abc)
 
Graphics pipelining
Graphics pipeliningGraphics pipelining
Graphics pipelining
 
Character generation
Character generationCharacter generation
Character generation
 
CV_Chap 6 Motion Representation
CV_Chap 6 Motion RepresentationCV_Chap 6 Motion Representation
CV_Chap 6 Motion Representation
 
Image-to-Image Translation
Image-to-Image TranslationImage-to-Image Translation
Image-to-Image Translation
 
DDA-line-drawing-algorithm.pptx
DDA-line-drawing-algorithm.pptxDDA-line-drawing-algorithm.pptx
DDA-line-drawing-algorithm.pptx
 
Wavelet transform in image compression
Wavelet transform in image compressionWavelet transform in image compression
Wavelet transform in image compression
 
Image Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom ConceptsImage Interpolation Techniques with Optical and Digital Zoom Concepts
Image Interpolation Techniques with Optical and Digital Zoom Concepts
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
2d/3D transformations in computer graphics(Computer graphics Tutorials)
2d/3D transformations in computer graphics(Computer graphics Tutorials)2d/3D transformations in computer graphics(Computer graphics Tutorials)
2d/3D transformations in computer graphics(Computer graphics Tutorials)
 
Object tracking survey
Object tracking surveyObject tracking survey
Object tracking survey
 
Solid modeling
Solid modelingSolid modeling
Solid modeling
 
VJAI Paper Reading#3-KDD2019-ClusterGCN
VJAI Paper Reading#3-KDD2019-ClusterGCNVJAI Paper Reading#3-KDD2019-ClusterGCN
VJAI Paper Reading#3-KDD2019-ClusterGCN
 

Similar to Object Size Detector - Computer Vision

Templateless Marked Element Recognition Using Computer Vision
Templateless Marked Element Recognition Using Computer VisionTemplateless Marked Element Recognition Using Computer Vision
Templateless Marked Element Recognition Using Computer Visionshivam chaurasia
 
Optimization of a 2D localization system of a moving object based on the prop...
Optimization of a 2D localization system of a moving object based on the prop...Optimization of a 2D localization system of a moving object based on the prop...
Optimization of a 2D localization system of a moving object based on the prop...IRJET Journal
 
Anish_Hemmady_assignmnt1_Report
Anish_Hemmady_assignmnt1_ReportAnish_Hemmady_assignmnt1_Report
Anish_Hemmady_assignmnt1_Reportanish h
 
3D Reconstruction from Multiple uncalibrated 2D Images of an Object
3D Reconstruction from Multiple uncalibrated 2D Images of an Object3D Reconstruction from Multiple uncalibrated 2D Images of an Object
3D Reconstruction from Multiple uncalibrated 2D Images of an ObjectAnkur Tyagi
 
International journal of signal and image processing issues vol 2015 - no 1...
International journal of signal and image processing issues   vol 2015 - no 1...International journal of signal and image processing issues   vol 2015 - no 1...
International journal of signal and image processing issues vol 2015 - no 1...sophiabelthome
 
Image processing
Image processingImage processing
Image processingkamal330
 
Using Generic Image Processing Operations to Detect a Calibration Grid
Using Generic Image Processing Operations to Detect a Calibration GridUsing Generic Image Processing Operations to Detect a Calibration Grid
Using Generic Image Processing Operations to Detect a Calibration GridJan Wedekind
 
IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...
IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...
IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...Christian Gabriel Gomez
 
The flow of baseline estimation using a single omnidirectional camera
The flow of baseline estimation using a single omnidirectional cameraThe flow of baseline estimation using a single omnidirectional camera
The flow of baseline estimation using a single omnidirectional cameraTELKOMNIKA JOURNAL
 
The Technology Research of Camera Calibration Based On LabVIEW
The Technology Research of Camera Calibration Based On LabVIEWThe Technology Research of Camera Calibration Based On LabVIEW
The Technology Research of Camera Calibration Based On LabVIEWIJRES Journal
 
3-d interpretation from single 2-d image III
3-d interpretation from single 2-d image III3-d interpretation from single 2-d image III
3-d interpretation from single 2-d image IIIYu Huang
 
Stereo Vision Distance Estimation Employing Canny Edge Detector with Interpol...
Stereo Vision Distance Estimation Employing Canny Edge Detector with Interpol...Stereo Vision Distance Estimation Employing Canny Edge Detector with Interpol...
Stereo Vision Distance Estimation Employing Canny Edge Detector with Interpol...ZaidHussein6
 
Matrioska tracking keypoints in real-time
Matrioska tracking keypoints in real-timeMatrioska tracking keypoints in real-time
Matrioska tracking keypoints in real-timepowerUserHallo
 
A Case Study : Circle Detection Using Circular Hough Transform
A Case Study : Circle Detection Using Circular Hough TransformA Case Study : Circle Detection Using Circular Hough Transform
A Case Study : Circle Detection Using Circular Hough TransformIJSRED
 
Determination of System Geometrical Parameters and Consistency between Scans ...
Determination of System Geometrical Parameters and Consistency between Scans ...Determination of System Geometrical Parameters and Consistency between Scans ...
Determination of System Geometrical Parameters and Consistency between Scans ...David Scaduto
 
Image Classification
Image ClassificationImage Classification
Image ClassificationAnwar Jameel
 
Fuzzy image processing- fuzzy C-mean clustering
Fuzzy image processing- fuzzy C-mean clusteringFuzzy image processing- fuzzy C-mean clustering
Fuzzy image processing- fuzzy C-mean clusteringFarah M. Altufaili
 
FIDUCIAL POINTS DETECTION USING SVM LINEAR CLASSIFIERS
FIDUCIAL POINTS DETECTION USING SVM LINEAR CLASSIFIERSFIDUCIAL POINTS DETECTION USING SVM LINEAR CLASSIFIERS
FIDUCIAL POINTS DETECTION USING SVM LINEAR CLASSIFIERScsandit
 
426 Lecture5: AR Registration
426 Lecture5: AR Registration426 Lecture5: AR Registration
426 Lecture5: AR RegistrationMark Billinghurst
 

Similar to Object Size Detector - Computer Vision (20)

Templateless Marked Element Recognition Using Computer Vision
Templateless Marked Element Recognition Using Computer VisionTemplateless Marked Element Recognition Using Computer Vision
Templateless Marked Element Recognition Using Computer Vision
 
Optimization of a 2D localization system of a moving object based on the prop...
Optimization of a 2D localization system of a moving object based on the prop...Optimization of a 2D localization system of a moving object based on the prop...
Optimization of a 2D localization system of a moving object based on the prop...
 
Anish_Hemmady_assignmnt1_Report
Anish_Hemmady_assignmnt1_ReportAnish_Hemmady_assignmnt1_Report
Anish_Hemmady_assignmnt1_Report
 
3D Reconstruction from Multiple uncalibrated 2D Images of an Object
3D Reconstruction from Multiple uncalibrated 2D Images of an Object3D Reconstruction from Multiple uncalibrated 2D Images of an Object
3D Reconstruction from Multiple uncalibrated 2D Images of an Object
 
International journal of signal and image processing issues vol 2015 - no 1...
International journal of signal and image processing issues   vol 2015 - no 1...International journal of signal and image processing issues   vol 2015 - no 1...
International journal of signal and image processing issues vol 2015 - no 1...
 
Object tracking
Object trackingObject tracking
Object tracking
 
Image processing
Image processingImage processing
Image processing
 
Using Generic Image Processing Operations to Detect a Calibration Grid
Using Generic Image Processing Operations to Detect a Calibration GridUsing Generic Image Processing Operations to Detect a Calibration Grid
Using Generic Image Processing Operations to Detect a Calibration Grid
 
IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...
IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...
IAA-LA2-10-01 Spectral and Radiometric Calibration Procedure for a SWIR Hyper...
 
The flow of baseline estimation using a single omnidirectional camera
The flow of baseline estimation using a single omnidirectional cameraThe flow of baseline estimation using a single omnidirectional camera
The flow of baseline estimation using a single omnidirectional camera
 
The Technology Research of Camera Calibration Based On LabVIEW
The Technology Research of Camera Calibration Based On LabVIEWThe Technology Research of Camera Calibration Based On LabVIEW
The Technology Research of Camera Calibration Based On LabVIEW
 
3-d interpretation from single 2-d image III
3-d interpretation from single 2-d image III3-d interpretation from single 2-d image III
3-d interpretation from single 2-d image III
 
Stereo Vision Distance Estimation Employing Canny Edge Detector with Interpol...
Stereo Vision Distance Estimation Employing Canny Edge Detector with Interpol...Stereo Vision Distance Estimation Employing Canny Edge Detector with Interpol...
Stereo Vision Distance Estimation Employing Canny Edge Detector with Interpol...
 
Matrioska tracking keypoints in real-time
Matrioska tracking keypoints in real-timeMatrioska tracking keypoints in real-time
Matrioska tracking keypoints in real-time
 
A Case Study : Circle Detection Using Circular Hough Transform
A Case Study : Circle Detection Using Circular Hough TransformA Case Study : Circle Detection Using Circular Hough Transform
A Case Study : Circle Detection Using Circular Hough Transform
 
Determination of System Geometrical Parameters and Consistency between Scans ...
Determination of System Geometrical Parameters and Consistency between Scans ...Determination of System Geometrical Parameters and Consistency between Scans ...
Determination of System Geometrical Parameters and Consistency between Scans ...
 
Image Classification
Image ClassificationImage Classification
Image Classification
 
Fuzzy image processing- fuzzy C-mean clustering
Fuzzy image processing- fuzzy C-mean clusteringFuzzy image processing- fuzzy C-mean clustering
Fuzzy image processing- fuzzy C-mean clustering
 
FIDUCIAL POINTS DETECTION USING SVM LINEAR CLASSIFIERS
FIDUCIAL POINTS DETECTION USING SVM LINEAR CLASSIFIERSFIDUCIAL POINTS DETECTION USING SVM LINEAR CLASSIFIERS
FIDUCIAL POINTS DETECTION USING SVM LINEAR CLASSIFIERS
 
426 Lecture5: AR Registration
426 Lecture5: AR Registration426 Lecture5: AR Registration
426 Lecture5: AR Registration
 

Recently uploaded

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 

Object Size Detector - Computer Vision

  • 2. TOPICS  Objective  How image is formed?  Implementation  Approach  Output  Results  Observations
  • 3. OBJECTIVE  To determine the real dimensions of objects in a room using a virtual ruler.
  • 4. HOW IMAGE IS FORMED? Transformation Perspective Projection Scale Shift World Points Image Pixels
  • 5. HOW IMAGE IS FORMED? 1. Transformation:  cP = cRw wP + ctw  Extrinsic Matrix = [ cRw | ctw ] 2. Perspective Projection and Scale Shift:  imx = -f * cX + Ox sx * cZ  imy = -f * cY + Oy sy * cZ
  • 6. HOW IMAGE IS FORMED?  Intrinsic Matrix = [ -f/sx 0 Ox 0 -f/sy Oy 0 0 0 ]
  • 7. IMPLEMENTATION  Reference Object Method  Uses an object of known dimensions in the image.  Stereo Method  Uses two images of the same scene captured from different positons in space.  The distance and orientation of camera at the two positions is known.
  • 8. APPROACH – REFERENCE METHOD 1. Preprocess the image 2. Find Extrinsic Matrix 3. Compute Z 4. Compute other object dimensions
  • 9. APPROACH – REFERENCE METHOD 1. Preprocess the image Grayscale Blur Detect Edges
  • 10. APPROACH – REFERENCE METHOD 1. Preprocess the image
  • 11. APPROACH – REFERENCE METHOD 1. Preprocess the image Find Contours Bounding Rectangles
  • 12. APPROACH – REFERENCE METHOD 1. Preprocess the image
  • 13. 2. Find Extrinsic Matrix  Get the image coordinates of the reference object using its bounding rectangle.  Assume the reference object world coordinates using its known dimension.  E.g. vertex 1 – [ 0.0, 0.0, 0.0 ] vertex 2 – [ 50.0, 0.0, 0.0 ] vertex 3 – [ 50.0, 88.0, 0.0 ] vertex 4 – [ 0.0, 88.0, 0.0 ] APPROACH – REFERENCE METHOD
  • 14. 2. Find Extrinsic Matrix  Calculate tvec and rvec using solvePnp() method of Calib3d class.  tvec : [ -309.163922; 88.151640; 571.111726 ]  rvec : [ -0.032699; 3.166843; 0.053984 ] APPROACH – REFERENCE METHOD
  • 15. 2. Find Extrinsic Matrix  Convert rvec to Rotation matrix using Rodrigues() method of Calib3d class.  Rotation : [ -0.999452, -0.021080, 0.025520; -0.020198, 0.999206, 0.034341; -0.026223, 0.033807, -0.999084 ]  Compute Extrinsic Matrix. APPROACH – REFERENCE METHOD
  • 16. 3. Compute Z  Project the world coordinates of the reference object using Extrinsic Matrix.  Z is the same for all objects on the same plane as reference object. APPROACH – REFERENCE METHOD
  • 17. 4. Compute other object dimensions.  Get the pixel coordinates of the minimum bounding rectangles.  Re-project to camera coordinate system using inverse intrinsic matrix.  Multiply by the computed Z.  Use distance formula to calculate dimensions. APPROACH – REFERENCE METHOD
  • 19. 1. Preprocess the images.  Grayscale  Blur  Detect edges  Find Contours  Get vertices of the minimum bounding rectangles. APPROACH – STEREO METHOD
  • 20. 2. Compute Z  Compute disparity of the two images using compute() method of StereoSGBM class.  Compute Z using the below formula: Z = Focal-Length * Baseline-Distance Disparity APPROACH – STEREO METHOD
  • 21. 3. Compute camera coordinates.  Re-project the minimum bounding rectangle vertices of the objects to camera coordinate system using inverse intrinsic matrix.  Multiply the coordinates by the computed Z. 4. Calculate object dimensions.  Calculate object dimensions using distance formula. APPROACH – STEREO METHOD
  • 22. OUTPUT – REFERENCE METHOD Average Accuracy = 77.20 %
  • 23. RESULTS – REFERENCE METHOD Index Real Length Calculated Length Real Breadth Calculated Breadth Accuracy (%) 1 35 36.1 35 37.2 95.3 2 80 73.7 53 53.9 96 3 85 83.31 80 78.2 98 4 85 85.41 80 80.32 99.5 5 78 79.52 54 57.14 96.4 6 129 133.77 61 63.75 96 7 64 64.76 72 72.78 98.9 8 60 60.27 60 59.63 99.9
  • 24. RESULTS – REFERENCE METHOD Index Real Length Calculated Length Real Breadth Calculated Breadth Accuracy (%) 9 67 66.45 70 70.28 99.8 10 71 73.03 72 75.56 96 11 24 23.13 24 25.78 98 12 90 89.77 93 95.25 99 Average Accuracy = 97.73 %
  • 25. RESULTS – REFERENCE METHOD Index Real Length Calculated Length Real Breadth Calculated Breadth Accuracy (%) 1 68 77.31 82 90.25 88.3 2 95 157.3 - - 35 3 200 153.1 140 127.3 82.5 4 135 118.8 98 112.5 86.8 5 98 108 135 140.8 93.21 Average Accuracy = 77.20 %
  • 26.  Reference Object Method: 1. Could determine dimensions with high accuracy for objects lying on the same X-Y plane as the reference object. 2. The accuracy dropped as the object distance from the reference object increases along the Z-axis.  Stereo Method: 1. Could determine the Z accurately. 2. The accuracy dropped in cases where the object detection method used couldn’t get the exact vertices of the objects in the image. OBSERVATIONS