diff --git a/examples/puploc_masquerade/puploc.py b/examples/puploc_masquerade/puploc.py index 8a967ec..a284bb2 100644 --- a/examples/puploc_masquerade/puploc.py +++ b/examples/puploc_masquerade/puploc.py @@ -145,6 +145,10 @@ while(True): img_idx += 1 if img_idx > len(source_imgs)-1: img_idx = 0 + elif key & 0xFF == ord('r'): + img_idx -= 1 + if img_idx < 0: + img_idx = len(source_imgs)-1 cap.release() cv2.destroyAllWindows() \ No newline at end of file