I have seen both
key=lambda b:b[i], reverse=reverse))
The code is used for custom sorting of the list. The
zip of the
boundingBoxes gives a list where the first 2 values represent the
y coordinates respectively. Hence, by changing
i to be 0 or 1, the list can be sorted by the
y coordinates, which is the purpose of the tutorial.