ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

What you want is:

for (x,y) in currFeatures:
    for (px,py) in self.prev_draw_features:
        cv.line(new_image, (px,py),(x,y),cv.RGB(125, 20,200),5)

What you probably want is:

for (x,y) ((x,y), (px,py)) in currFeatures:
    for (px,py) in self.prev_draw_features:
zip(currFeatures, self.prev_draw_features):
        cv.line(new_image, (px,py),(x,y),cv.RGB(125, 20,200),5)