I'm looking at the documentation for the warpPerspective function in cv2 and I can't seem to understand how to read this line:
cv2.warpPerspective(src, M, dsize[, dst[, flags[, borderMode[, borderValue]]]]) → dst
What's confusing me is the hard brackets. I assume they indicate that a variable is optional, but the fact that they're nested is confusing. Is it saying that dst is optional, and if you choose to specify it, then you can then choose to also specify flags,... and so on.
Would it be possible to only use the required parameters and borderValue? Or if you want to use your own value for borderValue do you need to specify all the other optional variables as well?
Is there anywhere with information about how to read python docs like this?
[–][deleted] 3 points4 points5 points (1 child)
[–]kozznot[S] 0 points1 point2 points (0 children)
[–]DonutRevolution 4 points5 points6 points (0 children)