mirror of
https://github.com/esimov/pigo.git
synced 2025-10-07 00:52:49 +08:00
Cycle trough masks back and forth
This commit is contained in:
@@ -145,6 +145,10 @@ while(True):
|
|||||||
img_idx += 1
|
img_idx += 1
|
||||||
if img_idx > len(source_imgs)-1:
|
if img_idx > len(source_imgs)-1:
|
||||||
img_idx = 0
|
img_idx = 0
|
||||||
|
elif key & 0xFF == ord('r'):
|
||||||
|
img_idx -= 1
|
||||||
|
if img_idx < 0:
|
||||||
|
img_idx = len(source_imgs)-1
|
||||||
|
|
||||||
cap.release()
|
cap.release()
|
||||||
cv2.destroyAllWindows()
|
cv2.destroyAllWindows()
|
Reference in New Issue
Block a user