Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
import ImgRec
import ImgRecSql
import GradeGuesser
def Main(wallAngle, mainClimbImg):
validHolds = ImgRec.ImgRecMain(mainClimbImg)
holdScores = ImgRecSql.getHoldScores(validHolds)
grade = GradeGuesser.GradeGuesserMain(wallAngle, holdScores)
return grade
#Unhash the following to run the Main function with different images.
grade = Main(90, r"D:\Disso\ClimbPics\Climb_26.jpeg")
#grade = Main(120, r"D:\Disso\ClimbPics\Climb_22.jpeg")
#grade = Main(120, r"D:\Disso\ClimbPics\Climb_11.jpeg")
#grade = Main(110, r"D:\Disso\ClimbPics\Climb_5.jpeg")
#grade = Main(130, r"D:\Disso\ClimbPics\Climb_1.jpeg")
#May need to change file paths for program to function properly
print("The Grade of the given climb is: {0}".format(grade))