The code:
# COMPARISON BETWEEN REFERENCE AND NEW IMAGE #
difference=[]
for hist_part in ref_hist:
diff_score, diff_table= difference_histogram(hist_part[1],hist_part_new)
difference.append(diff_score)
difference.append(ref_humidity)
# HUMIDITY CALCULATION #
min_score = min(difference) # closest reference image
The error:
Traceback (most recent call last):
File "C:\Users\Dilshad\Desktop\project_7-8-2015\8_bands\Program_camera - test.py", line 68, in <module>
min_score = min(difference) # closest reference image
TypeError: unorderable types: list() < int()
I imagine I need to convert all elements of the list into int in order to make them orderable types. Any suggestions?