Skip to content

kavyadevd/CurveFittingAndHomography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Curve fit methods and Homography

Week 1

The problem statement for this repository can be found here

Problem 1 : Solution can be found in the project report here

Read data from video
python3 Kavya_hw1/Problem2/PythonCodes/GetData.py

Enter path to the csv file and input video when prompted
This will generate two files a graph plot png images with coordinate plots and a csv file with ball x,y coordinates

video2plot

Run linear least square
python3 Kavya_hw1/Problem2/PythonCodes/LSS.py

This will generate two graph plot png images, with curve fit output of two videos

curvefit2

Make sure the csv files and video files are in the same folder as the python code files The code and output is also present in the jupyter notebooks present in the /Notebook folder

Run the code using following command. Make sure the csv file is present in the same folder
python3 Kavya_hw1/Problem3/Insurance.py

Output can be seen on the terminal and the generated png images in the same folder

Problem 4 : Homography Matrix and SVD

Run the python code to execute SVD function and print the homography matrix using following command
python3 Kavya_hw1/Problem4/Homography.py