Each folder represents an individual program and has been appropriately named to identify its application. Note that the program for Moth Eye classification has been written in Python using OpenCV. Other programs have been written in Python and Numpy, Matplotlib, Scipy (without OpenCV or other CV libraries).
- Python 3.7
- numpy
- scipy
- OpenCV
- matplotlib
- PIL
The python files read data from a hardcoded path to the local folder.
To excecute 1D spatial cross correlation algortithm, follow these steps:
- cd exp1_signalMatching
- Run
python signal_offset_temporal.py
to process filessensorData1.txt
andsensorData2.txt
- To toggle SSD, set
use_SSD = True
on line13
. - To toggle the library function, set
use_library = True
on line14
. - To toggle the handmade cross correlation, set
use_convolution = True
on line15
. Currently this method takes approximately one hour. - To toggle the faster handmade convolution method, set
speed_up = True
on line16
.
To excecute 1D spectral cross correlation algortithm, run python signal_offset_FT.py
to process files sensorData1
and sensorData2
.
To excecute 2D spatial cross correlation algortithm, follow these steps:
- cd imageMatching
- Run
python spatial_2D_image_match.py
to process fileswally_puzzle_rocketman.png
andwallypuzzle_png.png
.
To excecute 2D spectral cross correlation algortithm, run python spectral_2D_image_match.py
to process files wally_puzzle_rocketman.png
and wallypuzzle_png.png
.
To excecute the stereo vision depth mapping:
- cd exp2_depthMapping
- Run
dot_detection_CONV.py
anddot_detection_cv.py
for guassian dot detection using a convolution method and openCV. - Run
dot_calibration.py
with calibration images to generate polynomial fit. - Run
depth_mapping_cv.py
and pass the local location of the desired images. - Run
depth_mapping_fixed.py
for single depth map. Note that this method takes approximately 10 minutes. Errors appear when using other images as the window size and grid need to be adjusted manually.
- cd extensionMoth
- Run
circles.py
, toggle DIsplay to see statistics plots.