Académique Documents
Professionnel Documents
Culture Documents
Mohamed Elsharawy
Matriculation No. 306264
1/39
Overview
1 Introduction
2 Hardware
Selection criteria
Model Design
3 Software
Theoretical Background
Method and Algorithms
Implementation
4 Experiments and Analysis
5 Summary and Future work
2/39
Introduction
Motivation
Project MobILe aims to provide people with physical movement limitations
the possibility to perform basic skills in their daily life, such as drink and food
intake with the help of assistive robotics.
Assistive Drinking Scenario
Robot arm is supposed to bring a cup of drink to the mouth of the end-
user autonomously
Precise distance between the human user mouth and the cup is very
necessary to be measured in real time ,especially in close range .
3/39
Introduction
Current Solution from MobILe
An RGB-D 435 camera mounted on the wrist of the robot
Depth sensor has a working range 11-100 cm
very good solution
However,
an RGB-D camera is very expensive
Placement of the camera can not measure the distance between the
mouth and the cup.
From viewpoint of functional safety, the addition of a redundant system
to measure distance is an advantage.
4/39
Introduction
Main Work of this Project
Overhead lightweight low-cost wearable system
o stereo-camera built onto a helmet to watch the interaction scene beneath
and measure the distance between the cup and the mouth
Hardware :selection criteria and model design
Software :
Theoretical background
Board square size selection
Stereo calibration
Rectification
Experiments of distance measurements
5/39
Hardware: Selection criteria and model design
ranges.)
Shutter type : expected slow movements from the user Rolling /Global
shutter is OK.
Frame rate :for normal PC 30 fps is acceptable, for small computer boards
6/39
Hardware: Selection Criteria & Model Design
ELP VGA USB Camera
FL:2.1mm
1-60 fps
Pixel Size :6.0um X 6.0um
Resolution :640 × 480
7/39
Hardware: Selection Criteria & Model Design
Hardware Synchronization
program requires
8/39
Hardware:
Selection criteria and model design
The stereo rig has to be built as a frontal parallel on the same smooth plane.
9/39
Hardware:
Selection criteria and model design
10/39
Hardware:
Selection criteria and model design
11/39
Hardware:
Selection criteria and model design
12/39
Software: Theoretical Background
Triangulation (Ideal Case )
13/39
Software: Theoretical Background
(Triangulation: ideal case )
By similarity of
triangles,
X= (xl. Z)/f
Y=(yl. Z)/f
15/39
Software: Theoretical Background
(Stereo Calibration)
16/39
Software: Theoretical Background
(Stereo rectification)
17/39
Software: Theoretical Background
(Stereo rectification) : Bouguet's algorithm
•Purpose: make the images row aligned
•Concept: if 2 axes of 2 coordinate systems are aligned, the 3rd is aligned
Fig 7 Assumed random orientations of the camera systems. They are not rectified, but R and T are known.
18/39
Software: Theoretical Background
(Stereo rectification) : Bouguet's algorithm
Fig.8 Apply R/2 to the right( rr ) camera and the other half of R-1 to the left ( rl ). So, both cameras are aligned along z.
19/39
Software: Theoretical Background
(Stereo rectification) : Bouguet's algorithm
Rrect =[e1 e2 e3]T
Rr=Rrect . rr
Rl=Rrect . rl
Fig.9 Apply Rrect to both cameras, so they are aligned along z as well.
20/39
Software: Methods and Algorithms
Synchronization
Locating 3D
points
SW Synchronization √
21/39
Software: Methods and Algorithms
Chessboard selection
Object points are collected for camera calibration by using 2D checkerboards
The objects are very near to the cameras, around 10 cm
So, the squares of calibration board have to be small enough to be all seen in
the camera vision domain.
A 1 cm square side for each of the 10 × 7 squares of the checkerboard is
chosen.
22/39
Software: Methods and Algorithms
24/39
Software: Methods and Algorithms
Rectification & Calibration code Results
Fig. 12 Raw input pair(uncalibrated & unrectified) . Notice the horizontal black line along the
images. That is why we need rectification.
25/39
Software: Methods and Algorithms
Rectification & Calibration code Results
Fig. 13 perfectly Rectified image pair with noise around the edges . That is why we need
image cropping. Notice the horizontal black line along the images
26/39
Software: Methods and Algorithms
Distortion Removal
Defining a noise free ,similar rectangular zones in both camera images ,crop the rest
, and resizing the image Resolution a bit reduced ,but this does not affect the results
Fig. 14 Rectified image pair without noise around the edges . That is why we need image
cropping. Notice the horizontal black line along the images.
27/39
Software: Methods and Algorithms
Locating 3D points
28/39
Experiments and Analysis
Measurement of distance between 2 points
Purpose :check how large is the error between actual and measured values
Method : hochcircles() is used to determine center of the circles
There are 5 experiments. The 1st 4 has a parallel plane to the camera pair
For each of first 3 , there is one fixed depth (13 , 8, 10. 5 cm ) and the
distance between the 2 red circles is incremented in steps of 1 cm.
The 4th has a fixed distance between the circles and an incremented depth.
The 5th is the same as the 4th a tilted plane to the cameras .
Fig..15 Right and Left images for parallel and tilted positions
29/39
Experiments and Analysis
Measurement of distance between 2 points
Experiment 1
30/39
Experiments and Analysis
Measurement of distance between 2 points
Experiment 2
31/39
Experiments and Analysis
Measurement of distance between 2 points
Experiment 3
32/39
Experiments and Analysis
Measurement of distance between 2 points
Experiment 4
33/39
Experiments and Analysis
Measurement of distance between 2 points
Experiment 5
34/39
Experiments and Analysis
Measurement of distance between 2 points
Observations:
the error is increasing with the separation distance between the 2 points.
with increasing depth, the error has almost a constant value of 6 mm.
Error causes:
35/39
Summary
the range of 0 – 7 mm
36/39
Suggestions for Future work
37/39
Thank You
38/39
Any Questions ?
39/39