I am writing confidence level using following code into my Image
text1="color is {}".format(f'Class #{i + 1}-{class_names[ind]}-Confidence: {100 * conf}%')
how do I limit my confidence number to two decimal places rather than the 10 or so it gives?
round()
function? Read the documentation docs.python.org/3.8/library/functions.html#round