Skip to content

Commit

Permalink
args fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshikakde committed Feb 15, 2021
1 parent 23ba4f8 commit 629024e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Code/CurveFitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,12 @@ def main():

Parser = argparse.ArgumentParser()
Parser.add_argument('--BasePath', default='/home/sakshi/courses/ENPM673/sakshi_hw1/', help='Base path of project1, Default:/home/sakshi/courses/ENPM673/sakshi_hw1/')
Parser.add_argument('--VideoFilePath', default='Data/Ball_travel_2_updated.mp4', help='MP4 file name, Default:Ball_travel_2_updated.mp4')
Parser.add_argument('--VideoFilePath', default='/home/sakshi/courses/ENPM673/sakshi_hw1/Data/Ball_travel_2_updated.mp4', help='MP4 file name, Default:Ball_travel_2_updated.mp4')
Parser.add_argument('--SaveFolderName', default='graphs/video2', help='Folder to save graphs, Default:Video1')
Args = Parser.parse_args()
BasePath = Args.BasePath
VideoFilePath = Args.VideoFilePath
print(VideoFilePath)
SaveFolderName = Args.SaveFolderName
#BasePath = '/home/sakshi/courses/ENPM673/sakshi_hw1/'
base_folder = BasePath
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Run the CurveFitting.py using the command
python3 CurveFitting.py --BasePath='/home/sakshi/courses/ENPM673/sakshi_hw1/' --VideoFilePath='/home/sakshi/courses/ENPM673/sakshi_hw1/Data/Ball_travel_10fps.mp4' --SaveFolderName='graphs/video1'
The arguments are
1)BasePath - This is the base folder path
2)VideoFilePath - By default, the path is set as BasePath + 'Data/Ball_travel_10fps.mp4'
2)VideoFilePath - By default, the path is set as /home/sakshi/courses/ENPM673/sakshi_hw1/Data/Ball_travel_2_updated.mp4
3)SaveFolderName - the path to folder where all the plots will be saved. The folder must be inside the BasePath

### Part 2 -
Expand Down
Binary file modified graphs/video1/RANSACcurve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified graphs/video2/RANSACcurve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 629024e

Please sign in to comment.