I have a line of code here that uses the python binding for opencv:
cv2.rectangle(img, (box[1], box[0]), (box[3], box[2]), (255,0,0), 4)
Th
you can use LineIterator and get any style you want in a few lines of code
void lineDot(OutputArray img, const Point& pt1, const Point& pt2, const Scalar& color, const vector& pattern){
LineIterator it(img.getMat(), pt1, pt2, LINE_8); // LINE_AA is not supported here
for(auto i=0; i