1 | initial version |
linetype=2 seems to be the culprit here. no idea why (so far), but if you just omit it,
rectangle (image, start, end, Scalar(0,255,0), thickness );
you get the desired green rect.
( looking here , it seems, 4,8,16 are the legit values for linetype )